/* The T2 sapphire plaque sets the surfaces. Silver indicates the host, gold the AI. */
:root {
  color-scheme: dark;
  --paper: #070a0f;
  --panel: #101821;
  --surface: #151d27;
  --ink: #e6eef6;
  --muted: #a6b6c7;
  --line: #344353;
  --control-line: #718294;
  --action: #c0d5e4;
  --action-text: #0b0e13;
  --focus: #b7d0dc;
  --ai: #f4cf6c;
  --ai-edge: #e4a832;
  --attention: #ff977a;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", ui-monospace, Consolas, monospace;
  --display: var(--font);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 84px; }
body { isolation: isolate; margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--font); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; }
i { font-style: normal; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
code { padding: .1em .3em; border-radius: 4px; background: var(--panel); font: .89em var(--mono); }
pre { overflow: auto; }
pre code { padding: 0; background: none; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 6; inset: 10px auto auto 12px; padding: 10px 15px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.wrap { width: min(1216px, calc(100% - 88px)); margin-inline: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 38px);
  min-height: 70px;
  padding-inline: max(44px, calc((100% - 1216px) / 2));
  background: rgba(7, 10, 15, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: var(--ink);
  border-bottom: 1px solid rgba(183, 208, 220, 0.12);
}
.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(183, 208, 220, 0.34) 30%, rgba(228, 168, 50, 0.42) 52%, rgba(183, 208, 220, 0.2) 74%, transparent 96%);
  pointer-events: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
}
.brand-ink {
  display: block;
  width: 106px;
  height: auto;
  aspect-ratio: 124 / 44;
  filter: drop-shadow(0 0 12px rgba(244, 207, 108, 0.16));
}
.brand-tagline {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding-inline-start: 13px;
  border-inline-start: 1px solid rgba(183, 208, 220, 0.22);
  font: 500 11px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.brand-tagline b { font-weight: 600; color: var(--ai); }
.brand-tagline i { font: italic 400 12px/1 Georgia, serif; letter-spacing: .04em; text-transform: lowercase; color: var(--muted); }
.brand-tagline strong { font-weight: 600; color: var(--focus); }
.topbar nav { display: flex; margin-inline-start: auto; gap: clamp(12px, 3vw, 34px); font-size: 14px; }
.topbar nav a { display: grid; place-items: center; min-height: 44px; color: var(--muted); white-space: nowrap; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--ink); }
.topbar nav a { position: relative; }
.topbar nav a[aria-current]::after { content: ""; position: absolute; inset: auto 50% 6px; width: 16px; height: 2px; margin-inline-end: -8px; border-radius: 2px; background: linear-gradient(90deg, var(--focus), var(--ai-edge)); }
.nav-cta, .button, .dl-primary-btn, .copy-command {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--action);
  color: var(--action-text);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}
.nav-cta, .button { white-space: nowrap; }
.topbar .nav-cta, .hero-actions .button {
  min-height: 44px;
  border-radius: 6px;
  background: var(--action);
  color: var(--action-text);
  line-height: 1.4;
}
:is(.nav-cta, .button, .dl-primary-btn, .copy-command):hover {
  background: color-mix(in srgb, var(--action) 84%, var(--action-text));
}

