:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --ease: cubic-bezier(.2,.7,.2,1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--page-bg); }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--selection); }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.icon { width: 1em; height: 1em; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page-bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); }
.header { height: 64px; display: flex; align-items: center; gap: 12px; }
.wordmark { font-size: 1.375rem; line-height: 1; font-weight: 700; letter-spacing: -.065em; }
.header nav { display: flex; align-items: center; gap: 2px; margin-left: auto; font-size: .875rem; }
.header nav a { padding: 7px 12px; border-radius: 8px; color: var(--muted); transition: color .2s, background .2s; }
.header nav a:hover, .header nav a[aria-current] { color: var(--text); background: var(--hover); }
.header .language { margin-left: 6px; }
.header-cta { margin-left: 4px; }

/* Typography */
h1 { font-size: clamp(2.75rem, 6.6vw, 5rem); font-weight: 650; line-height: 1.05; letter-spacing: -.045em; text-wrap: balance; }
h1 > span { display: block; }
h1 > span + span { background: linear-gradient(100deg, var(--text) 10%, var(--muted) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 650; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
:lang(zh-CN) h1 { letter-spacing: -.02em; line-height: 1.16; }
:lang(zh-CN) h2 { letter-spacing: -.01em; line-height: 1.3; }
:lang(zh-CN) h1, :lang(zh-CN) h2 { word-break: keep-all; overflow-wrap: anywhere; }
.lead { color: var(--muted); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.75; text-wrap: pretty; }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 600; letter-spacing: .01em; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-size: .9375rem; font-weight: 550; line-height: 1; white-space: nowrap; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--button-bg); color: var(--button-text); box-shadow: 0 8px 24px -10px var(--glow-a); }
.btn-primary:hover { background: var(--button-hover); box-shadow: 0 10px 30px -8px var(--glow-a); }
.btn-secondary { background: var(--glass); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--subtle); }
.btn-sm { height: 34px; padding: 0 14px; font-size: .8125rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 550; color: var(--text); }
.text-link:hover { color: var(--accent); }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
a:hover .arrow { transform: translate(2px,-2px); }
a:hover .arrow-forward { transform: translateX(3px); }
a:hover .arrow-down { transform: translateY(2px); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--glass); color: var(--muted); font-size: .8125rem; line-height: 1.3; }
.pill-badge { margin-left: -6px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 600; }

