/* ============================================
   PROJECT NEBULA - NEON NOIR DECK
   ============================================ */

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

:root {
  /* Neon Noir palette */
  --bg: #08080C;
  --surface: #111118;
  --surface-2: #14141E;
  --border: #1E1E28;
  --border-2: #2A2A38;
  --text: #F0F0F5;
  --text-2: #B4B4C0;
  --dim: #7A7A8E;
  --dim-2: #4A4A5A;

  --primary: #3B82F6;       /* electric blue */
  --primary-dim: #2563EB;
  --secondary: #EC4899;     /* magenta */
  --accent: #06B6D4;        /* cyan */
  --gold: #F59E0B;          /* warning gold */
  --green: #10B981;         /* success */

  --glow: rgba(59,130,246,0.18);
  --glow-strong: rgba(59,130,246,0.40);
  --glow-magenta: rgba(236,72,153,0.18);
  --glow-magenta-strong: rgba(236,72,153,0.40);

  --font-headline: 'Geist', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', ui-monospace, monospace;

  /* Slide canvas (16:9 @ 1280x720 - matches 13.333"x7.5" PPT @ 96dpi) */
  --slide-w: 1280px;
  --slide-h: 720px;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* ============================================
   DECK SHELL
   ============================================ */
.deck {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.slide {
  position: absolute;
  width: var(--slide-w);
  height: var(--slide-h);
  background: var(--bg);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  transform-origin: center;
}

.slide.active {
  opacity: 1;
  pointer-events: all;
}

/* Top neon line — every slide */
.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 8px var(--glow-strong), 0 0 20px var(--glow);
  opacity: 0.7;
  z-index: 10;
}

/* Subtle gradient mesh backgrounds */
.mesh-tr {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, rgba(236,72,153,0.04) 40%, transparent 70%);
  pointer-events: none;
}

.mesh-bl {
  position: absolute;
  bottom: -180px;
  left: -180px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,0.07) 0%, rgba(59,130,246,0.03) 40%, transparent 70%);
  pointer-events: none;
}

.mesh-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 60%);
  pointer-events: none;
}

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

/* ============================================
   PROGRESS BAR & SLIDE NUMBER
   ============================================ */
#progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow-strong), 0 -2px 12px var(--glow);
  transition: width 0.4s ease;
  z-index: 1000;
}

#slide-number {
  position: fixed;
  bottom: 24px;
  right: 32px;
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  z-index: 1000;
  letter-spacing: 0.5px;
  user-select: none;
}

#slide-number .sep { color: var(--dim-2); margin: 0 4px; }
#slide-number .total { color: var(--dim-2); }

/* Help hint */
#help-hint {
  position: fixed;
  bottom: 24px;
  left: 32px;
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 500;
  color: var(--dim-2);
  z-index: 1000;
  letter-spacing: 1px;
  text-transform: uppercase;
  user-select: none;
}

#help-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  margin: 0 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--dim);
}

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */
.h-hero { font-family: var(--font-headline); font-weight: 800; font-size: 88px; line-height: 1.02; letter-spacing: -0.03em; }
.h-1    { font-family: var(--font-headline); font-weight: 700; font-size: 56px; line-height: 1.08; letter-spacing: -0.025em; }
.h-2    { font-family: var(--font-headline); font-weight: 700; font-size: 40px; line-height: 1.1;  letter-spacing: -0.02em; }
.h-3    { font-family: var(--font-headline); font-weight: 600; font-size: 28px; line-height: 1.2;  letter-spacing: -0.015em; }
.h-4    { font-family: var(--font-headline); font-weight: 600; font-size: 20px; line-height: 1.3;  letter-spacing: -0.01em; }

