/* ---------- Tokens ---------- */
:root {
  --bg: #f6f1e7;
  --bg-deep: #f0e9d9;
  --ink: #1d1b18;
  --ink-muted: #57534a;
  --line: #e3dccb;
  --rule: #d6cfbd;
  --green: #22c55e;
  --green-deep: #0f7d36;
  --green-dark: #0a3d1c;
  --soil-1: #2a1a10;
  --soil-2: #4a2a18;
  --accent: #c2410c;
  --gold: #d4a437;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-w: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Paper grain overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.35  0 0 0 0 0.25  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Top bar ---------- */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 56px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.topbar__right { letter-spacing: .25em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(10px, 3vw, 40px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 80px);
}

.hero__content { max-width: 620px; }

/* Logo */
.logo {
  margin-bottom: clamp(20px, 3vw, 36px);
}
.logo img {
  display: block;
  width: clamp(140px, 18vw, 220px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow__line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* Headline */
.headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0 0 22px;
  color: var(--ink);
}
.headline em {
  font-style: italic;
  font-weight: 500;
}

/* Lede */
.lede {
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 0 26px;
}

/* Notify */
.notify {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  margin: 0;
}
.notify input {
  flex: 1;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.notify input::placeholder { color: #8b8377; }
.notify input:focus {
  border-color: var(--green-deep);
  background: #fffaf0;
}
.notify__note {
  font-size: 12px;
  color: #8b8377;
  margin: 10px 2px 0;
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn--primary {
  background: #14240f;
  color: #f6f1e7;
}
.btn--primary:hover { background: #0f7d36; transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(20,36,15,.6); }
.btn--primary:active { transform: translateY(0); }
.btn__arrow { transition: transform .2s ease; }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

/* Divider */
.divider {
  margin: clamp(28px, 4vw, 48px) 0 22px;
  height: 1px;
  background: var(--line);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.footer__link {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color .2s ease;
}
.footer__link:hover { color: var(--green-deep); }
.footer__link--sm {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer__link--sm:hover { color: var(--ink); }
.footer__col--right {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.copy {
  margin-top: 14px;
  font-size: 12px;
  color: #8b8377;
}

/* sr only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Visual card ---------- */
.visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  perspective: 1200px;
}

.visual__stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.05;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 0%, #1a4a1f 0%, #0e2a12 55%, #061708 100%);
  box-shadow:
    0 50px 80px -40px rgba(10,40,20,.35),
    0 25px 50px -25px rgba(0,0,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

/* Tag */
.tag {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #d8f3df;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  animation: float 6s ease-in-out infinite;
}
.tag__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
  animation: pulse 2.4s ease-in-out infinite;
}

/* Stars */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, #fff7c2 0%, rgba(255,220,120,.0) 70%);
  border-radius: 50%;
  animation: twinkle 4s ease-in-out infinite;
}

/* Scene */
.scene {
  position: absolute;
  inset: 0;
  transform: rotateX(8deg) rotateY(-6deg);
  transform-style: preserve-3d;
}

.soil {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 38%;
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
}
.soil--back {
  bottom: 14%;
  background: linear-gradient(180deg, #3a2114 0%, #2a1810 100%);
}
.soil--front {
  bottom: 6%;
  height: 22%;
  background: linear-gradient(180deg, #4a2a18 0%, #1f140c 100%);
}

/* Plant */
.plant {
  position: absolute;
  bottom: 22%;
  left: 50%;
  width: 220px;
  height: 260px;
  transform: translateX(-50%);
}
.stem {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #86c98b 0%, #2f7a37 100%);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: growStem 3.2s cubic-bezier(.2,.7,.2,1) forwards;
  box-shadow: 0 0 12px rgba(120,200,140,.2);
}
.leaf {
  position: absolute;
  width: 90px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, #4ec267 0%, #1f7d36 70%);
  border-radius: 0 100% 0 100%;
  filter: drop-shadow(0 8px 16px rgba(20,60,30,.4));
  opacity: 0;
  transform-origin: bottom right;
}
.leaf--left {
  bottom: 80%;
  left: 40%;
  transform: rotate(-30deg) scale(0);
  animation: leafLeft 3.6s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 1.6s;
}
.leaf--right {
  bottom: 95%;
  right: 40%;
  transform-origin: bottom left;
  border-radius: 100% 0 100% 0;
  transform: rotate(35deg) scale(0);
  animation: leafRight 3.6s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 1.9s;
  background: radial-gradient(circle at 70% 30%, #62d277 0%, #1f7d36 70%);
}

.seed {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c2 0%, #d4a437 100%);
  box-shadow: 0 0 8px rgba(212,164,55,.6);
  opacity: 0;
  animation: seedFloat 5s ease-in-out infinite;
}
.seed--a { top: 18%; left: 22%; animation-delay: 0s; }
.seed--b { top: 35%; left: 14%; animation-delay: 1.1s; width: 4px; height: 4px; }
.seed--c { top: 12%; right: 26%; animation-delay: 2.3s; width: 6px; height: 6px; }
.seed--d { top: 48%; right: 12%; animation-delay: 3.4s; width: 3px; height: 3px; }

/* Glow */
.glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(212,164,55,.35) 0%, rgba(212,164,55,0) 70%);
  filter: blur(20px);
  animation: pulse 5s ease-in-out infinite;
}

/* Purpose card */
.purpose {
  position: absolute;
  bottom: -10%;
  left: -8%;
  width: 78%;
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow:
    0 24px 40px -20px rgba(0,0,0,.25),
    0 4px 12px rgba(0,0,0,.06);
}
.purpose__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.purpose__text {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

/* ---------- Animations ---------- */
@keyframes growStem { to { height: 200px; } }
@keyframes leafLeft  { to { opacity: 1; transform: rotate(-30deg) scale(1); } }
@keyframes leafRight { to { opacity: 1; transform: rotate(35deg) scale(1); } }
@keyframes twinkle {
  0%, 100% { opacity: .2; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.6); }
}
@keyframes seedFloat {
  0%   { opacity: 0; transform: translateY(0); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-140px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: .8; }
  50%      { transform: scale(1.4); opacity: .3; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .stem { height: 200px; }
  .leaf--left, .leaf--right { opacity: 1; transform: scale(1); }
}

/* ---------- Responsive ---------- */

/* Tablets / small laptops */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero__content { max-width: 100%; }
  .visual { order: -1; display: flex; justify-content: center; }
  .visual__stage { width: min(100%, 460px); }
  .purpose { left: 6%; width: 70%; }
}

/* Mobile */
@media (max-width: 640px) {
  .topbar { padding: 14px 18px; font-size: 10px; }
  .topbar__left { max-width: 70%; }
  .hero { padding: 8px 18px 56px; gap: 28px; }
  .logo { width: 170px; margin-bottom: 22px; }
  .headline { font-size: clamp(30px, 8vw, 44px); }
  .lede { font-size: 14px; }
  .notify { flex-direction: column; align-items: stretch; max-width: 100%; }
  .notify .btn { justify-content: center; padding: 14px 18px; }
  .visual__stage { width: 100%; max-width: 380px; aspect-ratio: 1/1.15; }
  .purpose { left: 4%; width: 76%; padding: 12px 14px; }
  .purpose__text { font-size: 15px; }
  .footer__col--right { gap: 14px; }
  .copy { font-size: 11px; }
}

/* Very small */
@media (max-width: 380px) {
  .headline { font-size: 30px; }
  .tag { font-size: 9.5px; padding: 6px 10px; }
}

/* Large / ultrawide */
@media (min-width: 1440px) {
  .headline { font-size: 72px; }
  .hero { gap: 80px; }
}
