/* ═══════════════════════════════════════════════════════════════
   SEMANTIC PLAGIARISM DETECTION — PRESENTATION STYLES
   Palette: Indigo Ink + Acid Neon accents
   Fonts: Syne (display) + Bricolage Grotesque (body) + Space Mono (code)
═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0D0B1A;
  --bg2:       #13102A;
  --bg3:       #1B1535;
  --indigo:    #7B68EE;
  --indigo-lt: #A89FF5;
  --orange:    #FF6B2B;
  --orange-lt: #FFB088;
  --acid:      #CCFF00;
  --text:      #E8E0F0;
  --text-muted:#9B8EC4;
  --blue:      #4A9EFF;
  --blue-lt:   #A8D4FF;
  --green:     #4ADE80;
  --red:       #FF4D6D;
  --yellow:    #FFD166;
  --border:    rgba(123,104,238,0.2);
  --card-bg:   rgba(27,21,53,0.8);
  --font-display: 'Syne', sans-serif;
  --font-body:    'Bricolage Grotesque', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

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

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

/* ── Progress bar ─────────────────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: rgba(123,104,238,0.15);
  z-index: 100;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--acid));
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  width: 10%;
}

/* ── Slide counter ────────────────────────────────────────── */
.slide-counter {
  position: fixed; top: 18px; right: 24px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted); z-index: 100;
  letter-spacing: 0.05em;
}

/* ── Navigation buttons ───────────────────────────────────── */
.nav-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(27,21,53,0.9);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.nav-btn svg { width: 18px; height: 18px; }
.nav-btn:hover { color: var(--indigo); border-color: var(--indigo); background: rgba(123,104,238,0.15); }
.nav-btn:disabled { opacity: 0.2; cursor: not-allowed; }
.nav-prev { left: 16px; }
.nav-next { right: 16px; }

/* ── Deck & Slides ────────────────────────────────────────── */
.deck {
  width: 100vw; height: 100vh;
  position: relative; overflow: hidden;
}

.slide {
  position: absolute; inset: 0;
  padding: 52px 80px 40px;
  display: flex; flex-direction: column;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1),
              transform 0.5s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  overflow: hidden;
}
.slide.active {
  opacity: 1; transform: translateX(0);
  pointer-events: all;
}
.slide.exit {
  opacity: 0; transform: translateX(-60px);
}

/* ── Background textures ──────────────────────────────────── */
.slide__bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(123,104,238,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,104,238,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.slide__noise {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Slide header (shared) ────────────────────────────────── */
.slide-header {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 28px; flex-shrink: 0;
}
.slide-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--indigo); letter-spacing: 0.1em;
  border: 1px solid var(--indigo);
  padding: 2px 8px; border-radius: 4px;
  flex-shrink: 0;
}
.slide-header h2 {
  font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800; color: var(--text); line-height: 1.1;
}
.slide-subtitle {
  font-size: 13px; color: var(--text-muted);
  margin-left: auto; flex-shrink: 0;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE 1 — TITLE
═══════════════════════════════════════════════════════════ */
.slide--title {
  flex-direction: row;
  align-items: center;
  gap: 60px;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(123,104,238,0.12) 0%, transparent 70%),
              var(--bg);
}
.title-content { flex: 1; z-index: 1; }
.title-eyebrow { display: flex; gap: 10px; margin-bottom: 24px; }
.tag {
  font-family: var(--font-mono); font-size: 11px;
  background: rgba(123,104,238,0.15);
  border: 1px solid var(--indigo);
  color: var(--indigo-lt);
  padding: 4px 12px; border-radius: 20px;
  letter-spacing: 0.05em;
}
.tag--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}
.title-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.line { display: block; }
.line--accent { color: var(--indigo-lt); }
.title-sub {
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--text-muted); margin-bottom: 24px;
}
.title-sub em { color: var(--orange-lt); font-style: normal; }
.title-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--acid));
  border-radius: 2px; margin-bottom: 20px;
}
.title-objective {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6; max-width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--indigo);
  padding: 14px 18px; border-radius: 8px;
  margin-bottom: 24px;
}
.hl { font-weight: 700; }
.hl--blue { color: var(--blue-lt); }
.hl--orange { color: var(--orange-lt); }
.title-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; color: var(--text-muted);
  transition: all 0.2s;
}
.badge:hover { border-color: var(--indigo); color: var(--text); }
.badge-icon { font-size: 14px; }