/* Hero */
.hero { position: relative; isolation: isolate; padding-top: 96px; text-align: center; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: -64px -50vw auto; height: 760px; background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 25%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 50% 60% at 50% 25%, #000 20%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; z-index: -1; left: 50%; top: -64px; width: min(1200px, 160vw); height: 620px; transform: translateX(-50%); background: radial-gradient(45% 55% at 50% 0%, var(--glow-a), transparent 72%), radial-gradient(30% 40% at 72% 8%, var(--glow-b), transparent 70%); pointer-events: none; }
.buzz-page .hero::after { background: radial-gradient(45% 55% at 50% 0%, var(--glow-c), transparent 72%), radial-gradient(30% 40% at 72% 8%, var(--glow-b), transparent 70%); }
.hero h1 { margin: 24px auto 0; }
.hero .lead { max-width: 640px; margin: 24px auto 0; }
.hero .actions { justify-content: center; margin-top: 36px; }
.hero-note { margin-top: 16px; color: var(--subtle); font-size: .8125rem; }
.product-identity { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; }
.product-identity .product-brand { font-size: 1.75rem; }
.hero-visual { position: relative; max-width: 1100px; margin: 72px auto 0; }
.glow-pudding::before, .glow-buzz::before { content: ''; position: absolute; z-index: -1; inset: -14% -14% 8%; background: radial-gradient(38% 48% at 22% 50%, var(--glow-a), transparent 70%), radial-gradient(38% 48% at 78% 42%, var(--glow-b), transparent 70%); filter: blur(36px); pointer-events: none; }
.glow-buzz::before { background: radial-gradient(45% 50% at 35% 45%, var(--glow-c), transparent 70%), radial-gradient(40% 45% at 70% 50%, var(--glow-b), transparent 70%); }
.hero-enter { animation: enter .8s var(--ease) both; }
.hero .hero-enter:nth-child(2) { animation-delay: .05s; }
.hero .hero-enter:nth-child(3) { animation-delay: .1s; }
.hero .hero-enter:nth-child(4) { animation-delay: .15s; }
.hero .hero-enter:nth-child(5) { animation-delay: .2s; }
.hero .hero-visual.hero-enter { animation: rise 1.1s var(--ease) .25s both; }

/* Code-drawn windows, modeled on the real Pudding app and Buzz admin */
.app-window, .console, .mini-window { overflow: hidden; border: 1px solid var(--window-line); background: var(--window-bg); text-align: left; }
.app-window, .console { border-radius: 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.5; }
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.url { padding: 3px 12px; border-radius: 7px; background: var(--hover); color: var(--subtle); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-bar { height: 40px; display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; align-items: center; gap: 16px; padding: 0 14px; border-bottom: 1px solid var(--window-line); background: var(--window-side); }
.browser-bar .url { text-align: center; }
.pudding-body { position: relative; display: grid; grid-template-columns: 52px 196px minmax(0, 1fr); height: 470px; background: var(--window-side); }
.win-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 46px; color: var(--subtle); font-size: 16px; }
.win-rail > .window-dots { position: absolute; top: 15px; left: 16px; display: flex; width: auto; height: auto; }
.win-rail > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; }
.win-rail > .active { background: var(--hover); color: var(--text); }
.win-rail > .rail-end { margin: auto 0 12px; }
.win-sidebar { padding: 40px 10px 12px 4px; color: var(--muted); }
.win-side-head { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 8px; color: var(--text); font-size: 13px; font-weight: 600; }
.win-side-head .icon { color: var(--subtle); font-size: 14px; }
.win-new { display: flex; align-items: center; gap: 8px; height: 30px; margin-top: 6px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; }
.win-new .icon { font-size: 14px; }
.win-section { padding: 12px 8px 4px; color: var(--subtle); font-size: 11.5px; }
.win-sidebar ul { display: grid; gap: 2px; }
.win-sidebar li { height: 30px; padding: 0 8px; border-radius: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; line-height: 30px; }
.win-sidebar li.active { background: var(--hover); color: var(--text); }
.win-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-width: 0; margin: 8px 8px 8px 0; overflow: hidden; border: 1px solid var(--window-line); border-radius: 12px; background: var(--window-bg); }
.win-chat { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--window-line); }
.win-head { height: 42px; display: flex; align-items: center; flex: none; padding: 0 18px; border-bottom: 1px solid var(--window-line); font-size: 12.5px; font-weight: 600; }
.win-thread { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; overflow: hidden; }
.msg-user { align-self: flex-end; max-width: 88%; margin-bottom: 4px; padding: 9px 13px; border-radius: 14px; background: var(--bubble); }
.msg-tool { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--subtle); font-size: 12px; }
.tool-label { flex: none; color: var(--muted); font-weight: 500; }
.tool-target { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--mono); font-size: 11.5px; }
.tool-meta { flex: none; margin-left: auto; font-size: 11.5px; }
.tool-state { width: 14px; height: 14px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.tool-state .icon { display: none; width: 14px; height: 14px; }
.msg-tool.done .tool-state, [data-scene]:not(.is-playing) .tool-state { border: 0; border-radius: 0; color: var(--muted); animation: none; }
.msg-tool.done .tool-state .icon, [data-scene]:not(.is-playing) .tool-state .icon { display: block; }
.msg-assistant { min-height: 3.4em; margin-top: 6px; line-height: 1.7; }
.typing::after { content: ''; display: inline-block; width: 6px; height: 1.05em; margin-left: 2px; vertical-align: -.18em; background: var(--accent); animation: blink 1s steps(2) infinite; }
.win-composer { display: grid; gap: 10px; flex: none; margin: 0 14px 14px; padding: 11px 10px 9px 14px; border: 1px solid var(--window-line); border-radius: 14px; background: var(--surface); }
.composer-input { color: var(--subtle); }
.composer-bar { display: flex; align-items: center; gap: 8px; margin-left: -4px; }
.composer-add { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--subtle); font-size: 15px; }
.composer-model { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 7px 3px 9px; border-radius: 7px; background: var(--hover); color: var(--muted); font-size: 12px; }
.composer-model .icon { font-size: 13px; color: var(--subtle); }
.send { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--button-bg); color: var(--button-text); font-size: 14px; }
.win-panel { display: flex; flex-direction: column; min-width: 0; }
.panel-tabs { height: 42px; display: flex; align-items: flex-end; flex: none; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--window-line); background: var(--window-side); }
.panel-tabs span { display: inline-flex; align-items: center; gap: 6px; margin-bottom: -1px; padding: 7px 12px; border: 1px solid transparent; border-radius: 8px 8px 0 0; color: var(--subtle); font-size: 12px; }
.panel-tabs .active { border-color: var(--window-line); border-bottom-color: var(--window-bg); background: var(--window-bg); color: var(--text); }
.panel-sub { display: flex; align-items: center; gap: 8px; height: 36px; flex: none; padding: 0 14px; border-bottom: 1px solid var(--window-line); color: var(--subtle); font-size: 11.5px; }
.panel-sub .path { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--mono); }
.diff-badge { flex: none; padding: 1px 7px; border-radius: 6px; background: var(--hover); color: var(--muted); }
.diff-stat { display: flex; flex: none; gap: 6px; margin-left: auto; font-family: var(--mono); }
.diff-stat b { font-weight: 600; }
.diff-stat .add { color: var(--add-text); }
.diff-stat .del { color: var(--del-text); }
.diff { padding: 12px 0; font-family: var(--mono); font-size: 12px; line-height: 1.95; }
.ln { display: flex; gap: 10px; padding: 0 16px; overflow: hidden; white-space: pre; text-overflow: ellipsis; color: var(--muted); }
.ln .sign { width: 10px; flex: none; text-align: center; }
.ln-add { background: var(--add-bg); color: var(--add-text); }
.ln-del { background: var(--del-bg); color: var(--del-text); }

