:root {
  --bg: #07111f;
  --bg-soft: #0d1627;
  --bg-panel: rgba(16, 26, 44, 0.92);
  --bg-panel-strong: rgba(10, 17, 30, 0.96);
  --bg-card: rgba(19, 32, 56, 0.86);
  --text: #edf3ff;
  --muted: #9fb3d1;
  --purple: #8b5cf6;
  --purple-soft: #c4b5fd;
  --cyan: #22d3ee;
  --cyan-soft: #7dd3fc;
  --green: #10b981;
  --amber: #f59e0b;
  --amber-soft: #fcd34d;
  --red: #ef4444;
  --border: rgba(138, 92, 246, 0.24);
  --border-strong: rgba(125, 211, 252, 0.3);
  --shadow: 0 24px 72px rgba(2, 8, 23, 0.58);
  --code-bg: #0d1117;
  --title-size: 32px;
  --body-size: 16px;
  --annotation-size: 13px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.18), transparent 28%),
    linear-gradient(135deg, #040814 0%, #07111f 46%, #081120 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.deck-shell {
  width: min(96vw, calc(90vh * 16 / 9));
  height: min(90vh, calc(96vw * 9 / 16));
  position: relative;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 42px 52px 44px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 16, 31, 0.98) 0%, rgba(8, 17, 31, 0.93) 100%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.06), transparent 38%),
    linear-gradient(225deg, rgba(34, 211, 238, 0.06), transparent 42%);
  border: 1px solid rgba(125, 211, 252, 0.1);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #6d28d9 0%, #8b5cf6 42%, #c084fc 70%, #22d3ee 100%);
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(150deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 48px 28px, 48px 28px, 48px 28px;
  background-position: 0 0, 0 0, 24px 14px;
  opacity: 0.08;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.slide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(196, 181, 253, 0.4);
  color: #e9ddff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-pill.subtle {
  height: auto;
  padding: 8px 12px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(125, 211, 252, 0.18);
  color: var(--muted);
}

.slide-number {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.title-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
}

.title-stack h1,
.title-stack h2 {
  font-size: var(--title-size);
  line-height: 1.08;
}

.lead {
  margin: 0;
  font-size: var(--body-size);
  line-height: 1.5;
  color: var(--muted);
  max-width: 78ch;
}

.slide-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.panel.strong {
  background: var(--bg-panel-strong);
}

.panel.cyan-glow {
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.08), 0 0 36px rgba(34, 211, 238, 0.08);
}

.panel.purple-glow {
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.08), 0 0 36px rgba(139, 92, 246, 0.09);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.two-col.wide-left {
  grid-template-columns: 1.2fr 0.8fr;
}

.two-col.wide-right {
  grid-template-columns: 0.85fr 1.15fr;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.four-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.agenda-card,
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 160px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(16, 26, 44, 0.96) 0%, rgba(13, 22, 39, 0.92) 100%);
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 20px;
}

.agenda-card {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.agenda-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.32);
  box-shadow: 0 16px 36px rgba(2, 8, 23, 0.34);
}

.agenda-card .topline,
.card .topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.32);
  color: var(--purple-soft);
}

.icon-badge svg,
.inline-icon {
  width: 24px;
  height: 24px;
}

.range-badge,
.tone-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.range-badge {
  color: #d9e7ff;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
}

.tone-pill {
  color: #f8fbff;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(196, 181, 253, 0.36);
}

.tone-pill.cyan {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.28);
}

.tone-pill.green {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.26);
}

.tone-pill.red {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.24);
}

.tone-pill.amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.24);
}

