:root {
  --paper: #f3f3ef;
  --paper-strong: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #2c2c29;
  --muted: #62625c;
  --line: rgba(10, 10, 10, 0.18);
  --line-soft: rgba(10, 10, 10, 0.09);
  --green: #1f7a4d;
  --red: #b3261e;
  --amber: #8a5a00;
  --radius: 2px;
  --max: 1240px;
  --control-h: 2.75rem;

  /* Drop-shadows and surface tones used across light and dark themes */
  --shadow: rgba(10, 10, 10, 0.12);
  --surface: rgba(255, 255, 255, 0.24);
  --surface-soft: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(10, 10, 10, 0.28);
  --btn-chip: rgba(255, 255, 255, 0.16);
  --term-bg: #0b0b0a;
  --term-line: #0a0a0a;
  --term-ink: #e9e9e1;
  --bg-glow-a: rgba(255, 255, 255, 0.9);
  --bg-glow-b: rgba(255, 255, 255, 0.55);
  --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a0a0a;
    --paper-strong: #0a0a0a;
    --ink: #f3f3ef;
    --ink-soft: #d4d4cd;
    --muted: #8a8a82;
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.06);
    --green: #3aa86f;
    --shadow: rgba(255, 255, 255, 0.08);
    --surface: rgba(255, 255, 255, 0.06);
    --surface-soft: rgba(255, 255, 255, 0.03);
    --border-strong: rgba(255, 255, 255, 0.16);
    --btn-chip: rgba(0, 0, 0, 0.12);
    --term-bg: #161614;
    --term-line: rgba(255, 255, 255, 0.12);
    --bg-glow-a: rgba(255, 255, 255, 0.025);
    --bg-glow-b: rgba(255, 255, 255, 0.015);
  }
}

[data-theme="dark"] {
  --paper: #0a0a0a;
  --paper-strong: #0a0a0a;
  --ink: #f3f3ef;
  --ink-soft: #d4d4cd;
  --muted: #8a8a82;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --green: #3aa86f;
  --shadow: rgba(255, 255, 255, 0.08);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --border-strong: rgba(255, 255, 255, 0.16);
  --btn-chip: rgba(0, 0, 0, 0.12);
  --term-bg: #161614;
  --term-line: rgba(255, 255, 255, 0.12);
  --bg-glow-a: rgba(255, 255, 255, 0.025);
  --bg-glow-b: rgba(255, 255, 255, 0.015);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.03), transparent 28rem),
    radial-gradient(circle at 88% 2%, rgba(255, 255, 255, 0.02), transparent 24rem);
}

[data-theme="dark"] .hero .eyebrow {
  background: var(--surface-soft);
}

[data-theme="dark"] .hero-release {
  background: #141412;
  border-color: var(--line);
  box-shadow: none;
}

[data-theme="dark"] .hero-art {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
}

[data-theme="dark"] .feature,
[data-theme="dark"] .platform,
[data-theme="dark"] .docs-card {
  background: var(--surface);
  border-color: var(--line);
}

[data-theme="dark"] .feature:hover {
  background: var(--ink);
  color: var(--paper);
}

[data-theme="dark"] .feature h3,
[data-theme="dark"] .platform h3 {
  color: var(--ink);
}

[data-theme="dark"] .feature p,
[data-theme="dark"] .platform p {
  color: var(--ink-soft);
}

[data-theme="dark"] .download-inner {
  background: var(--paper-strong);
  border-color: var(--ink);
}

[data-theme="dark"] .release-panel {
  background: #0f0f0f;
  border-color: var(--line);
  box-shadow: none;
}

[data-theme="dark"] .release-version {
  color: var(--ink);
}

[data-theme="dark"] .download-inner h2,
[data-theme="dark"] .download-inner p {
  color: var(--ink);
}

[data-theme="dark"] .download-inner p {
  color: var(--ink-soft);
}

[data-theme="dark"] .docs-note {
  background: var(--surface-soft);
  border-left-color: var(--ink);
  color: var(--ink-soft);
}

[data-theme="dark"] .docs-note strong {
  color: var(--ink);
}

[data-theme="dark"] .docs-article :not(pre) > code {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line);
  color: var(--ink);
}

[data-theme="dark"] .site-header {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: var(--line);
}

[data-theme="dark"] .nav-github:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .site-nav {
  background: var(--paper);
  border-bottom-color: var(--ink);
}

[data-theme="dark"] .site-nav a {
  border-bottom-color: var(--line-soft);
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-h);
  height: var(--control-h);
  min-width: var(--control-h);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  transition: transform 180ms var(--ease-fluid), border-color 200ms var(--ease-fluid), background 200ms var(--ease-fluid), color 200ms var(--ease-fluid);
}

.theme-toggle,
.lang-switch summary,
.nav-github,
.menu-toggle { min-width: 2.75rem; min-height: 2.75rem; }

.lang-menu a { min-height: 2.75rem; display: flex; align-items: center; }

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  background: var(--surface);
}

.theme-toggle:active {
  transform: translateY(0) scale(0.96);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.theme-toggle svg {
  display: block;
  fill: none;
  stroke: currentColor;
  transition: transform 340ms var(--ease-fluid);
}

.theme-toggle:hover svg {
  transform: rotate(18deg);
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

[data-theme="dark"] .theme-toggle:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

/* Icon swap: light shows the sun, dark shows the moon. */
.theme-toggle svg .moon { display: none; }
[data-theme="dark"] .theme-toggle svg .sun { display: none; }
[data-theme="dark"] .theme-toggle svg .moon { display: block; }

/* Explicit button state wins over the dark attribute so the toggle is instant. */
.theme-toggle[aria-pressed="true"] svg .sun { display: none; }
.theme-toggle[aria-pressed="true"] svg .moon { display: block; }
.theme-toggle[aria-pressed="false"] svg .sun { display: block; }
.theme-toggle[aria-pressed="false"] svg .moon { display: none; }

/* ---------------------------------------------------------------- docs/mobile
     Professional responsive improvements for remaining pages. */

@media (max-width: 980px) {
  .docs { grid-template-columns: 1fr; gap: 2rem; }

  /* The header menu already carries site navigation on small screens. */
  .docs-sidebar > .sidebar-title:first-of-type,
  .docs-sidebar > nav:first-of-type {
    display: none;
  }

  .docs-sidebar > .sidebar-title:last-of-type {
    margin-bottom: 0.55rem;
  }

  .docs-sidebar > nav:last-of-type .sidebar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.74rem;
  }

  .docs-sidebar .sidebar-list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-soft);
    text-decoration: none;
  }

  .docs-sidebar .sidebar-list a:hover,
  .docs-sidebar .sidebar-list a.is-active,
  .docs-sidebar .sidebar-list a[aria-current="page"] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
  }
}