/* Buzz admin */
.console-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.console-nav { padding: 14px 10px; border-right: 1px solid var(--window-line); background: var(--window-side); }
.console-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; font-size: 13.5px; font-weight: 650; }
.console-brand img { border-radius: 5px; }
.console-brand > span { display: grid; line-height: 1.3; }
.console-brand small { color: var(--subtle); font-size: 11px; font-weight: 400; }
.console-nav ul { display: grid; gap: 2px; }
.console-nav li { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 7px; overflow: hidden; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.console-nav li .icon { flex: none; font-size: 15px; }
.console-nav li.active { background: #4f46e5; color: #fff; font-weight: 550; }
.console-main { min-width: 0; padding: 18px 20px 20px; }
.console-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.console-head code { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.console-chip { padding: 2px 9px; border: 1px solid var(--window-line); border-radius: 999px; color: var(--muted); font-size: 11.5px; }
.route-table { overflow: hidden; border: 1px solid var(--window-line); border-radius: 10px; }
.route-head, .route-row { display: grid; grid-template-columns: .9fr 1.7fr .6fr 1.1fr; align-items: center; gap: 12px; padding: 0 14px; }
.route-head { height: 34px; background: var(--window-side); color: var(--subtle); font-size: 11.5px; }
.route-row { min-height: 44px; border-top: 1px solid var(--window-line); font-size: 12.5px; transition: background .4s, box-shadow .4s; }
.route-row code { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.route-priority { font-family: var(--mono); color: var(--muted); }
.route-next.done, [data-scene]:not(.is-playing) .route-next { background: color-mix(in srgb, var(--ok) 9%, transparent); box-shadow: inset 2px 0 0 var(--ok); }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; color: var(--muted); }
.status::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--ok); }
.status-warn { color: var(--warn); }
.status-warn::before { background: var(--warn); }
.status-ok.done, [data-scene]:not(.is-playing) .status-ok[data-done] { display: none; }
.trace { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--window-line); border-radius: 10px; background: var(--window-side); }
.trace-title { margin-bottom: 6px; color: var(--subtle); font-size: 11.5px; }
.trace ol { display: grid; gap: 2px; }
.trace li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 28px; color: var(--muted); font-size: 12.5px; }
.trace-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.trace-main { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.trace-main code { font-family: var(--mono); font-size: 11.5px; color: var(--text); }
.trace-note { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.trace-note b { font-weight: 600; }
.trace .is-error .trace-dot { background: var(--del-text); }
.trace .is-error b { color: var(--del-text); }
.trace .is-warn .trace-dot { background: var(--warn); }
.trace .is-warn { color: var(--warn); }
.trace .is-ok .trace-dot { background: var(--ok); }
.trace .is-ok b { color: var(--ok); }

/* Scene animation: only hide steps while a scene is playing; otherwise the final state shows. */
[data-scene] [data-at] { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.is-playing [data-at] { opacity: 0; transform: translateY(6px); }
.is-playing [data-at].on { opacity: 1; transform: none; }
.is-playing .ln-add.on { animation: flash-add 1.2s var(--ease); }
.is-playing .trace li.on { animation: flash-row 1.2s var(--ease); }

/* Sections */
.section { padding-top: 136px; }
.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head > .product-brand { font-size: 1.375rem; }
.section-head h2 { margin-top: 16px; }
.section-head .lead { margin-top: 16px; }
.section-head .text-link { margin-top: 22px; }
.product-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; }
.product-brand > img { width: 1.15em; height: 1.15em; border-radius: 22%; }
.pudding-wordmark { position: relative; display: inline-block; padding-left: .94em; letter-spacing: -.025em; }
.pudding-wordmark img { position: absolute; top: 50%; left: -.16em; width: 1.2em; height: 1.2em; max-width: none; transform: translateY(-50%); }

/* Shared cards and chips */
.card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: border-color .3s, transform .3s var(--ease); }
.card::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 18%, transparent), transparent); }
.card:hover { border-color: var(--line-strong); }
.card p { margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; white-space: nowrap; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 32s linear infinite; }
.marquee + .marquee .marquee-track { animation-direction: reverse; animation-duration: 38s; }
.mini-models { display: grid; gap: 12px; }