.body-l { font-family: var(--font-body); font-weight: 400; font-size: 22px; line-height: 1.55; color: var(--text-2); }
.body-m { font-family: var(--font-body); font-weight: 400; font-size: 18px; line-height: 1.6;  color: var(--text-2); }
.body-s { font-family: var(--font-body); font-weight: 400; font-size: 16px; line-height: 1.6;  color: var(--text-2); }
.body-xs{ font-family: var(--font-body); font-weight: 400; font-size: 13px; line-height: 1.5;  color: var(--dim); }

.eyebrow {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.label {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.neon-blue {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(59,130,246,0.5), 0 0 30px rgba(59,130,246,0.18);
}

.neon-magenta {
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(236,72,153,0.5), 0 0 30px rgba(236,72,153,0.18);
}

.neon-cyan {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(6,182,212,0.5), 0 0 30px rgba(6,182,212,0.18);
}

.text-dim { color: var(--dim); }
.text-text { color: var(--text); }
.text-text-2 { color: var(--text-2); }
.italic { font-style: italic; }
.semibold { font-weight: 600; }
.bold { font-weight: 700; }
.mono { font-family: var(--font-mono); }

.neon-line {
  width: 80px;
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 6px var(--glow-strong), 0 0 15px var(--glow);
}

.neon-line-wide {
  width: 160px;
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 6px var(--glow-strong), 0 0 15px var(--glow);
}

.neon-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

/* ============================================
   SHAPE / OBJECT PRIMITIVES
   ============================================ */
.absbox {
  position: absolute;
  display: flex;
  flex-direction: column;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.card-glow {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.08), 0 0 30px rgba(59,130,246,0.06);
}

.card-magenta-glow {
  background: var(--surface);
  border: 1px solid rgba(236,72,153,0.20);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(236,72,153,0.06), 0 0 30px rgba(236,72,153,0.05);
}

.card-accent-top {
  position: relative;
}
.card-accent-top::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 6px var(--glow-strong);
}

.card-accent-left {
  border-left: 2px solid var(--primary);
  box-shadow: -1px 0 8px var(--glow);
}

.card-accent-left-magenta {
  border-left: 2px solid var(--secondary);
  box-shadow: -1px 0 8px var(--glow-magenta);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  background: rgba(59,130,246,0.10);
  color: var(--primary);
  border: 1px solid rgba(59,130,246,0.25);
}

.tag-magenta {
  background: rgba(236,72,153,0.10);
  color: var(--secondary);
  border: 1px solid rgba(236,72,153,0.25);
}

.tag-warn {
  background: rgba(245,158,11,0.10);
  color: var(--gold);
  border: 1px solid rgba(245,158,11,0.25);
}

.tag-green {
  background: rgba(16,185,129,0.10);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.25);
}

.tag-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: none;
}

.number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59,130,246,0.12);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
}

.kpi-num {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--primary);
  text-shadow: 0 0 20px var(--glow-strong);
  letter-spacing: -0.02em;
}

.kpi-label {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* Step pill */
.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.30);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Bullet rows */
.bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.bullet::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow-strong);
  margin-top: 9px;
}

.bullet-magenta::before {
  background: var(--secondary);
  box-shadow: 0 0 8px var(--glow-magenta-strong);
}

/* Arrow connectors (CSS) */
.arrow-h {
  position: relative;
  height: 2px;
  background: var(--border-2);
}
.arrow-h::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--border-2);
  border-top: 2px solid var(--border-2);
}

.arrow-h-glow {
  background: linear-gradient(90deg, transparent, var(--primary));
  box-shadow: 0 0 6px var(--glow);
}
.arrow-h-glow::after {
  border-right: 2px solid var(--primary);
  border-top: 2px solid var(--primary);
  box-shadow: 2px -2px 6px var(--glow);
}

.arrow-v {
  position: relative;
  width: 2px;
  background: var(--border-2);
}
.arrow-v::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--border-2);
  border-bottom: 2px solid var(--border-2);
}

