/* ============================================
   scRNA-seq Lecture Deck — Design System
   ============================================ */

:root {
  /* Colors */
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-card: #1a1a1a;
  --line: #262626;
  --line-soft: #1f1f1f;
  --ink: #f5f5f5;
  --ink-dim: #a3a3a3;
  --ink-mute: #737373;
  --accent: #22d3ee;       /* cyan — primary */
  --accent-2: #f59e0b;     /* amber */
  --accent-3: #ef4444;     /* red */
  --accent-4: #a3e635;     /* lime — sparingly */

  /* Type scale (1920x1080) */
  --type-mega: 180px;
  --type-display: 120px;
  --type-title: 72px;
  --type-subtitle: 48px;
  --type-lead: 36px;
  --type-body: 30px;
  --type-small: 24px;
  --type-mono: 26px;
  --type-eyebrow: 22px;

  /* Spacing */
  --pad-top: 100px;
  --pad-bottom: 100px;
  --pad-x: 120px;
  --gap-title: 56px;
  --gap-item: 28px;

  /* Fonts */
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

deck-stage section {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  position: relative;
  overflow: hidden;
}

/* Slide chrome */
.slide-num {
  position: absolute;
  bottom: 40px;
  left: var(--pad-x);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.slide-tag {
  position: absolute;
  top: 40px;
  right: var(--pad-x);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.slide-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--type-eyebrow);
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* Typography */
h1, h2, h3, p { margin: 0; }

.title {
  font-size: var(--type-title);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display {
  font-size: var(--type-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.mega {
  font-size: var(--type-mega);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.subtitle {
  font-size: var(--type-subtitle);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lead {
  font-size: var(--type-lead);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}
.body {
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-dim);
}
.small {
  font-size: var(--type-small);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-dim);
}
.mono {
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  letter-spacing: -0.01em;
}
.dim { color: var(--ink-dim); }
.mute { color: var(--ink-mute); }
.cyan { color: var(--accent); }
.amber { color: var(--accent-2); }
.red { color: var(--accent-3); }
.lime { color: var(--accent-4); }

/* Section header slide */
.section-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  background: var(--bg);
}
.section-header .num {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 40px;
}
.section-header .label {
  font-family: var(--font-mono);
  font-size: var(--type-eyebrow);
  color: var(--ink-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Title slide */
.title-slide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.title-slide .top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.title-slide .course-tag {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.title-slide .uni {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  text-align: right;
  line-height: 1.4;
}

/* Cards / boxes */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px 40px;
}
.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Grid + flex helpers */
.row { display: flex; gap: 40px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; }
.center { display: flex; align-items: center; justify-content: center; }

/* Headed slide layout */
.slide-header {
  margin-bottom: var(--gap-title);
}

/* Definition block */
.def {
  border-left: 3px solid var(--accent);
  padding-left: 32px;
  margin: 32px 0;
}
.def .term {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* Flow arrow */
.flow {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 32px;
}
.flow .step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 18px 28px;
  border-radius: 4px;
}
.flow .arrow {
  color: var(--accent);
  font-size: 32px;
}

/* Big-number stat */
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat .num {
  font-size: 140px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
}
.stat .lbl {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Code-style chip */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink);
}
.chip.cyan { border-color: var(--accent); color: var(--accent); }
.chip.amber { border-color: var(--accent-2); color: var(--accent-2); }
.chip.red { border-color: var(--accent-3); color: var(--accent-3); }

/* List */
ul.clean {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.clean li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--type-body);
  color: var(--ink-dim);
}
ul.clean li:last-child { border-bottom: none; }
ul.clean li .k {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-right: 16px;
}

/* Two-column compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.compare .pane {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 36px 40px;
  border-radius: 4px;
}
.compare .pane h3 {
  font-family: var(--font-mono);
  font-size: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--ink-mute);
}
.compare .pane.primary h3 { color: var(--accent); }

/* Quiz slide */
.quiz {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}
.quiz .q {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  text-wrap: balance;
}
.quiz .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1500px; }
.quiz .opt {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 28px 32px;
  border-radius: 4px;
  font-size: var(--type-body);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 20px;
}
.quiz .opt:hover { border-color: var(--accent); }
.quiz .opt.correct { border-color: var(--accent-4); background: rgba(163, 230, 53, 0.08); }
.quiz .opt.wrong { border-color: var(--accent-3); background: rgba(239, 68, 68, 0.06); opacity: 0.6; }
.quiz .opt .letter {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 24px;
  width: 32px;
}
.quiz .opt.correct .letter { color: var(--accent-4); }
.quiz .reveal {
  margin-top: 40px;
  padding: 28px 32px;
  border-left: 3px solid var(--accent-4);
  background: rgba(163, 230, 53, 0.05);
  font-size: var(--type-body);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.quiz .reveal.show { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
  appearance: none;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 14px 24px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 22px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { border-color: var(--accent); color: var(--accent); }
.btn.primary:hover { background: rgba(34, 211, 238, 0.1); }
.btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* Interactive container */
.interactive {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
}
.interactive .badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: rgba(34, 211, 238, 0.05);
}

/* Subtle bg pattern for some slides */
.bg-grid {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Quote */
.quote {
  font-family: var(--font-sans);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.quote .mark { color: var(--accent); }

/* Workflow steps */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 40px;
}
.workflow-step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}
.workflow-step:hover { border-color: var(--accent); transform: translateY(-2px); }
.workflow-step.active { border-color: var(--accent); background: rgba(34, 211, 238, 0.08); }
.workflow-step .n {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-mute);
}
.workflow-step .name {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.workflow-step.active .n { color: var(--accent); }

/* Sliders + toggles */
.slider {
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}
.slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg);
}

/* Toggle switch */
.toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px;
}
.toggle .opt {
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ink-mute);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
}
.toggle .opt.active {
  background: var(--accent);
  color: var(--bg);
}

/* Diagrams svg */
svg { display: block; }

/* Roadmap list */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.roadmap .item {
  border-top: 2px solid var(--accent);
  padding-top: 20px;
}
.roadmap .item .n {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 12px;
}
.roadmap .item .t {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}
.roadmap .item .d {
  font-size: 22px;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* Final slide */
.thanks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
