/* ==========================================================================
   3rdAI deck — slide system
   ========================================================================== */

:root {
  --ink: var(--gray-950);
  --ink-2: var(--gray-700);
  --ink-3: var(--gray-500);
  --line: var(--gray-200);
  --line-2: var(--gray-100);
  --accent: var(--brand-600);
  --accent-deep: var(--brand-900);
  --night: #16091F;     /* slightly warmer than gray-950 — sits with violet */
  --night-2: #1F0F2E;
  --night-edge: rgba(255,255,255,0.10);
}

html, body { background: #000; }

/* Slide frame --------------------------------------------------------------*/
.slide {
  font-family: var(--font-display);
  color: var(--ink);
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.slide.dark {
  background: var(--night);
  color: #fff;
}
.slide.dark .muted { color: rgba(255,255,255,0.62); }
.slide.dark .rule  { background: rgba(255,255,255,0.12); }

.muted { color: var(--ink-3); }
.rule  { height: 1px; background: var(--line); width: 100%; }

/* Frame paddings */
.pad {
  padding: 96px 120px 76px 120px;
}
.pad-tight { padding: 72px 96px 64px 96px; }

/* Header strip — appears on most content slides */
.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 40px;
  left: 120px;
  right: 120px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.slide.dark .head { color: rgba(255,255,255,0.45); }
.head .brand { display: inline-flex; align-items: center; gap: 0; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; text-transform: none; font-size: 24px; line-height: 1; }
.slide.dark .head .brand { color: #fff; }
.head .pageno { font-variant-numeric: tabular-nums; }

/* Eyebrow + title cluster */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.slide.dark .eyebrow { color: var(--brand-300); }
.eyebrow .num {
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.slide.dark .eyebrow .num { color: rgba(255,255,255,0.45); }

.title {
  font-size: 84px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.023em;
  margin: 0;
  text-wrap: balance;
}
.title-sm { font-size: 62px; line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.title-md { font-size: 68px; line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; margin: 0; }

.sub {
  font-size: 30px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 1120px;
  text-wrap: pretty;
  margin: 0;
}
.slide.dark .sub { color: rgba(255,255,255,0.7); }

.body {
  font-size: 27px;
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 920px;
}
.slide.dark .body { color: rgba(255,255,255,0.74); }

.small { font-size: 22px; line-height: 1.5; color: var(--ink-3); }

/* Extra breathing room between a heading and the paragraph that follows it */
.title + .sub,  .title-md + .sub,  .title-sm + .sub,
.title + .body, .title-md + .body, .title-sm + .body { margin-top: 16px; }

/* Hero number — for stat-driven slides */
.hero-number {
  font-size: 240px;
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-feature-settings: "ss01" 1, "tnum" 1;
}
.hero-number .unit { font-size: 80px; letter-spacing: -0.02em; vertical-align: top; margin-left: 10px; color: var(--accent); }
.slide.dark .hero-number .unit { color: var(--brand-300); }

.kicker {
  font-size: 24px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.slide.dark .kicker { color: rgba(255,255,255,0.5); }

/* Footer pill on dark hero */
.foot {
  position: absolute; bottom: 56px; left: 120px; right: 120px;
  display: flex; justify-content: space-between; align-items: end;
  font-size: 20px; color: rgba(255,255,255,0.5);
}

/* Content cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.slide.dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
}

/* Numbered list */
.numlist { display: flex; flex-direction: column; gap: 36px; }
.numlist .item { display: grid; grid-template-columns: 80px 1fr; gap: 28px; align-items: start; }
.numlist .item .n {
  font-size: 28px; font-weight: 600; color: var(--accent);
  font-variant-numeric: tabular-nums;
  border-top: 2px solid var(--accent);
  padding-top: 16px;
}
.numlist .item .label {
  font-size: 30px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em;
}
.numlist .item .desc { font-size: 24px; line-height: 1.5; color: var(--ink-2); }
.slide.dark .numlist .item .label { color: #fff; }
.slide.dark .numlist .item .desc { color: rgba(255,255,255,0.7); }

/* Table */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 26px; }
.tbl th, .tbl td {
  padding: 24px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl th {
  font-size: 18px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); font-weight: 600; border-bottom: 1px solid var(--ink);
}
.tbl td .y { color: var(--success-600); font-weight: 600; }
.tbl td .n { color: var(--error-600); font-weight: 600; }
.tbl td .partial { color: var(--warning-700); font-weight: 600; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .row-hi td { background: var(--brand-50); }
.tbl .row-hi td:first-child { border-left: 3px solid var(--accent); padding-left: 21px; }

/* Diagonal lines underline accent */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 20px; font-weight: 500;
  background: var(--brand-50); color: var(--brand-700);
}
.slide.dark .tag { background: rgba(127,86,217,0.18); color: var(--brand-200); }
.tag.success { background: var(--success-50); color: var(--success-700); }
.tag.warn { background: var(--warning-50); color: var(--warning-700); }
.tag.gray   { background: var(--gray-100); color: var(--gray-700); }
.slide.dark .tag.gray { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.78); }

/* Decorative gradient blob (for hero) */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  pointer-events: none;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Phone mock */
.phone {
  width: 360px;
  border-radius: 48px;
  background: #0a0a0a;
  padding: 14px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06) inset;
  position: relative;
}
.phone .screen {
  width: 100%; aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  background: #fff;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone .notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; background: #0a0a0a; border-radius: 999px;
  z-index: 2;
}

/* Used to show "model in the middle" — bus/diagram */
.bus-diagram {
  position: relative;
  width: 100%;
}
