/* MLXHub site — shared tokens, layout and motion for Home and /ranking/.
   Values come from mlxhub_website.pen (Home v2, Ranking). */
:root {
  --ink: #1d1d1f;
  --ink-2: #4b4b4f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --hair: #e5e5ea;
  --hair-strong: #d2d2d7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #f2f2f4;
  --blue: #007aff;
  --blue-soft: rgba(0, 122, 255, .08);
  --green: #30d158;
  --gold: #ffd166;
  --night: #000000;
  --night-card: #0b0b0c;
  --night-line: #1c1c1e;
  --night-ink: #f5f5f7;
  --night-muted: #a1a1a6;
  --night-faint: #6e6e73;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --content: 992px;
  --wide: 1040px;
  --gutter: 24px;
  --header-h: 58px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-ui: 220ms;
  --t-move: 520ms;
  --t-reveal: 820ms;
  --stagger: 70ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, canvas, svg { display: block; max-width: 100%; }
button, select { font: inherit; color: inherit; }
::selection { background: rgba(255, 209, 102, .55); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; transition: top var(--t-ui) var(--ease-out); }
.skip-link:focus { top: 12px; }

@view-transition { navigation: auto; }

.container { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.section { padding: 96px 0 104px; position: relative; }
.section--tint { background: var(--surface-2); }
.section--night { background: var(--night); color: var(--night-ink); }
.section + .section:not(.section--tint):not(.section--night) { border-top: 1px solid var(--hair); }
.section--tint + .section, .section--night + .section { border-top: 0; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.section--night .eyebrow, .eyebrow--gold { color: var(--gold); }
.display {
  font-size: clamp(36px, 5.2vw, 52px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.044em;
  text-wrap: balance;
}
.title-l { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.section--night .lead { color: var(--night-muted); }
.body { font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.section--night .body { color: var(--night-muted); }
.fine { font-size: 12px; line-height: 1.5; color: var(--muted); }
.section--night .fine { color: var(--night-muted); }
.card-title { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.heading-block { display: grid; gap: 16px; max-width: 640px; }
.heading-block .display { margin-top: 2px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.text-link .arrow { transition: transform var(--t-ui) var(--ease-out); }
.text-link:hover .arrow { transform: translateX(3px); }
.text-link--ext:hover .arrow { transform: translate(2px, -2px); }
.section--night .text-link { color: var(--night-ink); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) var(--ease-out), background-color var(--t-ui) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--hair); }
.site-header .bar { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { position: relative; font-size: 13px; color: var(--ink); opacity: .78; transition: opacity var(--t-ui) var(--ease-out); }
.nav-link:hover, .nav-link[aria-current="page"] { opacity: 1; }
.nav-link[aria-current="page"] { font-weight: 600; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--t-move) var(--ease-out); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.menu-button { display: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.menu-button span, .menu-button span::before, .menu-button span::after { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform var(--t-move) var(--ease-out), opacity var(--t-ui); content: ""; position: relative; }
.menu-button span::before { position: absolute; top: -5px; }
.menu-button span::after { position: absolute; top: 5px; }
.menu-button[aria-expanded="true"] span { background: transparent; }
.menu-button[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 760px) {
  .nav .nav-link { display: none; }
  .menu-button { display: inline-flex; }
  .nav { gap: 8px; }
  .mobile-menu {
    display: grid; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
    padding: 8px var(--gutter) 20px; background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hair);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform var(--t-move) var(--ease-out), opacity var(--t-ui) var(--ease-out), visibility 0s linear var(--t-move);
  }
  .mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .mobile-menu a { padding: 14px 2px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--hair); }
  .mobile-menu a:last-child { border-bottom: 0; }
}

/* Reveal motion: content is visible without JS; .js arms the entrance. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 0; }
.hero-title { display: flex; align-items: center; gap: 20px; margin: 18px 0 30px; }
.hero-title img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 10px 30px -12px rgba(138, 90, 0, .35); }
.hero-title h1 { font-size: clamp(52px, 7vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.hero-tagline { font-size: clamp(21px, 2.2vw, 24px); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.hero-sub { margin-top: 14px; max-width: 540px; }
.download-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.store-badge { display: inline-flex; line-height: 0; border-radius: 9px; transition: transform var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out); }
.store-badge img { height: 52px; width: auto; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.store-badge:active { transform: scale(.98); }
.req { font-size: 13px; color: var(--muted); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--hair); max-width: 540px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }

.devices { position: relative; height: 520px; }
/* Each image is the screenshot composed inside its real device bezel (tools/hero-screenshots.swift). */
.device { position: absolute; width: var(--w); filter: drop-shadow(0 28px 32px rgba(0, 0, 0, .3)); will-change: transform; }
.device img { display: block; width: 100%; height: auto; }
.device--ipad { --w: 372px; top: 0; right: 36px; }
.device--duo { --w: 200px; bottom: -10px; left: -28px; }
.device--iphone { --w: 146px; bottom: -18px; right: -14px; }
.js .devices .device { opacity: 0; }
.js .devices.is-in .device--ipad { animation: device-in 1100ms var(--ease-out) 120ms both; }
.js .devices.is-in .device--duo { animation: device-in-duo 1100ms var(--ease-out) 300ms both; }
.js .devices.is-in .device--iphone { animation: device-in-phone 1100ms var(--ease-out) 420ms both; }
@keyframes device-in { from { opacity: 0; transform: translateY(36px) rotate(-1.5deg) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes device-in-duo { from { opacity: 0; transform: translate(-24px, 48px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes device-in-phone { from { opacity: 0; transform: translate(24px, 48px) rotate(3deg); } to { opacity: 1; transform: none; } }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.feature { display: grid; align-content: start; gap: 12px; padding-top: 30px; border-top: 2px solid var(--ink); }
.feature .icon { width: 24px; height: 24px; margin-bottom: 4px; }
.feature .card-title { font-size: 21px; }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 60px; }
.mini { display: grid; align-content: start; gap: 10px; padding-top: 20px; border-top: 1px solid var(--hair); }
.mini h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.mini .body { font-size: 14px; }

/* Voice */
.voice-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; align-items: center; }
.voice-orb { aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: end; }
.voice-orb canvas, .orb canvas { width: 100%; height: 100%; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 56px; }
.trio > * { display: grid; align-content: start; gap: 12px; padding-top: 24px; border-top: 1px solid var(--night-line); }
.section:not(.section--night) .trio > * { border-top-color: var(--hair); }
.orb-states { display: flex; gap: 20px; margin-top: 18px; }
.orb-state { display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--night-muted); }
.orb-state canvas { width: 76px; height: 76px; }

/* Image creation */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 428px); gap: 64px; align-items: end; }
.fact-list { display: grid; border-top: 1px solid var(--hair); }
.fact-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.fact-list .icon { width: 17px; height: 17px; margin-top: 1px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius-m); background: var(--surface-3); aspect-ratio: 1; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); }
.js .gallery img { filter: blur(22px) saturate(.4) brightness(1.08); transform: scale(1.08); }
.js .gallery figure.is-in img {
  filter: none; transform: scale(1.001);
  transition: filter 1600ms var(--ease-out), transform 1600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 140ms + 160ms);
}
.prompt-chip {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: rgba(29, 29, 31, .78); color: #fff; font-size: 13px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.prompt-chip svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.prompt-chip .caret { width: 1px; height: 14px; background: #fff; margin-left: -4px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Tools */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 60px; }
.tool { display: grid; align-content: start; gap: 12px; }
.tool-icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--hair); display: grid; place-items: center; margin-bottom: 8px; }
.tool-icon .icon { width: 20px; height: 20px; }
.tool .label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.tool .ask { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.tool blockquote { padding-left: 12px; border-left: 2px solid var(--hair-strong); font-size: 14px; line-height: 1.5; font-style: italic; color: var(--ink-2); margin: 6px 0; }
.tools-more { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--hair-strong); }
.tools-more h3 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); font-size: 13px; }
.section--night .chip { background: transparent; box-shadow: inset 0 0 0 1px var(--night-line); }