.arrow-v-glow {
  background: linear-gradient(180deg, transparent, var(--primary));
  box-shadow: 0 0 6px var(--glow);
}
.arrow-v-glow::after {
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* ============================================
   CODE / PROMPT BLOCKS
   ============================================ */
.code-block {
  background: rgba(8,8,12,0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  position: relative;
  overflow: hidden;
}

.code-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow-strong);
}

.code-block.magenta::before { background: var(--secondary); box-shadow: 0 0 8px var(--glow-magenta-strong); }
.code-block.warn::before { background: var(--gold); }

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.code-header::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--glow-strong);
}

.quote-block {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  color: var(--text-2);
  border-left: 2px solid var(--secondary);
  padding-left: 16px;
  box-shadow: -1px 0 8px var(--glow-magenta);
  line-height: 1.55;
}

/* ============================================
   PROCESS PIPELINE (slides 18/42)
   ============================================ */
.pipeline {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
}

.pipeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.pipeline-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pipeline-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(59,130,246,0.15), transparent 60%);
}

.pipeline-icon svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.pipeline-bot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(236,72,153,0.10);
  border: 1px solid rgba(236,72,153,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
}

.pipeline-bot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.20), transparent 70%);
  z-index: -1;
}

.pipeline-arrow {
  flex: 0 0 32px;
  height: 2px;
  align-self: center;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--border-2), var(--primary));
  position: relative;
  box-shadow: 0 0 6px var(--glow);
}

.pipeline-arrow::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--primary);
  border-top: 2px solid var(--primary);
  box-shadow: 2px -2px 6px var(--glow);
}

.pipeline-label {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}

.pipeline-desc {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.45;
  color: var(--dim);
  text-align: left;
  margin-top: 4px;
}

/* ============================================
   IMAGES
   ============================================ */
.img {
  position: absolute;
  object-fit: contain;
  border-radius: 6px;
}

.img-bordered {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.img-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(8,8,12,0.85);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.img-mask {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.img-mask::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8,8,12,0.4) 100%);
  pointer-events: none;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
}

.tbl thead th {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-2);
}

.tbl tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
  line-height: 1.5;
}

.tbl tbody tr:last-child td { border-bottom: none; }

.tbl tbody tr:hover td { background: rgba(59,130,246,0.04); }

.tbl-compact thead th { padding: 10px 12px; font-size: 10px; }
.tbl-compact tbody td { padding: 10px 12px; font-size: 13px; }

/* ============================================
   PIPELINE STAGE TABLE (slide 42 long form)
   ============================================ */
.stage-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.stage-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.stage-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.6;
}

.stage-cell-title {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.stage-cell-list {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.5;
  color: var(--dim);
}

.stage-cell-list li {
  list-style: none;
  margin-bottom: 4px;
  padding-left: 10px;
  position: relative;
}

.stage-cell-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 4px;
  height: 1px;
  background: var(--primary);
}

/* ============================================
   ICON BOX
   ============================================ */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, rgba(59,130,246,0.2), transparent 70%);
  pointer-events: none;
}

.icon-box svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

/* ============================================
   TITLE / SECTION SLIDES
   ============================================ */
.title-stack {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 80px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-stack {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ============================================
   SCROLL-PROOF HELPERS
   ============================================ */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }
.gap-10 { gap: 40px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 2px; }
.tracking-wider { letter-spacing: 3px; }

.relative { position: relative; }

/* ============================================
   FADE IN
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px var(--glow-strong), 0 0 20px var(--glow); }
  50% { box-shadow: 0 0 12px var(--glow-strong), 0 0 30px var(--glow); }
}

/* ============================================
   SCALE TO VIEWPORT
   ============================================ */
.deck-stage {
  position: relative;
  width: var(--slide-w);
  height: var(--slide-h);
  transform-origin: center;
}

/* Print: each slide on its own page */
@media print {
  body { overflow: visible; }
  .deck { position: relative; display: block; }
  .slide { position: relative; opacity: 1; pointer-events: all; page-break-after: always; margin-bottom: 0; }
  #progress-bar, #slide-number, #help-hint { display: none; }
}
