/* ==========================================================================
   MetalSharp — "Liquid Metal"
   One stylesheet for the landing page and the generated docs page.
   Identity comes from the app icon: brushed chrome with a blue → cyan →
   violet iridescence over near-black ink.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --ink-0: #05060a;
  --ink-1: #090b12;
  --ink-2: #0e1119;
  --ink-3: #151926;
  --line: rgba(170, 190, 255, 0.1);
  --line-strong: rgba(170, 190, 255, 0.2);

  --text: #e9edf7;
  --text-soft: #b9c1d4;
  --muted: #8e97ad;
  --dim: #737c94;

  --blue: #3d7bff;
  --cyan: #5fe1ff;
  --violet: #9b7bff;
  --steel: #c9d2e3;
  --mint: #6ff0b5;
  --amber: #ffb86b;

  --chrome: linear-gradient(100deg, #f4f7ff 0%, #a9b9d8 16%, #5fe1ff 30%, #3d7bff 44%, #eef2fb 56%, #9b7bff 72%, #dfe6f6 86%, #f4f7ff 100%);
  --chrome-soft: linear-gradient(135deg, #f4f7ff, #b6c4e2 40%, #c7b8ff 70%, #9fe9ff);
  --spectrum: linear-gradient(90deg, var(--cyan), var(--blue) 45%, var(--violet));

  --font-display: "Bricolage Grotesque", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-body: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 8vw, 7rem);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Registered so the route stage can animate them instead of snapping. */
@property --accent { syntax: "<color>"; inherits: true; initial-value: #5fe1ff; }
@property --gx { syntax: "<percentage>"; inherits: true; initial-value: 45%; }
@property --gy { syntax: "<percentage>"; inherits: true; initial-value: 30%; }

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* fine film grain over everything, very low contrast */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #a9f0ff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(95, 225, 255, 0.28); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

code, kbd, pre { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink-0);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* chrome text treatment, reused for display accents */
.chrome-text,
.hero h1 em,
.section-title em,
.finale h2 em,
.docs-hero h1 em {
  background: var(--chrome);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-ghost {
  --pad-y: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--pad-y) 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-position 0.8s var(--ease-out), border-color 0.25s, color 0.25s;
}

.btn-primary {
  position: relative;
  color: #04060c;
  background: var(--chrome-soft);
  background-size: 200% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(30, 50, 110, 0.35),
    0 10px 30px -10px rgba(95, 225, 255, 0.55),
    0 2px 0 rgba(0, 0, 0, 0.4);
}
.btn-primary:hover {
  color: #04060c;
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(30, 50, 110, 0.35),
    0 18px 44px -12px rgba(155, 123, 255, 0.7),
    0 2px 0 rgba(0, 0, 0, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(95, 225, 255, 0.55);
  background: rgba(95, 225, 255, 0.06);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(5, 6, 10, 0.55);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-nav.is-scrolled {
  background: rgba(5, 6, 10, 0.78);
  border-bottom-color: var(--line);
}
.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.nav-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--spectrum);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  opacity: 0.9;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: #fff; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 12px rgba(95, 225, 255, 0.35)); }
.brand small {
  margin-left: 0.4rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links .nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.05rem;
  color: #04060c;
  background: var(--chrome-soft);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 20px -8px rgba(95, 225, 255, 0.6);
}
.nav-links .nav-cta:hover { color: #04060c; background: var(--chrome-soft); filter: brightness(1.08); }
.nav-cta-version { font-family: var(--font-mono); font-size: 0.82em; opacity: 0.75; }

/* ---------- Section scaffolding ---------- */
section { position: relative; }

.section-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-eyebrow::before,
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--spectrum);
}

.section-head {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.section-head--split {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--space-4);
}
.section-head .section-eyebrow { margin-bottom: var(--space-2); }

.section-title {
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-variation-settings: "opsz" 96;
}
.section-title em,
.finale h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.06em;
}

.section-lede {
  max-width: 36rem;
  color: var(--text-soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 6vh, 5rem) var(--space-3);
  isolation: isolate;
  overflow: hidden;
}

.hero-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 18% 52%, rgba(5, 6, 10, 0.92) 0%, rgba(5, 6, 10, 0.55) 55%, transparent 80%),
    radial-gradient(50% 60% at 78% 50%, rgba(61, 123, 255, 0.16), transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--ink-0));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-3);
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(14, 17, 25, 0.6);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}
.hero-meta i { font-style: normal; color: var(--dim); }
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(95, 225, 255, 0.6);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 225, 255, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(95, 225, 255, 0); }
}

/* The headline lines don't wrap, so cap the size by the copy column (cqi)
   as well as the viewport: a larger browser default font grows the rem
   bound past the column, and the clipped gradient text would vanish. */
.hero-copy { container-type: inline-size; }
.hero h1 {
  --h1-size: clamp(3.2rem, 6.1vw, 6.4rem);
  display: flex;
  flex-direction: column;
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-variation-settings: "opsz" 96, "wdth" 92;
}
.hero h1 .h1-line { display: block; white-space: nowrap; }
.hero h1 em {
  display: block;
  margin-top: 0.06em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  line-height: 0.98;
  white-space: nowrap;
  letter-spacing: -0.02em;
  padding-right: 0.08em;
  animation: sheen 9s var(--ease-io) infinite alternate;
  filter: drop-shadow(0 6px 30px rgba(61, 123, 255, 0.35));
}
@supports (font-size: 1cqi) {
  .hero h1 { font-size: min(var(--h1-size), 18.5cqi); }
}
@keyframes sheen {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}

