/* ============================================================
   CIVALENT STRATEGY DECK — Styles
   Brand: Indigo (#07091a) + Copper (#d4845e), Periwinkle (#8690f8)
   Style C: Premium gradients, layered shadows, editorial typography
   ============================================================ */

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

:root {
  /* Brand Colors */
  --indigo-root: #07091a;
  --indigo-surface: #0b0f22;
  --indigo-elevated: #10152b;
  --indigo-overlay: #161c34;
  --indigo-hover: #1b223e;
  --indigo-active: #222a4c;

  --copper: #d4845e;
  --copper-hover: #e29a78;
  --copper-muted: #5a3020;
  --copper-subtle: #3a1f14;

  --periwinkle: #8690f8;
  --periwinkle-hover: #a8b0fc;
  --periwinkle-muted: #2e2c80;
  --periwinkle-subtle: #1c1a4e;

  --text-primary: #e6ebf5;
  --text-secondary: #8892b0;
  --text-muted: #586380;
  --text-inverse: #07091a;

  --border-default: #1d2548;
  --border-subtle: #141a38;
  --border-strong: #2c3462;

  --green: #34d399;
  --green-bg: #04261a;
  --yellow: #fbbf24;
  --yellow-bg: #2d1f04;
  --red: #f87171;
  --red-bg: #2d0808;
  --orange: #fb923c;
  --orange-bg: #2d1a04;
  --blue: #60a5fa;
  --blue-bg: #0a1a35;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #d4845e 0%, #8690f8 100%);
  --gradient-surface: linear-gradient(180deg, #10152b 0%, #0b0f22 100%);
  --gradient-copper: linear-gradient(135deg, #d4845e 0%, #e29a78 50%, #d4845e 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.6);
  --shadow-glow-copper: 0 0 24px rgba(212,132,94,0.15);
  --shadow-glow-periwinkle: 0 0 24px rgba(134,144,248,0.15);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  /* Layout */
  --slide-padding: 3.5rem;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--indigo-root);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Light Mode --- */
[data-theme="light"] {
  --indigo-root: #f7f8fc;
  --indigo-surface: #ffffff;
  --indigo-elevated: #ffffff;
  --indigo-overlay: #eceef6;
  --indigo-hover: #dde0ed;
  --indigo-active: #c5cade;

  --copper: #b45e3a;
  --copper-hover: #9a4f30;
  --copper-muted: #fde8db;
  --copper-subtle: #fef5ef;

  --periwinkle: #4f46e5;
  --periwinkle-hover: #4338ca;
  --periwinkle-muted: #e0e7ff;
  --periwinkle-subtle: #eef2ff;

  --text-primary: #0f1629;
  --text-secondary: #4a5066;
  --text-muted: #8892b0;
  --text-inverse: #ffffff;

  --border-default: #dde0ed;
  --border-subtle: #eceef6;
  --border-strong: #c5cade;

  --green: #059669;
  --green-bg: #ecfdf5;
  --yellow: #d97706;
  --yellow-bg: #fffbeb;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --orange: #ea580c;
  --orange-bg: #fff7ed;
  --blue: #2563eb;
  --blue-bg: #eff6ff;

  --gradient-hero: linear-gradient(135deg, #b45e3a 0%, #4f46e5 100%);
  --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
  --gradient-copper: linear-gradient(135deg, #b45e3a 0%, #d4845e 50%, #b45e3a 100%);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);
  --shadow-glow-copper: 0 0 24px rgba(180,94,58,0.1);
  --shadow-glow-periwinkle: 0 0 24px rgba(79,70,229,0.1);
}

/* --- Progress Bar --- */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-subtle);
  z-index: 1000;
}
.progress-bar {
  height: 100%;
  background: var(--gradient-hero);
  width: 0;
  transition: width 0.4s var(--ease-out);
}
.progress-text {
  position: fixed;
  top: 10px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 1000;
  letter-spacing: 0.05em;
}

/* --- Theme Toggle --- */
.theme-toggle {
  position: fixed;
  top: 10px;
  right: 80px;
  z-index: 1000;
  background: var(--indigo-elevated);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--copper); color: var(--copper); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* --- Slides Container --- */
.presentation {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transform: translateX(40px);
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.slide.exit-left {
  opacity: 0;
  transform: translateX(-40px);
}

.slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.slide-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  padding: var(--slide-padding);
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.slide-content::-webkit-scrollbar { display: none; }

/* --- Background Orbs --- */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}
.bg-orb.copper { background: #d4845e; }
.bg-orb.indigo { background: #8690f8; }
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(134,144,248,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134,144,248,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* --- Typography --- */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
}

.slide.active [data-delay] {
  opacity: 1;
  transform: translateY(0);
}
.slide.active [data-delay="1"] { transition-delay: 0.1s; }
.slide.active [data-delay="2"] { transition-delay: 0.2s; }
.slide.active [data-delay="3"] { transition-delay: 0.3s; }
.slide.active [data-delay="4"] { transition-delay: 0.4s; }
.slide.active [data-delay="5"] { transition-delay: 0.5s; }
.slide.active [data-delay="6"] { transition-delay: 0.6s; }
.slide.active [data-delay="7"] { transition-delay: 0.7s; }
.slide.active [data-delay="8"] { transition-delay: 0.8s; }
.slide.active [data-delay="9"] { transition-delay: 0.9s; }

/* --- Title Slide --- */
.title-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
}
.title-brand-mark {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: all 0.6s var(--ease-spring);
}
.brand-hexagon { width: 72px; height: 72px; }
.hex-border {
  fill: none;
  stroke: var(--copper);
  stroke-width: 2;
}
.hex-letter {
  fill: var(--copper);
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
}
.title-main {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s var(--ease-spring);
}
.title-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s var(--ease-spring);
}
.title-divider {
  width: 60px;
  height: 2px;
  background: var(--gradient-hero);
  margin-bottom: 1.5rem;
  opacity: 0;
  transition: all 0.6s var(--ease-spring);
}
.title-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.025em;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s var(--ease-spring);
}
.title-meta span:nth-child(2),
.title-meta span:nth-child(4) {
  color: var(--border-strong);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  animation: pulseHint 2s infinite;
}
.scroll-arrow { font-size: 1.25rem; color: var(--copper); }

@keyframes pulseHint {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* --- Stat Cards --- */
.stat-row, .problem-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.stat-card {
  background: var(--indigo-elevated);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
}
.stat-card:hover {
  border-color: var(--copper);
  box-shadow: var(--shadow-glow-copper);
}
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat-number.periwinkle { color: var(--periwinkle); }
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.stat-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* --- Bar Charts --- */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.bar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s var(--ease-spring);
}
.bar-item-label {
  width: 140px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}
.bar-track {
  flex: 1;
  height: 32px;
  background: var(--indigo-overlay);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s var(--ease-spring);
  width: 0;
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
}
.bar-fill.copper { background: var(--gradient-copper); }
.bar-fill.periwinkle { background: linear-gradient(135deg, #8690f8 0%, #a8b0fc 100%); }
.bar-fill.green { background: linear-gradient(135deg, #059669 0%, #34d399 100%); }
.bar-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-inverse);
  white-space: nowrap;
}
.slide.active .bar-fill { width: var(--bar-width); }
.slide.active .bar-item { opacity: 1; transform: translateX(0); }

/* --- Funnel Visualization --- */
.funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 2rem auto;
  max-width: 500px;
}
.funnel-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
  clip-path: polygon(5% 0%, 95% 0%, 100% 100%, 0% 100%);
}
.funnel-stage:first-child { clip-path: polygon(0% 0%, 100% 0%, 95% 100%, 5% 100%); }
.funnel-stage:last-child { clip-path: polygon(10% 0%, 90% 0%, 85% 100%, 15% 100%); }
.funnel-stage.tam { background: var(--copper-muted); width: 100%; }
.funnel-stage.sam { background: var(--periwinkle-muted); width: 75%; }
.funnel-stage.som { background: var(--indigo-active); width: 50%; }
.funnel-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.funnel-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--copper);
}
.funnel-detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.funnel-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* --- Segment Table --- */
.segment-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.8125rem;
}
.segment-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-strong);
}
.segment-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.segment-table td:last-child {
  font-family: var(--font-mono);
  color: var(--copper);
  font-weight: 600;
}
.segment-table tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  color: var(--text-primary);
}

