/* ==========================================================
   AI INFRASTRUCTURE SERIES - EPISODE 1: CPU vs GPU
   Aesthetics: Deep Cyber-Obsidian, Neon Cyan, NVIDIA Emerald
   ========================================================== */

:root {
  --bg-base: #080b11;
  --bg-surface: #0f1523;
  --bg-surface-elevated: #161f33;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.4);
  
  --cpu-blue: #38bdf8;
  --cpu-blue-glow: rgba(56, 189, 248, 0.25);
  --gpu-green: #10b981;
  --gpu-green-glow: rgba(16, 185, 129, 0.35);
  --nvidia-lime: #76b900;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Ambient Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #0ea5e9, transparent 70%);
  top: -200px;
  left: -100px;
}
.orb-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #10b981, transparent 70%);
  bottom: -250px;
  right: -150px;
}
.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  top: 40%;
  left: 60%;
  opacity: 0.15;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* App Container */
.app-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* ==========================================================
   TOP NAV HUD
   ========================================================== */
.top-nav {
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.series-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #34d399;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ep-tag {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

.nav-topic-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.timeline-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.timeline-bar {
  width: 180px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.timeline-fill {
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.slide-dots {
  display: flex;
  gap: 8px;
}

.slide-dot-item {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slide-dot-item.active {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  width: 32px;
}

.slide-dot-item:hover {
  background: rgba(255, 255, 255, 0.35);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-btn.active-btn {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--gpu-green);
  color: #34d399;
}

.shortcut-pill {
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================
   PRESENTATION STAGE & SLIDES
   ========================================================== */
.presentation-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
}

.slide-view {
  position: absolute;
  inset: 0;
  padding: 36px 64px 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px) scale(0.98);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.slide-view.prev-out {
  transform: translateX(-40px) scale(0.98);
  opacity: 0;
}

/* Common Slide Typo */
.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.badge-tag.cpu-accent {
  background: rgba(56, 189, 248, 0.12);
  color: var(--cpu-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-tag.gpu-accent {
  background: rgba(16, 185, 129, 0.12);
  color: var(--gpu-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-tag.race-accent {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-tag.ai-accent {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-tag.infra-accent {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-tag.finale-accent {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 900px;
}

/* ==========================================================
   SLIDE 1: HERO & HOOK
   ========================================================== */
.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 28px;
}

.hook-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hook-visual-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.hook-card {
  flex: 1;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  position: relative;
  transition: transform var(--transition-smooth);
}

.hook-card:hover {
  transform: translateY(-4px);
}

.highlight-card {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.2);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(15, 21, 35, 0.95) 100%);
}

.card-icon-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--cpu-blue);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 12px;
}

.gpu-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--gpu-green);
}

.card-illustration {
  height: 120px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.cpu-die-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 6px;
  width: 80%;
  height: 100%;
}

.core-slot {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--cpu-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cache-slot {
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gpu-die-mini {
  width: 90%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cuda-cluster-mini {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-gap: 4px;
  flex: 1;
}

.micro-core {
  background: #10b981;
  border-radius: 2px;
  opacity: 0.8;
  animation: pulseCore 1.8s infinite alternate;
}

.micro-core:nth-child(even) {
  animation-delay: 0.3s;
}

@keyframes pulseCore {
  0% { opacity: 0.4; filter: brightness(0.8); }
  100% { opacity: 1; filter: brightness(1.3); }
}

.hbm-tag {
  font-size: 9px;
  font-family: var(--font-mono);
  color: #34d399;
  text-align: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 3px;
  padding: 2px;
}

.card-desc h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-desc p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.verdict-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.verdict-tag.skipped {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
}

.verdict-tag.chosen {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vs-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  color: var(--text-muted);
}

.rhetorical-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-main);
}

/* ==========================================================
   SLIDE 2 & 3: SPLIT ARCHITECTURE & ANALOGY
   ========================================================== */
.split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.analogy-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 20px;
  border-left: 3px solid #38bdf8;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.slide-3 .analogy-lead {
  border-left-color: var(--gpu-green);
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

.bullet-item strong {
  color: #fff;
}

.bullet-icon {
  font-size: 20px;
  line-height: 1;
}

.visual-chip-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cpu-diagram-card {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 40px -10px var(--cpu-blue-glow);
}

.gpu-diagram-card {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 40px -10px var(--gpu-green-glow);
}

.chip-diagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.die-label {
  color: var(--text-muted);
  font-weight: 600;
}

.clock-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--cpu-blue);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.gpu-clock {
  background: rgba(16, 185, 129, 0.15);
  color: var(--gpu-green);
}

.cpu-internal-architecture {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cpu-cores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.heavy-core {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.core-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.alu-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--cpu-blue);
  padding: 2px 6px;
  border-radius: 3px;
  width: fit-content;
}

.cache-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.cache-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.cache-data-flow {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.flow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cpu-blue);
  animation: bounceDot 1.4s infinite ease-in-out;
}
.flow-dot:nth-child(2) { animation-delay: 0.2s; }
.flow-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounceDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1.2); opacity: 1; }
}