/* staged entrance */
.js .hero h1 .h1-line,
.js .hero h1 em,
.js .hero-lede,
.js .hero-actions,
.js .brew,
.js .hero-meta {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1s var(--ease-out) forwards;
}
.js .hero-meta { animation-delay: 0.05s; }
.js .hero h1 .h1-line:nth-child(1) { animation-delay: 0.12s; }
.js .hero h1 .h1-line:nth-child(2) { animation-delay: 0.2s; }
.js .hero h1 em { animation: rise 1.1s var(--ease-out) 0.3s forwards, sheen 9s var(--ease-io) 1.4s infinite alternate; }
.js .hero-lede { animation-delay: 0.42s; }
.js .hero-actions { animation-delay: 0.5s; }
.js .hero .brew { animation-delay: 0.58s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-lede {
  max-width: 33rem;
  margin-top: var(--space-3);
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-4);
}

/* Homebrew command chip */
.brew {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  margin-top: var(--space-3);
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 11, 18, 0.75);
  font-size: 0.82rem;
}
.brew-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.brew code {
  overflow-x: auto;
  white-space: nowrap;
  color: var(--steel);
  scrollbar-width: none;
}
.copy-btn {
  flex: none;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--ink-3);
  color: var(--text-soft);
  font: 500 0.75rem var(--font-mono);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.copy-btn:hover { color: var(--text); border-color: rgba(95, 225, 255, 0.5); }
.copy-btn.is-copied { color: var(--ink-0); background: var(--mint); border-color: var(--mint); }

/* screenshot window with a 3D tilt that flattens as you scroll */
.hero-visual {
  position: relative;
  perspective: 1600px;
}
.hero-window {
  --p: 0;
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  transform:
    rotateY(calc(-14deg * (1 - var(--p))))
    rotateX(calc(6deg * (1 - var(--p))))
    translateZ(0)
    scale(calc(0.96 + 0.04 * var(--p)));
  transform-origin: 30% 50%;
  box-shadow:
    0 0 0 1px rgba(200, 215, 255, 0.14),
    0 40px 100px -30px rgba(0, 0, 0, 0.9),
    -30px 30px 120px -40px rgba(61, 123, 255, 0.55),
    30px -20px 120px -50px rgba(155, 123, 255, 0.45);
  transition: transform 0.12s linear;
  will-change: transform;
}
.hero-window::before {
  /* specular edge */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: var(--chrome);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}
.hero-window::after {
  /* glass glare that slides with scroll */
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 1;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.09) 48%, transparent 56%);
  transform: translateX(calc(-30% + 60% * var(--p)));
  pointer-events: none;
}
.window-image { width: 100%; }

