/* ================================================================
   MetalSharp site system
   Editorial dark grid: real product evidence, readable technical copy,
   and a restrained phosphor/steel route index.
   ================================================================ */
:root {
  color-scheme: dark;

  --bg: #080b0d;
  --bg-soft: #0c1113;
  --surface: #101719;
  --surface-raised: #151f22;
  --surface-strong: #1b292d;
  --surface-accent: rgba(53, 212, 135, 0.09);

  --line: rgba(225, 241, 235, 0.12);
  --line-strong: rgba(225, 241, 235, 0.22);
  --line-accent: rgba(53, 212, 135, 0.42);

  --accent: #55e39a;
  --accent-deep: #20ad70;
  --accent-ink: #062117;
  --steel: #8ac9d8;
  --amber: #efbd5d;

  --text: #f0f6f3;
  --text-soft: #c0cfca;
  --text-muted: #879690;
  --text-faint: #5f7069;

  --font-display: "Space Grotesk", "SF Pro Display", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-sm: 0.875rem;
  --text-xs: 0.75rem;
  --display: clamp(3.35rem, 8vw, 7rem);
  --title: clamp(2.2rem, 4.4vw, 4.4rem);
  --heading: clamp(1.45rem, 2.1vw, 2rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7.5rem;

  --radius-sm: 0.75rem;
  --radius-md: 1.15rem;
  --radius-lg: 1.75rem;
  --radius-pill: 999px;

  --shadow-card: 0 1.5rem 4rem rgba(0, 0, 0, 0.24);
  --shadow-focus: 0 0 0 0.25rem rgba(53, 212, 135, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion: 240ms;

  --max-width: 1240px;
  --docs-width: 1380px;
  --measure: 72ch;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(18, 39, 39, 0.16), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(133, 188, 179, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 188, 179, 0.035) 1px, transparent 1px),
    radial-gradient(55rem 28rem at 78% -6%, rgba(53, 212, 135, 0.15), transparent 68%),
    radial-gradient(42rem 30rem at -8% 28%, rgba(111, 183, 201, 0.1), transparent 70%);
  background-size: 4rem 4rem, 4rem 4rem, auto, auto;
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

figure {
  margin: 0;
}

svg {
  display: block;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  border-radius: 0.35rem;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  box-shadow: var(--shadow-focus);
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--motion) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

/* ================================================================
   Shared navigation
   ================================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 13, 0.82);
  backdrop-filter: blur(1.25rem) saturate(1.25);
  -webkit-backdrop-filter: blur(1.25rem) saturate(1.25);
}

.site-nav .container {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.brand small {
  padding-left: 0.8rem;
  border-left: 1px solid var(--line-strong);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--motion) var(--ease), background var(--motion) var(--ease), border-color var(--motion) var(--ease), transform var(--motion) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-accent);
  border-radius: var(--radius-pill);
  background: var(--surface-accent);
  color: var(--accent) !important;
  font-family: var(--font-display);
  font-weight: 600 !important;
}

.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink) !important;
  transform: translateY(-1px);
}

/* ================================================================
   Landing page: hero and sections
   ================================================================ */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) 0 var(--space-5);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.98fr);
}

.hero-copy {
  text-align: center;
}

.eyebrow,
.section-eyebrow,
.docs-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 var(--space-2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before,
.section-eyebrow::before,
.docs-hero .eyebrow::before {
  width: 2rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 14ch;
  margin: 0 auto;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--display);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.94;
  text-wrap: balance;
}

.hero h1 em,
.docs-hero h1 em {
  color: var(--accent);
  font-style: normal;
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--motion) var(--ease), box-shadow var(--motion) var(--ease), color var(--motion) var(--ease), background var(--motion) var(--ease), border-color var(--motion) var(--ease);
}

.btn-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0.75rem 2rem rgba(53, 212, 135, 0.18);
}