.mini-pill {
  min-height: 24px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.kicker {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.list,
.tight-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.tight-list {
  gap: 8px;
  font-size: 14px;
}

.list li::marker,
.tight-list li::marker {
  color: var(--cyan);
}

.code-panel {
  position: relative;
  background: var(--code-bg);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.code-panel::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 18px 0 0 #f59e0b, 36px 0 0 #10b981;
}

.code-label {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 11px;
  color: rgba(159, 179, 209, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

pre,
code {
  font-family: 'JetBrains Mono', monospace;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

pre code {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #edf3ff;
}

.hljs {
  background: transparent;
  color: #edf3ff;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-title.class_,
.hljs-literal,
.hljs-type {
  color: #c792ea;
}

.hljs-string,
.hljs-title.function_,
.hljs-attr {
  color: #7bdff6;
}

.hljs-comment,
.hljs-quote {
  color: #22c55e;
}

.hljs-number,
.hljs-symbol,
.hljs-meta {
  color: #f59e0b;
}

.hljs-params,
.hljs-variable,
.hljs-name,
.hljs-built_in,
.hljs-subst,
.hljs-punctuation {
  color: #edf3ff;
}

.compare-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.compare-grid::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: calc(50% - 0.5px);
  width: 1px;
  background: rgba(125, 211, 252, 0.18);
}

.compare-panel {
  background: rgba(13, 22, 39, 0.94);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.compare-panel.problem {
  border-left: 3px solid var(--red);
}

.compare-panel.solution {
  border-left: 3px solid var(--green);
}

.annotation-note,
.note-strip,
.stat-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: var(--annotation-size);
  line-height: 1.45;
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.annotation-note::before,
.note-strip::before,
.stat-note::before {
  content: '';
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--cyan);
}

.annotation-note.red,
.stat-note.red {
  background: rgba(124, 18, 18, 0.18);
  color: #fecaca;
}

.annotation-note.red::before,
.stat-note.red::before {
  background: var(--red);
}

.annotation-note.green,
.stat-note.green {
  background: rgba(5, 68, 50, 0.22);
  color: #d1fae5;
}

.annotation-note.green::before,
.stat-note.green::before {
  background: var(--green);
}

.annotation-note.cyan,
.note-strip.cyan,
.stat-note.cyan {
  background: rgba(8, 47, 73, 0.28);
  color: #cffafe;
}

.note-strip {
  background: rgba(8, 47, 73, 0.26);
  color: #cffafe;
}

.callout-strip {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(8, 47, 73, 0.32);
  border: 1px solid rgba(34, 211, 238, 0.24);
  color: #cffafe;
  font-size: 15px;
  font-weight: 600;
}

.warning-banner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #1c1500;
  border: 1px solid #f59e0b;
  color: #fcd34d;
}

.warning-banner h4 {
  font-size: 18px;
  color: #fcd34d;
}

.warning-banner .tight-list li::marker {
  color: #f59e0b;
}

.warning-banner .code-panel {
  border-color: rgba(245, 158, 11, 0.26);
}

.diagram-panel {
  min-height: 260px;
  background: linear-gradient(180deg, rgba(8, 16, 31, 0.92) 0%, rgba(12, 21, 39, 0.92) 100%);
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 20px;
  padding: 12px 16px;
}

.diagram-panel .mermaid,
.diagram-panel .mermaid svg {
  width: 100%;
}

.diagram-panel .mermaid svg {
  max-width: 100% !important;
  height: auto !important;
}

.metric-row,
.chip-row,
.legend-row,
.badge-row,
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-box,
.stat-card,
.info-chip {
  flex: 1;
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(16, 26, 44, 0.94);
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.metric-box .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.metric-box .label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-slide {
  background:
    linear-gradient(180deg, rgba(7, 9, 17, 0.34), rgba(7, 9, 17, 0.82)),
    url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.hero-layout {
  justify-content: space-between;
}

.hero-copy {
  max-width: 54%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-copy h1 {
  font-size: 50px;
  line-height: 1.02;
}

.hero-copy .lead {
  font-size: 20px;
  color: rgba(237, 243, 255, 0.88);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.product-tile {
  min-height: 142px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 17, 30, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%);
  border: 1px solid rgba(196, 181, 253, 0.32);
  box-shadow: inset 0 0 22px rgba(139, 92, 246, 0.14), 0 18px 40px rgba(2, 8, 23, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.product-tile .icon-badge {
  width: 48px;
  height: 48px;
  background: rgba(139, 92, 246, 0.18);
}

.product-tile h3 {
  font-size: 18px;
}

.product-tile p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.photo-credit {
  position: absolute;
  left: 52px;
  bottom: 18px;
  font-size: 11px;
  color: rgba(237, 243, 255, 0.66);
}

.pipeline-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.pipeline-step {
  position: relative;
  padding: 18px 16px 18px 18px;
  border-radius: 18px;
  background: rgba(16, 26, 44, 0.96);
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.pipeline-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 22px;
}

.pipeline-step h3,
.timeline-item h4,
.stack-item h4,
.card h4,
.stat-card h4 {
  font-size: 17px;
}

.pipeline-step p,
.timeline-item p,
.stack-item p,
.card p,
.stat-card p,
.info-chip p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

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

.timeline-item,
.stack-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(16, 26, 44, 0.94);
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.event-wheel {
  position: relative;
  flex: 1;
  min-height: 290px;
}

.event-wheel .ring {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 300px;
  height: 300px;
  margin-left: -150px;
  margin-top: -150px;
  border-radius: 50%;
  border: 2px dashed rgba(125, 211, 252, 0.26);
  box-shadow: inset 0 0 60px rgba(34, 211, 238, 0.08);
}

.event-wheel .core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  margin-left: -80px;
  margin-top: -80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.32) 0%, rgba(13, 22, 39, 0.94) 70%);
  border: 1px solid rgba(196, 181, 253, 0.42);
}

.event-wheel .node {
  position: absolute;
  width: 180px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(10, 17, 30, 0.96);
  border: 1px solid rgba(125, 211, 252, 0.16);
}

.event-wheel .node.top {
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
}

.event-wheel .node.right {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.event-wheel .node.bottom {
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
}

.event-wheel .node.left {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.event-wheel .node h4 {
  margin-bottom: 4px;
}

.stacked-bar {
  display: flex;
  overflow: hidden;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.18);
}

.stacked-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #081120;
}

.stacked-segment.system {
  background: #a78bfa;
  width: 20%;
}

.stacked-segment.rag {
  background: #22d3ee;
  width: 35%;
}

.stacked-segment.history {
  background: #93c5fd;
  width: 20%;
}

.stacked-segment.user {
  background: #bbf7d0;
  width: 10%;
}

.stacked-segment.tools {
  background: #fcd34d;
  width: 15%;
}

.table-wrap {
  background: rgba(10, 17, 30, 0.92);
  border-radius: 20px;
  border: 1px solid rgba(125, 211, 252, 0.12);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(125, 211, 252, 0.08);
}

th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan-soft);
  background: rgba(15, 23, 42, 0.92);
}

tr:last-child td {
  border-bottom: 0;
}

.tree-panel {
  background: var(--code-bg);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 20px;
  padding: 18px;
}

.tree-panel pre {
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.55;
}

.photo-card {
  position: relative;
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background-size: cover;
  background-position: center;
}

.photo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.14) 0%, rgba(7, 17, 31, 0.82) 100%);
}

.photo-card .photo-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  font-size: 13px;
  color: rgba(237, 243, 255, 0.86);
}

