:root {
  --ultra: #2563eb;
  --deep: #070910;
  --fill: #1d4ed8;
  --shadow-ink: #0c101d;
  --page: #f5f5f7;
  --lilac: #f5f5f7;
  --ink: #11131d;
  --ink-2: #4b5268;
  --ink-3: #646b82;
  --pill-light: #e8e9f0;
  --pill-ink: #1d1d1f;
  --radius-card: 28px;
  --radius-tile: 24px;
  --gutter: 24px;
  --maxw: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: -apple-system, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-text: -apple-system, "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--page); overflow-x: clip; }
html.at-hero { background: var(--deep); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html.at-hero body { background: var(--deep); }
main, .footer { background: var(--page); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
code { font-family: var(--font-mono); font-size: 0.9em; background: rgb(37 99 235 / 0.08); padding: 2px 6px; border-radius: 6px; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }

.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap.narrow { max-width: 820px; }

/* ---------- Type ---------- */
.display, .headline, .display-sm { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
.display { font-size: clamp(42px, 6.2vw, 82px); line-height: 1.02; letter-spacing: -0.03em; color: #fff; }
.display .soft { color: rgb(255 255 255 / 0.66); }
.headline { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.03em; text-align: center; color: var(--ink); }
.headline .soft { color: var(--ultra); }
.display-sm { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.sub { max-width: 640px; margin: 18px auto 0; text-align: center; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; text-wrap: pretty; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; text-decoration: none; font-weight: 500; white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms var(--ease-out), color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.pill:active { transform: scale(0.97); }
.pill-lg { height: 56px; padding: 0 28px; font-size: 18px; }
.pill-sm { height: 30px; padding: 0 14px; font-size: 13px; }
.pill-light { background: var(--pill-light); color: var(--pill-ink); }
.pill-glass { background: rgb(255 255 255 / 0.16); color: #fff; backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); }
@media (hover: hover) {
  .pill-light:hover { background: #fff; }
  .pill-glass:hover { background: rgb(255 255 255 / 0.26); }
}

/* ---------- Nav (Dynamic Island / GravityNotch) ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - var(--gutter) * 2);
  max-width: 980px;
  padding: 9px 12px 9px 18px;
  border-radius: 999px;
  background: rgb(11 14 24 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.14);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 14px 40px rgb(0 0 0 / 0.42);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #fff;
  overflow: hidden;
  transition:
    max-width 360ms var(--ease-out),
    padding 360ms var(--ease-out),
    top 360ms var(--ease-out),
    background-color 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease,
    color 280ms ease,
    transform 160ms var(--ease-out);
}
.nav:hover,
.nav.island-open {
  background: rgb(14 18 32 / 0.86);
  border-color: rgb(255 255 255 / 0.22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 18px 48px rgb(0 0 0 / 0.52);
}
.nav.light {
  background: rgb(255 255 255 / 0.82);
  border-color: rgb(17 19 29 / 0.1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.85), 0 12px 36px rgb(17 19 29 / 0.1);
  color: var(--ink);
}
.nav.light:hover,
.nav.light.island-open {
  background: rgb(255 255 255 / 0.92);
  border-color: rgb(17 19 29 / 0.16);
  box-shadow: inset 0 1px 0 #fff, 0 16px 44px rgb(17 19 29 / 0.14);
}
.nav:active {
  transform: translateX(-50%) scale(0.99);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}
.brand img { border-radius: 7px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.brand-text small {
  font-size: 11.5px;
  opacity: 0.72;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 180ms ease, max-width 280ms var(--ease-out), height 240ms var(--ease-out);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  transition: opacity 220ms ease 60ms, transform 280ms var(--ease-out) 40ms, visibility 0s linear 0s;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.84;
  transition: opacity 160ms ease, color 160ms ease;
}
.nav-links a:hover,
.nav-links a.active-nav { opacity: 1; }
.nav-links a.active-nav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9dffcf;
  box-shadow: 0 0 8px #9dffcf;
  transition: background-color 280ms ease, box-shadow 280ms ease;
}
.nav.light .nav-links a.active-nav::after {
  background: var(--ultra);
  box-shadow: 0 0 8px rgb(37 99 235 / 0.5);
}

.nav-cta {
  flex-shrink: 0;
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  transition:
    background-color 280ms ease,
    color 280ms ease,
    opacity 220ms ease 60ms,
    transform 240ms var(--ease-out);
}
.nav.light .nav-cta { background: var(--ultra); color: #fff; }
.nav-lang {
  flex-shrink: 0;
  height: 34px;
  min-width: 40px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 600 12px/1 var(--font-text);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 280ms ease, opacity 220ms ease 60ms, transform 160ms var(--ease-out);
}
.nav-lang:active { transform: scale(0.94); }
.nav.light .nav-lang { color: var(--ink); border-color: rgb(17 19 29 / 0.18); }
@media (hover: hover) {
  .nav-lang:hover { background: rgb(255 255 255 / 0.12); }
  .nav.light .nav-lang:hover { background: rgb(17 19 29 / 0.06); }
}
@media (hover: hover) {
  .nav.light .nav-cta:hover { background: var(--fill); }
}

/* Compact status indicator inside Dynamic Island */
.island-status {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: opacity 140ms ease, transform 200ms var(--ease-out), visibility 0s linear 140ms;
}
.island-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9dffcf;
  box-shadow: 0 0 8px #9dffcf;
  flex-shrink: 0;
  transition: background-color 280ms ease, box-shadow 280ms ease;
}
.nav.light .island-dot {
  background: var(--ultra);
  box-shadow: 0 0 8px rgb(37 99 235 / 0.45);
}
.island-section-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.island-index {
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
  color: #93c5fd;
  transition: color 280ms ease;
}
.nav.light .island-index { color: var(--ultra); }
.island-sep { opacity: 0.36; }
.island-percent {
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.72;
  padding-left: 8px;
  margin-left: 2px;
  border-left: 1px solid rgb(255 255 255 / 0.18);
  min-width: 36px;
  text-align: right;
}
.nav.light .island-percent { border-left-color: rgb(17 19 29 / 0.14); }

/* Hairline scroll progress track along bottom of island */
.island-progress-track {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  background: rgb(255 255 255 / 0.1);
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease, background-color 280ms ease;
}
.nav.light .island-progress-track { background: rgb(17 19 29 / 0.08); }
.island-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9dffcf, #fff);
  border-radius: 999px;
  transition: width 80ms linear, background 280ms ease;
}
.nav.light .island-progress-bar {
  background: linear-gradient(90deg, var(--ultra), #60a5fa);
}

.nav.island-compact { top: 12px; }
.nav.island-compact .island-progress-track { opacity: 1; }
.nav.island-compact .brand-text small { opacity: 0; max-width: 0; height: 0; }

/* Compact GravityNotch state when scrolled down (and not hovered/focused/opened) */
.nav.island-compact:not(.island-open):not(:focus-within) {
  max-width: 380px;
  padding: 7px 18px;
}
.nav.island-compact:not(.island-open):not(:focus-within) .nav-links,
.nav.island-compact:not(.island-open):not(:focus-within) .nav-lang,
.nav.island-compact:not(.island-open):not(:focus-within) .nav-cta {
  position: absolute;
  right: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(6px) scale(0.96);
  transition: opacity 120ms ease, transform 160ms ease, visibility 0s linear 120ms;
}
.nav.island-compact:not(.island-open):not(:focus-within) .island-status {
  position: static;
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease 80ms, transform 280ms var(--ease-out) 40ms, visibility 0s linear 0s;
}

@media (max-width: 860px) {
  .brand-text small { display: none; }
  .nav { padding: 8px 12px 8px 16px; }
  .nav-links { gap: 16px; }
}
@media (max-width: 680px) {
  .nav {
    top: 10px;
    border-radius: 22px;
    padding: 10px 14px 14px;
  }
  .nav-inner {
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 10px;
    min-height: 30px;
  }
  .brand { order: 1; margin-right: auto; }
  .brand-text strong { font-size: 15.5px; }
  .nav-lang { order: 2; height: 30px; min-width: 36px; padding: 0 8px; font-size: 11.5px; }
  .nav-cta {
    order: 2;
    height: 30px;
    padding: 0 13px;
    font-size: 12.5px;
  }
  .nav-links {
    order: 3;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid rgb(255 255 255 / 0.14);
  }
  .nav.light .nav-links {
    border-top-color: rgb(17 19 29 / 0.08);
  }
  .nav-links a {
    font-size: clamp(11.5px, 3.1vw, 13px);
    padding: 2px 0;
  }
  .nav-links a.active-nav::after {
    bottom: -4px;
    width: 3.5px;
    height: 3.5px;
  }
  .island-status { order: 2; }
  .island-section-wrap { font-size: 12px; gap: 4px; }
  .island-percent { font-size: 11px; padding-left: 6px; min-width: 32px; }
  .nav.island-compact:not(.island-open):not(:focus-within) {
    max-width: 342px;
    padding: 6px 14px;
    border-radius: 999px;
  }
  .nav.island-compact:not(.island-open):not(:focus-within) .nav-inner {
    flex-wrap: nowrap;
  }
  .nav.island-compact:not(.island-open):not(:focus-within) .nav-links {
    width: auto;
    padding-top: 0;
    border-top: 0;
  }
}

/* ---------- Stipple texture ---------- */
.stipple {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at center, rgb(255 255 255 / 0.95) 0.9px, transparent 1.3px);
  background-size: 5px 5px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; min-height: 100dvh;
  padding: 100px var(--gutter) 76px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
  background:
    radial-gradient(90% 50% at 50% 30%, rgb(37 99 235 / 0.42) 0%, transparent 65%),
    linear-gradient(180deg, var(--deep) 0%, #0d1326 40%, #131d3d 60%, #0b1020 80%, var(--deep) 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.stipple-a {
  -webkit-mask-image: radial-gradient(34% 30% at 6% 22%, #000, transparent), radial-gradient(30% 28% at 96% 30%, #000, transparent);
          mask-image: radial-gradient(34% 30% at 6% 22%, #000, transparent), radial-gradient(30% 28% at 96% 30%, #000, transparent);
  opacity: 0.45;
  animation: drift 16s ease-in-out infinite alternate;
}
.stipple-b {
  background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(60% 22% at 50% 100%, #000, transparent);
          mask-image: radial-gradient(60% 22% at 50% 100%, #000, transparent);
  opacity: 0.22;
}
.horizon {
  position: absolute; left: -10%; right: -10%; top: 38%; height: 140px;
  background: radial-gradient(50% 50% at 50% 50%, rgb(96 165 250 / 0.35), rgb(37 99 235 / 0.16) 45%, transparent 75%);
  filter: blur(22px);
}
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-14px); } }

/* The screen: MacBook display frame with physical notch + real recording at 1:1 Retina scale */
.screen {
  position: relative;
  width: min(860px, 100%);
  padding: 10px 10px 0;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #2d2e36 0%, #16161b 55%, #0c0d11 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 0 0 1px rgb(0 0 0 / 0.5), 0 40px 120px rgb(0 0 0 / 0.65);
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
          mask-image: linear-gradient(#000 72%, transparent);
  animation: screen-in 1100ms var(--ease-out) both;
}
.screen.is-paused { cursor: pointer; }
.screen-display {
  position: relative;
  isolation: isolate;
  width: 100%;
  background:
    radial-gradient(19% 85% at 4% 72%, rgb(37 99 235 / 0.45), transparent 72%),
    radial-gradient(19% 85% at 96% 68%, rgb(99 102 241 / 0.36), transparent 72%),
    linear-gradient(180deg, #040711 0%, #010205 32%, #000 100%);
  border-radius: 17px 17px 0 0;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 16px;
}
.mac-menubar {
  position: absolute;
  inset: 0 0 auto;
  height: 22px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgb(28 38 74 / 0.55), rgb(16 23 48 / 0.35));
  color: rgb(255 255 255 / 0.62);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  pointer-events: none;
  user-select: none;
}
.mac-menu-left,
.mac-menu-right {
  display: flex;
  align-items: center;
  gap: 11px;
}
.mac-menu-left span:first-of-type { font-weight: 600; color: rgb(255 255 255 / 0.82); }
.screen-stage {
  position: relative;
  width: min(496px, 100%);
  aspect-ratio: 976 / 338;
  overflow: hidden;
  mix-blend-mode: lighten;
}
.mac-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(102px, 20.5%);
  aspect-ratio: 102 / 21;
  background: #040507;
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.08), 0 1px 6px rgb(0 0 0 / 0.55);
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 4;
}
.mac-notch::before,
.mac-notch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 7px;
  height: 7px;
}
.mac-notch::before {
  left: -7px;
  background: radial-gradient(circle at 0 100%, transparent 6.5px, #040507 7px);
}
.mac-notch::after {
  right: -7px;
  background: radial-gradient(circle at 100% 100%, transparent 6.5px, #040507 7px);
}
.mac-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3b5998 0%, #142240 45%, #05060a 78%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07);
}
.screen-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 976 / 410;
  margin-top: -7.4%;
  object-fit: cover;
}
@keyframes screen-in { from { opacity: 0; transform: translateY(-24px) scale(0.98); } to { opacity: 1; transform: none; } }

.hero-copy { position: relative; text-align: center; max-width: 1000px; margin-top: 6px; }
.hero-copy > * { animation: rise 900ms var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: 250ms; }
.hero-copy > :nth-child(2) { animation-delay: 330ms; }
.hero-copy > :nth-child(3) { animation-delay: 410ms; }
.hero-copy > :nth-child(4) { animation-delay: 490ms; }
.hero-copy > :nth-child(5) { animation-delay: 570ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 17px; font-weight: 500; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #9dffcf; box-shadow: 0 0 12px #9dffcf; }
.lede { max-width: 600px; margin: 22px auto 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.42; color: rgb(255 255 255 / 0.9); text-wrap: pretty; }
.cta-row { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fineprint { margin: 22px 0 0; font-size: 14px; font-weight: 500; color: rgb(255 255 255 / 0.78); }

@media (hover: none) and (pointer: coarse) {
  .hero {
    min-height: 100vh;
    min-height: 100lvh;
    padding-bottom: calc(76px + 100lvh - 100svh);
  }
}

@media (max-width: 740px) {
  .mac-menu-left,
  .mac-menu-right { display: none; }
}

@media (max-width: 640px) {
  .hero {
    min-height: 100vh;
    min-height: 100lvh;
    padding: 104px var(--gutter) calc(44px + 100lvh - 100svh);
    justify-content: center;
  }
  .screen { border-radius: 18px 18px 0 0; padding: 8px 8px 0; }
  .screen-display { border-radius: 11px 11px 0 0; padding-bottom: 6px; }
  .mac-notch { border-radius: 0 0 7px 7px; }
  .mac-camera { width: 4px; height: 4px; }
  .pill-lg { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }

/* ---------- Carousel ---------- */
.rail {
  margin-top: 56px;
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(var(--gutter), (100vw - var(--maxw)) / 2);
  scroll-padding-inline: max(var(--gutter), (100vw - var(--maxw)) / 2);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.slide {
  flex: none; width: min(920px, 86vw); scroll-snap-align: start;
  border-radius: var(--radius-card); overflow: hidden; position: relative; isolation: isolate;
  background: linear-gradient(180deg, #131726 0%, #0d101b 100%); color: #fff;
  border: 1px solid rgb(255 255 255 / 0.08);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px) 0;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0.52; transform: scale(0.94);
  transition: opacity 600ms ease, transform 700ms var(--ease-out);
}
.slide.is-active { opacity: 1; transform: none; }
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.9) 0.9px, transparent 1.3px);
  background-size: 5px 5px;
  -webkit-mask-image: radial-gradient(70% 40% at 50% 108%, #000, transparent 70%), radial-gradient(26% 30% at 4% 6%, #000, transparent);
          mask-image: radial-gradient(70% 40% at 50% 108%, #000, transparent 70%), radial-gradient(26% 30% at 4% 6%, #000, transparent);
  opacity: 0.3;
}
.media {
  --mh: clamp(230px, 34vw, 420px);
  width: 100%; height: var(--mh);
  display: flex; align-items: center; justify-content: center;
}
.media video {
  max-width: 100%; max-height: 100%;
  border-radius: 18px; background: #000;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 30px 70px rgb(0 0 0 / 0.55);
  transform: translateY(18px);
  transition: transform 900ms var(--ease-out) 120ms;
}
.slide.is-active .media video { transform: none; }
.media-wide video {
  aspect-ratio: 976 / 410;
  width: min(580px, 100%);
  height: auto;
}
.media-full video { aspect-ratio: 16 / 9; height: var(--mh); width: auto; }
.media-lock video { aspect-ratio: 1600 / 1034; }
.slide-cap { margin: 0; padding: 28px 8px 36px; text-align: center; font-size: clamp(16px, 1.6vw, 19px); color: rgb(255 255 255 / 0.75); max-width: 640px; text-wrap: pretty; }
.slide-cap b { color: #fff; font-weight: 600; }
@media (max-width: 640px) {
  .media { height: auto; }
  .media-wide { border-radius: 14px; }
  .media-full video { width: 100%; height: auto; }
}

.rail-controls { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dots-wrap { display: flex; align-items: center; gap: 4px; padding: 6px 18px 6px 6px; background: #e6e7ef; border-radius: 999px; }
.playpause { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.playpause:hover { background: rgb(17 19 29 / 0.08); }
.playpause:active { transform: scale(0.92); }
.playpause svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.playpause .i-play { opacity: 0; transform: scale(0.6); }
.playpause.paused .i-play { opacity: 1; transform: none; }
.playpause.paused .i-pause { opacity: 0; transform: scale(0.6); }
.dots { display: flex; gap: 8px; align-items: center; }
.dots button {
  position: relative; overflow: hidden;
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px;
  background: #a3a8bd; cursor: pointer;
  transition: width 500ms var(--ease-out), background-color 300ms ease;
}
.dots button::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.dots button[aria-selected="true"] { width: 52px; background: #c5c9da; }
.arrows { display: flex; gap: 12px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #e6e7ef; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: opacity 200ms ease, transform 160ms var(--ease-out), background-color 160ms ease; }
.arrow:hover { background: #dbdde7; }
.arrow svg { width: 20px; height: 20px; }
.arrow:active { transform: scale(0.94); }

/* ---------- Feature grid ---------- */
.grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border-radius: var(--radius-tile); padding: 30px; transition: transform 300ms var(--ease-out), box-shadow 300ms ease; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgb(17 19 29 / 0.08); }
  .tile:hover .tile-icon { transform: rotate(-6deg) scale(1.06); }
}
.tile-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--ultra); color: #fff; display: grid; place-items: center; transition: transform 400ms var(--ease-out); }
.tile-icon svg { width: 26px; height: 26px; }
.tile h3 { margin: 24px 0 6px; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--ink-2); }
.tile-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; }
.tile-wide .tile-icon { flex: none; }
.tile-wide h3 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tile-wide p { max-width: 62ch; }
.tile-new { padding: 4px 10px; border-radius: 999px; background: var(--ultra); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .tile-wide { flex-direction: column; align-items: flex-start; gap: 0; }
  .tile-wide h3 { margin-top: 24px; }
}

/* ---------- Install ---------- */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; border-radius: var(--radius-tile); padding: 28px; }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--ultra); color: #fff; display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 20px 0 6px; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.terminal { margin-top: 20px; background: var(--shadow-ink); color: #fff; border-radius: var(--radius-tile); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: rgb(255 255 255 / 0.06); }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: rgb(255 255 255 / 0.22); }
.term-bar span { margin-left: 10px; font-size: 13px; color: rgb(255 255 255 / 0.55); }
.term-body { position: relative; padding: 22px 24px 26px; font-family: var(--font-mono); font-size: 15px; overflow-x: auto; }
.term-body p { margin: 4px 0; white-space: nowrap; padding-right: 96px; }
.term-body .muted { color: rgb(255 255 255 / 0.45); }
.prompt { color: #93c5fd; }
.copy { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); border: 0; border-radius: 999px; padding: 8px 16px; background: rgb(255 255 255 / 0.14); color: #fff; font: 500 13px var(--font-text); cursor: pointer; transition: background-color 160ms ease; }
.copy:hover { background: rgb(255 255 255 / 0.24); }
@media (max-width: 720px) {
  .term-body { padding: 16px 16px 18px; font-size: clamp(11.5px, 3vw, 13.5px); }
  .term-body p { padding-right: 0; }
  .term-body .muted { white-space: normal; margin-bottom: 6px; }
  .term-body p:not(.muted) { white-space: normal; overflow-wrap: anywhere; padding-left: 1.2em; text-indent: -1.2em; }
  .copy { position: static; transform: none; display: block; width: 100%; margin-top: 16px; padding: 10px 16px; text-align: center; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; display: grid; gap: 10px; }
.faq details {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 150ms var(--ease-out), box-shadow 420ms ease;
}
.faq details.is-open { box-shadow: 0 14px 36px rgb(17 19 29 / 0.08); }
.faq details.is-pressed,
.faq details:has(summary:active) { transform: scale(0.985); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  transition: color 200ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus { outline: none; }
.faq summary:focus-visible { outline: 2px solid var(--ultra); outline-offset: -6px; border-radius: 14px; }
@media (hover: hover) {
  .faq summary:hover { color: var(--ultra); }
}
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  line-height: 1;
  text-align: center;
  font-size: 26px;
  font-weight: 400;
  color: var(--ultra);
  transition: transform 440ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq details.is-open summary::after,
html:not(.js) .faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); }
.faq a { color: var(--ultra); }

/* ---------- Final CTA ---------- */
.final { padding: 0 var(--gutter) clamp(80px, 10vw, 120px); }
.final-card {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: var(--maxw); margin: 0 auto; border-radius: 36px; text-align: center; color: #fff;
  padding: clamp(64px, 9vw, 110px) var(--gutter);
  background: radial-gradient(80% 70% at 50% 0%, rgb(37 99 235 / 0.45), transparent 70%), linear-gradient(180deg, #12172a, var(--deep));
}
.final-card .stipple { z-index: -1; -webkit-mask-image: radial-gradient(60% 50% at 50% 110%, #000, transparent); mask-image: radial-gradient(60% 50% at 50% 110%, #000, transparent); opacity: 0.35; }
.final-icon { margin: 0 auto 28px; border-radius: 20px; box-shadow: 0 20px 50px rgb(0 0 0 / 0.55); }
.final-card p { margin: 16px 0 0; font-size: 20px; color: rgb(255 255 255 / 0.8); }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 48px; border-top: 1px solid rgb(17 19 29 / 0.08); font-size: 14px; color: var(--ink-3); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { margin-right: 0; color: var(--ink); }
.footer .brand img { border-radius: 6px; }
.footer p { margin: 0; flex: 1; min-width: 240px; }
.footer-links { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ultra); }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(0.985);
  transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .faq details.is-pressed,
  .faq details:has(summary:active) { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .slide { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