.title-visual { flex: 0 0 380px; position: relative; z-index: 1; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); pointer-events: none;
}
.orb--1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(123,104,238,0.35), transparent 70%);
  top: -80px; right: -60px;
  animation: orbFloat 6s ease-in-out infinite;
}
.orb--2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,107,43,0.25), transparent 70%);
  bottom: -40px; left: 20px;
  animation: orbFloat 8s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.floating-code {
  position: relative; z-index: 2;
  background: rgba(13,11,26,0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(123,104,238,0.1);
  margin-top: 40px;
}
.floating-code pre {
  font-family: var(--font-mono); font-size: 12px;
  line-height: 1.8; white-space: pre-wrap;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE 2 — PROBLEM
═══════════════════════════════════════════════════════════ */
.slide--problem { background: var(--bg); }
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 20px;
}
.problem-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 22px;
  position: relative; overflow: hidden;
}
.problem-card--easy { border-top: 3px solid var(--green); }
.problem-card--hard { border-top: 3px solid var(--red); }
.pcard-icon { font-size: 28px; margin-bottom: 10px; }
.problem-card h3 {
  font-family: var(--font-display); font-size: 17px;
  font-weight: 700; margin-bottom: 8px;
}
.problem-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.pcard-badge {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 12px; border-radius: 20px;
}
.pcard-badge--green { background: rgba(74,222,128,0.12); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.pcard-badge--red   { background: rgba(255,77,109,0.12); color: var(--red);   border: 1px solid rgba(255,77,109,0.3); }

.example-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px;
  position: relative;
}
.example-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--indigo); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 14px;
}
.example-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
}
.example-source, .example-submission {
  flex: 1; background: rgba(255,255,255,0.03);
  border-radius: 8px; padding: 12px 16px;
}
.ex-tag {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-muted); display: block; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ex-tag--sub { color: var(--orange); }
.example-source p, .example-submission p {
  font-size: 13px; line-height: 1.6; font-style: italic;
}
.example-source mark { background: rgba(74,158,255,0.25); color: var(--blue-lt); border-radius: 3px; padding: 0 2px; }
.example-submission mark { background: rgba(255,107,43,0.2); color: var(--orange-lt); border-radius: 3px; padding: 0 2px; }
.example-arrow { font-size: 20px; color: var(--text-muted); flex-shrink: 0; }
.example-results { display: flex; gap: 12px; }
.result-pill {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-radius: 8px;
  font-size: 13px;
}
.result-pill--fail { background: rgba(255,77,109,0.1); border: 1px solid rgba(255,77,109,0.3); }
.result-pill--pass { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); }
.result-pill strong { font-family: var(--font-mono); font-size: 18px; }
.result-pill--fail strong { color: var(--red); }
.result-pill--pass strong { color: var(--green); }

/* ═══════════════════════════════════════════════════════════
   SLIDE 3 — NLP
═══════════════════════════════════════════════════════════ */
.slide--nlp { background: var(--bg); }
.nlp-def {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--acid);
  border-radius: 12px; padding: 18px 22px;
  margin-bottom: 28px;
}
.nlp-def-icon { font-size: 28px; flex-shrink: 0; }
.nlp-def p { font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.nlp-def strong { color: var(--text); }

.pipeline { flex: 1; }
.pipeline-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 16px;
}
.pipeline-steps {
  display: flex; align-items: stretch; gap: 0;
  height: calc(100% - 30px);
}
.pipe-step {
  flex: 1; background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 20px;
  position: relative;
}
.pipe-step:nth-child(1) { border-top: 3px solid var(--indigo); }
.pipe-step:nth-child(3) { border-top: 3px solid var(--orange); }
.pipe-step:nth-child(5) { border-top: 3px solid var(--acid); }
.pipe-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); margin-bottom: 10px;
}
.pipe-icon { font-size: 28px; margin-bottom: 12px; }
.pipe-step h4 {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; margin-bottom: 8px;
}
.pipe-step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.pipe-example {
  background: rgba(0,0,0,0.3); border-radius: 6px;
  padding: 8px 12px; margin-top: auto;
}
.pipe-example code {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--acid);
}
.pipe-arrow {
  display: flex; align-items: center; padding: 0 8px;
  color: var(--text-muted); flex-shrink: 0;
}
.pipe-arrow svg { width: 40px; height: 20px; }