.transition-hint {
  position: absolute;
  right: 24px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 17, 30, 0.55);
  border: 1px solid rgba(139, 92, 246, 0.22);
  color: rgba(237, 243, 255, 0.58);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}

.deck-chrome {
  width: min(96vw, calc(90vh * 16 / 9));
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--purple) 0%, var(--cyan) 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.chrome-meta {
  min-width: 360px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

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

.deck-title {
  min-width: 300px;
  text-align: right;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.centered {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.space-top {
  margin-top: auto;
}

.small-text {
  font-size: 13px;
}

.center-text {
  text-align: center;
}

@media (max-width: 1280px) {
  .slide {
    padding: 34px 40px 38px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .agenda-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.deck-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.deck-toolbar,
.deck-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 20px;
  position: relative;
  z-index: 6;
}

.toolbar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.toolbar-meta,
.stack-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.slides {
  min-block-size: 0;
  position: relative;
  z-index: 1;
}

.slide-content {
  min-block-size: 0;
}

.tall {
  min-block-size: 100%;
}

.compact {
  padding: 14px 16px;
}

.budget-bar {
  display: flex;
  min-block-size: 58px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(10, 17, 30, 0.94);
}

.budget-bar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #081120;
}

.progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.progress-bar {
  block-size: 8px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  overflow: hidden;
}

#progressFill {
  inline-size: 0;
  block-size: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--cyan) 100%);
  transition: width 0.3s ease;
}

