/* ============================================
   COMPOUNDING BUILD — Editorial Design System
   Kaara Technologies
   ============================================ */

:root {
  --bg: #0A0A0A;
  --bg-elevated: #111111;
  --bg-card: #1A1A1A;
  --text-primary: #F0F0F0;
  --text-secondary: #a8a8a8;
  --text-muted: #6B7280;
  --accent: #E51E25;
  --accent-glow: rgba(229, 30, 37, 0.15);
  --accent-soft: #ff4444;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(10, 10, 10, 0.7);
  --ghost: rgba(255, 255, 255, 0.04);
  --ghost-strong: rgba(255, 255, 255, 0.03);
  --hover-bg: rgba(255, 255, 255, 0.015);
  --bar-track: rgba(255, 255, 255, 0.03);
  --bar-old: rgba(255, 255, 255, 0.08);
  --heading: 'Playfair Display', Georgia, serif;
  --body: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Sans', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
}

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

::selection {
  background: var(--accent);
  color: white;
}


/* ===== NAV ===== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

nav .logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

nav .logo img {
  height: 32px;
  width: auto;
}

nav .logo .logo-light {
  display: none;
}

nav .nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav .nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

nav .nav-links a:hover {
  color: var(--text-primary);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}


/* ===== HERO ===== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite;
}

.circuit-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.12;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-family: var(--heading);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
  animation: heroFadeIn 1s ease forwards 0.4s;
  opacity: 0;
}

.hero-title .line {
  display: block;
}

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

.hero-tagline {
  font-family: var(--heading);
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  margin-top: 0.75rem;
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin-top: 2rem;
  line-height: 1.8;
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.cta-ghost {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.cta-ghost:hover {
  color: var(--text-primary);
}

.hero-stats-bar {
  display: flex;
  gap: 0;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
  border: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.1s;
}

.hero-stats-bar .h-stat {
  padding: 2rem 3rem;
  text-align: center;
  border-right: 1px solid var(--border);
  flex: 1;
}

.hero-stats-bar .h-stat:last-child {
  border-right: none;
}

.hero-stats-bar .h-stat-number {
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-stats-bar .h-stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.3s;
}

.scroll-hint span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}


/* ===== PROBLEM — Ticker Tape ===== */

