@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,800;1,400&display=swap');

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

:root {
  --bg: #0E0E0E;
  --text-primary: #EDEAE4;
  --text-secondary: #A0A0A0;
  --accent: #5A9E6F;
  --accent-hover: #7EC98A;
  --divider: #222222;
  --border-soft: #1C1C1C;
  --border-mid: #2A2A2A;
  --serif: 'Playfair Display', Georgia, serif;
  --card-bg: #141414;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 90% at -8% 45%, rgba(42,82,55,0.18) 0%, transparent 62%),
    radial-gradient(ellipse 55% 90% at 108% 60%, rgba(42,82,55,0.13) 0%, transparent 62%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── INTRO OVERLAY ─── */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: #0E0E0E;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1);
}
.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.intro-svg { width: 190px; height: 152px; }
.ic-left {
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  animation: draw-c 1.5s cubic-bezier(0.4,0,0.2,1) forwards 0.3s;
}
.ic-right {
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  animation: draw-c 1.5s cubic-bezier(0.4,0,0.2,1) forwards 0.75s;
}
@keyframes draw-c { to { stroke-dashoffset: 0; } }
.intro-wordmark {
  font-family: 'Geist', sans-serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #EDEAE4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.intro-wordmark.show { opacity: 1; transform: translateY(0); }

/* ─── EXIT FADE ─── */
#exit-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.22s ease;
}

/* ─── CURSOR GLOW ─── */
.cursor-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,158,111,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.1s ease, top 0.1s ease;
  will-change: left, top;
}

/* ─── SECTION LABEL ─── */
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.72s cubic-bezier(0.16,1,0.3,1), transform 0.72s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--delay, 0s);
}
.reveal-up.fired { opacity: 1; transform: translateY(0); }

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--sd, 0s);
}
.scroll-reveal.in-view { opacity: 1; transform: translateY(0); }

/* ─── STAGGER REVEAL ─── */
.stagger-group .stagger-line {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.stagger-group .stagger-line.in-view { opacity: 1; transform: translateY(0); }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(14,14,14,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.3s ease, background 0.3s ease;
}
nav.scrolled { border-bottom-color: var(--border-soft); }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-cta {
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-mid);
  background: transparent;
  padding: 8px 16px;
  border-radius: 6px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(90,158,111,0.06);
}

/* ─── HERO ─── */
#hero {
  min-height: 96vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  text-align: left;
  padding: 130px max(8vw, 64px) 80px;
  position: relative;
}

/* Orbs wrapper allows overflow clip without breaking sticky */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}
.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(90,158,111,0.07) 0%, transparent 70%);
  top: 0; left: 50%;
  transform: translateX(-50%);
  animation: orb1 9s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(90,158,111,0.04) 0%, transparent 70%);
  bottom: 20%; right: 10%;
  animation: orb2 12s ease-in-out infinite;
}
@keyframes orb1 {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-28px); }
}
@keyframes orb2 {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.villain-line {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  will-change: transform;
}

.hero-inner { max-width: 720px; position: relative; z-index: 1; }
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(44px, 6.8vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.07;
  color: var(--text-primary);
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-headline em { font-style: italic; color: var(--accent); }
.h-line { display: block; }
.hero-body {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 28px 0 0;
  line-height: 1.7;
}
.hero-links {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
  justify-content: flex-start;
}
.hero-divider { height: 14px; width: 1px; background: var(--border-mid); flex-shrink: 0; }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.hero-link:hover { color: var(--accent-hover); gap: 10px; }

/* ─── PULSING ACCENT LINE ─── */
.hero-pulse-wrap {
  position: absolute;
  bottom: 88px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1px;
}
.pulse-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(90,158,111,0.25) 25%, rgba(90,158,111,0.25) 75%, transparent 100%);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  z-index: 1;
  animation: pulse-breathe 2.6s ease-in-out infinite;
}
@keyframes pulse-breathe {
  0%,100% { transform: scale(1); opacity: 0.75; box-shadow: 0 0 0 0 rgba(90,158,111,0); }
  50% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 0 5px rgba(90,158,111,0.15); }
}