/* ═══════════════════════════════════════════════════════════
   SLIDE 4 — TF-IDF
═══════════════════════════════════════════════════════════ */
.slide--tfidf { background: var(--bg); }
.tfidf-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; flex: 1; margin-bottom: 16px;
}
.algo-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px;
  background: rgba(74,158,255,0.12);
  border: 1px solid rgba(74,158,255,0.3);
  color: var(--blue-lt);
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 18px;
}
.algo-badge--orange {
  background: rgba(255,107,43,0.12);
  border-color: rgba(255,107,43,0.3);
  color: var(--orange-lt);
}
.how-it-works h4 {
  font-family: var(--font-display); font-size: 14px;
  font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.step-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
}
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 6px;
}
.step-dot--blue { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.step-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-item em { color: var(--blue-lt); font-style: normal; }
.tfidf-formula {
  background: rgba(0,0,0,0.4); border-radius: 8px;
  padding: 14px 18px; margin-top: 18px;
  border: 1px solid rgba(74,158,255,0.2);
}
.tfidf-formula code {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--blue-lt);
}
.pros-cons { display: flex; flex-direction: column; gap: 12px; }
.pros-box, .cons-box {
  flex: 1; background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
}
.pros-box { border-top: 3px solid var(--green); }
.cons-box { border-top: 3px solid var(--red); }
.pros-box h4, .cons-box h4 {
  font-family: var(--font-display); font-size: 14px;
  font-weight: 700; margin-bottom: 10px;
}
.pros-box ul, .cons-box ul {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
}
.pros-box li, .cons-box li {
  font-size: 13px; color: var(--text-muted);
  padding-left: 16px; position: relative;
}
.pros-box li::before { content: '✓'; position: absolute; left: 0; color: var(--green); }
.cons-box li::before { content: '✗'; position: absolute; left: 0; color: var(--red); }

.bank-example {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,77,109,0.06);
  border: 1px solid rgba(255,77,109,0.2);
  border-radius: 10px; padding: 14px 20px;
}
.bank-word {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
}
.bank-icon { font-size: 20px; }
.bank-eq {
  font-family: var(--font-mono); font-size: 20px;
  color: var(--red); font-weight: 700;
}
.bank-label {
  margin-left: auto; font-size: 12px;
  color: var(--red); font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE 5 — SBERT
═══════════════════════════════════════════════════════════ */
.slide--sbert { background: var(--bg); }
.sbert-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; flex: 1;
}
.sbert-full {
  font-size: 12px; color: var(--text-muted);
  font-style: italic; margin-bottom: 20px;
  line-height: 1.5;
}
.sbert-features { display: flex; flex-direction: column; gap: 14px; }
.sbert-feat {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.feat-icon { font-size: 22px; flex-shrink: 0; }
.sbert-feat h4 {
  font-family: var(--font-display); font-size: 14px;
  font-weight: 700; margin-bottom: 4px;
}
.sbert-feat p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.sbert-visual {
  display: flex; align-items: center; justify-content: center;
}
.siamese-diagram {
  display: flex; align-items: center; gap: 16px;
  width: 100%;
}
.siam-doc {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.siam-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); text-align: center;
}
.siam-box {
  width: 100%; text-align: center;
  padding: 14px 10px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
}
.siam-doc--a .siam-box {
  background: rgba(74,158,255,0.12);
  border: 1px solid rgba(74,158,255,0.3);
  color: var(--blue-lt);
}
.siam-doc--b .siam-box {
  background: rgba(255,107,43,0.12);
  border: 1px solid rgba(255,107,43,0.3);
  color: var(--orange-lt);
}
.siam-vec {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-muted); text-align: center;
  background: rgba(0,0,0,0.3); border-radius: 6px;
  padding: 6px 10px; width: 100%;
}
.siam-compare {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; flex-shrink: 0;
}
.siam-arrow { font-size: 18px; color: var(--text-muted); }
.siam-sim {
  background: rgba(123,104,238,0.15);
  border: 1px solid var(--indigo);
  border-radius: 8px; padding: 10px 14px;
  font-size: 12px; font-weight: 600;
  color: var(--indigo-lt); text-align: center;
}
.siam-score {
  font-family: var(--font-mono); font-size: 22px;
  font-weight: 700; color: var(--green);
  text-shadow: 0 0 20px rgba(74,222,128,0.4);
}

