/* =============================================================
   LEAF PROTOCOL — Design System & Landing
   Dark botanical / chlorophyll neon
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg:          #050B07;
  --bg-2:        #071108;
  --surface:     #0A1710;
  --surface-2:   #0E2016;
  --surface-3:   #133021;

  /* Chlorophyll ramp */
  --lime:        #7CF77C;
  --lime-soft:   #A8FBA8;
  --emerald:     #22D07E;
  --moss:        #3E8F5A;
  --gold:        #E8C468;

  /* Ink */
  --text:        #E6F5EA;
  --text-2:      #9FBCA9;
  --muted:       #6E8B78;
  --dim:         #48604F;

  /* Lines */
  --line:        rgba(124, 247, 124, 0.09);
  --line-2:      rgba(124, 247, 124, 0.18);
  --line-3:      rgba(124, 247, 124, 0.34);

  /* Glow */
  --glow-sm:     0 0 24px -6px rgba(124, 247, 124, 0.45);
  --glow:        0 0 60px -14px rgba(124, 247, 124, 0.55);
  --glow-lg:     0 0 140px -30px rgba(124, 247, 124, 0.6);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Rhythm */
  --gutter:      clamp(20px, 5vw, 64px);
  --maxw:        1240px;
  --r-sm:        10px;
  --r:           16px;
  --r-lg:        24px;
  --r-xl:        32px;

  /* Motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:     cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--lime); color: #041007; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--moss); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { color: var(--text-2); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.66;
  color: var(--text-2);
  max-width: 58ch;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.grad {
  background: linear-gradient(104deg, var(--lime-soft) 0%, var(--lime) 34%, var(--emerald) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.leaf-accent { color: var(--lime); }

/* ---------- 4. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section {
  padding-block: clamp(84px, 11vw, 168px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(44px, 5vw, 76px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .lede { margin-inline: auto; }

.section-head h2 { margin-bottom: 20px; }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime));
}

.section-head.center .eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), transparent);
}

/* ---------- 5. Ambient effects ---------- */

/* Film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cursor-following spotlight */
.spotlight {
  position: fixed;
  z-index: 0;
  top: 0; left: 0;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 247, 124, 0.055) 0%, transparent 62%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  will-change: transform;
}
.spotlight.on { opacity: 1; }

/* Aurora blobs */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite;
}

.aurora .a1 {
  width: 46vw; height: 46vw;
  top: -14%; left: -8%;
  background: radial-gradient(circle, rgba(34, 208, 126, 0.34), transparent 68%);
}
.aurora .a2 {
  width: 40vw; height: 40vw;
  top: 26%; right: -12%;
  background: radial-gradient(circle, rgba(124, 247, 124, 0.24), transparent 68%);
  animation-delay: -9s;
}
.aurora .a3 {
  width: 32vw; height: 32vw;
  bottom: -12%; left: 32%;
  background: radial-gradient(circle, rgba(232, 196, 104, 0.13), transparent 68%);
  animation-delay: -17s;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(5%, 7%, 0) scale(1.13); }
  66%      { transform: translate3d(-6%, 3%, 0) scale(0.93); }
}

/* Hairline grid */
.gridlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 72%);
}

/* Falling leaves canvas */
#leaves {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

