:root {
  --bg: #080a0c;
  --bg-alt: #0b0e10;
  --surface: #0d1013;
  --surface-raised: #12161a;
  --surface-soft: #171c21;
  --text: #f3f1e8;
  --text-secondary: #9da5aa;
  --text-muted: #666f75;
  --accent: #b8ff5a;
  --accent-soft: rgba(184, 255, 90, 0.10);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(184, 255, 90, 0.25);
  --page-width: 1320px;
  --radius-sm: 3px;
  --radius-md: 5px;
  --font-display: Geist, Inter, "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "Geist Mono", "IBM Plex Mono", ui-monospace, monospace;
  --grid:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
code { font-family: var(--font-mono); }

.skip-jump {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 90;
  background: var(--text);
  color: #090b0d;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 12px;
}
.skip-jump:focus { top: 0.7rem; }

.page-rail {
  width: min(var(--page-width), calc(100% - 64px));
  margin-inline: auto;
}

/* ===== top navbar ===== */
.top-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 12, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.is-scrolled .top-nav-wrapper { background: rgba(8, 10, 12, 0.96); }

.top-nav-inner {
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  z-index: 1;
}
.brand-lockup img {
  height: 26px;
  width: auto;
  filter: invert(1);
}
.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.route-cluster {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.route-cluster a {
  position: relative;
  padding-bottom: 4px;
  transition: color 160ms ease;
}
.route-cluster a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 180ms ease;
}
.route-cluster a:hover,
.route-cluster a[aria-current="page"] { color: var(--text); }
.route-cluster a[aria-current="page"]::after { width: 100%; }

.utility-dock {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
#menu-btn { display: none; }

/* ===== buttons ===== */
.cmd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--text);
  color: #090b0d;
  border: 1px solid var(--text);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.cmd-btn:hover { transform: translateY(-2px); }
.cmd-btn.dim,
a.cmd-btn.dim {
  background: #111519;
  color: #c9ced1;
  border-color: var(--border);
  font-weight: 500;
}
.cmd-btn.dim:hover {
  border-color: rgba(184, 255, 90, 0.35);
  color: var(--text);
}
.quiet-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.quiet-btn.compact {
  min-height: 32px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.float-dl {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  min-height: 40px;
}

/* ===== hero ===== */
.launch-stage {
  min-height: 720px;
  padding: 72px 0 36px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 42% at 50% -8%, rgba(184, 255, 90, 0.045), transparent 58%),
    var(--bg);
}

.release-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 32px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 2px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}
.status-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.headline-xl {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 620;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #f7f8fa;
}
.headline-xl .sig { color: #c8f06a; }

.lead-copy {
  margin: 22px auto 0;
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.platform-row .cmd-btn { min-width: 210px; }

.catalog-link {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.catalog-link .arrow {
  display: inline-block;
  color: var(--accent);
  transition: transform 160ms ease;
}
.catalog-link a:hover .arrow { transform: translate(3px, -2px); }

/* ===== command palette ===== */
.command-palette {
  position: relative;
  margin: 40px auto 0;
  max-width: 620px;
  text-align: start;
  background: #101418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
}
.palette-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 0;
}
.palette-tabs { display: flex; gap: 16px; }
.palette-tabs button {
  padding: 6px 0 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
}
.palette-tabs button[aria-selected="true"] {
  color: var(--accent);
  box-shadow: inset 0 -1px 0 var(--accent);
}
.palette-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.prompt-sig { color: var(--accent); }
.palette-line code { flex: 1; overflow-x: auto; }
.palette-line code::after {
  content: "▌";
  margin-left: 5px;
  color: var(--accent);
  animation: caret-blink 1.1s steps(1) infinite;
}
#term-copy { border: 0; color: var(--text-muted); }

/* ===== product viewport ===== */
.app-viewport {
  width: min(1080px, 90%);
  margin: 56px auto 0;
  background: #0b0e10;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.viewport-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.viewport-dots { display: flex; gap: 6px; }
.viewport-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a5258;
}
.viewport-dots span:last-child { background: var(--accent); }
.session-live {
  margin-left: auto;
  color: var(--accent);
}
.session-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.app-viewport video,
.app-viewport img { width: 100%; }

/* ===== sections ===== */
.block-section {
  padding: 88px 0;
  background: var(--bg);
}
.block-section:nth-of-type(even) { background: var(--bg-alt); }
.block-section.grid-wash {
  background-color: var(--surface);
  background-image: var(--grid);
  background-size: 48px 48px;
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.section-rule::before,
.section-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.section-title,
.page-intro h1,
.block-section h2 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 650;
  text-align: center;
}
.intro-copy,
.page-intro p,
.block-section > .page-rail > p {
  margin: 16px auto 0;
  max-width: 680px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.65;
}
.intro-copy a,
.page-intro a,
.block-section a { color: var(--text); border-bottom: 1px solid var(--border-strong); }
.intro-copy a:hover,
.page-intro a:hover { color: var(--accent); border-color: var(--border-accent); }

.page-intro { padding-top: 24px; text-align: center; }
.page-intro .micro,
.micro {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.capability-grid,
.module-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
}
.mod-card,
.module-grid article {
  position: relative;
  min-height: 128px;
  padding: 18px 20px 20px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary);
  text-align: start;
}
.mod-card .idx,
.module-grid article::before {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}
.mod-card .tip {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 160ms ease, color 160ms ease;
}
.mod-card:hover,
.module-grid article:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(184, 255, 90, 0.24);
}
.mod-card:hover .tip { opacity: 1; color: var(--accent); }
.mod-card b,
.module-grid h3 {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.module-grid p { margin: 0; }

.doc-cta {
  display: inline-flex;
  margin: 32px auto 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}
.page-rail > .doc-cta { display: flex; width: fit-content; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 48px;
}
.metric-grid figure { margin: 0; }
.metric-grid svg { width: 100%; height: 128px; display: block; overflow: visible; }
.metric-grid figcaption {
  margin-top: 16px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ===== FAQ ===== */
.faq-stack {
  width: min(760px, 100%);
  margin: 28px auto 0;
}
[data-acc-item] { border-top: 1px solid var(--border); }
[data-acc-item]:last-child { border-bottom: 1px solid var(--border); }
[data-acc] {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  text-align: start;
  cursor: pointer;
  font-size: 16px;
}
.faq-n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  min-width: 2rem;
}
.toggle {
  margin-left: auto;
  color: var(--text-muted);
  transition: transform 200ms ease;
}
[data-acc-item][data-open] .toggle { transform: rotate(45deg); color: var(--accent); }
[data-acc-panel] {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 200ms ease;
}
[data-acc-item][data-open] [data-acc-panel] { grid-template-rows: 1fr; }
[data-acc-panel] > * {
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}
[data-acc-item][data-open] [data-acc-panel] > * {
  opacity: 1;
  transform: none;
}
[data-acc-panel] p {
  margin: 0 0 18px;
  padding-left: calc(2rem + 16px);
  color: var(--text-secondary);
  text-align: start;
}

/* ===== inner pages ===== */
.split-pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-copy { text-align: start; }
.split-copy h2,
.split-copy p { text-align: start; margin-left: 0; margin-right: 0; max-width: none; }
.split-copy p { margin-top: 16px; color: var(--text-secondary); }
.media-frame {
  margin: 0;
  background: #0b0e10;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.media-frame button { display: block; width: 100%; padding: 0; cursor: zoom-in; }

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--bg);
}
.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: start;
  font-size: 14px;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.data-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.def-list,