.hero-reflection {
  position: absolute;
  left: 8%; right: 8%;
  bottom: -60px;
  height: 80px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(95, 225, 255, 0.35), transparent 70%);
  filter: blur(30px);
  opacity: calc(0.4 + 0.6 * var(--p, 0));
  pointer-events: none;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(2rem, 5vh, 4rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.hero-facts li {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 1.25rem 0 0;
}
.hero-facts li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.hero-facts strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.hero-facts span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Marquee ---------- */
.marquee-section {
  padding-block: var(--space-4) var(--space-5);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(61, 123, 255, 0.05), transparent 40%, rgba(155, 123, 255, 0.05)),
    var(--ink-0);
  overflow: hidden;
}
.marquee {
  display: grid;
  gap: 0.4rem;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-row {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-row--reverse { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.marquee li {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 210, 227, 0.32);
  transition: color 0.3s;
}
.marquee li::after {
  content: "";
  width: 0.28em;
  height: 0.28em;
  margin-inline: 0.55em;
  border-radius: 50%;
  background: var(--chrome-soft);
  opacity: 0.6;
}
.marquee-row--reverse li:nth-child(3n + 1),
.marquee-row li:nth-child(4n + 2) {
  -webkit-text-stroke: 0;
  background: var(--chrome);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: var(--space-3);
  font-size: 0.95rem;
  color: var(--muted);
}
.marquee-caption a { font-weight: 600; text-decoration: none; }

/* ---------- Showcase ---------- */
.showcase-section { padding-block: var(--space-6); }
.showcase-frame { position: relative; }
.device {
  position: relative;
  width: min(100%, 776px);
  margin-inline: auto;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1e2b, #0c0f17);
  box-shadow:
    0 0 0 1px rgba(200, 215, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 60px 140px -50px rgba(61, 123, 255, 0.5),
    0 40px 90px -40px rgba(0, 0, 0, 0.95);
}
.device::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--chrome);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--line);
}
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.device-bar i:nth-child(2) { background: #febc2e; }
.device-bar i:nth-child(3) { background: #28c840; }
.device-bar span {
  margin-left: 12px;
  padding: 3px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.device-bar b {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}
.app-demo-viewport {
  position: relative;
  overflow: hidden;
}
.app-demo-frame {
  border: 0;
  display: block;
  background: var(--ink-1);
}
.demo-mobile-note {
  display: none;
  margin-top: var(--space-2);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--ink-1);
  font-size: 0.95rem;
  color: var(--text-soft);
}
.demo-mobile-note a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- Routes ---------- */
.pipeline-section {
  padding-block: var(--space-6);
  background:
    radial-gradient(40% 50% at 15% 30%, rgba(61, 123, 255, 0.08), transparent 70%),
    radial-gradient(40% 40% at 90% 80%, rgba(155, 123, 255, 0.07), transparent 70%);
}
.pipeline-section .section-lede a { font-weight: 600; }

.routes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.route-stage {
  --accent: var(--cyan);
  --gx: 45%;
  --gy: 30%;
  position: sticky;
  top: calc(var(--nav-h) + 5vh);
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.1rem, 2.4vw, 1.9rem);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, #0d1018, #07090f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px var(--line-strong),
    0 60px 120px -60px color-mix(in srgb, var(--accent) 45%, transparent),
    0 50px 100px -60px rgba(0, 0, 0, 0.95);
  transition:
    --accent 0.9s var(--ease-out),
    --gx 1.1s var(--ease-out),
    --gy 1.1s var(--ease-out);
}
.route-stage::before {
  /* chrome hairline edge */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 70%, #fff), transparent 30%, transparent 70%, rgba(155, 123, 255, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

/* background art */
.stage-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stage-aurora {
  position: absolute;
  left: 18%; top: -20%;
  width: 90%; aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), transparent 22%, var(--blue) 38%, transparent 55%, var(--violet) 72%, transparent 88%, var(--accent));
  filter: blur(70px);
  opacity: 0.32;
  animation: aurora 26s linear infinite;
}
@keyframes aurora { to { transform: rotate(1turn); } }
.stage-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(42% 22% at var(--gx) var(--gy), color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
}
.stage-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 215, 255, 0.16) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask: radial-gradient(80% 70% at 45% 45%, #000 20%, transparent 80%);
  mask: radial-gradient(80% 70% at 45% 45%, #000 20%, transparent 80%);
}
.stage-mark {
  position: absolute;
  left: -14%; bottom: -22%;
  width: 62%;
  opacity: 0.09;
  transform: rotate(-14deg);
  filter: saturate(0.6) blur(0.5px);
}

.stage-head {
  display: grid;
  grid-template-columns: 22% 33% 1fr;
  margin: 0 0 0.4rem;
  padding: 0 0.2rem 0.65rem;
  border-bottom: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.stage-head span:nth-child(2) { padding-left: 6%; }
.stage-head span:last-child { text-align: right; }

.route-map { position: relative; width: 100%; height: auto; overflow: visible; }
.route-map .link {
  fill: none;
  stroke: rgb(170, 190, 255);
  stroke-opacity: 0.12;
  stroke-width: 1.4;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  animation: flow 0.9s linear infinite;
  transition: stroke-opacity 0.7s var(--ease-out), stroke-width 0.7s var(--ease-out);
}
.route-map .link.on {
  stroke: var(--accent);
  stroke-opacity: 1;
  stroke-width: 2;
  filter: url(#glow);
}
@keyframes flow { to { stroke-dashoffset: -18; } }
.route-map .node rect {
  fill: rgba(10, 12, 19, 0.88);
  stroke: rgba(170, 190, 255, 0.14);
  stroke-width: 1;
  transition: stroke 0.7s var(--ease-out), fill 0.7s var(--ease-out);
}
.route-map .node text {
  fill: var(--dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-anchor: middle;
  letter-spacing: 0.02em;
  transition: fill 0.7s var(--ease-out);
}
.route-map .node.on rect {
  fill: color-mix(in srgb, var(--accent) 16%, #0a0c13);
  stroke: var(--accent);
  filter: url(#glow);
}
.route-map .node.on text { fill: #fff; }
.route-map .spill { opacity: 0.9; }
.route-map .metal text {
  fill: #0a0d16;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-anchor: middle;
}
.route-map .metal > rect:first-child { filter: drop-shadow(0 0 22px rgba(95, 225, 255, 0.4)); }
.route-map .spark { fill: #fff; filter: url(#glow); }
.route-map .flow { opacity: 0; transition: opacity 0.6s var(--ease-out); }
.route-map .flow.is-in { opacity: 1; }
.route-map .hit {
  fill: var(--accent);
  filter: url(#glow);
  animation: hit 1.8s var(--ease-out) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes hit {
  0% { opacity: 1; transform: scale(0.6); }
  60%, 100% { opacity: 0; transform: scale(2.4); }
}

.route-stage-label > span { transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out); }
.route-stage-label.is-swapping > span { opacity: 0; transform: translateY(6px); }
.route-stage-label {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--line-strong);
}
.route-stage-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}
.route-stage-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}
.route-stage-kind {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pipeline-grid {
  display: grid;
  gap: 0;
  counter-reset: route;
}
.pipeline-card {
  --accent: var(--cyan);
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(1.6rem, 3vw, 2.4rem) 1.75rem;
  border-left: 1px solid var(--line);
  outline: none;
  cursor: default;
  transition: border-color 0.4s;
}
.pipeline-card::before {
  content: "";
  position: absolute;
  left: -1px; top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.6s var(--ease-out);
  box-shadow: 0 0 18px var(--accent);
}
.pipeline-card.is-active::before { transform: scaleY(1); }
.pipeline-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.pipeline-card--metal { --accent: var(--cyan); }
.pipeline-card[data-route="dxmt32"] { --accent: #7fb4ff; }
.pipeline-card--legacy { --accent: var(--amber); }
.pipeline-card--vulkan { --accent: var(--violet); }
.pipeline-card--gptk { --accent: #e8eefc; }
.pipeline-card--mono { --accent: var(--mint); }

.pipeline-topline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pipeline-index { color: var(--accent); }
.pipeline-kind { color: var(--muted); }
.pipeline-card h3 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  color: var(--text-soft);
  transition: color 0.4s;
}
.pipeline-card.is-active h3 { color: var(--text); }
.pipeline-card p {
  max-width: 34rem;
  margin-top: 0.7rem;
  color: var(--muted);
  transition: color 0.4s;
}
.pipeline-card.is-active p { color: var(--text-soft); }

.pipeline-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}
.pipeline-flow li {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-soft);
  background: rgba(14, 17, 25, 0.6);
}
.pipeline-flow li + li::before {
  content: "→";
  margin-right: 0.55rem;
  margin-left: -0.2rem;
  color: var(--accent);
}
.pipeline-flow li + li { border-color: transparent; background: none; padding-left: 0.1rem; }
.pipeline-flow li:last-child {
  padding: 0.3rem 0.7rem;
  border: 0;
  color: #04060c;
  background: var(--chrome-soft);
  font-weight: 500;
}
.pipeline-flow li:last-child::before { color: #04060c; margin-right: 0.4rem; }

/* ---------- Features ---------- */
.features-section { padding-block: var(--space-6); }

.essentials-video { margin: 0 0 var(--space-4); }
.essentials-video-frame {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow:
    0 0 0 1px rgba(200, 215, 255, 0.14),
    0 60px 140px -60px rgba(155, 123, 255, 0.5),
    0 40px 90px -40px rgba(0, 0, 0, 0.95);
}
.essentials-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.essentials-sound-toggle {
  position: absolute;
  right: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.6);
  backdrop-filter: blur(10px);
  color: var(--text);
  font: 500 0.8rem var(--font-mono);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.essentials-sound-toggle:hover { background: rgba(5, 6, 10, 0.85); border-color: rgba(95, 225, 255, 0.5); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bento-cell {
  --mx: 50%;
  --my: 50%;
  --tint: 95, 225, 255;
  position: relative;
  grid-column: span 2;
  display: grid;
  grid-template-rows: 230px auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(460px circle at var(--mx) var(--my), rgba(var(--tint), 0.09), transparent 45%),
    linear-gradient(180deg, var(--ink-2), var(--ink-1));
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}
.bento-cell:hover { border-color: rgba(var(--tint), 0.35); }
.bento-cell--stores { grid-column: span 4; grid-template-rows: 280px auto; }
.bento-cell--emu { grid-column: span 2; grid-template-rows: 280px auto; --tint: 155, 123, 255; }
.bento-cell--bottles { --tint: 111, 240, 181; }
.bento-cell--sharp { --tint: 61, 123, 255; }
.bento-cell--art { --tint: 255, 184, 107; }

.bento-art {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(var(--tint), 0.16), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 12px),
    #07090f;
}
.bento-text {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
}
.bento-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--tint));
}
.bento-cell h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 700; }
.bento-cell p { color: var(--muted); font-size: 0.98rem; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
}

/* Stores: covers fanned on a lit shelf */
.shelf-fan {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 0;
  height: 0;
}
.shelf-fan span {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 128px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 40px -12px rgba(0, 0, 0, 0.9);
  transform-origin: 50% 160%;
  transform:
    translateX(-50%)
    rotate(calc(var(--i) * 9deg))
    translateY(calc(var(--ai) * 6px));
  transition: transform 0.7s var(--ease-out);
  z-index: calc(10 - var(--ai));
}
.shelf-fan img { width: 100%; height: 100%; object-fit: cover; }
.shelf-fan span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.28), transparent 35%);
  mix-blend-mode: overlay;
}
.bento-cell--stores:hover .shelf-fan span {
  transform:
    translateX(calc(-50% + var(--i) * 74px))
    rotate(calc(var(--i) * 4deg))
    translateY(calc(var(--ai) * 2px - 10px));
}
.shelf-line {
  position: absolute;
  z-index: 20;
  left: 10%; right: 10%;
  bottom: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--chrome);
  box-shadow: 0 0 24px rgba(95, 225, 255, 0.7), 0 8px 40px 6px rgba(61, 123, 255, 0.35);
}
.shelf-line::after {
  /* the lip in front of the covers */
  content: "";
  position: absolute;
  left: -12%; right: -12%;
  top: 2px;
  height: 40px;
  background: linear-gradient(180deg, rgba(14, 17, 26, 0.98), #07090f 70%);
}
.shelf-tags { margin-top: 0.75rem; }

/* Emulators: iridescent disc with orbiting cores */
.disc-art { display: grid; place-items: center; }
.disc {
  position: relative;
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #07090f 0 12%, transparent 12.5%),
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 17%, transparent 17.5%),
    conic-gradient(from 20deg, #dfe8ff, #5fe1ff, #c9b6ff, #3d7bff, #f4f7ff, #ffb86b, #9b7bff, #6ff0b5, #dfe8ff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 20px 60px -10px rgba(155, 123, 255, 0.6);
  animation: spin 9s linear infinite;
}
.disc::after {
  /* fine grooves */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px);
  -webkit-mask: radial-gradient(circle, transparent 18%, #000 19%, #000 97%, transparent 98%);
  mask: radial-gradient(circle, transparent 18%, #000 19%, #000 97%, transparent 98%);
}
.disc-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.35));
  mix-blend-mode: overlay;
}
@keyframes spin { to { transform: rotate(1turn); } }
.orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 236px;
  height: 236px;
  border: 1px dashed rgba(200, 215, 255, 0.18);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.orbit span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: rotate(var(--a)) translateY(-118px) rotate(calc(var(--a) * -1));
}
.orbit b {
  display: block;
  translate: -50% -50%;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(155, 123, 255, 0.4);
  border-radius: 999px;
  background: rgba(9, 11, 18, 0.92);
  font: 500 0.7rem var(--font-mono);
  color: var(--text-soft);
  white-space: nowrap;
  animation: spin 40s linear infinite reverse;
}