@media (max-width: 640px) {
  .docs { width: calc(100% - 4vw); padding: 2rem 0 3rem; }
  .docs-sidebar { grid-template-columns: 1fr; }
  .docs-article h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .docs-article h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .feature-grid, .platform-grid { grid-template-columns: 1fr; }
  .feature, .platform { min-height: auto; }
  .security-diagram { padding: 0.8rem; }
  .docs-table { display: block; width: 100%; max-width: 100%; overflow: visible; white-space: normal; }
  .docs-table thead { display: none; }
  .docs-table tbody { display: block; width: 100%; }
  .docs-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; border-bottom: 1px solid var(--line); }
  .docs-table td { min-width: 0; padding: 0.55rem 0.45rem; overflow-wrap: anywhere; white-space: normal; }
  .docs-table td:last-child { grid-column: 1 / -1; padding: 0.2rem 0.45rem 0.7rem; }
  .docs-table code { overflow-wrap: anywhere; word-break: break-word; }
  .docs-article { min-width: 0; }
  .docs-article :not(pre) > code { overflow-wrap: anywhere; word-break: break-word; }
  .docs-article > .docs-next .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .docs-next { min-width: 0; }
  .docs-next > .button { min-width: 0; max-width: 100%; flex: 1 1 100%; width: 100%; padding-inline: 0.8rem; font-family: var(--sans); font-size: 0.88rem; font-weight: 650; letter-spacing: 0; line-height: 1.3; }
  .faq-list summary { font-size: 0.92rem; }
  .terminal pre { padding: 0.8rem; font-size: 0.78rem; line-height: 1.55; overflow-wrap: anywhere; }
  .download-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

[data-theme="dark"] .phone {
  border-color: var(--border-strong);
  background: #1a1a1a;
  box-shadow: 0 2.5rem 5rem rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .phone-bar {
  color: var(--ink-soft);
}

[data-theme="dark"] .phone-notch {
  background: #0a0a0a;
  border-color: #242424;
}

[data-theme="dark"] .phone-screen {
  background: #151515;
  color: #e8e8e0;
}

[data-theme="dark"] .phone-head {
  border-bottom-color: #2c2c2c;
}

[data-theme="dark"] .phone-kicker {
  color: #8a8a82;
}

[data-theme="dark"] .phone-status {
  border-color: #4b4b45;
  color: #d4d4cd;
}

[data-theme="dark"] .bubble-user {
  background: var(--green);
  color: var(--paper);
}

[data-theme="dark"] .bubble-agent {
  background: var(--surface);
  color: var(--ink);
}

[data-theme="dark"] .bubble-agent b,
[data-theme="dark"] .bubble-agent strong {
  color: var(--ink);
}

[data-theme="dark"] .tool-card {
  background: var(--surface);
  border-color: var(--line);
}

[data-theme="dark"] .tool-card .tool-top .tool-state {
  color: var(--ink-soft);
}

[data-theme="dark"] .tool-card code {
  color: var(--ink);
}

[data-theme="dark"] .diff-lines {
  border-color: var(--line);
}

[data-theme="dark"] .diff-add {
  color: var(--green);
}

[data-theme="dark"] .diff-del {
  color: #e06c64;
}

[data-theme="dark"] .tool-actions .tool-deny,
[data-theme="dark"] .tool-actions .tool-allow {
  border-color: var(--line);
  color: var(--ink-soft);
}

[data-theme="dark"] .tool-actions .tool-deny:hover,
[data-theme="dark"] .tool-actions .tool-allow:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

[data-theme="dark"] .nav-github:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-github-mark {
  color: var(--ink);
}

[data-theme="dark"] .nav-star {
  color: var(--ink);
}

[data-theme="dark"] .nav-github-count {
  border-color: var(--paper-strong);
  background: var(--green);
  color: #fff;
}

[data-theme="dark"] .star-count {
  border-color: var(--line-strong, var(--line));
  color: var(--ink);
}

[data-theme="dark"] .brand-name {
  color: var(--ink);
}

[data-theme="dark"] .brand-build {
  color: var(--muted);
}

[data-theme="dark"] .site-header {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: var(--line);
}

[data-theme="dark"] .site-nav {
  background: var(--paper);
  border-bottom-color: var(--ink);
}

[data-theme="dark"] .site-nav a {
  border-bottom-color: var(--line-soft);
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

[data-theme="dark"] .theme-toggle svg {
  fill: var(--ink);
}

[data-theme="dark"] .theme-toggle:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

[data-theme="dark"] .menu-toggle {
  border-color: var(--ink);
  color: var(--ink);
}

[data-theme="dark"] .site-footer {
  border-top-color: var(--line);
}

[data-theme="dark"] .site-footer .footer-legal {
  color: var(--ink-soft);
}

[data-theme="dark"] .footer-links a {
  color: var(--ink);
}

[data-theme="dark"] .footer-brand-copy strong {
  color: var(--ink);
}

[data-theme="dark"] .footer-brand-copy p {
  color: var(--ink-soft);
}

[data-theme="dark"] .theme-toggle[aria-pressed="true"] svg .sun { display: none; }
[data-theme="dark"] .theme-toggle:not([aria-pressed="true"]) svg .moon { display: none; }

:root {
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas,
    monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 8%, var(--bg-glow-a), transparent 28rem),
    radial-gradient(circle at 88% 2%, var(--bg-glow-b), transparent 24rem);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -10rem;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 0 clamp(1rem, 4vw, 3.75rem);
  border-bottom: 1px solid rgba(10, 10, 10, 0.12);
  background: rgba(243, 243, 239, 0.92);
  backdrop-filter: blur(18px) saturate(1.2);
  transition: min-height 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  text-decoration: none;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.brand-mark {
  display: block;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.68rem;
  object-fit: contain;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

.brand:hover .brand-mark { transform: translateY(-1px); box-shadow: 0 5px 13px rgba(10, 10, 10, 0.16); }

.brand-name { line-height: 1; white-space: nowrap; }
.footer-brand-copy { min-width: 0; }
.footer-brand-copy strong { line-height: 1.3; }
.footer-brand-copy p { max-width: 20rem; line-height: 1.55; }

.brand-build {
  align-self: start;
  margin-top: 0.28rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.brand-build i { color: var(--green); font-style: normal; }

.cmd-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-top: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.cmd-note code {
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9em;
}

@media (min-width: 900px) and (max-width: 1250px) {
  .hero { grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 3.5vw, 3rem); }
  .hero .display { font-size: clamp(3rem, 5.4vw, 4.2rem); }
  .hero-art { min-height: 32rem; }
  .phone { width: min(19rem, 100%); }
}

@media (max-width: 980px) {
  .site-header { min-height: 4.75rem; }
}

@media (min-width: 981px) and (max-width: 1450px) {
  .site-header { gap: clamp(0.2rem, 0.45vw, 0.4rem); padding-inline: clamp(0.45rem, 0.8vw, 0.75rem); }
  .site-nav { gap: clamp(0.3rem, 0.55vw, 0.5rem); font-size: clamp(0.52rem, 0.58vw, 0.58rem); letter-spacing: 0; }
  .site-header .brand { gap: 0.3rem; font-size: 0.58rem; }
  .site-header .brand-mark { width: 1.55rem; height: 1.55rem; flex-basis: 1.55rem; }
  .site-header .brand-build { display: none; }
  .header-tools { gap: 0.15rem; }
  .site-header { --control-h: 2.5rem; }
  .theme-toggle, .lang-switch summary, .nav-github { width: var(--control-h); min-width: var(--control-h); min-height: var(--control-h); height: var(--control-h); }
  .lang-switch summary { width: var(--control-h); min-width: var(--control-h); }
  .nav-github { width: var(--control-h); }
  .nav-cta { padding-inline: 0.4rem !important; font-size: 0.52rem; }
  .lang-code { font-size: 0.52rem; }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .site-header { justify-content: flex-start; gap: 0.15rem; }
  .site-header .brand { flex: 0 1 auto; min-width: 0; }
  .site-header .brand-name { max-width: 3.8rem; overflow: hidden; text-overflow: ellipsis; }
  .site-nav { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 0.17rem; font-size: 0.44rem; }
  .site-nav .nav-cta { padding-inline: 0.2rem !important; font-size: 0.43rem; }
  .header-tools { flex: 0 0 auto; margin-inline-start: auto; gap: 0.05rem; }
  .site-header { --control-h: 2.2rem; }
  .theme-toggle, .lang-switch summary, .nav-github { width: var(--control-h); min-width: var(--control-h); min-height: var(--control-h); height: var(--control-h); }
}

@media (min-width: 981px) and (max-width: 1060px) {
  .site-header { padding-inline: 0.25rem; gap: 0.08rem; }
  .site-nav { gap: 0.12rem; font-size: 0.4rem; }
  .site-nav .nav-cta { font-size: 0.4rem; }
  .site-header .brand { gap: 0.12rem; }
  .site-header .brand-mark { width: 1.2rem; height: 1.2rem; flex-basis: 1.2rem; }
  .site-header .brand-name { max-width: 3rem; font-size: 0.48rem; }
  .header-tools { gap: 0; }
  .site-header { --control-h: 2rem; }
}

@media (min-width: 1101px) and (max-width: 1350px) {
  .site-header { gap: 0.3rem; padding-inline: 0.55rem; }
  .site-nav { gap: 0.3rem; font-size: 0.52rem; }
  .header-tools { gap: 0.1rem; }
  .site-header .brand { gap: 0.25rem; }
  .site-header .brand-name { max-width: 5.5rem; overflow: hidden; text-overflow: ellipsis; font-size: 0.56rem; }
  .site-header { --control-h: 2.4rem; }
  .theme-toggle, .lang-switch summary, .nav-github { width: var(--control-h); min-width: var(--control-h); min-height: var(--control-h); height: var(--control-h); }
}


.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.8vw, 1.55rem);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 0.55rem 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0.15rem;
  inset-inline-start: 0;
  height: 1px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-fluid);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a[aria-current="page"]:not(.nav-cta)::after {
  transform: scaleX(1);
}

.nav-star {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: var(--control-h);
  height: var(--control-h);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  text-decoration: none !important;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-github:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.nav-github-icon {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--ink);
}

.nav-github-count {
  display: none;
}

.nav-github:focus-visible,
.lang-switch summary:focus-visible,
.menu-toggle:focus-visible {
  outline-color: var(--green);
  outline-offset: 3px;
}

.lang-menu {
  border-radius: 0.75rem;
  padding: 0.4rem;
}

.lang-menu a { border-radius: 0.45rem; }

.nav-github-mark {
  display: block;
}

.nav-github-count:empty {
  display: none;
}

.star-icon {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
}

.star-count {
  display: inline-grid;
  min-width: 2.1rem;
  max-width: 6ch;
  min-height: 1.35rem;
  place-items: center;
  padding: 0 0.45rem;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-count:empty {
  display: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h);
  padding-inline: 1rem !important;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper) !important;
}

