/* ============================================================
   genai-mkt-engine — Pitch Deck
   Silicon Valley-grade, dark, animated, brand-coherent.
   ============================================================ */

:root {
  --bg: #050810;
  --bg-elev: #0a0e27;
  --fg: #f8fafc;
  --fg-muted: #94a3b8;
  --fg-subtle: #64748b;
  --accent: #6366f1;       /* indigo 500 */
  --accent-2: #06b6d4;     /* cyan 500 */
  --accent-3: #f59e0b;     /* amber 500 */
  --success: #10b981;      /* emerald 500 */
  --danger: #ef4444;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.24);
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --shadow-glow: 0 0 80px rgba(99, 102, 241, 0.18);
  --gradient-hero: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #8b5cf6 100%);
  --gradient-text: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Background layers ===== */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 12s ease-in-out infinite;
}

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

.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 10%, rgba(99, 102, 241, 0.2), transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 80%, rgba(6, 182, 212, 0.15), transparent 60%),
    radial-gradient(ellipse 800px 600px at 50% 100%, rgba(139, 92, 246, 0.1), transparent 60%);
  animation: particlesDrift 20s ease-in-out infinite alternate;
}

@keyframes particlesDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.05); }
}

/* ===== Deck container ===== */

.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 80px 7vw 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.6s var(--easing), transform 0.6s var(--easing);
  pointer-events: none;
  overflow: hidden;
}

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

/* When slide is exiting (became inactive), it slides up out */
.slide.prev {
  transform: translateY(-40px) scale(0.98);
}

/* ===== Typography ===== */

.kicker {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  padding: 6px 14px;
  border: 1px solid var(--accent-2);
  border-radius: 100px;
  margin-bottom: 24px;
  align-self: flex-start;
  animation: kickerIn 0.6s var(--easing) 0.1s both;
}

@keyframes kickerIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.title-xl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  animation: titleIn 0.8s var(--easing) 0.2s both;
  max-width: 92%;
}

.title-xl-2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  animation: titleIn 0.8s var(--easing) 0.2s both;
}

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

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  color: var(--fg-muted);
  max-width: 820px;
  margin-bottom: 38px;
  line-height: 1.5;
  animation: titleIn 0.8s var(--easing) 0.35s both;
}

.accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.highlight {
  color: var(--accent-3);
}

strong {
  font-weight: 700;
  color: var(--fg);
}

/* ===== Slide 1 — Cover ===== */

.cover {
  justify-content: center;
  align-items: flex-start;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 56px;
  animation: kickerIn 0.6s var(--easing) 0.1s both;
}

.brand-mark .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: lineUp 0.9s var(--easing) forwards;
}

.hero-title .line-1 { animation-delay: 0.2s; }
.hero-title .line-2 { animation-delay: 0.45s; }

@keyframes lineUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  color: var(--fg-muted);
  max-width: 760px;
  line-height: 1.5;
  margin-bottom: 50px;
  animation: lineUp 0.9s var(--easing) 0.7s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.cover-cta {
  animation: lineUp 0.9s var(--easing) 0.95s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.pill {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 12px 24px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
}

.hint {
  position: absolute;
  bottom: 100px;
  left: 7vw;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--fg-subtle);
  animation: lineUp 0.9s var(--easing) 1.5s forwards;
  opacity: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ===== Slide 2 — Cost grid ===== */

.cost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
  max-width: 1100px;
}

.cost-card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  opacity: 0;
  animation: cardIn 0.6s var(--easing) forwards;
}

.role-name {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.cost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-3);
}

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

.delay-100 { animation-delay: 0.4s; }
.delay-150 { animation-delay: 0.45s; }
.delay-200 { animation-delay: 0.5s; }
.delay-250 { animation-delay: 0.55s; }
.delay-300 { animation-delay: 0.6s; }
.delay-350 { animation-delay: 0.65s; }
.delay-400 { animation-delay: 0.7s; }
.delay-500 { animation-delay: 0.8s; }

.problem-stats {
  display: flex;
  gap: 60px;
  margin: 26px 0 28px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--fg-muted);
  margin-top: 4px;
}