.nav-btn {
  min-inline-size: 96px;
  block-size: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.info-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-inline-size: 0;
  padding: 10px 12px;
}

.matrix-table {
  inline-size: 100%;
}

.final-architecture {
  min-block-size: 320px;
}

@media (max-width: 1280px) {
  .deck-toolbar,
  .deck-footer {
    padding: 12px 14px;
  }

  .toolbar-meta {
    display: none;
  }
}

@media (max-width: 980px) {
  .two-col,
  .two-col.wide-left,
  .two-col.wide-right,
  .three-col,
  .agenda-grid,
  .four-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy {
    max-inline-size: 100%;
  }
}

/* ─── Quiz slide ─────────────────────────────────────────────────────────── */

.quiz-slide .slide-content {
  gap: 12px;
}

/* ── Shared screens ── */
.quiz-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ── Start screen ── */
.quiz-start-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 24px;
  background: var(--bg-panel-strong);
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 22px;
}

.quiz-start-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(196, 181, 253, 0.4);
  font-size: 30px;
  color: var(--purple-soft);
}

.quiz-start-inner h3 {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.quiz-start-inner p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.55;
}

.quiz-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.quiz-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #22d3ee 100%);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.quiz-action-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── Question screen ── */
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  background: var(--bg-panel-strong);
  border: 1px solid rgba(125, 211, 252, 0.1);
  border-radius: 14px;
}

.quiz-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

#quiz-q-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.quiz-running-score {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.quiz-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.1);
  overflow: hidden;
}

#quiz-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--cyan) 100%);
  transition: width 0.35s ease;
  width: 0;
}

.quiz-question-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  padding: 14px 18px;
  background: rgba(8, 16, 31, 0.7);
  border: 1px solid rgba(125, 211, 252, 0.1);
  border-radius: 16px;
  flex-shrink: 0;
}

.quiz-question-text code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--cyan-soft);
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(13, 22, 39, 0.92);
  border: 1px solid rgba(125, 211, 252, 0.14);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.quiz-option:hover:not(:disabled) {
  border-color: rgba(125, 211, 252, 0.36);
  background: rgba(19, 32, 56, 0.96);
  transform: translateY(-1px);
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-opt-letter {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(196, 181, 253, 0.28);
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-soft);
}

.quiz-opt-text code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.87em;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--cyan-soft);
}

/* Option states after answer */
.quiz-option.is-correct {
  background: rgba(5, 68, 50, 0.3);
  border-color: var(--green);
}

.quiz-option.is-correct .quiz-opt-letter {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--green);
  color: #6ee7b7;
}

.quiz-option.is-wrong {
  background: rgba(124, 18, 18, 0.22);
  border-color: var(--red);
}

.quiz-option.is-wrong .quiz-opt-letter {
  background: rgba(239, 68, 68, 0.16);
  border-color: var(--red);
  color: #fca5a5;
}

.quiz-option.is-dim {
  opacity: 0.42;
}

/* ── Feedback strip ── */
.quiz-feedback {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.12);
  background: rgba(8, 21, 38, 0.88);
  flex-shrink: 0;
}