/* ---------- 6. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow: hidden;
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: linear-gradient(160deg, var(--lime-soft), var(--lime) 42%, var(--emerald));
  color: #041007;
  box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.55) 50%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 0.85s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover::before { transform: translateX(130%); }

.btn-ghost {
  background: rgba(124, 247, 124, 0.045);
  border: 1px solid var(--line-2);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--line-3);
  background: rgba(124, 247, 124, 0.09);
  box-shadow: var(--glow-sm);
}

.btn-sm { padding: 10px 18px; font-size: 0.86rem; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }

.btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* Text link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--lime);
  transition: gap 0.3s var(--ease);
}
.tlink:hover { gap: 12px; }
.tlink svg { width: 15px; height: 15px; }

/* ---------- 7. Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(168deg, var(--surface-2), var(--surface) 62%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 34px);
  overflow: hidden;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 247, 124, 0.5), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.card:hover { transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

/* ---------- 8. Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), padding 0.45s var(--ease);
  border-bottom: 1px solid transparent;
  padding-block: 18px;
}

.nav.stuck {
  background: rgba(5, 11, 7, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom-color: var(--line);
  padding-block: 11px;
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.035em;
}

.brand img, .brand svg {
  width: 32px; height: 32px;
  filter: drop-shadow(0 0 10px rgba(124, 247, 124, 0.45));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 9px 15px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(124, 247, 124, 0.06);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 899;
  background: rgba(5, 11, 7, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.mobile-menu.open a { transform: none; opacity: 1; }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.11s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.21s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.26s; }
.mobile-menu .btn { margin-top: 26px; align-self: flex-start; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 132px;
  padding-bottom: 64px;
  overflow: hidden;
}

.hero-in {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 7px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: rgba(124, 247, 124, 0.05);
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--lime);
  color: #041007;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #041007;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

.hero h1 { margin-bottom: 26px; }

.hero h1 em {
  font-style: normal;
  background: linear-gradient(104deg, var(--lime-soft), var(--lime) 40%, var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(124, 247, 124, 0.3));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 38px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--muted);
}
.hero-note svg { width: 15px; height: 15px; color: var(--emerald); flex: none; }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-visual .orb {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(124, 247, 124, 0.20), rgba(34, 208, 126, 0.06) 42%, transparent 68%);
  filter: blur(28px);
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.09); opacity: 1; }
}

.hero-visual .rings {
  position: absolute;
  inset: 0;
  animation: spin 64s linear infinite;
}
.hero-visual .rings::before,
.hero-visual .rings::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}
.hero-visual .rings::before { inset: 4%; }
.hero-visual .rings::after  { inset: 17%; border-style: dashed; border-color: var(--line); }

@keyframes spin { to { transform: rotate(360deg); } }

.hero-art {
  position: relative;
  z-index: 2;
  width: 82%;
  height: auto;              /* without this the 760px height attribute wins */
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(1.2deg); }
}

/* Floating data chips around hero art */
.chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(10, 23, 16, 0.82);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.8);
  animation: float 8s ease-in-out infinite;
}
.chip > span:last-child { display: grid; gap: 1px; }
.chip-k { display: block; font-size: 0.66rem; line-height: 1.3; color: var(--muted); letter-spacing: 0.09em; text-transform: uppercase; }
.chip-v { display: block; font-family: var(--font-mono); font-size: 0.94rem; line-height: 1.2; font-weight: 500; color: var(--lime); }
.chip .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(124, 247, 124, 0.11); }
.chip .dot svg { width: 15px; height: 15px; color: var(--lime); }

.chip-1 { top: 11%; left: -4%; animation-delay: -1.4s; }
.chip-2 { bottom: 19%; right: -5%; animation-delay: -3.6s; }
.chip-3 { bottom: 5%; left: 7%; animation-delay: -5.2s; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
.scroll-hint .line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--line-3), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint .line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 42%;
  background: var(--lime);
  animation: trickle 2.4s var(--ease-io) infinite;
}
@keyframes trickle {
  0%   { transform: translateY(-100%); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(240%); opacity: 0; }
}

/* ---------- 10. Stat bar ---------- */
.statbar {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 23, 16, 0.55), transparent);
}

.statbar-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 30px 26px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }

.stat-v {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-v .u { color: var(--lime); }

.stat-k {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- 11. Cycle (how it works) ---------- */
.cycle-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.cycle-steps { display: grid; gap: 12px; }

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  cursor: default;
}

.step.active {
  background: linear-gradient(140deg, var(--surface-2), transparent 78%);
  border-color: var(--line);
}

.step-n {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.5s var(--ease);
}

.step.active .step-n {
  background: var(--lime);
  border-color: var(--lime);
  color: #041007;
  box-shadow: var(--glow-sm);
}

.step h3 { margin-bottom: 7px; }
.step p { font-size: 0.94rem; }

/* Growing tree */
.tree-stage {
  position: sticky;
  top: 108px;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 55% at 50% 96%, rgba(34, 208, 126, 0.14), transparent 70%),
    linear-gradient(170deg, var(--surface-2), var(--bg-2));
  overflow: hidden;
}