.frust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.02rem;
  color: var(--fg-muted);
  max-width: 1000px;
  animation: cardIn 0.6s var(--easing) 0.8s both;
}

.frust-list li {
  padding-left: 22px;
  position: relative;
}

.frust-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
}

/* ===== Slide 3 — Terminal ===== */

.terminal {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  max-width: 920px;
  margin: 22px 0 32px;
  box-shadow: var(--shadow-glow);
  animation: cardIn 0.7s var(--easing) 0.4s both;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-header .red { background: #ff5f56; }
.terminal-header .yellow { background: #ffbd2e; }
.terminal-header .green { background: #27c93f; }

.terminal-title {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--fg-subtle);
}

.terminal-body {
  padding: 22px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--fg);
  position: relative;
  overflow: hidden;
}

/* Subtle CRT scanline overlay */
.terminal-body::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
  z-index: 1;
}

/* Soft phosphor glow on top edge */
.terminal-body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent);
  z-index: 1;
}

.terminal-body .line {
  margin-bottom: 8px;
  opacity: 0;
  animation: lineUp 0.5s var(--easing) forwards;
  position: relative;
  z-index: 2;
}

.terminal-body .line.typing { animation-delay: 0.5s; }
.terminal-body .delay-1 { animation-delay: 1.7s; }
.terminal-body .delay-2 { animation-delay: 2.5s; }
.terminal-body .delay-3 { animation-delay: 3.3s; }
.terminal-body .delay-4 { animation-delay: 4.1s; }
.terminal-body .delay-5 { animation-delay: 4.9s; }

.prompt {
  display: inline-block;
  width: 30px;
  color: var(--accent);
  margin-right: 8px;
}

/* Spinner on each agent gear ⚙ — rotates while line is "thinking" */
.terminal-body .response .prompt {
  display: inline-block;
  transform-origin: 50% 55%;
}

.terminal-body .delay-1 .prompt { animation: spinThink 0.6s linear 1.7s 4 both, settleSpin 0.3s var(--easing) 4.1s forwards; }
.terminal-body .delay-2 .prompt { animation: spinThink 0.6s linear 2.5s 4 both, settleSpin 0.3s var(--easing) 4.9s forwards; }
.terminal-body .delay-3 .prompt { animation: spinThink 0.6s linear 3.3s 4 both, settleSpin 0.3s var(--easing) 5.7s forwards; }

@keyframes spinThink {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

@keyframes settleSpin {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0); }
}

/* Typing reveal on user prompt */
.terminal-body .typing .typed-text {
  display: inline-block;
  vertical-align: top;
  clip-path: inset(0 100% 0 0);
  animation: typeReveal 1.0s steps(60, end) 0.6s forwards;
}

.terminal-body .typing .typed-text::after {
  content: '▌';
  display: inline-block;
  margin-left: 2px;
  color: var(--accent-2);
  animation: blinkCursor 0.7s steps(1) 0.6s infinite, hideCursor 0.01s linear 1.7s forwards;
}

@keyframes typeReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes blinkCursor {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes hideCursor {
  to { display: none; opacity: 0; }
}

/* Pulse glow on success line */
.muted { color: var(--fg-muted); }
.success { color: var(--success); font-weight: 600; }

.terminal-body .line.response.delay-5 {
  animation: lineUp 0.5s var(--easing) 4.9s forwards, successGlow 1.4s var(--easing) 5.4s 2 both;
}

@keyframes successGlow {
  0%   { text-shadow: 0 0 0 rgba(16, 185, 129, 0); }
  50%  { text-shadow: 0 0 22px rgba(16, 185, 129, 0.55); }
  100% { text-shadow: 0 0 0 rgba(16, 185, 129, 0); }
}

/* Subtle progress shimmer on the WhatsApp line */
.terminal-body .line.response.delay-4 span:last-child {
  background: linear-gradient(
    90deg,
    var(--fg) 0%,
    var(--fg) 30%,
    var(--accent-2) 50%,
    var(--fg) 70%,
    var(--fg) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerSweep 2s var(--easing) 4.1s 1 both;
}

@keyframes shimmerSweep {
  from { background-position: 200% 0; }
  to   { background-position: -100% 0; }
}

.value-bullets {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.vb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--fg-muted);
}

.vb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  font-size: 1.1rem;
}

