/* ========== CSS Custom Properties ========== */
:root {
  --navy-900: #0a1628;
  --navy-800: #0f2035;
  --navy-700: #162d50;
  --navy-600: #1e3a5f;
  --navy-500: #264a73;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --red-500: #ef4444;
  --red-400: #f87171;
  --purple-500: #8b5cf6;
  --purple-400: #a78bfa;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --bg-primary: var(--navy-900);
  --bg-section: var(--navy-800);
  --bg-card: rgba(30, 58, 95, 0.5);
  --bg-card-solid: #1a3352;
  --border-color: rgba(59, 130, 246, 0.15);
  --border-hover: rgba(59, 130, 246, 0.4);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 40px rgba(59,130,246,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --nav-width: 220px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-500); }
a { color: var(--blue-400); text-decoration: none; }
a:hover { color: var(--blue-300); }

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
p { color: var(--text-secondary); }
.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--blue-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}
.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  color: var(--blue-400);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ========== Layout Utilities ========== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 60px; }
section {
  min-height: 100vh;
  padding: 80px 0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}
section:last-child { border-bottom: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-blue { color: var(--blue-400); }
.text-green { color: var(--green-400); }
.text-amber { color: var(--amber-400); }
.text-red { color: var(--red-400); }
.text-purple { color: var(--purple-400); }
.text-cyan { color: var(--cyan-400); }

/* ========== Progress Bar ========== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ========== Side Navigation ========== */
.side-nav {
  position: fixed;
  left: 0; top: 0;
  width: var(--nav-width);
  height: 100vh;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  overflow-y: auto;
}
.side-nav .nav-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.side-nav .nav-logo span {
  font-weight: 800;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--blue-400), var(--purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-items { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-item:hover { color: var(--text-secondary); background: rgba(59,130,246,0.08); }
.nav-item.active {
  color: var(--blue-400);
  background: rgba(59,130,246,0.12);
}
.nav-item .nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--navy-600);
  flex-shrink: 0;
  transition: var(--transition);
}
.nav-item.active .nav-dot {
  background: var(--blue-500);
  box-shadow: 0 0 8px var(--blue-500);
}
.nav-item .nav-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 20px;
}

/* Shift main content for side nav */
body { padding-left: var(--nav-width); }

/* ========== Card Components ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.card-pain {
  border-left: 3px solid var(--red-500);
}
.card-highlight {
  border-left: 3px solid var(--blue-500);
}
.card-success {
  border-left: 3px solid var(--green-500);
}
.card-agent {
  border-top: 3px solid var(--purple-500);
}
.card-metric {
  text-align: center;
  padding: 20px 16px;
}
.card-metric .metric-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}
.card-metric .metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-blue { background: rgba(59,130,246,0.15); color: var(--blue-400); }
.badge-green { background: rgba(34,197,94,0.15); color: var(--green-400); }
.badge-amber { background: rgba(245,158,11,0.15); color: var(--amber-400); }
.badge-red { background: rgba(239,68,68,0.15); color: var(--red-400); }
.badge-purple { background: rgba(139,92,246,0.15); color: var(--purple-400); }
.badge-cyan { background: rgba(6,182,212,0.15); color: var(--cyan-400); }

/* ========== Hero Section ========== */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(59,130,246,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 60%, rgba(139,92,246,0.06) 0%, transparent 50%),
              var(--navy-900);
  padding: 0;
}
.hero-content { max-width: 800px; }
.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--blue-300) 50%, var(--purple-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.hero-tagline {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-weight: 400;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 56px;
}
.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--blue-400);
  display: block;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.hero-version {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 40px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  border: none;
  border-radius: 40px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.35);
}

/* Floating particles */
.particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--blue-500);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle 15s infinite linear;
}
.particle:nth-child(2) { left: 15%; animation-delay: -3s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: -6s; animation-duration: 12s; }
.particle:nth-child(4) { left: 50%; animation-delay: -2s; animation-duration: 20s; }
.particle:nth-child(5) { left: 70%; animation-delay: -8s; animation-duration: 14s; }
.particle:nth-child(6) { left: 85%; animation-delay: -4s; animation-duration: 16s; }
.particle:nth-child(7) { left: 25%; animation-delay: -10s; animation-duration: 22s; }
.particle:nth-child(8) { left: 60%; animation-delay: -7s; animation-duration: 13s; }

