/* Botogether site — one token system, two themes.
   Page chrome is quiet and neutral; the app window and its fragments stay
   light, like the real app. Colour lives in the product, not the page. */

/* ---------- Tokens ---------- */
:root {
  /* type scale: 12 · 13 · 15 · 17 · 20 · 24, plus two display sizes */
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 15px; --fs-md: 17px; --fs-lg: 20px; --fs-xl: 24px;
  --fs-h2: clamp(32px, 4.4vw, 52px);
  --fs-h1: clamp(44px, 7.4vw, 92px);
  /* radius: 8 · 12 · 16 · 22 */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px;
  --section: 136px;
  --shell: min(1160px, calc(100% - 48px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* app window (always light) */
  --ink: #111827; --app-muted: #5f6878; --app-line: #e5e8ee; --app-side: #f3f4f7;
  --bubble: #f1f2f6; --bubble-you: #e6edfd; --blue: #2563eb; --green: #12a150;
}
:root, :root[data-theme="dark"] {
  --bg: #08090c; --panel: #0e1015; --panel-2: #13151b;
  --fg: #c9ccd6; --heading: #f5f6f8; --muted: #8a8f9c; --faint: #5c616d;
  --line: #ffffff14; --line-2: #ffffff24;
  --accent: #6d97ff; --accent-bg: #6d97ff1a;
  --btn-bg: #f5f6f8; --btn-fg: #08090c;
  --glow: #3b6cff;
  --shadow-sm: 0 1px 0 #ffffff0a inset, 0 1px 2px #0006;
  --shadow-lg: 0 0 0 1px #ffffff1a, 0 30px 80px -30px #000, 0 12px 24px -12px #0009;
  --pc-shadow: #000;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbfbfc; --panel: #ffffff; --panel-2: #f5f6f8;
  --fg: #3b3f4a; --heading: #0b0c10; --muted: #646a77; --faint: #9095a1;
  --line: #0b0c1012; --line-2: #0b0c1021;
  --accent: #2457e6; --accent-bg: #2457e60f;
  --btn-bg: #0b0c10; --btn-fg: #ffffff;
  --glow: #8fb0ff;
  --shadow-sm: 0 1px 2px #0b0c100d;
  --shadow-lg: 0 0 0 1px #0b0c1014, 0 30px 70px -36px #1b2a5a55, 0 8px 18px -12px #0b0c1022;
  --pc-shadow: #6b5232;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--fs-base)/1.6 var(--font); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; transition: background .3s, color .3s; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
button { font: inherit; color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
h1, h2, h3 { color: var(--heading); margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; }
html[lang="zh-CN"] h2 { letter-spacing: -.01em; line-height: 1.2; }
h3 { font-size: var(--fs-md); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.kicker { margin: 0 0 16px; font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section-head { max-width: 720px; margin: 0 auto; text-align: center; }
.section-head p:not(.kicker), .body { margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: var(--fs-md); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .reveal.reveal-pending { opacity: 0; transform: translateY(16px); transition: none; }
}

/* ---------- Buttons ---------- */
.downloads { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: var(--r-md); font-size: var(--fs-base); font-weight: 600; text-decoration: none; letter-spacing: -.005em; transition: transform .2s var(--ease), background .2s, border-color .2s, opacity .2s; }
.button svg { width: 17px; height: 17px; fill: currentColor; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-sm); }
.button.primary:hover { opacity: .9; }
.button.secondary { background: transparent; color: var(--heading); border: 1px solid var(--line-2); }
.button.secondary:hover { background: var(--accent-bg); border-color: var(--line-2); }
.button.small { height: 38px; padding: 0 16px; font-size: var(--fs-sm); }
.downloads.prefer-win .button[data-platform="win"] { order: -1; background: var(--btn-bg); color: var(--btn-fg); border: 0; box-shadow: var(--shadow-sm); }
.downloads.prefer-win .button[data-platform="mac"] { background: transparent; color: var(--heading); border: 1px solid var(--line-2); box-shadow: none; }
.fine { margin: 18px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.fine a { color: var(--heading); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.fine a:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: var(--fs-md); letter-spacing: -.02em; text-decoration: none; color: var(--heading); }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.site-header nav { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.site-header nav > a:not(.nav-icon, .nav-download) { padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); transition: color .2s, background .2s; }
.site-header nav > a:not(.nav-icon, .nav-download):hover { color: var(--heading); background: var(--accent-bg); }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-width: 32px; padding: 0 9px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; transition: color .2s, border-color .2s; }
.nav-icon:hover { color: var(--heading); border-color: var(--line-2); }
.nav-icon svg { width: 16px; height: 16px; fill: currentColor; }
.nav-icon span { font-size: var(--fs-sm); }
.site-header nav > .nav-icon:first-of-type { margin-left: 8px; }
.lang-toggle svg, .theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.lang-toggle b { font-size: var(--fs-xs); font-weight: 600; }
.theme-toggle { width: 32px; padding: 0; }
:root[data-theme="dark"] .theme-toggle .moon, :root[data-theme="light"] .theme-toggle .sun { display: none; }
.nav-download { margin-left: 6px; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r-sm); background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.nav-download:hover { opacity: .9; }

/* ---------- Hero ---------- */
.hero-stage { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 40px; }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow { position: absolute; left: 50%; top: -420px; width: 1400px; height: 900px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 34%, transparent), transparent 70%); opacity: .9; }
:root[data-theme="light"] .glow { opacity: .55; }
.hero-stage .glow.low { top: 640px; width: 1600px; height: 700px; opacity: .45; }
.sky::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  mask-image: radial-gradient(70% 48% at 50% 0%, #000 0%, transparent 100%); }
.starfield { position: absolute; inset: 0 0 45%; }
.starfield i { position: absolute; width: var(--z); height: var(--z); border-radius: 50%; background: #fff; opacity: .2; animation: twinkle var(--t) ease-in-out var(--d) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .12; transform: scale(.7); } 50% { opacity: .9; transform: scale(1.15); } }
:root[data-theme="light"] .starfield { display: none; }

.hero { position: relative; z-index: 1; padding: 88px 0 72px; text-align: center; }
.hero > :not(.orbit) { animation: rise .9s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: .06s; } .hero > :nth-child(3) { animation-delay: .12s; } .hero > :nth-child(4) { animation-delay: .18s; } .hero > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(12px); } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 28px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: var(--fs-sm); color: var(--fg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.eyebrow [data-version] { font: 500 var(--fs-xs) var(--mono); color: var(--muted); }
.eyebrow [data-version]:empty { display: none; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 3px #3ecf8e2e; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.05em; font-weight: 600; }
h1 span { display: block; }
h1 span { background: linear-gradient(180deg, var(--heading) 30%, color-mix(in srgb, var(--heading) 62%, var(--bg)) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
html[lang="zh-CN"] h1 { letter-spacing: -.025em; line-height: 1.14; font-size: clamp(40px, 6.6vw, 82px); }
.lede { max-width: 700px; margin: 26px auto 34px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--muted); text-wrap: balance; }
.inline-agent { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; color: var(--heading); white-space: nowrap; vertical-align: -4px; }
.inline-agent .chip { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.inline-agent .chip img { width: 15px; height: 15px; }
.inline-agent .chip:has(.agent-glyph) { background: #15171d; }
.inline-agent .chip .agent-glyph { --g: 22px !important; box-shadow: none; }

/* Hero constellation: local agents' marks drift around the headline. */
.orbit { position: absolute; inset: 0; z-index: -1; pointer-events: none; --px: 0px; --py: 0px; --k: 1; }
.orbit-mark { position: absolute; left: calc(50% + var(--x) * var(--k)); top: var(--y); width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2);
  translate: calc(var(--px) * var(--depth)) calc(var(--py) * var(--depth)); transition: translate .9s var(--ease); }
.orbit-bob { display: block; width: 100%; height: 100%; animation: orbit-bob var(--bob) ease-in-out var(--bd) infinite alternate; }
.orbit-card { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 26%; background: #fff;
  box-shadow: inset 0 -1px 0 #0b0c100f, 0 0 0 1px var(--line), 0 24px 40px -22px #000c;
  transform: rotate(var(--rot)); transition: scale .5s var(--ease); animation: orbit-in 1.1s var(--ease) var(--d) both; }
:root[data-theme="light"] .orbit-card { box-shadow: inset 0 -1px 0 #0b0c100f, 0 0 0 1px #0b0c1012, 0 20px 34px -20px #1b2a5a66; }
.orbit-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid var(--accent); opacity: 0; pointer-events: none; }
.orbit-card img { width: 56%; height: 56%; object-fit: contain; }
.orbit-mark.ping .orbit-card { scale: 1.06; }
.orbit-mark.ping .orbit-card::before { animation: orbit-ring 1.4s ease-out both; }
.hero-stage.offscreen .orbit-bob, .hero-stage.offscreen .starfield i { animation-play-state: paused; }
@keyframes orbit-in { from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(calc(var(--rot) + 24deg)) scale(.5); filter: blur(8px); } 70% { opacity: 1; filter: blur(0); } to { opacity: 1; transform: rotate(var(--rot)); } }
@keyframes orbit-bob { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
@keyframes orbit-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
@media (max-width: 1360px) { .orbit { --k: .86; } }
@media (max-width: 1180px) { .orbit { --k: .76; } }
@media (max-width: 1040px) { .orbit { --k: .7; } }

/* ---------- App window (always light, like the app) ---------- */
.showcase { position: relative; z-index: 1; perspective: 1800px; }
.window-wrap { position: relative; transform: rotateX(var(--tilt, 0deg)) scale(var(--scale, 1)); transform-origin: 50% 0; will-change: transform; animation: rise 1.1s .3s var(--ease) both; }
.window { position: relative; display: grid; grid-template-columns: 268px 1fr; height: 640px; border-radius: var(--r-xl); overflow: hidden; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
:root[data-theme="dark"] .window { box-shadow: 0 0 0 1px #ffffff26, 0 0 0 7px #ffffff08, 0 40px 120px -30px #000, 0 0 140px -40px var(--glow); }

.sidebar { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 14px 12px 12px; background: var(--app-side); border-right: 1px solid var(--app-line); }
.traffic { display: flex; gap: 8px; padding: 2px 6px 14px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; } .traffic i:nth-child(3) { background: #28c840; }
.app-brand { display: flex; align-items: center; gap: 9px; padding: 0 6px 14px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.app-brand img { width: 24px; height: 24px; border-radius: 6px; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; margin-bottom: 12px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--app-line); color: var(--app-muted); font-size: 13px; }
.search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search b { font-weight: 400; font-size: 18px; }
.chats { display: grid; gap: 2px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.chats button { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; transition: background .2s; }
.chats button:hover { background: #e9ebf0; }
.chats button.active { background: #e2e5ec; }
.chat-text { min-width: 0; flex: 1; }
.chats b { display: block; font-size: 14px; font-weight: 600; }
.chats small { display: block; font-size: 12px; color: var(--app-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chats small.typing { color: var(--blue); }
.unread { position: absolute; right: 10px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); transition: transform .3s; }
.chats button.active .unread, .chats button.seen .unread { transform: scale(0); }
.click-hint { display: flex; align-items: center; gap: 6px; margin: 10px 8px 0; font-size: 12px; color: var(--app-muted); }
.click-hint::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--blue); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 #2563eb55; } 70%, 100% { box-shadow: 0 0 0 6px #2563eb00; } }
.sidebar.used .click-hint { opacity: 0; transition: opacity .4s; }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 2px; border-top: 1px solid var(--app-line); font-size: 13px; color: #3c4453; }
.side-foot span { display: inline-flex; align-items: center; gap: 8px; }
.side-foot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.online { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 22px; border-bottom: 1px solid #eef0f4; flex: none; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b { font-size: 15px; }
.who small { font-size: 12px; color: #4457cf; background: #eef1ff; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.folder { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-sm); border: 1px solid var(--app-line); font-size: 12px; color: #3c4453; white-space: nowrap; }
.folder svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.messages { flex: 1; min-height: 0; overflow: hidden; padding: 22px 28px 12px; display: flex; flex-direction: column; gap: 16px; mask-image: linear-gradient(to bottom, transparent 0, #000 24px); }
.messages.switching { animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.msg { display: flex; gap: 10px; max-width: 86%; }
.msg.pending { display: none; }
.msg.enter { animation: msg-in .4s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg .meta { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; font-size: 12px; color: var(--app-muted); }
.msg .meta b { color: var(--ink); font-size: 13px; }
.msg .engine, .msg .role { font-size: 11px; padding: 0 6px; border-radius: 5px; background: #f1f2f6; color: #5a6274; }
.msg .role { background: #eef3ff; color: #3554c7; }
.msg-body { min-width: 0; }
.bubble { display: inline-block; padding: 9px 13px; border-radius: 14px; background: var(--bubble); font-size: 14px; line-height: 1.6; white-space: pre-line; }
.msg.you { align-self: flex-end; flex-direction: column; align-items: flex-end; }
.msg.you .bubble { background: var(--bubble-you); border-top-right-radius: 5px; }
.msg.bot .bubble { border-top-left-radius: 5px; }
.msg.system { align-self: center; max-width: 100%; width: min(460px, 100%); }
.dots { display: inline-flex; gap: 4px; padding: 6px 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #8f96a6; animation: dot 1.1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .45; } }

.card { margin-top: 8px; border: 1px solid var(--app-line); border-radius: var(--r-md); background: #fff; box-shadow: 0 4px 14px -10px #11182733; font-size: 13px; }
.card small { display: block; color: var(--app-muted); font-size: 12px; }
.card.plan { display: grid; gap: 8px; min-width: 280px; padding: 12px 14px; }
.card.plan > b, .card.check > b { font-size: 12px; color: var(--app-muted); font-weight: 600; letter-spacing: .03em; }
.plan-row { display: flex; justify-content: space-between; gap: 18px; padding-top: 8px; border-top: 1px dashed #e7e9ee; }
.owner { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.card.file, .card.delivery { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.file-icon { display: grid; place-items: center; flex: none; width: 34px; height: 40px; border-radius: 7px; background: #eef3ff; color: var(--blue); font-size: 11px; font-weight: 800; }
.card.image { width: min(360px, 100%); margin: 8px 0 0; padding: 0; overflow: hidden; }
.image-frame { position: relative; aspect-ratio: 2 / 1; background: linear-gradient(110deg, #eceef3 30%, #f6f7f9 50%, #eceef3 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.image-frame[data-label]::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--app-muted); transition: opacity .4s; }
.image-frame.loaded { animation: none; } .image-frame.loaded img { opacity: 1; } .image-frame.loaded::after { opacity: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card.diff { min-width: 300px; overflow: hidden; }
.diff-head { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; background: #f7f8fa; border-bottom: 1px solid #eef0f4; font: 12px var(--mono); }
em.add, em.del { font-style: normal; font-weight: 700; } .add { color: #13804a; } .del { color: #c2364a; }
.card pre { margin: 0; padding: 8px 0; font: 12px/1.75 var(--mono); overflow: hidden; }
.card pre code { display: block; padding: 0 14px; white-space: pre; }
.card pre code span { display: inline-block; width: 16px; opacity: .7; }
.card pre code.add { background: #ecf8f0; } .card pre code.del { background: #fdeff1; }
.card.check { padding: 12px 14px; }
.card ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.card li { display: flex; align-items: center; gap: 9px; }
.card.check li { opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s; }
.card.check li.on, .card.check.done li { opacity: 1; transform: none; }
.tick { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #e3f6ea; }
.tick::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 5px; height: 9px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.card.delivery { background: #f6f8ff; border-color: #dbe4ff; }
.card.delivery > div { flex: 1; } .card.delivery b { font-size: 14px; }
.seal { position: relative; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--blue); }
.seal::after { content: ""; position: absolute; left: 12px; top: 7px; width: 7px; height: 13px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.mini-button { padding: 6px 12px; border-radius: var(--r-sm); background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.composer { flex: none; margin: 8px 22px 18px; padding: 12px 14px 10px; border: 1px solid var(--app-line); border-radius: var(--r-lg); box-shadow: 0 4px 14px -10px #11182726; }
.placeholder { display: block; margin-bottom: 14px; font-size: 14px; color: var(--app-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.placeholder.filled { color: var(--ink); }
.composer-row { display: flex; align-items: center; gap: 10px; }
.plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d9dce4; color: var(--app-muted); font-size: 18px; line-height: 1; }
.model { margin-left: auto; font-size: 12px; color: #4b5263; }
.send { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #a9bff3; transition: background .3s, transform .2s; }
.send.ready { background: var(--blue); transform: scale(1.06); }
.send svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.scene-strip { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 28px; font-size: var(--fs-sm); color: var(--muted); }
.scene-strip button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--muted); cursor: pointer; transition: color .2s; }
.scene-strip button:hover, .scene-strip button[aria-pressed="true"] { color: var(--heading); }
.scene-strip [hidden] { display: none; }
.scene-strip .bar { width: 100%; min-width: 56px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.scene-strip .bar i { display: block; width: 0; height: 100%; background: var(--heading); }
.scene-strip button[aria-pressed="true"] .bar i { width: var(--progress, 0%); transition: width .5s linear; }
.demo-note { margin: 10px 0 0; text-align: center; font-size: var(--fs-xs); color: var(--muted); }

/* Companions from the app's welcome screen. */
.paper { --s: 40px; position: relative; display: inline-block; flex: none; width: var(--s); height: var(--s); background: center / contain no-repeat; filter: drop-shadow(0 3px 5px #11182722); }
.paper i { position: absolute; left: 40.6%; top: 52%; width: 7.8%; height: 7.8%; border-radius: 50%; background: #1f2638; transform: translate(-50%, -50%); box-shadow: calc(var(--s) * .188) 0 0 #1f2638; animation: blink 6s infinite; }
.paper.xxs { --s: 18px; } .paper.xs { --s: 22px; } .paper.sm { --s: 34px; } .paper.sm2 { --s: 64px; }
.paper.xs, .paper.xxs { filter: none; }
.paper.xs i, .paper.xxs i { width: 11%; height: 11%; }
@keyframes blink { 0%, 46%, 50%, 100% { transform: translate(-50%, -50%) scaleY(1); } 48% { transform: translate(-50%, -50%) scaleY(.1); } }
.group-avatar { position: relative; display: inline-block; flex: none; width: 34px; height: 34px; }
.group-avatar .paper { position: absolute; }
.group-avatar .paper:nth-child(1) { left: 0; top: 0; } .group-avatar .paper:nth-child(2) { right: 0; top: 2px; } .group-avatar .paper:nth-child(3) { left: 6px; bottom: 0; }

.perch { position: absolute; left: 50%; top: 0; width: 0; height: 0; z-index: 3; pointer-events: none; }
.perch-friend { position: absolute; bottom: -16px; display: block; animation: rise 1s .6s var(--ease) both; }
.perch-friend.f1 { left: 300px; width: 108px; }
.perch-friend.f2 { left: 238px; width: 78px; bottom: -14px; }
.pc { display: block; width: 100%; height: auto; overflow: visible; }
.pc image { filter: drop-shadow(0 6px 6px #0b164030); }
.pc-body { transform-origin: 34px 62px; transform-box: view-box; animation: pc-hop 6s ease-in-out infinite; }
.pc-shadow { transform-origin: 34px 62px; transform-box: view-box; animation: pc-contact 6s ease-in-out infinite; }
.pc-heart { transform-origin: 34px 6px; transform-box: view-box; opacity: 0; animation: pc-heart 6s ease-out infinite; }
.pc-blush, .pc-smile { opacity: 0; animation: pc-smile 6s step-end infinite; }
.pc-idle { animation: pc-idle 6s step-end infinite; }
.perch-friend.f2 .pc *, .final-friend.g2 .pc * { animation-delay: 1.1s; }
.final-friend.g3 .pc * { animation-delay: 2.2s; }
.perch-friend.f2 .pc-heart, .final-friend.g2 .pc-heart, .final-friend.g3 .pc-heart { display: none; }
@keyframes pc-hop { 0%, 13%, 100% { transform: none; } 2% { transform: scale(1.06, .91); } 5% { transform: translateY(-9px) scale(.97, 1.04); } 8% { transform: scale(1.04, .96); } 9.5% { transform: rotate(5deg); } 11.5% { transform: rotate(-4deg); } }
@keyframes pc-contact { 0%, 13%, 100% { opacity: 1; transform: none; } 2%, 8% { transform: scale(1.07, .86); } 5% { opacity: .36; transform: scale(.85, 1.3); } }
@keyframes pc-heart { 0%, 1% { opacity: 0; transform: translateY(2px) rotate(-12deg) scale(.45); } 4% { opacity: 1; transform: translateY(-2px) rotate(7deg) scale(1); } 9% { opacity: 1; transform: translateY(-6px) rotate(-3deg) scale(1); } 12%, 100% { opacity: 0; transform: translateY(-11px) scale(.9); } }
@keyframes pc-smile { 0% { opacity: 1; } 13%, 100% { opacity: 0; } }
@keyframes pc-idle { 0% { opacity: 0; } 13%, 100% { opacity: 1; } }

/* Third-party agents: their logo on a white chip, or a neutral terminal glyph. */
.agent-glyph { --g: 20px; display: inline-grid; place-items: center; flex: none; width: var(--g); height: var(--g); line-height: 0; border-radius: 26%; background: #15171d; color: #eceef3; box-shadow: inset 0 0 0 1px #ffffff1a; }
.agent-glyph svg { width: 66%; height: 66%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
main > section { padding-block: var(--section) 0; }

/* Definition: a calm statement right after the demo (also the GEO answer). */
.what { max-width: 900px; text-align: center; }
.what h2 { margin-bottom: 20px; font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.what p { margin: 0 auto; max-width: 30em; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; font-weight: 500; letter-spacing: -.02em; color: var(--heading); text-wrap: pretty; }
html[lang="zh-CN"] .what p { letter-spacing: 0; line-height: 1.6; }

/* Relay: one task card travels through the team. */
.relay-head { max-width: 720px; margin: 0 auto; text-align: center; }
.relay-head > p:last-child { margin: 18px auto 0; max-width: 580px; font-size: var(--fs-md); color: var(--muted); }
.relay-viewport { position: relative; margin-top: 40px; height: calc(480px * var(--k, 1)); border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.relay-viewport::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent); opacity: .6; }
.relay-stage { position: absolute; left: 50%; top: 0; width: 1180px; height: 480px; transform: translateX(-50%) scale(var(--k, 1)); transform-origin: top center; }
.relay-track { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.relay-track path { fill: none; }
.relay-track .base { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.relay-track .lit { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1); }
.station { position: absolute; z-index: 1; display: grid; justify-items: center; width: 180px; translate: -50% -50%; text-align: center; }
.station .face { position: relative; display: grid; place-items: center; width: 80px; height: 80px; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.station .paper.sm2 { --s: 68px; filter: drop-shadow(0 12px 14px #0005); }
.badge { position: absolute; right: 0; bottom: 2px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px #0b0c1014, 0 4px 8px #0003; }
.badge img { width: 15px; height: 15px; }
.badge .agent-glyph { --g: 24px; }
.folder-face { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: var(--btn-bg); box-shadow: var(--shadow-sm); }
.folder-face svg { width: 30px; height: 30px; fill: var(--btn-fg); }
.halo { position: absolute; top: 0; left: 50%; width: 80px; height: 80px; translate: -50% 0; border-radius: 24px; border: 1.5px solid var(--accent); opacity: 0; }
.station b { margin-top: 10px; font-size: var(--fs-base); color: var(--heading); }
.station small { font-size: var(--fs-xs); color: var(--muted); }
.station .step { margin-top: 8px; padding: 3px 10px; border-radius: 999px; font: 500 11px var(--mono); letter-spacing: .02em; color: var(--muted); border: 1px solid var(--line); background: var(--bg); transition: all .4s; }
.station.on .face { transform: translateY(-4px) scale(1.08); }
.station.on .halo { animation: halo 1.6s ease-out infinite; }
@keyframes halo { from { scale: .95; opacity: .8; } to { scale: 1.5; opacity: 0; } }
.station.on .step, .station.done .step { color: var(--heading); border-color: var(--accent); }
.task { position: absolute; left: 0; top: 0; z-index: 3; width: 300px; padding: 14px 16px 12px; border-radius: var(--r-lg); background: #fff; color: var(--ink); border: 1px solid var(--app-line);
  box-shadow: 0 24px 48px -20px #0009; transition: left 1.1s cubic-bezier(.65, 0, .35, 1), top 1.1s cubic-bezier(.65, 0, .35, 1), transform .5s, opacity .5s; }
:root[data-theme="light"] .task { box-shadow: 0 1px 2px #0b0c1014, 0 24px 48px -24px #1b2a5a66; }
.task.moving { transform: rotate(-2deg) scale(.98); }
.task.hidden { opacity: 0; transform: translateY(14px) scale(.97); }
.task-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.task-head b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-dot { width: 8px; height: 8px; border-radius: 50%; background: #f0a92e; box-shadow: 0 0 0 3px #f0a92e2e; }
.task[data-s="3"] .task-dot { background: var(--green); box-shadow: 0 0 0 3px #12a1502e; }
.state { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #eef3ff; color: var(--blue); }
.task[data-s="3"] .state { background: #e3f6ea; color: #13804a; }
.task-body { display: grid; min-height: 92px; margin-top: 10px; }
.part { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; font-size: 13px; }
.task[data-s="0"] .p0, .task[data-s="1"] .p1, .task[data-s="2"] .p2, .task[data-s="3"] .p3 { opacity: 1; transform: none; transition-delay: .25s; }
ul.part { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ul.p0 li { padding: 6px 10px; border-radius: var(--r-sm); background: #f5f6f9; }
ul.p0 li::before { content: "○"; margin-right: 8px; color: #8f96a6; }
.p1 { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 10px 8px; padding: 10px 12px; border-radius: var(--r-md); background: #f7f8fa; }
.p1 code { font: 12px var(--mono); }
.p1 .bar { grid-column: 1 / -1; display: block; height: 4px; border-radius: 3px; background: #e7e9ee; overflow: hidden; }
.p1 .bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); }
.task[data-s="1"] .p1 .bar i { animation: fill 2s .4s var(--ease) forwards; }
@keyframes fill { to { width: 100%; } }
ul.p2 li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--r-sm); background: #f5faf7; opacity: 0; transform: translateX(-6px); transition: all .35s; }
.task[data-s="2"] ul.p2 li { opacity: 1; transform: none; }
.task[data-s="2"] ul.p2 li:nth-child(1) { transition-delay: .5s; } .task[data-s="2"] ul.p2 li:nth-child(2) { transition-delay: .9s; } .task[data-s="2"] ul.p2 li:nth-child(3) { transition-delay: 1.3s; }
.p3 { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: var(--r-md); background: #f6f8ff; border: 1px solid #dbe4ff; font-weight: 600; }
.stamp { position: absolute; right: 10px; top: -12px; padding: 3px 9px; border: 2px solid var(--green); border-radius: 7px; background: #fff; color: var(--green); font: 800 13px/1.2 var(--mono); letter-spacing: .12em; rotate: 8deg; opacity: 0; scale: 1.7; transition: opacity .3s .7s, scale .4s .7s var(--ease); }
.task[data-s="3"] .p3 .stamp { opacity: 1; scale: 1; }
.task-meta { display: flex; justify-content: flex-end; gap: 5px; margin-top: 10px; }
.task-meta i { width: 18px; height: 3px; border-radius: 2px; background: #e7e9ee; transition: background .4s; }
.task[data-s="0"] [data-pip="0"], .task[data-s="1"] [data-pip="0"], .task[data-s="1"] [data-pip="1"], .task[data-s="2"] [data-pip="0"], .task[data-s="2"] [data-pip="1"], .task[data-s="2"] [data-pip="2"], .task[data-s="3"] [data-pip] { background: var(--blue); }
.relay-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; }
.relay-viewport { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.relay-steps li { position: relative; padding: 22px 24px 26px; border-left: 1px solid var(--line); transition: background .4s; }
.relay-steps li:first-child { border-left: 0; }
.relay-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.relay-steps li.on::before { transform: none; }
.relay-steps span { font: 500 var(--fs-xs) var(--mono); color: var(--faint); }
.relay-steps li.on span { color: var(--accent); }
.relay-steps h3 { margin: 8px 0 6px; font-size: var(--fs-md); }
.relay-steps p { margin: 0; font-size: 14px; color: var(--muted); }

/* Capability bento. */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 56px; }
.tile { display: grid; grid-template-rows: 220px auto; overflow: hidden; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s; }
.tile:hover { border-color: var(--line-2); }
.tile.t0, .tile.t3, .tile.t4 { grid-column: span 2; }
.tile-vis { position: relative; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.tile-vis::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 18px 18px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); opacity: .7; }
.tile-text { padding: 22px 26px 26px; }
.tile-text .icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--accent-bg); color: var(--accent); vertical-align: middle; }
.tile-text svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-text h3 { display: inline; margin-left: 10px; vertical-align: middle; }
.tile-text p { margin: 12px 0 0; font-size: var(--fs-base); color: var(--muted); }
.mini { position: relative; z-index: 1; color: var(--ink); font-size: 13px; }
.m-box, .mini-models, .mini-ask, .mini-tree, .mini-memory span { background: #fff; border: 1px solid var(--app-line); box-shadow: 0 10px 28px -16px #0007; }
.mini-mention { width: min(420px, 86%); align-self: start; margin-top: 30px; }
.m-box { display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: var(--r-md); }
.m-type { display: inline-block; width: 0; overflow: hidden; white-space: nowrap; animation: type 7s steps(22) infinite; }
@keyframes type { 0% { width: 0; } 45%, 85% { width: 22ch; } 100% { width: 0; } }
.caret { width: 1.5px; height: 18px; margin-left: 2px; background: var(--blue); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.m-pop { position: absolute; left: 14px; top: 52px; display: grid; gap: 2px; width: 196px; padding: 6px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--app-line); box-shadow: 0 16px 32px -16px #0008; opacity: 0; animation: popmenu 7s infinite; }
.m-pop span { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; font-weight: 600; }
.m-pop small { margin-left: auto; color: var(--app-muted); font-weight: 500; }
.m-pop .hit { background: #eef3ff; }
@keyframes popmenu { 0%, 4% { opacity: 0; transform: translateY(-4px); } 8%, 22% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; } }
.mini-models { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); }
.m-label { padding-right: 12px; border-right: 1px solid var(--app-line); font-weight: 700; }
.m-wheel { width: 150px; height: 30px; overflow: hidden; }
.m-wheel > div { animation: wheel 8s cubic-bezier(.7, 0, .3, 1) infinite; }
.m-wheel span { display: flex; align-items: center; gap: 8px; height: 30px; font-weight: 600; }
.m-wheel img { width: 18px; height: 18px; }
.m-wheel .agent-glyph { --g: 18px; }
@keyframes wheel { 0%, 20% { transform: none; } 25%, 45% { transform: translateY(-30px); } 50%, 70% { transform: translateY(-60px); } 75%, 95% { transform: translateY(-90px); } 100% { transform: translateY(-120px); } }
.mini-ask { width: 260px; padding: 14px; border-radius: var(--r-lg); }
.m-ask { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.m-btns { position: relative; display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.m-btns span { padding: 6px 14px; border-radius: var(--r-sm); border: 1px solid var(--app-line); font-weight: 600; font-size: 12px; }
.m-btns .ok { background: var(--blue); color: #fff; border-color: var(--blue); animation: press 6s infinite; }
@keyframes press { 0%, 38% { transform: none; } 42% { transform: scale(.92); } 46%, 100% { transform: none; } }
.cursor { position: absolute; right: 120px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: #111827cc; box-shadow: 0 0 0 4px #11182722; animation: cursor 6s infinite; }
@keyframes cursor { 0% { right: 150px; top: 34px; opacity: 0; } 10% { opacity: 1; } 38%, 46% { right: 22px; top: 12px; } 60%, 100% { right: 22px; top: 12px; opacity: 0; } }
.m-done { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; font-weight: 600; color: #13804a; opacity: 0; animation: done 6s infinite; }
@keyframes done { 0%, 46% { opacity: 0; } 52%, 92% { opacity: 1; } 100% { opacity: 0; } }
.mini-tree { display: grid; gap: 4px; width: 250px; padding: 10px; border-radius: var(--r-lg); font: 12px var(--mono); }
.mini-tree div { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 7px; animation: edit 6s infinite; animation-delay: calc(var(--i) * 1.4s); }
@keyframes edit { 0%, 18%, 100% { background: transparent; } 4%, 14% { background: #eef3ff; } }
.mini-preview { width: min(380px, 80%); aspect-ratio: 2 / 1; overflow: hidden; border-radius: var(--r-lg); box-shadow: 0 0 0 1px #ffffff1a, 0 20px 40px -20px #000a; }
.mini-preview img { width: 100%; height: 100%; object-fit: cover; animation: kb 12s ease-in-out infinite alternate; }
@keyframes kb { to { transform: scale(1.06) translate(-2%, -2%); } }
.m-zoom { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); background: #ffffffe6; font-size: 14px; }
.mini-memory { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: min(520px, 90%); }
.mini-memory span { padding: 8px 14px; border-radius: 999px; font-weight: 600; animation: chip 7.5s infinite; animation-delay: calc(var(--i) * .5s); }
.mini-memory span::before { content: "✦"; margin-right: 7px; color: var(--blue); }
@keyframes chip { 0% { opacity: 0; transform: translateY(6px); } 8%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }

/* Agents. */
.agents { overflow: hidden; }
.agents-head { max-width: 720px; text-align: center; }
.marquee { margin: 52px 0 40px; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.track { display: flex; gap: 28px; width: max-content; animation: slide 46s linear infinite; }
.track img { width: 44px; height: 44px; padding: 8px; border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px var(--line); flex: none; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tiers { display: grid; grid-template-columns: 1.75fr 1fr; gap: 12px; }
.tier { padding: 24px; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line); }
.tier h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: var(--fs-base); }
.tier .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.ready { background: #3ecf8e; } .dot.discovery { background: var(--faint); }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.agent { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-md); transition: background .2s; }
.agent:hover { background: var(--accent-bg); }
.agent img { width: 30px; height: 30px; padding: 5px; border-radius: var(--r-sm); background: #fff; box-shadow: 0 0 0 1px var(--line); flex: none; }
.agent .agent-glyph { --g: 30px !important; border-radius: var(--r-sm); }
.agent b { font-size: 14px; font-weight: 550; line-height: 1.3; color: var(--heading); }
.tier-note { margin-top: 18px; font-size: var(--fs-xs); color: var(--muted); }

/* Comparison. */
.compare { max-width: 880px; }
.compare h2 { margin-bottom: 32px; text-align: center; font-size: clamp(28px, 3.2vw, 40px); }
.compare table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line); font-size: var(--fs-base); }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 500 var(--fs-xs) var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); }
.compare tbody th { font-weight: 600; color: var(--heading); }
.compare td { color: var(--muted); }
.compare .us { color: var(--heading); font-weight: 600; background: var(--accent-bg); }
.compare thead .us { color: var(--accent); }

/* Guides. */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 44px; }
.guide-card { position: relative; display: grid; align-content: start; gap: 8px; padding: 24px 24px 56px; border-radius: var(--r-xl); text-decoration: none; color: var(--fg); background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.guide-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.guide-card b { font-size: var(--fs-md); font-weight: 600; line-height: 1.4; color: var(--heading); }
.guide-card span { font-size: 14px; color: var(--muted); }
.guide-card i { position: absolute; left: 24px; bottom: 20px; font-style: normal; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); transition: transform .25s; }
.guide-card:hover i { transform: translateX(3px); }

/* FAQ. */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq-side { align-self: start; position: sticky; top: 40px; }
.faq-side p { margin: 16px 0 24px; max-width: 22em; font-size: var(--fs-base); color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 40px 20px 0; list-style: none; cursor: pointer; font-size: var(--fs-md); font-weight: 550; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 1.5px; background: var(--muted); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: -4px 0 22px; max-width: 640px; font-size: var(--fs-base); color: var(--muted); }

/* Final call to action. */
.final { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--section); padding: 0 !important; text-align: center; border-top: 1px solid var(--line); }
.final .glow { top: auto; bottom: -520px; }
.final .sky::after { mask-image: radial-gradient(60% 60% at 50% 100%, #000 0%, transparent 100%); }
.final-inner { position: relative; padding: 120px 0 112px; }
.final h2 { margin-bottom: 36px; font-size: clamp(34px, 5vw, 60px); }
.final-papers { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin-bottom: 28px; }
.final-friend { display: block; }
.final-friend.g1 { width: 120px; rotate: -6deg; } .final-friend.g2 { width: 90px; rotate: 7deg; } .final-friend.g3 { width: 70px; rotate: -4deg; }
:root[data-theme="dark"] .final-friend.g3 .pc-idle { fill: #fffaf0; }
:root[data-theme="dark"] .final-friend.g3 .pc-smile { stroke: #fffaf0; }
.final .fine a { color: inherit; }

/* Footer. */
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.brand.small { gap: 8px; font-size: var(--fs-base); }
.brand.small img { width: 20px; height: 20px; border-radius: 5px; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: var(--heading); }

/* ---------- Guide pages ---------- */
.guide-top { padding-bottom: 0; }
.guide { max-width: 760px; padding: 48px 0 112px; }
.crumbs { display: flex; gap: 10px; margin-bottom: 28px; font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--heading); }
.guide h1, html[lang="zh-CN"] .guide h1 { margin: 0 0 24px; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.18; letter-spacing: -.03em; }
.guide h1 span { background: none; color: inherit; }
.guide .answer { margin: 0 0 48px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); font-size: var(--fs-md); line-height: 1.7; color: var(--heading); }
.guide article h2, .guide-related h2, .guide-cta h2 { margin: 0 0 18px; font-size: var(--fs-xl); letter-spacing: -.02em; }
.guide-steps { counter-reset: step; list-style: none; margin: 0 0 48px; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line); }
.guide-steps li { counter-increment: step; position: relative; padding: 4px 0 28px 36px; }
.guide-steps li::before { content: counter(step); position: absolute; left: -14px; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font: 600 var(--fs-sm) var(--mono); color: var(--heading); }
.guide-steps h3 { margin: 2px 0 6px; }
.guide-steps p { margin: 0; font-size: var(--fs-base); color: var(--muted); }
.guide-notes { display: grid; gap: 8px; margin: 0 0 28px; padding-left: 20px; font-size: var(--fs-base); color: var(--muted); }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 48px; font-size: 14px; }
.guide-links a, .guide-cta a { color: var(--accent); text-underline-offset: 3px; }
.guide-cta { margin: 0 0 64px; padding: 36px 32px; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line); text-align: center; }
.guide-cta p { margin: 0 0 22px; color: var(--muted); }
.guide-related .guide-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --section: 104px; }
  .window { grid-template-columns: 1fr; height: 580px; }
  .sidebar { display: none; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
  .tiers { grid-template-columns: 1fr; }
  .relay-steps { grid-template-columns: 1fr 1fr; }
  .relay-steps li:nth-child(3) { border-left: 0; }
  .relay-steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr 1fr; }
  .guide-grid, .guide-related .guide-grid { grid-template-columns: 1fr; }
  .perch-friend.f1 { left: calc(50vw - 170px); } .perch-friend.f2 { left: calc(50vw - 230px); }
}
/* Narrow screens: one gentle arc above the headline keeps the copy clear. */
@media (max-width: 900px) {
  .hero { padding-top: 132px; }
  .orbit-mark { left: calc(50% + var(--mx)); top: var(--my); width: var(--ms); height: var(--ms); margin-left: calc(var(--ms) / -2); }
  .om-cursor { --ms: 56px; --mx: -36vw; --my: 46px; } .om-codex { --ms: 56px; --mx: 36vw; --my: 46px; }
  .om-kilo { --ms: 44px; --mx: -20vw; --my: 22px; } .om-opencode { --ms: 44px; --mx: 20vw; --my: 22px; }
  .om-deepseek { --ms: 38px; --mx: -11.5vw; --my: 8px; } .om-grok { --ms: 38px; --mx: 11.5vw; --my: 8px; }
}
@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); --section: 88px; }
  .site-header nav > a:not(.nav-download, .nav-icon) { display: none; }
  .site-header nav .nav-icon span { display: none; }
  .hero { padding: 116px 0 56px; }
  .messages { padding: 16px 14px 8px; } .msg { max-width: 100%; }
  .chat-head { padding: 0 14px; } .folder { display: none; }
  .composer { margin: 6px 12px 12px; }
  .card.plan, .card.diff { min-width: 0; }
  .button { width: 100%; }
  .relay-steps { grid-template-columns: 1fr; }
  .relay-steps li { border-left: 0; border-top: 1px solid var(--line); }
  .relay-steps li:first-child { border-top: 0; }
  .bento { grid-template-columns: 1fr; }
  .tile.t0, .tile.t3, .tile.t4 { grid-column: auto; }
  .compare th, .compare td { padding: 12px; font-size: 13px; }
  .site-footer { flex-direction: column; }
  .perch-friend.f1 { width: 76px; left: calc(50vw - 110px); } .perch-friend.f2 { width: 56px; left: calc(50vw - 156px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .image-frame img, .card.check li { opacity: 1; transform: none; }
  .window-wrap { transform: none !important; }
  .stamp { opacity: 1; scale: 1; }
  .m-type { width: 22ch; } .m-pop, .m-done, .mini-memory span { opacity: 1; }
  .pc-blush, .pc-smile, .pc-heart { opacity: 0; } .pc-idle { opacity: 1; }
  .orbit-card { transform: rotate(var(--rot)); } .orbit-mark { translate: none; }
}
html[lang="zh-CN"] .lede { max-width: 760px; }