/* ===== Slide 4 — Forces ===== */

.forces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 30px 0 32px;
}

.force {
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  opacity: 0;
  animation: cardIn 0.6s var(--easing) forwards;
  transition: transform 0.3s var(--easing), border-color 0.3s var(--easing), background 0.3s var(--easing);
}

.force:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  background: var(--card-hover);
}

.force-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.force-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.force p {
  font-size: 0.93rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

.why-now-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
  padding: 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  animation: cardIn 0.8s var(--easing) 0.9s both;
}

/* ===== Slide 5 — TAM ===== */

.tam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 30px 0 32px;
}

.tam-card {
  padding: 32px 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: cardIn 0.6s var(--easing) forwards;
}

.tam-card.tam { animation-delay: 0.4s; }
.tam-card.sam { animation-delay: 0.55s; }
.tam-card.som { animation-delay: 0.7s; border-color: rgba(99, 102, 241, 0.4); background: rgba(99, 102, 241, 0.05); }

.tam-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.tam-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  line-height: 1;
}

.tam-desc {
  font-size: 0.92rem;
  color: var(--fg-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-hero);
  border-radius: 100px;
  animation: barFill 1.6s var(--easing) 1s forwards;
}

@keyframes barFill {
  to { width: var(--w); }
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.ms {
  display: flex;
  flex-direction: column;
}

.ms .big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

.ms span:last-child {
  font-size: 0.88rem;
  color: var(--fg-muted);
}

/* ===== Slide 6 — SQUAD ===== */

.squad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0 24px;
}

.role-card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  opacity: 0;
  animation: cardIn 0.6s var(--easing) forwards;
  transition: transform 0.3s var(--easing), border-color 0.3s var(--easing);
  cursor: default;
}

.role-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.45);
}

.role-emoji {
  font-size: 2rem;
  margin-bottom: 12px;
  filter: saturate(1.2);
}

.role-card .role-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}

.role-skill {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.role-replaces {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent-3);
}

.squad-total {
  text-align: center;
  font-size: 1.05rem;
  color: var(--fg-muted);
  padding: 18px 24px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  animation: cardIn 0.6s var(--easing) 1s both;
}

/* ===== Slide 7 — Flow ===== */

.flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 26px;
  max-width: 1000px;
}

.flow-step {
  display: flex;
  gap: 22px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  opacity: 0;
  animation: flowIn 0.6s var(--easing) forwards;
}

@keyframes flowIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.step-desc {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.audit-callout {
  text-align: center;
  padding: 16px 24px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  color: var(--fg);
  font-size: 1.02rem;
  animation: cardIn 0.7s var(--easing) 1s both;
}

/* ===== Slide 8 — Pricing ===== */

.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 26px;
}

.price-card {
  padding: 28px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  opacity: 0;
  animation: cardIn 0.6s var(--easing) forwards;
  transition: transform 0.3s var(--easing);
}

.price-card:hover {
  transform: translateY(-6px);
}

.price-card.pro {
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  background: var(--gradient-hero);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
}

.tier-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.tier-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--fg);
  line-height: 1;
}

.tier-price .per {
  font-size: 0.95rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-card li {
  font-size: 0.88rem;
  color: var(--fg-muted);
  padding-left: 18px;
  position: relative;
}

.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.tier-target {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--fg-subtle);
  font-style: italic;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.metric {
  text-align: center;
}

.metric-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ===== Slide 9 — Foundation ===== */

.foundation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 30px 0 28px;
}

.foundation-card {
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0;
  animation: cardIn 0.5s var(--easing) forwards;
}

.fc-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.fc-desc {
  font-size: 0.86rem;
  color: var(--fg-muted);
}

.fc-desc code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  background: rgba(99, 102, 241, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.traction-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.ts {
  display: flex;
  flex-direction: column;
}

.ts .big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1;
}

