:root {
  --brand: #565de9;
  --brand-2: #09f;
  --brand-3: #7994e3;
  --ink: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --wash: #e9edfd;
  --wash-2: #edf1ff;
  --shadow: 0 24px 70px rgba(15, 23, 42, .10);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Inter Variable", "Inter Display", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(86, 93, 233, .17), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(0, 153, 255, .15), transparent 24rem),
    linear-gradient(180deg, #fff 0%, var(--bg) 45%, #fff 100%);
}

a { color: inherit; }
strong { font-weight: 760; }

.deck {
  width: 100%;
}

.slide {
  min-height: 100svh;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 3vw, 36px);
  position: relative;
  scroll-snap-align: start;
}

@supports (scroll-snap-type: y mandatory) {
  .deck { scroll-snap-type: y proximity; }
}

.deck-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(226, 232, 240, .85);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .08);
}
.deck-nav a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}
.deck-nav a:hover { color: #fff; background: var(--brand); }

.brandbar, .slide-footer, .source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brandbar { position: absolute; inset: 34px clamp(28px, 6vw, 72px) auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  letter-spacing: -.02em;
}
.diamond {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 28px rgba(86, 93, 233, .45);
}
.meta, .slide-footer, .source-row, .small, small {
  color: var(--soft);
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.45;
}
.slide-footer { margin-top: auto; }
.source-row {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(226, 232, 240, .85);
}
.source-row span:last-child { white-space: nowrap; }

.eyebrow, .slide-kicker {
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: clamp(12px, 1.1vw, 13px);
  font-weight: 850;
}
.slide-kicker { margin-bottom: -16px; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  max-width: 940px;
  font-size: clamp(44px, 8vw, 104px);
  line-height: .93;
  letter-spacing: -.075em;
  font-weight: 820;
}
h2 {
  margin-bottom: 0;
  max-width: 1120px;
  font-size: clamp(34px, 5.8vw, 76px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 810;
}
h3 {
  margin-bottom: 12px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
p, li {
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.46;
}
ul { margin: 0; padding-left: 1.1em; }
li + li { margin-top: 10px; }
.lead {
  max-width: 780px;
  font-size: clamp(20px, 2.3vw, 30px);
  color: var(--muted);
}

.hero { padding-top: 120px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}
.hero-card {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(233,237,253,.78));
  border: 1px solid rgba(189, 200, 252, .65);
  box-shadow: var(--shadow);
}
.metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(189, 200, 252, .65);
}
.metric:last-child { border-bottom: 0; }
.metric strong {
  font-size: clamp(46px, 7vw, 78px);
  letter-spacing: -.07em;
  line-height: .9;
  color: var(--brand);
}
.metric span { color: var(--muted); font-weight: 700; }

.table-card, .panel, .callout, .cards article, .flow > div, .roadmap article, .takeaways > div {
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 48px rgba(15, 23, 42, .06);
  backdrop-filter: blur(14px);
}
.table-card { overflow: hidden; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(15px, 1.65vw, 20px);
}
th, td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--soft); font-size: .82em; text-transform: uppercase; letter-spacing: .1em; }
td { font-weight: 750; }
td:first-child { color: var(--brand); }
tr:last-child td { border-bottom: 0; }

.two-col, .content-grid, .cards.three, .roadmap, .takeaways {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
}
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-grid { grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); }
.content-grid.wide-left { grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.takeaways { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.panel, .callout, .cards article, .roadmap article, .takeaways > div { padding: clamp(20px, 3vw, 34px); }
.panel.accent {
  background: linear-gradient(135deg, #fff, var(--wash));
  border-color: #bdc8fc;
}
.panel.highlight {
  background: linear-gradient(135deg, #111827, #334155 48%, var(--brand));
  color: #fff;
  border-color: rgba(255,255,255,.14);
}
.panel.highlight p, .panel.highlight .small { color: rgba(255,255,255,.82); }
.panel.accent-blue {
  background: radial-gradient(circle at 85% 10%, rgba(0,153,255,.22), transparent 45%), linear-gradient(135deg, #fff, #edf1ff);
  border-color: #bdc8fc;
}
.callout {
  background: linear-gradient(135deg, #fff, #f8fafc);
}
.callout.soft { background: linear-gradient(135deg, #fff, var(--wash-2)); }

.cards article h3 { color: var(--brand); }
.cards article p, .roadmap article p { font-size: clamp(15px, 1.5vw, 18px); }
.roadmap article small {
  display: block;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 740;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.flow > div {
  padding: clamp(18px, 2.4vw, 28px);
  position: relative;
}
.flow span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--brand);
  font-weight: 850;
}
.flow strong {
  display: block;
  font-size: clamp(20px, 2.1vw, 27px);
  letter-spacing: -.04em;
}
.flow p { font-size: clamp(14px, 1.35vw, 17px); margin: 8px 0 0; }

.takeaways > div {
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.takeaways strong {
  color: var(--brand);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -.05em;
}
.takeaways span {
  color: var(--muted);
  line-height: 1.4;
}
.closing {
  max-width: 900px;
  font-size: clamp(21px, 2.6vw, 34px);
  color: var(--ink);
  letter-spacing: -.035em;
}

@media (max-width: 980px) {
  .deck-nav { display: none; }
  .slide { min-height: auto; padding: 34px 22px 48px; }
  .hero { padding-top: 96px; }
  .brandbar { inset: 24px 22px auto; }
  .hero-grid, .two-col, .content-grid, .content-grid.wide-left, .cards.three, .roadmap, .flow, .takeaways {
    grid-template-columns: 1fr;
  }
  .hero-card { order: -1; }
  .source-row, .brandbar, .slide-footer { align-items: flex-start; flex-direction: column; }
  .source-row span:last-child { white-space: normal; }
  table { min-width: 680px; }
  .table-card { overflow-x: auto; }
  h1 { font-size: clamp(42px, 14vw, 68px); }
  h2 { font-size: clamp(34px, 10vw, 56px); }
  p, li { font-size: 17px; }
  .lead { font-size: 20px; }
}

@media (max-width: 520px) {
  .slide { padding-inline: 16px; }
  .panel, .callout, .cards article, .roadmap article, .takeaways > div, .hero-card { border-radius: 22px; }
  th, td { padding: 14px 16px; }
  .metric strong { font-size: 54px; }
}

@media print {
  body { background: #fff; }
  .deck-nav { display: none; }
  .slide {
    width: 100%;
    min-height: 100vh;
    page-break-after: always;
    break-after: page;
    padding: 48px;
  }
  .table-card, .panel, .callout, .cards article, .flow > div, .roadmap article, .takeaways > div { box-shadow: none; }
}
