:root {
  --bg: #050816;
  --bg-2: #0b1020;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #10b981;
  --violet: #8b5cf6;
  --red: #f87171;
  --yellow: #fbbf24;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(34, 211, 238, 0.18), transparent 30rem),
    radial-gradient(circle at 84% 14%, rgba(139, 92, 246, 0.18), transparent 28rem),
    radial-gradient(circle at 60% 82%, rgba(16, 185, 129, 0.12), transparent 26rem),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  letter-spacing: 0;
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 72%);
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--violet));
  transition: width 240ms ease;
}

.deck-header {
  position: fixed;
  top: 5px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.deck-brand,
.deck-links {
  display: flex;
  align-items: center;
}

.deck-brand {
  gap: 0.7rem;
  font-weight: 900;
}

.deck-brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan);
}

.deck-links {
  gap: 0.5rem;
}

.deck-links a,
.deck-links button,
.control-button,
.button {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(18px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.deck-links a,
.deck-links button {
  padding: 0.65rem 0.85rem;
}

.deck-links button {
  color: var(--text);
}

.deck-links a:hover,
.deck-links button:hover,
.control-button:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.deck {
  position: relative;
  width: 100%;
  height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  padding: 6.7rem 1rem 6rem;
}

.slide.active {
  display: block;
  animation: slideIn 220ms ease both;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-inner {
  display: grid;
  align-content: center;
  width: min(1260px, 100%);
  min-height: calc(100vh - 12.7rem);
  margin: 0 auto;
}

.two-column {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.wide-card {
  grid-column: 1 / -1;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: clamp(0.74rem, 1.5vw, 0.88rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.35rem, 5.2vw, 4.4rem);
  line-height: 1;
}

h2 {
  max-width: 1060px;
  margin-bottom: 1rem;
  font-size: clamp(2.05rem, 4.9vw, 4.3rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

p,
li {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.lead {
  max-width: 1000px;
  font-size: clamp(1.18rem, 2vw, 1.65rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: fit-content;
  margin-top: 1rem;
  padding: 0.9rem 1.15rem;
  font-weight: 900;
}

.button.primary,
.control-button.next {
  border-color: rgba(34, 211, 238, 0.5);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #06111b;
}

.button.large {
  min-height: 64px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

.meta-row,
.chip-grid,
.mini-grid,
.card-grid,
.case-grid,
.tool-groups,
.level-grid,
.mockup-grid,
.question-list,
.report-list {
  display: grid;
  gap: 1rem;
}

.meta-row {
  grid-template-columns: repeat(3, max-content);
  margin: 1.6rem 0 1rem;
}

.meta-row span,
.chip-grid span,
.mini-grid span,
.question-list span,
.report-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.75rem 1rem;
}

.focus-card,
.qr-card,
.wide-card,
.tool-groups article,
.case-card,
.prompt-stack article,
.mockup-grid article,
.card-grid article,
.level-grid article,
.callout {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.focus-card {
  position: relative;
  min-height: 360px;
  padding: 2rem;
  overflow: hidden;
}

.focus-card::before {
  position: absolute;
  inset: 42px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.focus-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 7.2rem;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1;
}

.pulse-dot {
  position: absolute;
  right: 25%;
  top: 22%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 34px var(--green);
}

.chip-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 2rem;
}

.timeline {
  display: grid;
  gap: 0.75rem;
  max-width: 980px;
}

.timeline article {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.timeline time {
  color: var(--green);
  font-weight: 900;
}

.process-row {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.process-row.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.process-row article {
  min-height: 170px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.process-row span,
.level-grid span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.13);
  color: var(--cyan);
  font-weight: 900;
}

.callout {
  max-width: 1050px;
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  color: var(--text);
  border-left: 4px solid var(--green);
}

.qr-card {
  display: grid;
  justify-items: center;
  padding: 1.5rem;
}

.qr-placeholder {
  min-height: 300px;
  align-content: center;
  text-align: center;
}

.qr-placeholder strong {
  display: grid;
  width: min(220px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border: 1px dashed rgba(34, 211, 238, 0.55);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 12px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(255, 255, 255, 0.06) 12px, transparent 1px) 0 0 / 28px 28px,
    rgba(255, 255, 255, 0.045);
  color: var(--cyan);
  font-size: 1.3rem;
}

.qr-placeholder span {
  display: block;
  color: var(--text);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.visible-link {
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.form-slide .slide-inner {
  align-content: center;
}

.form-hero {
  max-width: 1080px;
}

.form-button {
  min-height: 76px;
  margin-top: 1.8rem;
  padding: 1.1rem 1.6rem;
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
}

.form-url {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 1rem;
  color: var(--cyan);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.form-note {
  max-width: 820px;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.wide-card {
  padding: 1.2rem;
}

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

.scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.scale article {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.scale strong {
  display: block;
  margin-bottom: 1rem;
  color: var(--yellow);
  font-size: 2.4rem;
}

.tool-groups {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tool-groups article,
.case-card,
.prompt-stack article,
.mockup-grid article,
.card-grid article,
.level-grid article {
  padding: 1.2rem;
}

.dashboard-slide .slide-inner {
  align-content: start;
  max-width: 1340px;
  min-height: calc(100vh - 10rem);
  padding-top: 0;
}

.dashboard-slide h2 {
  max-width: 900px;
  margin-bottom: 0.4rem;
  font-size: clamp(1.9rem, 4.2vw, 3.45rem);
}

.dashboard-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.dashboard-copy p {
  margin-bottom: 0;
}

.dashboard-copy a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.dashboard-stage {
  --dashboard-scale: 1;
  position: relative;
  width: min(100%, 1280px);
  height: min(750px, calc(100vh - 370px));
  min-height: 330px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.dashboard-scale {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1280px;
  height: 1000px;
  transform: translateX(-50%) scale(var(--dashboard-scale));
  transform-origin: top center;
}

.dashboard-scale iframe {
  display: block;
  width: 1280px !important;
  height: 1000px !important;
  border-radius: 12px;
}

.dashboard-fallback {
  display: none;
  min-height: 330px;
  align-content: center;
  justify-items: start;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.dashboard-fallback h3 {
  max-width: 760px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.dashboard-fallback p {
  max-width: 820px;
}

.dashboard-slide.dashboard-too-small .dashboard-stage {
  display: none;
}

.dashboard-slide.dashboard-too-small .dashboard-fallback {
  display: grid;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card-grid article {
  display: grid;
  min-height: 150px;
  place-items: center;
  text-align: center;
  color: var(--text);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 800;
}

.case-grid,
.activity-grid,
.mockup-grid,
.level-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.case-card {
  min-height: 270px;
}

.case-card span,
.mockup-grid span {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card small {
  display: block;
  margin-top: 1.3rem;
  color: var(--cyan);
  font-weight: 800;
  line-height: 1.5;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: stretch;
  margin: 2rem 0;
}

.flow span {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  font-weight: 850;
}

.flow b {
  display: none;
}

ol {
  margin: 0;
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.55rem;
}

.prompt-stack {
  display: grid;
  gap: 1rem;
}

.prompt-stack p {
  margin-bottom: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
}

.mockup-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mockup-grid article {
  min-height: 180px;
}

.question-list,
.report-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1000px;
  margin-top: 2rem;
}

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

.closing-slide h3 {
  margin-top: 2rem;
  color: var(--cyan);
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

.controls {
  position: fixed;
  right: 50%;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transform: translateX(50%);
}

.control-button {
  min-width: 116px;
  min-height: 46px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-weight: 900;
}

.control-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

#slideCounter {
  min-width: 118px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
}

body.dashboard-mode .controls {
  display: none;
}

html.dashboard-mode,
body.dashboard-mode {
  overflow: hidden;
}

body.dashboard-mode .slide.active {
  overflow: hidden;
}

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

  .deck-header {
    position: sticky;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .deck {
    height: auto;
    min-height: 100vh;
  }

  .slide {
    position: static;
    min-height: auto;
    padding: 2rem 1rem 7rem;
  }

  .slide:not(.active) {
    display: none;
  }

  .slide-inner,
  .two-column,
  .case-grid,
  .activity-grid,
  .mockup-grid,
  .level-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .chip-grid,
  .process-row.five,
  .scale,
  .tool-groups,
  .card-grid.four,
  .card-grid.five,
  .flow,
  .question-list,
  .report-list,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-card {
    min-height: 300px;
  }
}

@media (max-width: 680px) {
  .deck-links {
    width: 100%;
    overflow-x: auto;
  }

  .meta-row,
  .chip-grid,
  .process-row.five,
  .scale,
  .tool-groups,
  .card-grid.four,
  .card-grid.five,
  .flow,
  .question-list,
  .report-list,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .controls {
    left: 10px;
    right: 10px;
    transform: none;
  }

  .control-button {
    min-width: 0;
    flex: 1;
  }
}