.hero-stage-band, .sub-hero, .page-download main {
  background: radial-gradient(ellipse at 85% 5%, #25364a 0%, transparent 62%);
}
.hero-stage-band {
  overflow: clip;
  background: radial-gradient(ellipse at 83% 46%, #192a3c 0%, transparent 65%);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100svh - 70px);
  padding-block: clamp(38px, 4vw, 65px);
}
.hero-copy {
  position: relative;
  padding: 18px 20px 18px 0;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -24px -18px -24px -32px;
  z-index: -1;
  border-radius: 28px;
  background: radial-gradient(ellipse at 38% 52%, rgba(7, 10, 15, 0.88) 42%, rgba(7, 10, 15, 0.45) 72%, transparent 100%);
  pointer-events: none;
}
.hero h1 { margin-bottom: 25px; font: 700 clamp(38px, 4.7vw, 68px)/1.08 var(--display); letter-spacing: -.02em; }
.hero h1 span { display: inline-block; }
.hero h1 span:last-child { color: var(--focus); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 span:last-child {
    background: linear-gradient(176deg, #f0f4f8 8%, #b7d0dc 46%, #7d8fa3 78%, #b0bdcb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.lead { max-width: 34em; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); }
.hero-copy .lead { max-width: 27em; color: var(--muted); }
.hero-copy code { color: var(--focus); background: var(--panel); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 28px; }
.hero-actions .button { min-height: 48px; }
.topbar .nav-cta, .hero-actions .button, .dl-primary-btn:not(.dl-secondary-btn) {
  background: linear-gradient(180deg, #e3edf5 0%, #c0d5e4 55%, #a9c0d1 100%);
  border-color: rgba(240, 244, 248, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 0 rgba(71, 89, 110, 0.35), 0 6px 18px rgba(7, 10, 15, 0.45);
}
.hero-actions .button:hover, .topbar .nav-cta:hover, .dl-primary-btn:not(.dl-secondary-btn):hover {
  background: linear-gradient(180deg, #f0f5fa 0%, #d0e1ed 55%, #b7cbda 100%);
}
.hero-meta { display: grid; gap: 7px; margin: 34px 0 0; padding-top: 18px; border-top: 1px solid rgba(183, 208, 220, 0.14); max-width: 31em; }
.hero-meta div { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.hero-meta dt { color: var(--ai-edge); font: 600 11px/1.6 var(--mono); letter-spacing: .08em; }
.hero-meta dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.hero-secondary { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.hero-secondary span { margin-inline-start: 4px; }
.hero-art {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 10px clamp(14px, 2.5vw, 36px) 26px;
  border-radius: 12px;
}
.stage-optics {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 #b7d0dc33, 0 24px 68px #0007;
  background:
    linear-gradient(155deg, #b7d0dc24, transparent 32%),
    repeating-linear-gradient(90deg, transparent 0 35px, #b7d0dc0a 35px 36px),
    repeating-linear-gradient(0deg, transparent 0 35px, #b7d0dc0a 35px 36px),
    #101821;
}
.stage-light { position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 0%, #b7d0dc38, transparent 57%); opacity: .48; }
.signal-map {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  margin-bottom: 12px;
  color: var(--focus);
}
.signal-map svg { display: block; width: 100%; height: clamp(74px, 8vw, 115px); overflow: visible; }
[data-scenario-mode="discuss"] .signal-map svg { height: clamp(120px, 13vw, 168px); }
[data-scenario-mode="work"] .signal-map svg,
[data-scenario-mode="debate"] .signal-map svg { height: clamp(92px, 10vw, 136px); }
.signal-node { border: 1px solid var(--line); border-radius: 5px; background: var(--paper); padding: 4px 9px; font-size: 12px; font-weight: 700; }
.signal-targets { display: grid; grid-auto-rows: 1fr; align-self: stretch; align-items: center; justify-items: start; color: var(--ai); }
.signal-targets .signal-node { display: inline-flex; align-items: center; gap: 6px; }
.signal-targets .signal-node::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, currentColor); box-shadow: 0 0 5px var(--dot, currentColor); }
.signal-targets .signal-node small { color: var(--muted); font-size: 10px; font-weight: 500; }
.signal-targets .signal-node:nth-child(2) { margin-inline-start: 22px; }
.signal-targets .signal-node:nth-child(3) { margin-inline-start: 7px; }
.signal-targets .signal-node:nth-child(4) { margin-inline-start: 28px; }
.signal-sources .signal-node:nth-child(2) { margin-inline-end: 10px; }
.signal-sources .signal-node:nth-child(3) { margin-inline-end: 4px; }
.signal-sources { display: grid; grid-auto-rows: 1fr; align-self: stretch; align-items: center; justify-items: end; color: var(--focus); }
.signal-root { stroke-width: 1.3; opacity: .85; }
.signal-connector {
  fill: none;
  stroke: rgba(228, 168, 50, 0.5);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
  stroke-linecap: round;
}
.signal-line {
  fill: none;
  stroke: url(#signal-gradient);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(228, 168, 50, 0.24));
}
.signal-trunk {
  fill: none;
  stroke: rgba(183, 208, 220, 0.78);
  stroke-width: 1.9;
  stroke-linecap: round;
}
.signal-junction { fill: var(--ai); filter: drop-shadow(0 0 3px rgba(228, 168, 50, 0.8)); }
.signal-bead { fill: #faf1c4; stroke: rgba(228, 168, 50, 0.9); stroke-width: 1; opacity: 0; filter: drop-shadow(0 0 4px rgba(244, 207, 108, 0.9)); }
.stage-description { padding: 9px 16px 0; color: var(--muted); font-size: 12px; }
.stage-tabs .stage-replay { border-color: var(--line); margin-inline-start: 5px; }
.stage-replay span { margin-inline-start: 2px; }

.hero-art[data-view="terminal"] { --surface: #0b0e13; font-family: var(--mono), var(--font); }
.stage-window {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--surface) 80%, var(--control-line));
  border-radius: 10px;
  box-shadow: 0 12px 29px #0006;
}
.stage-top, .stage-controls { border-bottom: 1px solid var(--line); }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--panel); }
.stage-title { font-size: 13px; font-weight: 720; }
.stage-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 13px; padding: 9px 16px; }
.stage-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.stage-tabs button {
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.stage-tabs button:hover { border-color: var(--line); color: var(--ink); }
.stage-tabs button[aria-pressed="true"] { background: var(--action); color: var(--action-text); font-weight: 700; }
html:not(.has-js) .stage-tabs { display: none; }
.stage-caps { display: flex; flex-wrap: wrap; gap: 5px 10px; font-size: 11px; color: var(--muted); }
.cap-chip { white-space: nowrap; }
.cap-chip i, .msg-row header::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 4px;
  border-radius: 50%;
  background: var(--dot, var(--agent-color, var(--control-line)));
}
.cap-chip i { opacity: .38; }
.cap-chip.is-active { color: var(--ink); font-weight: 680; }
.cap-chip.is-active i { opacity: 1; }
.stage-feed { display: grid; align-content: start; gap: 9px; min-height: 224px; padding: 12px 16px; }
.msg-row {
  max-width: 92%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.msg-row.ai { border-inline-start: 2px solid var(--ai-edge); }
.msg-row.human { justify-self: end; background: #202c3a; border-color: #647385; color: var(--ink); border-radius: 12px 12px 3px 12px; }
.msg-row.approval { border-inline-start: 2px solid var(--attention); background: #2a2024; }
.msg-row.approval header b { color: var(--attention); }
.msg-row.approval header::before { display: none; }
.msg-row .speaker-kind { color: var(--ai); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; font: 700 10px/1.4 var(--mono); }
.msg-row header { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.msg-row header::before { content: ""; margin: 0; }
.msg-row.human header::before { display: none; }
.msg-row header span { color: var(--muted); font-size: 11px; }
.msg-row.human header span { color: inherit; }
.msg-row p { margin: 3px 0 0; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.stage-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 16px 15px;
  padding: 8px 10px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
.stage-input i { display: grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 4px; background: var(--action); color: var(--action-text); }
[data-view="terminal"] .msg-row { justify-self: stretch; max-width: none; padding-block: 7px; border-width: 0 0 1px; border-radius: 0; background: none; color: var(--ink); }
[data-view="terminal"] .msg-row.ai header b { color: var(--ai); }
[data-view="terminal"] .msg-row.human header::before { display: inline; content: ">"; width: auto; height: auto; background: none; color: var(--muted); }
[data-view="terminal"] .stage-input i { display: none; }
[data-view="terminal"] .stage-input::before { content: "›"; color: var(--focus); }
[data-view="terminal"] .stage-input { justify-content: flex-start; border-radius: 3px; }

.sub-hero-inner, .download-center { padding-block: clamp(48px, 7vw, 94px); }
.sub-hero h1, .dl-heading h1 { margin-bottom: 18px; font: 700 clamp(32px, 4.6vw, 56px)/1.12 var(--display); letter-spacing: -.018em; }
.visual-caption { display: block; margin-bottom: 14px; color: var(--muted); font: 600 12px/1.45 var(--mono); }
.nested-section { padding-block: 54px 0; }
.topic-header { display: flex; gap: 16px; align-items: baseline; margin-bottom: 22px; }
.topic-header h2, .doc-section h2 { margin-bottom: 10px; font-size: clamp(25px, 3vw, 38px); }
.topic-desc, .panel-copy p, .gallery-copy p { margin-bottom: 0; color: var(--muted); }
.nested-shell, .doc-card, .docs-sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.nested-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.nested-tabs button, .platform-picker button {
  padding: 7px 12px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
}
:is(.nested-tabs, .platform-picker) button:hover { background: var(--panel); }
.nested-tabs button[aria-selected="true"], .platform-picker button[aria-pressed="true"] { background: var(--action); color: var(--action-text); border-color: var(--action); }
.nested-panels, .doc-card { padding: clamp(16px, 3vw, 32px); }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(16px, 4vw, 42px); }
.panel-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.gallery-copy { max-width: 52em; }
.panel-copy h3, .gallery-copy h3, .nested-panel h3 { margin-bottom: 14px; font-size: clamp(20px, 2.2vw, 28px); }
.panel-visual, .term-grid > div, .mini-box, .doc-callout { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.doc-callout { margin-top: 18px; }
.diagram-stack, .diagram-steps, .status-demo { display: grid; gap: 8px; }
.diag-row, .doc-two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.diag-row:has(> :nth-child(3)), .term-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.diag-node, .diag-chip, .diagram-steps > div, .st-row { padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13px; }
.diag-node span, .diagram-steps b { margin-inline-end: 10px; }
.diag-chip strong, .diag-chip small { display: block; overflow-wrap: anywhere; }
.diag-arrow, .diag-chip small { color: var(--muted); }
.diag-arrow { text-align: center; font-size: 12px; }
.st-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.st-row .is-busy { color: var(--focus); }
.agent-matrix { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-matrix span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.construct-list, .doc-steps { padding-inline-start: 1.25rem; }
.construct-list li + li, .doc-steps li + li { margin-top: 7px; }
.product-frame { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 12px 32px #0004; }
.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
}
.frame-bar > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.frame-bar > span:first-child i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--control-line);
  opacity: .6;
}
.product-frame img { display: block; width: 100%; height: auto; }
.page-capabilities main { padding-bottom: 54px; }

.quick-start { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; gap: 22px clamp(28px, 4vw, 52px); padding-block: clamp(56px, 8vw, 108px); }
.quick-start::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 208, 220, 0.22) 30%, rgba(228, 168, 50, 0.28) 50%, rgba(183, 208, 220, 0.22) 70%, transparent);
}
.start-heading { grid-column: 1 / -1; max-width: 46em; }
.start-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.section-kicker { margin-bottom: 10px; color: var(--ai-edge); font: 600 12px/1.4 var(--mono); letter-spacing: .14em; }
.quick-start h2 { margin-bottom: 4px; font: 700 clamp(26px, 3vw, 42px)/1.15 var(--display); }
.workspace-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #3c4c5e;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(240, 244, 248, 0.12), 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(7, 10, 15, 0.6);
}
.workspace-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(240, 244, 248, 0.07), transparent 28%);
  pointer-events: none;
}
.workspace-frame .frame-bar { padding-block: 8px; font: 500 11px/1.4 var(--mono); }
.workspace-preview { display: block; width: 100%; height: auto; }
.start-links { display: grid; align-content: end; gap: 10px; margin: 0; padding: 0; list-style: none; }
.start-links a {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  color: var(--ink);
}
.start-links a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.start-links a:focus-visible { outline-color: var(--focus); }
.start-links strong { display: flex; align-items: baseline; gap: 12px; }
.start-links strong em { color: var(--ai-edge); font: 600 12px/1 var(--mono); font-style: normal; letter-spacing: .06em; }
.start-links strong span { margin-inline-start: auto; color: var(--focus); }
.start-links a > span { padding-inline-start: calc(12px + 2.2ch); color: var(--muted); font-size: 14px; }

.download-center {
  display: grid;
  grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr);
  align-content: center;
  align-items: center;
  gap: 18px clamp(26px, 6vw, 90px);
  min-height: min(690px, 82vh);
}
.dl-heading { align-self: end; }
.dl-heading h1 { font-size: clamp(38px, 5vw, 66px); }
.dl-heading p { color: var(--muted); margin: 0; }
.platform-tiles { display: grid; align-self: start; gap: 6px; max-width: 340px; }
.platform-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: border-color .18s, background-color .18s;
}
.platform-tile:hover { border-color: var(--control-line); background: rgba(183, 208, 220, 0.04); }
.platform-tile[aria-selected="true"] { border-color: rgba(192, 213, 228, 0.55); background: rgba(192, 213, 228, 0.09); color: var(--ink); font-weight: 700; }
.platform-tile:focus-visible { outline-color: var(--focus); outline-offset: 2px; }
.tile-icon { flex: none; width: 24px; height: 24px; fill: currentColor; }
.platform-panels {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  min-height: 355px;
  padding: clamp(24px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(240, 244, 248, 0.06), 0 16px 42px #0004;
}
.platform-panel h2 { margin-bottom: 8px; font: 700 clamp(32px, 4.2vw, 54px)/1.05 var(--display); letter-spacing: -.02em; }
.platform-requirements { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.dl-primary-btn { border-radius: 999px; min-width: min(236px, 100%); }
.dl-secondary-btn { background: var(--surface); color: var(--ink); border-color: var(--control-line); }
.dl-secondary-btn:hover { background: var(--panel); color: var(--ink); }
.mac-arch-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wechat-tip-banner {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 14px 18px;
  border: 1px solid var(--control-line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.wechat-tip-banner p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.wechat-tip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.wechat-tip-actions code { max-width: 100%; overflow-wrap: anywhere; user-select: all; }
.install-guide-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px #0007;
}
.install-guide-dialog::backdrop { background: #070a0fb0; }
.install-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.install-guide-head h3 { margin: 0; font-size: 20px; }
.guide-close-btn { border: 1px solid var(--control-line); border-radius: 999px; width: 32px; height: 32px; background: transparent; line-height: 1; }
.guide-lead { margin-bottom: 10px; }
.install-guide-body .doc-steps { padding-inline-start: 20px; margin: 0 0 12px; }
.install-guide-body .doc-steps li + li { margin-top: 6px; }
.install-guide-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.install-guide-foot .button { background: transparent; color: var(--ink); border-color: var(--control-line); }
.install-guide-foot .button.primary { background: var(--action); color: var(--action-text); border-color: var(--action); }
.dl-subnote { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.platform-links { display: flex; flex-wrap: wrap; gap: 6px 19px; margin-top: 14px; font-size: 14px; }
.platform-links a, .doc-steps a, .doc-callout a, .mac-doc-step a { text-decoration: underline; text-underline-offset: 3px; }
.cli-card { min-width: 0; overflow: hidden; background: #0b0e13; color: #e6eef6; border: 1px solid #344353; border-radius: 9px; }
.cli-card-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 10px; border-bottom: 1px solid #344353; }
.platform-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.cli-card { --panel: #18222e; --action: #e6eef6; --action-text: #0b0e13; --control-line: #718294; --focus: #b7d0dc; }
.cli-card pre { margin: 0; padding: 16px; font: 13px/1.7 var(--mono); }

.page-mcp { background: radial-gradient(ellipse at 50% 8%, #192a3c 0%, var(--paper) 62%); }
.mcp-page { max-width: 960px; padding-block: clamp(42px, 7vw, 96px); }
.mcp-heading { margin-bottom: clamp(24px, 4vw, 42px); animation: mcp-enter .35s ease-out both; }
.mcp-heading h1 { font-size: clamp(30px, 5.2vw, 58px); margin-bottom: 14px; }
.mcp-heading p:last-child { margin-bottom: 0; }
.mcp-name { color: var(--ai); font: 600 14px/1.4 var(--mono); }
.mcp-setup { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 4vw, 36px); }
.mcp-setup p { color: var(--muted); }
.mcp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mcp-options { padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.mcp-options button, .mcp-actions a { min-height: 44px; }
.mcp-code { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.mcp-code pre { flex: 1 1 340px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mcp-code button { margin: 12px; min-height: 44px; }
.mcp-actions { margin-bottom: 16px; }
.mcp-actions a:not(.button), .mcp-guide-link { text-decoration: underline; text-underline-offset: 3px; }
.mcp-actions a:not(.button), .mcp-guide-link { display: inline-flex; align-items: center; min-height: 44px; }
.mcp-config summary { cursor: pointer; min-height: 44px; padding-block: 8px; }
.mcp-config h3 { font-size: 16px; margin: 12px 0 8px; }
.mcp-config pre { padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mcp-setup .mcp-check { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
@keyframes mcp-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mcp-heading { animation: none; } }
.copy-status, .noscript-tip { margin: 8px 0; font-size: 13px; }
.noscript-tip { padding-inline: 16px; }

.docs-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: start; gap: clamp(18px, 5vw, 58px); padding-block: 38px 62px; }
.docs-sidebar { position: sticky; top: 88px; padding: 12px; }
.doc-search-box input { width: 100%; padding: 8px; border: 1px solid var(--control-line); border-radius: 5px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.doc-search-count { display: block; color: var(--muted); }
.doc-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.doc-nav a { display: block; padding: 3px 8px; border-radius: 5px; font-size: 14px; }
.doc-nav a:hover, .doc-nav .is-active { background: var(--panel); }
.doc-nav > a { font-weight: 670; }
.doc-nav > a span { margin-inline-end: 4px; color: var(--muted); font: 12px var(--mono); }
.doc-subnav { margin: 0 0 4px 12px; border-left: 1px solid var(--line); }
.doc-subnav a { font-size: 13px; color: var(--muted); }
.docs-content { min-width: 0; overflow-wrap: anywhere; }
.doc-section + .doc-section { margin-top: 44px; }
.doc-card + .doc-card { margin-top: 12px; }
.term-grid { display: grid; gap: 8px; }
.term-grid p, .mini-box p, .doc-callout p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.doc-note { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.mac-doc-step + .mac-doc-step { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.mac-doc-step h4 { margin-bottom: 8px; }
.mac-doc-step p { margin-bottom: 10px; }
.doc-code { margin: 10px 0 0; padding: 12px 14px; border-radius: 8px; background: #101821; color: #e6eef6; font: 13px/1.6 var(--mono); }
.doc-figure { margin: 14px 0 4px; }
.doc-figure img { display: block; max-width: min(100%, 460px); height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px #0004; }
.doc-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.docs-faq details { border-bottom: 1px solid var(--line); }
.docs-faq summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px 0; font-weight: 680; cursor: pointer; }
.docs-faq summary::-webkit-details-marker { display: none; }
.docs-faq details[open] summary span { transform: rotate(45deg); }
.docs-faq details p { color: var(--muted); }
.redirect-box { width: min(520px, calc(100% - 36px)); margin: 12vh auto; }
.footer { position: relative; margin-top: clamp(24px, 4vw, 48px); background: linear-gradient(180deg, rgba(7, 10, 15, 0.96), #0c121a 80%); border-top: 1px solid rgba(183, 208, 220, 0.12); }
.footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 6%, rgba(183, 208, 220, 0.3) 32%, rgba(228, 168, 50, 0.36) 50%, rgba(183, 208, 220, 0.3) 68%, transparent 94%);
}
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px clamp(32px, 6vw, 96px); padding-block: clamp(36px, 5vw, 56px) 28px; }
.footer-brand img { display: block; width: 92px; height: auto; filter: drop-shadow(0 0 10px rgba(244, 207, 108, 0.14)); }
.footer-brand p { margin: 12px 0 6px; color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.footer-brand p b { color: var(--ai); font-weight: 600; }
.footer-brand p i { font: italic 400 12px/1 Georgia, serif; letter-spacing: .04em; text-transform: lowercase; }
.footer-brand p strong { color: var(--focus); font-weight: 600; }
.footer-brand > span { color: var(--muted); font-size: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(96px, auto)); gap: 18px clamp(28px, 5vw, 72px); }
.footer-links h2 { margin: 0 0 10px; color: var(--ink); font: 600 12px/1.4 var(--mono); letter-spacing: .12em; }
.footer-links a { display: flex; align-items: center; gap: 4px; min-height: 32px; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.footer-links a span { color: var(--focus); font-size: 12px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 16px 22px; border-top: 1px solid rgba(183, 208, 220, 0.1); color: #7f90a2; font: 500 12px/1.5 var(--mono); }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 span, .hero-copy .lead, .hero-actions { animation: rise-in .68s both; }
  .hero h1 span { animation-delay: .1s; }
  .hero h1 span:last-child { animation-delay: .21s; }
  .hero-copy .lead, .hero-actions { animation-delay: .31s; }
  .hero-art { animation: stage-in .96s .1s both; }
  .stage-optics::after {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(115deg, transparent 42%, rgba(183, 208, 220, 0.09) 49%, rgba(244, 207, 108, 0.06) 51%, transparent 58%);
    transform: translateX(-65%);
    animation: optics-sweep 9.5s cubic-bezier(.4, 0, .2, 1) 1.2s infinite;
    pointer-events: none;
  }
  .stage-input span::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 1.05em;
    margin-inline-start: 4px;
    vertical-align: text-bottom;
    background: var(--focus);
    opacity: .7;
    animation: caret-blink 1.15s steps(2, end) infinite;
  }
  .stage-light, .hero h1 span, .signal-map, .signal-node { transition: color .42s, background-color .42s; }
  .cap-chip.is-active i { animation: cue-in 2.2s ease-out infinite; }
  .button, .nav-cta, .platform-tile { transition: transform .28s, background-color .28s, border-color .28s, box-shadow .28s; }
  .button:hover, .nav-cta:hover, .platform-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(183, 208, 220, 0.16); }
  .button:active, .nav-cta:active, .platform-tile:active { transform: translateY(1px); }
  .start-links a { transition: transform .18s ease-out, background-color .18s ease-out, border-color .18s ease-out; }
  .start-links a:hover { border-color: var(--control-line); background: var(--surface); transform: translateY(-2px); }

  .reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity .65s cubic-bezier(.22, 1, .36, 1), transform .65s cubic-bezier(.22, 1, .36, 1); }
  .reveal-on-scroll.is-visible { opacity: 1; transform: none; }

  @keyframes optics-sweep {
    0%, 58% { transform: translateX(-65%); }
    100% { transform: translateX(75%); }
  }
  @keyframes caret-blink {
    0%, 49% { opacity: .75; }
    50%, 100% { opacity: 0; }
  }
  @keyframes stage-in {
    from { opacity: .3; transform: translateY(14px) scale(.987); }
    to { opacity: 1; transform: none; }
  }
  @keyframes cue-in {
    0% { box-shadow: 0 0 0 0 var(--dot); }
    70%, 100% { box-shadow: 0 0 0 7px transparent; }
  }
  @keyframes rise-in {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}

@media (max-width: 920px) {
  .wrap { width: calc(100% - 48px); }
  .topbar { padding-inline: 24px; }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: clamp(37px, 8vw, 65px); }
  .docs-shell { grid-template-columns: 180px minmax(0, 1fr); }
  .quick-start { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { gap: 10px; min-height: 60px; padding-inline: 16px; }
  .brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 44px; }
  .brand-ink { width: 80px; }
  .brand-tagline { padding-inline-start: 0; border-inline-start: 0; font-size: 8px; letter-spacing: .09em; gap: 3px; }
  .brand-tagline i { font-size: 9px; }
  .topbar nav { gap: 9px; font-size: 13px; }
  .nav-cta { gap: 4px; padding: 5px 10px; font-size: 13px; }
  .hero { min-height: 0; padding-block: 38px 32px; }
  .hero h1 { margin-bottom: 15px; }
  .hero-art { padding: 12px 11px 14px; }
  .hero-actions { margin-top: 20px; }
  .stage-feed { min-height: 0; }
  .stage-controls { padding: 9px 12px; }
  .stage-tabs button { min-width: 44px; min-height: 44px; padding-inline: 6px; }
  .panel-grid, .panel-gallery, .docs-shell, .term-grid, .doc-two-cols { grid-template-columns: minmax(0, 1fr); }
  .docs-sidebar { position: static; }
  .quick-start { grid-template-columns: 1fr; gap: 14px; }
  .hero-meta { margin-top: 26px; padding-top: 14px; }
  .hero-meta div { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .download-center { grid-template-columns: minmax(0, 1fr); gap: 18px; min-height: 0; }
  .platform-panels { grid-column: auto; grid-row: auto; min-height: 0; margin-right: 8px; }
  .platform-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .platform-tile { justify-content: center; gap: 4px; min-height: 44px; padding: 8px 3px; line-height: 1.35; font-size: 12px; }
  .tile-icon { width: 18px; height: 18px; }
}
@media (max-width: 360px) {
  :is(.page-home, .page-download) .topbar { gap: 8px; padding-inline: 12px; }
  :is(.page-home, .page-download) .topbar nav { gap: 6px; }
  :is(.page-home, .page-download) .brand-ink { width: 60px; }
  :is(.page-home, .page-download) .brand-tagline { display: none; }
  :is(.page-home, .page-download) .topbar .nav-cta { gap: 4px; padding-inline: 8px; }
}
.mac-security-picture { display: grid; gap: 9px; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.mac-security-picture > div { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.mac-security-picture strong { padding: 4px 10px; border: 1px solid var(--control-line); border-radius: 7px; background: var(--panel); }

/* Vertical golden AI byte rain + cool silver human language streams behind the viewport. */
.signal-rain {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
:root[data-motion-paused] .stage-optics::after,
:root[data-motion-paused] .stage-input span::after,
:root[data-motion-paused] .cap-chip.is-active i {
  animation-play-state: paused !important;
}
:root[data-motion-paused] .stage-optics::after { opacity: 0; }
.signal-motion-toggle {
  position: fixed;
  z-index: 4;
  inset: auto max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(11, 16, 23, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--muted);
}
.signal-motion-toggle:hover { color: var(--ink); border-color: var(--control-line); }
.signal-motion-toggle svg { width: 15px; height: 15px; fill: currentColor; }
.signal-motion-toggle .signal-play,
.signal-motion-toggle[aria-pressed="false"] .signal-pause { display: none; }
.signal-motion-toggle[aria-pressed="false"] .signal-play { display: inline; }
@media(prefers-reduced-motion: reduce) {
  .signal-motion-toggle { display: none; }
}