/* Bigger models */
.night-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
.night-card { display: grid; align-content: start; gap: 14px; }
.night-card .stage { aspect-ratio: 476 / 340; border-radius: var(--radius-l); background: radial-gradient(120% 90% at 50% 45%, #141415 0%, var(--night-card) 70%); box-shadow: inset 0 0 0 1px var(--night-line); overflow: hidden; display: grid; place-items: center; margin-bottom: 14px; }
.night-card .stage canvas { width: 100%; height: 100%; }
.night-card .card-title { font-size: 24px; letter-spacing: -.02em; }

/* LAN server */
.lan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 508px); gap: 56px; align-items: center; }
.lan-copy { display: grid; gap: 18px; }
.lan-fact { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.panel { border-radius: var(--radius-l); background: #1c1c1e; color: #f5f5f7; padding: 22px 28px 26px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-family: var(--mono); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 12px; color: var(--night-muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); animation: live 2.2s var(--ease-out) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); } }
.panel-group { margin-top: 22px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--night-faint); text-transform: uppercase; }
.routes { margin-top: 6px; }
.routes li { display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(0, 170px); gap: 12px; align-items: baseline; padding: 10px 0; font-size: 13px; }
.routes .method { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--gold); }
.routes .method--get { color: #64d2ff; }
.routes code { font-family: var(--mono); font-size: 13px; color: #f5f5f7; overflow-wrap: anywhere; }
.routes .what { color: var(--night-muted); font-size: 13px; }
.js .routes li { opacity: 0; transform: translateX(-6px); }
.js .panel.is-in .routes li { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + 200ms); }
.lan-trio { margin-top: 72px; }
.lan-trio h3 { display: flex; align-items: center; gap: 10px; }

/* Ranking rows (teaser + page share the bar vocabulary) */
.bar-track { display: block; position: relative; height: 8px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: inherit; background: var(--blue); transform-origin: left; }
.bar-fill--reference { background: var(--muted); }
.js .bar-fill { transform: scaleX(0); }
.js .is-in .bar-fill, .js .bar-fill.is-in { transform: scaleX(1); transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.m1-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--muted-2); left: var(--m1, 50%); pointer-events: none; }
.m1-label { position: absolute; transform: translateX(-50%); left: var(--m1, 50%); font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }

.teaser-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 64px; align-items: center; }
.teaser-copy { display: grid; gap: 18px; }
.teaser-links { display: flex; gap: 12px 24px; flex-wrap: wrap; }
.teaser-links .text-link { font-size: 14px; }
.teaser-ram { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding-top: 22px; border-top: 1px solid var(--hair-strong); }
.teaser-ram h3 { font-size: 14px; font-weight: 600; }
.teaser-ram .body { grid-column: 2; font-size: 14px; }
.board { position: relative; }
.board-head, .board-row { display: grid; grid-template-columns: 22px minmax(176px, 1fr) minmax(0, 190px) 60px; gap: 14px; align-items: center; }
.board-head { padding: 0 0 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--hair); position: relative; }
.board-head .score, .board-row .score { text-align: right; }
.board-row { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.board-row .rank { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.board-row .name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .name small { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.board-row .score { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.board-bars { position: relative; }
.bar-cell { display: block; }
.board-axis { position: absolute; top: 0; bottom: 0; grid-column: 3; pointer-events: none; }
.board .bar-track { overflow: visible; }
.board .bar-fill { overflow: hidden; }
.board .m1-line { top: -20px; bottom: -20px; }
.board .m1-label { top: -44px; }
.board-note { margin-top: 14px; }
.tag-ref { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-left: 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-strong); font-size: 10.5px; font-weight: 600; color: var(--muted); vertical-align: 2px; }

/* Models */
.models-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.model-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 44px; }
.model { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--hair); }
.model-cols ul { border-bottom: 1px solid var(--hair); }
.model h3 { font-size: 16px; font-weight: 600; }
.model p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.model .meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.vision { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--surface-3); color: var(--ink); font-size: 12px; font-weight: 500; }
.vision .icon { width: 13px; height: 13px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 48px; }
.faq-list { border-top: 1px solid var(--hair); }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus { position: relative; width: 14px; height: 14px; flex: none; color: var(--muted); }
.faq-list summary .plus::before, .faq-list summary .plus::after { content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.faq-list summary .plus::after { transform: rotate(90deg); }
.faq-list details[open] summary .plus::after { transform: rotate(0deg); }
.faq-list details[open][data-closing] summary .plus::after { transform: rotate(90deg); }
.faq-answer { overflow: hidden; }
.faq-answer p { padding: 0 48px 22px 0; }
.js .faq-answer { transition: height var(--t-move) var(--ease-out); }

/* Footer */
.site-footer { background: var(--night); color: var(--night-ink); padding: 72px 0 36px; overflow: hidden; }
.footer-grid { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 40px; align-items: start; }
.footer-brand { display: grid; gap: 14px; justify-items: start; }
.footer-brand .brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand p { font-size: 13px; color: var(--night-muted); }
.footer-orb { width: 220px; height: 220px; margin: -40px 0; opacity: .7; }
.footer-orb canvas { width: 100%; height: 100%; }
.footer-cols { display: grid; grid-template-columns: repeat(2, auto); gap: 56px; }
.footer-cols h2 { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--night-faint); text-transform: uppercase; margin-bottom: 14px; }
.footer-cols li + li { margin-top: 10px; }
.footer-cols a { font-size: 14px; color: var(--night-ink); opacity: .86; transition: opacity var(--t-ui); }
.footer-cols a:hover { opacity: 1; }
.footer-bottom { width: min(100% - 2 * var(--gutter), var(--content)); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--night-faint); }
.lang-select { position: relative; display: inline-flex; align-items: center; }
.lang-select select { appearance: none; -webkit-appearance: none; height: 32px; padding: 0 34px 0 12px; border-radius: 8px; border: 1px solid var(--night-line); background: #111113; color: var(--night-ink); font-size: 13px; cursor: pointer; }
.lang-select::after { content: ""; position: absolute; right: 13px; top: 12px; width: 6px; height: 6px; border-right: 1.5px solid var(--night-muted); border-bottom: 1.5px solid var(--night-muted); transform: rotate(45deg); pointer-events: none; }
.store-badge--outline img { height: 44px; }

/* Responsive */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
  .device--ipad { --w: 320px; right: 26px; }
  .device--duo { --w: 172px; left: -18px; }
  .device--iphone { --w: 126px; right: -10px; }
  .devices { height: 450px; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-orb { display: none; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0 80px; }
  .hero { padding: 40px 0 64px; }
  .hero-grid, .voice-grid, .split, .lan-grid, .teaser-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .devices { height: 430px; max-width: 420px; width: 100%; justify-self: center; }
  .voice-orb { justify-self: center; max-width: 360px; order: -1; }
  .feature-grid, .tool-grid, .trio { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .night-cards { grid-template-columns: minmax(0, 1fr); }
  .tools-more { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .model-cols { grid-template-columns: minmax(0, 1fr); }
  .model-cols ul:first-child { border-bottom: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .feature-grid, .tool-grid, .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid > :nth-child(3):last-child, .tool-grid > :nth-child(3):last-child, .trio > :nth-child(3):last-child { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .hero-title { gap: 14px; }
  .hero-title img { width: 60px; height: 60px; border-radius: 14px; }
  .devices { height: 360px; }
  .device--ipad { --w: 264px; right: 34px; }
  .device--duo { --w: 140px; left: 0; bottom: -8px; }
  .device--iphone { --w: 104px; right: 0; bottom: -12px; }
  .mini-grid { grid-template-columns: minmax(0, 1fr); }
  .board-head .bar-head { display: none; }
  .board-head, .board-row { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .board-row .score { grid-column: 3; grid-row: 1; }
  .board-row .bar-cell { grid-column: 2 / -1; grid-row: 2; }
  .board .m1-line { top: -4px; bottom: -4px; }
  .board-axis { display: none; }
  .routes li { grid-template-columns: 40px minmax(0, 1fr); }
  .routes .what { grid-column: 2; margin-top: -4px; }
  .panel { padding: 18px 18px 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { gap: 40px; }
  .faq-answer p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal].is-in { opacity: 1; transform: none; transition: none; }
  .js .gallery img, .js .gallery figure.is-in img { filter: none; transform: none; transition: none; }
  .js .bar-fill, .js .is-in .bar-fill { transform: none; transition: none; }
  .js .devices .device { opacity: 1; animation: none !important; }
  .js .routes li { opacity: 1; transform: none; transition: none; }
  .status::before { animation: none; }
  .prompt-chip .caret { display: none; }
  .faq-list summary .plus::before, .faq-list summary .plus::after, .menu-button span, .menu-button span::before, .menu-button span::after, .mobile-menu, .skip-link, .site-header { transition: none; }
  .nav-link::after, .text-link .arrow, .store-badge { transition: none; }
  @view-transition { navigation: none; }
}

/* Japanese and Chinese headings break at phrase boundaries instead of mid-word. */
:lang(ja) :is(h1, h2, h3, .display, .title-l, .hero-tagline), :lang(zh-Hans) :is(h1, h2, .display, .title-l), :lang(zh-Hant) :is(h1, h2, .display, .title-l) { word-break: auto-phrase; }