/* ═══════════════════════════════════════════════════════════
   SLIDE 6 — COSINE
═══════════════════════════════════════════════════════════ */
.slide--cosine { background: var(--bg); }
.cosine-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; flex: 1; margin-bottom: 16px;
}
.cosine-formula-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column;
}
.formula-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 20px;
}
.formula-display {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--text);
  padding: 16px 0;
}
.formula-breakdown {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--border); padding-top: 16px;
}
.fb-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.fb-item code {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--acid); background: rgba(204,255,0,0.08);
  padding: 2px 8px; border-radius: 4px;
  min-width: 40px; text-align: center;
}
.fb-item span { color: var(--text-muted); }

.cosine-visual {
  display: flex; flex-direction: column; gap: 16px;
}
.cosine-svg { width: 100%; max-height: 180px; }
.angle-table {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.at-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 8px 16px; font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.at-row:last-child { border-bottom: none; }
.at-header {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.2);
}
.at-val { font-family: var(--font-mono); font-weight: 700; }
.at-val--green { color: var(--green); }
.at-val--yellow { color: var(--yellow); }
.at-val--red { color: var(--red); }

.cosine-why {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(204,255,0,0.05);
  border: 1px solid rgba(204,255,0,0.2);
  border-radius: 10px; padding: 14px 18px;
}
.why-icon { font-size: 20px; flex-shrink: 0; }
.cosine-why p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.cosine-why strong { color: var(--acid); }
.cosine-why em { color: var(--text); font-style: normal; }

/* ═══════════════════════════════════════════════════════════
   SLIDE 7 — ARCHITECTURE
═══════════════════════════════════════════════════════════ */
.slide--arch { background: var(--bg); }
.arch-diagram {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 0;
  overflow: hidden;
}
.arch-row {
  display: flex; justify-content: center; width: 100%;
}
.arch-node {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; border-radius: 10px;
  min-width: 340px; max-width: 420px;
  border: 1px solid var(--border);
}
.arch-node strong { font-size: 13px; display: block; }
.arch-node small { font-size: 11px; color: var(--text-muted); }
.arch-icon { font-size: 20px; flex-shrink: 0; }
.arch-node--gray { background: rgba(255,255,255,0.04); }
.arch-node--blue { background: rgba(74,158,255,0.1); border-color: rgba(74,158,255,0.3); }
.arch-node--blue-light { background: rgba(74,158,255,0.06); border-color: rgba(74,158,255,0.2); }
.arch-node--orange { background: rgba(255,107,43,0.12); border-color: rgba(255,107,43,0.35); }
.arch-node--purple { background: rgba(123,104,238,0.1); border-color: rgba(123,104,238,0.3); }
.arch-node--report {
  background: linear-gradient(135deg, rgba(123,104,238,0.15), rgba(255,107,43,0.1));
  border-color: var(--indigo);
  min-width: 380px;
}
.arch-arrow-down {
  font-size: 18px; color: var(--text-muted);
  line-height: 1; padding: 2px 0;
}
.arch-split-row {
  display: flex; width: 100%; height: 20px;
  position: relative; justify-content: center;
}
.arch-split-line {
  position: absolute; top: 0; height: 100%;
  border: 1px dashed rgba(123,104,238,0.3);
}
.arch-split-line--left { left: calc(50% - 160px); border-right: none; border-top: none; border-radius: 0 0 0 8px; width: 80px; }
.arch-split-line--right { right: calc(50% - 160px); border-left: none; border-top: none; border-radius: 0 0 8px 0; width: 80px; }
.arch-branches {
  display: flex; gap: 40px; width: 100%;
  justify-content: center;
}
.arch-branch {
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
}
.branch-label {
  font-family: var(--font-mono); font-size: 11px;
  font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 6px;
}
.branch-label--blue { color: var(--blue); }
.branch-label--orange { color: var(--orange); }
.arch-merge-row {
  display: flex; width: 100%; height: 20px;
  position: relative; justify-content: center;
}
.arch-merge-line {
  position: absolute; bottom: 0; height: 100%;
  border: 1px dashed rgba(123,104,238,0.3);
}
.arch-merge-line--left { left: calc(50% - 160px); border-right: none; border-bottom: none; border-radius: 8px 0 0 0; width: 80px; }
.arch-merge-line--right { right: calc(50% - 160px); border-left: none; border-bottom: none; border-radius: 0 8px 0 0; width: 80px; }