.menu-toggle {
  display: none;
  width: var(--control-h);
  min-width: var(--control-h);
  height: var(--control-h);
  padding: 0.4rem;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

main {
  overflow: clip;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  direction: ltr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: min(100% - 6vw, var(--max));
  min-height: calc(100svh - 4.5rem);
  margin: 0 auto;
  padding: clamp(3rem, 5.5vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero-copy { padding-top: clamp(0rem, 2.5vw, 2rem); }
.hero-copy .hero-release { margin-top: 1.15rem; }
.hero-copy .hero-download-ghost { display: none; }
.hero-copy .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
}
  .hero-copy .actions .button { width: auto; min-height: 2.55rem; padding: 0.62rem 0.78rem; font-size: 0.72rem; }

.hero-copy .cmd-switcher { max-width: 34rem; margin-top: 0.75rem; }
.hero-copy .cmd-tabs label { min-height: 2.7rem; font-size: 0.8rem; }
.hero-copy .cmd-panel pre { padding: 0.8rem 0.95rem 0.95rem; font-size: 0.95rem; }
.hero-copy .cmd-note { font-size: 0.82rem; }

.hero-command {
  display: grid;
  gap: 0.45rem;
  max-width: 37rem;
  margin-top: 0.8rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--ink);
  color: #e9e9e1;
}

.hero-command-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.hero-command-copy { flex: 0 0 auto; }
.hero-command pre { margin: 0; overflow-x: auto; white-space: pre; }

.hero-command-label {
  color: #a4a49b;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-command code {
  display: block;
  min-width: max-content;
  color: inherit;
  font-family: var(--mono);
  font-size: clamp(0.56rem, 0.8vw, 0.72rem);
  line-height: 1.55;
}

.hero > .hero-art { grid-column: 1; grid-row: 1; }
.hero > .hero-copy { grid-column: 2; grid-row: 1; }
.hero > .hero-copy .lede { margin-top: 1.9rem; }

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero h1 {
  font-size: clamp(3.4rem, 8.4vw, 7.4rem);
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

@supports (-webkit-text-stroke: 1px black) {
  .hero h1 em {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
  }
}

.lede {
  max-width: 34rem;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.72rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background 180ms var(--ease-fluid), color 180ms var(--ease-fluid), border-color 180ms var(--ease-fluid),
    transform 180ms var(--ease-fluid), box-shadow 220ms var(--ease-fluid);
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 12px 26px var(--shadow);
}

:lang(ar) .button,
:lang(ar) .hero-release-button,
:lang(ar) .nav-cta {
  letter-spacing: 0;
  text-transform: none;
}

.button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  border-color: var(--ink-soft);
  background: var(--ink-soft);
}

.button:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.button-quiet,
.button-outline {
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover,
.button-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

[data-theme="dark"] .button {
  background: transparent;
}

[data-theme="dark"] .button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

[data-theme="dark"] .button-primary:hover {
  border-color: var(--ink-soft);
  background: var(--ink-soft);
}

[data-theme="dark"] .button-quiet:hover,
[data-theme="dark"] .button-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 0.4rem 1.4rem;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line-soft);
}

.footer-meta > div {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}

.footer-meta > div + div::before {
  color: var(--line);
  content: "·";
  font-size: 0.8rem;
  line-height: 1;
}