@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ========== Architecture Diagram ========== */
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 32px 0;
}
.arch-layer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: default;
  position: relative;
}
.arch-layer:hover {
  transform: scale(1.015);
  filter: brightness(1.1);
}
.arch-layer .layer-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.7;
  min-width: 20px;
}
.arch-layer .layer-modules {
  font-size: 0.78rem;
  opacity: 0.75;
  font-weight: 400;
  margin-left: auto;
}
.layer-1 { background: linear-gradient(90deg, #1e40af, #3b82f6); }
.layer-2 { background: linear-gradient(90deg, #6d28d9, #8b5cf6); }
.layer-3 { background: linear-gradient(90deg, #0e7490, #06b6d4); }
.layer-4 { background: linear-gradient(90deg, #15803d, #22c55e); }
.layer-5 { background: linear-gradient(90deg, #b45309, #f59e0b); }
.layer-6 { background: linear-gradient(90deg, #1d4ed8, #60a5fa); }
.layer-7 { background: linear-gradient(90deg, #374151, #6b7280); border: 1px solid rgba(255,255,255,0.1); }

/* ========== Agent Cards Row ========== */
.agent-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 0;
  scroll-snap-type: x mandatory;
}
.agent-row::-webkit-scrollbar { height: 4px; }
.agent-row::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 2px; }
.agent-card {
  min-width: 200px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ========== Evolution Stepper ========== */
.evolution-path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 40px 0;
}
.evo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  position: relative;
}
.evo-step .evo-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  border: 2px solid var(--navy-600);
  color: var(--text-secondary);
  transition: var(--transition);
}
.evo-step.active .evo-circle {
  border-color: var(--blue-500);
  background: rgba(59,130,246,0.15);
  color: var(--blue-400);
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
}
.evo-step .evo-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}
.evo-arrow {
  width: 40px;
  height: 2px;
  background: var(--navy-600);
  position: relative;
  flex-shrink: 0;
}
.evo-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--navy-600);
}

/* ========== SWOT Grid ========== */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.swot-cell {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.swot-cell h4 { margin-bottom: 12px; }
.swot-s { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.2); }
.swot-w { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.2); }
.swot-o { background: rgba(59,130,246,0.06); border-color: rgba(59,130,246,0.2); }
.swot-t { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.2); }

/* ========== Competitor Matrix ========== */
.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}
.matrix-table th, .matrix-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.matrix-table th {
  background: var(--navy-700);
  color: var(--text-primary);
  font-weight: 600;
  position: sticky;
  top: 0;
}
.matrix-table th:first-child { text-align: left; }
.matrix-table td:first-child { text-align: left; font-weight: 500; color: var(--text-primary); }
.matrix-table td { color: var(--text-secondary); }
.matrix-table .col-highlight {
  background: rgba(59,130,246,0.06);
  border-left: 2px solid var(--blue-500);
  border-right: 2px solid var(--blue-500);
}
.matrix-table .col-highlight th {
  background: rgba(59,130,246,0.12);
  color: var(--blue-400);
}
.icon-check { color: var(--green-500); font-weight: 700; }
.icon-partial { color: var(--amber-500); font-weight: 700; }
.icon-none { color: var(--text-muted); }

/* ========== Roadmap Timeline ========== */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.phase-card {
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
}
.phase-card.p1 { background: linear-gradient(180deg, rgba(59,130,246,0.08), transparent); }
.phase-card.p1::before { background: var(--blue-500); }
.phase-card.p2 { background: linear-gradient(180deg, rgba(139,92,246,0.08), transparent); }
.phase-card.p2::before { background: var(--purple-500); }
.phase-card.p3 { background: linear-gradient(180deg, rgba(6,182,212,0.08), transparent); }
.phase-card.p3::before { background: var(--cyan-500); }
.phase-card.p4 { background: linear-gradient(180deg, rgba(34,197,94,0.08), transparent); }
.phase-card.p4::before { background: var(--green-500); }
.phase-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.phase-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.phase-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.phase-meta { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.phase-meta span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 4px;
}
.phase-deliverables {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.phase-deliverables li { padding: 3px 0; padding-left: 16px; position: relative; }
.phase-deliverables li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--blue-400);
}
.phase-kpi {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--blue-400);
  font-weight: 500;
}

/* ========== TAM/SAM/SOM Funnel ========== */
.funnel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 24px 0;
}
.funnel-level {
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.funnel-tam { background: rgba(59,130,246,0.15); width: 100%; }
.funnel-sam { background: rgba(139,92,246,0.15); width: 75%; margin: 0 auto; }
.funnel-som { background: rgba(34,197,94,0.15); width: 50%; margin: 0 auto; }

/* ========== Sales Funnel ========== */
.sales-funnel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 24px 0;
}
.sf-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sf-bar {
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  padding: 0 12px;
  white-space: nowrap;
}
.sf-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 0 6px;
}
.sf-rate {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ========== Pricing Table ========== */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}
.pricing-table th, .pricing-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
.pricing-table th {
  background: var(--navy-700);
  font-weight: 600;
}
.pricing-table .price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--blue-400);
  font-size: 1rem;
}