/* Bottles: a glass settings panel */
.panel-art { display: grid; place-items: center; }
.panel {
  width: min(84%, 260px);
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 36, 52, 0.75), rgba(14, 17, 25, 0.85));
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  font-size: 0.78rem;
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease-out);
}
.bento-cell--bottles:hover .panel { transform: rotate(0) translateY(-4px); }
.panel-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.55rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid var(--line);
}
.panel-head img { width: 26px; height: 39px; border-radius: 4px; object-fit: cover; }
.panel-head span { display: grid; line-height: 1.25; }
.panel-head b { font-family: var(--font-display); font-size: 0.95rem; }
.panel-head i { font-style: normal; font-family: var(--font-mono); font-size: 0.66rem; color: var(--dim); }
.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.38rem 0.1rem;
  color: var(--text-soft);
}
.panel-select {
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(111, 240, 181, 0.45);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mint);
}
.panel-select::after { content: " ▾"; color: var(--dim); }
.toggle {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.4s;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.4s var(--ease-out);
}
.toggle.is-on,
.bento-cell--bottles:hover .toggle { background: var(--mint); }
.toggle.is-on::after,
.bento-cell--bottles:hover .toggle::after { transform: translateX(13px); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.seg i {
  padding: 0.12rem 0.45rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--dim);
}
.seg i.is-on { background: rgba(111, 240, 181, 0.18); color: var(--mint); }