/* ─── SCROLL CUE ─── */
.scroll-cue { position: absolute; bottom: 32px; left: max(8vw, 64px); transform: none; }
.scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, transparent, var(--text-secondary));
  margin: 0 auto;
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 0.25; }
  50% { opacity: 0.6; }
}

/* ─── CHAPTER BREAK ─── */
#chapter-break {
  background: #0B1A10;
  padding: 88px 24px;
  text-align: center;
  position: relative;
}
#chapter-break::before,
#chapter-break::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #162114 25%, #162114 75%, transparent);
}
#chapter-break::before { top: 0; }
#chapter-break::after { bottom: 0; }
.chapter-text {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

/* ─── STATS ─── */
#stats {
  padding: 90px 24px;
  position: relative;
}
#stats::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 40px;
}
/* Glow behind the main stat number */
.stat-item:first-child .stat-big {
  position: relative;
}
.stat-item:first-child .stat-big::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 260px; height: 180px;
  background: radial-gradient(ellipse, rgba(90,158,111,0.13) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}
.stat-item:first-child .stat-big .count { position: relative; z-index: 1; }
.stat-divider { width: 1px; height: 60px; background: var(--divider); flex-shrink: 0; }
.stat-big {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}
.stat-label { font-size: 16px; color: var(--text-secondary); }

/* ─── LOGO STRIP ─── */
#trusted {
  padding: 80px 24px;
  position: relative;
  background: rgba(255,255,255,0.012);
}
#trusted::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent);
}
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 52px 72px;
  max-width: 1000px;
  margin: 0 auto;
}
.logo-item { display: flex; align-items: center; text-decoration: none; }
.logo-item img {
  max-height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.25s ease;
}
.logo-item:hover img { opacity: 1; }

/* ─── TESTIMONIAL ─── */
#testimonial {
  padding: 100px 24px;
  text-align: center;
  position: relative;
}
#testimonial::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent);
}
.testimonial-inner { max-width: 680px; margin: 0 auto; }
.testimonial-mark {
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.25;
  margin-bottom: 28px;
  display: block;
}
.testimonial-text {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 32px;
}
.testimonial-attr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.testimonial-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; opacity: 0.5; }
.testimonial-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.testimonial-sep { color: var(--text-secondary); font-size: 13px; }
.testimonial-role { font-size: 13px; color: var(--text-secondary); }

/* ─── TYPOGRAPHIC MOMENT: Free. (left-offset + bullets) ─── */
#type-moment {
  padding: 80px 24px 72px;
  position: relative;
}
#type-moment::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent);
}
.type-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: max(4vw, 24px);
}
.type-left { flex-shrink: 0; }
.type-big {
  display: block;
  font-family: var(--serif);
  font-size: clamp(88px, 16vw, 168px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--accent);
}
.type-right { flex: 1; }
.type-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.type-bullets li {
  font-size: 18px;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}
.type-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}
.type-caption { display: none; }

/* ─── HOW IT WORKS ─── */
#how-it-works { padding: 120px 24px; }
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-top {
  display: flex;
  align-items: flex-end;
  gap: 80px;
  margin-bottom: 72px;
}
.how-left { flex: 0 0 auto; max-width: 300px; }
.how-heading {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-top: 16px;
}
.how-right { flex: 1; display: flex; justify-content: center; align-items: center; }

