:root {
  color-scheme: dark;
  --bg: #061117;
  --panel: rgba(11, 24, 34, 0.82);
  --panel-strong: rgba(15, 30, 42, 0.95);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f1f6fa;
  --muted: #9ab0bf;
  --green: #4bd3a3;
  --yellow: #ffbf69;
  --blue: #6eb9ff;
  --red: #ff8f7e;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(75, 211, 163, 0.14), transparent 22%),
    linear-gradient(180deg, #061117 0%, #08141c 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck-shell {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 100vh;
}

.deck-nav {
  border-right: 1px solid var(--border);
  background: rgba(5, 12, 19, 0.75);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.deck-brand {
  display: grid;
  gap: 8px;
}

.deck-brand strong {
  font-size: 0.95rem;
}

.deck-kicker,
.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.deck-dots {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.deck-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  cursor: pointer;
}

.deck-dot.active {
  background: var(--green);
  border-color: var(--green);
}

.deck-hint {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.deck {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.slide {
  position: relative;
  min-height: 100vh;
  padding: 48px;
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 28px;
}

.title-slide,
.demo-slide,
.close-slide {
  padding: 0;
}

.slide-media.full-bleed {
  position: absolute;
  inset: 0;
}

.slide-media.full-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 11, 17, 0.08), rgba(4, 11, 17, 0.82)),
    linear-gradient(90deg, rgba(4, 11, 17, 0.82), rgba(4, 11, 17, 0.18));
}

.slide-content.overlay {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 64px 72px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.slide-content.centered {
  justify-items: center;
  text-align: center;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1 {
  font-size: clamp(3.3rem, 7vw, 6rem);
  line-height: 0.94;
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  max-width: 16ch;
}

h3 {
  font-size: 1.1rem;
}

.hero-tagline {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  color: var(--yellow);
  font-weight: 700;
}

.hero-subtitle,
.big-picture-text,
.slide-head + * {
  color: var(--muted);
}

.hero-subtitle,
.big-picture-text {
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.6;
}

.slide-head {
  display: grid;
  gap: 10px;
}

.problem-grid,
.now-grid,
.stack-grid,
.pillars-grid,
.flow-strip {
  display: grid;
  gap: 16px;
}

.problem-grid,
.now-grid,
.stack-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-beat,
.now-card,
.stack-card,
.pillar,
.flow-step,
.quote-card,
.diagram-card,
.layers-card,
.demo-frame {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.problem-beat,
.now-card,
.stack-card,
.pillar,
.flow-step {
  padding: 20px;
  min-height: 168px;
}

.beat-index {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 700;
}

.problem-beat p,
.now-card p,
.pillar p,
.flow-step p,
.stack-card li {
  font-size: 1.05rem;
  line-height: 1.45;
}

.diagram-card {
  padding: 28px;
  min-height: 250px;
  display: grid;
  place-items: center;
}

.diagram-card.one-way {
  grid-template-columns: 1fr auto 1fr;
}

.diagram-node {
  width: min(100%, 220px);
  min-height: 110px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.diagram-node.user,
.diagram-node.center {
  background: rgba(75, 211, 163, 0.09);
  border-color: rgba(75, 211, 163, 0.34);
}

.diagram-node.platform,
.diagram-node.provider {
  background: rgba(110, 185, 255, 0.08);
  border-color: rgba(110, 185, 255, 0.28);
}

.lock-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 143, 126, 0.16);
  color: #ffd4cc;
}

.diagram-flow {
  width: 180px;
  height: 4px;
  position: relative;
  border-radius: 999px;
}

.one-way-flow {
  background: linear-gradient(90deg, var(--green), var(--red));
}

.one-way-flow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-top: 4px solid var(--red);
  border-right: 4px solid var(--red);
  transform: translateY(-50%) rotate(45deg);
}

.quote-card {
  padding: 28px;
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: start;
}

.quote-card p {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  max-width: 16ch;
}

.quote-mark {
  color: var(--yellow);
  font-size: 3.4rem;
  line-height: 1;
}

.solution-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr 1fr;
}

.pillars-grid {
  grid-template-columns: 1fr;
}

.user-owned {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 80px;
}

.user-owned .center,
.ecosystem .center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  min-height: 130px;
}

.diagram-link {
  position: absolute;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(75, 211, 163, 0.6), rgba(110, 185, 255, 0.8));
}

.diagram-link.top-left {
  top: 34%;
  left: 29%;
  transform: rotate(25deg);
}

.diagram-link.top-right {
  top: 34%;
  right: 29%;
  transform: rotate(-25deg);
}

.diagram-link.bottom-right {
  bottom: 29%;
  right: 29%;
  transform: rotate(25deg);
}

.flow-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-number {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
}

.layers-card {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.memory-layer {
  min-height: 110px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  padding: 14px;
  font-weight: 700;
  text-align: center;
}

.demo-callout {
  font-size: 1.2rem;
  color: var(--yellow);
}

.demo-frame {
  width: min(72vw, 900px);
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 24px;
  font-size: 1.05rem;
  color: var(--muted);
}

.stack-card ul {
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.big-picture-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}

.ecosystem {
  position: relative;
  min-height: 380px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 120px 140px;
}

.ask-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.ask-list p {
  font-size: 1.2rem;
}

@media (max-width: 1080px) {
  body {
    overflow: auto;
  }

  .deck-shell {
    grid-template-columns: 1fr;
  }

  .deck-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    grid-auto-flow: column;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .deck-dots {
    grid-auto-flow: column;
  }

  .slide {
    padding: 28px;
  }

  .slide-content.overlay {
    padding: 36px 28px;
  }

  .problem-grid,
  .now-grid,
  .stack-grid,
  .flow-strip,
  .layers-card,
  .solution-layout,
  .big-picture-layout {
    grid-template-columns: 1fr;
  }

  .diagram-card.one-way {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .diagram-flow {
    width: 4px;
    height: 80px;
  }

  .one-way-flow::after {
    right: 50%;
    top: auto;
    bottom: -2px;
    transform: translateX(50%) rotate(135deg);
  }

  .user-owned .center,
  .ecosystem .center {
    position: static;
    transform: none;
    width: 100%;
  }

  .diagram-link {
    display: none;
  }

  .hero-strip img,
  .demo-frame {
    width: 100%;
  }
}
