/* ── Landing Page Styles ─────────────────────────────────────────────────────── */
/* Loads after main.css — inherits all CSS variables, reset, fonts              */

/* ── Extended Type Scale ────────────────────────────────────────────────────── */
:root {
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 56px;
  --text-hero: 64px;
}

/* ── Utility ────────────────────────────────────────────────────────────────── */
.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Scroll Reveal ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Landing Nav ────────────────────────────────────────────────────────────── */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.landing-nav.scrolled {
  background: rgba(6, 13, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.landing-nav-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.landing-nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.landing-nav-wordmark {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green);
  background: transparent;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn-ghost:hover {
  background: rgba(0, 230, 118, 0.08);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.15);
}

/* ── Hero Section ───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(5, 11, 10, 0.7) 0%,
    rgba(5, 11, 10, 0.5) 40%,
    rgba(5, 11, 10, 0.85) 100%
  );
}

/* Grid bg */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.hero-content {
  flex: 0 0 60%;
  max-width: 60%;
}
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Hero text */
.hero-headline {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  color: var(--text-primary);
}
.hero-headline .highlight {
  color: var(--green);
}
.hero-subline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: var(--space-8);
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  background: var(--green);
  color: var(--bg-base);
  border: none;
  border-radius: 8px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
  cursor: pointer;
}
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Hero stats strip */
.hero-stats {
  display: flex;
  gap: var(--space-8);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--green);
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero Ruthie image */
.hero-ruthie-fallback {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-ruthie-fallback img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid rgba(0, 230, 118, 0.25);
  object-fit: cover;
  filter: drop-shadow(0 0 24px rgba(0, 230, 118, 0.25));
  transition: filter 0.3s ease;
}
.hero-ruthie-fallback img:hover {
  filter: drop-shadow(0 0 40px rgba(0, 230, 118, 0.45));
}

/* Floating particles (CSS-only) */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.hero-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--green);
  border-radius: 50%;
  opacity: 0.15;
  animation: particle-float 12s infinite ease-in-out;
}
.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 14s; }
.hero-particles span:nth-child(2) { left: 30%; top: 60%; animation-delay: -3s; animation-duration: 11s; }
.hero-particles span:nth-child(3) { left: 50%; top: 35%; animation-delay: -6s; animation-duration: 16s; }
.hero-particles span:nth-child(4) { left: 70%; top: 70%; animation-delay: -2s; animation-duration: 13s; }
.hero-particles span:nth-child(5) { left: 85%; top: 15%; animation-delay: -8s; animation-duration: 10s; }
.hero-particles span:nth-child(6) { left: 20%; top: 80%; animation-delay: -4s; animation-duration: 15s; }

@keyframes particle-float {
  0%, 100% { transform: translate(0, 0); opacity: 0.15; }
  25% { transform: translate(15px, -30px); opacity: 0.3; }
  50% { transform: translate(-10px, -50px); opacity: 0.1; }
  75% { transform: translate(20px, -20px); opacity: 0.25; }
}

/* ── Section-level shared styles ──────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section-eyebrow {
  font-size: var(--text-xs);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Section video + poster pattern */
.section-video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}
.section-poster {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  display: none; /* shown via JS for reduced motion */
}

/* ── S2: The Mind ─────────────────────────────────────────────────────────── */
.mind-section {
  padding: 100px 0;
  background: var(--bg-surface);
}
.mind-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}
.mind-video-col {
  position: relative;
}
.mind-content {
  padding: var(--space-4) 0;
}
.mind-layers {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.mind-layer {
  border-left: 3px solid var(--green);
  padding-left: var(--space-5);
}
.mind-layer-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--green);
  margin-bottom: var(--space-1);
}
.mind-layer-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── S3: The Proof ────────────────────────────────────────────────────────── */
.proof-section {
  padding: 100px 0;
}
.proof-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-12);
}
.proof-video-wrap {
  position: relative;
}
.proof-narrative {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.proof-narrative p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}
.proof-narrative strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Proof comparison bars */
.proof-bars {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}
.proof-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.proof-bar-label {
  width: 90px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}