/* Sharp Library: files dropping into a Wine bottle */
.bottle-art { display: grid; place-items: end center; padding-bottom: 14px; }
.wine-bottle { width: 112px; height: auto; overflow: visible; filter: drop-shadow(0 18px 30px rgba(61, 123, 255, 0.45)); }
.bottle-outline { fill: none; stroke: rgba(220, 230, 255, 0.55); stroke-width: 1.4; }
.bottle-wave { animation: wave 3.2s linear infinite; }
@keyframes wave { to { transform: translateX(60px); } }
.bottle-fill { animation: fill 6s var(--ease-io) infinite alternate; }
@keyframes fill { from { transform: translateY(8px); } to { transform: translateY(-14px); } }
.bottle-label { fill: #eaf2ff; font: 600 9px var(--font-mono); letter-spacing: 0.18em; text-anchor: middle; }
.bottle-label--sub { fill: rgba(234, 242, 255, 0.6); font-size: 7.5px; letter-spacing: 0.08em; }
.files {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.files span {
  position: absolute;
  left: 50%;
  top: 14px;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(61, 123, 255, 0.5);
  border-radius: 6px;
  background: rgba(9, 11, 18, 0.92);
  font: 500 0.7rem var(--font-mono);
  color: var(--text-soft);
  white-space: nowrap;
  opacity: 0;
  animation: drop 4.5s var(--ease-io) infinite;
}
.files span:nth-child(1) { --from: -96px; }
.files span:nth-child(2) { --from: 34px; animation-delay: 1.5s; }
.files span:nth-child(3) { --from: -40px; animation-delay: 3s; }
@keyframes drop {
  0% { opacity: 0; transform: translate(var(--from), -6px) scale(1); }
  12% { opacity: 1; }
  55% { opacity: 1; transform: translate(-50%, 34px) scale(0.92); }
  75%, 100% { opacity: 0; transform: translate(-50%, 70px) scale(0.4); }
}

/* Steam Art: covers cycling as if being picked */
.swap-art { display: grid; place-items: center; gap: 0; }
.swap-stage {
  position: relative;
  width: 112px;
  aspect-ratio: 2 / 3;
  margin-top: -18px;
  transform: rotate(4deg);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 26px 50px -16px rgba(255, 184, 107, 0.45);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out);
}
.bento-cell--art:hover .swap-stage { transform: rotate(0) scale(1.04); }
.swap-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: swap 9s infinite;
}
.swap-stage img:nth-child(2) { animation-delay: 3s; }
.swap-stage img:nth-child(3) { animation-delay: 6s; }
@keyframes swap {
  0% { opacity: 0; transform: scale(1.08); }
  6%, 33% { opacity: 1; transform: scale(1); }
  40%, 100% { opacity: 0; transform: scale(1); }
}
.swap-picker {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 6px;
  translate: -50% 0;
}
.swap-picker span {
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  animation: pick 9s infinite;
}
.swap-picker span:nth-child(2) { animation-delay: 3s; }
.swap-picker span:nth-child(3) { animation-delay: 6s; }
@keyframes pick {
  0%, 33% { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
  34%, 100% { background: rgba(255, 255, 255, 0.14); box-shadow: none; }
}

/* Streaming: the Mac beams to a phone */
.bento-cell--stream {
  grid-column: 1 / -1;
  grid-template-rows: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  align-items: stretch;
  background:
    radial-gradient(460px circle at var(--mx) var(--my), rgba(95, 225, 255, 0.09), transparent 45%),
    linear-gradient(100deg, rgba(61, 123, 255, 0.12), rgba(155, 123, 255, 0.08) 50%, transparent),
    linear-gradient(180deg, var(--ink-2), var(--ink-1));
}
.bento-cell--stream .bento-text { align-content: center; padding: clamp(1.6rem, 3vw, 2.6rem); }
.bento-cell--stream .bento-art {
  min-height: 250px;
  border-bottom: 0;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding: 1.5rem;
}
.stream-mac {
  width: min(48%, 300px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 50px -20px rgba(61, 123, 255, 0.6);
}
.stream-mac img { width: 100%; }
.stream-phone {
  width: min(30%, 190px);
  aspect-ratio: 19.5 / 9;
  padding: 5px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2a3042, #0c0f17);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 20px 40px -14px rgba(155, 123, 255, 0.6);
  transform: rotate(-6deg);
}
.stream-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.stream-waves {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
}
.stream-waves i {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-right-color: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: beam 2.1s var(--ease-out) infinite;
}
.stream-waves i:nth-child(2) { animation-delay: 0.7s; }
.stream-waves i:nth-child(3) { animation-delay: 1.4s; }
@keyframes beam {
  0% { opacity: 0; transform: scale(0.3) translateX(-10px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.3) translateX(14px); }
}

/* ---------- Docs index (landing) ---------- */
.docs-section { padding-block: var(--space-6); }
.docs-index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.docs-index a {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.1fr) minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  isolation: isolate;
  transition: padding 0.4s var(--ease-out);
}
.docs-index a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(95, 225, 255, 0.08), rgba(155, 123, 255, 0.04) 60%, transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.docs-index a:hover { padding-left: 1rem; }
.docs-index a:hover::before { opacity: 1; }
.docs-index-n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--dim); }
.docs-index-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.docs-index-desc { color: var(--muted); font-size: 0.98rem; }
.docs-index-arrow {
  justify-self: end;
  font-size: 1.3rem;
  color: var(--cyan);
  transform: translateX(-6px);
  opacity: 0.4;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.docs-index a:hover .docs-index-arrow { transform: none; opacity: 1; }

/* ---------- Download finale ---------- */
.download-section { padding-block: var(--space-5) var(--space-6); }
.finale {
  --mx: 50%;
  --my: 40%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(95, 225, 255, 0.14), transparent 50%),
    radial-gradient(80% 100% at 0% 100%, rgba(61, 123, 255, 0.18), transparent 60%),
    radial-gradient(70% 90% at 100% 0%, rgba(155, 123, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink-1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--line-strong);
}
.finale::before {
  /* engraved line field */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px);
  -webkit-mask: radial-gradient(70% 80% at 25% 50%, #000, transparent 75%);
  mask: radial-gradient(70% 80% at 25% 50%, #000, transparent 75%);
}
.finale-mark {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  width: 100%;
  margin-inline: auto;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.4s var(--ease-out);
}
.finale-mark img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(61, 123, 255, 0.45)) drop-shadow(0 0 40px rgba(155, 123, 255, 0.25));
  animation: float 7s var(--ease-io) infinite alternate;
}
.finale-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(35% 35% at var(--sx, 40%) var(--sy, 30%), rgba(255, 255, 255, 0.45), transparent 70%);
  mix-blend-mode: overlay;
  -webkit-mask: url("assets/icon.png") center / contain no-repeat;
  mask: url("assets/icon.png") center / contain no-repeat;
  pointer-events: none;
  animation: float 7s var(--ease-io) infinite alternate;
}
@keyframes float {
  from { transform: translateY(-8px); }
  to { transform: translateY(8px); }
}
.finale-copy { display: grid; gap: var(--space-2); justify-items: start; }
.finale h2 {
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.finale-copy > p { max-width: 34rem; color: var(--text-soft); font-size: 1.1rem; }
.download-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-1); }
.finale .brew { margin-top: 0; }
.release-facts {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 0 1.75rem;
  margin: var(--space-2) 0 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  width: 100%;
}
.release-facts div { display: grid; gap: 0.15rem; }
.release-facts dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.release-facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: var(--space-6);
}
.faq-intro h2 {
  margin-top: var(--space-2);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -0.04em;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.35s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-list details p { padding: 0 0 1.4rem; max-width: 40rem; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  background: var(--ink-0);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.footer-brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--dim);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: var(--text-soft); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); }