/* Home: core features */
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.capability-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.capability { display: flex; flex-direction: column; grid-column: span 2; padding: 28px; color: inherit; }
.capability:nth-child(2), .capability:nth-child(3) { grid-column: span 3; }
.capability:first-child { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-auto-rows: min-content; column-gap: 48px; }
.capability:first-child > :not(.model-chips) { grid-column: 1; }
.capability:first-child .model-chips { grid-column: 2; grid-row: 1 / span 4; align-content: center; margin-top: 0; }
.capability h3 { margin-top: 18px; }
.capability p { flex: 1; }
.model-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.model-chips .chip { padding: 6px 12px; color: var(--text); font-size: 13px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--text); font-size: .875rem; font-weight: 550; }
.capability:hover .card-link { color: var(--accent); }

/* Product pages: one row per capability */
.feature-rows { display: grid; gap: 136px; }
.feature-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 72px; scroll-margin-top: 96px; }
.feature-row:nth-child(even) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.feature-row:nth-child(even) .feature-copy { order: 2; }
.feature-visual .console-body { grid-template-columns: 150px minmax(0, 1fr); }
.feature-copy h2 { margin-top: 14px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.feature-copy .lead { margin-top: 14px; }
.feature-visual { position: relative; min-width: 0; }
.feature-visual::before { content: ''; position: absolute; z-index: -1; inset: 6% 4%; background: radial-gradient(50% 50% at 50% 50%, var(--glow-a), transparent 70%); filter: blur(40px); opacity: .55; pointer-events: none; }
.buzz-page .feature-visual::before { background: radial-gradient(50% 50% at 50% 50%, var(--glow-c), transparent 70%); }
.more-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.more-list .chip { padding: 10px 16px; font-size: .9375rem; color: var(--text); }

/* Small mock windows */
.mock, .mini-window { overflow: hidden; border: 1px solid var(--window-line); border-radius: 14px; background: var(--window-bg); box-shadow: var(--shadow); font-size: 13px; line-height: 1.5; text-align: left; }
.mock-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--window-line); background: var(--window-side); }
.mock-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; font-weight: 600; }
.mock-chip { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 2px 9px; border: 1px solid var(--window-line); border-radius: 999px; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.mock-thread { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.mock-thread .msg-assistant { min-height: 3.4em; }
.subtasks-mock .tool-target, .tool-column .tool-target { font-family: inherit; font-size: 12px; }
.tool-meta.is-ok { color: var(--ok); }
.is-playing .msg-tool:not(.done) .tool-meta { visibility: hidden; }
.mini-url { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-bottom: 1px solid var(--window-line); background: var(--window-side); }
.mini-url .window-dots i { width: 9px; height: 9px; }
.mini-url .url { flex: 1; }
.mono { font-family: var(--mono); }

.models-visual { display: grid; gap: 22px; }
.picker { justify-self: center; width: min(380px, 100%); padding: 6px; }
.picker-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; color: var(--muted); }
.picker-row + .picker-row { border-top: 1px solid var(--window-line); }
.picker-row b { font-weight: 600; color: var(--text); }
.caret { margin-left: 6px; color: var(--subtle); }

.browser-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.form-mock { position: relative; display: grid; align-content: start; gap: 10px; padding: 18px; border-right: 1px solid var(--window-line); }
.form-mock > b { font-size: 14px; }
.field { display: grid; gap: 4px; color: var(--subtle); font-size: 11.5px; }
.input { height: 32px; display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--window-line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 12.5px; }
.form-submit { justify-self: start; margin-top: 4px; padding: 6px 14px; border-radius: 8px; background: var(--button-bg); color: var(--button-text); font-size: 12.5px; font-weight: 550; transition: box-shadow .3s; }
.form-submit.done, [data-scene]:not(.is-playing) .form-submit { box-shadow: 0 0 0 4px var(--accent-soft); }
.form-toast { position: absolute; right: 14px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--add-bg); color: var(--add-text); font-size: 12px; }
.tool-column { display: flex; flex-direction: column; gap: 12px; padding: 18px; }

