:root {
  --bg: #09090b;
  --panel: rgba(17, 17, 19, 0.84);
  --panel-strong: rgba(24, 24, 27, 0.94);
  --line: rgba(63, 63, 70, 0.86);
  --line-soft: rgba(63, 63, 70, 0.36);
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-strong: #d4d4d8;
  --accent: #6366f1;
  --accent-bright: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-line: rgba(99, 102, 241, 0.34);
  --shadow: 0 38px 120px rgba(0, 0, 0, 0.36);
  --radius: 28px;
  --content-width: 1240px;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-snap-type: y mandatory;
}

body {
  font-family: Inter, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(99, 102, 241, 0.16), transparent 28%),
    linear-gradient(to right, rgba(39, 39, 42, 0.26) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(39, 39, 42, 0.26) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
  overflow-y: auto;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.deck-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.9), rgba(9, 9, 11, 0.28), transparent);
  pointer-events: none;
}

.deck-brand,
.deck-meta {
  pointer-events: auto;
}

.locale-switcher {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.72);
}

.locale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 0 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: 160ms ease;
}

.locale-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.locale-link.is-active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.24), rgba(99, 102, 241, 0.14));
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.26);
}

.deck-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.deck-meta {
  display: inline-flex;
  gap: 1rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.deck {
  width: 100%;
}

.slide {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.3rem 1.4rem 2.2rem;
}

.slide-inner {
  position: relative;
  width: min(var(--content-width), 100%);
  min-height: calc(100vh - 8rem);
  padding: 2.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%);
  pointer-events: none;
}

.slide-inner-hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 2rem;
  align-items: center;
}

.slide-inner-closing {
  align-items: center;
  text-align: center;
}

.hero-copy,
.slide-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent-bright);
  box-shadow: 0 0 18px var(--accent-bright);
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.6rem, 8vw, 6.8rem);
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
}

.visual-layout h2 {
  font-size: clamp(2.15rem, 4vw, 4rem);
  max-width: 14ch;
}

.title-main,
.title-accent {
  display: block;
}

.title-main {
  color: var(--text);
}

.title-accent {
  color: var(--accent-bright);
}

.hero-line,
.closing-line {
  max-width: 40ch;
  margin: 1.4rem 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-media {
  position: relative;
  z-index: 1;
}

.phone-stage {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 0.6rem 0;
}

.phone-shell {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 9 / 19.5;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.78);
  border-radius: 2.4rem;
  background:
    linear-gradient(180deg, rgba(22, 22, 25, 0.98), rgba(5, 5, 7, 1)),
    #020203;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.phone-screen {
  --phone-scale: 1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1.9rem;
  background:
    radial-gradient(circle at top, rgba(99, 102, 241, 0.12), transparent 30%),
    #050507;
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: 20px;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.98), rgba(5, 5, 7, 0.72), transparent);
  pointer-events: none;
}

.phone-screen iframe,
.phone-screen video {
  width: 100%;
  height: 100%;
  border: 0;
  background: #050507;
}

.phone-screen iframe {
  width: calc(100% / var(--phone-scale));
  height: calc(100% / var(--phone-scale));
  transform: scale(var(--phone-scale));
  transform-origin: top center;
  will-change: transform;
}

.phone-screen video {
  object-fit: cover;
  object-position: center top;
}

.phone-home {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

.mini-card,
.compare-box,
.visual-frame,
.product-frame {
  position: relative;
  z-index: 1;
}

.mini-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(14, 14, 17, 0.82);
}

.mini-card strong {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.mini-card span {
  color: var(--muted);
  font-size: 1rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 1.35rem;
  align-items: center;
}

.visual-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.impact-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.impact-list li {
  margin-bottom: 0.85rem;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.impact-list li::before {
  content: "•";
  margin-right: 0.65rem;
  color: var(--accent-bright);
}

.compare-boxes {
  display: grid;
  gap: 1rem;
}

.compare-box {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(14, 14, 17, 0.82);
}

.compare-box-muted {
  opacity: 0.92;
}

.compare-box-highlight {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.16), rgba(14, 14, 17, 0.9));
}

.compare-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.compare-box strong {
  display: block;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.visual-frame,
.product-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  background: rgba(10, 10, 13, 0.92);
}

.visual-frame {
  padding: 1.1rem;
}

.visual-frame img,
.product-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-diagram {
  min-height: 0;
  height: 100%;
  display: grid;
  gap: 1rem;
  align-items: center;
}

