*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1a18;
  --muted: #6b6b67;
  --soft: #f4f3ef;
  --white: #fdfcfa;
  --accent: #2d5a3d;
  --accent-light: #e8f0eb;
  --border: #e2e0d8;
  --serif: 'Sora', sans-serif;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAV — shared
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 600;
  text-decoration: none;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--ink); }

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: 1.5px solid var(--accent);
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: var(--accent);
  color: white;
}

/* ============================================================
   FOOTER — shared
   ============================================================ */

footer {
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

.section-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: 3.5rem;
}

.btn-primary {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.8rem 1.8rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #234a32;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.25);
}

.btn-primary:active { transform: translateY(0); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* ============================================================
   ANIMATIONS — shared
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LANDING PAGE — hero
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #e8f0eb 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero .hero-badge {
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
  max-width: 14ch;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  font-weight: 300;
  max-width: 48ch;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}

/* EMAIL FORM */
.form-wrap {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.form-wrap input[type="email"] {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.8rem 1.3rem;
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  background: white;
  color: var(--ink);
  width: 280px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-wrap input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.form-wrap input::placeholder { color: #aaa; }

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.75rem;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}

.success-msg {
  display: none;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 1rem;
  animation: fadeUp 0.4s ease forwards;
}

/* DIVIDER */
.divider {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border);
}

/* FEATURES */
.features {
  padding: 7rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.feature-card {
  background: var(--white);
  padding: 2.2rem;
  transition: background 0.2s ease;
}

.feature-card:hover { background: var(--soft); }

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
}

/* WHAT'S INSIDE */
.inside {
  padding: 7rem 2rem;
  background: var(--soft);
}

.inside-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.inside-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.inside-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.inside-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 300;
}

.inside-list li::before {
  content: '—';
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.inside-visual {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.storage-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.storage-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.storage-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 1s ease;
}

.storage-total {
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-weight: 300;
}

/* USE CASES */
.usecases {
  padding: 7rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.usecase-card {
  text-align: center;
  padding: 2rem 1rem;
}

.usecase-emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.usecase-card h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.usecase-card p {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 300;
}

/* CTA BOTTOM */
.cta-bottom {
  padding: 7rem 2rem;
  text-align: center;
  background: var(--ink);
  color: white;
}

.cta-bottom .section-label { color: #6aaa82; }

.cta-bottom h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.cta-bottom h2 em {
  font-style: italic;
  color: #6aaa82;
}

.cta-bottom p {
  color: #aaa;
  font-weight: 300;
  max-width: 44ch;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.form-wrap-dark {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.form-wrap-dark input[type="email"] {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.8rem 1.3rem;
  border: 1.5px solid #333;
  border-radius: 2rem;
  background: #111;
  color: white;
  width: 280px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-wrap-dark input[type="email"]:focus { border-color: #6aaa82; }
.form-wrap-dark input::placeholder { color: #555; }

.btn-light {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.8rem 1.8rem;
  background: #6aaa82;
  color: white;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-light:hover {
  background: #5a9870;
  transform: translateY(-1px);
}

/* ============================================================
   BLOG — layout
   ============================================================ */

.blog-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

/* BLOG HOME HERO */
.home-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5rem;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #e8f0eb 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.home-hero .hero-badge { opacity: 0; animation: fadeUp 0.6s ease 0.1s forwards; }

.home-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  max-width: none;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.home-hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 300;
}

.home-hero .hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 52ch;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}

.home-hero .btn-primary {
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

/* POSTS GRID */
.posts-section h2,
.posts-list h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  opacity: 1;
  animation: none;
  max-width: none;
}

.section-sub {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  margin-top: 2rem;
}

.post-card {
  background: var(--white);
  transition: background 0.2s ease;
  overflow: hidden;
}

.post-card:hover { background: var(--soft); }

.post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.post-content { padding: 2rem; }

.post-meta {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.post-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h3 a:hover { color: var(--accent); }

.post-card p {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.read-more:hover { text-decoration: underline; }

/* SINGLE POST */
.post-single {
  max-width: 720px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.5rem 0 0.75rem;
  max-width: none;
  opacity: 1;
  animation: none;
}

.post-description {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 300;
}

.post-hero-image {
  margin-bottom: 2.5rem;
  border: 1.5px solid var(--border);
}

.post-hero-image img { width: 100%; display: block; }

.post-body h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
}

.post-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
}

.post-body p {
  margin-bottom: 1.25rem;
  font-weight: 300;
  line-height: 1.75;
}

.post-body a { color: var(--accent); text-decoration: underline; }

.post-body ul, .post-body ol {
  margin: 0 0 1.25rem 1.5rem;
  font-weight: 300;
  line-height: 1.75;
}

.post-body li { margin-bottom: 0.4rem; }

.post-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.88em;
  background: var(--soft);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--accent);
}

.post-body pre {
  background: #1a1a18;
  color: #e8f0eb;
  padding: 1.5rem;
  border: 1.5px solid var(--border);
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.post-body pre code { background: none; color: inherit; padding: 0; }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
}

.post-body video {
  width: 100%;
  margin-bottom: 1.5rem;
  border: 1.5px solid var(--border);
}

.post-body img {
  width: 100%;
  margin-bottom: 1.5rem;
  border: 1.5px solid var(--border);
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.back-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE — shared
   ============================================================ */

@media (max-width: 900px) {
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  nav { padding: 1rem 1.5rem; }
  .inside-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-wrap input[type="email"],
  .form-wrap-dark input[type="email"] { width: 100%; }
  .posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .usecase-grid { grid-template-columns: 1fr; }
}