.tree-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 68% 68% at 50% 50%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 68% 68% at 50% 50%, #000, transparent 76%);
}

#growTree { width: 82%; position: relative; z-index: 2; }

#growTree path, #growTree line {
  stroke-linecap: round;
  stroke-linejoin: round;
}

#growTree .lf { transform-box: fill-box; transform-origin: center; }

.tree-caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(5, 11, 7, 0.72);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}

/* ---------- 12. Tiers ---------- */

/* The artwork ships with a baked alpha channel (see scratchpad/alpha.ps1).
   mix-blend-mode:screen was the first attempt and is NOT usable here: any
   ancestor with a z-index or transform isolates the blend group, so the black
   plate stays visible. Real alpha has no such dependency.

   This class must NOT set `height`: the tier cards constrain their artwork
   with `.tier-art img { height:100% }`, and a competing declaration here
   blows the image straight out of its box. */
.glow-art {
  filter: drop-shadow(0 18px 50px rgba(124, 247, 124, 0.22));
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(172deg, var(--surface-2), var(--surface) 68%);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.tier::after {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: 130%; height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(124, 247, 124, 0.16), transparent 66%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.tier:hover {
  transform: translateY(-7px);
  border-color: var(--line-2);
  box-shadow: 0 30px 70px -40px rgba(124, 247, 124, 0.5);
}
.tier:hover::after { opacity: 1; }

.tier.featured {
  border-color: var(--line-3);
  background: linear-gradient(172deg, var(--surface-3), var(--surface) 70%);
  box-shadow: 0 30px 80px -46px rgba(124, 247, 124, 0.7);
}
.tier.featured::after { opacity: 0.7; }

.tier-flag {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--lime);
  color: #041007;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tier-art {
  position: relative;
  z-index: 2;
  height: 158px;
  margin-bottom: 18px;
}
/* Absolutely positioned, not a grid/flex child: `height:100%` inside an
   auto-sized grid row has no definite reference and silently falls back to
   the image's intrinsic height, blowing it out of the card. Anchoring to a
   parent that does have a definite height removes the ambiguity. */
.tier-art img, .tier-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}
.tier:hover .tier-art img, .tier:hover .tier-art svg { transform: translateY(-5px) scale(1.06); }

.tier-name {
  position: relative; z-index: 2;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 3px;
}

