@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --text: #e8e8ec;
  --text-muted: #8b8b9e;
  --accent: #6366f1;
  --accent-glow: rgba(99,102,241,0.25);
  --green: #22c55e;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --red: #ef4444;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); }

/* ── Slide Container ── */
.deck { position: relative; width: 100vw; height: 100vh; }

.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 60px 80px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateX(40px);
  background: var(--bg);
}
.slide.active { opacity: 1; visibility: visible; transform: translateX(0); }

/* ── Background Effects ── */
.slide::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.slide > * { position: relative; z-index: 1; }

/* ── Typography ── */
.slide-label {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
}
h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; max-width: 900px; text-align: center; }
h1 span.grad { background: linear-gradient(135deg, var(--accent), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 2.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 32px; text-align: center; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
p.sub { font-size: 1.15rem; color: var(--text-muted); max-width: 700px; text-align: center; line-height: 1.7; margin-top: 16px; }
p.sub-left { text-align: left; }
.mono { font-family: var(--mono); font-size: 0.85rem; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; max-width: 1000px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; width: 100%; max-width: 1000px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 900px; }

/* ── Cards ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }
.card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { color: var(--text); }
.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.card-accent { border-left: 3px solid var(--accent); }
.card-green { border-left: 3px solid var(--green); }
.card-amber { border-left: 3px solid var(--amber); }
.card-cyan { border-left: 3px solid var(--cyan); }
.card-pink { border-left: 3px solid var(--pink); }

/* ── Table ── */
table { width: 100%; max-width: 900px; border-collapse: collapse; margin-top: 8px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { font-weight: 600; color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
td { color: var(--text-muted); }
td:first-child { color: var(--text); font-weight: 500; }

/* ── Quote Block ── */
.quote {
  background: var(--bg-card); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 32px; font-size: 1.2rem; font-style: italic; color: var(--text);
  max-width: 800px; margin: 20px 0; line-height: 1.6;
}
.quote cite { display: block; font-style: normal; font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; }

/* ── Diagram / Flow ── */
.flow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin: 20px 0;
}
.flow-step {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 24px; text-align: center; font-weight: 500; font-size: 0.9rem;
}
.flow-arrow { color: var(--accent); font-size: 1.2rem; }
.flow-step.highlight { border-color: var(--accent); background: rgba(99,102,241,0.12); }

/* ── Tags ── */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  font-size: 0.75rem; font-weight: 600; background: rgba(99,102,241,0.15);
  color: var(--accent); border: 1px solid rgba(99,102,241,0.25);
}
.tag-green { background:rgba(34,197,94,0.12); color:var(--green); border-color:rgba(34,197,94,0.25); }
.tag-amber { background:rgba(245,158,11,0.12); color:var(--amber); border-color:rgba(245,158,11,0.25); }

/* ── Takeaway Box ── */
.takeaway {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.08));
  border: 1px solid rgba(99,102,241,0.2); border-radius: var(--radius);
  padding: 24px 32px; max-width: 800px; margin-top: 24px; text-align: center;
}
.takeaway .label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 8px; }
.takeaway p { color: var(--text); font-size: 1rem; line-height: 1.6; }

/* ── Navigation ── */
.nav-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px;
  background: linear-gradient(to top, rgba(10,10,15,0.95), transparent);
}
.nav-bar button {
  padding: 10px 24px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); font-family: var(--font);
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-bar button:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.2); }
.progress { display: flex; gap: 6px; }
.progress span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); transition: background 0.3s, transform 0.3s; }
.progress span.active { background: var(--accent); transform: scale(1.3); }

/* ── Slide-specific: Title ── */
.title-slide { text-align: center; }
.title-slide .logo { font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 40px; letter-spacing: 0.05em; }
.title-slide h1 { font-size: 4rem; margin-bottom: 8px; }
.title-slide .meta { color: var(--text-muted); font-size: 0.95rem; margin-top: 24px; line-height: 1.8; }

/* ── Checklist ── */
.checklist { list-style: none; max-width: 700px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.checklist li .ck { color: var(--green); font-size: 1.1rem; flex-shrink: 0; }

/* ── Section Divider ── */
.divider-slide { text-align: center; }
.divider-slide .num { font-size: 5rem; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 16px; }

/* ── Slide content alignment ── */
.left-align { align-items: flex-start; text-align: left; }
.left-align h2 { text-align: left; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.slide.active .anim { animation: fadeUp 0.6s ease forwards; }
.slide.active .anim:nth-child(2) { animation-delay: 0.1s; }
.slide.active .anim:nth-child(3) { animation-delay: 0.2s; }
.slide.active .anim:nth-child(4) { animation-delay: 0.3s; }
.slide.active .anim:nth-child(5) { animation-delay: 0.4s; }