/* --- 2x2 Positioning Map --- */
.positioning-map {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin: 1.5rem auto;
  background: var(--indigo-elevated);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
}
.map-axis-x, .map-axis-y {
  position: absolute;
  background: var(--border-strong);
}
.map-axis-x {
  left: 0; right: 0;
  top: 50%;
  height: 1px;
}
.map-axis-y {
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
}
.map-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.map-label.top { top: 8px; left: 50%; transform: translateX(-50%); }
.map-label.bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.map-label.left { left: 8px; top: 50%; transform: translateY(-50%); }
.map-label.right { right: 8px; top: 50%; transform: translateY(-50%); }

.map-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-spring);
}
.slide.active .map-dot {
  opacity: 1;
}
.map-dot .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--indigo-elevated);
}
.map-dot.highlight .dot {
  width: 16px;
  height: 16px;
  background: var(--copper);
  box-shadow: 0 0 12px rgba(212,132,94,0.5);
  animation: pulseDot 2s infinite;
}
.map-dot-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  background: var(--indigo-elevated);
  padding: 1px 4px;
  border-radius: 3px;
}
.map-dot.highlight .map-dot-label {
  color: var(--copper);
  font-weight: 700;
  font-size: 0.6875rem;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 12px rgba(212,132,94,0.3); }
  50% { box-shadow: 0 0 24px rgba(212,132,94,0.6); }
}