.footer-word {
  margin: var(--space-3) 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 17vw, 16rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(201, 210, 227, 0.16), rgba(201, 210, 227, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .bento [data-reveal]:nth-child(2) { transition-delay: 0.06s; }
.js .bento [data-reveal]:nth-child(3) { transition-delay: 0.1s; }
.js .bento [data-reveal]:nth-child(4) { transition-delay: 0.14s; }
.js .bento [data-reveal]:nth-child(5) { transition-delay: 0.18s; }
.js .bento [data-reveal]:nth-child(6) { transition-delay: 0.22s; }

/* ==========================================================================
   Docs page
   ========================================================================== */
.docs-page .site-nav { position: sticky; }

.docs-navmenu { display: none; position: relative; }
.docs-navmenu > details > summary {
  list-style: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.docs-navmenu > details > summary::-webkit-details-marker { display: none; }
.docs-navmenu .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(86vw, 320px);
  max-height: 70vh;
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: rgba(9, 11, 18, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9);
}
.docs-navmenu .cat summary {
  padding: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  cursor: pointer;
}
.docs-navmenu ul { margin: 0 0 0.5rem; padding: 0; list-style: none; }
.docs-navmenu li a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--text-soft);
  text-decoration: none;
}
.docs-navmenu li a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

.docs-hero {
  padding-block: clamp(4rem, 10vh, 7rem) var(--space-4);
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(155, 123, 255, 0.14), transparent 70%),
    radial-gradient(40% 70% at 10% 10%, rgba(61, 123, 255, 0.12), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.docs-hero .container { position: relative; }
.docs-hero .container::after {
  content: "";
  position: absolute;
  right: var(--gutter);
  top: 50%;
  width: clamp(220px, 28vw, 400px);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(-8deg);
  background: url("assets/icon.png") center / contain no-repeat;
  opacity: 0.55;
  filter: drop-shadow(0 30px 60px rgba(61, 123, 255, 0.4));
  -webkit-mask: linear-gradient(200deg, #000 30%, transparent 85%);
  mask: linear-gradient(200deg, #000 30%, transparent 85%);
  pointer-events: none;
}
@media (max-width: 960px) { .docs-hero .container::after { display: none; } }
/* Same column cap as the landing hero: "Documentation" can't wrap. */
.docs-hero .container { container-type: inline-size; }
.docs-hero h1 {
  --h1-size: clamp(2.8rem, 6.5vw, 5.8rem);
  margin-top: var(--space-3);
  font-size: var(--h1-size);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
}
@supports (font-size: 1cqi) {
  .docs-hero h1 { font-size: min(var(--h1-size), 15cqi); }
}
.docs-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.docs-hero-lede { max-width: 40rem; margin-top: var(--space-3); color: var(--text-soft); font-size: 1.15rem; }
.docs-hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-3); }
.docs-hero-meta span {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-soft);
}