.tier-sub {
  position: relative; z-index: 2;
  font-size: 0.79rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.tier-apr {
  position: relative; z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.tier-apr b {
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--lime);
  white-space: nowrap;
}
.tier-apr span { font-size: 0.78rem; color: var(--muted); }

/* Tier index chip, top-left of each card */
.tier-n {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(5, 11, 7, 0.7);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.tier.featured .tier-n { color: var(--lime); border-color: var(--line-2); }

.tier-list {
  position: relative; z-index: 2;
  display: grid;
  gap: 11px;
  margin-bottom: 24px;
  flex: 1;
}
.tier-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.87rem;
  color: var(--text-2);
}
.tier-list svg { width: 15px; height: 15px; color: var(--emerald); margin-top: 3px; }

.tier .btn { position: relative; z-index: 2; width: 100%; }

/* ---------- 13. Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature .ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(124, 247, 124, 0.16), rgba(34, 208, 126, 0.05));
  border: 1px solid var(--line-2);
  margin-bottom: 20px;
}
.feature .ico svg { width: 21px; height: 21px; color: var(--lime); }
.feature h3 { margin-bottom: 9px; font-size: 1.14rem; }
.feature p { font-size: 0.92rem; }

/* Big split feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split.rev .split-media { order: -1; }

.split-media {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.split-media img { width: 76%; height: auto; }
.split-media .aurora span { opacity: 0.38; }

.kv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.kv > div { background: var(--bg); padding: 20px 22px; }
.kv b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.62rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 6px;
}
.kv span { font-size: 0.79rem; color: var(--muted); }

/* ---------- 14. Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 62px;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.35s var(--ease);
}
.marquee-track span:hover { color: var(--lime); }
.marquee-track span::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 15. Tokenomics ---------- */
.tok {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.donut-wrap { position: relative; display: grid; place-items: center; }
.donut { width: 100%; max-width: 380px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; stroke-linecap: butt; }

.donut-center {
  position: absolute;
  text-align: center;
}
.donut-center b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.donut-center span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tok-legend { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tok-legend li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  background: var(--bg);
  transition: background 0.35s var(--ease);
}
.tok-legend li:hover { background: var(--surface); }
.tok-legend .sw { width: 11px; height: 11px; border-radius: 3px; }
.tok-legend .lb { font-size: 0.92rem; font-weight: 500; }
.tok-legend .lb small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.tok-legend .pc { font-family: var(--font-mono); font-size: 0.96rem; color: var(--text); }

/* ---------- 16. Roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.roadmap::before {
  content: '';
  position: absolute;
  top: 27px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), var(--line-2) 62%, transparent);
}
.phase { padding: 0 22px 0 0; position: relative; }
.phase-dot {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--dim);
  margin: 20px 0 30px;
  z-index: 2;
}
.phase.done .phase-dot { background: var(--lime); border-color: var(--lime); box-shadow: var(--glow-sm); }
.phase.now .phase-dot { border-color: var(--lime); }
.phase.now .phase-dot::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--lime);
  animation: ripple 2.2s ease-out infinite;
}
@keyframes ripple {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.phase-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.phase.done .phase-tag, .phase.now .phase-tag { color: var(--lime); }
.phase h3 { font-size: 1.16rem; margin-bottom: 12px; }
.phase ul { display: grid; gap: 8px; }
.phase li {
  font-size: 0.87rem;
  color: var(--text-2);
  padding-left: 17px;
  position: relative;
}
.phase li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--dim);
}
.phase.done li::before, .phase.now li::before { background: var(--emerald); }

/* ---------- 17. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.qa-q:hover { color: var(--lime); }
.qa-ic {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.qa-ic::before, .qa-ic::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity 0.35s var(--ease);
}
.qa-ic::before { width: 11px; height: 1.5px; }
.qa-ic::after  { width: 1.5px; height: 11px; }
.qa.open .qa-ic { transform: rotate(180deg); background: rgba(124, 247, 124, 0.1); border-color: var(--line-3); }
.qa.open .qa-ic::after { opacity: 0; }
.qa-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.qa.open .qa-a { grid-template-rows: 1fr; }
.qa-a > div { overflow: hidden; }
.qa-a p { padding: 0 60px 28px 4px; font-size: 0.95rem; }

/* ---------- 18. CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  overflow: hidden;
  padding: clamp(48px, 7vw, 92px) clamp(28px, 5vw, 72px);
  text-align: center;
  background: linear-gradient(160deg, var(--surface-3), var(--bg-2) 72%);
}
.cta-band h2 { margin-bottom: 18px; position: relative; z-index: 2; }
.cta-band .lede { margin-inline: auto; position: relative; z-index: 2; }
.cta-band .hero-actions { justify-content: center; position: relative; z-index: 2; }

/* ---------- 19. Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 72px;
  padding-bottom: 34px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 44px;
  padding-bottom: 52px;
}
.footer-brand p { font-size: 0.9rem; margin: 18px 0 22px; max-width: 34ch; }
.socials { display: flex; gap: 9px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: all 0.35s var(--ease);
}
.socials a:hover {
  color: var(--lime);
  border-color: var(--line-3);
  background: rgba(124, 247, 124, 0.07);
  transform: translateY(-2px);
}
.socials svg { width: 17px; height: 17px; }

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 0.9rem; color: var(--text-2); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--lime); }

.contract-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 30px;
}
.contract-strip .lbl {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contract-strip code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--lime);
  word-break: break-all;
  flex: 1;
  min-width: 200px;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  font-size: 0.78rem;
  color: var(--text-2);
  transition: all 0.3s var(--ease);
}
.copy-btn:hover { color: var(--lime); border-color: var(--line-3); background: rgba(124, 247, 124, 0.06); }
.copy-btn svg { width: 14px; height: 14px; }

.footer-bot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-bot nav { display: flex; gap: 20px; }
.footer-bot a:hover { color: var(--lime); }

.disclaimer {
  margin-top: 22px;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--dim);
  max-width: 92ch;
}

/* ---------- 20. Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: 0.08s; }
[data-reveal][data-d="2"] { transition-delay: 0.16s; }
[data-reveal][data-d="3"] { transition-delay: 0.24s; }
[data-reveal][data-d="4"] { transition-delay: 0.32s; }

/* Split-line headline reveal */
.line-mask { display: block; overflow: hidden; }
.line-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.in .line-mask > span, .line-mask.in > span { transform: none; }
.line-mask:nth-child(2) > span { transition-delay: 0.1s; }
.line-mask:nth-child(3) > span { transition-delay: 0.2s; }

/* Toast */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translate(-50%, 130%);
  z-index: 9999;
  padding: 13px 22px;
  border-radius: 99px;
  background: var(--surface-3);
  border: 1px solid var(--line-3);
  box-shadow: var(--glow);
  font-size: 0.88rem;
  transition: transform 0.55s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1180px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { max-width: 460px; margin-inline: auto; order: -1; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
  .cycle-grid, .tok, .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .tree-stage { position: relative; top: 0; max-width: 480px; margin-inline: auto; }
  .roadmap { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .roadmap::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .burger { display: flex; margin-left: auto; }
  .nav-cta { margin-left: 0; }
  .statbar-in { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .tiers { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .kv { grid-template-columns: 1fr; }
  .qa-a p { padding-right: 8px; }
  .hero { padding-top: 108px; }
  #leaves { display: none; }
}

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .line-mask > span { transform: none; }
  #leaves, .spotlight { display: none; }
}

/* =============================================================
   LEAF V2 — visual refinement layer
   Premium botanical interface: less neon, stronger hierarchy,
   sharper cards, cleaner spacing and more deliberate contrast.
   ============================================================= */
:root {
  --bg: #060906;
  --bg-2: #090e0a;
  --surface: #0c120e;
  --surface-2: #101812;
  --surface-3: #142019;
  --lime: #82ee91;
  --lime-soft: #b8f7bf;
  --emerald: #38c77a;
  --moss: #5e9f70;
  --text: #f1f7f2;
  --text-2: #a7b6aa;
  --muted: #748479;
  --dim: #536158;
  --line: rgba(214, 242, 220, .075);
  --line-2: rgba(180, 235, 190, .15);
  --line-3: rgba(130, 238, 145, .34);
  --glow-sm: 0 12px 34px -22px rgba(92, 222, 116, .55);
  --glow: 0 22px 70px -34px rgba(92, 222, 116, .48);
  --glow-lg: 0 48px 130px -64px rgba(92, 222, 116, .52);
  --maxw: 1320px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

body {
  background:
    radial-gradient(900px 540px at 82% -10%, rgba(70, 173, 99, .10), transparent 64%),
    radial-gradient(760px 480px at -10% 20%, rgba(47, 133, 79, .08), transparent 65%),
    var(--bg);
}

body::after { opacity: .018; }
#leaves { opacity: .22; }
.gridlines { opacity: .42; }
.aurora span { opacity: .28; filter: blur(110px); }
.spotlight { background: radial-gradient(circle, rgba(130,238,145,.035), transparent 66%); }

h1, h2, h3, h4 { letter-spacing: -.045em; }
h1 { font-size: clamp(3.4rem, 7.7vw, 6.55rem); }
h2 { font-size: clamp(2.25rem, 4.3vw, 3.8rem); }
.lede { color: #aebbb1; line-height: 1.72; }

.section { padding-block: clamp(92px, 10vw, 154px); }
.section-head { max-width: 760px; }
.eyebrow { color: #83d990; letter-spacing: .18em; }

/* floating command bar */
.nav { top: 14px; padding-block: 0; }
.nav.stuck { background: transparent; border-bottom-color: transparent; padding-block: 0; }
.nav-in {
  min-height: 64px;
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(7, 11, 8, .72);
  box-shadow: 0 16px 50px -34px #000, inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}
.brand { font-size: 1.07rem; }
.brand img, .brand svg { filter: drop-shadow(0 0 12px rgba(130,238,145,.28)); }
.nav-links { gap: 0; }
.nav-links a { padding: 9px 13px; color: #96a59a; }
.nav-links a:hover { background: rgba(255,255,255,.035); color: var(--text); }

.btn { border-radius: 12px; font-weight: 600; }
.btn-primary {
  background: linear-gradient(180deg, #a8f4b1 0%, #7ce88b 100%);
  box-shadow: 0 10px 28px -18px rgba(108, 230, 129, .8), inset 0 1px 0 rgba(255,255,255,.48);
}
.btn-primary::before { display: none; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -18px rgba(108,230,129,.9); }
.btn-ghost {
  background: rgba(255,255,255,.025);
  border-color: rgba(220,245,225,.12);
  backdrop-filter: blur(14px);
}
.btn-ghost:hover { transform: translateY(-1px); background: rgba(255,255,255,.055); box-shadow: none; }

/* hero */
.hero { min-height: 940px; padding-top: 118px; padding-bottom: 76px; }
.hero-in { grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr); gap: clamp(44px, 6vw, 92px); }
.hero-copy { max-width: 700px; }
.badge {
  margin-bottom: 30px;
  padding: 6px 11px 6px 6px;
  background: rgba(255,255,255,.025);
  border-color: rgba(216,245,222,.12);
}
.badge b { background: rgba(130,238,145,.13); color: #a9f4b2; border: 1px solid rgba(130,238,145,.2); }
.badge i { background: var(--lime); box-shadow: 0 0 9px var(--lime); }
.hero h1 { max-width: 10.2ch; margin-bottom: 28px; }
.hero h1 em {
  background: linear-gradient(100deg, #d4f8d8 0%, #88ed95 42%, #4dca82 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: none;
}
.hero .lede { max-width: 61ch; }
.hero-actions { margin-top: 34px; gap: 10px; }
.hero-note {
  width: fit-content;
  padding: 10px 12px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.018);
}
.hero-visual {
  aspect-ratio: 1 / 1.06;
  border-radius: 36px;
  border: 1px solid rgba(205,240,212,.09);
  background:
    linear-gradient(145deg, rgba(255,255,255,.028), rgba(255,255,255,.008)),
    radial-gradient(circle at 50% 42%, rgba(90,205,111,.10), transparent 54%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 38px 90px -64px #000;
  overflow: visible;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.032);
  pointer-events: none;
}
.hero-visual .rings { inset: 8%; opacity: .42; }
.hero-visual .orb { inset: 13%; opacity: .7; }
.hero-art { width: 82%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.34)); }
.glow-art { filter: drop-shadow(0 18px 34px rgba(53, 188, 91, .17)); }
.chip {
  border-radius: 12px;
  background: rgba(8,13,9,.88);
  border-color: rgba(201,241,209,.13);
  box-shadow: 0 14px 38px -22px #000;
}
.chip svg { width: 17px; height: 17px; color: #86e993; }
.chip-k { color: #738078; }
.chip-v { color: #d5f6d9; }
.chip-1 { top: 9%; left: -5%; }
.chip-2 { right: -5%; bottom: 26%; }
.chip-3 { left: 7%; bottom: -2%; }
.scroll-hint { opacity: .58; }

/* metrics become a dashboard strip */
.statbar { border-block: 0; background: transparent; }
.statbar-in {
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(12,18,14,.74);
  box-shadow: 0 22px 70px -56px #000;
}
.stat { padding: 26px clamp(20px,3vw,34px); }
.stat-v { font-size: clamp(1.45rem, 2.4vw, 2rem); color: #edf7ef; }
.stat-k { color: #718078; }

/* stronger information cards */
.card, .tier, .tree-stage, .cta-band {
  background: linear-gradient(165deg, rgba(18,28,21,.92), rgba(9,14,10,.94) 70%);
  border-color: rgba(209,241,215,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}
.card:hover, .tier:hover { transform: translateY(-3px); }
.card::before { background: radial-gradient(330px circle at var(--mx,50%) var(--my,0%), rgba(130,238,145,.26), transparent 64%); }

.cycle-grid { gap: clamp(28px, 5vw, 74px); }
.step { border-radius: 16px; border-color: transparent; background: transparent; }
.step:hover { background: rgba(255,255,255,.018); }
.step.active { background: linear-gradient(135deg, rgba(130,238,145,.07), rgba(255,255,255,.012)); border-color: rgba(130,238,145,.14); box-shadow: none; }
.step-n { color: #66746b; }
.step.active .step-n { color: #b7f4bd; background: rgba(130,238,145,.08); }
.tree-stage { border-radius: 26px; }

/* tiers: 3x2 premium product grid on desktop */
.tiers { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier { border-radius: 22px; padding: clamp(22px, 2.2vw, 30px); }
.tier::after { opacity: .12; }
.tier:hover::after { opacity: .38; }
.tier.featured { border-color: rgba(130,238,145,.26); box-shadow: 0 24px 70px -54px rgba(95,213,117,.6); }
.tier-flag {
  border-radius: 8px;
  color: #b7f4bd;
  background: rgba(130,238,145,.08);
  border: 1px solid rgba(130,238,145,.16);
}
.tier-art { height: 168px; }
.tier-art img, .tier-art svg { max-height: 172px; }
.tier-name { font-size: 1.36rem; }
.tier-sub { color: #718078; }
.tier-apr { border-block-color: rgba(255,255,255,.055); }
.tier-apr b { color: #bff5c5; }
.tier-list li { color: #a0afa4; }

.features { gap: 14px; }
.feature { border-radius: 18px; }
.marquee { opacity: .66; }
.tok { gap: clamp(36px,6vw,80px); }
.tok-legend { border-radius: 16px; background: rgba(255,255,255,.045); }
.tok-legend li { background: #090e0a; }
.tok-legend li:hover { background: #0f1711; }

.phase-dot { box-shadow: none !important; }
.phase.now .phase-dot::after { opacity: .45; }
.faq { max-width: 900px; }
.qa-q { padding-block: 24px; }
.qa-ic { border-radius: 9px; }

.cta-band {
  border-radius: 28px;
  background:
    radial-gradient(700px 260px at 50% 0%, rgba(86,194,105,.10), transparent 70%),
    linear-gradient(160deg, #111a13, #080d09 72%);
}

.footer { padding-top: 62px; }
.footer-grid { gap: 52px; }
.socials a { border-radius: 10px; }
.contract-strip { border-radius: 14px; }

@media (max-width: 1180px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr 470px; }
}
@media (max-width: 1080px) {
  .hero { min-height: auto; padding-top: 126px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(520px, 100%); max-width: 520px; order: 0; margin-top: 20px; }
}
@media (max-width: 860px) {
  .nav { top: 8px; }
  .nav-in { min-height: 58px; border-radius: 16px; }
  .statbar-in { border-radius: 16px; }
}
@media (max-width: 620px) {
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero { padding-top: 102px; padding-bottom: 52px; }
  .hero h1 { max-width: 9ch; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-note { align-items: flex-start; }
  .hero-visual { border-radius: 24px; }
  .hero-visual::before { border-radius: 17px; }
  .chip { padding: 8px 10px; }
  .chip-1 { left: -2%; top: 7%; }
  .chip-2 { right: -2%; bottom: 23%; }
  .chip-3 { left: 5%; bottom: -2%; }
  .tiers { grid-template-columns: 1fr; }
}