.flow-animated .flow-card,
.flow-animated .workflow-node,
.flow-animated .flow-core-ring,
.flow-animated .flow-connector svg {
  animation-duration: 5.5s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.flow-diagram-routing.flow-animated .flow-card-muted {
  animation-name: float-left;
}

.flow-diagram-routing.flow-animated .flow-connector svg {
  animation-name: pulse-line;
}

.flow-diagram-routing.flow-animated .flow-card-accent {
  animation-name: pulse-center;
}

.flow-diagram-accounts.flow-animated .flow-card-muted {
  animation-name: float-left-soft;
}

.flow-diagram-accounts.flow-animated .flow-card-accent {
  animation-name: glow-right;
}

.flow-diagram-accounts.flow-animated .flow-core-ring {
  animation-name: pulse-ring;
}

.flow-diagram-runtime.flow-animated .flow-card-muted:first-child {
  animation-name: float-left;
}

.flow-diagram-runtime.flow-animated .flow-card-runtime-main {
  animation-name: pulse-center;
}

.flow-diagram-runtime.flow-animated .flow-card-muted:last-child {
  animation-name: float-right;
}

.flow-diagram-workflow.flow-animated .workflow-node:first-child {
  animation-name: float-left;
}

.flow-diagram-workflow.flow-animated .workflow-node-accent {
  animation-name: pulse-center;
}

.flow-diagram-workflow.flow-animated .workflow-node:last-child {
  animation-name: float-right;
}

.flow-diagram-workflow.flow-animated .workflow-step span {
  animation: pulse-glyph 5.5s ease-in-out infinite;
}

.flow-card,
.workflow-node {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(17, 17, 19, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.flow-card-accent,
.workflow-node-accent {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.16), rgba(17, 17, 19, 0.94));
}

.flow-kicker {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.flow-card p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.flow-list,
.flow-list-mono,
.flow-pill-list {
  display: grid;
  gap: 0.7rem;
}

.flow-feature-list {
  display: grid;
  gap: 0.85rem;
}

.flow-list span,
.flow-list-mono span {
  display: block;
  padding: 0.78rem 0.88rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.flow-list-mono span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
}

.flow-list-mono-accent span {
  color: #c7d2fe;
}

.flow-feature-list span {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.25;
}

.flow-feature-list span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-bright);
  box-shadow: 0 0 14px rgba(129, 140, 248, 0.35);
}

.flow-pill-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-pill-list-single {
  grid-template-columns: 1fr;
}

.flow-pill-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  line-height: 1.2;
}

.flow-pill-list-accounts span {
  min-height: 3.2rem;
  white-space: nowrap;
}

.flow-diagram-routing {
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: stretch;
}

.flow-diagram-routing .flow-card {
  min-width: 0;
}

.flow-connector,
.workflow-step {
  display: grid;
  place-items: center;
}

.workflow-step {
  color: var(--accent-bright);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.flow-connector svg,
.flow-connector svg {
  width: 100%;
  max-width: 120px;
  height: auto;
}

.flow-connector path,
.flow-connector path {
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-step span {
  display: inline-block;
  transform: translateY(-1px);
}

.flow-diagram-accounts {
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
}

.flow-core {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  text-align: center;
}

.flow-core-ring {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.32), rgba(99, 102, 241, 0.08));
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.18);
}

.flow-core-ring span {
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.flow-core small {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}

.flow-diagram-runtime {
  display: flex;
  align-items: center;
  min-height: 430px;
}

.flow-stack {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.flow-card-compact {
  align-self: stretch;
}

.flow-card-runtime-main {
  min-height: 100%;
}

.flow-feature-list-runtime span {
  font-size: 1rem;
}

.flow-diagram-workflow {
  grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1.16fr) 10px minmax(0, 1fr);
  gap: 0.35rem;
  align-items: stretch;
}

.workflow-node {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  min-height: 260px;
}

.flow-diagram-workflow .workflow-node {
  min-height: 0;
  padding: 1.15rem;
}

.flow-diagram-workflow .workflow-node strong {
  font-size: 0.95rem;
  padding: 0.72rem 0.8rem;
}

.workflow-node strong {
  display: block;
  padding: 0.78rem 0.9rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.2;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.pill-grid span {
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 14, 17, 0.82);
  color: var(--muted-strong);
  font-size: 0.96rem;
}

.slide-closing h2 {
  max-width: 15ch;
}

.deck-dots {
  position: fixed;
  right: 1.05rem;
  top: 50%;
  z-index: 35;
  display: grid;
  gap: 0.52rem;
  transform: translateY(-50%);
}

.deck-dots a {
  width: 0.78rem;
  height: 0.78rem;
  border: 1px solid rgba(161, 161, 170, 0.45);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.84);
  transition: 160ms ease;
}

