:root {
  --bg: #ffffff;
  --bg-subtle: #f8f7fc;
  --bg-card: #fdfcff;
  --border: #e8e4f5;
  --border-strong: #d6cef0;
  --ink: #0c0c2a;
  --ink-muted: #55516e;
  --ink-faint: #8b87a3;
  --violet: #6028c4;
  --violet-strong: #4c1fa0;
  --violet-tint: #f1ebfc;
  --violet-tint-2: #e6dbf9;
  /* Fixed, deliberately independent of the light/dark theme: the
     install command box, code panels, toast, and the "Get started"
     nav button are always styled like a terminal window (dark chip,
     light text), in both themes. This used to piggyback on --ink
     (dark in light mode, near-white in dark mode) plus a dark-mode
     override to force it back: fragile, and the exact bug that
     made code panels unreadable in dark mode: the override only
     patched the symptom, this removes the shared variable entirely. */
  --terminal-bg: #0c0c2a;
  --terminal-text: #f5f3ff;
  /* .code-panel only (the embedded <script>/<ox-icon> examples in
     docs), unlike the terminal-styled chrome above: this one DOES
     follow the theme. Light mode gets a light violet-tinted panel
     with dark violet text; the dark-mode block below keeps the
     previous dark terminal look unchanged. */
  --code-bg: var(--violet-tint);
  --code-text: var(--ink);
  --code-tag: var(--violet-strong);
  --code-attr: var(--violet);
  --code-str: #157a44;
  --code-cmt: #655f8a;
  --shadow-sm: 0 1px 2px rgba(12, 12, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(76, 31, 160, 0.08);
  --shadow-lg: 0 20px 48px rgba(76, 31, 160, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --max: 1160px;
}

[data-theme="dark"] {
  --bg: #0c0a1a;
  --bg-subtle: #14111f;
  --bg-card: #181428;
  --border: #2a2340;
  --border-strong: #3a3159;
  --ink: #f5f3ff;
  /* Violet-tinted, not neutral gray, per explicit request: all
     secondary/muted text in dark mode reads as light violet instead
     of cool gray. */
  --ink-muted: #c3b3f5;
  --ink-faint: #9a86d1;
  --violet: #9b7cff;
  --violet-strong: #b79cff;
  --violet-tint: #241c42;
  --violet-tint-2: #2c2350;
  /* .code-panel keeps its previous dark terminal look in dark mode,
     unchanged from before this fix: only light mode changed. */
  --code-bg: var(--terminal-bg);
  --code-text: #d9d5ea;
  --code-tag: #a89fd6;
  --code-attr: #c4b5fd;
  --code-str: #86efac;
  --code-cmt: #9691c2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.logo-dark { display: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.badge-soon {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--violet-tint);
  border-radius: 999px;
  padding: 2px 7px;
  margin-inline-start: 6px;
  vertical-align: middle;
}

/* ---------- top bar ---------- */

.topbar {
  background: var(--terminal-bg);
  color: #b3aecf;
  font-size: 12.5px;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 8px;
  gap: 12px;
}
.topbar-msg { font-family: var(--font-mono); }
.topbar-msg strong { color: #fff; }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a { color: #b3aecf; display: inline-flex; transition: color 0.15s ease; }
.topbar-social a:hover { color: #fff; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .nav { background: rgba(12, 10, 26, 0.85); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { height: 22px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  flex: 1;
  justify-content: center;
}
.nav-link { color: var(--ink-muted); transition: color 0.15s ease; white-space: nowrap; }
.nav-link:hover { color: var(--violet); }
.nav-link.is-fake { cursor: default; }
.nav-link.is-fake:hover { color: var(--ink-muted); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-select {
  appearance: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 30px 7px 14px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' stroke='%2355516E' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
[data-theme="dark"] .lang-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' stroke='%23c3b3f5' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lang-select:hover { background: var(--violet-tint-2); }
.lang-select:focus,
.lang-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--violet-tint-2);
  border-color: var(--violet);
}
[dir="rtl"] .lang-select { background-position: left 12px center; padding: 7px 14px 7px 30px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.1s ease;
}
.nav-cta:hover { background: var(--violet); transform: translateY(-1px); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--violet); color: var(--violet); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- hero ---------- */

.hero { padding: 84px 24px 0; }
.hero-inner { max-width: var(--max); margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--violet-tint);
  color: var(--violet-strong);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

.headline {
  margin: 0 auto 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.headline .accent { color: var(--violet); }

.subhead {
  margin: 0 auto 38px;
  font-size: 17.5px;
  color: var(--ink-muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { background: var(--violet-strong); transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-secondary:hover { border-color: var(--violet); background: var(--violet-tint); }

.install-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--terminal-bg);
  border-radius: 10px;
  padding: 13px 12px 13px 20px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: #ece9f7;
  margin-bottom: 14px;
}
.hero-cdn-link {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 56px;
}
.hero-cdn-link:hover { color: var(--violet); }
.install-prompt { color: #7a76a0; }
.install-box code { color: #fff; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: #c9c4e6;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.copy-btn.is-copied { color: #4ade80; }

/* stat bar */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { padding: 26px 12px; text-align: center; border-inline-start: 1px solid var(--border); }
.stat:first-child { border-inline-start: none; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--violet);
  letter-spacing: -0.01em;
}
.stat-label {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- features ---------- */

.features { padding: 88px 24px; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--ink-muted); font-size: 16px; margin: 0; }

.feature-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--bg-card);
  padding: 32px 26px;
  transition: background 0.15s ease;
}
.feature-card:hover { background: var(--bg-subtle); }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--violet-tint);
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-title { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; margin: 0 0 8px; }
.feature-desc { font-size: 14px; color: var(--ink-muted); margin: 0; line-height: 1.6; }

/* ---------- code example ---------- */

.example { padding: 0 24px 96px; }
.example-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.example-copy .section-eyebrow,
.example-copy .section-title { text-align: start; }
.example-copy .section-title { margin-bottom: 14px; }
.example-copy p { color: var(--ink-muted); font-size: 15.5px; margin: 0 0 16px; }
.example-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.example-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}
.example-list .dot {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;
}
.dot-soft { background: #a78bfa; }
.dot-exclusive { background: #f59e0b; }
.dot-strict { background: #ef4444; }

.code-panel {
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
}
.code-panel pre { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--code-text); }
.code-panel .tok-tag { color: var(--code-tag); }
.code-panel .tok-attr { color: var(--code-attr); }
.code-panel .tok-str { color: var(--code-str); }
.code-panel .tok-cmt { color: var(--code-cmt); }

/* ---------- gallery ---------- */

.gallery { padding: 0 24px 96px; background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gallery-inner { max-width: var(--max); margin: 0 auto; padding-top: 88px; }
.gallery .section-head { margin-bottom: 34px; }

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.search-box {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink-faint);
}
.search-box:focus-within { border-color: var(--violet); }
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.search-box input::placeholder { color: var(--ink-faint); }

#family-select {
  appearance: none;
  padding: 12px 34px 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' stroke='%2355516E' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
[data-theme="dark"] #family-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' stroke='%23c3b3f5' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#family-select:hover { background: var(--violet-tint); }
#family-select:focus,
#family-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--violet-tint);
  border-color: var(--violet);
}

.families-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.family-chip {
  --chip: #6028c4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.family-chip:hover { border-color: var(--chip); color: var(--ink); }
.family-chip.is-active { color: #fff; border-color: var(--chip); background: var(--chip); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--chip); flex-shrink: 0; }
.family-chip.is-active .chip-dot { background: #fff; }
.chip-count { font-family: var(--font-mono); font-size: 11px; opacity: 0.75; }

.result-count { margin: 18px 0; font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); }

/* Default size for any <ox-icon> without a more specific rule, so it
   never sits at 0x0 (and shifts the layout) while its module is still
   loading. Anything more specific, like `.icon-card ox-icon` below,
   overrides this regardless of source order. */
ox-icon { display: inline-block; width: 20px; height: 20px; }

.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 10px; }

/* Placeholder cards shown immediately, before app.js has run.
   renderGallery() replaces #icon-grid's entire content the moment it
   runs (`grid.innerHTML = ''`), so these never linger, they only cover
   the gap between first paint and that first render. */
.icon-card.skeleton { cursor: default; pointer-events: none; }
.icon-card.skeleton:hover { transform: none; box-shadow: none; border-color: var(--border); }
.skeleton-block {
  border-radius: 6px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.skeleton-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--bg-card), transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  to { transform: translateX(100%); }
}
.icon-card.skeleton .skeleton-block.icon { width: 22px; height: 22px; }
.icon-card.skeleton .skeleton-block.label { width: 70%; height: 10px; }
.icon-card.skeleton .skeleton-block.family { width: 44%; height: 9px; }
@media (prefers-reduced-motion: reduce) {
  .skeleton-block::after { animation: none; }
}

.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  color: var(--ink-muted);
}
.icon-card:hover { border-color: var(--chip, var(--violet)); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.icon-card ox-icon { width: 22px; height: 22px; color: var(--ink); }
.icon-card .icon-label { font-size: 11.5px; text-align: center; line-height: 1.3; word-break: break-word; color: var(--ink); }
.icon-card .icon-family { font-size: 10px; color: var(--ink-faint); font-family: var(--font-mono); }
.icon-card.is-copied { border-color: var(--violet); }
.icon-card.is-copied .icon-label { color: var(--violet); }

.gallery-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 4px;
}

.empty-state { text-align: center; color: var(--ink-faint); padding: 60px 0; font-size: 14px; }

/* ---------- cta ---------- */

.cta { padding: 96px 24px; text-align: center; }
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta .section-title { margin-bottom: 30px; }
.cta-links { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--border); background: var(--bg-subtle); }
.footer-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-brand img { height: 18px; }
.footer-tagline { font-size: 13.5px; color: var(--ink-muted); max-width: 30ch; margin: 0; }
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--ink-muted); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--violet); }
.footer-col a.is-fake { cursor: default; }
.footer-col a.is-fake:hover { color: var(--ink-muted); }