/* ═══════════════════════════════════════════════════════════
   SLIDE 8 — CODE
═══════════════════════════════════════════════════════════ */
.slide--code { background: var(--bg); }
.code-layout {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 20px; flex: 1;
}
.code-block {
  background: #0A0814;
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.code-header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.code-dots span:nth-child(1) { background: #FF5F57; }
.code-dots span:nth-child(2) { background: #FFBD2E; }
.code-dots span:nth-child(3) { background: #28CA41; }
.code-filename {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted);
}
.code-body {
  font-family: var(--font-mono); font-size: 12px;
  line-height: 1.9; padding: 18px 20px;
  overflow-y: auto; flex: 1;
  white-space: pre;
}

/* Syntax colors */
.c-kw  { color: #C792EA; }
.c-cls { color: #FFCB6B; }
.c-fn  { color: #82AAFF; }
.c-str { color: #C3E88D; }
.c-num { color: #F78C6C; }
.c-cm  { color: #546E7A; font-style: italic; }

.code-annotations {
  display: flex; flex-direction: column; gap: 14px;
  justify-content: center;
}
.annot {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.annot-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.annot-dot--orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.annot-dot--blue   { background: var(--blue);   box-shadow: 0 0 8px var(--blue); }
.annot-dot--green  { background: var(--green);  box-shadow: 0 0 8px var(--green); }
.annot strong { font-size: 13px; display: block; margin-bottom: 4px; }
.annot p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.annot code {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--acid); background: rgba(204,255,0,0.08);
  padding: 1px 5px; border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE 9 — RESULTS
═══════════════════════════════════════════════════════════ */
.slide--results { background: var(--bg); }
.results-layout { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.test-scenario {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px;
}
.test-row { display: flex; align-items: center; gap: 16px; }
.test-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); min-width: 120px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.test-text {
  flex: 1; padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-style: italic; line-height: 1.6;
}
.test-text--source {
  background: rgba(74,158,255,0.08);
  border: 1px solid rgba(74,158,255,0.2);
}
.test-text--sub {
  background: rgba(255,107,43,0.08);
  border: 1px solid rgba(255,107,43,0.2);
}
.test-text em { font-style: normal; font-weight: 600; }
.test-text--source em { color: var(--blue-lt); }
.test-text--sub em { color: var(--orange-lt); }
.test-vs {
  text-align: center; font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted);
  padding: 6px 0;
}

.results-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
}
.result-card--fail { border-top: 3px solid var(--red); }
.result-card--pass { border-top: 3px solid var(--green); }
.rc-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 14px;
}
.rc-model { font-size: 14px; font-weight: 600; }
.rc-status {
  font-family: var(--font-mono); font-size: 11px;
  padding: 3px 10px; border-radius: 20px;
}
.rc-status--fail { background: rgba(255,77,109,0.12); color: var(--red); border: 1px solid rgba(255,77,109,0.3); }
.rc-status--pass { background: rgba(74,222,128,0.12); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.rc-score-wrap { margin-bottom: 12px; }
.rc-score {
  font-family: var(--font-mono); font-size: 42px;
  font-weight: 700; line-height: 1; margin-bottom: 8px;
}
.result-card--fail .rc-score { color: var(--red); }
.result-card--pass .rc-score { color: var(--green); text-shadow: 0 0 20px rgba(74,222,128,0.3); }
.rc-score span { font-size: 22px; }
.rc-bar {
  height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden;
}
.rc-fill {
  height: 100%; border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1) 0.3s;
}
.rc-fill--fail { background: var(--red); }
.rc-fill--pass { background: linear-gradient(90deg, var(--green), var(--acid)); }
.rc-reason { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.verdict-box {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 10px; padding: 14px 18px;
}
.verdict-icon { font-size: 20px; flex-shrink: 0; }
.verdict-box p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.verdict-box strong { color: var(--green); }

/* ═══════════════════════════════════════════════════════════
   SLIDE 10 — CONCLUSION
═══════════════════════════════════════════════════════════ */
.slide--conclusion {
  background: radial-gradient(ellipse 70% 50% at 30% 60%, rgba(123,104,238,0.1) 0%, transparent 70%),
              var(--bg);
}
.conclusion-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; flex: 1; margin-bottom: 16px;
}
.conclusion-box, .future-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px;
}
.conclusion-box { border-top: 3px solid var(--indigo); }
.future-box { border-top: 3px solid var(--orange); }
.conclusion-box h3, .future-box h3 {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 700; margin-bottom: 14px;
}
.conclusion-box p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
.conclusion-box strong { color: var(--text); }
.conclusion-compare {
  display: flex; align-items: center; gap: 12px;
}
.cc-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px; padding: 12px;
  font-weight: 700; font-size: 15px;
}
.cc-item--old { border: 1px solid rgba(255,77,109,0.3); }
.cc-item--new { border: 1px solid rgba(74,222,128,0.3); }
.cc-tag {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-muted); font-weight: 400;
}
.cc-arrow { font-size: 20px; color: var(--text-muted); flex-shrink: 0; }

.future-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 14px;
}
.future-item:last-child { margin-bottom: 0; }
.fi-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--orange); background: rgba(255,107,43,0.1);
  border: 1px solid rgba(255,107,43,0.3);
  border-radius: 6px; padding: 4px 8px;
  flex-shrink: 0; height: fit-content;
}
.future-item h4 {
  font-family: var(--font-display); font-size: 14px;
  font-weight: 700; margin-bottom: 4px;
}
.future-item p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.thank-you {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 0;
}
.thank-you span {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 800; color: var(--indigo-lt);
}
.ty-line { flex: 1; height: 1px; background: var(--border); }
.ty-sub {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); font-size: 12px !important;
  font-weight: 400 !important;
}

/* ═══════════════════════════════════════════════════════════
   SPEAKER NOTES PANEL
═══════════════════════════════════════════════════════════ */
.notes-panel {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(10,8,20,0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 200;
  transform: translateY(calc(100% - 36px));
  transition: transform 0.3s ease;
}
.notes-panel.open { transform: translateY(0); }
.notes-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.notes-toggle:hover { color: var(--indigo); }
.notes-toggle svg { width: 14px; height: 14px; }
.notes-content {
  padding: 16px 24px 20px;
  font-size: 13px; color: var(--text-muted);
  line-height: 1.7; max-height: 120px;
  overflow-y: auto;
}

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ═══════════════════════════════════════════════════════════
   KATEX OVERRIDES
═══════════════════════════════════════════════════════════ */
.katex { color: var(--text) !important; }
.katex .mord, .katex .mrel, .katex .mop { color: var(--text) !important; }