.quiz-feedback.is-correct {
  background: rgba(5, 68, 50, 0.22);
  border-color: rgba(16, 185, 129, 0.36);
}

.quiz-feedback.is-wrong {
  background: rgba(100, 12, 12, 0.2);
  border-color: rgba(239, 68, 68, 0.32);
}

.quiz-feedback-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 700;
  background: rgba(125, 211, 252, 0.1);
  color: var(--muted);
}

.quiz-feedback.is-correct .quiz-feedback-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.quiz-feedback.is-wrong .quiz-feedback-icon {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.quiz-feedback-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quiz-feedback-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.quiz-feedback.is-correct .quiz-feedback-label { color: #6ee7b7; }
.quiz-feedback.is-wrong  .quiz-feedback-label { color: #fca5a5; }

.quiz-feedback-explanation {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.quiz-feedback-explanation code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--cyan-soft);
}

.quiz-next-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(196, 181, 253, 0.36);
  color: var(--purple-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease;
  white-space: nowrap;
  align-self: center;
}

.quiz-next-btn:hover {
  background: rgba(139, 92, 246, 0.34);
}

/* ── Results screen ── */
.quiz-results-inner {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--bg-panel-strong);
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 22px;
  overflow: hidden;
}

.quiz-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-right: 20px;
  border-right: 1px solid rgba(125, 211, 252, 0.1);
}

.quiz-score-ring {
  --quiz-pct: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(
    #22d3ee calc(var(--quiz-pct) * 1%),
    rgba(125, 211, 252, 0.1) 0%
  );
  display: grid;
  place-items: center;
  position: relative;
}

.quiz-score-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--bg-panel-strong);
}

.quiz-score-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

#quiz-result-score {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

#quiz-result-pct {
  font-size: 13px;
  color: var(--cyan-soft);
  font-weight: 700;
}

.quiz-rating {
  font-size: 12px;
}

.quiz-results-header {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-results-header h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.quiz-results-header p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.quiz-breakdown-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.quiz-breakdown-row {
  display: grid;
  grid-template-columns: 120px 1fr 38px;
  align-items: center;
  gap: 10px;
}

.quiz-breakdown-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quiz-breakdown-bar-wrap {
  height: 8px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.1);
  overflow: hidden;
}

.quiz-breakdown-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.quiz-breakdown-bar[data-tone="green"]  { background: var(--green); }
.quiz-breakdown-bar[data-tone="amber"]  { background: var(--amber); }
.quiz-breakdown-bar[data-tone="red"]    { background: var(--red); }

.quiz-breakdown-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.quiz-results-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ─── Mobile / Portrait Phone (≤640px) ──────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --title-size: 22px;
    --body-size: 14px;
    --annotation-size: 12px;
  }

  body {
    overflow: auto;
    align-items: stretch;
    justify-content: flex-start;
    padding: 8px;
    min-height: 100dvh;
  }

  .deck-shell {
    width: 100%;
    height: auto;
    min-height: calc(100dvh - 16px);
  }

  .slide {
    padding: 18px 16px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: 26px;
    line-height: 1.1;
  }

  .hero-copy .lead {
    font-size: 16px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agenda-card,
  .card {
    min-height: 80px;
  }

  .product-tile {
    min-height: 90px;
  }

  .section-pill {
    height: auto;
    padding: 6px 12px;
    font-size: 10px;
  }

  .toolbar-title {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
  }

  .toolbar-meta {
    display: none;
  }

  .eyebrow {
    font-size: 11px;
  }

  .pipeline-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-options-grid {
    grid-template-columns: 1fr;
  }

  .quiz-results-inner {
    grid-template-columns: 1fr;
  }

  .quiz-score-block {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(125, 211, 252, 0.1);
    padding-bottom: 16px;
  }

  .quiz-results-header {
    grid-column: 1;
  }

  .quiz-breakdown-grid {
    grid-template-columns: 1fr;
  }
}