.footer-meta dt {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

:lang(ar) .footer-meta dt,
:lang(ar) .footer-links h2,
:lang(ar) .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.footer-meta dt::after {
  color: var(--line);
  content: ":";
}

.footer-meta dd {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 38rem;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: min(34rem, 92%);
  aspect-ratio: 1;
}

.orbit-two {
  width: min(25rem, 68%);
  aspect-ratio: 1;
  border-style: dashed;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(24rem, 92%);
  padding: 0.55rem;
  border: 1px solid #333;
  border-radius: 2.7rem;
  background: #0c0c0c;
  box-shadow: 0 2.5rem 5rem rgba(10, 10, 10, 0.28);
  transform-origin: center;
  transform: perspective(1100px) rotate(-7deg) rotateY(-2deg);
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.9rem 0.55rem;
  color: #cfcfc8;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.phone-notch {
  width: 4.2rem;
  height: 1.2rem;
  border-radius: 1rem;
  background: #000;
  border: 1px solid #242424;
}

.phone-screen {
  min-height: 30rem;
  padding: 1rem 0.85rem;
  border-radius: 2.2rem;
  background: #111;
  color: #f1f1eb;
  font-size: 0.92rem;
  line-height: 1.45;
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.3rem 0.9rem;
  border-bottom: 1px solid #2c2c2c;
}

.phone-kicker {
  color: #8f8f87;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-status {
  padding: 0.25rem 0.45rem;
  border: 1px solid #4b4b45;
  border-radius: 999px;
  color: #d8d8cf;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.bubble {
  max-width: 88%;
  margin-top: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.bubble-user {
  margin-inline-start: auto;
  border-bottom-right-radius: 0.2rem;
  background: #f1f1eb;
  color: #111;
}

.bubble-agent {
  border: 1px solid #303030;
  border-bottom-left-radius: 0.2rem;
  background: #171717;
}

.bubble-short {
  max-width: 75%;
}

.tool-card {
  margin-top: 0.8rem;
  padding: 0.7rem;
  border: 1px solid #3a3a36;
  border-radius: 0.8rem;
  background: #0b0b0b;
}

.tool-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-state {
  color: #e0b15a;
}

.tool-card code {
  color: #bdbdb4;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.diff-lines {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.55rem;
  padding: 0.45rem;
  border: 1px solid #262624;
  font-family: var(--mono);
  font-size: 0.72rem;
  direction: ltr;
  unicode-bidi: isolate;
}

.diff-del {
  color: #e06c64;
}

.diff-add {
  color: #74c69d;
}

.tool-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.tool-deny,
.tool-allow {
  padding: 0.3rem 0.55rem;
  border: 1px solid #40403a;
  border-radius: 0.35rem;
}

.tool-allow {
  background: #f1f1eb;
  color: #111;
}

.phone-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #343430;
  border-radius: 1.2rem;
  color: #77776f;
  font-size: 0.78rem;
}

.diff-lines,
.tool-card code,
.phone-notch,
.phone-status { unicode-bidi: isolate; }

html[dir="rtl"] .phone { direction: rtl; }
html[dir="rtl"] .diff-lines,
html[dir="rtl"] .tool-card code { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .tool-top span:first-child { direction: ltr; unicode-bidi: isolate; }

.phone-send {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 50%;
  background: #f1f1eb;
  color: #111;
  font-size: 0.8rem;
}

.ticker {
  display: grid;
  width: min(100% - 6vw, var(--max));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 3rem);
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-group {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.ticker-label {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ticker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker-list li {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1.35;
}

@media (max-width: 600px) {
  .ticker {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .ticker-group {
    gap: 0.6rem;
  }
}

.section {
  width: min(100% - 6vw, var(--max));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  border-bottom: 1px solid var(--line);
}

section[id] {
  scroll-margin-top: 5.5rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

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

.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.section-head > p:last-child {
  max-width: 31rem;
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.feature {
  position: relative;
  min-height: 17rem;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
  transition: transform 220ms var(--ease-fluid),
              box-shadow 220ms var(--ease-fluid),
              background 180ms var(--ease-fluid),
              color 180ms var(--ease-fluid);
}

.feature:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px var(--shadow);
  z-index: 1;
}

.feature-index {
  display: block;
  margin-bottom: 2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.feature:hover .feature-index {
  color: #9d9d94;
}

.feature h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.feature:hover p {
  color: #bdbdb4;
}

.section-dark {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-right: max(3vw, calc((100% - var(--max)) / 2));
  padding-left: max(3vw, calc((100% - var(--max)) / 2));
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid #2a2a2a;
}

.section-dark .eyebrow,
.section-dark .section-head > p:last-child {
  color: #9a9a91;
}

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.security-lead {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
  color: #c9c9c0;
  font-size: 0.88rem;
}

.check-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--paper);
  content: "";
}

.text-link {
  display: inline-block;
  margin-top: 1.8rem;
  border-bottom: 1px solid currentColor;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.section:not(.section-dark) .text-link {
  color: var(--ink);
}

.security-diagram {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem;
  border: 1px solid #343430;
}

.diagram-node {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.2rem 0.8rem;
  align-items: baseline;
  padding: 0.9rem;
  border: 1px solid #343430;
}

.diagram-label {
  grid-row: span 2;
  color: #8e8e85;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.diagram-node strong {
  font-size: 0.9rem;
}

.diagram-node small {
  color: #8e8e85;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.diagram-line {
  position: relative;
  height: 1.7rem;
  margin-left: 2.4rem;
  border-left: 1px dashed #4b4b45;
}

.diagram-line span {
  position: absolute;
  top: 0.2rem;
  left: 0.7rem;
  color: #77776f;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.platform {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 14rem;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
  transition: transform 220ms var(--ease-fluid),
              box-shadow 220ms var(--ease-fluid),
              background 180ms var(--ease-fluid);
}

.platform:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px var(--shadow);
  z-index: 1;
}

.platform-tag {
  width: fit-content;
  margin-bottom: 2.5rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.platform p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.platform-meta {
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-install {
  border-bottom: 1px solid var(--line);
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.install-command-slot {
  min-width: 0;
  align-self: start;
  grid-column: 1 / -1;
}

.install-command-slot .cmd-switcher {
  max-width: 42rem;
  margin-top: 0;
}

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1.12rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #e8e8e0;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #343430;
  color: #9d9d94;
  font-family: var(--mono);
  font-size: 0.6rem;
}

.terminal-dots {
  display: flex;
  gap: 0.3rem;
}

.terminal-dots i {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #4b4b45;
}

.copy-button {
  padding: 0.25rem 0.5rem;
  border: 1px solid #4b4b45;
  background: transparent;
  color: #d8d8cf;
  font-family: var(--mono);
  font-size: 0.58rem;
  cursor: pointer;
}

.copy-button:hover {
  border-color: #9d9d94;
}

.terminal pre {
  margin: 0;
  padding: 1.2rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: clamp(0.64rem, 1.1vw, 0.76rem);
  line-height: 1.75;
}

.term-comment {
  color: #77776f;
}

.term-ok {
  color: #7dcfa3;
}

.term-warn {
  color: #e0b15a;
}

.section-download {
  border-bottom: 1px solid var(--line);
}

.download-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line-strong, var(--ink));
  border-radius: 1rem;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.6), transparent 60%),
    var(--paper-strong);
}

.download-inner h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.download-copy > p {
  max-width: 34rem;
  color: var(--muted);
}

/* Release card ---------------------------------------------------------- */

.release-panel {
  display: grid;
  gap: 0.3rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.07);
}

.release-kicker {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.release-version {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.release-meta {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.release-download {
  width: 100%;
  margin-top: 1rem;
  justify-content: space-between;
  padding-block: 0.5rem;
  padding-inline: 1.2rem 0.6rem;
}

.release-download::after {
  display: inline-grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 50%;
  background: var(--btn-chip);
  content: "↓";
  font-size: 0.85rem;
  line-height: 1;
}

.release-panel .link-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
}

/* ---------------------------------------------------------------- docs shell */

.docs {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  width: min(100% - 6vw, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}

.docs-sidebar {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1.6rem;
}

.sidebar-title {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-list {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.sidebar-list a {
  color: var(--ink-soft);
  text-decoration: none;
}

.sidebar-list a:hover {
  text-decoration: underline;
}

.sidebar-list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.sidebar-list a.is-active {
  color: var(--ink);
  font-weight: 700;
}

.docs-body {
  min-width: 0;
}

.docs-article > header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.docs-article .text-link {
  color: var(--ink);
}

.docs-article .security-diagram,
.docs-article .diagram-node {
  border-color: var(--line);
}

.docs-article .diagram-label,
.docs-article .diagram-node small,
.docs-article .diagram-line span {
  color: var(--muted);
}

.docs-article .diagram-line {
  border-left-color: var(--line);
}

.docs-article h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.docs-article .docs-lede {
  max-width: 42rem;
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.docs-article h2 {
  margin: 3rem 0 0.9rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.docs-article h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.docs-article p {
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.docs-article ul,
.docs-article ol {
  max-width: 44rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.docs-article li {
  margin-bottom: 0.35rem;
}

.docs-article :not(pre) > code {
  padding: 0.08rem 0.32rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--mono);
  font-size: 0.82em;
}

.docs-article a {
  text-decoration-thickness: 1px;
}

.docs-note {
  max-width: 44rem;
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--ink);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.docs-note strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-table {
  width: 100%;
  max-width: 46rem;
  margin: 1.2rem 0 0;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}

.docs-table th,
.docs-table td {
  min-width: 0;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.docs-table th {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-table td {
  color: var(--ink-soft);
}

.docs-table code {
  font-family: var(--mono);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .docs-table { display: block; width: 100%; max-width: 100%; overflow: visible; white-space: normal; }
  .docs-table thead { display: none; }
  .docs-table tbody { display: block; width: 100%; }
  .docs-table tr { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  .docs-table td { min-width: 0; padding: 0.55rem 0.4rem; overflow-wrap: anywhere; white-space: normal; }
  .docs-table td:last-child { grid-column: 1 / -1; padding: 0.2rem 0.4rem 0.7rem; }
  .docs-table code { overflow-wrap: anywhere; word-break: break-word; }
  .docs-article { min-width: 0; }
  .docs-article :not(pre) > code { overflow-wrap: anywhere; word-break: break-word; }
}

.terminal-stack {
  display: grid;
  gap: 1rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.docs-card {
  display: block;
  position: relative;
  padding: 1.3rem 1.4rem;
  background: var(--paper-strong);
  text-decoration: none;
  transition: transform 220ms var(--ease-fluid),
              box-shadow 220ms var(--ease-fluid),
              background 180ms var(--ease-fluid),
              color 180ms var(--ease-fluid);
}

.docs-card:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px var(--shadow);
  z-index: 1;
}

.docs-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.docs-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.docs-card:hover p {
  color: #bdbdb4;
}

.docs-card span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-card:hover span {
  color: #9d9d94;
}

.docs-next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.4rem;
}

.page-hero {
  width: min(100% - 6vw, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow {
  margin-bottom: 1rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.page-hero p {
  max-width: 38rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.page-hero .actions {
  margin-top: 1.8rem;
}

.notfound {
  min-height: 60vh;
}

.notfound-title {
  font-size: clamp(3rem, 10vw, 7rem);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 1.1rem;
  inset-inline-end: 0;
  color: var(--muted);
  content: "+";
  font-family: var(--mono);
  font-size: 1rem;
}

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

.faq-list details p {
  max-width: 46rem;
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.75rem 2rem;
  width: min(100% - 6vw, var(--max));
  margin: 0 auto;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: center;
  align-self: start;
}

.footer-brand .brand-mark {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  font-size: 0.98rem;
}

.footer-brand strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  justify-content: flex-end;
  min-width: 0;
}

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

.footer-link-group {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  min-width: 0;
}

.footer-link-group {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.footer-group-title {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-link-group h2 { margin: 0 0 0.6rem; }

.footer-group-items {
  display: grid;
  align-content: start;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.1rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links a {
  width: fit-content;
  border-radius: 0.35rem;
  transition: color 160ms ease, background-color 160ms ease, padding 160ms ease;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.footer-links a:hover {
  padding-inline: 0.35rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1.5rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.site-footer { row-gap: 1.25rem; }

.footer-links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
}

.footer-copyright,
.footer-disclaimer,
.footer-legal p {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.footer-license { white-space: nowrap; }

.footer-group-title {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-legal p {
  margin: 0;
}

.footer-copyright {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

.footer-disclaimer {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-align: end;
}

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

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.1em;
}

.hero .eyebrow::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.12);
  content: "";
}

.hero .display {
  max-width: 9ch;
  font-size: clamp(3.2rem, 6.2vw, 5.4rem);
  line-height: 1.25;
}

.hero h1 em {
  text-decoration: underline;
  text-decoration-color: rgba(31, 122, 77, 0.42);
  text-decoration-thickness: 0.045em;
  text-underline-offset: 0.11em;
}

.hero .lede {
  max-width: 32rem;
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.58;
}

.hero-release {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 42rem;
  margin-top: 1.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.045);
}

.hero-release-copy { display: grid; min-width: 0; gap: 0.12rem; }
.hero-release-kicker {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-release-copy strong { font-size: 0.95rem; line-height: 1.4; }
.hero-release-copy strong span {
  margin-left: 0.25rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.hero-release-copy small { color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.hero-release-button {
  display: inline-flex;
  min-height: 3rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0 0.55rem 0 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.hero-release-button:hover { transform: translateY(-1px); background: var(--ink-soft); }
.hero-release-button b {
  display: inline-grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 50%;
  background: var(--btn-chip);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
}
.hero-release-button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-art {
    animation: rise 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-art {
    animation-delay: 120ms;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
  }

  .hero-art {
    min-height: clamp(26rem, 86vw, 36rem);
    grid-column: 1;
    grid-row: 1;
    overflow: visible;
    padding: 2.25rem clamp(1rem, 5vw, 2rem);
  }

  .phone { width: clamp(270px, 86vw, 370px); max-width: 100%; }
  .phone-screen { min-height: 31rem; }

  .hero-copy { grid-column: 1; grid-row: 2; max-width: 42rem; min-width: 0; margin-inline: auto; padding-top: 0; }
  .hero > .hero-copy .lede { margin-top: 1rem; }
  .hero .display { max-width: 12ch; font-size: clamp(2.53rem, 7.5vw, 4rem); line-height: 1.25; }
  .hero .lede { max-width: 40ch; font-size: clamp(1.05rem, 4.2vw, 1.18rem); line-height: 1.6; }
  .hero-copy .actions { grid-template-columns: 1fr; gap: 0.75rem; }
  .hero-copy .actions .button { width: 100%; min-width: 0; min-height: 3.25rem; justify-content: flex-start; padding-inline: 1rem; font-size: 0.9rem; }
  .hero-copy .actions .button-primary { margin-top: 0; }
  .hero-copy .cmd-switcher { width: 100%; max-width: none; }
  .hero-release { max-width: 42rem; }
  .hero-command { max-width: 42rem; }

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

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

  .section-head,
  .security-grid,
  .install-grid,
  .download-inner {
    grid-template-columns: 1fr;
  }

  .install-command-slot { margin-top: 1rem; }

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

  .section-head > p:last-child {
    margin-top: 0.5rem;
  }
}

@media (max-width: 980px) {
  body {
    font-size: 15px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 1rem;
    min-height: 4.75rem;
    gap: 0.65rem;
  }

  .brand {
    display: inline-flex;
    gap: 0.55rem;
    min-width: 0;
    max-width: 100%;
  }

  .brand-mark { flex-basis: 2.4rem; width: 2.4rem; height: 2.4rem; }
  .brand-name { max-width: min(10rem, 30vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-build { display: none; }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1rem 1rem;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-cta {
    margin-top: 0.8rem;
    text-align: center;
  }

  .hero,
  .section,
  .site-footer {
    width: calc(100% - 2rem);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 2.25rem 0 2.5rem;
  }

  .hero > .hero-art,
  .hero > .hero-copy {
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-column: 1;
  }

  .hero > .hero-art { grid-row: 1; }
  .hero > .hero-copy { grid-row: 2; }
  .hero-copy > * { min-width: 0; }
  .hero-copy .display { max-width: 100%; overflow-wrap: normal; }

  .hero .eyebrow { font-size: 0.75rem; letter-spacing: 0.04em; }
  .hero-art {
    min-height: clamp(31rem, 115vw, 38rem);
    padding: 2rem clamp(1.5rem, 7vw, 2.5rem);
    overflow: visible;
  }

  .phone {
    width: min(78vw, 320px);
    max-width: 100%;
    transform: rotate(-3deg);
  }

  .phone-screen { min-height: 28rem; }

  .hero-release { align-items: stretch; flex-direction: row; flex-wrap: wrap; margin-top: 1rem; }
  .hero-release-copy { min-width: min(100%, 13rem); }
  .hero-release-copy strong { overflow-wrap: anywhere; }
  .hero-release-button { justify-content: space-between; }
  .hero-command { width: 100%; }
  .hero-command-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
  .hero-command-label { min-width: 0; overflow-wrap: anywhere; }
  .hero-command pre { margin: 0; overflow-x: auto; white-space: pre; }
  .hero-command pre code { min-width: max-content; overflow-wrap: normal; white-space: pre; }
  .hero .actions { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 0.9rem; }
  .hero .actions .button { width: 100%; min-width: 0; min-height: 3.25rem; justify-content: flex-start; padding-inline: 1rem; font-size: 0.875rem; white-space: nowrap; }
  .hero .actions .button-primary { margin-top: 0; }

  .footer-meta {
    display: grid;
    gap: 0;
    padding: 0;
  }

  .footer-meta > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-top: 1px solid var(--line-soft);
  }

  .footer-meta > div + div::before {
    content: none;
  }

  .footer-meta > div:first-child {
    border-top: 0;
  }

  .footer-meta dd {
    text-align: end;
  }

  .feature-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: auto;
  }

  .feature-index {
    margin-bottom: 1.6rem;
  }

  .section-dark {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .security-diagram {
    padding: 0.7rem;
  }

  .download-inner {
    padding: 1.4rem;
  }

  .docs {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  .docs-sidebar {
    position: static;
    display: block;
    margin-bottom: 0.5rem;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--paper-strong);
  }

  [data-theme="dark"] .docs-sidebar {
    background: #0f0f0f;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-top: 1.8rem;
    padding-bottom: 1.25rem;
  }

  .footer-brand .brand-mark { width: 2.7rem; height: 2.7rem; flex-basis: 2.7rem; }

  .footer-links {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas:
      "product documentation"
      "community documentation";
    align-items: start;
    justify-content: initial;
    gap: 1.25rem 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .footer-link-group:nth-child(1) { grid-area: product; }
  .footer-link-group:nth-child(2) { grid-area: documentation; }
  .footer-link-group:nth-child(3) { grid-area: community; }

  .footer-link-group:last-child {
    grid-column: auto;
  }

  .footer-link-group { gap: 0.45rem; }
  .footer-group-title { font-size: 0.62rem; letter-spacing: 0.1em; }
  .footer-group-items { gap: 0.15rem; }

  .footer-links a {
    min-height: 2.5rem;
    font-size: 0.84rem;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1.1rem;
    line-height: 1.7;
  }

  .footer-links a { min-height: 2.75rem; font-size: 0.9rem; }
  .footer-meta dd { font-size: 0.95rem; }
  .footer-meta dt { font-size: 0.78rem; }
  .footer-disclaimer { font-size: 0.95rem; }

  .footer-disclaimer {
    text-align: start;
  }
}

@media (max-width: 380px) {
  .site-header { gap: 0.25rem; padding-inline: 0.4rem; }
  .brand { gap: 0.25rem; }
  .brand-mark { flex-basis: 1.8rem; width: 1.8rem; height: 1.8rem; }
  .brand-name { max-width: 4.5rem; font-size: 0.58rem; }
  .header-tools { --control-h: 2.75rem; gap: 0.25rem; }
  .footer-links { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
  .footer-link-group:nth-child(n) { grid-area: auto; }
}

@media (max-width: 640px) {
  .hero-release {
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.9rem;
  }

  .hero-release-button {
    width: 100%;
    justify-content: space-between;
    padding-inline: 1.1rem 0.55rem;
  }
}

@media (max-width: 479px) {
  .hero .actions {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero .actions .button {
    width: 100%;
    min-height: 3.25rem;
    justify-content: flex-start;
    padding-inline: 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 0.35rem;
    padding-inline: 0.6rem;
  }

  .brand {
    grid-template-columns: 2.25rem auto;
    column-gap: 0.45rem;
    flex: 0 1 auto;
    max-width: none;
  }

  .brand { min-width: 0; gap: 0.35rem; }
  .brand-mark { flex: 0 0 2rem; width: 2rem; height: 2rem; }
  .brand-name { max-width: 24vw; overflow: hidden; text-overflow: ellipsis; font-size: 0.62rem; letter-spacing: -0.03em; }
  .header-tools { --control-h: 2.75rem; flex: 0 0 auto; gap: 0.5rem; }
  .nav-github { padding-inline: 0.55rem; }
  .lang-switch summary { padding-inline: 0.55rem; }
  .menu-toggle { width: var(--control-h); height: var(--control-h); }

  .footer-links {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "product documentation" "community documentation";
    gap: 1.25rem 0.8rem;
  }

  .footer-link-group:nth-child(1) { grid-area: product; }
  .footer-link-group:nth-child(2) { grid-area: documentation; }
  .footer-link-group:nth-child(3) { grid-area: community; }
  .footer-links a { min-height: 2.75rem; font-size: 0.84rem; }
}

@media (max-width: 340px) {
  .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone { transform: none !important; }
  html {
    scroll-behavior: auto;
  }

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

/* ---------------------------------------------------------------- header tools
   Language switch, star badge and the three-line menu button stay in the
   header bar, so they are reachable on a phone without opening the menu. */

.site-header {
  gap: clamp(1rem, 2vw, 2rem);
}

.site-nav {
  margin-inline-start: auto;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-tools > * {
  flex: 0 0 auto;
}

@media (min-width: 981px) and (max-width: 1100px) {
  .site-header { justify-content: flex-start; gap: 0.15rem; }
  .site-header .brand { flex: 0 1 auto; min-width: 0; gap: 0.12rem; }
  .site-header .brand-mark { width: 1.2rem; height: 1.2rem; flex-basis: 1.2rem; }
  .site-header .brand-name { max-width: 3rem; overflow: hidden; text-overflow: ellipsis; font-size: 0.48rem; }
  .site-nav { flex: 1 1 auto; min-width: 0; margin-inline-start: 0; justify-content: center; gap: 0.12rem; font-size: 0.4rem; }
  .site-nav .nav-cta { padding-inline: 0.18rem !important; font-size: 0.4rem; }
  .header-tools { flex: 0 0 auto; margin-inline-start: auto; gap: 0; }
  .site-header { --control-h: 2rem; }
  .theme-toggle, .lang-switch summary, .nav-github { width: var(--control-h); min-width: var(--control-h); min-height: var(--control-h); height: var(--control-h); }
}

@media (min-width: 981px) and (max-width: 1060px) {
  .site-header { padding-inline: 0.25rem; gap: 0.08rem; }
  .site-header .brand-name { max-width: 2.7rem; }
  .site-nav { gap: 0.08rem; font-size: 0.37rem; }
  .site-nav .nav-cta { font-size: 0.37rem; padding-inline: 0.12rem !important; }
}

.lang-switch {
  position: relative;
}

.nav-github:focus-visible,
.lang-switch summary:focus-visible,
.menu-toggle:focus-visible {
  outline-color: var(--green);
  outline-offset: 3px;
}

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: var(--control-h);
  height: var(--control-h);
  min-height: var(--control-h);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  list-style: none;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.lang-chevron {
  display: none;
}

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

.lang-switch summary:hover {
  border-color: var(--ink);
  background: var(--paper-strong);
}

.lang-chevron {
  transition: transform 180ms ease;
}

.lang-switch[open] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  inset-inline-end: 0;
  z-index: 30;
  min-width: 9.5rem;
  margin: 0;
  padding: 0.4rem;
  border: 1px solid var(--ink);
  border-radius: 0.75rem;
  background: var(--paper-strong);
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.12);
  list-style: none;
}

.lang-menu a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 0.45rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.lang-menu a:hover {
  background: var(--ink);
  color: var(--paper);
}

.lang-menu a[aria-current="true"] {
  font-weight: 700;
}

.lang-menu a[aria-current="true"]::after {
  float: inline-end;
  color: var(--green);
  content: "✓";
}

.menu-toggle {
  display: none;
  width: var(--control-h);
  height: var(--control-h);
  padding: 0;
  align-items: center;
  justify-content: center;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.menu-toggle:hover { background: var(--ink-soft); transform: rotate(-4deg); }

.menu-toggle-bars {
  display: grid;
  gap: 4px;
  width: 1.05rem;
}

.menu-toggle-bars i {
  display: block;
  height: 1.5px;
  background: var(--paper);
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.menu-toggle-bars i:nth-child(3) { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(1) {
  transform: translateY(2.75px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(2) {
  transform: translateY(-2.75px) rotate(-45deg);
  opacity: 1;
}

body.menu-open { overflow: hidden; }

@media (max-width: 980px) {
  .site-nav.is-open::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: rgba(10, 10, 10, 0.28);
    content: "";
  }

  .site-nav.is-open {
    box-shadow: 0 18px 36px rgba(10, 10, 10, 0.12);
  }
}

[data-theme="dark"] .site-nav.is-open::before { background: rgba(0, 0, 0, 0.56); }

/* ------------------------------------------------------------ install command
   Tabs are native radio inputs: they work with JavaScript disabled and keep
   the CSP at script-src 'self'. The panel is hidden only when the browser
   supports :has(), so a fallback shows both commands instead of none. */

.cmd-switcher {
  margin-top: 0.5rem;
}

.cmd-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cmd-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.cmd-tabs [role="tab"] { cursor: pointer; }
.cmd-tabs [role="tab"]:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.cmd-tabs::-webkit-scrollbar {
  display: none;
}

.cmd-tabs label {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-bottom: -1px;
  padding: 0 0.1rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms var(--ease-fluid),
              border-bottom-color 180ms var(--ease-fluid),
              transform 160ms var(--ease-fluid);
}

.cmd-tabs label:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

#cmd-os-posix:checked ~ .cmd-tabs label[for="cmd-os-posix"],
#cmd-os-win:checked ~ .cmd-tabs label[for="cmd-os-win"],
#install-cmd-os-posix:checked ~ .cmd-tabs label[for="install-cmd-os-posix"],
#install-cmd-os-win:checked ~ .cmd-tabs label[for="install-cmd-os-win"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

#cmd-os-posix:focus-visible ~ .cmd-tabs label[for="cmd-os-posix"],
#cmd-os-win:focus-visible ~ .cmd-tabs label[for="cmd-os-win"],
#install-cmd-os-posix:focus-visible ~ .cmd-tabs label[for="install-cmd-os-posix"],
#install-cmd-os-win:focus-visible ~ .cmd-tabs label[for="install-cmd-os-win"] {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.cmd-panel {
  border: 1px solid var(--term-line);
  border-top: 0;
  background: var(--term-bg);
  color: var(--term-ink);
  animation: panelFadeIn 220ms var(--ease-fluid);
}

@keyframes panelFadeIn {
  from {
    opacity: 0.88;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cmd-switcher:has(input[id$="cmd-os-posix"]:checked) [id$="panel-win"],
.cmd-switcher:has(input[id$="cmd-os-win"]:checked) [id$="panel-posix"] {
  display: none;
}

.cmd-switcher:has(input[id$="cmd-os-posix"]:checked) [id$="panel-posix"],
.cmd-switcher:has(input[id$="cmd-os-win"]:checked) [id$="panel-win"] {
  display: block;
}

.cmd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.4rem 0.35rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cmd-prompt {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #8d8d84;
}

.cmd-panel pre {
  margin: 0;
  padding: 0.9rem 1rem 1.1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: left;
}

.cmd-panel pre code { unicode-bidi: isolate; }

.copy-button { min-height: 2.75rem; }

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid #4b4b45;
  border-radius: var(--radius);
  background: transparent;
  color: #d8d8cf;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 140ms var(--ease-fluid),
              background 180ms var(--ease-fluid),
              color 180ms var(--ease-fluid),
              border-color 180ms var(--ease-fluid),
              box-shadow 200ms var(--ease-fluid);
}

.copy-button:hover {
  transform: translateY(-1px);
  border-color: #e9e9e1;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.copy-button:active {
  transform: translateY(0) scale(0.97);
}

.copy-button[data-state="copied"] {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
  transform: scale(1.03);
  box-shadow: 0 0 16px rgba(31, 122, 77, 0.45);
}

.copy-button svg {
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------- ui kit v2
   Shared editorial components used by the inner pages: badges, stat strips,
   callouts, step cards, trust cards, FAQ groups and quick links. All colours
   resolve through theme variables so light and dark stay in sync. */

/* Badges ---------------------------------------------------------------- */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge::before {
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.55;
}

.badge--ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 32%, transparent); }
.badge--ok::before { opacity: 1; }
.badge--warn { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 32%, transparent); }
.badge--quiet::before { display: none; }

/* Stat strip ------------------------------------------------------------ */

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

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.15rem 1.25rem;
  background: var(--paper);
}

.stat-value {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

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

/* Callouts -------------------------------------------------------------- */

.callout {
  position: relative;
  max-width: 46rem;
  margin: 1.8rem 0;
  padding: 1.1rem 1.25rem 1.1rem 1.4rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.callout strong:first-child,
.callout .callout-title {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.callout--warn { border-left-color: var(--amber); }
.callout--warn .callout-title,
.callout--warn strong:first-child { color: var(--amber); }

.callout--ok { border-left-color: var(--green); }
.callout--ok .callout-title,
.callout--ok strong:first-child { color: var(--green); }

.callout p { max-width: none; margin: 0; }
.callout p + p { margin-top: 0.6rem; }
.callout code { font-size: 0.8em; }

/* Step cards ------------------------------------------------------------ */

.step-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.6rem 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.step-card {
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--paper);
}

.step-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.step-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.step-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.55;
}

.step-card code {
  font-family: var(--mono);
  font-size: 0.8em;
}

/* Trust grid ------------------------------------------------------------ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.6rem 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.trust-card {
  padding: 1.25rem 1.35rem;
  background: var(--paper);
}

.trust-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.trust-card h3::before {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  content: "";
  opacity: 0.85;
  clip-path: polygon(43% 70%, 15% 42%, 26% 31%, 43% 48%, 74% 17%, 85% 28%);
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* FAQ groups ------------------------------------------------------------ */

.faq-group {
  margin-top: 2.4rem;
}

.faq-group:first-of-type {
  margin-top: 1.4rem;
}

.faq-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq-group-count {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

/* Quick links ----------------------------------------------------------- */

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.8rem;
  margin: 1.6rem 0;
}

.quick-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.quick-link:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.quick-link strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.quick-link span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.quick-link:hover span {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}

/* Chips ----------------------------------------------------------------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 0.26rem 0.55rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Keyboard + anchor headings -------------------------------------------- */

.kbd {
  display: inline-block;
  padding: 0.08rem 0.4rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.78em;
  line-height: 1.4;
}

.docs-article h2[id],
.docs-article h3[id] {
  scroll-margin-top: 6rem;
}

/* Inline page meta ------------------------------------------------------ */

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.page-meta span + span::before {
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.5;
}

/* Secondary link row ---------------------------------------------------- */

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.4rem;
  font-size: 0.82rem;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding-bottom: 0.1rem;
  text-decoration: none;
}

.link-row a:hover {
  border-bottom-color: var(--ink);
}

/* Dark theme adjustments for the kit ------------------------------------ */

[data-theme="dark"] .badge { background: var(--surface-soft); }
[data-theme="dark"] .stat,
[data-theme="dark"] .step-card,
[data-theme="dark"] .trust-card,
[data-theme="dark"] .quick-link { background: #0f0f0f; }
[data-theme="dark"] .quick-link:hover { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .callout { background: rgba(255, 255, 255, 0.035); }
[data-theme="dark"] .kbd { background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .step-card-num { border-color: var(--line); }

@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr; }
  .step-cards,
  .trust-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: 1fr; }
  .page-meta { font-size: 0.56rem; }
  .footer-meta { display: grid; grid-template-columns: 1fr; gap: 0.45rem; }
  .footer-meta > div + div::before { content: none; }
  .footer-meta dt { font-size: 0.78rem; }
  .footer-meta dd { font-size: 0.9rem; }
}

/* ------------------------------------------------------------- right to left */

html[dir="rtl"] .lang-menu {
  inset-inline: auto 0;
}

html[dir="rtl"] .footer-links { direction: rtl; }
html[dir="rtl"] .footer-legal { direction: rtl; text-align: right; }
html[dir="rtl"] .site-header { direction: rtl; }
html[dir="rtl"] .brand { direction: ltr; }
html[dir="rtl"] .brand-name { direction: ltr; }
html[dir="rtl"] .footer-brand { direction: rtl; }
html[dir="rtl"] .hero-release { direction: rtl; }
html[dir="rtl"] .footer-meta { direction: rtl; }
html[dir="rtl"] .display {
  letter-spacing: 0;
  line-height: 1.16;
}
html[dir="rtl"] .hero .display {
  max-width: 100%;
  line-height: 1.55;
}
html[dir="rtl"] .hero-copy { direction: rtl; }
html[dir="rtl"] .hero-release-copy strong span { margin-right: 0.25rem; margin-left: 0; }

html[lang="en"],
html[lang="fr"],
html[lang="es"] {
  direction: ltr;
  text-align: left;
}

html[lang="en"] .site-header,
html[lang="fr"] .site-header,
html[lang="es"] .site-header {
  direction: ltr;
}

html[dir="rtl"] .cmd-panel,
html[dir="rtl"] .terminal {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] code {
  unicode-bidi: isolate;
}

html[dir="rtl"] .callout,
html[dir="rtl"] .docs-note {
  border-left-width: 1px;
  border-right: 3px solid var(--ink);
}

html[dir="rtl"] .callout--warn { border-right-color: var(--amber); }
html[dir="rtl"] .callout--ok { border-right-color: var(--green); }

html[dir="rtl"] .faq-list summary::after {
  inset-inline: auto 0;
}

html[dir="rtl"] .faq-list summary {
  padding: 1.15rem 2.5rem 1.15rem 0;
}

html[dir="rtl"] .docs-article ul,
html[dir="rtl"] .docs-article ol {
  padding-inline: 0 1.15rem;
}

html[dir="rtl"] .docs-table th,
html[dir="rtl"] .docs-table td {
  text-align: right;
}

html[dir="rtl"] .page-meta span + span::before { order: 2; }

/* --------------------------------------------------------------- small phone */

@media (max-width: 980px) {
  .site-header {
    display: flex;
    min-height: 4.75rem;
  }

  .site-header .brand { min-width: 0; }
  .site-header .brand-name { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; }
  .site-header .header-tools { flex-shrink: 0; }
  .nav-github { min-width: 2.75rem; }

  .site-nav {
    display: flex;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    box-shadow: 0 22px 40px rgba(10, 10, 10, 0.1);
  }

  .site-nav.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-tools {
    flex: 0 0 auto;
  }

  .nav-cta {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 0.55rem;
    gap: 0.35rem;
  }
  .brand-mark { flex-basis: 2rem; width: 2rem; height: 2rem; }
  .brand { min-width: 0; gap: 0.35rem; }
  .brand-name { min-width: 0; max-width: 7.5rem; overflow: hidden; text-overflow: ellipsis; font-size: clamp(0.58rem, 2.8vw, 0.68rem); letter-spacing: -0.02em; }
  .brand-build { display: none; }
  .header-tools { --control-h: 2.75rem; gap: 0.5rem; }

  .hero .display { max-width: 100%; font-size: clamp(2.65rem, 13vw, 3.5rem); line-height: 1.08; }
  .hero .lede { max-width: 100%; font-size: clamp(1.05rem, 4.4vw, 1.25rem); line-height: 1.55; }
  .hero .eyebrow { max-width: 100%; flex-wrap: wrap; }
  .hero-release { padding: 0.8rem; }
  .hero-release-copy strong { font-size: 0.8rem; }
  .hero-release-copy small { font-size: 0.8rem; }
  .hero-art { min-height: clamp(31rem, 115vw, 38rem); padding-inline: 1rem; overflow: visible; }
  .phone { width: min(78vw, 320px); max-width: 100%; transform: rotate(-3deg); }
  .phone-screen { min-height: 28rem; }
  .hero-command { padding: 0.65rem; }
  .hero-command pre { font-size: 0.58rem; }

  .cmd-tabs label {
    min-height: 3rem;
    font-size: 0.82rem;
  }

  .cmd-panel pre {
    font-size: 0.9rem;
  }

  .copy-button {
    min-height: 2.6rem;
  }

  .docs-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
  }

}

@media (min-width: 721px) and (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1rem, 3vw, 1.75rem);
    direction: ltr;
    align-items: center;
  }

  html[dir="rtl"] .hero-copy { direction: rtl; }

  .hero > .hero-art {
    grid-column: 1;
    grid-row: 1;
    min-height: clamp(28rem, 55vw, 34rem);
    padding-inline: 0.5rem;
  }

  .hero > .hero-copy {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
  }

  .phone {
    width: min(30vw, 285px);
    transform: rotate(-3deg);
  }
}

/* -------------------------------------------------- 120fps fluid scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal-init {
    transition: opacity 380ms var(--ease-fluid), transform 420ms var(--ease-fluid);
    will-change: opacity, transform;
  }

  .reveal-init:not(.is-revealed) {
    opacity: 0;
    transform: translateY(14px);
  }

  .reveal-init.is-revealed {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .brand-mark, .nav-github, .lang-switch summary, .menu-toggle,
  .menu-toggle-bars i, .lang-chevron, .site-nav a::after, .reveal-init {
    transition-duration: 0.01ms !important;
  }
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
  }
}
