:root {
  --bg-deck: #080c16;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-strong: rgba(30, 41, 59, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(239, 68, 68, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --red: #ef4444;
  --red-soft: #f87171;
  --emerald: #10b981;
  --emerald-soft: #34d399;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --blue-soft: #60a5fa;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* DECK CONTAINER */
.deck-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(239, 68, 68, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
              var(--bg-deck);
}

/* TOP PROGRESS BAR */
.deck-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
}

.deck-progress-bar {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--red) 0%, var(--amber) 100%);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* TOP STATUS BAR */
.deck-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 12, 22, 0.6);
  backdrop-filter: blur(12px);
  z-index: 50;
  flex-shrink: 0;
}

.deck-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-shield {
  font-size: 1.25rem;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.deck-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.12);
  color: var(--red-soft);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

.deck-slide-indicator {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* SLIDES VIEWPORT */
.slides-viewport {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 36px;
}

/* INDIVIDUAL SLIDE */
.slide {
  position: absolute;
  width: 100%;
  max-width: 1100px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.slide-content {
  width: 100%;
  max-width: 1060px;
}

.slide-header {
  margin-bottom: 28px;
}

.slide-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--red-soft);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.slide-heading {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}

/* ================= SLIDE 1: TITLE SLIDE ================= */
.title-slide-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.main-title {
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}

.main-tagline {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 32px;
}

.highlight-red {
  color: var(--red-soft);
  font-weight: 700;
}

.subheadline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--red);
  padding: 20px 28px;
  border-radius: 0 12px 12px 0;
  max-width: 820px;
  margin-bottom: 40px;
  text-align: left;
}

.subheadline-card p {
  font-size: 1.2rem;
  color: var(--text-main);
  line-height: 1.6;
}

.author-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.author-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}

.author-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.author-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ================= SLIDE 2: THE GLITCH ================= */
.formula-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.formula-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-soft);
  margin-bottom: 12px;
}

.formula-text {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text-main);
}

.f-part {
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
}

.f-who { color: #93c5fd; background: rgba(59, 130, 246, 0.15); }
.f-struggle { color: #fde68a; background: rgba(245, 158, 11, 0.15); }
.f-root { color: #fca5a5; background: rgba(239, 68, 68, 0.15); }
.f-cost { color: #f87171; text-decoration: underline; text-decoration-color: var(--red); }

.three-traps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.mini-trap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
}

.mini-trap-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.mini-trap-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.mini-trap-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.insight-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px 20px;
}

.strip-icon {
  font-size: 1.6rem;
}

.strip-text {
  font-size: 1rem;
  color: var(--text-main);
}

.strip-text strong {
  color: #fff;
}

/* ================= SLIDE 3: WORKAROUNDS ================= */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}

.comp-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.comp-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 14px;
  width: fit-content;
}

.badge-fail {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red-soft);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-win {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.comp-metric {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.metric-win {
  color: var(--emerald-soft);
  font-weight: 700;
}

.comp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 20px;
}

.comp-bullets li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  position: relative;
  padding-left: 16px;
}

.comp-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.card-win {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-win .comp-bullets li::before {
  color: var(--emerald);
}

.card-win .comp-bullets li strong {
  color: #fff;
}

.comp-verdict {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
}

.verdict-bad {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.verdict-good {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ================= SLIDE 4: THE SOLUTION ================= */
.solution-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-soft);
  margin-bottom: 12px;
}

.pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.pillar-highlight {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-soft);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}

.solution-bottom-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 24px;
}

.bottom-card-icon {
  font-size: 2.2rem;
}

.solution-bottom-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.solution-bottom-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ================= SLIDE 5: USER VALIDATION ================= */
.validation-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.val-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.val-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.val-avatar {
  font-size: 1.6rem;
}

.val-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.val-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.val-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

.val-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.val-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
}

.val-row p {
  color: var(--text-muted);
  line-height: 1.4;
}

.val-row code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 4px;
}

.val-feedback {
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.4;
  margin-top: 2px;
}

.val-liked {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}

.val-confused {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fde68a;
}

.val-confused em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: #fff;
  margin-top: 3px;
}

/* ================= SLIDE 6: ROADMAP ================= */
.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 14px;
  width: fit-content;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.step-complete {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.step-complete .step-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.step-current {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.15);
}

.step-current .step-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.timeline-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.timeline-step p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ================= BOTTOM DECK NAVIGATION ================= */
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 12, 22, 0.7);
  backdrop-filter: blur(12px);
  z-index: 50;
  flex-shrink: 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

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

.nav-btn-primary {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.nav-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

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

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

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s;
}

.dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--red);
}

.key-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.key-hint kbd {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 1px 4px;
  color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .three-traps-row, .comparison-grid, .validation-cards-row, .roadmap-timeline, .solution-pillars-grid {
    grid-template-columns: 1fr;
  }
  .main-title { font-size: 3rem; }
  .deck-topbar, .deck-controls { padding: 12px 20px; }
  .slides-viewport { padding: 20px; }
}