.system-bus-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  border-radius: 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.analogy-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* GPU Specific Diagram */
.streaming-multiprocessors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.sm-block {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sm-block span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #34d399;
}

.mini-cores-swarm {
  height: 20px;
  background-image: radial-gradient(#10b981 1.5px, transparent 1.5px);
  background-size: 4px 4px;
  border-radius: 2px;
}

.hbm-memory-rails {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.hbm-stack {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 6px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.bandwidth-stream {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.laser-lines {
  height: 3px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  background-size: 200% 100%;
  animation: laserFlow 1.5s linear infinite;
}

@keyframes laserFlow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ==========================================================
   SLIDE 4: INTERACTIVE BENCHMARK RACE
   ========================================================== */
.interactive-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.race-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
}

.arena-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arena-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cpu-dot { background: var(--cpu-blue); box-shadow: 0 0 8px var(--cpu-blue); }
.gpu-dot { background: var(--gpu-green); box-shadow: 0 0 8px var(--gpu-green); }

.stat-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
}

.pixel-canvas-wrapper {
  position: relative;
  background: #05080f;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 180;
}

.scan-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.flash-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 185, 129, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.track-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.arena-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.race-cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.5);
  transition: all var(--transition-fast);
}

.race-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.7);
}

.reset-cta-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reset-cta-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.speedup-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s;
}

.speedup-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.interactive-insight {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: #fed7aa;
}

.insight-icon {
  font-size: 24px;
}

/* ==========================================================
   SLIDE 5: AI MATH & GEMM
   ========================================================== */
.math-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.matrix-explainer-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
}

.matrix-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.matrix-card-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.matrix-visual {
  background: #060911;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.weights-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.vector-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.m-cell {
  width: 40px;
  height: 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.3s;
}

.highlight-cell {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
  color: #c084fc;
  font-weight: 700;
}

.matrix-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.math-operator {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-muted);
}

.result-matrix-card {
  max-width: 320px;
}

.gemm-equation-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.math-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #34d399;
  line-height: 1.5;
  display: block;
}

.gemm-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.gemm-breakdown .pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #a855f7;
  font-weight: 700;
}

.connection-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
}

.banner-icon {
  font-size: 28px;
}

.banner-text {
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}

/* ==========================================================
   SLIDE 6: SPEC SHOWDOWN TABLE
   ========================================================== */
.comparison-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.comparison-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tech-table th, .tech-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-table th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tech-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tag-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.tag-pill.blue {
  background: rgba(56, 189, 248, 0.15);
  color: var(--cpu-blue);
}

.tag-pill.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.highlight-green {
  color: #34d399;
  font-weight: 700;
}

/* ==========================================================
   SLIDE 7: FINALE & EPISODE 2 TEASER
   ========================================================== */
.wrapup-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.summary-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.sum-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: transform var(--transition-fast);
}

.sum-card:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.sum-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-family: var(--font-mono);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sum-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sum-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.teaser-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(15, 21, 35, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 15px 40px -10px rgba(168, 85, 247, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teaser-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #c084fc;
  letter-spacing: 0.08em;
}

.teaser-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.teaser-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.teaser-preview-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.core-type-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #fff;
}

.tensor-tag {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.vram-tag {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.teaser-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.series-countdown {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.next-series-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.next-series-btn:hover {
  background: #fff;
  color: #000;
}

/* ==========================================================
   BOTTOM CONTROLS BAR
   ========================================================== */
.bottom-controls {
  height: 56px;
  background: rgba(10, 15, 26, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.controls-left, .controls-center, .controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ctrl-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.ctrl-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.play-pause-btn {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.play-pause-btn:hover {
  background: rgba(16, 185, 129, 0.25);
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  min-width: 85px;
  text-align: center;
}

.keyboard-hints {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
}

.key-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-muted);
}

/* ==========================================================
   SLIDE-SYNCED PRESENTER TELEPROMPTER DRAWER
   ========================================================== */
.script-drawer {
  position: absolute;
  bottom: 56px;
  right: 28px;
  width: 480px;
  max-height: 480px;
  background: rgba(15, 21, 35, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.script-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.drawer-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title-box h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.slide-target-time {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 6px;
  border-radius: 4px;
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-speed-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.voice-speed-selector select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  padding: 2px 4px;
}

.drawer-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
}

.drawer-icon-btn:hover {
  color: #fff;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.script-meta-strip {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.script-voice-text {
  font-size: 15px;
  line-height: 1.65;
  color: #e2e8f0;
  white-space: pre-line;
}

.presenter-tips-box {
  font-size: 12px;
  line-height: 1.5;
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--accent-amber);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #fed7aa;
}

.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .split-layout, .wrapup-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .visual-chip-card, .teaser-card {
    display: none;
  }
  .script-drawer {
    width: 90vw;
    right: 5vw;
  }
}

/* ==========================================================
   CLEAN RECORDING MODE: Hide presenter tools & dev hints
   ========================================================== */
#btnScriptToggle,
#btnAudioRehearse,
.keyboard-hints,
.controls-center {
  display: none !important;
}