/* ========== Risk Heat Map ========== */
.risk-matrix {
  display: grid;
  grid-template-rows: auto auto auto;
  grid-template-columns: 60px repeat(3, 1fr);
  gap: 3px;
  margin: 24px 0;
}
.risk-header {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
  font-weight: 600;
}
.risk-cell {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  text-align: center;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.risk-cell.high { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); }
.risk-cell.med { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.25); }
.risk-cell.low { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); }
.risk-label { font-weight: 600; color: var(--text-primary); font-size: 0.78rem; }
.risk-axis {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

/* ========== KPI Dashboard ========== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.kpi-card .kpi-phase {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 12px;
}
.kpi-card .kpi-item {
  padding: 8px 0;
  border-top: 1px solid var(--border-color);
}
.kpi-card .kpi-item:first-of-type { border-top: none; }
.kpi-card .kpi-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-400);
}
.kpi-card .kpi-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========== Action Timeline ========== */
.action-timeline {
  position: relative;
  padding-left: 32px;
  margin: 24px 0;
}
.action-timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0;
  width: 2px; height: 100%;
  background: var(--border-color);
}
.action-item {
  position: relative;
  padding: 12px 0 12px 20px;
}
.action-item::before {
  content: '';
  position: absolute;
  left: -24px; top: 18px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--blue-500);
  background: var(--navy-900);
}
.action-item .action-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-400);
}
.action-item .action-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin: 4px 0;
}
.action-item .action-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========== Health Score Bar ========== */
.health-bar {
  display: flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 40px;
  margin: 16px 0;
}
.health-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  transition: var(--transition);
}
.health-segment:hover { filter: brightness(1.2); }

/* ========== Year 1 Timeline ========== */
.y1-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.y1-month {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.y1-month .month-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.y1-month .month-milestone {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ========== Table Wrapper ========== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin: 16px 0;
}

/* ========== Chart Container ========== */
.chart-wrapper {
  position: relative;
  height: 320px;
  margin: 16px 0;
}

/* ========== Principles Row ========== */
.principles-row {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.principle-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 40px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
}

/* ========== Scroll Animations ========== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Decision Chain ========== */
.decision-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.dc-node {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  text-align: center;
  min-width: 140px;
}
.dc-node .dc-role { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.dc-node .dc-stars { color: var(--amber-400); font-size: 0.85rem; }
.dc-node .dc-concern { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.dc-node.veto { border-color: rgba(239,68,68,0.4); }
.dc-arrow { color: var(--text-muted); font-size: 1.4rem; }

/* ========== Non-goals ========== */
.non-goal-list {
  list-style: none;
}
.non-goal-list li {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.non-goal-list li::before {
  content: '✕';
  color: var(--red-400);
  font-weight: 700;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .side-nav { display: none; }
  body { padding-left: 0; }
  .container { padding: 0 32px; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 3rem; }
  .y1-timeline { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .hero-title { font-size: 2.2rem; }
  .evolution-path { flex-wrap: wrap; }
  .evo-arrow { display: none; }
  .swot-grid { grid-template-columns: 1fr; }
  .sales-funnel { flex-wrap: wrap; }
  .sf-arrow { display: none; }
  .decision-chain { flex-direction: column; }
  .dc-arrow { display: none; }
  .y1-timeline { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 0; }
}

/* ========== Bottom Nav (tablet/mobile) ========== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  height: 56px;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  overflow-x: auto;
  overflow-y: hidden;
}
.bottom-nav-items {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  min-width: max-content;
}
.bottom-nav .bnav-item {
  padding: 8px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.bottom-nav .bnav-item.active { color: var(--blue-400); background: rgba(59,130,246,0.1); }
@media (max-width: 1200px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 56px; }
}
