/* token.gme-ai.com — public homepage v2 (2026-10-10).
   Self-contained: it does not load app.css, so the console's stylesheet can change without moving this page.
   The site's CSP allows only same-origin styles, scripts and fonts: no inline style attributes, no CDN.

   MOTION. Everything that moves is decoration on top of a page that is complete without it:
   - scroll reveals use CSS scroll-driven animations where the browser has them, and nothing hides content elsewhere;
   - loops (orbs, packets, marquee, meters) stop under prefers-reduced-motion, and home-v2.js pauses the SVG packets. */

@font-face { font-family: 'Inter'; src: url('/fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #fbf9f7; --bg-alt: #f4f1ee; --card: #ffffff; --ink: #17121c; --ink-2: #4b4453; --ink-3: #7a7282;
  --line: #e9e4ee; --line-2: #ddd5e5;
  --orange: #ff8a3d; --pink: #e9338e; --violet: #8b5cf6; --cyan: #22d3ee; --green: #16a34a; --red: #e5484d;
  --brand: #e2552a; --brand-ink: #ffffff;
  --grad: linear-gradient(100deg, var(--orange), var(--pink) 55%, var(--violet));
  --night: #120a1f; --night-2: #1b1030; --night-ink: #f5f1fa; --night-ink-2: #b9aecb; --night-line: rgba(255,255,255,.1);
  --r: 16px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(23,18,28,.05), 0 12px 32px -18px rgba(23,18,28,.25);
  --ease: cubic-bezier(.2,.7,.2,1);
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0a14; --bg-alt: #130d1b; --card: #1a1324; --ink: #f3eff8; --ink-2: #c3b9d1; --ink-3: #908aa0;
    --line: #2a2136; --line-2: #3a2e4a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: color-mix(in srgb, var(--violet) 10%, transparent); border: 1px solid color-mix(in srgb, var(--violet) 18%, transparent); padding: 1px 6px; border-radius: 6px; }
.sprite { display: none; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 920px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(2px); }
.btn-primary { position: relative; border: 0; color: #fff; background: var(--grad); background-size: 160% 100%; background-position: 0 0; box-shadow: 0 8px 24px -10px rgba(233,51,142,.7); transition: background-position .5s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 28px -10px rgba(233,51,142,.85); }
.btn-ghost { background: transparent; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--night-line); background: transparent; color: var(--night-ink-2); cursor: pointer; transition: color .2s, background .2s; }
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--night) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--night-line); color: var(--night-ink); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 6px 18px -6px rgba(233,51,142,.6); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-size: 16px; letter-spacing: -.01em; }
.brand-txt small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--night-ink-2); font-weight: 600; }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--night-ink-2); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.on { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta { margin-left: auto; }
.lang ~ .nav-cta { margin-left: 8px; }
.nav-cta .btn:not(.btn-primary) { background: transparent; color: var(--night-ink); border-color: var(--night-line); }
.nav-toggle { display: none; margin-left: 4px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--night-line); background: transparent; color: var(--night-ink); place-items: center; cursor: pointer; }

/* ── Hero (always night) ── */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink); padding: 72px 0 44px; isolation: isolate; }
.hero-bg, .cta-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.orb-a { width: 560px; height: 560px; left: -160px; top: -220px; background: radial-gradient(circle, var(--orange), transparent 65%); animation: drift-a 18s ease-in-out infinite alternate; }
.orb-b { width: 620px; height: 620px; right: -200px; top: -120px; background: radial-gradient(circle, var(--violet), transparent 65%); animation: drift-b 22s ease-in-out infinite alternate; }
.orb-c { width: 420px; height: 420px; left: 38%; bottom: -260px; background: radial-gradient(circle, var(--pink), transparent 65%); opacity: .4; animation: drift-a 26s ease-in-out infinite alternate-reverse; }
.grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); animation: grid-pan 24s linear infinite; }
@keyframes drift-a { to { transform: translate3d(120px, 80px, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-110px, 120px, 0) scale(1.08); } }
@keyframes grid-pan { to { background-position: 56px 56px, 56px 56px; } }