.btn-primary:hover {
  background: #70edac;
  box-shadow: 0 1rem 2.5rem rgba(53, 212, 135, 0.28);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--surface-accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  position: absolute;
  top: -2rem;
  right: -1rem;
  width: 13rem;
  height: 13rem;
  border: 1px solid rgba(138, 201, 216, 0.23);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-visual::after {
  position: absolute;
  right: 3.25rem;
  bottom: -1.5rem;
  width: 5rem;
  height: 5rem;
  border: 1px solid rgba(53, 212, 135, 0.3);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: none;
  transition: transform 500ms var(--ease);
}

.hero-window:hover {
  transform: translateY(-0.35rem);
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.7rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.window-dots {
  display: flex;
  gap: 0.35rem;
}

.window-dots i {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-dots i:first-child { background: #e77d77; }
.window-dots i:nth-child(2) { background: #e4b35b; }
.window-dots i:nth-child(3) { background: #61cf8a; }

.window-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-window .window-media {
  position: relative;
  overflow: hidden;
  /* The screenshot carries the app's own title bar, so the figure adds no
     chrome of its own; render the full image at its natural aspect. */
  aspect-ratio: 1249 / 877;
  background: #060809;
}

.hero-window .window-image {
  display: block;
  width: 100%;
  height: auto;
  background: #060809;
}

.hero-window-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.hero-window-caption span:last-child {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: clamp(3.5rem, 7vw, 6rem) 0 0;
  text-align: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.018);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.install code {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(53, 212, 135, 0.2);
  border-radius: 0.4rem;
  background: var(--surface-accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

section {
  padding-block: var(--space-6);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.section-head .section-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

.section-title {
  max-width: 16ch;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--title);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-lede {
  max-width: 58ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* Feature index */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.card {
  position: relative;
  min-height: 15rem;
  padding: var(--space-3);
  background: var(--surface);
  transition: background var(--motion) var(--ease), transform var(--motion) var(--ease);
}

.card:hover {
  z-index: 1;
  background: var(--surface-raised);
  transform: translateY(-0.25rem);
}

.card h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.card p {
  max-width: 38ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* Pipeline index */
.pipeline-section {
  padding-top: calc(var(--space-6) - 1rem);
}

.pipeline-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pipeline-kicker::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.7rem rgba(85, 227, 154, 0.7);
  content: "";
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.pipeline-card {
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  padding: var(--space-3);
  background: var(--surface);
  transition: background var(--motion) var(--ease), transform var(--motion) var(--ease);
}

.pipeline-card:hover {
  z-index: 1;
  background: var(--surface-raised);
  transform: translateY(-0.25rem);
}

.pipeline-card--featured {
  min-height: 14rem;
  background: linear-gradient(135deg, rgba(53, 212, 135, 0.14), var(--surface) 52%);
}

.pipeline-card--vulkan { border-top: 2px solid var(--steel); }
.pipeline-card--metal { border-top: 2px solid var(--accent); }
.pipeline-card--gptk { border-top: 2px solid var(--amber); }
.pipeline-card--mono { border-top: 2px solid #c5a6ec; }

.pipeline-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pipeline-index {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.pipeline-kind {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-card h3 {
  margin: 1.25rem 0 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.pipeline-card p {
  max-width: 49ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.pipeline-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: var(--space-3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.45;
}

.pipeline-flow span:not(:last-child)::after {
  margin-left: 0.45rem;
  color: var(--text-faint);
  content: "→";
}

.pipeline-card--vulkan .pipeline-flow { color: var(--steel); }
.pipeline-card--gptk .pipeline-flow { color: var(--amber); }
.pipeline-card--mono .pipeline-flow { color: #c5a6ec; }

/* Showcase */
.showcase-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(18, 40, 40, 0.12));
}

.showcase-frame {
  position: relative;
  overflow: hidden;
  padding: 1px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(85, 227, 154, 0.5), rgba(255, 255, 255, 0.06) 45%, rgba(138, 201, 216, 0.35));
  transition: transform var(--motion) var(--ease), box-shadow var(--motion) var(--ease);
}

.showcase-frame:hover {
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.28);
  transform: translateY(-0.25rem);
}

.showcase-inner {
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 1px);
  background: #070a0b;
}

.showcase-inner img {
  width: 100%;
  height: auto;
}

.showcase-frame--interactive {
  /* Bare demo: no chrome, border, or shadow — just the scaled renderer. */
  width: min(776px, 100%);
  margin-inline: auto;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.3);
}

.showcase-open-link {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.55rem 0.25rem 0;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.showcase-open-link:hover {
  color: var(--accent);
}

.showcase-frame--interactive .showcase-inner {
  background: #080d0f;
}

.app-demo-window {
  overflow: hidden;
  background: #0f1318;
}

.app-demo-window-chrome {
  display: flex;
  min-height: 2.7rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(140, 170, 200, 0.12);
  background: #181f27;
  color: #718292;
  font-family: "SF Mono", "Menlo", "Monaco", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-demo-window-dots {
  display: flex;
  gap: 0.35rem;
}

.app-demo-window-dots i {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(140, 170, 200, 0.2);
}

.app-demo-window-dots i:first-child { background: #e77d77; }
.app-demo-window-dots i:nth-child(2) { background: #e4b35b; }
.app-demo-window-dots i:nth-child(3) { background: #61cf8a; }

.app-demo-viewport {
  position: relative;
  width: 100%;
  height: 760px;
  overflow: hidden;
  background: #0f1318;
}

.app-demo-frame {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 900px;
  height: 760px;
  border: 0;
  background: #0f1318;
  transform-origin: top left;
}

.showcase-frame figcaption {
  padding: 0.75rem 0.85rem 0.7rem;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-align: left;
}

/* Documentation cards on landing */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--space-4);
  border: 1px solid var(--line);
  background: var(--line);
}

.doc-card {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  padding: var(--space-3);
  background: var(--surface);
  text-decoration: none;
  transition: background var(--motion) var(--ease), transform var(--motion) var(--ease);
}

.doc-card:hover {
  z-index: 1;
  background: var(--surface-raised);
  transform: translateY(-0.25rem);
}

.doc-card .kind {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-card .kind.guide { color: var(--steel); }

.doc-card h3 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0.55rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.doc-card h3 .arrow {
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform var(--motion) var(--ease);
}

.doc-card:hover h3 .arrow {
  transform: translate(0.2rem, -0.2rem);
}

.doc-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.docs-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--line-accent);
  background: linear-gradient(100deg, var(--surface-accent), rgba(138, 201, 216, 0.04));
}

.docs-callout h3 {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.docs-callout p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}

/* ================================================================
   Landing details
   ================================================================ */
.hero-grid,
.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-lede {
  max-width: 36ch;
  margin: 1.5rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.6;
}

.hero-facts {
  display: grid;
  max-width: 38rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-facts li {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.hero-facts strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-facts span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-actions {
  align-items: center;
}

.section-head:not(.section-head--centered) {
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head:not(.section-head--centered) .section-eyebrow {
  margin-bottom: -0.75rem;
}

.section-head:not(.section-head--centered) .section-lede {
  align-self: end;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.card-link span {
  transition: transform var(--motion) var(--ease);
}

.card-link:hover span {
  transform: translate(0.2rem, -0.2rem);
}

.pipeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: -1rem 0 var(--space-3);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pipeline-meta .pipeline-kicker {
  margin: 0;
}

.showcase-section .section-head {
  margin-bottom: var(--space-3);
}

.status-pulse {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--text-faint);
}

.app-demo-status[data-state="ready"] .status-pulse {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0.65rem rgba(85, 227, 154, 0.7);
}

.app-demo-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(140, 170, 200, 0.12);
  background: #111820;
  color: #c1d0d8;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.app-demo-status-detail {
  margin-left: auto;
  color: #718292;
  font-size: 0.58rem;
  text-align: right;
}

.demo-mobile-note {
  display: none;
}

.app-demo-status[data-state="slow"] {
  color: #f0c878;
}

.app-demo-status[data-state="slow"] .status-pulse {
  border-color: #f0c878;
  background: #f0c878;
}

.showcase-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.showcase-caption span:last-child {
  color: var(--accent);
  white-space: nowrap;
}

.showcase-caption a {
  margin-left: auto;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.showcase-caption a:hover {
  color: var(--text);
}

.docs-hero-lede {
  max-width: 62ch;
  margin: var(--space-3) auto 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.docs-hero-lede a {
  color: var(--steel);
  text-underline-offset: 0.2em;
}

.docs-hero-lede a:hover {
  color: var(--accent);
}

.docs-intent {
  padding-block: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
}

.docs-intent-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: var(--space-3);
}

.docs-intent-head .section-eyebrow {
  margin: 0;
}

.docs-intent-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--heading);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.docs-intent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.docs-intent-grid a {
  display: flex;
  min-height: 9.5rem;
  flex-direction: column;
  padding: 1rem;
  background: var(--surface);
  text-decoration: none;
  transition: background var(--motion) var(--ease), transform var(--motion) var(--ease);
}

.docs-intent-grid a:hover {
  z-index: 1;
  background: var(--surface-raised);
  transform: translateY(-0.2rem);
}

.intent-index {
  margin-bottom: 1.5rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.docs-intent-grid strong {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.docs-intent-grid a > span:last-child {
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.download-section {
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: var(--space-4);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line-accent);
  background:
    linear-gradient(120deg, rgba(53, 212, 135, 0.1), transparent 52%),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.download-copy .section-eyebrow {
  margin-bottom: 1rem;
}

.download-copy h2,
.faq-intro h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.download-copy p {
  max-width: 48ch;
  margin: 1rem 0 0;
  color: var(--text-soft);
}

.download-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.release-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.release-facts div {
  min-width: 0;
}

.release-facts dt {
  margin-bottom: 0.3rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.release-facts dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 8vw, 8rem);
  margin-top: var(--space-6);
}

.faq-intro .section-eyebrow {
  margin-bottom: 1rem;
}

.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: 1rem 0;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--accent);
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 65ch;
  margin: -0.2rem 2rem 1.1rem 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.faq-list a {
  color: var(--steel);
  text-underline-offset: 0.2em;
}

.faq-list a:hover {
  color: var(--accent);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   Documentation page
   ================================================================ */
.docs-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 var(--space-4);
  border-bottom: 1px solid var(--line);
}

.docs-hero .container {
  max-width: var(--docs-width);
  text-align: center;
}

.docs-hero h1 {
  max-width: 14ch;
  margin: 0 auto;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.93;
  text-wrap: balance;
}

.docs-hero p {
  max-width: 62ch;
  margin: var(--space-3) auto 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.docs-hero p a {
  color: var(--steel);
  text-underline-offset: 0.2em;
}

.docs-hero p a:hover {
  color: var(--accent);
}

.docs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: var(--space-3);
}

.docs-hero-meta span {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-hero-meta span:first-child {
  border-color: var(--line-accent);
  color: var(--accent);
}

.docs-pipeline-overview {
  padding-block: var(--space-4) var(--space-5);
}

.docs-pipeline-overview .container {
  max-width: var(--docs-width);
}

.docs-overview-head {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: var(--space-3);
  text-align: center;
}

.docs-overview-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--heading);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.docs-overview-head p {
  max-width: 48ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.docs-overview-head p a {
  color: var(--steel);
  text-underline-offset: 0.2em;
}

.docs-overview-head p a:hover {
  color: var(--accent);
}

.docs-pipeline-grid {
  display: grid;
  /* Five route cards: fixed 5-up keeps them on one row on wide screens. */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

@media (max-width: 1120px) {
  /* 5 cards don't divide into 3 columns; use 2 and let the last card
     span the full second row so no empty cell shows. */
  .docs-pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .docs-pipeline-grid .docs-pipeline-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .docs-pipeline-grid {
    grid-template-columns: 1fr;
  }
}

.docs-pipeline-card {
  display: block;
  min-height: 10rem;
  padding: 1rem;
  text-decoration: none;
  background: var(--surface);
  transition: background var(--motion) var(--ease), transform var(--motion) var(--ease);
}

.docs-pipeline-card:hover {
  z-index: 1;
  background: var(--surface-raised);
  transform: translateY(-0.2rem);
}

.docs-pipeline-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.docs-pipeline-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.5;
}

.docs-pipeline-card code {
  display: block;
  margin-top: 0.8rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.45;
}

.docs-pipeline-card:nth-child(1) { border-top: 2px solid var(--steel); }
.docs-pipeline-card:nth-child(2),
.docs-pipeline-card:nth-child(3),
.docs-pipeline-card:nth-child(4) { border-top: 2px solid var(--accent); }
.docs-pipeline-card:nth-child(5) { border-top: 2px solid var(--amber); }
.docs-pipeline-card:nth-child(6) { border-top: 2px solid #c5a6ec; }

.docs-layout {
  display: grid;
  max-width: var(--docs-width);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 15rem minmax(0, 1fr);
  margin-inline: auto;
  padding-bottom: var(--space-6);
}

.docs-layout > * {
  min-width: 0;
}

.docs-sidebar {
  position: sticky;
  top: 6.5rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(16, 23, 25, 0.78);
  scrollbar-color: var(--surface-strong) transparent;
}

.docs-sidebar .cat {
  margin-bottom: 1rem;
}

.docs-sidebar .cat:last-child {
  margin-bottom: 0;
}

.docs-sidebar .cat > span {
  display: block;
  padding: 0.35rem 0.45rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-sidebar ul,
.docs-navmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-sidebar a,
.docs-navmenu a {
  display: block;
  padding: 0.35rem 0.45rem 0.35rem 0.65rem;
  border-left: 2px solid transparent;
  border-radius: 0 0.35rem 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.73rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--motion) var(--ease), background var(--motion) var(--ease), border-color var(--motion) var(--ease);
}

.docs-sidebar a:hover,
.docs-navmenu a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.docs-sidebar a.active {
  border-left-color: var(--accent);
  background: var(--surface-accent);
  color: var(--text);
}

.docs-navmenu {
  display: none;
}

.doc-section {
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
  padding-block: 0;
  scroll-margin-top: 6.5rem;
}

.doc-section:last-child {
  margin-bottom: 0;
}

.doc-head {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.doc-head .kind {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: balance;
}

.doc-head h2 a {
  text-decoration: none;
}

.doc-head h2 a:hover {
  color: var(--accent);
}

.doc-head .desc {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.doc-quick-start {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--surface-accent);
  color: var(--text-soft);
  font-size: 0.84rem;
}

.doc-quick-start strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-quick-start span {
  min-width: 0;
}

.doc-card-body {
  padding: clamp(1.15rem, 2.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12);
}

/* Rendered Markdown */
.md {
  max-width: var(--measure);
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.md h1,
.md h2,
.md h3,
.md h4 {
  margin: 2rem 0 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.md > h1:first-child,
.md > h2:first-child,
.md > h3:first-child,
.md > h4:first-child {
  margin-top: 0;
}

.md h1 { font-size: 1.65rem; }
.md h2 { font-size: 1.4rem; }
.md h3 { font-size: 1.14rem; }
.md h4 { font-size: 1rem; }

.md p {
  margin: 0.85rem 0;
}

.md a {
  color: var(--steel);
  text-decoration: underline;
  text-decoration-color: rgba(138, 201, 216, 0.5);
  text-underline-offset: 0.2em;
}

.md a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.md ul,
.md ol {
  margin: 0.85rem 0;
  padding-left: 1.35rem;
}

.md li {
  margin: 0.4rem 0;
}

.md li::marker {
  color: var(--accent);
}

.md strong {
  color: var(--text);
  font-weight: 600;
}

.md code {
  padding: 0.12rem 0.38rem;
  border: 1px solid rgba(53, 212, 135, 0.18);
  border-radius: 0.35rem;
  background: var(--surface-accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82em;
  overflow-wrap: anywhere;
}

.md pre {
  max-width: 100%;
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #070a0b;
  scrollbar-color: var(--surface-strong) transparent;
}

.md pre code {
  padding: 0;
  border: 0;
  background: none;
  color: #c8efda;
  font-size: 0.78rem;
  white-space: pre;
}

.md table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.82rem;
  scrollbar-color: var(--surface-strong) transparent;
}

.md th,
.md td {
  min-width: 8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.md th {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.md td {
  color: var(--text-soft);
}

.md tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.md blockquote {
  margin: 1.25rem 0;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-accent);
  color: var(--text-muted);
}

.md hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.md img {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* ================================================================
   Footer and responsive composition
   ================================================================ */
.site-footer {
  margin-top: var(--space-5);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-brand img {
  width: 1.65rem;
  height: 1.65rem;
}

.footer-brand small {
  display: block;
  margin-top: 0.1rem;
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color var(--motion) var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 1120px) {
  .hero-grid {
    gap: var(--space-4);
  }



  .docs-pipeline-card {
    min-height: 9rem;
  }

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

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 2.5rem), var(--max-width));
  }

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

  .hero-copy {
    max-width: 52rem;
    margin-inline: auto;
    text-align: center;
  }

  .hero-lede {
    margin-inline: auto;
  }

  .hero-visual {
    width: min(100%, 42rem);
    margin-inline: auto;
  }

  .hero h1 {
    max-width: 14ch;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .install {
    justify-content: center;
    text-align: center;
  }

  .section-head {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--space-2);
    text-align: center;
  }

  .section-head .section-eyebrow {
    margin-bottom: 0;
  }

  .section-title {
    max-width: 20ch;
    margin-inline: auto;
  }

  .section-lede {
    margin-inline: auto;
  }

  .features-grid,
  .pipeline-grid,
  .docs-grid {
    text-align: center;
  }

  .card p {
    margin-inline: auto;
  }

  .pipeline-card {
    text-align: center;
  }

  .pipeline-topline {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .pipeline-flow {
    justify-content: center;
  }

  .doc-card h3 {
    justify-content: center;
  }

  .showcase-frame figcaption {
    text-align: center;
  }

  .docs-hero .container {
    text-align: center;
  }

  .docs-hero h1,
  .docs-hero p {
    margin-inline: auto;
  }

  .docs-hero-meta {
    justify-content: center;
  }

  .docs-overview-head {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .docs-pipeline-card {
    text-align: center;
  }

  .features-grid,
  .pipeline-grid,
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid .card:last-child {
    grid-column: 1 / -1;
  }

  .docs-layout {
    width: min(calc(100% - 2.5rem), var(--docs-width));
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: var(--space-3);
  }

  .pipeline-meta {
    align-items: center;
    flex-direction: column;
    gap: 0.65rem;
    text-align: center;
  }

}

@media (max-width: 720px) {
  .site-nav .container {
    position: relative;
    min-height: 4.25rem;
  }

  .brand small,
  .nav-links li:not(:nth-last-child(-n + 3)) {
    display: none;
  }

  .brand {
    gap: 0.5rem;
    font-size: 1rem;
  }

  .brand img {
    width: 1.8rem;
    height: 1.8rem;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links li:nth-last-child(2) {
    margin-right: 0.15rem;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .nav-cta {
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem !important;
  }

  .hero {
    padding-top: var(--space-5);
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 13.2vw, 4.5rem);
  }

  .hero-actions {
    width: 100%;
  }

  .features-grid,
  .pipeline-grid,
  .docs-grid,


  .features-grid .card:last-child {
    width: auto;
    grid-column: auto;
  }

  .card,
  .pipeline-card,
  .doc-card {
    min-height: auto;
  }

  .docs-callout,
  .docs-overview-head,
  .site-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-intent-head,
  .download-panel,
  .faq-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-intent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-panel,
  .faq-layout {
    display: grid;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .release-facts {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .footer-links {
    justify-content: flex-start;
  }

  .docs-layout {
    display: block;
    width: min(calc(100% - 2.5rem), var(--docs-width));
  }

  .docs-sidebar {
    display: none;
  }

  .docs-navmenu {
    display: block;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 60;
  }

  .docs-navmenu details {
    position: relative;
  }

  .docs-navmenu > details > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    list-style: none;
  }

  .docs-navmenu summary::-webkit-details-marker {
    display: none;
  }

  .docs-navmenu > details > summary::after {
    color: var(--accent);
    content: "▾";
  }

  .docs-navmenu > details[open] > summary::after {
    display: inline-block;
    transform: rotate(180deg);
  }

  .docs-navmenu .cat > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem;
    border-bottom: 1px solid var(--line);
    color: var(--accent);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    list-style: none;
    text-transform: uppercase;
  }

  .docs-navmenu .cat > summary::after {
    color: var(--text-faint);
    content: "+";
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0;
  }

  .docs-navmenu .cat[open] > summary::after {
    color: var(--accent);
    content: "−";
  }

  .docs-navmenu .menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 60;
    width: min(22rem, calc(100vw - 2.5rem));
    max-height: 65vh;
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: rgba(12, 17, 19, 0.98);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5);
  }

  .docs-navmenu .cat {
    margin-bottom: 0.75rem;
  }

  .docs-navmenu .cat:last-child {
    margin-bottom: 0;
  }

  .doc-section {
    margin-bottom: var(--space-5);
  }

  .doc-quick-start {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .doc-card-body {
    padding: 1rem;
  }

  .md {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container,
  .docs-layout {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .hero-actions > * {
    width: 100%;
  }

  .hero-window {
    transform: none;
  }

  .install {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .hero-facts li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .app-demo-status-detail {
    display: none;
  }

  .docs-intent-grid,
  .release-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-window,
  .hero-window:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .card:hover,
  .pipeline-card:hover,
  .doc-card:hover,
  .showcase-frame:hover {
    transform: none;
  }
}

/* ================================================================
   Visual direction: obsidian studio / phosphor signal

   This layer keeps the original grid restrained: simple chrome, a product
   stage, a quieter grid, asymmetrical proof, and a route manifest instead of a
   wall of equal cards.
   ================================================================ */
:root {
  --bg: #060908;
  --bg-soft: #0a100d;
  --surface: #0e1713;
  --surface-raised: #17231c;
  --surface-strong: #21332a;
  --surface-accent: rgba(184, 242, 109, 0.1);
  --line: rgba(225, 241, 235, 0.14);
  --line-strong: rgba(225, 241, 235, 0.28);
  --line-accent: rgba(184, 242, 109, 0.5);
  --accent: #b8f26d;
  --accent-deep: #63c878;
  --accent-ink: #0a1a0d;
  --steel: #9dd9ff;
  --amber: #f4c66a;
  --text: #f3f8f2;
  --text-soft: #c4d1c9;
  --text-muted: #83958a;
  --text-faint: #5a6c61;
  --shadow-card: 0 2rem 5rem rgba(0, 0, 0, 0.35);
}

body {
  background: var(--bg);
}

body::before {
  background-image:
    linear-gradient(90deg, rgba(188, 224, 204, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(188, 224, 204, 0.018) 1px, transparent 1px);
  background-size: 7rem 7rem;
}

.site-nav {
  top: 0;
  padding: 0;
  border-bottom: 1px solid rgba(225, 241, 235, 0.16);
  background: rgba(6, 9, 8, 0.9);
  backdrop-filter: blur(1rem) saturate(1.1);
  -webkit-backdrop-filter: blur(1rem) saturate(1.1);
}

.site-nav .container {
  min-height: 4.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-links {
  gap: clamp(0.8rem, 2.2vw, 2rem);
}

.nav-links a {
  color: rgba(232, 242, 235, 0.72);
}

.nav-cta {
  padding: 0.58rem 0.9rem;
  border-color: rgba(184, 242, 109, 0.52);
  white-space: nowrap;
  border-radius: 0.55rem;
  background: rgba(184, 242, 109, 0.09);
  color: var(--accent) !important;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--accent-ink) !important;
}

.hero {
  min-height: min(58rem, calc(100svh - 1rem));
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background: transparent;
}

.hero-intro {
  display: block;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-align: left;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta span:first-child {
  color: var(--accent);
}

.hero-meta i {
  color: var(--text-faint);
  font-style: normal;
}

.hero-grid {
  grid-template-columns: minmax(22rem, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  min-height: clamp(34rem, 61vh, 43rem);
}

.hero-copy {
  position: relative;
  z-index: 3;
  text-align: left;
}

.hero h1 {
  max-width: none;
  font-size: clamp(3.8rem, 6.2vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.hero h1 > span,
.hero h1 > em {
  display: block;
  white-space: nowrap;
}

.hero h1 em,
.docs-hero h1 em {
  background: none;
  color: var(--accent);
}

.hero-lede {
  max-width: 34ch;
  margin-top: 1.75rem;
  color: rgba(218, 232, 223, 0.76);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.hero-actions {
  margin-top: 2rem;
}

.btn-primary,
.btn-ghost {
  min-height: 3.2rem;
  border-radius: 0.7rem;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 1rem 2.5rem rgba(129, 215, 88, 0.18);
}

.btn-primary:hover {
  background: #d0ff86;
  box-shadow: 0 1rem 3rem rgba(129, 215, 88, 0.28);
}

.btn-ghost {
  border-color: rgba(225, 241, 235, 0.25);
  background: rgba(255, 255, 255, 0.035);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(184, 242, 109, 0.1);
  color: var(--accent);
}

.hero-facts {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top-color: rgba(225, 241, 235, 0.2);
}

.hero-visual {
  min-height: 32rem;
  margin-right: 0;
}

.hero-visual::before,
.hero-visual::after {
  display: none;
}

.hero-window {
  width: min(100%, 760px);
  margin: 0 0 0 auto;
  transform: none;
}

.hero-window:hover {
  transform: translateY(-0.4rem);
}

.window-chrome {
  min-height: 2.9rem;
  padding-inline: 1.05rem;
  background: rgba(18, 29, 25, 0.96);
}

.window-label,
.hero-window-caption span:last-child {
  color: var(--accent);
}

.install {
  display: block;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(225, 241, 235, 0.16);
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
}

.install summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  color: var(--text-soft);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.install summary::-webkit-details-marker {
  display: none;
}

.install summary span {
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.install[open] summary span {
  transform: rotate(45deg);
}

.install-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.15rem 0 0.9rem;
}

.install-content > span {
  font-size: 0.78rem;
}

section {
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
  scroll-margin-top: 5.5rem;
}

.section-head:not(.section-head--centered) {
  grid-template-columns: minmax(0, 0.9fr) minmax(19rem, 1.1fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 8rem);
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head:not(.section-head--centered) .section-eyebrow {
  margin-bottom: -0.5rem;
}

.section-title {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.section-lede {
  max-width: 48ch;
  color: rgba(211, 228, 217, 0.7);
  font-size: 1rem;
}

.section-lede a {
  color: var(--steel);
  text-underline-offset: 0.2em;
}

.section-lede a:hover {
  color: var(--accent);
}

.showcase-section {
  border-top: 1px solid rgba(225, 241, 235, 0.16);
  background: #080d0a;
}

.showcase-frame {
  margin-inline: auto;
  padding: 0;
  border-color: rgba(225, 241, 235, 0.27);
  border-radius: 1.25rem;
  background: #0b120e;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.3);
}

.showcase-frame:hover {
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.42);
  transform: translateY(-0.35rem);
}

.showcase-inner {
  border-radius: 1.2rem 1.2rem 0 0;
}

.app-demo-window {
  background: #0b120f;
}

.app-demo-status {
  min-height: 2.6rem;
  border-bottom-color: rgba(225, 241, 235, 0.12);
  background: #0c1511;
}

.showcase-caption,
.showcase-frame figcaption {
  background: #0c1511;
}

.showcase-caption {
  flex-wrap: wrap;
  padding: 0.9rem 1.1rem 0.85rem;
  border-radius: 0 0 1.2rem 1.2rem;
}

.features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
  background: transparent;
}

.card {
  display: flex;
  min-height: 19rem;
  flex-direction: column;
  padding: 1.75rem 2rem 1.5rem;
  border-top: 1px solid rgba(225, 241, 235, 0.2);
  border-bottom: 1px solid rgba(225, 241, 235, 0.2);
  background: rgba(15, 25, 20, 0.35);
}

.card + .card {
  border-left: 1px solid rgba(225, 241, 235, 0.2);
}

.card:hover {
  background: rgba(184, 242, 109, 0.07);
  transform: translateY(-0.35rem);
}

.feature-index {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.card h3 {
  font-size: 1.45rem;
  font-weight: 500;
}

.card p {
  max-width: 36ch;
  font-size: 0.88rem;
}

.outcome-proof {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: 1.5rem 0 0;
  border: 1px solid rgba(225, 241, 235, 0.18);
  border-radius: 0.85rem;
  background: #070b09;
}

.outcome-proof::after {
  position: absolute;
  inset: 56% 0 0;
  background: linear-gradient(180deg, transparent, rgba(3, 7, 5, 0.9));
  content: "";
  pointer-events: none;
}

.outcome-proof picture {
  display: block;
  width: 100%;
  height: 100%;
}

.outcome-proof img {
  width: 100%;
  height: 100%;
  filter: saturate(0.95) contrast(1.03);
  object-fit: cover;
  transition: transform 500ms var(--ease), filter 500ms var(--ease);
}

.outcome-proof figcaption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
  left: 0.75rem;
  z-index: 1;
  color: rgba(240, 248, 240, 0.76);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card:nth-child(2) .outcome-proof img {
  object-position: 52% center;
}

.card:nth-child(3) .outcome-proof img {
  object-position: 70% center;
}

.card:hover .outcome-proof img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.04);
}

.card-link {
  padding-top: 1.5rem;
  color: var(--accent);
}

.pipeline-section {
  border-block: 1px solid rgba(225, 241, 235, 0.16);
  background: #080d0a;
}

.pipeline-section .section-head {
  margin-bottom: 2.5rem;
}

.pipeline-meta {
  display: block;
  margin: 0;
  padding: 0.8rem 0;
  border-top-color: rgba(225, 241, 235, 0.16);
  border-bottom: 1px solid rgba(225, 241, 235, 0.16);
}

.pipeline-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border: 0;
  border-top: 1px solid rgba(225, 241, 235, 0.22);
  background: transparent;
}

.pipeline-card,
.pipeline-card--featured {
  display: grid;
  grid-template-columns: 5rem minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: auto auto;
  min-height: 0;
  align-items: center;
  gap: 0 2rem;
  padding: 1.6rem 0 1.6rem 1.25rem;
  border: 0;
  border-bottom: 1px solid rgba(225, 241, 235, 0.16);
  border-left: 2px solid transparent;
  background: transparent;
}

.pipeline-card--vulkan {
  border-left-color: var(--steel);
}

.pipeline-card--metal {
  border-left-color: var(--accent);
}

.pipeline-card--gptk {
  border-left-color: var(--amber);
}

.pipeline-card--mono {
  border-left-color: #c5a6ec;
}

.pipeline-card:last-child {
  border-bottom: 0;
}

.pipeline-card:hover {
  background: rgba(184, 242, 109, 0.05);
  transform: none;
}

.pipeline-topline {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.pipeline-index {
  color: var(--accent);
  font-size: 0.75rem;
}

.pipeline-kind {
  max-width: 7ch;
  color: var(--text-muted);
  font-size: 0.62rem;
  line-height: 1.4;
  text-align: left;
}

.pipeline-card h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
}

.pipeline-card p {
  grid-column: 3;
  grid-row: 1 / 3;
  max-width: 53ch;
  color: rgba(211, 228, 217, 0.7);
  font-size: 0.88rem;
}

.pipeline-flow {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0.85rem;
  padding-top: 0;
  font-size: 0.62rem;
}

.pipeline-track {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.pipeline-track li {
  display: inline-flex;
  align-items: center;
  list-style: none;
  white-space: nowrap;
}

.pipeline-track li:not(:last-child)::after {
  display: inline-block;
  width: 1.8rem;
  height: 1px;
  margin-inline: 0.6rem;
  background: currentColor;
  content: "";
  opacity: 0.55;
}

.docs-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(225, 241, 235, 0.22);
  border-bottom: 1px solid rgba(225, 241, 235, 0.22);
  background: transparent;
}

.doc-card {
  display: grid;
  grid-template-columns: minmax(8rem, 0.28fr) minmax(14rem, 0.72fr) minmax(15rem, 1fr);
  grid-template-rows: 1fr;
  min-height: 0;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border: 0;
  border-bottom: 1px solid rgba(225, 241, 235, 0.16);
  background: transparent;
}

.doc-card:last-child {
  border-bottom: 0;
}

.doc-card:hover {
  background: rgba(184, 242, 109, 0.05);
  transform: none;
}

.doc-card .kind {
  grid-column: 1;
  grid-row: 1;
  color: var(--accent);
}

.doc-card h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
}

.doc-card p {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  max-width: 46ch;
}

.docs-callout {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-color: rgba(184, 242, 109, 0.4);
  background: rgba(184, 242, 109, 0.06);
}

.download-section {
  padding-top: clamp(5rem, 9vw, 8rem);
  background: transparent;
}

.download-panel {
  position: relative;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
  border: 0;
  border-top: 1px solid rgba(184, 242, 109, 0.5);
  border-bottom: 1px solid rgba(184, 242, 109, 0.28);
  border-left: 2px solid var(--accent);
  border-radius: 0;
  background: #0b150e;
}

.download-copy h2,
.faq-intro h2 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 500;
}

.download-actions {
  align-items: center;
}

.release-facts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top-color: rgba(225, 241, 235, 0.2);
}

.faq-layout {
  margin-top: clamp(4rem, 7vw, 6.5rem);
}

.faq-list {
  border-top-color: rgba(225, 241, 235, 0.2);
}

.faq-list details {
  border-bottom-color: rgba(225, 241, 235, 0.2);
}

.docs-hero {
  padding-top: clamp(5rem, 8vw, 7rem);
  background: linear-gradient(180deg, rgba(14, 30, 20, 0.18), transparent 70%);
}

.docs-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.docs-hero-meta {
  gap: 0;
}

.docs-hero-meta span {
  padding: 0;
  border: 0;
  border-radius: 0;
}

.docs-hero-meta span + span::before {
  margin: 0 0.65rem;
  color: var(--text-faint);
  content: "·";
}

.docs-hero-meta span:first-child {
  color: var(--accent);
}

.docs-intent {
  background: rgba(10, 20, 14, 0.6);
}

.docs-intent-grid {
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  border-color: rgba(225, 241, 235, 0.2);
}

.docs-intent-grid a {
  background: rgba(15, 25, 20, 0.6);
}

.docs-intent-grid a:first-child {
  border-left: 2px solid var(--accent);
  background: rgba(184, 242, 109, 0.09);
}

.docs-intent-grid a:first-child .intent-index,
.docs-intent-grid a:first-child strong {
  color: var(--accent);
}

.docs-intent-grid a:hover,
.docs-intent-grid a:first-child:hover {
  background: rgba(184, 242, 109, 0.14);
}

.docs-pipeline-overview {
  background: rgba(6, 12, 9, 0.68);
}

.docs-pipeline-grid {
  border-color: rgba(225, 241, 235, 0.2);
}

.docs-pipeline-card {
  background: rgba(15, 25, 20, 0.56);
}

.docs-layout {
  gap: clamp(3rem, 7vw, 7rem);
}

.docs-sidebar {
  padding: 0.5rem 0 0.5rem 1rem;
  border: 0;
  border-left: 1px solid rgba(184, 242, 109, 0.35);
  background: transparent;
  box-shadow: none;
}

.docs-sidebar .cat > span {
  padding-left: 0;
  color: var(--accent);
}

.docs-sidebar a {
  padding-left: 0;
  border-left: 0;
  border-radius: 0;
}

.docs-sidebar a.active {
  padding-left: 0.6rem;
  border-left: 2px solid var(--accent);
  background: transparent;
  color: var(--text);
}

.doc-card-body {
  border-radius: 0 1.25rem 1.25rem 0;
  border-left: 2px solid rgba(184, 242, 109, 0.32);
  background: rgba(15, 25, 20, 0.56);
}

/* Each source document is a readable drawer: scan the index first, then open
   only the chapter that answers the current question. */
.doc-entry > summary {
  position: relative;
  cursor: pointer;
  list-style: none;
}

.doc-entry > summary::-webkit-details-marker {
  display: none;
}

.doc-entry > summary::after {
  position: absolute;
  top: 0.2rem;
  right: 0;
  color: var(--accent);
  content: "Read +";
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-entry[open] > summary::after {
  color: var(--text-faint);
  content: "Hide −";
}

.doc-entry > summary:hover h2 {
  color: var(--accent);
}

.doc-entry > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.4rem;
}

.doc-entry:not([open]) > summary {
  margin-bottom: 0;
}

.doc-meta {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 0;
  background: #050806;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
    gap: 2rem;
  }

  .hero-window {
    transform: none;
  }

  .hero-window:hover {
    transform: translateY(-0.35rem);
  }

  .hero h1 {
    font-size: clamp(3.8rem, 6.5vw, 6.3rem);
  }

  .hero-visual {
    margin-right: 0;
  }

  .pipeline-card,
  .pipeline-card--featured {
    grid-template-columns: 4rem minmax(13rem, 0.72fr) minmax(0, 1.28fr);
    gap: 0 1.25rem;
  }

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

  .docs-intent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-intent-grid a:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) and (min-width: 701px) {
  .nav-links li:nth-child(-n + 2) {
    display: none;
  }

  .nav-links {
    gap: 0.8rem;
  }
}

@media (max-width: 900px) {
  .site-nav {
    top: 0.75rem;
  }

  .hero {
    min-height: auto;
    padding-top: 5.5rem;
  }

  .hero-intro {
    text-align: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: 0;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1 {
    max-width: 12ch;
    margin-inline: auto;
  }

  .hero h1 > span,
  .hero h1 > em {
    white-space: normal;
  }

  .hero-lede {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-facts {
    max-width: 40rem;
    margin-inline: auto;
    text-align: left;
  }

  .hero-visual {
    width: min(100%, 48rem);
    min-height: 0;
    margin-inline: auto;
  }

  .hero-window {
    transform: none;
  }

  .hero-window:hover {
    transform: translateY(-0.3rem);
  }

  .section-head:not(.section-head--centered) {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .section-head:not(.section-head--centered) .section-eyebrow {
    justify-self: center;
    margin-bottom: 0;
  }

  .section-title,
  .section-lede {
    margin-inline: auto;
  }

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

  .card + .card {
    border-left: 0;
  }

  .card:nth-child(even) {
    border-left: 1px solid rgba(225, 241, 235, 0.2);
  }

  .card:last-child {
    grid-column: 1 / -1;
    border-top: 0;
  }

  .pipeline-card,
  .pipeline-card--featured {
    grid-template-columns: 4rem minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0 1.25rem;
    padding-left: 1rem;
    text-align: left;
  }

  .pipeline-topline {
    grid-column: 1;
    grid-row: 1 / 4;
  }

  .pipeline-card h3 {
    grid-column: 2;
    grid-row: 1;
  }

  .pipeline-card p {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0.7rem;
  }

  .pipeline-flow {
    grid-column: 2;
    grid-row: 3;
    justify-content: flex-start;
    margin-top: 0.8rem;
  }

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

  .doc-card {
    grid-template-columns: 8rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.5rem 1.25rem;
  }

  .doc-card .kind {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .doc-card h3 {
    grid-column: 2;
    grid-row: 1;
  }

  .doc-card p {
    grid-column: 2;
    grid-row: 2;
  }

  .download-panel,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .download-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) and (min-width: 361px) {
  .docs-page .primary-docs-link {
    display: none;
  }

  .site-nav {
    padding-inline: 1rem;
  }

  .site-nav .container {
    width: 100%;
  }

  .docs-navmenu {
    position: static;
    top: auto;
    right: auto;
  }
}

@media (max-width: 700px) {
  .docs-page .primary-docs-link {
    display: none;
  }

  .site-nav {
    padding-inline: 1rem;
  }

  .site-nav .container {
    width: 100%;
    min-height: 3.75rem;
    padding: 0;
  }

  .docs-navmenu {
    position: static;
    top: auto;
    right: auto;
  }

  .brand {
    font-size: 1rem;
  }

  .nav-links {
    gap: 0.6rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .nav-cta {
    padding: 0.55rem 0.7rem;
    font-size: 0.7rem !important;
  }

  .hero {
    padding-top: 4.75rem;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 14vw, 5.5rem);
  }

  .install-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-caption {
    align-items: flex-start;
  }

  .showcase-caption span:last-child,
  .showcase-caption a {
    white-space: normal;
  }

  .showcase-caption a {
    margin-left: 0;
  }

  .docs-intent-grid {
    grid-template-columns: 1fr;
  }

  .docs-intent-head {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .brand small,
  .nav-links li:not(:nth-last-child(-n + 2)) {
    display: none;
  }

  .hero-intro {
    padding-bottom: 2rem;
  }

  .docs-hero h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.35rem);
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 14.5vw, 4.5rem);
  }

  .hero-actions,
  .download-actions {
    width: 100%;
  }

  .hero-actions > *,
  .download-actions > * {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }

  .features-grid,
  .docs-grid,
  .docs-intent-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .doc-card {
    min-height: 0;
  }

  .card:last-child {
    grid-column: auto;
    border-top: 1px solid rgba(225, 241, 235, 0.2);
  }

  .card:nth-child(even),
  .doc-card,
  .doc-card:nth-child(2n) {
    border-right: 0;
    border-left: 0;
  }

  .doc-card {
    display: block;
    padding: 1.25rem 0;
  }

  .doc-card .kind,
  .doc-card h3,
  .doc-card p {
    display: block;
    margin: 0;
  }

  .doc-card h3 {
    margin-top: 0.6rem;
  }

  .doc-card p {
    margin-top: 0.55rem;
  }

  .pipeline-card,
  .pipeline-card--featured {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0 0.85rem;
    padding-left: 0.75rem;
  }

  .pipeline-kind {
    max-width: 6ch;
  }

  .release-facts {
    grid-template-columns: 1fr;
  }

  .app-demo-status-detail {
    display: none;
  }

  .demo-mobile-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid rgba(225, 241, 235, 0.12);
    background: #0c1511;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .demo-mobile-note a {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    text-decoration: none;
    white-space: nowrap;
  }

  .demo-mobile-note a:hover {
    color: var(--text);
  }

  .showcase-caption a {
    display: none;
  }
}

@media (max-width: 380px) {
  .pipeline-track {
    display: grid;
    justify-items: start;
    gap: 0.25rem;
  }

  .pipeline-track li:not(:last-child)::after {
    width: auto;
    height: auto;
    margin: 0.1rem 0 0.1rem 0.45rem;
    background: none;
    content: "↓";
    opacity: 0.7;
  }
}

@media (max-width: 360px) {
  .nav-links li:nth-last-child(2) {
    display: none;
  }

  .nav-cta {
    max-width: none;
    padding: 0.5rem 0.6rem;
    white-space: nowrap;
    font-size: 0.68rem !important;
  }

  .docs-navmenu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
  }

  .docs-page .doc-section {
    scroll-margin-top: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-window,
  .hero-window:hover,
  .showcase-frame:hover,
  .card:hover,
  .pipeline-card:hover,
  .doc-card:hover,
  .docs-intent-grid a:hover {
    transform: none;
  }
}

/* The document list should feel like an index, not a wall of articles. */
.doc-section {
  margin-bottom: 1.25rem;
}

.doc-section:has(> .doc-entry[open]) {
  margin-bottom: 4rem;
}

.doc-entry > summary {
  padding-right: 5rem;
}

@media (max-width: 720px) {
  .doc-section {
    margin-bottom: 1rem;
  }

  .doc-section:has(> .doc-entry[open]) {
    margin-bottom: 2.75rem;
  }
}

.doc-back-link {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-back-link a {
  color: var(--text-faint);
  text-decoration: none;
}

.doc-back-link a:hover {
  color: var(--accent);
}

/* Give the hero enough width for its display line and its product proof to
   breathe on large desktop canvases. The rest of the page keeps its 1240px
   reading width. */
@media (min-width: 1200px) {
  .hero-grid {
    width: min(calc(100% - 4rem), 1360px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(4rem, 5vw, 6rem);
  }
}

/* Bare interactive demo overrides: the later .showcase-frame theme rules
   (border color, background) must not re-frame the chromeless demo. */
.showcase-frame--interactive,
.showcase-frame--interactive .showcase-inner {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.showcase-frame--interactive .app-demo-viewport {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.3);
}

/* Essentials section: single looping interface demo video */
.essentials-video {
  margin: 2.5rem auto 0;
  max-width: 980px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #060809;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.35);
}

.essentials-video video {
  display: block;
  width: 100%;
  height: auto;
}

.essentials-video-caption {
  display: flex;
  justify-content: flex-end;
  padding: 0.6rem 0.9rem;
  background: #0b120e;
}

.essentials-video-frame {
  position: relative;
}

.essentials-sound-toggle {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(10, 14, 17, 0.72);
  backdrop-filter: blur(6px);
  color: #e8f1ec;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--motion, 0.2s) ease, border-color var(--motion, 0.2s) ease;
}

.essentials-sound-toggle:hover {
  background: rgba(10, 14, 17, 0.88);
  border-color: rgba(255, 255, 255, 0.4);
}

.essentials-sound-toggle[aria-pressed="true"] {
  border-color: var(--accent, #35d487);
  color: var(--accent, #35d487);
}
