/* Base reset & vars */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0e0e10;
  --surface: #16161a;
  --border: #2a2a30;
  --text: #e8e4dc;
  --text-muted: #8a8a94;
  --accent: #f5a623;
  --green: #34d399;
  --purple: #a78bfa;
  --orange: #fb923c;
  --cyan: #22d3ee;
  --amber: #f5a623;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Navigation ─────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,14,16,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(245,166,35,0.06);
}

.nav-link-active {
  color: var(--accent);
  border-color: rgba(245,166,35,0.4);
  background: rgba(245,166,35,0.08);
}

/* ── Hero ───────────────────────────── */
.hero {
  padding: 80px 32px 64px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
  border: 1px solid rgba(245,166,35,0.2);
  padding: 5px 14px;
  border-radius: 20px;
}

.hero-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--accent);
  color: #0e0e10;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-cta-primary:hover {
  background: #ffb93d;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(245,166,35,0.28);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-cta-secondary:hover {
  color: var(--text);
  border-color: rgba(245,166,35,0.35);
  background: rgba(245,166,35,0.05);
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  width: 100%;
  max-width: 420px;
  opacity: 0.95;
}

/* ── Reality Check ───────────────────── */
.reality {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 32px;
}

.reality-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 6px;
}

.reality-headline {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.reality-body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 580px;
}

/* ── Paths Grid ─────────────────────── */
.paths-section {
  padding: 80px 32px;
}

.paths-header {
  max-width: 1100px;
  margin: 0 auto 48px;
}

.paths-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.paths-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

.paths-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.path-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.path-card:hover {
  border-color: rgba(245,166,35,0.3);
}

.path-indicator {
  height: 4px;
  width: 100%;
}

.path-top {
  padding: 24px 24px 0;
}

.path-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.path-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.path-body {
  padding: 0 24px 20px;
}

.path-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.path-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metric-equals {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-left: auto;
}

.path-footer {
  padding: 16px 24px 20px;
}

.path-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-bottom: 8px;
}

.bar-fill {
  height: 100%;
  border-radius: 2px;
  opacity: 0.8;
}

.bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Comparison Table ───────────────── */
.comparison {
  padding: 64px 32px 80px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

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

.comparison-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

.comp-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.comp-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 0.8fr;
  border-bottom: 1px solid var(--border);
}

.comp-row:last-child {
  border-bottom: none;
}

.comp-header {
  background: rgba(255,255,255,0.04);
}

.comp-header .comp-cell {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
}

.comp-cell {
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--border);
}

.comp-cell:last-child {
  border-right: none;
}

.comp-risk {
  color: var(--accent);
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: var(--green); }
.dot-purple { background: var(--purple); }
.dot-orange { background: var(--orange); }
.dot-amber { background: var(--amber); }
.dot-cyan { background: var(--cyan); }

.comp-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
}

/* ── Manifesto ──────────────────────── */
.manifesto {
  padding: 80px 32px;
  border-top: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-line {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.manifesto-accent {
  font-weight: 600;
  color: var(--text);
}

/* ── Footer ─────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Responsive ─────────────────────── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-right {
    order: -1;
  }

  .hero-visual {
    max-width: 320px;
  }

  .hero-sub {
    max-width: 100%;
  }

  .reality-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat-number {
    font-size: 3.5rem;
  }

  .comp-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .comp-header {
    display: none;
  }

  .comp-row .comp-cell:nth-child(n+3) {
    display: none;
  }

  .comp-row::before {
    content: attr(data-path);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    grid-column: 1 / -1;
    padding: 12px 20px 4px;
    border-bottom: 1px solid var(--border);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 20px 48px;
  }

  .reality, .paths-section, .comparison, .manifesto, .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .paths-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Text selection */
::selection { background: rgba(245,166,35,0.3); color: var(--text); }

/* ── Scroll-reveal animation ─────────────────── */
.ps-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.ps-animate.ps-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Matrix Teaser (between paths and comparison) ─── */
.matrix-teaser {
  padding: 72px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(245,166,35,0.03) 0%, transparent 100%);
}

.matrix-teaser-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.matrix-teaser-text {}

.matrix-teaser-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.matrix-teaser-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.matrix-teaser-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.matrix-teaser-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.matrix-teaser-stats {
  display: flex;
  gap: 28px;
}

.matrix-stat {
  text-align: center;
}

.matrix-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.matrix-stat-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4px;
}

.matrix-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.matrix-teaser-link:hover {
  background: rgba(245,166,35,0.18);
  border-color: rgba(245,166,35,0.5);
  transform: translateY(-1px);
}

/* ── Homepage CTA ────────────────────────────── */
.home-cta {
  padding: 80px 32px;
  text-align: center;
}

.home-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.home-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.home-cta-headline em {
  font-style: italic;
  color: var(--accent);
}

.home-cta-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.home-cta-form {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.home-email-input {
  padding: 12px 18px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  width: 260px;
  transition: border-color 0.2s;
}

.home-email-input::placeholder {
  color: var(--text-muted);
}

.home-email-input:focus {
  outline: none;
  border-color: rgba(245,166,35,0.5);
}

.home-email-input:focus-visible {
  outline: none;
}

.home-success {
  display: none;
  padding: 18px;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: 10px;
  color: #34d399;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.home-success.home-visible {
  display: block;
}

.home-cta-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .matrix-teaser-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .matrix-teaser-stats {
    gap: 20px;
  }

  .home-email-input {
    width: 100%;
  }

  .home-cta-form {
    flex-direction: column;
    align-items: stretch;
  }
}