/* ─── SVG DIAGRAM ─── */
.process-svg { width: 100%; max-width: 520px; overflow: visible; }
.svg-node {
  fill: none;
  stroke: #2A2A2A;
  stroke-width: 1;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.4,0,0.2,1);
}
.svg-node.drawn { stroke-dashoffset: 0; }
.svg-node-accent {
  stroke: var(--accent);
  fill: rgba(90,158,111,0.06);
  transition: stroke-dashoffset 0.9s cubic-bezier(0.4,0,0.2,1), filter 0.7s ease 0.3s;
}
/* Warm Intro node glows after all nodes are drawn */
.process-svg.diagram-complete .svg-node-accent {
  filter: drop-shadow(0 0 9px rgba(90,158,111,0.45));
}
.svg-label {
  font-family: 'Geist', sans-serif;
  font-size: 9.5px;
  fill: #5A5A5A;
  text-anchor: middle;
  dominant-baseline: middle;
}
.svg-label-accent { fill: var(--accent); }
.svg-arrow {
  stroke: #2A2A2A;
  stroke-width: 1;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  transition: stroke-dashoffset 0.45s ease;
}
.svg-arrow.drawn { stroke-dashoffset: 0; }
.svg-head {
  fill: none;
  stroke: #2A2A2A;
  stroke-width: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.svg-head.drawn { opacity: 1; }

/* ─── STEPS ─── */
.steps-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--divider);
}
.step {
  flex: 1;
  padding: 48px 48px 48px 0;
  border-right: 1px solid var(--divider);
  position: relative;
  background: var(--card-bg);
  transition: background 0.3s ease;
}
.step:hover { background: #181818; }
.step:last-child { border-right: none; padding-right: 0; padding-left: 48px; }
.step:not(:first-child):not(:last-child) { padding-left: 48px; }

/* Signature hover: green line grows down left side of each step */
.step::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 0;
  background: var(--accent);
  transition: height 0.55s cubic-bezier(0.16,1,0.3,1);
}
.step:hover::before { height: 100%; }
.step:first-child::before { left: 0; }

.step-top { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
/* CTA discipline: step numbers use secondary color, not accent */
.step-number { font-size: 12px; color: var(--text-secondary); font-weight: 500; letter-spacing: 0.05em; flex-shrink: 0; }
.step-line-el { flex: 1; height: 1px; background: var(--divider); transition: background 0.35s ease; }
.step-title { font-size: 19px; font-weight: 600; color: var(--text-primary); margin-bottom: 14px; letter-spacing: -0.02em; }
.step-body { font-size: 18px; color: var(--text-secondary); line-height: 1.7; }

/* ─── JOIN ─── */
#join {
  padding: 140px 24px;
  background: #0A160F;
  position: relative;
}
#join::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(90,158,111,0.22) 30%, rgba(90,158,111,0.22) 70%, transparent);
}
.join-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
}
.join-col { flex: 1; padding: 0 64px; }
.join-col:first-child {
  padding-left: 0;
  border-right: 1px solid rgba(90,158,111,0.1);
}
.join-col:last-child { padding-right: 0; }
.join-heading {
  font-family: var(--serif);
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 14px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.join-body { font-size: 18px; color: var(--text-secondary); line-height: 1.7; max-width: 380px; }
.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 14px;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease, box-shadow 0.2s ease;
}
.join-btn:hover {
  background: var(--accent);
  color: #0A160F;
  gap: 12px;
  box-shadow: 0 0 24px rgba(90,158,111,0.22);
}

/* ─── FOOTER ─── */
footer {
  border-top: none;
  padding: 48px 24px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-text { font-size: 13px; color: var(--text-secondary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text-primary); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  #hero {
    padding: 110px 24px 80px;
    text-align: left;
  }
  .scroll-cue { left: 24px; }
  .nav-links { display: none; }
  .hero-links { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-divider { display: none; }
  .hero-body { max-width: 100%; }
  .how-top { flex-direction: column; gap: 40px; align-items: flex-start; }
  .how-left { max-width: 100%; }
  .how-right { justify-content: flex-start; width: 100%; }
  .process-svg { max-width: 100%; }
  .stats-inner { flex-direction: column; gap: 36px; }
  .stat-divider { width: 40px; height: 1px; }
  .steps-row { flex-direction: column; border-top: none; }
  .step { padding: 0 0 40px 0; border-right: none; border-bottom: 1px solid var(--divider); }
  .step:last-child { border-bottom: none; padding-bottom: 0; }
  .step:not(:first-child) { padding-left: 0; padding-top: 40px; }
  .step::before { display: none; }
  .join-inner { flex-direction: column; }
  .join-col { padding: 0; }
  .join-col:first-child { border-right: none; border-bottom: 1px solid rgba(90,158,111,0.1); padding-bottom: 60px; }
  .join-col:last-child { padding-top: 60px; }
  .testimonial-attr { flex-direction: column; gap: 6px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .type-inner { flex-direction: column; align-items: flex-start; gap: 40px; padding-left: 0; }
  .type-big { font-size: clamp(72px, 22vw, 120px); }
  .type-bullets li { font-size: 16px; }
  .join-heading { font-size: clamp(30px, 8vw, 48px); }
}