/* White space highlight quadrant */
.map-quadrant-highlight {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 50%;
  background: rgba(212,132,94,0.04);
  border-bottom: 1px dashed rgba(212,132,94,0.2);
  border-left: 1px dashed rgba(212,132,94,0.2);
}

/* --- Feature Matrix --- */
.feature-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6875rem;
  margin-top: 1rem;
}
.feature-matrix th {
  padding: 0.375rem 0.25rem;
  font-weight: 600;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-strong);
  text-align: center;
  white-space: nowrap;
}
.feature-matrix th:first-child {
  text-align: left;
  min-width: 160px;
}
.feature-matrix th.highlight-col {
  color: var(--copper);
  border-bottom-color: var(--copper);
}
.feature-matrix td {
  padding: 0.375rem 0.25rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  vertical-align: middle;
}
.feature-matrix td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
}
.feature-matrix .highlight-col {
  background: rgba(212,132,94,0.05);
}
.feature-matrix .icon-check {
  color: var(--green);
  font-weight: 700;
}
.feature-matrix .icon-partial {
  color: var(--yellow);
}
.feature-matrix .icon-miss {
  color: var(--text-muted);
  opacity: 0.4;
}

/* --- Differentiator Cards --- */
.diff-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.diff-card {
  background: var(--indigo-elevated);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
}
.diff-card:hover {
  border-color: var(--copper);
  box-shadow: var(--shadow-glow-copper);
  transform: translateY(-2px);
}
.diff-card-icon {
  font-size: 2rem;
  color: var(--copper);
  margin-bottom: 1rem;
}
.diff-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.diff-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Pricing Table --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.pricing-card {
  background: var(--indigo-elevated);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
}
.pricing-card.featured {
  border-color: var(--copper);
  box-shadow: var(--shadow-glow-copper);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin-bottom: 0.75rem;
}
.pricing-tier {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.pricing-amount {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--copper);
}
.pricing-amount span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}
.pricing-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}
.pricing-features {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.pricing-features li {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* --- Revenue Chart --- */
.revenue-chart {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  height: 280px;
  padding: 1rem 0;
  margin-top: 1rem;
}
.revenue-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  justify-content: flex-end;
}
.revenue-bar {
  width: 100%;
  max-width: 120px;
  border-radius: 8px 8px 4px 4px;
  transition: height 1.2s var(--ease-spring);
  height: 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.75rem;
}
.revenue-bar.y1 { background: var(--periwinkle-muted); }
.revenue-bar.y2 { background: linear-gradient(180deg, var(--periwinkle) 0%, var(--periwinkle-muted) 100%); }
.revenue-bar.y3 { background: linear-gradient(180deg, var(--copper) 0%, var(--copper-muted) 100%); }

.revenue-bar-value {
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 700;
  color: var(--text-primary);
}
.revenue-bar-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.revenue-bar-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.slide.active .revenue-bar { height: var(--bar-height); }

/* --- Metric Cards (Unit Economics) --- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.metric-card {
  background: var(--indigo-elevated);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
}
.metric-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.metric-icon.up { color: var(--green); }
.metric-icon.stable { color: var(--blue); }
.metric-body { flex: 1; }
.metric-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--copper);
}
.metric-range {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}
.metric-trend {
  font-size: 0.6875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 0.375rem;
}
.metric-trend.positive {
  color: var(--green);
  background: var(--green-bg);
}
.metric-trend.neutral {
  color: var(--blue);
  background: var(--blue-bg);
}

/* --- Risk Cards --- */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.risk-card {
  background: var(--indigo-elevated);
  border-radius: 12px;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
}
.risk-card.high { border-left: 3px solid var(--red); }
.risk-card.medium { border-left: 3px solid var(--orange); }
.risk-card.low { border-left: 3px solid var(--yellow); }

.risk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.risk-title {
  font-size: 0.875rem;
  font-weight: 600;
}
.risk-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
}
.risk-badge.high { color: var(--red); background: var(--red-bg); }
.risk-badge.medium { color: var(--orange); background: var(--orange-bg); }
.risk-badge.low { color: var(--yellow); background: var(--yellow-bg); }