.docs-intent { padding-block: var(--space-5) var(--space-3); }
.docs-intent-head h2 { margin-top: var(--space-2); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; }
.docs-intent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: var(--space-4);
}
.docs-intent-grid a {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.15rem 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  color: var(--text);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}
.docs-intent-grid a:hover { transform: translateY(-3px); border-color: rgba(95, 225, 255, 0.45); }
.docs-intent-grid strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.02em; }
.docs-intent-grid span:last-child { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.intent-index { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); }

.docs-pipeline-overview { padding-block: var(--space-3) var(--space-5); }
.docs-overview-head { display: grid; gap: var(--space-2); max-width: 52rem; }
.docs-overview-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
.docs-overview-head p { color: var(--text-soft); }
.docs-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: var(--space-4);
}
.docs-pipeline-card {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-top: 2px solid transparent;
  border-image: none;
  border-radius: var(--radius-m);
  background:
    linear-gradient(var(--ink-1), var(--ink-1)) padding-box,
    linear-gradient(90deg, var(--cyan), var(--violet)) border-box;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out);
}
.docs-pipeline-card:hover { transform: translateY(-3px); }
.docs-pipeline-card strong { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.03em; }
.docs-pipeline-card span { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.docs-pipeline-card code { font-size: 0.72rem; color: var(--cyan); }

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: var(--space-6);
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow: auto;
  padding-right: 0.5rem;
}
.docs-sidebar .cat { margin-bottom: var(--space-3); }
.docs-sidebar .cat > span {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.docs-sidebar ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.docs-sidebar li a {
  position: relative;
  display: block;
  padding: 0.42rem 0 0.42rem 1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.docs-sidebar li a:hover { color: var(--text); }
.docs-sidebar li a.active {
  color: var(--text);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(95, 225, 255, 0.08), transparent);
}

.doc-section { scroll-margin-top: calc(var(--nav-h) + 16px); }
.doc-section + .doc-section { margin-top: 12px; }
.doc-entry {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, var(--ink-1), var(--ink-0));
  transition: border-color 0.3s;
}
.doc-entry[open] { border-color: var(--line-strong); }
.doc-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
  padding: 1.3rem 3.4rem 1.3rem 1.5rem;
  cursor: pointer;
  list-style: none;
}
.doc-head::-webkit-details-marker { display: none; }
.doc-head::after {
  content: "";
  position: absolute;
  right: 1.5rem; top: 1.65rem;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease-out);
}
.doc-entry[open] > .doc-head::after { transform: rotate(-135deg) translate(-4px, -4px); }
.doc-head .kind {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.doc-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 750; letter-spacing: -0.035em; }
.doc-head h2 a { color: var(--text); text-decoration: none; }
.doc-head .desc { grid-column: 1; color: var(--muted); font-size: 0.98rem; }
.doc-head .doc-meta {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
  white-space: nowrap;
}
.doc-quick-start {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0 1.5rem 0.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-s);
  background: linear-gradient(90deg, rgba(95, 225, 255, 0.09), rgba(155, 123, 255, 0.05));
  border: 1px solid rgba(95, 225, 255, 0.2);
  color: var(--text-soft);
  font-size: 0.98rem;
}
.doc-quick-start strong { color: var(--cyan); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; align-self: center; }
.doc-back-link { padding: 0 1.5rem 1.5rem; font-size: 0.9rem; }
.doc-back-link a { color: var(--muted); text-decoration: none; }
.doc-back-link a:hover { color: var(--cyan); }

