/* The clean pass, loaded last: near-black ground, flat panels with hairline edges, small corners,
   one solid accent on the button that matters, and no glow where a line will do. */
:root { --r: 8px; --edge: rgba(255, 255, 255, .09); }
body::before { opacity: .035; }

/* buttons: a plain light block for the main action, a quiet bordered one beside it. The sphere keeps the ember to itself. */
.btn { border-radius: var(--r); height: 40px; padding: 0 18px; background: var(--ink); color: #0a0d10; font-weight: 500; box-shadow: none; }
.btn:hover, .btn:not(.ghost):hover { background: #fff; box-shadow: none; }
.btn.big { height: 46px; padding: 0 24px; font-size: 15.5px; }
.btn.ghost { background: #0b1015; color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
.btn.ghost:hover { background: #11171d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }

/* the bar */
.bar { background: rgba(5, 8, 11, .82); border-bottom: 1px solid var(--edge); }
.bar .wrap { height: 58px; }
.bar nav { gap: 26px; font-size: 14px; }

/* panels: flat, thin edge, small corner */
.tile, .panel, .feat .console, .feat .code, .console { border-radius: 10px; border-color: var(--edge); }
.tile, .panel, .feat .console { background: #080c10; }
.lm { background: #05080b; }
.lm:hover { border-color: rgba(255, 255, 255, .2); }
.tile::after { display: none; }
.tabs { border-bottom-color: var(--edge); }
.tabs button, .copy { border-radius: 6px; }
.lm-id, .card .id code, .prose code { border-radius: 5px; }
.panel-bar, .panel-foot, .keyrow, .console-bar { border-color: var(--edge); }
.meter, .meter i { border-radius: 3px; }
.meter { height: 6px; }
.meter i { background: var(--ember); }

/* type: tighter, a touch heavier, sized like a product page and not a poster */
h1, h2 { font-weight: 600; }
.s > .wrap > h2, .feat h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; }
.s > .wrap > .lede, .feat p { font-size: 16.5px; color: #9aa6b2; }
.hero .hero-copy h1 { font-size: clamp(44px, 5.4vw, 76px); letter-spacing: -.045em; }
.hero .hero-copy p { color: #9aa6b2; font-size: clamp(16px, 1.35vw, 19px); }
section.s { padding: 88px 0; }
.feat { padding: 52px 0; }
.facts b { font-size: 20px; }

/* the system: finer lines, flatter nodes */
.system .orbits path { stroke: rgba(255, 255, 255, .1); }
.system .orbits path.far { stroke: rgba(255, 255, 255, .06); }
.node .disc { background: #0b1015; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.node.model .disc { background: #0b1015; }
.node:hover .disc { box-shadow: inset 0 0 0 1px var(--ember); }
.node .card { border-radius: 10px; background: rgba(8, 12, 16, .96); box-shadow: inset 0 0 0 1px var(--edge), 0 24px 50px -20px #000; }
.hero { border-bottom: 1px solid var(--edge); }

/* the story sits on the same flat ground */
.story { margin-top: 0; border-top: 0; border-bottom: 1px solid var(--edge); }

/* the last panel: words on the left, rings on the right */
.endcard { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; border: 1px solid var(--edge); border-radius: 10px; background: #080c10; min-height: 240px; }
.endcard > div { padding: 40px; position: relative; z-index: 1; }
.endcard h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.03em; }
.endcard p { color: #9aa6b2; margin-top: 8px; }
.endcard .cta { display: flex; gap: 10px; margin-top: 24px; }
.endcard .rings { position: absolute; right: 0; top: 0; height: 100%; width: 62%; color: rgba(255, 255, 255, .09); }
@media (max-width: 760px) { .endcard { grid-template-columns: 1fr; } .endcard .rings { opacity: .5; width: 100%; } }

/* footer in columns */
footer { padding: 64px 0 72px; border-top: 1px solid var(--edge); }
footer .cols { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; align-items: start; }
footer .cols > div { display: grid; gap: 12px; align-content: start; }
footer .cols b { color: var(--ink); font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
footer .cols a { color: #8b96a1; font-size: 14.5px; }
footer .cols a:hover { color: var(--ink); }
footer .fbrand span { font-size: 13.5px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .fbrand { grid-column: 1 / -1; } }

/* inner pages */
.card { border-radius: 10px; }
.head h1 { font-size: clamp(36px, 4.6vw, 60px); }

/* orbit icons: always drawn in the light ink, whatever the file says, and never dimmed into the ground */
.node .disc svg, .node .disc svg * { fill: currentColor; }
.node.tool .disc svg { color: #e8eef5; width: 17px; height: 17px; }
.node.tool .disc { background: #10161c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }

/* lower panels, same quiet motion as the hero: rows arrive one after another, rings breathe outward */
html.js .rv .keeprow, html.js .rv .keyrow { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
html.js .rv.in .keeprow, html.js .rv.in .keyrow { opacity: 1; transform: none; }
html.js .rv.in .keeprow:nth-child(1), html.js .rv.in .keyrow:nth-child(1) { transition-delay: .15s; }
html.js .rv.in .keeprow:nth-child(2), html.js .rv.in .keyrow:nth-child(2) { transition-delay: .3s; }
html.js .rv.in .keeprow:nth-child(3), html.js .rv.in .keyrow:nth-child(3) { transition-delay: .45s; }
html.js .rv.in .keeprow:nth-child(4) { transition-delay: .6s; }
.endcard .rings ellipse { transform-origin: 400px 120px; animation: ring-out 7s linear infinite; }
.endcard .rings ellipse:nth-child(2) { animation-delay: -1.4s; }
.endcard .rings ellipse:nth-child(3) { animation-delay: -2.8s; }
.endcard .rings ellipse:nth-child(4) { animation-delay: -4.2s; }
.endcard .rings ellipse:nth-child(5) { animation-delay: -5.6s; }
@keyframes ring-out { 0% { transform: scale(.15); opacity: 0; } 12% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.endcard .rings ellipse { rx: 450px; ry: 160px; }
@media (prefers-reduced-motion: reduce) { .endcard .rings ellipse { animation: none; } html.js .rv .keeprow, html.js .rv .keyrow { opacity: 1; transform: none; } }

/* a fuller sky: small bursts on the tools, plain points further out, and a bigger, heavier headline */
.node.tool .burst { width: 110px; height: 110px; margin: -55px 0 0 -55px; }
.node.dot .burst { width: 90px; height: 90px; margin: -45px 0 0 -45px; opacity: .8; }
.node.dot.big .disc { width: 8px; height: 8px; opacity: .8; }
.node .burst { animation-duration: 140s; }
.node.tool:nth-of-type(odd) .burst, .node.dot:nth-of-type(odd) .burst { animation-direction: reverse; }
.hero .hero-copy h1 { font-size: clamp(52px, 6.4vw, 96px); font-weight: 700; letter-spacing: -.05em; }
button.btn { border: 0; cursor: pointer; font-family: var(--sans); }

/* the same request, two outcomes */
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.duel .panel-bar { align-items: center; }
.duel .panel-bar b { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.duel .panel-bar code { font: 400 12.5px var(--mono); color: var(--mute); }
.chat { padding: 20px; min-height: 290px; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.msg.user { align-self: flex-end; max-width: 82%; background: #141a20; border-radius: 10px 10px 2px 10px; padding: 10px 14px; color: var(--ink); }
.msg.bot { color: #c9d2dc; max-width: 92%; line-height: 1.55; }
.msg.bot.wait { color: var(--mute); letter-spacing: 3px; }
.msg.tool { font: 400 12.5px var(--mono); color: #8b96a1; padding: 7px 10px; border: 1px solid var(--edge); border-radius: 6px; align-self: flex-start; }
.msg.tool::before { content: "tool  "; color: #5d6772; }
.chip { font: 500 12px var(--sans); padding: 3px 9px; border-radius: 5px; opacity: 0; transition: opacity .3s; }
.chip.bad { opacity: 1; color: #ff9d92; background: rgba(255, 110, 96, .12); }
.chip.ok { opacity: 1; color: #8fdcae; background: rgba(111, 214, 160, .1); }
.side { transition: opacity .6s, border-color .6s; }
.side.dead { opacity: .45; }
.side.dead .msg.bot { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.side.won { border-color: rgba(255, 110, 50, .5); }
@media (max-width: 760px) { .duel { grid-template-columns: 1fr; } .chat { min-height: 220px; } }

/* hero, tidied: buttons of one weight, an icon on the copy button that turns to a tick, and the facts as three plain words split by hairlines */
.btn.ghost { font-weight: 500; }
.btn .ico { width: 15px; height: 15px; margin-right: 9px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.btn .ico .c2 { opacity: 0; }
.btn.done .ico .c1 { opacity: 0; }
.btn.done .ico .c2 { opacity: 1; }
.btn.done .ico { opacity: 1; color: #8fdcae; }
.hero .hero-copy .cta { gap: 10px; }
.facts { gap: 0; margin-top: 40px; }
.facts > div { padding: 0 28px; border-left: 1px solid var(--edge); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts b { font: 500 16px var(--sans); letter-spacing: -.01em; color: var(--ink); }
.facts span { font-size: 13.5px; margin-top: 3px; }
@media (max-width: 560px) { .facts > div { padding: 0 16px; } }

/* the line: three plain tiles of one size, no planets. Name, what it is for, its id, its prices. */
.lineup { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
.lm, .lm-0 { grid-row: auto; min-height: 0; padding: 26px; }
.lm > *, .lm-1 > *:not(canvas), .lm-2 > *:not(canvas) { max-width: 100%; }
.lm h3, .lm-0 h3 { font-size: 22px; letter-spacing: -.02em; }
.lm .role, .lm-0 .role { font-size: 15px; color: #9aa6b2; min-height: 3em; }
.lm-id { max-width: 100%; overflow-wrap: anywhere; }
.lm dl, .lm-1 dl, .lm-2 dl { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--edge); }
.lm dd { font-size: 15px; }
@media (max-width: 980px) { .lineup { grid-template-columns: 1fr; } .lm .role, .lm-0 .role { min-height: 0; } }
.lm h3, .lm-0 h3 { font-size: 20px; line-height: 1.15; }
.lm-id { margin-bottom: 26px; }
.lm dl, .lm-1 dl, .lm-2 dl { margin-top: auto; }

/* inner pages: the text keeps its side gutter on a narrow window, a lone Copy button sits in the corner of its block with no empty bar above the code, and headings sit closer to what they introduce */
.wrap.prose { padding-left: 24px; padding-right: 24px; }
.prose h2 { margin: 48px 0 12px; scroll-margin-top: 80px; }
.prose .tile { margin: 16px 0 20px; }
.code { position: relative; }
.code pre { padding: 18px 20px; line-height: 1.7; }
.code .tabs { padding: 8px 10px; }
.code .tabs:has(> .copy:only-child) { position: absolute; top: 8px; right: 8px; padding: 0; border: 0; z-index: 2; }
.code .tabs:has(> .copy:only-child) .copy { background: #0b1015; box-shadow: inset 0 0 0 1px var(--edge); padding: 5px 10px; }
.code .tabs:has(> .copy:only-child) + pre { padding-right: 84px; }

/* Chinese pages: system CJK faces behind the Latin ones, no negative tracking on characters, and the small pieces only those pages use */
:lang(zh-CN) body, :lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3, :lang(zh-CN) .btn { font-family: var(--sans), "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3, :lang(zh-CN) .head h1 { letter-spacing: 0; line-height: 1.25; }
:lang(zh-CN) .prose p, :lang(zh-CN) .prose li, :lang(zh-CN) .head p { line-height: 1.8; }
.head .cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.head p code { font-size: .88em; background: rgba(255, 255, 255, .06); border-radius: 5px; padding: 2px 6px; overflow-wrap: anywhere; }
.zh-facts { margin: 8px 0 0; }
.fine { color: var(--mute); font-size: 13.5px; margin-top: 12px; }
.zh-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 0; }
.zh-links a.tile { display: grid; gap: 6px; padding: 18px; border-bottom: 1px solid var(--edge); margin: 0; }
.zh-links a.tile:hover { border-color: rgba(255, 255, 255, .2); }
.zh-links b { font-weight: 500; color: var(--ink); }
.zh-links span { color: var(--mute); font-size: 13.5px; line-height: 1.6; }
.zh-faq { display: grid; gap: 10px; }
.zh-faq details.tile { margin: 0; padding: 16px 18px; }
.zh-faq summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.zh-faq details p { margin: 12px 0 0; color: #9aa6b2; }
.prose .models { margin: 16px 0 0; }
.mrow .who a { border: 0; }
footer .fbrand .flang { color: #8b96a1; font-size: 13.5px; margin-top: 6px; }
footer .fbrand .flang:hover { color: var(--ink); }
@media (max-width: 760px) { .zh-links { grid-template-columns: 1fr; } }

/* inner pages open like the home page: the sphere and its rings to the right of the heading, faded out behind the words */
section.head { position: relative; overflow: hidden; padding: 0; border-bottom: 1px solid var(--edge); }
section.head > .wrap { position: relative; z-index: 3; padding-top: clamp(84px, 9vw, 128px); padding-bottom: clamp(48px, 5vw, 72px); }
section.head h1 { font-weight: 700; letter-spacing: -.05em; line-height: 1; }
section.head p { font-size: clamp(16px, 1.35vw, 19px); color: #9aa6b2; }
section.head .head-art { position: absolute; z-index: 1; top: 50%; right: max(-120px, calc((100vw - var(--wrap)) / 2 - 150px)); width: 620px; height: 620px; transform: translateY(-46%); pointer-events: none; }
section.head .head-art svg { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(214, 226, 240, .13); transform: rotate(-14deg); }
section.head .head-art svg circle { fill: rgba(214, 226, 240, .55); }
section.head .head-art canvas { position: absolute; left: 50%; top: 50%; width: 230px; height: 230px; margin: -115px 0 0 -115px; }
section.head::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 8, 11, .9) 38%, rgba(5, 8, 11, 0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(5, 8, 11, 0) 22%); }
section.head + .wrap.prose, .head + .wrap { padding-top: 40px; }
@media (max-width: 900px) { section.head .head-art { right: -260px; opacity: .55; } section.head::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 8, 11, .82) 55%, rgba(5, 8, 11, .35) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(5, 8, 11, 0) 22%); } }

/* Chinese type: a real CJK face at the same weights as the Latin one, so headings match the English pages */
:lang(zh-CN) body, :lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3, :lang(zh-CN) .btn { font-family: var(--sans), "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
:lang(zh-CN) .hero .hero-copy h1, :lang(zh-CN) .head h1 { font-family: var(--display, var(--sans)), "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 700; letter-spacing: .01em; line-height: 1.15; }
:lang(zh-CN) .hero .hero-copy h1 { font-size: clamp(48px, 5.6vw, 84px); }
:lang(zh-CN) .head h1 { font-size: clamp(34px, 4vw, 54px); }
:lang(zh-CN) h2, :lang(zh-CN) .wallstory .beat h2 { font-weight: 500; letter-spacing: 0; line-height: 1.3; }
:lang(zh-CN) .feat-copy p code, :lang(zh-CN) .hero-copy p code { font-size: .88em; background: rgba(255, 255, 255, .06); border-radius: 5px; padding: 2px 6px; }

/* the heading's words stop where the sphere begins, so nothing is read through it */
@media (min-width: 1100px) { section.head > .wrap > h1, section.head > .wrap > p { max-width: calc(100% - 380px); } }
/* Chinese characters are set at their natural spacing everywhere */
:lang(zh-CN) body, :lang(zh-CN) body * { letter-spacing: 0; }
:lang(zh-CN) .hero .hero-copy h1, :lang(zh-CN) section.head h1 { letter-spacing: .01em; }
section.head .head-art canvas { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
@media (max-width: 900px) { section.head .head-art { opacity: .35; } }

/* below the hero, in the hero's voice: headings at its weight, model marks as the same ringed discs that orbit the sphere, and the live sphere at the centre of the closing rings */
.s > .wrap > h2, .feat h2 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
.endcard h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.04em; }
.endcard { min-height: 300px; }
:lang(zh-CN) .s > .wrap > h2, :lang(zh-CN) .feat h2, :lang(zh-CN) .endcard h2 { font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.lm-top { gap: 14px; }
.lm-top img { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: #0b1015; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: box-shadow .2s; }
.lm:hover .lm-top img { box-shadow: inset 0 0 0 1px rgba(255, 140, 70, .95), 0 0 26px -6px rgba(255, 110, 40, .6); }
.endcard .end-orb { position: absolute; top: 50%; right: calc(20.67% - 62px); width: 124px; height: 124px; margin-top: -62px; z-index: 0; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.endcard .rings circle { display: none; }
.endcard .rings { color: rgba(214, 226, 240, .12); }
@media (max-width: 760px) { .endcard .end-orb { opacity: .5; } }

/* The hero's three facts in the headline's own type (28 Nov 2026): the display face at 700, drawn tight, in white,
   one to a line with what it means beside it, so none of them wraps or sits apart from the others. */
.hero .facts { flex-direction: column; gap: 10px; margin-top: 44px; }
.hero .facts > div { display: flex; align-items: baseline; gap: 14px; padding: 0; border: 0; }
.hero .facts b { font: 700 clamp(22px, 2vw, 30px)/1.05 var(--display); letter-spacing: -.045em; color: #f4f0ea; white-space: nowrap; }
.hero .facts span { font-size: 14px; margin-top: 0; white-space: nowrap; }
@media (max-width: 980px) { .hero .facts { align-items: center; } }
@media (max-width: 560px) { .hero .facts > div { flex-direction: column; align-items: center; gap: 2px; } .hero .facts b { font-size: 21px; } }

/* A model's take is a short paragraph now, not a line: let it run the tile's width and keep the three tiles level. */
.lm .role, .lm-0 .role { font-size: 14.5px; line-height: 1.55; min-height: 0; color: #a9b4bf; }
.cards .card p { line-height: 1.6; }