.footer-bottom {
  border-top: 1px solid var(--border);
}
.footer-bottom-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.footer-bottom-inner a { color: var(--ink-faint); }
.footer-bottom-inner a:hover { color: var(--violet); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--terminal-bg);
  color: var(--terminal-text);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-family: var(--font-mono);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */

/* Desktop/laptop: the logo read oversized there, 40% smaller than
   the base (mobile/tablet) size, per explicit request. Mobile keeps
   the base size since the nav is already compact there. */
@media (min-width: 901px) {
  .brand img { height: 16px; }
  .footer-brand img { height: 14px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .example-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .hero { padding-top: 64px; }
}

/* ---------- scrollbar ---------- */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-subtle);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); }
::-webkit-scrollbar-thumb {
  background-color: var(--border-strong);
  border-radius: 999px;
  border: 2px solid var(--bg-subtle);
}
::-webkit-scrollbar-thumb:hover { background-color: var(--violet); }

/* Stable brand sizing on every page, including Catalog and narrow Examples layouts. */
.brand { flex: 0 0 auto; min-width: 0; }
.brand-mark-img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 22px; }
.brand .logo-light, .brand .logo-dark { width: auto; height: 22px; max-width: 150px; object-fit: contain; }
.footer-brand .brand-mark-img { width: 18px; height: 18px; flex-basis: 18px; }
.footer-brand .logo-light, .footer-brand .logo-dark { width: auto; height: 18px; max-width: 150px; }
@media (max-width: 980px) {
  .nav-inner { gap: 12px; }
  .nav-links { gap: 14px; }
  .nav-cta { padding-inline: 12px; }
}
@media (max-width: 760px) {
  .nav-inner { flex-wrap: wrap; padding-block: 10px; }
  .nav-links { order: 3; flex: 1 0 100%; justify-content: flex-start; overflow-x: auto; gap: 18px; padding-top: 2px; }
  .nav-right { margin-inline-start: auto; }
}