.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #ffd9c4; background: rgba(255,138,61,.12); border: 1px solid rgba(255,138,61,.3); animation: rise .7s var(--ease) both; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--orange); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.h1 { margin: 0 0 20px; font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.h1 .w { display: block; animation: rise .8s var(--ease) both; }
.h1 .w1 { animation-delay: .08s; } .h1 .w2 { animation-delay: .2s; } .h1 .w3 { animation-delay: .32s; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .8s var(--ease) .32s both, shimmer 6s linear 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.lede { margin: 0 0 30px; max-width: 540px; font-size: 18px; color: var(--night-ink-2); animation: rise .8s var(--ease) .44s both; }
.lede b { color: var(--night-ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .8s var(--ease) .56s both; }
.hero .btn-ghost, .cta-band .btn-ghost { color: var(--night-ink); border-color: rgba(255,255,255,.18); }
.hero .btn-ghost:hover, .cta-band .btn-ghost:hover { background: rgba(255,255,255,.06); }
.hero-note { margin: 16px 0 0; font-size: 13.5px; color: var(--night-ink-2); animation: rise .8s var(--ease) .66s both; }

/* router diagram */
.hero-art { animation: rise 1s var(--ease) .3s both; }
.router { position: relative; width: 100%; max-width: 560px; margin-left: auto; aspect-ratio: 520 / 420; }
.router-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire { fill: none; stroke: url(#g-wire); stroke-width: 1.6; stroke-dasharray: 5 7; opacity: .55; animation: dash 1.6s linear infinite; }
#w-in { stroke-width: 2.2; opacity: .8; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.pkt { fill: #ffd2b8; filter: drop-shadow(0 0 6px #ff8a3d); }
.pkt-in { fill: #fff; }
.pkt-b { fill: #f9a8d4; filter: drop-shadow(0 0 6px #e9338e); }
.pkt-c { fill: #c4b5fd; filter: drop-shadow(0 0 6px #8b5cf6); }
.hub-glow { animation: breathe 3.2s ease-in-out infinite; transform-origin: 260px 210px; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.node { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--night-ink-2); transform: translate(-50%, -50%); }
.node-app { left: 10%; top: 50%; padding: 12px 12px 8px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--night-line); color: var(--night-ink); }
.node-app .ic { width: 22px; height: 22px; color: #ffd2b8; }
.node-hub { left: 50%; top: 50%; }
.node-hub img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 40px -4px rgba(233,51,142,.8); animation: hub-bob 4s ease-in-out infinite; }
.node-hub span { color: var(--night-ink); font-size: 13px; }
@keyframes hub-bob { 50% { transform: translateY(-4px); } }
.node-checks { position: absolute; left: 50%; top: 72%; transform: translateX(-50%); display: flex; gap: 6px; }
.node-checks span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--night-ink-2); background: rgba(255,255,255,.06); border: 1px solid var(--night-line); animation: check-lit 4.2s ease-in-out infinite; }
.node-checks span:nth-child(2) { animation-delay: .35s; } .node-checks span:nth-child(3) { animation-delay: .7s; }
.node-checks .ic { width: 12px; height: 12px; }
@keyframes check-lit { 0%, 60%, 100% { color: var(--night-ink-2); border-color: var(--night-line); } 20%, 40% { color: #bbf7d0; border-color: rgba(34,197,94,.5); } }
.hub-logo { position: absolute; left: 89%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 20px -8px rgba(0,0,0,.6); animation: logo-in .6s var(--ease) both, logo-float 5s ease-in-out infinite; }
.hub-logo img { width: 24px; height: 24px; }
.hub-logo:nth-of-type(1) { top: 13.8%; animation-delay: .5s, 0s; }
.hub-logo:nth-of-type(2) { top: 28.6%; animation-delay: .6s, .4s; }
.hub-logo:nth-of-type(3) { top: 43.3%; animation-delay: .7s, .8s; }
.hub-logo:nth-of-type(4) { top: 56.7%; animation-delay: .8s, 1.2s; }
.hub-logo:nth-of-type(5) { top: 71.4%; animation-delay: .9s, 1.6s; }
.hub-logo:nth-of-type(6) { top: 86.2%; animation-delay: 1s, 2s; }
@keyframes logo-in { from { opacity: 0; transform: scale(.6); } }
@keyframes logo-float { 50% { transform: translateY(-3px); } }

/* hero model chips at the wire ends (replace maker logos: only GPT models are callable today) */
.hub-logo.hub-chip { left: auto; right: 0; width: max-content; height: 32px; margin: -16px 0 0; padding: 0 12px 0 8px; gap: 7px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #1a1323; white-space: nowrap; }
.hub-logo.hub-chip img { width: 16px; height: 16px; }
/* model cards: the name to call, with a copy button */
.mc-call { display: flex; align-items: center; gap: 8px; }
.mc-call code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; padding: 5px 9px; }
.icon-btn-sm { width: 30px; height: 30px; border-radius: 8px; border-color: var(--line); color: var(--ink-3); }
.icon-btn-sm:hover { color: var(--ink); background: var(--bg-alt); }
.icon-btn-sm .ic { width: 15px; height: 15px; }
.mc-name span { display: block; }
@media (max-width: 640px) { .hub-logo.hub-chip { width: max-content; height: 26px; margin-top: -13px; padding: 0 9px 0 6px; font-size: 10.5px; gap: 5px; } .hub-logo.hub-chip img { width: 13px; height: 13px; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 56px 0 0; background: var(--night-line); border: 1px solid var(--night-line); border-radius: var(--r); overflow: hidden; animation: rise .8s var(--ease) .7s both; }
.stat { padding: 20px 22px; background: color-mix(in srgb, var(--night) 70%, transparent); }
.stat dt { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat dd { margin: 4px 0 0; font-size: 13.5px; color: var(--night-ink-2); }

/* ── Makers marquee ── */
.makers { padding: 34px 0 30px; border-bottom: 1px solid var(--line); overflow: hidden; }
.makers-label { margin: 0 0 18px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: scroll-x 48s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.mk { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14.5px; white-space: nowrap; color: var(--ink-2); }
.mk img { width: 22px; height: 22px; }
.mk .mk-i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 12px; font-weight: 800; color: #fff; background: var(--grad); }
@media (prefers-color-scheme: dark) { .mk img.mono { filter: invert(1); } }

/* ── Sections ── */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--night); color: var(--night-ink); }
.section-dark .sub, .section-dark p { color: var(--night-ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.eyebrow .ic { width: 16px; height: 16px; }
.section-dark .eyebrow { color: #ffb38a; }
.h2 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.sub { margin: 0 0 28px; max-width: 620px; font-size: 17.5px; color: var(--ink-2); }
.two { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ticks .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: #fff; background: var(--grad); stroke-width: 3; }

/* ── Feature pillars: each has a small dark "screen" with its own loop ── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.pillar { display: flex; flex-direction: column; padding: 14px 14px 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar h3 { margin: 22px 12px 8px; font-size: 20px; letter-spacing: -.01em; }
.pillar p { margin: 0 12px; color: var(--ink-2); font-size: 15.5px; }
.pillar-art { position: relative; height: 150px; border-radius: 14px; background: var(--night); overflow: hidden; color: var(--night-ink); display: flex; flex-direction: column; justify-content: center; padding: 0 22px; }
.pillar-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(260px circle at 85% 0%, rgba(233,51,142,.28), transparent 60%), radial-gradient(240px circle at 0% 100%, rgba(255,138,61,.22), transparent 60%); pointer-events: none; }
.pillar-art > * { position: relative; }
/* 1 · base_url swap */
.art-swap { font-family: var(--mono); font-size: 14px; gap: 8px; }
.ps-k { color: var(--night-ink-2); font-size: 12px; letter-spacing: .06em; }
.ps-v { display: inline-grid; }
.ps-old, .ps-new { grid-area: 1 / 1; white-space: nowrap; }
.ps-old { color: var(--night-ink-2); text-decoration-color: #f87171; animation: old-out 7s var(--ease) infinite; }
.ps-new { color: #fdba74; font-weight: 600; overflow: hidden; border-right: 2px solid #fdba74; width: 0; animation: type-in 7s steps(19) infinite, caret .8s step-end infinite; }
@keyframes old-out { 0%, 20% { opacity: 1; } 28%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes type-in { 0%, 28% { width: 0; } 52%, 90% { width: 19ch; } 96%, 100% { width: 0; } }
@keyframes caret { 50% { border-color: transparent; } }
/* 2 · spend meter stops at the cap */
.art-meter { gap: 10px; }
.art-meter .meter-cap { align-self: flex-end; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--night-ink-2); }
.art-meter .meter { display: block; height: 12px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.art-meter .meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); animation: fill 5s var(--ease) infinite; }
.art-meter .meter-stop { font-size: 12.5px; font-weight: 700; color: #fca5a5; opacity: 0; animation: stop-in 5s var(--ease) infinite; }
@keyframes fill { 0% { width: 0; } 55%, 100% { width: 100%; } }
@keyframes stop-in { 0%, 55% { opacity: 0; transform: translateY(4px); } 62%, 100% { opacity: 1; transform: none; } }
/* 3 · fallback: the first model fails, the backup answers */
.art-fall { gap: 10px; }
.pf { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.pf i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 800; color: var(--night-ink-2); border: 1.5px solid rgba(255,255,255,.25); }
.pf b { margin-left: auto; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; opacity: 0; }
.pf .bad { color: #fca5a5; background: rgba(239,68,68,.15); animation: pf-bad 6s var(--ease) infinite; }
.pf .good { color: #86efac; background: rgba(34,197,94,.15); animation: pf-good 6s var(--ease) infinite; }
.pf-1 { animation: pf-1 6s var(--ease) infinite; }
.pf-2 { animation: pf-2 6s var(--ease) infinite; }
@keyframes pf-bad { 0%, 14% { opacity: 0; } 20%, 100% { opacity: 1; } }
@keyframes pf-good { 0%, 42% { opacity: 0; transform: scale(.85); } 48%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pf-1 { 0%, 12% { border-color: rgba(255,255,255,.1); } 18%, 34% { border-color: rgba(248,113,113,.8); } 40%, 100% { border-color: rgba(248,113,113,.3); } }
@keyframes pf-2 { 0%, 38% { border-color: rgba(255,255,255,.1); } 46%, 90% { border-color: rgba(74,222,128,.8); box-shadow: 0 0 0 3px rgba(74,222,128,.12); } 100% { border-color: rgba(255,255,255,.1); } }

/* included list */
.includes { margin-top: 28px; padding: 28px 30px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-alt); }
.includes-h { margin: 0 0 16px; font-weight: 700; font-size: 15px; }
.includes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 20px; }
.includes li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.includes .ic { width: 18px; height: 18px; padding: 3px; margin-top: 1px; border-radius: 50%; color: #fff; background: var(--grad); stroke-width: 3; }

/* steps */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.step-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 8px 20px -10px rgba(233,51,142,.8); }
.steps b { display: block; font-size: 17px; margin-bottom: 2px; }
.steps span { color: var(--ink-2); font-size: 15.5px; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }

/* code window */
.code { border-radius: var(--r); background: #150d22; color: #e9e2f3; border: 1px solid #2a1f3d; box-shadow: 0 30px 60px -30px rgba(18,10,31,.8); overflow: hidden; }
.code-head { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-bottom: 1px solid #2a1f3d; }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3b2d52; } .dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.code-tabs { display: flex; gap: 4px; margin-right: auto; }
.code-tabs button { border: 0; background: transparent; color: #a89bbd; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: color .2s, background .2s; }
.code-tabs button[aria-selected="true"] { color: #fff; background: rgba(255,255,255,.08); }
.code-pane pre { margin: 0; padding: 20px 22px 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; overflow-x: auto; }
.code-pane .k { color: #f9a8d4; } .code-pane .s { color: #fdba74; }
.code-cap { margin: 14px 22px 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a89bbd; }
.code.is-tabbed .code-cap { display: none; }
.code-pane:not([hidden]) pre { animation: pane-in .35s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } }

/* ── Model explorer ── */
.explorer { margin-top: 8px; }
.ex-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-3); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink) 15%, transparent); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.ex-bar select { height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14.5px; cursor: pointer; max-width: 100%; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .2s var(--ease); }
.chip .ic { width: 15px; height: 15px; }
.chip[aria-pressed="true"] { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.ex-count { margin-left: auto; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ex-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); min-width: 0; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; animation: card-in .45s var(--ease) both; }
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.mc-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mc-logo { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); font-weight: 800; font-size: 14px; color: var(--ink-2); }
.mc-logo img { width: 20px; height: 20px; }
@media (prefers-color-scheme: dark) { .mc-logo img.mono { filter: invert(1); } }
.mc-name { min-width: 0; }
.mc-name b { display: block; font-size: 15.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-name span { font-size: 13px; color: var(--ink-3); }
.mc-id { font-family: var(--mono); font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg-alt); border: 1px solid var(--line); white-space: nowrap; }
.tag .ic { width: 12px; height: 12px; }
.tag-live { color: #15803d; background: color-mix(in srgb, #16a34a 10%, transparent); border-color: color-mix(in srgb, #16a34a 25%, transparent); }
.tag-soon { color: #a21caf; background: color-mix(in srgb, #c026d3 9%, transparent); border-color: color-mix(in srgb, #c026d3 25%, transparent); }
@media (prefers-color-scheme: dark) { .tag-live { color: #86efac; } .tag-soon { color: #f0abfc; } }
.ex-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r); }
.ex-more { display: flex; justify-content: center; margin-top: 22px; }
.ex-foot { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--ink-3); }

/* ── FAQ ── */
.faq { margin-top: 34px; display: grid; gap: 10px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; gap: 12px; padding: 18px 20px; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { margin-left: auto; transition: transform .3s var(--ease); color: var(--ink-3); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); animation: pane-in .3s var(--ease); }

/* ── CTA band & footer ── */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: 100px 0; background: var(--night); color: var(--night-ink); }
.cta-band .sub { color: var(--night-ink-2); }
.cta-band .hero-cta { justify-content: center; animation: none; }
.cta-bg .orb-a { left: 10%; top: -40%; } .cta-bg .orb-b { right: 5%; top: 10%; }
.foot { padding: 34px 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.foot .brand-txt small { color: var(--ink-3); }
.foot .brand img { box-shadow: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; font-size: 14.5px; color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }
.foot-note { width: 100%; margin: 0; font-size: 13px; color: var(--ink-3); }

/* ── v5: regions (US / China) ── */
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.region { padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.region:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.region-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.region-head h3 { margin: 0; font-size: 20px; }
.region-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }
.region-flag { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-weight: 800; font-size: 15px; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #2563eb, #8b5cf6); box-shadow: 0 10px 24px -12px rgba(37,99,235,.8); }
.region-flag.cn { background: linear-gradient(135deg, #e5484d, #ff8a3d); box-shadow: 0 10px 24px -12px rgba(229,72,77,.8); }
.lab-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); }
.lab-logo { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); }
.lab-txt { flex: 1; min-width: 0; }
.lab-txt b { display: block; font-size: 15.5px; }
.lab-txt span { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.lab-n { flex: none; min-width: 34px; height: 28px; padding: 0 10px; display: grid; place-items: center; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
@media (prefers-color-scheme: dark) { .lab-logo img.mono { filter: invert(1); } }

/* ── v5: route visual (dark section) ── */
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feat-list li { display: flex; gap: 14px; }
.feat-list .ic { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 12px; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.feat-list b { display: block; font-size: 16px; margin-bottom: 2px; }
.feat-list span { color: var(--ink-2); font-size: 15px; }

.feat-dark b { color: var(--night-ink); }
.feat-dark span { color: var(--night-ink-2); }
.feat-dark .ic { color: #ffb38a; background: rgba(255,138,61,.12); }
.section-dark code { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fdba74; }
.routeviz { padding: 26px; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid var(--night-line); }
.rv-call { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: #0b0615; color: #fdba74; font-size: 14.5px; margin-bottom: 20px; }
.rv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: ping-dot 1.4s ease-in-out infinite; }
@keyframes ping-dot { 50% { opacity: .35; } }
.rv-steps { position: relative; display: grid; gap: 12px; padding-left: 30px; }
.rv-steps::before { content: ''; position: absolute; left: 11px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--orange), var(--pink), var(--violet)); opacity: .5; }
.rv-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--night-line); color: var(--night-ink); font-weight: 600; }
.rv-step img { width: 22px; height: 22px; }
img.mono-w { filter: invert(1); }
.rv-n { position: absolute; left: -30px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 800; color: var(--night-ink); background: var(--night); border: 2px solid rgba(255,255,255,.25); }
.rv-step b { margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.rv-bad { color: #fca5a5; background: rgba(239,68,68,.15); animation: rv-bad 6s var(--ease) infinite; }
.rv-good { color: #86efac; background: rgba(34,197,94,.15); animation: rv-good 6s var(--ease) infinite; }
.rv-idle { color: var(--night-ink-2); background: rgba(255,255,255,.06); }
.rv-1 { animation: rv-1 6s var(--ease) infinite; }
.rv-2 { animation: rv-2 6s var(--ease) infinite; }
.rv-3 { opacity: .6; }
@keyframes rv-bad { 0%, 14% { opacity: 0; } 20%, 100% { opacity: 1; } }
@keyframes rv-good { 0%, 40% { opacity: 0; transform: scale(.85); } 46%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rv-1 { 0%, 10% { border-color: var(--night-line); } 16%, 34% { border-color: rgba(248,113,113,.8); } 40%, 100% { border-color: rgba(248,113,113,.3); } }
@keyframes rv-2 { 0%, 38% { border-color: var(--night-line); } 46%, 90% { border-color: rgba(74,222,128,.8); box-shadow: 0 0 0 4px rgba(74,222,128,.12); } 100% { border-color: var(--night-line); } }
.rv-bill { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--night-line); font-size: 14px; font-weight: 600; color: var(--night-ink-2); }

/* ── v5: customise cards ── */
.custom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.ccard { display: flex; flex-direction: column; padding: 14px 14px 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ccard h3 { margin: 22px 12px 8px; font-size: 20px; }
.ccard p { margin: 0 12px; color: var(--ink-2); font-size: 15.5px; }
.cc-art { height: 150px; border-radius: 14px; background: var(--night); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 22px; }
.cc-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(260px circle at 85% 0%, rgba(139,92,246,.3), transparent 60%); pointer-events: none; }
.cc-art > * { position: relative; }
.cc-names span { align-self: flex-start; font-family: var(--mono); font-size: 13px; padding: 6px 12px; border-radius: 9px; color: #fdba74; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); animation: name-in 4.5s var(--ease) infinite; }
.cc-names span:nth-child(2) { animation-delay: .5s; margin-left: 20px; }
.cc-names span:nth-child(3) { animation-delay: 1s; margin-left: 40px; }
@keyframes name-in { 0% { opacity: 0; transform: translateX(-10px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.cc-list span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--night-ink-2); }
.cc-list span::before { content: ''; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.3); flex: none; }
.cc-list span.on { color: var(--night-ink); }
.cc-list span.on::before { border-color: transparent; background: var(--grad); animation: tick 3.6s var(--ease) infinite; }
.cc-list span:nth-child(2).on::before { animation-delay: .3s; }
.cc-list span:nth-child(4).on::before { animation-delay: .6s; }
@keyframes tick { 0%, 10% { transform: scale(.4); opacity: .3; } 20%, 100% { transform: none; opacity: 1; } }
.cc-auto { align-items: flex-start; }
.ca-q { font-family: var(--mono); font-size: 13.5px; color: #fdba74; }
.ca-arrow { width: 2px; height: 26px; margin-left: 30px; background: linear-gradient(var(--orange), var(--violet)); animation: grow 3s var(--ease) infinite; transform-origin: top; }
@keyframes grow { 0% { transform: scaleY(0); } 40%, 100% { transform: none; } }
.ca-a { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #fff; background: var(--grad); animation: pop 3s var(--ease) infinite; }
@keyframes pop { 0%, 38% { opacity: 0; transform: scale(.85); } 48%, 100% { opacity: 1; transform: none; } }
.art-ledger2 { gap: 8px; }
.art-ledger2 span { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 9px; font-size: 12.5px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); animation: row-in2 4.5s var(--ease) infinite; }
.art-ledger2 span:nth-child(2) { animation-delay: .4s; }
.art-ledger2 span:nth-child(3) { animation-delay: .8s; }
.art-ledger2 i { font-style: normal; color: var(--night-ink); font-weight: 600; }
.art-ledger2 b { font-family: var(--mono); font-weight: 500; color: #fdba74; }
@keyframes row-in2 { 0% { opacity: 0; transform: translateY(6px); } 12%, 84% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.mtabs { display: flex; justify-content: center; gap: 8px; margin: 0 0 22px; flex-wrap: wrap; }
.mtabs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14.5px; color: var(--ink-2); cursor: pointer; transition: all .2s var(--ease); }
.mtabs button b { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-3); }
.mtabs button[aria-selected="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.mtabs button[aria-selected="true"] b { background: rgba(255,255,255,.2); color: #fff; }
@media (prefers-color-scheme: dark) { .mtabs button[aria-selected="true"] { color: var(--night); } .mtabs button[aria-selected="true"] b { color: var(--night); background: rgba(0,0,0,.12); } }
.mcard[hidden] { display: none; }
.code-pane .c { color: #8b7fa3; }
@media (max-width: 1020px) { .regions { grid-template-columns: 1fr; } .custom-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }
@media (max-width: 640px) { .region { padding: 18px; } .stats { grid-template-columns: 1fr 1fr; } }

/* ── Language menu (works without JavaScript: <details>) ── */
.lang { position: relative; margin-left: auto; }
.lang + .nav-cta { margin-left: 8px; }
.lang summary { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--night-line); color: var(--night-ink); font-size: 13.5px; font-weight: 600; cursor: pointer; list-style: none; transition: background .2s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: rgba(255,255,255,.08); }
.lang summary .ic { width: 16px; height: 16px; }
.lang .lang-chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.lang[open] .lang-chev { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px; max-height: min(70vh, 460px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #1a1126; border: 1px solid var(--night-line); box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); animation: pane-in .2s var(--ease); }
.lang-list a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; color: var(--night-ink-2); transition: background .15s, color .15s; }
.lang-list a:hover { background: rgba(255,255,255,.07); color: #fff; }
.lang-list a[aria-current="true"] { color: #fff; background: rgba(233,51,142,.18); font-weight: 600; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; font-size: 13.5px; }
.foot-langs a { color: var(--ink-3); }
.foot-langs a:hover, .foot-langs a[aria-current="true"] { color: var(--ink); }
.nav-cta { margin-left: 0; }

/* ── Scripts Inter does not cover: native system fonts, and no negative tracking on CJK / Thai ── */
:lang(ja) body { font-family: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', sans-serif; }
:lang(zh-Hans) body { font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', sans-serif; }
:lang(zh-Hant) body { font-family: 'Inter', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Source Han Sans TC', sans-serif; }
:lang(ko) body { font-family: 'Inter', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
:lang(th) body { font-family: 'Inter', 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', 'Sukhumvit Set', sans-serif; }
:lang(ja) .h1, :lang(ja) .h2, :lang(zh-Hans) .h1, :lang(zh-Hans) .h2, :lang(zh-Hant) .h1, :lang(zh-Hant) .h2,
:lang(ko) .h1, :lang(ko) .h2, :lang(th) .h1, :lang(th) .h2 { letter-spacing: 0; line-height: 1.22; }
:lang(ja) .h1, :lang(zh-Hans) .h1, :lang(zh-Hant) .h1, :lang(ko) .h1 { font-size: clamp(36px, 5.4vw, 64px); }
:lang(th) .h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.3; }
:lang(th) body { line-height: 1.75; }
:lang(ja) .lede, :lang(zh-Hans) .lede, :lang(zh-Hant) .lede, :lang(ko) .lede { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
/* long words in German-style languages and long CJK runs must never push the page sideways */
.h1, .h2, .lede, .sub, .mc-name b, .lab-txt span { overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .lang { margin-left: auto; }
  .lang summary { padding: 0 8px; }
  .lang .lang-chev { display: none; }
}
@media (max-width: 400px) {
  .lang summary .lang-code { display: none; }
}

/* phones: the language menu becomes a full-width sheet under the header, so it can never spill off screen */
@media (max-width: 640px) {
  .lang-list { position: fixed; left: 12px; right: 12px; top: 70px; min-width: 0; max-height: calc(100vh - 90px); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
}
/* the "your app" box is anchored by its left edge so long translations grow inward, never off screen */
.node-app { left: 0; transform: translate(0, -50%); max-width: 24%; text-align: center; }
.node-app span { overflow-wrap: anywhere; }

/* ── Toasts ── */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; }
.toast { padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: var(--shadow); animation: rise .3s var(--ease); }
.toast-err { background: var(--red); color: #fff; }

/* ── Scroll reveal: CSS scroll-driven animation, so content is never hidden where it is unsupported ── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
    .reveal[data-d="1"] { animation-range: entry 6% entry 48%; }
    .reveal[data-d="2"] { animation-range: entry 12% entry 54%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }

/* ── Responsive ── */
@media (max-width: 1020px) {
  .hero-in, .two { grid-template-columns: 1fr; }
  .router { margin: 10px auto 0; }
  .ex-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .includes ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .nav-links { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: var(--night); border-bottom: 1px solid var(--night-line); display: none; }
  .nav-links.open { display: flex; animation: pane-in .25s var(--ease); }
  .nav-links a { padding: 12px; border-radius: 10px; }
  .nav-toggle { display: grid; }
  .nav-in { gap: 12px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 32px; }
  .section { padding: 68px 0; }
  .ex-grid { grid-template-columns: 1fr; }
  .stat dd { font-size: 12.5px; }
  .includes { padding: 22px 18px; }
  .includes ul { grid-template-columns: 1fr; }
  .stat { padding: 16px; } .stat dt { font-size: 28px; }
  .lede { font-size: 16.5px; }
  .hub-logo { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .hub-logo img { width: 20px; height: 20px; }
  .node-checks { top: 75%; }
  .node-checks span { font-size: 10px; padding: 2px 6px; }
  .nav-cta .btn { padding: 0 12px; }
  .ex-bar select { flex: 1 1 140px; }
  .swap { font-size: 12.5px; }
  .ex-count { width: 100%; margin: 4px 0 0; }
  .brand-txt small { display: none; }
}

/* ── Reduced motion: final, readable frame of everything ── */
@media (prefers-reduced-motion: reduce) {
  .ps-old { display: none; }
  .ps-new { width: auto; border-right: 0; }
  .art-meter .meter i { width: 100%; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track .dup { display: none; }
}

/* ── v6: three regions, labs without a logo, searchable model directory ── */
.regions-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .regions-3 { grid-template-columns: 1fr 1fr; } .regions-3 .region:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .regions-3 { grid-template-columns: 1fr; } .regions-3 .region:last-child { grid-column: auto; } }
.region-flag.ww { font-size: 12px; background: linear-gradient(135deg, #0ea5a4, #22c55e); box-shadow: 0 10px 24px -12px rgba(14,165,164,.8); }
.lab-rest { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.lab-mono { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; font-size: 12px; letter-spacing: .02em; color: var(--ink-2); }
.mk .lab-mono { display: inline-grid; width: 18px; height: 18px; border-radius: 5px; font-size: 9px; background: var(--bg-alt); border: 1px solid var(--line); }
.hub-chip .lab-mono { display: inline-grid; width: 16px; height: 16px; font-size: 8px; }
.msearch { position: relative; max-width: 460px; margin: 0 auto 22px; }
.msearch .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.msearch input { width: 100%; height: 46px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.msearch input:focus { outline: none; border-color: #e9338e; box-shadow: 0 0 0 3px color-mix(in srgb, #e9338e 18%, transparent); }
.mfoot { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; }
.mfoot span { font-size: 13.5px; color: var(--ink-3); }
.mnone { text-align: center; color: var(--ink-3); margin: 8px 0 0; }
.tag-free { color: #047857; background: color-mix(in srgb, #10b981 14%, transparent); border-color: color-mix(in srgb, #10b981 35%, transparent); }
@media (prefers-color-scheme: dark) { .tag-free { color: #6ee7b7; } }
/* v7: lab columns have no region heading, so the first row needs no divider above it */
.regions-3 .region > .lab-row:first-child { border-top: 0; padding-top: 4px; }

/* ── v8: compact models (lab grid) + "Why A1 Token" benefits ── */
.section-tight { padding-top: 72px; padding-bottom: 72px; }
.labcloud { list-style: none; padding: 0; margin: 36px auto 0; max-width: 1040px; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.labtile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.labtile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.lt-logo { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); }
.lt-logo img { width: 20px; height: 20px; }
@media (prefers-color-scheme: dark) { .lt-logo img.mono { filter: invert(1); } }
.lt-name { font-weight: 650; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.labtile-more { justify-content: center; background: transparent; border-style: dashed; }
.labtile-more .lt-name { color: var(--ink-3); }
.whygrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
@media (max-width: 1080px) { .whygrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .whygrid { grid-template-columns: 1fr; } }
.why { padding: 26px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.why-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #ff8a3d, #e9338e 55%, #8b5cf6); box-shadow: 0 12px 26px -12px rgba(233,51,142,.75); margin-bottom: 18px; }
.why-ic .ic { width: 22px; height: 22px; }
.why h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.why p { margin: 0; color: var(--ink-2); line-height: 1.6; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) { .why:hover .why-ic { animation: why-pop .5s var(--ease); } }
@keyframes why-pop { 40% { transform: scale(1.12) rotate(-6deg); } }
/* Japanese headings break at phrase boundaries instead of leaving one character on a line */
:lang(ja) .h1, :lang(ja) .h2, :lang(ja) h3 { word-break: auto-phrase; }
/* Phones: the Sign in / Open console button moves into the menu, so the header keeps brand, language and menu only */
.nav-menu-cta { display: none; }
@media (max-width: 640px) {
  .nav-in > .nav-cta { display: none; }
  .nav-menu-cta { display: block; padding: 10px 0 2px; margin-top: 6px; border-top: 1px solid var(--night-line); }
  .nav-menu-cta .btn { width: 100%; justify-content: center; height: 46px; }
  .nav-links .nav-menu-cta a { padding: 0 18px; border-radius: 999px; color: #fff; }
  .lang { margin-left: auto; }
}