.def-grid { margin-top: 28px; }
.def-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.def-list > div,
.def-grid > div {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.def-list dt,
.def-grid dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.def-list dd,
.def-grid dd {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.fetch-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.2fr;
  margin: 40px 0 24px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  overflow: hidden;
}
.fetch-visual { min-height: 240px; background: #0b0e10; }
.fetch-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fetch-copy { padding: 40px 36px; text-align: start; }
.fetch-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}
.fetch-copy p {
  margin: 0 0 22px;
  max-width: 28rem;
  color: var(--text-secondary);
}

.build-pack {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 32px;
  align-items: start;
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.build-pack h2 {
  margin: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: start;
  max-width: none;
  white-space: nowrap;
  color: var(--text);
}
.build-list { display: flex; flex-direction: column; }
.build-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.build-row:hover {
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 2px 0 0 var(--accent);
}
.build-row .name,
.build-row code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
}
.build-ico { width: 18px; height: 18px; object-fit: contain; }
img.build-ico.ink { filter: invert(1); }
.build-row .cmd-btn { min-width: 108px; min-height: 32px; }

.req-grid,
.two-col,
.legal-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.req-copy h2,
.legal-grid h2,
.stack-block h2 {
  text-align: start;
  max-width: none;
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
}
.req-copy p,
.legal-grid p,
.stack-block p {
  text-align: start;
  max-width: none;
  margin: 0 0 14px;
  color: var(--text-secondary);
}

.change-log { list-style: none; margin: 32px 0 0; padding: 0; }
.change-log li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.change-log .ver {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.change-log li:first-child .ver { color: var(--accent); }
.change-log p { margin: 0; color: var(--text-secondary); text-align: start; }

.hash-box {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
  color: var(--text);
}

.step-list { list-style: none; margin: 28px auto 0; padding: 0; max-width: 48rem; }
.step-list li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  text-align: start;
}
.step-n {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-right: 8px;
}

.ledger-box {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: start;
}
.accent-line { color: var(--accent); margin: 0 0 8px; }
.dim-line { color: var(--text-muted); margin-top: 12px; }

.filter-label {
  display: block;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.filter-field {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.site-map-list { list-style: none; margin: 32px 0 0; padding: 0; }
.site-map-list li {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.site-map-list a { font-weight: 600; }
.site-map-list p { margin: 6px 0 0; color: var(--text-secondary); font-size: 14px; }

.lost-page .page-rail { text-align: start; }
.lost-page ul { margin: 28px 0 0; padding: 0; list-style: none; }
.lost-page li { padding: 8px 0; color: var(--text-secondary); }

/* ===== footer ===== */
.site-foot {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border-strong);
  background: var(--bg);
}
.foot-brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.04em;
}
.foot-brand span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.foot-rule {
  height: 1px;
  margin: 22px 0;
  background: var(--border);
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.foot-row a:hover { color: var(--text); }

.locale-switch { position: relative; }
.locale-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 11rem;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  z-index: 70;
}
.locale-panel:not([hidden]) { display: block; }
.locale-panel a {
  display: block;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.locale-panel a:hover,
.locale-panel a[aria-current="true"] { color: var(--text); }

.drawer-nav { display: none; padding: 8px 24px 20px; }
.drawer-nav a {
  display: block;
  padding: 8px 0;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 12, 0.92);
  padding: 24px;
}
.lightbox[hidden] { display: none !important; }
.lightbox img { max-height: 90vh; }
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--text);
  color: #090b0d;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

html.fx .block-section:not(.is-in),
html.fx .metric-grid:not(.is-in),
html.fx .build-pack:not(.is-in),
html.fx .fetch-hero:not(.is-in) {
  opacity: 0;
  transform: translateY(12px);
}
html.fx .block-section.is-in,
html.fx .metric-grid.is-in,
html.fx .build-pack.is-in,
html.fx .fetch-hero.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}
html.fx .metric-grid:not(.is-in) polyline {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}
html.fx .metric-grid.is-in polyline {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s ease;
}
html.fx .metric-grid svg circle {
  transform-box: fill-box;
  transform-origin: center;
}
html.fx .metric-grid:not(.is-in) svg circle { opacity: 0; transform: scale(0.2); }
html.fx .metric-grid.is-in svg circle { animation: dot-in 0.4s ease forwards; }
html.fx .metric-grid svg rect {
  transform-box: fill-box;
  transform-origin: center bottom;
}
html.fx .metric-grid:not(.is-in) svg rect { transform: scaleY(0.08); opacity: 0.3; }
html.fx .metric-grid.is-in svg rect { animation: bar-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }

.headline-xl,
.lead-copy,
.release-bar,
.platform-row,
.catalog-link,
.command-palette,
.app-viewport { animation: ledger-in 0.65s ease both; }
.lead-copy { animation-delay: 80ms; }
.platform-row { animation-delay: 140ms; }
.command-palette { animation-delay: 200ms; }
.app-viewport { animation-delay: 280ms; }

@keyframes ledger-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes bar-rise { to { transform: scaleY(1); opacity: 1; } }
@keyframes dot-in { to { opacity: 1; transform: scale(1); } }

@media (max-width: 1180px) {
  .route-cluster { gap: 16px; }
}

@media (max-width: 900px) {
  .page-rail { width: calc(100% - 40px); }
  .route-cluster { display: none; }
  #menu-btn { display: inline-flex; }
  .drawer-nav:not([hidden]) { display: block; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
  .launch-stage { min-height: 0; padding: 48px 0 28px; }
  .headline-xl { font-size: clamp(36px, 9vw, 46px); max-width: 16ch; }
  .capability-grid,
  .module-grid,
  .metric-grid,
  .split-pane,
  .fetch-hero,
  .build-pack,
  .req-grid,
  .two-col,
  .legal-grid,
  .def-grid,
  .change-log li { grid-template-columns: 1fr; }
  .build-pack h2 { white-space: normal; min-height: 0; padding-bottom: 8px; }
  .platform-row .cmd-btn { width: 100%; min-width: 0; }
  .fetch-copy { padding: 28px 22px; }
  .app-viewport { width: 100%; }
  [data-acc-panel] p { padding-left: 0; }
}

@media (max-width: 390px) {
  .page-rail { width: calc(100% - 28px); }
  .headline-xl { font-size: 34px; }
  .float-dl { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .block-section,
  .build-pack,
  .fetch-hero,
  .metric-grid,
  .metric-grid svg circle,
  .metric-grid svg rect { opacity: 1 !important; transform: none !important; }
}

[dir="rtl"] .locale-panel { right: auto; left: 0; }
[dir="rtl"] .float-dl { right: auto; left: 24px; }
[dir="rtl"] .command-palette { border-left: 1px solid rgba(255,255,255,.08); border-right: 2px solid var(--accent); }
[dir="rtl"] .route-cluster a::after { left: auto; right: 0; }
html[lang="zh-CN"] .route-cluster { letter-spacing: 0.08em; }
html[lang="ar"] {
  font-family: "Noto Sans Arabic", Geist, Inter, "IBM Plex Sans", system-ui, sans-serif;
}
