/* ============================================================================
   Grow Cannabis Easily — marketing site styles
   Dark, premium, motion-forward. Self-contained (no external fonts/CDN).
   ============================================================================ */
:root {
  --bg: #0a0d0b;
  --bg-2: #0e1512;
  --ink: #e9f5ec;
  --muted: #9db5a4;
  --dim: #6b7d70;
  --line: #1c2820;
  --accent: #7CB342;
  --accent-2: #34d399;
  --accent-3: #a3e635;
  --radius: 18px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
strong { color: var(--ink); }
em { color: var(--accent-3); font-style: normal; }

/* ── background fx ─────────────────────────────────────────────────────────── */
#fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.aurora {
  position: fixed; inset: -20% -10% auto -10%; height: 90vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 20%, rgba(52,211,153,0.20), transparent 70%),
    radial-gradient(45% 55% at 80% 10%, rgba(124,179,66,0.18), transparent 70%),
    radial-gradient(35% 45% at 60% 40%, rgba(163,230,53,0.12), transparent 70%);
  filter: blur(30px);
  animation: drift 18s var(--ease) infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.12); }
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── scroll progress ───────────────────────────────────────────────────────── */
.scrollbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  z-index: 60; box-shadow: 0 0 14px rgba(52,211,153,0.6);
}

/* ── nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px clamp(16px, 4vw, 40px);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,13,11,0.72); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px;
}
.brand { font-weight: 800; letter-spacing: 0.2px; font-size: 18px; }
.brand-mark { color: var(--accent-2); margin-right: 4px; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-accent { color: var(--accent); }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
@media (max-width: 780px){ .nav-links { display: none; } }

/* ── buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  color: #08160c; background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  border: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 8px 30px rgba(52,211,153,0.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(52,211,153,0.4); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }

/* ── hero ──────────────────────────────────────────────────────────────────── */
.hero { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px clamp(16px,4vw,40px) 60px; max-width: var(--max); margin: 0 auto; }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.hero-title { font-size: clamp(42px, 8vw, 88px); line-height: 0.98; font-weight: 850; letter-spacing: -0.02em; }
.hero-title .line { display: block; }
.grad { background: linear-gradient(120deg, var(--accent-3), var(--accent-2) 60%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 620px; color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); margin: 26px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 42px; margin-top: 54px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat .num { font-size: 40px; font-weight: 850; background: linear-gradient(120deg, var(--accent-3), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--dim); font-size: 13px; letter-spacing: .3px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--dim); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint span { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0%,100%{ opacity:.3; transform: scaleY(.6);} 50%{ opacity:1; transform: scaleY(1);} }

/* ── sections ──────────────────────────────────────────────────────────────── */
.section { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: clamp(70px, 12vw, 140px) clamp(16px,4vw,40px); }
.section-head { max-width: 760px; margin-bottom: 54px; }
.kicker { color: var(--accent); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font-size: clamp(28px, 4.5vw, 46px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
.lede { color: var(--muted); font-size: clamp(16px,2vw,19px); margin-top: 18px; }

/* ── 2-key ─────────────────────────────────────────────────────────────────── */
.keys { display: flex; align-items: stretch; justify-content: center; gap: 18px; flex-wrap: wrap; }
.keycard { flex: 1 1 260px; max-width: 320px; background: linear-gradient(180deg, var(--bg-2), #0b1310); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s var(--ease), border-color .3s; }
.keycard:hover { border-color: rgba(124,179,66,0.5); }
.keycard-out { border-color: rgba(52,211,153,0.4); box-shadow: 0 20px 60px rgba(52,211,153,0.12); }
.keyicon { font-size: 30px; margin-bottom: 12px; }
.keycard h3 { font-size: 19px; margin-bottom: 8px; }
.keycard p { color: var(--muted); font-size: 15px; }
.plus, .equals { display: flex; align-items: center; font-size: 32px; color: var(--accent); font-weight: 800; }
@media (max-width: 860px){ .plus, .equals { transform: rotate(90deg); } }

/* ── timeline ──────────────────────────────────────────────────────────────── */
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.timeline-line { position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); overflow: hidden; }
.timeline-fill { position: absolute; inset: 0 100% 0 0; background: linear-gradient(90deg, var(--accent-3), var(--accent-2)); transition: right 1.2s var(--ease); box-shadow: 0 0 12px rgba(52,211,153,0.6); }
.phase { position: relative; padding-top: 28px; }
.phase .dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(124,179,66,0.12); }
.phase h4 { font-size: 16px; margin-bottom: 4px; }
.phase p { color: var(--muted); font-size: 13.5px; }
.phase::after { content: "VPD " attr(data-vpd) " kPa"; display: inline-block; margin-top: 8px; font-size: 11px; color: var(--accent); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; }
@media (max-width: 860px){ .timeline { grid-template-columns: 1fr 1fr; } .timeline-line { display:none; } }

/* ── feature grid ──────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px){ .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .grid { grid-template-columns: 1fr; } }
.feature { background: linear-gradient(180deg, var(--bg-2), #0b1310); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.feature:hover { border-color: rgba(124,179,66,0.5); box-shadow: 0 18px 50px rgba(0,0,0,0.4); }
.ficon { font-size: 28px; margin-bottom: 12px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ── split / glappy ────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px){ .split { grid-template-columns: 1fr; } }
.checks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #08160c; background: var(--accent-2); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.chat { background: linear-gradient(180deg, var(--bg-2), #0b1310); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.bubble { padding: 14px 16px; border-radius: 16px; font-size: 15px; max-width: 92%; }
.bubble.user { justify-self: end; background: #14201a; border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.bubble .thumb { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #3f6212, #65a30d); flex: 0 0 auto; }
.bubble.ai { justify-self: start; background: linear-gradient(135deg, rgba(52,211,153,0.14), rgba(124,179,66,0.10)); border: 1px solid rgba(52,211,153,0.3); }
.bubble.ai b { color: var(--accent-3); }

/* ── marquee ───────────────────────────────────────────────────────────────── */
.marquee-wrap { position: relative; z-index: 2; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { display: flex; gap: 60px; width: max-content; animation: scrollx 26s linear infinite; }
.marquee span { color: var(--dim); font-weight: 700; font-size: 18px; white-space: nowrap; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ── cta ───────────────────────────────────────────────────────────────────── */
.cta-card { max-width: 720px; margin: 0 auto; text-align: center; background: radial-gradient(120% 140% at 50% 0%, rgba(52,211,153,0.12), transparent 60%), linear-gradient(180deg, var(--bg-2), #0b1310); border: 1px solid rgba(52,211,153,0.3); border-radius: 26px; padding: clamp(30px, 6vw, 56px); }
.cta-card h2 { font-size: clamp(26px, 4vw, 40px); }
.cta-card p { color: var(--muted); margin-top: 12px; }
.waitform { display: flex; gap: 10px; margin: 26px auto 0; max-width: 440px; }
.waitform input { flex: 1; padding: 14px 16px; border-radius: 999px; background: #0a120e; border: 1px solid var(--line); color: var(--ink); font-size: 15px; outline: none; transition: border-color .25s; }
.waitform input:focus { border-color: var(--accent); }
@media (max-width: 520px){ .waitform { flex-direction: column; } }
.fineprint { color: var(--dim); font-size: 12.5px; margin-top: 16px; }

/* ── footer ────────────────────────────────────────────────────────────────── */
.footer { position: relative; z-index: 2; text-align: center; color: var(--dim); font-size: 13px; padding: 40px 20px 60px; border-top: 1px solid var(--line); }

/* ── reveal animations ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ── reduced motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora, .marquee, .scroll-hint span { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  #fx { display: none; }
}

/* footer legal links */
.footer-links { margin: 0 0 6px; }
.footer-links a { color: var(--accent-3, #7CB342); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { margin: 0 10px; opacity: 0.5; }

/* ============================================================================
   ENHANCEMENTS — Glappy hero, parallax, cursor glow, scroll-driven timeline,
   directional reveals. Vanilla, GPU-cheap, motion-safe.
   ============================================================================ */
.hero { overflow: visible; }
.hero-inner { position: relative; z-index: 2; }

.hero-glappy {
  position: absolute; right: clamp(-24px, 2vw, 44px); top: 47%; transform: translateY(-50%);
  width: clamp(200px, 30vw, 380px); height: auto; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 30px 55px rgba(0,0,0,0.55));
  animation: gbob 5s var(--ease) infinite;
}
.hero-glappy-glow {
  position: absolute; right: clamp(-10px, 4vw, 74px); top: 47%; transform: translate(18%, -50%);
  width: clamp(240px, 34vw, 440px); aspect-ratio: 1; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124,179,66,0.22), transparent 70%); filter: blur(12px);
}
@keyframes gbob { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 14px)); } }
@media (max-width: 900px) {
  .hero-glappy { position: static; transform: none; display: block; margin: 10px 0 -6px; width: min(170px, 44vw); animation: gbob2 5s var(--ease) infinite; }
  .hero-glappy-glow { display: none; }
}
@keyframes gbob2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* directional / zoom reveals (share the .in toggle) */
.reveal.from-l { transform: translateX(-42px); }
.reveal.from-r { transform: translateX(42px); }
.reveal.zoom  { transform: scale(0.9); }
.reveal.from-l.in, .reveal.from-r.in, .reveal.zoom.in { transform: none; }

/* scroll-driven timeline */
.timeline-fill { transition: none; }
.phase .dot { transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.phase.active .dot { background: var(--accent-2); box-shadow: 0 0 0 5px rgba(52,211,153,0.18), 0 0 18px rgba(52,211,153,0.75); transform: scale(1.18); }
.phase.active h4 { color: var(--accent-3); transition: color .35s var(--ease); }

/* cursor glow (desktop, motion-ok) */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 480px; height: 480px; margin: -240px 0 0 -240px;
  z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(closest-side, rgba(124,179,66,0.10), transparent 70%); will-change: transform;
}
@media (pointer: fine) { .cursor-glow { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-glappy, .hero-glappy-glow { animation: none !important; }
  .cursor-glow { display: none; }
}