.ts span:last-child {
  font-size: 0.92rem;
  color: var(--fg-muted);
}

/* ===== Slide 10 — SWOT ===== */

.swot {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  margin: 22px 0 24px;
  max-height: 50vh;
}

.quad {
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  opacity: 0;
  animation: cardIn 0.6s var(--easing) forwards;
}

.quad.strengths { border-top: 3px solid var(--success); }
.quad.weaknesses { border-top: 3px solid var(--accent-3); }
.quad.opportunities { border-top: 3px solid var(--accent-2); }
.quad.threats { border-top: 3px solid var(--danger); }

.quad-h {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.quad.strengths .quad-h { color: var(--success); }
.quad.weaknesses .quad-h { color: var(--accent-3); }
.quad.opportunities .quad-h { color: var(--accent-2); }
.quad.threats .quad-h { color: var(--danger); }

.quad ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quad li {
  font-size: 0.88rem;
  color: var(--fg-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}

.quad li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--fg-subtle);
}

.competition {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
  animation: cardIn 0.6s var(--easing) 0.7s both;
}

.comp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  background: var(--bg-elev);
  padding: 12px 16px;
  font-size: 0.84rem;
  align-items: center;
}

.comp-row.header {
  background: rgba(99, 102, 241, 0.08);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--fg);
}

.comp-row .us {
  color: var(--accent);
  font-weight: 700;
}

.comp-row > div:first-child {
  color: var(--fg);
  font-weight: 500;
}

/* ===== Slide 11 — GTM ===== */

.gtm-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 28px;
}

.phase {
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  opacity: 0;
  animation: cardIn 0.6s var(--easing) forwards;
}

.phase-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.phase-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.phase-target {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.phase-channel {
  font-size: 0.86rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.gtm-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.gm {
  text-align: center;
  padding: 16px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 10px;
}

.gm-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gm-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* ===== Slide 12 — Closing ===== */

.closing {
  justify-content: center;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0 40px;
  max-width: 920px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0;
  animation: flowIn 0.6s var(--easing) forwards;
}

.b-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  flex-shrink: 0;
}

.b-text {
  font-size: 1rem;
  color: var(--fg-muted);
}

.cta {
  text-align: center;
  padding: 36px 28px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 18px;
  margin-bottom: 30px;
  animation: cardIn 0.7s var(--easing) 0.7s both;
}

.cta-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--fg);
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s var(--easing);
}

.btn.primary {
  background: var(--gradient-hero);
  color: white;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
}

.btn.secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}

.btn.secondary:hover {
  background: var(--card-hover);
  border-color: var(--accent);
}

.closing-tag {
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--fg-subtle);
  align-self: center;
  animation: cardIn 0.7s var(--easing) 1.2s both;
}

.closing-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

/* ===== Navigation ===== */

.nav {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  z-index: 10;
}

.nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--easing);
}

.nav-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--fg-muted);
  min-width: 60px;
  text-align: center;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 10;
}

.progress-fill {
  height: 100%;
  width: 8.33%;
  background: var(--gradient-hero);
  transition: width 0.5s var(--easing);
}

/* ===== Responsive ===== */

@media (max-width: 1100px) {
  .cost-grid,
  .squad,
  .pricing,
  .gtm-phases,
  .foundation,
  .forces,
  .tam-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .market-stats,
  .metrics-row,
  .traction-stats,
  .gtm-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .slide {
    padding: 60px 5vw 100px;
  }
  .cost-grid,
  .squad,
  .pricing,
  .gtm-phases,
  .foundation,
  .forces,
  .tam-grid,
  .market-stats,
  .metrics-row,
  .traction-stats,
  .gtm-metrics,
  .swot {
    grid-template-columns: 1fr;
  }
  .comp-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .comp-row.header { display: none; }
}

/* Print friendly export to PDF */
@media print {
  body { overflow: visible; }
  .nav, .progress, .bg-grid, .bg-particles, .hint { display: none; }
  .slide {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100vh;
    page-break-after: always;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }
}