.proof-bar-label--green { color: var(--green); }
.proof-bar-label--red { color: var(--red); }
.proof-bar-track {
  flex: 1;
  height: 36px;
  background: var(--bg-elevated);
  border-radius: 6px;
  overflow: hidden;
}
.proof-bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-3);
  transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.proof-bar-fill--green {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.3), var(--green));
}
.proof-bar-fill--red {
  background: linear-gradient(90deg, rgba(255, 77, 77, 0.3), var(--red));
}
.proof-bar-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--bg-base);
}
.proof-delta {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
}

/* ── S4: The Cycle ────────────────────────────────────────────────────────── */
.cycle-section {
  padding: 100px 0;
  background: var(--bg-surface);
}
.cycle-video-wrap {
  max-width: 900px;
  margin: 0 auto var(--space-12);
}
.cycle-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
}
.cycle-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cycle-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--green);
}
.cycle-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── S5: The Numbers ──────────────────────────────────────────────────────── */
.numbers-section {
  padding: 100px 0;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.number-cell {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color 0.3s ease;
}
.number-cell:hover {
  border-color: var(--green);
}
.number-value {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 56px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: var(--space-2);
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
}
.number-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── S6: Timeline ─────────────────────────────────────────────────────────── */
.timeline-section {
  padding: 100px 0;
  background: var(--bg-surface);
}
.timeline-video-wrap {
  max-width: 900px;
  margin: 0 auto var(--space-12);
}
.timeline-milestones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.milestone-card {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.milestone-card:last-child {
  border-left-color: var(--yellow);
}
.milestone-day {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
}
.milestone-card:last-child .milestone-day {
  color: var(--yellow);
}
.milestone-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}
.milestone-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── S7: Philosophy ───────────────────────────────────────────────────────── */
.philosophy-section {
  padding: 100px 0;
}
.philosophy-terminal {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot--red { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green { background: #28c840; }
.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-left: var(--space-2);
}
.terminal-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.terminal-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: var(--space-6);
  position: relative;
}
.terminal-prompt {
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── CTA Footer Section ───────────────────────────────────────────────────── */
.cta-section {
  padding: 100px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 230, 118, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta-heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  color: var(--text-primary);
}
.cta-subline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-5);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.landing-footer {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-subtle);
}
.landing-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.footer-brand strong {
  color: var(--green);
  font-weight: 700;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.footer-link {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--text-secondary);
}
.footer-divider {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
  opacity: 0.3;
  display: inline-block;
  vertical-align: middle;
}
.footer-credit {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-headline {
    font-size: var(--text-3xl);
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: var(--space-12);
  }
  .hero-content {
    flex: none;
    max-width: 100%;
  }
  .hero-subline {
    margin-inline: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-visual {
    order: -1;
  }
  .hero-ruthie-fallback {
    width: 260px;
    height: 260px;
  }
  .hero-ruthie-fallback img {
    width: 190px;
    height: 190px;
  }

  /* Mind section */
  .mind-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Proof section */
  .proof-layout {
    grid-template-columns: 1fr;
  }
  .proof-delta {
    position: static;
    transform: none;
    text-align: center;
    margin-top: var(--space-4);
  }

  /* Cycle stats */
  .cycle-stats {
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  /* Numbers grid */
  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .number-value {
    font-size: 40px;
  }

  /* Timeline milestones */
  .timeline-milestones {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .landing-footer-inner {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: var(--text-xl);
  }
  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }

  /* Numbers 1-col */
  .numbers-grid {
    grid-template-columns: 1fr;
  }
  .number-value {
    font-size: 48px;
  }

  /* Timeline 1-col */
  .timeline-milestones {
    grid-template-columns: 1fr;
  }

  /* Cycle full-width */
  .cycle-stats {
    flex-direction: column;
    align-items: center;
  }
}

/* ── Reduced Motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-particles span {
    animation: none;
    opacity: 0.1;
  }
  .hero-video {
    display: none;
  }
  .proof-bar-fill {
    transition: none;
  }
}