.doc-mock { padding: 18px 20px 6px; }
.doc-mock > b { display: block; margin-bottom: 8px; font-size: 15px; }
.doc-mock p { color: var(--muted); line-height: 1.8; }
.doc-mock mark { border-radius: 3px; background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); color: var(--text); }
.comment-pop { display: flex; align-items: center; gap: 10px; margin: 12px 0 0 28px; padding: 8px 10px; border: 1px solid var(--window-line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); font-size: 12px; animation: float 5s ease-in-out infinite; }
.comment-pop > span { color: var(--muted); }
.comment-pop .pop-send { flex: none; margin-left: auto; padding: 3px 9px; border-radius: 7px; background: var(--button-bg); color: var(--button-text); font-weight: 550; }
.ai-change { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--window-side); font-size: 12px; }
.ai-change del, .ai-change ins { grid-column: 1; padding: 1px 4px; border-radius: 4px; text-decoration: none; }
.ai-change del { background: var(--del-bg); color: var(--del-text); text-decoration: line-through; }
.ai-change ins { background: var(--add-bg); color: var(--add-text); }
.undo { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 3px 9px; border: 1px solid var(--window-line); border-radius: 7px; color: var(--muted); }
.table-mock { margin: 14px 20px 20px; overflow: hidden; border: 1px solid var(--window-line); border-radius: 10px; font-size: 12px; }
.table-row { display: grid; grid-template-columns: 1.4fr .8fr 1fr; }
.table-row span { padding: 8px 12px; border-top: 1px solid var(--window-line); }
.table-row span:nth-child(n+2) { font-family: var(--mono); }
.table-head span { border-top: 0; background: var(--window-side); color: var(--subtle); font-family: inherit !important; font-weight: 500; }
.table-head em { margin-left: 6px; padding: 0 5px; border-radius: 4px; background: var(--hover); font-size: 10.5px; font-style: normal; }