.deck-dots a.is-active {
  transform: scale(1.28);
  border-color: var(--accent-bright);
  background: var(--accent);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.45);
}

.deck-hint {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  z-index: 35;
  transform: translateX(-50%);
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.78);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

@media (max-width: 1100px) {
  .slide-inner-hero,
  .split-layout,
  .visual-layout {
    grid-template-columns: 1fr;
  }

  .three-cards {
    grid-template-columns: 1fr;
  }

  .flow-diagram-routing,
  .flow-diagram-accounts,
  .flow-diagram-workflow,
  .flow-stack {
    grid-template-columns: 1fr;
  }

  .flow-connector,
  .workflow-step,
  .flow-core {
    min-height: 44px;
  }

  .flow-connector svg,
  .flow-connector svg {
    max-width: 68px;
    transform: rotate(90deg);
  }

  .workflow-step span {
    transform: rotate(90deg);
  }

  .flow-pill-list-accounts span {
    white-space: normal;
  }

}

@media (max-width: 760px) {
  .deck-topbar {
    padding: 0.9rem 1rem;
  }

  .deck-meta,
  .deck-dots {
    display: none;
  }

  .locale-switcher {
    gap: 0.25rem;
  }

  .locale-link {
    min-width: 38px;
    height: 32px;
    padding: 0 0.7rem;
  }

  .slide {
    padding: 4.8rem 0.85rem 1rem;
  }

  .slide-inner {
    min-height: calc(100vh - 6rem);
    padding: 1.35rem;
    border-radius: 1.3rem;
  }

  .visual-frame {
    padding: 0.75rem;
  }

  .phone-shell {
    width: min(100%, 320px);
    padding: 12px;
    border-radius: 2rem;
  }

  .phone-screen {
    --phone-scale: 0.84;
    border-radius: 1.6rem;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 4.5rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .hero-line,
  .closing-line,
  .impact-list li,
  .mini-card span {
    font-size: 0.94rem;
  }

  .eyebrow,
  .compare-label,
  .flow-kicker {
    font-size: 0.72rem;
  }

  .mini-card strong,
  .compare-box strong {
    font-size: 1.1rem;
  }

  .flow-diagram {
    min-height: 0;
  }

  .flow-card,
  .workflow-node {
    padding: 1rem;
  }

  .flow-pill-list {
    grid-template-columns: 1fr;
  }

  .workflow-node {
    min-height: 0;
  }

  .flow-feature-list span {
    font-size: 0.9rem;
  }

  .deck-hint {
    left: auto;
    right: 0.9rem;
    bottom: 0.9rem;
    transform: none;
    font-size: 0.7rem;
  }
}

@media (max-width: 420px) {
  .phone-shell {
    width: min(100%, 292px);
  }

  .phone-screen {
    --phone-scale: 0.78;
  }
}

@keyframes float-left {
  0%, 100% { transform: translateX(0); opacity: 0.92; }
  50% { transform: translateX(-6px); opacity: 1; }
}

@keyframes float-left-soft {
  0%, 100% { transform: translateY(0); opacity: 0.92; }
  50% { transform: translateY(-6px); opacity: 1; }
}

@keyframes float-right {
  0%, 100% { transform: translateX(0); opacity: 0.92; }
  50% { transform: translateX(6px); opacity: 1; }
}

@keyframes glow-right {
  0%, 100% { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 0 rgba(99,102,241,0); }
  50% { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 28px rgba(99,102,241,0.18); }
}

@keyframes pulse-center {
  0%, 100% { transform: scale(1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 0 rgba(99,102,241,0); }
  50% { transform: scale(1.02); box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 34px rgba(99,102,241,0.18); }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(99,102,241,0.14); }
  50% { transform: scale(1.06); box-shadow: 0 0 48px rgba(99,102,241,0.24); }
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.55; transform: scaleX(0.96); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes fade-soft {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

@keyframes pulse-glyph {
  0%, 100% { opacity: 0.42; transform: translateY(-1px) scale(0.96); }
  50% { opacity: 1; transform: translateY(-1px) scale(1.08); }
}