.risk-impact {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  line-height: 1.4;
}
.risk-mitigation {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding-top: 0.375rem;
  border-top: 1px solid var(--border-subtle);
}

/* --- Capital & Team --- */
.capital-path {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.capital-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--indigo-elevated);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s var(--ease-spring);
}
.slide.active .capital-step {
  opacity: 1;
  transform: translateX(0);
}
.capital-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.capital-icon.bootstrap { background: var(--green-bg); color: var(--green); }
.capital-icon.growth { background: var(--periwinkle-muted); color: var(--periwinkle); }
.capital-icon.scale { background: var(--copper-muted); color: var(--copper); }
.capital-icon.optional { background: var(--blue-bg); color: var(--blue); }

.capital-body { flex: 1; }
.capital-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}
.capital-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.capital-figure {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--copper);
  text-align: right;
  flex-shrink: 0;
}

/* --- Gantt Timeline --- */
.gantt {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.5rem;
  position: relative;
}
.gantt-header {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gantt-ticks {
  display: flex;
  justify-content: space-between;
}
.gantt-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  transform: translateX(-12px);
  transition: all 0.5s var(--ease-spring);
}
.slide.active .gantt-row {
  opacity: 1;
  transform: translateX(0);
}
.gantt-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.gantt-track {
  height: 28px;
  background: var(--indigo-overlay);
  border-radius: 6px;
  position: relative;
}
.gantt-fill {
  position: absolute;
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-inverse);
  white-space: nowrap;
  transition: width 1s var(--ease-spring), left 0.5s var(--ease-spring);
  width: 0;
}
.slide.active .gantt-fill {
  width: var(--gantt-width);
  left: var(--gantt-left);
}
.gantt-fill.phase1 { background: var(--periwinkle); }
.gantt-fill.phase2 { background: var(--periwinkle-muted); color: var(--periwinkle); }
.gantt-fill.phase3 { background: var(--copper-muted); color: var(--copper); }
.gantt-fill.phase4 { background: linear-gradient(90deg, var(--copper-muted), var(--copper)); color: var(--text-inverse); }
.gantt-fill.phase5 { background: var(--copper); }
.gantt-fill.milestone { background: var(--green); }