/* rendered markdown */
.md {
  padding: 0.5rem 1.5rem 1.5rem;
  max-width: 76ch;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.72;
}
.md > * + * { margin-top: 1em; }
.md h3 {
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.md h4 { margin-top: 1.8em; color: var(--text); font-size: 1.12rem; font-weight: 650; letter-spacing: -0.015em; }
.md h5, .md h6 { margin-top: 1.5em; color: var(--text); font-family: var(--font-body); font-size: 1rem; }
.md strong { color: var(--text); font-weight: 600; }
.md ul, .md ol { padding-left: 1.3rem; }
.md li + li { margin-top: 0.35em; }
.md li::marker { color: var(--cyan); }
.md a { color: var(--cyan); }
.md code {
  overflow-wrap: break-word;
  padding: 0.12em 0.4em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink-2);
  color: #cfe9ff;
  font-size: 0.86em;
}
.md pre {
  position: relative;
  overflow-x: auto;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #070910;
  box-shadow: inset 3px 0 0 -1px rgba(95, 225, 255, 0.5);
  font-size: 0.86rem;
  line-height: 1.6;
}
.md pre code { padding: 0; border: 0; background: none; color: var(--steel); font-size: inherit; }
.md table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}
.md th, .md td { padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.md th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
  white-space: nowrap;
}
.md tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.md blockquote { margin-inline: 0; padding-left: 1rem; border-left: 2px solid var(--violet); color: var(--muted); }
.md img { border-radius: var(--radius-s); border: 1px solid var(--line); display: inline-block; vertical-align: top; margin: 0.25rem 0.25rem 0.25rem 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.md kbd {
  padding: 0.1em 0.45em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--ink-2);
  font-size: 0.85em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); }
  .hero-visual { margin-right: calc((min(100vw, 1360px) - var(--container)) / -2 + 20px); }
}

@media (max-width: 1100px) {
  .docs-intent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento-cell,
  .bento-cell--emu { grid-column: span 3; }
  .bento-cell--stores,
  .bento-cell--stream { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-grid,
  .routes,
  .finale,
  .faq-layout,
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; }
  .hero-visual { margin-top: var(--space-2); }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(n + 3) { margin-top: 0.8rem; }
  .route-stage { display: none; }
  .pipeline-card::before { transform: scaleY(1); }
  .pipeline-card h3,
  .pipeline-card p { color: var(--text); }
  .pipeline-card p { color: var(--text-soft); }
  .finale-mark { max-width: 260px; }
  .release-facts { grid-template-columns: repeat(3, auto); gap: 0.8rem 1.5rem; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-sidebar { display: none; }
  .docs-navmenu { display: block; }
  .docs-page .nav-links li:not(.primary-docs-link):not(:last-child) { display: none; }
}

/* Only reachable with a larger default font (312px at 16px): keep the icon,
   drop the wordmark so the Download pill still fits. */
@media (max-width: 19.5em) {
  .brand { font-size: 0; }
}
/* em, not px: media-query ems follow the browser's default font size, so a
   larger default collapses the rem-sized nav before it overflows. At the
   stock 16px this is the same 720px as the block below. */
@media (max-width: 45em) {
  .nav-links li:not(:last-child) { display: none; }
  .docs-page .nav-links { display: none; }
  .brand small { display: none; }
}

@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  body { font-size: 1rem; }
  .hero h1 { --h1-size: clamp(2.9rem, 14vw, 4.2rem); }
  .hero-window { transform: none; }
  .brew { width: 100%; }
  .docs-intent-grid { grid-template-columns: minmax(0, 1fr); }
  .bento-cell,
  .bento-cell--stores,
  .bento-cell--emu { grid-column: 1 / -1; }
  .bento-cell--stream { grid-template-columns: minmax(0, 1fr); }
  .bento-cell--stream .bento-art { border-left: 0; border-top: 1px solid var(--line); min-height: 190px; }
  .bento-cell--stores { grid-template-rows: 250px auto; }
  .shelf-fan span { width: 104px; }
  .bento-cell--stores:hover .shelf-fan span { transform: translateX(calc(-50% + var(--i) * 52px)) rotate(calc(var(--i) * 4deg)); }
  .brew { flex-wrap: wrap; }
  .brew code { flex: 1 1 100%; order: 2; white-space: normal; overflow-wrap: anywhere; padding-bottom: 0.3rem; }
  .brew .copy-btn { margin-left: auto; }
  .docs-index a { grid-template-columns: 2.4rem minmax(0, 1fr) 1.5rem; }
  .docs-index-desc { grid-column: 2; grid-row: 2; }
  .docs-index-arrow { grid-row: 1 / span 2; grid-column: 3; }
  .demo-mobile-note { display: flex; }
  .device-bar span { display: none; }
  .doc-head { grid-template-columns: minmax(0, 1fr); padding-right: 3rem; }
  .doc-head .doc-meta { grid-column: 1; grid-row: auto; }
  .md { padding-inline: 1.1rem; }
  .doc-quick-start { margin-inline: 1.1rem; }
  .faq-list summary { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal],
  .js .hero h1 .h1-line,
  .js .hero h1 em,
  .js .hero-lede,
  .js .hero-actions,
  .js .brew,
  .js .hero-meta { opacity: 1; transform: none; }
  .marquee-row { animation: none; }
  .hero-window { transform: none; }
}