.problem-section {
  padding: 8rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 3rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-heading {
  font-family: var(--heading);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.12;
  font-weight: 400;
}

.section-heading em {
  font-style: italic;
  color: var(--accent-soft);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 680px;
  margin-top: 2rem;
}

.problem-tape {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  border-top: 1px solid var(--border);
}

.problem-strip {
  display: grid;
  grid-template-columns: 100px 280px 1fr;
  align-items: start;
  padding: 2.25rem 3rem;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: all 0.4s ease;
}

.problem-strip:hover {
  background: var(--hover-bg);
  border-left-color: var(--accent);
}

.problem-num {
  font-family: var(--heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.15rem;
}

.problem-strip h3 {
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.problem-strip p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}


/* ===== PULL QUOTE ===== */

.pull-quote {
  padding: 8rem 3rem;
  text-align: center;
  position: relative;
}

.pull-quote::before,
.pull-quote::after {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.pull-quote::before { top: 0; }
.pull-quote::after { bottom: 0; }

.pull-quote blockquote {
  font-family: var(--heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.25;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
}

.quote-dash {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 2.5rem auto;
}

.pull-quote .quote-source {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: 0;
  text-transform: uppercase;
}


/* ===== CATEGORY — Split Layout ===== */

.category-section {
  padding: 8rem 3rem;
}

.category-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.category-inner > .section-label,
.category-inner > .section-heading,
.category-inner > .section-desc {
  text-align: center;
}

.category-inner > .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.category-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 4rem;
  align-items: start;
}

.definition-block {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--accent);
}

.definition-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.definition-text {
  font-family: var(--heading);
  font-size: 1.6rem;
  line-height: 1.55;
  font-weight: 400;
}

/* Matrix */
.matrix {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  grid-template-rows: auto 1fr 1fr;
  gap: 0;
}

.matrix-corner {
  grid-area: 1/1;
}

.matrix-col-header {
  text-align: center;
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.matrix-row-header {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  text-align: center;
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}

.matrix-cell {
  padding: 1.75rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 140px;
  transition: all 0.3s;
}

.matrix-cell h4 {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.matrix-cell p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.matrix-cell.highlight {
  background: linear-gradient(135deg, rgba(229, 30, 37, 0.12) 0%, rgba(229, 30, 37, 0.04) 100%);
  border-color: rgba(229, 30, 37, 0.3);
}

.matrix-cell.highlight h4 {
  color: var(--accent-soft);
  font-size: 0.95rem;
}

.matrix-cell.highlight p {
  color: var(--text-secondary);
}


/* ===== PILLARS — Alternating Strips ===== */

.pillars-section {
  padding: 8rem 3rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars-header {
  padding: 0 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pillar-strips {
  max-width: 1200px;
  margin: 0 auto;
}

.pillar-strip {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
  transition: background 0.4s;
}

.pillar-strip:hover {
  background: var(--hover-bg);
}

.pillar-strip:hover .pillar-num {
  color: var(--accent);
}

.pillar-num {
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 100px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--border);
  transition: color 0.4s;
}

.pillar-icon {
  font-size: 1.5rem;
  min-width: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem;
  border-right: 1px solid var(--border);
}

.pillar-body {
  padding: 2.5rem 3rem;
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.pillar-body h3 {
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
}

.pillar-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}


/* ===== COMPOUNDING EFFECT — Stacked Chapters ===== */

.compound-section {
  padding: 8rem 3rem;
}

.compound-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.compound-chapters {
  margin-top: 3rem;
}

.compound-chapter {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.compound-chapter:last-child {
  border-bottom: 1px solid var(--border);
}

.chapter-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.chapter-name {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 0.5rem;
  color: var(--text-primary);
}

.chapter-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.chapter-metric {
  text-align: right;
}

.chapter-metric .big-num {
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--accent-soft);
  line-height: 1;
  white-space: nowrap;
}

.chapter-metric .metric-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}


/* ===== COMPARISON — Strikethrough Editorial ===== */

.compare-section {
  padding: 8rem 3rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.compare-header {
  max-width: 900px;
  margin: 0 auto 5rem;
}

.compare-duo {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.compare-duo-row {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  gap: 0.75rem;
}

.compare-duo-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.compare-duo-lines {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.compare-duo-old {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
}

.compare-duo-new {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
}

.compare-rows {
  max-width: 900px;
  margin: 0 auto;
}


/* ===== WHY NOW — Large Stat Cards ===== */

.whynow-section {
  padding: 8rem 3rem;
}

.whynow-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.whynow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 5rem;
  background: var(--border);
  border: 1px solid var(--border);
}

.whynow-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background 0.3s;
}

.whynow-card:hover {
  background: var(--bg-card);
}

.whynow-num {
  font-family: var(--heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.whynow-num .unit {
  color: var(--accent);
}

.whynow-arrow {
  display: inline-block;
  color: var(--accent);
  margin-top: 1rem;
  font-size: 1.2rem;
}

.whynow-card h3 {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 1rem;
  line-height: 1.4;
}

.whynow-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.whynow-source {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1.25rem;
}


/* ===== WHO THIS IS FOR — Editorial Text ===== */

.audience-section {
  padding: 8rem 3rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.audience-inner {
  max-width: 800px;
  margin: 0 auto;
}

.audience-inner .section-heading {
  margin-bottom: 3rem;
}

.audience-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 2rem;
}

.audience-text .hl {
  color: var(--text-primary);
  font-weight: 500;
}

.audience-text .hl-accent {
  color: var(--accent-soft);
  font-weight: 500;
}


/* ===== CTA — Bold Final Section ===== */

.cta-section {
  padding: 10rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.cta-heading {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 2rem;
}

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

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

.cta-primary:hover {
  background: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(229, 30, 37, 0.3);
}

.cta-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.cta-primary:hover svg {
  transform: translateX(3px);
}


/* ===== FOOTER ===== */

footer {
  padding: 0 3rem 3rem;
  position: relative;
  overflow: hidden;
}

.footer-big-text {
  font-family: var(--heading);
  font-size: clamp(3.5rem, 11vw, 10rem);
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
  color: var(--ghost-strong);
  letter-spacing: -0.03em;
  padding: 5rem 0 2rem;
  user-select: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-left {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.footer-left a {
  color: var(--accent);
  text-decoration: none;
}

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


/* ===== ANIMATIONS ===== */

@keyframes heroGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .category-split {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .compound-chapter {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .chapter-metric {
    text-align: left;
  }

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

  .pillar-body {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  nav.menu-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
  }

  nav.menu-open .logo {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
  }

  nav.menu-open .nav-toggle {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
  }

  nav .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  nav.menu-open .nav-links {
    display: flex;
  }

  nav .nav-links li:first-child {
    display: none;
  }

  nav .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }

  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 5rem);
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-sub {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .hero-stats-bar {
    flex-direction: column;
  }

  .hero-stats-bar .h-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
  }

  .hero-stats-bar .h-stat:last-child {
    border-bottom: none;
  }

  .scroll-hint {
    display: none;
  }

  .problem-header,
  .pillars-header,
  .compare-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .problem-section {
    padding: 5rem 0;
  }

  .problem-header {
    padding: 0 1.5rem;
  }

  .problem-tape {
    padding: 0 1.5rem;
  }

  .problem-strip {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.75rem 0;
  }

  .problem-num {
    font-size: 1.4rem;
  }

  .problem-strip p {
    padding-left: 0;
    border-left: none;
  }

  .pull-quote {
    padding: 5rem 1.5rem;
  }

  .category-section {
    padding: 5rem 1.5rem;
  }

  .matrix {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .matrix-col-header,
  .matrix-row-header,
  .matrix-corner {
    display: none;
  }

  .matrix-cell {
    min-height: auto;
    padding: 1.5rem;
  }

  .pillars-section {
    padding: 5rem 1.5rem;
  }

  .pillar-strip {
    flex-direction: column;
  }

  .pillar-num {
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    justify-content: flex-start;
  }

  .pillar-icon {
    display: none;
  }

  .pillar-body {
    padding: 1.5rem;
  }

  .compound-section {
    padding: 5rem 1.5rem;
  }

  .compare-section {
    padding: 5rem 1.5rem;
  }

  .compare-duo {
    grid-template-columns: 1fr;
  }

  .whynow-section {
    padding: 5rem 1.5rem;
  }

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

  .audience-section {
    padding: 5rem 1.5rem;
  }

  .cta-section {
    padding: 6rem 1.5rem;
  }

  footer {
    padding: 0 1.5rem 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-sub {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .hero-heading {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .section-heading {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }

  .hero-stats-bar .h-stat {
    padding: 1rem 1.25rem;
  }
}


/* ============================================
   BUILD VS BUY PAGE — Styles
   ============================================ */

/* Hero variant for subpages */
.hero-sub-page {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-sub-page::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-heading {
  font-family: var(--heading);
  font-size: clamp(2.8rem, 6.5vw, 6.5rem);
  line-height: 1.05;
  font-weight: 400;
  max-width: 850px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

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

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-top: 2.5rem;
  line-height: 1.85;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

/* Equation strip */
.equation-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.eq-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 100%;
}

.eq-old {
  font-family: var(--heading);
  font-size: 1.3rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
}

.eq-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.eq-new {
  font-family: var(--heading);
  font-size: 1.3rem;
  color: var(--text-primary);
}

.eq-new strong {
  color: var(--accent-soft);
  font-weight: 400;
}

/* Three Tiers — Horizontal strips */
.tier-strips {
  max-width: 1200px;
  margin: 0 auto;
}

.tier-strip {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
  transition: background 0.4s;
}

.tier-strip:hover {
  background: var(--hover-bg);
}

.tier-verdict-col {
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}

.tier-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

.badge-buy {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.badge-build {
  background: var(--accent-glow);
  color: var(--accent-soft);
}

.badge-blend {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.tier-body {
  padding: 2rem 3rem;
  flex: 1;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: start;
}

.tier-body h3 {
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 400;
}

.tier-aka {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

.tier-body-text p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.tier-examples {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Callout block */
.callout {
  margin-top: 4rem;
  padding: 2rem 2.5rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
}

.callout p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.callout strong {
  color: var(--text-primary);
}

.callout-source {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

/* Old vs New — Split cards as strips */
.change-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 4rem;
  border: 1px solid var(--border);
}

.change-panel {
  padding: 3rem;
}

.change-panel.panel-old {
  border-right: 1px solid var(--border);
  opacity: 0.7;
}

.change-panel.panel-new {
  position: relative;
}

.change-panel.panel-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
}

.change-panel-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.panel-old .change-panel-label {
  color: var(--text-muted);
}

.panel-new .change-panel-label {
  color: var(--accent);
}

.change-panel h3 {
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.change-panel p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Numbers strip — reuse whynow pattern */
.numbers-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 4rem;
  background: var(--border);
  border: 1px solid var(--border);
}

.num-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background 0.3s;
}

.num-card:hover {
  background: var(--bg-card);
}

.num-card .big-num {
  font-family: var(--heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--accent-soft);
  line-height: 1;
}

.num-card .num-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.num-card .num-context {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* Cost Graph */
.cost-graph {
  margin-top: 4rem;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.cost-graph-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.graph-bars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.graph-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.graph-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: right;
}

.bar-track {
  height: 36px;
  background: var(--bar-track);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  transition: width 1.5s ease;
}

.bar-fill.bar-old {
  background: var(--bar-old);
  color: var(--text-muted);
}

.bar-fill.bar-new {
  background: linear-gradient(90deg, rgba(229, 30, 37, 0.3), rgba(229, 30, 37, 0.15));
  color: var(--accent-soft);
}

.graph-value {
  font-family: var(--mono);
  font-size: 0.75rem;
  min-width: 80px;
}

.graph-value.val-old {
  color: var(--text-muted);
}

.graph-value.val-new {
  color: var(--accent-soft);
}

.graph-spacer {
  height: 1rem;
}

/* Factor indicator cards */
.factor-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.factor-card {
  background: var(--bg);
  padding: 1.75rem 2rem;
  transition: background 0.3s;
}

.factor-card:hover {
  background: var(--bg-card);
}

.factor-name {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.factor-line {
  font-size: 0.9rem;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.factor-old {
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.factor-new {
  color: var(--text-primary);
  font-weight: 500;
}

.fx {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.fc {
  color: #22c55e;
  font-size: 0.95rem;
}

/* Decision strips */
.decision-strips {
  max-width: 1200px;
  margin: 0 auto;
}

.decision-strip {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
  transition: background 0.3s;
}

.decision-strip:last-child {
  border-bottom: 1px solid var(--border);
}

.decision-strip:hover {
  background: var(--hover-bg);
}

.decision-what {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 400;
  width: 280px;
  flex-shrink: 0;
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.decision-why {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 1.5rem 2rem;
  flex: 1;
  display: flex;
  align-items: center;
}

.decision-action {
  width: 120px;
  flex-shrink: 0;
  padding: 1.5rem 2rem;
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.action-buy { color: #22c55e; }
.action-build { color: var(--accent-soft); }
.action-blend { color: #f59e0b; }

/* Editorial prose section */
.prose-section {
  padding: 8rem 3rem;
}

.prose-inner {
  max-width: 800px;
  margin: 0 auto;
}

.prose-inner .section-heading {
  margin-bottom: 2rem;
}

.prose-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.95;
  margin-bottom: 2rem;
}

.prose-text .hl {
  color: var(--text-primary);
  font-weight: 500;
}

.prose-text .hl-accent {
  color: var(--accent-soft);
  font-weight: 500;
}

/* Divider utility */
.divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 2rem 0;
}

/* BVB responsive */
@media (max-width: 1024px) {
  .tier-body {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .decision-strip {
    flex-direction: column;
  }

  .decision-what {
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .decision-action {
    border-left: none;
    border-top: 1px solid var(--border);
    justify-content: flex-start;
  }

  .numbers-strip {
    grid-template-columns: 1fr 1fr;
  }

  .change-split {
    grid-template-columns: 1fr;
  }

  .change-panel.panel-old {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .change-panel.panel-new::before {
    width: 100%;
    height: 2px;
    top: 0;
    left: 0;
  }
}

@media (max-width: 768px) {
  .hero-sub-page {
    padding: 7rem 1.5rem 3rem;
  }

  .equation-strip {
    flex-direction: column;
    gap: 0.75rem;
  }

  .tier-strip {
    flex-direction: column;
  }

  .tier-verdict-col {
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    justify-content: flex-start;
  }

  .tier-body {
    padding: 1.5rem;
  }

  .numbers-strip {
    grid-template-columns: 1fr;
  }

  .graph-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .graph-label {
    text-align: left;
  }

  .graph-value {
    min-width: auto;
  }

  .cost-graph {
    padding: 1.5rem;
  }

  .callout {
    padding: 1.5rem;
  }

  .change-panel {
    padding: 1.5rem;
  }

  .decision-what {
    padding: 1.25rem 1.5rem;
  }

  .decision-why {
    padding: 1.25rem 1.5rem;
  }

  .decision-action {
    min-width: auto;
    padding: 1.25rem 1.5rem;
  }

  .prose-section {
    padding: 5rem 1.5rem;
  }

  .factor-cards {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   LIGHT THEME — prefers-color-scheme
   ============================================ */

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FAFAFA;
    --bg-elevated: #F0F0F0;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #4B5563;
    --text-muted: #94A3B8;
    --accent: #E51E25;
    --accent-glow: rgba(229, 30, 37, 0.1);
    --accent-soft: #dc2626;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --nav-bg: rgba(250, 250, 250, 0.75);
    --ghost: rgba(0, 0, 0, 0.05);
    --ghost-strong: rgba(0, 0, 0, 0.04);
    --hover-bg: rgba(0, 0, 0, 0.03);
    --bar-track: rgba(0, 0, 0, 0.04);
    --bar-old: rgba(0, 0, 0, 0.08);
  }

  ::selection {
    background: var(--accent);
    color: white;
  }

  /* Matrix highlight cell */
  .matrix-cell.highlight {
    background: linear-gradient(135deg, rgba(229, 30, 37, 0.08) 0%, rgba(229, 30, 37, 0.02) 100%);
    border-color: rgba(229, 30, 37, 0.2);
  }

  /* Bar fills for BVB page */
  .bar-fill.bar-new {
    background: linear-gradient(90deg, rgba(229, 30, 37, 0.2), rgba(229, 30, 37, 0.08));
  }

  /* Badge backgrounds — adjust for light bg */
  .badge-buy {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
  }

  .badge-blend {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
  }

  /* Action labels — slightly darker for contrast */
  .action-buy { color: #16a34a; }
  .action-blend { color: #d97706; }

  /* CTA button hover */
  .cta-primary:hover {
    background: #dc2626;
    box-shadow: 0 10px 40px rgba(229, 30, 37, 0.2);
  }

  /* Logo — swap to light variant */
  nav .logo .logo-dark {
    display: none;
  }

  nav .logo .logo-light {
    display: block;
  }

}