/* --- Two-Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.two-col-narrow {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* --- Value Displacement --- */
.value-math {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--indigo-elevated);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
}
.value-box {
  flex: 1;
  text-align: center;
}
.value-box-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.value-box-figure {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
}
.value-box-figure.old { color: var(--red); text-decoration: line-through; opacity: 0.7; }
.value-box-figure.new { color: var(--green); }
.value-box-figure.roi { color: var(--copper); }
.value-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* --- Threat Deep Dive --- */
.threat-block {
  background: var(--indigo-elevated);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
}
.threat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.threat-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
}
.threat-badge.high { color: var(--red); background: var(--red-bg); }
.threat-badge.medium { color: var(--orange); background: var(--orange-bg); }
.threat-name {
  font-size: 1rem;
  font-weight: 700;
}
.threat-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.threat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.threat-col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}
.threat-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.threat-col-list li {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding-left: 0.875rem;
  position: relative;
}
.threat-col-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.threat-col-list.strengths li::before { background: var(--red); }
.threat-col-list.moat li::before { background: var(--green); }

/* --- Why Now Reasons --- */
.why-now-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.why-now-card {
  background: var(--indigo-elevated);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
}
.why-now-icon {
  font-size: 1.5rem;
  color: var(--copper);
  margin-bottom: 0.75rem;
}
.why-now-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.why-now-stat {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--periwinkle);
  margin-bottom: 0.25rem;
}
.why-now-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- Next Steps CTA --- */
.next-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--indigo-elevated);
  border: 1px solid var(--copper);
  border-radius: 16px;
  box-shadow: var(--shadow-glow-copper);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-spring);
}
.next-cta-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.next-cta-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.5;
}

/* --- Nav Hint --- */
.nav-hint {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--indigo-elevated);
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.nav-hint:hover { opacity: 1; }
.nav-hint kbd {
  background: var(--indigo-overlay);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 0.625rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root { --slide-padding: 1.5rem; }

  .two-col, .two-col-narrow, .diff-cards, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid, .risk-grid, .why-now-grid {
    grid-template-columns: 1fr;
  }
  .stat-row, .problem-stats {
    grid-template-columns: 1fr;
  }
  .positioning-map {
    max-width: 100%;
  }
  .feature-matrix {
    font-size: 0.5625rem;
  }
  .revenue-chart {
    height: 200px;
  }
  .title-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
  .title-meta span:nth-child(2),
  .title-meta span:nth-child(4) {
    display: none;
  }
  .bar-item-label { width: 100px; font-size: 0.6875rem; }
  .gantt-row { grid-template-columns: 80px 1fr; }
  .gantt-header { grid-template-columns: 80px 1fr; }
}

/* --- Business Term Tooltips --- */
abbr.term {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  opacity: 0.85;
  cursor: help;
  position: relative;
}

abbr.term::after {
  content: attr(data-def);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--indigo-elevated, #10152b);
  color: var(--text-secondary, #8892b0);
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong, #2c3462);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

abbr.term:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* For terms near left edge */
abbr.term.tip-right::after {
  left: 0;
  transform: translateX(0) translateY(4px);
}
abbr.term.tip-right:hover::after {
  transform: translateX(0) translateY(0);
}