.automation-visual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.schedule-body { display: grid; justify-items: start; gap: 8px; padding: 16px; }
.schedule-body > b { font-size: 13.5px; }
.cadence { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.task-meta, .history-title { color: var(--subtle); font-size: 12px; }
.history-title { margin-top: 6px; }
.history { width: 100%; }
.history li { display: grid; grid-template-columns: 7px auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--window-line); color: var(--muted); font-size: 12px; }
.ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.subtasks-mock { margin-top: 40px; }

.sessions-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 340px; background: var(--window-side); }
.sessions-body .win-sidebar { padding-top: 12px; }
.sessions-main { display: flex; flex-direction: column; min-width: 0; margin: 8px 8px 8px 0; overflow: hidden; border: 1px solid var(--window-line); border-radius: 12px; background: var(--window-bg); }
.sessions-main .win-head { justify-content: space-between; gap: 10px; }
.sessions-main .win-head > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.project-chip { display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 7px; background: var(--hover); color: var(--muted); font-size: 11.5px; font-weight: 500; }
.project-chip .icon { font-size: 13px; }
.sessions-thread { flex: 1; padding: 18px; line-height: 1.7; }
.message-actions { display: flex; gap: 4px; margin-top: 8px; }
.action-btn { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--hover); color: var(--text); font-size: 14px; }
.action-btn em { position: absolute; top: calc(100% + 6px); left: 0; padding: 4px 8px; border-radius: 6px; background: var(--text); color: var(--page-bg); font-size: 11px; font-style: normal; white-space: nowrap; }
.approval-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 14px 14px; padding: 10px 12px; border: 1px solid var(--window-line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 12px; }
.segmented { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--hover); }
.segmented span { padding: 3px 9px; border-radius: 6px; }
.segmented .on { background: var(--window-bg); color: var(--text); box-shadow: 0 1px 2px #0000001f; }
.plugin-list { padding: 0 10px 12px; }
.plugin-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 6px; }
.plugin-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 12%, transparent); }
.plugin-icon .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.plugin-icon.tone-browser { background: #eaf3ff; color: #2d7cf0; }
.plugin-icon.tone-collaboration { background: #e8f3ee; color: #42745b; }
.plugin-icon.tone-capture { background: #fff0f5; color: #c43d70; }
.plugin-icon.tone-skill { background: #f7eaf8; color: #98409e; }
:root[data-theme="dark"] .plugin-icon.tone-browser { background: #2672e833; color: #7db5ff; }
:root[data-theme="dark"] .plugin-icon.tone-collaboration { background: #42745b33; color: #9fcab3; }
:root[data-theme="dark"] .plugin-icon.tone-capture { background: #b43a6833; color: #f08db1; }
:root[data-theme="dark"] .plugin-icon.tone-skill { background: #8a3d8f33; color: #d899dc; }
.plugin-icon.brand { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--window-line); }
.brand-icon { width: 20px; height: 20px; }
.plugin-text { display: grid; min-width: 0; }
.plugin-text b { font-size: 13px; font-weight: 600; }
.plugin-text span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--subtle); font-size: 12px; }
.plugin-badge { padding: 1px 7px; border-radius: 6px; background: var(--hover); color: var(--muted); font-size: 11px; }
.plugin-status { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 12px; }
.plugin-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Buzz admin pages */
.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat-tile { padding: 12px 14px; border: 1px solid var(--window-line); border-radius: 10px; background: var(--window-side); }
.stat-tile span { display: block; color: var(--subtle); font-size: 11.5px; }
.stat-tile b { display: block; margin-top: 4px; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.usage-chart { display: block; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--window-line); border-radius: 10px; }
.chart-title { color: var(--subtle); font-size: 11.5px; }
.usage-chart svg { display: block; width: 100%; height: 120px; margin-top: 10px; }
.usage-chart rect { transform-box: fill-box; transform-origin: bottom; animation: grow 1s var(--ease) both; }
.bar-0, .legend-0 { fill: var(--accent); background: var(--accent); }
.bar-1, .legend-1 { fill: color-mix(in srgb, var(--accent) 45%, var(--window-bg)); background: color-mix(in srgb, var(--accent) 45%, var(--window-bg)); }
.bar-2, .legend-2 { fill: var(--ok); background: var(--ok); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--subtle); font-size: 11.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.route-head.users-row, .route-row.users-row { grid-template-columns: .8fr .9fr 1.3fr 1.3fr; }
.route-head.catalog-row, .route-row.catalog-row { grid-template-columns: 1.6fr .7fr .8fr 1.1fr; }
.quota { display: grid; gap: 5px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.quota svg { display: block; width: 100%; height: 4px; }
.quota-track { fill: var(--hover); }
.quota-fill { fill: var(--accent); }
.quota-fill.is-warn { fill: var(--warn); }
.quota-unlimited { color: var(--subtle); font-size: 12px; }
.console-note { margin-top: 12px; color: var(--subtle); font-size: 12px; }
.caps { display: flex; flex-wrap: wrap; gap: 4px; }
.cap { padding: 1px 7px; border-radius: 6px; background: var(--hover); color: var(--muted); font-size: 11px; }

.deploy-card { display: grid; gap: 24px; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.deploy-card .lead { margin-top: 12px; max-width: 640px; }
.code { margin: 0; overflow-x: auto; padding: 18px 20px; border: 1px solid var(--window-line); border-radius: 14px; background: var(--window-bg); font-family: var(--mono); font-size: .875rem; line-height: 1.6; }
.deploy-open { color: var(--muted); font-size: .9375rem; }
.deploy-open code { font-family: var(--mono); color: var(--text); }

/* Cards */
.card-grid, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 28px; }
.card h3 { margin-top: 18px; }
.card-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--accent); font-size: 20px; }
.step-number { font-family: var(--mono); color: var(--accent); font-size: .8125rem; font-weight: 600; }
.steps h3 { margin-top: 14px; }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 64px; }
.split-copy > .product-brand { font-size: 1.375rem; }
.split-copy h2 { margin-top: 16px; }
.split-copy .lead { margin-top: 16px; }
.split-copy .actions { margin-top: 32px; }
.split-visual { position: relative; }
.checklist { display: grid; gap: 12px; margin-top: 28px; color: var(--muted); font-size: .9375rem; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.checklist .icon { margin-top: .2em; color: var(--ok); font-size: 18px; }

/* Protocol table */
.table-card { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
th, td { padding: 15px 20px; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { color: var(--subtle); font-size: .75rem; font-weight: 500; }
tbody th { font-weight: 550; }
td code { font-family: var(--mono); font-size: .8125rem; color: var(--muted); overflow-wrap: anywhere; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.resource-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; cursor: pointer; font-size: 1.0625rem; font-weight: 550; line-height: 1.5; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary:hover { color: var(--accent); }
.disclosure { position: relative; width: 14px; height: 14px; flex: none; }
.disclosure::before, .disclosure::after { content: ''; position: absolute; inset: 6px 0 auto; height: 1.5px; border-radius: 1px; background: currentColor; }
.disclosure::after { transform: rotate(90deg); transition: transform .25s var(--ease); }
details[open] .disclosure::after { transform: rotate(0); }
.questions details > p { padding: 0 36px 24px 0; color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.questions details[open] > p { animation: answer-in .3s var(--ease); }

/* Closing call to action */
.cta { padding-block: 136px 96px; }
.cta-inner { position: relative; isolation: isolate; overflow: hidden; padding: 88px 32px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); text-align: center; }
.cta-inner::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(55% 75% at 50% 0%, var(--glow-a), transparent 72%), radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0) 0 0 / 24px 24px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.cta-inner .lead { max-width: 560px; margin: 16px auto 0; }
.cta-inner .actions { justify-content: center; margin-top: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 32px; color: var(--subtle); font-size: .8125rem; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .wordmark { color: var(--text); font-size: 1.125rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a:hover { color: var(--text); }

.skip { position: absolute; top: 10px; left: 20px; z-index: 40; padding: 12px 16px; border-radius: 8px; background: var(--surface); transform: translateY(-200%); }
.skip:focus { transform: none; }
.not-found { padding-block: 120px; text-align: center; }
.not-found h1 { font-size: clamp(2rem, 5vw, 3rem); }
.not-found .lead { margin-top: 16px; }
.not-found .btn { margin-top: 32px; }

@media (hover: hover) {
  .card:hover { transform: translateY(-3px); }
}
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes flash-add { from { background: color-mix(in srgb, var(--ok) 30%, transparent); } }
@keyframes flash-row { from { background: var(--hover); } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }
@keyframes answer-in { from { opacity: .2; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 1040px) {
  .pudding-body { grid-template-columns: 52px minmax(0, 1fr); }
  .pudding-body .win-sidebar { display: none; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability, .capability:nth-child(2), .capability:nth-child(3) { grid-column: span 1; }
  .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability:first-child { display: flex; grid-column: 1 / -1; }
  .capability:first-child .model-chips { margin-top: 16px; }
  .split, .faq, .feature-row { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .feature-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .feature-row:nth-child(even) .feature-copy { order: 0; }
  .feature-rows { gap: 112px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .header { gap: 8px; }
  .header nav a { padding: 6px 8px; }
  .nav-github, .header-cta { display: none; }
  .hero { padding-top: 64px; }
  .hero-visual { margin-top: 48px; }
  .pudding-body { grid-template-columns: minmax(0, 1fr); height: 440px; }
  .win-rail, .win-panel { display: none; }
  .win-main { grid-template-columns: minmax(0, 1fr); margin: 0; border: 0; border-radius: 0; }
  .win-chat { border-right: 0; }
  .console-body, .feature-visual .console-body { grid-template-columns: minmax(0, 1fr); }
  .console-nav { display: none; }
  .console-main { padding: 16px; }
  .section { padding-top: 96px; }
  .capability-grid, .card-grid, .card-grid.four, .steps { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .sessions-body { grid-template-columns: minmax(0, 1fr); }
  .sessions-body .win-sidebar { display: none; }
  .sessions-main { margin: 0; border: 0; border-radius: 0; }
  .card, .capability { padding-inline: 22px; }
  .feature-rows { gap: 88px; }
  .browser-body, .automation-visual { grid-template-columns: minmax(0, 1fr); }
  .form-mock { border-right: 0; border-bottom: 1px solid var(--window-line); }
  .subtasks-mock { margin-top: 0; }
  .routing-table .route-head, .routing-table .route-row { grid-template-columns: 1fr .5fr 1.3fr; }
  .routing-table .route-head span:nth-child(2), .routing-table .route-row code { display: none; }
  .route-head.users-row, .route-row.users-row { grid-template-columns: .8fr 1fr 1.4fr; }
  .users-row > :nth-child(4) { display: none; }
  .route-head.catalog-row, .route-row.catalog-row { grid-template-columns: 1.6fr .7fr .8fr; }
  .catalog-row > :nth-child(4) { display: none; }
  .deploy-card { padding: 28px 22px; }
  .cta { padding-block: 96px 64px; }
  .cta-inner { padding: 64px 22px; border-radius: 22px; }
}
@media (max-width: 480px) {
  h1 { font-size: clamp(2.125rem, 9.6vw, 2.75rem); }
  .header nav { font-size: .8125rem; }
  .header nav a { padding: 6px; }
  .header .language { margin-left: 0; }
  .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, a:hover .arrow { transform: none; }
}
