:root {
  --ink: oklch(0.24 0.025 210);
  --ink-soft: oklch(0.38 0.028 205);
  --muted: oklch(0.49 0.032 205);
  --faint: oklch(0.62 0.025 205);
  --bg: oklch(0.985 0 0);
  --surface: oklch(0.968 0.014 178);
  --surface-strong: oklch(0.925 0.035 178);
  --line: oklch(0.9 0.018 180);
  --line-strong: oklch(0.82 0.03 180);
  --teal: oklch(0.43 0.12 185);
  --teal-deep: oklch(0.31 0.085 190);
  --teal-soft: oklch(0.87 0.06 178);
  --coral: oklch(0.68 0.16 40);
  --coral-soft: oklch(0.93 0.075 43);
  --amber: oklch(0.78 0.15 84);
  --green: oklch(0.58 0.13 151);
  --white: oklch(1 0 0);
  --shadow: 0 24px 64px oklch(0.28 0.04 190 / 0.11);
  --shadow-soft: 0 12px 36px oklch(0.28 0.04 190 / 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid oklch(0.7 0.14 40 / 0.5); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.025em; text-wrap: balance; }
h1, h2, h3, strong, b { font-weight: 700; }
[hidden] { display: none !important; }

.site-shell { min-height: 100vh; overflow: hidden; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 76px; padding: 0 clamp(22px, 5vw, 74px); border-bottom: 1px solid oklch(0.9 0.018 180 / 0.75); background: oklch(1 0 0 / 0.94); backdrop-filter: blur(16px); }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-lockup strong { display: block; color: var(--ink); font-size: 15px; letter-spacing: 0.02em; }
.brand-lockup small { display: block; color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-mark { position: relative; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); }
.brand-mark::before, .brand-mark::after, .brand-mark span { position: absolute; display: block; content: ""; border: 1px solid currentColor; border-radius: 50%; }
.brand-mark::before { width: 16px; height: 9px; transform: rotate(38deg); }
.brand-mark::after { width: 16px; height: 9px; transform: rotate(-38deg); }
.brand-mark span { width: 5px; height: 5px; border: 0; background: var(--coral); }
.site-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; color: var(--muted); font-size: 13px; }
.site-nav a { transition: color 160ms ease; }
.site-nav a:hover { color: var(--teal); }
.site-actions { display: flex; align-items: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 17px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; font-size: 13px; letter-spacing: -0.01em; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--teal); color: var(--white); box-shadow: 0 7px 18px oklch(0.43 0.12 185 / 0.2); }
.button-primary:hover { background: var(--teal-deep); box-shadow: 0 9px 22px oklch(0.43 0.12 185 / 0.26); }
.button-secondary { background: var(--white); border-color: var(--line-strong); color: var(--ink-soft); }
.button-secondary:hover { border-color: var(--teal); color: var(--teal); }
.button-quiet { background: transparent; color: var(--muted); }
.button-quiet:hover { color: var(--teal); }
.button-light { background: var(--white); color: var(--teal-deep); }
.button-light:hover { background: var(--coral-soft); color: var(--ink); }
.button-large { min-height: 50px; padding: 0 21px; font-size: 14px; }
.button-small { min-height: 33px; padding: 0 12px; font-size: 12px; }
.button-full { width: 100%; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--teal); font-weight: 700; font-size: 13px; }
.text-button:hover { color: var(--coral); }
.icon-button { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }
.icon-button:hover { border-color: var(--line); background: var(--surface); color: var(--teal); }

.section-pad { padding: clamp(70px, 9vw, 128px) clamp(22px, 5vw, 74px); }
.hero { display: grid; grid-template-columns: minmax(0, 0.77fr) minmax(540px, 1.23fr); align-items: center; gap: clamp(50px, 7vw, 110px); min-height: 690px; max-width: 1600px; margin: 0 auto; padding-top: clamp(76px, 9vw, 136px); }
.hero-copy { max-width: 590px; }
.eyebrow, .section-label { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--teal); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.hero h1 { max-width: 640px; margin-bottom: 23px; color: var(--ink); font-size: clamp(46px, 5vw, 74px); line-height: 0.99; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-agent { color: var(--ink); }
.hero-lede { max-width: 500px; margin-bottom: 30px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-bottom: 31px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; color: var(--faint); font-size: 12px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.status-dot-live { background: var(--green); box-shadow: 0 0 0 4px oklch(0.58 0.13 151 / 0.12); }
.status-dot-warm { background: var(--amber); box-shadow: 0 0 0 4px oklch(0.78 0.15 84 / 0.18); }

.hero-visual { position: relative; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transform: translateY(10px) rotate(0.4deg); }
.hero-visual::after { position: absolute; right: -48px; bottom: -58px; width: 150px; height: 150px; border: 1px solid oklch(0.43 0.12 185 / 0.18); border-radius: 50%; content: ""; }
.preview-topbar { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--white); color: var(--faint); font-family: var(--mono); font-size: 10px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.window-dots i:first-child { background: var(--coral); }
.preview-title { overflow: hidden; flex: 1; white-space: nowrap; text-overflow: ellipsis; }
.preview-state { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.preview-layout { display: grid; grid-template-columns: 152px minmax(0, 1fr) 166px; min-height: 440px; }
.preview-sidebar { display: flex; flex-direction: column; gap: 6px; padding: 18px 12px 14px; border-right: 1px solid var(--line); background: oklch(0.955 0.02 178); color: var(--muted); font-size: 10px; }
.preview-side-label { padding: 4px 8px; color: var(--faint); font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; }
.preview-side-label-spaced { margin-top: 18px; }
.preview-project { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--white); color: var(--ink-soft); font-weight: 700; }
.mini-mark { display: inline-grid; width: 21px; height: 21px; place-items: center; border-radius: 6px; background: var(--coral-soft); color: var(--coral); font-size: 10px; font-weight: 800; }
.chevron { margin-left: auto; color: var(--faint); }
.preview-nav-item { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 7px; }
.preview-nav-item.active { background: var(--teal); color: var(--white); }
.nav-glyph { width: 13px; text-align: center; font-size: 13px; }
.preview-sidebar-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 10px 4px 0; border-top: 1px solid var(--line); font-size: 9px; }
.mini-avatar { display: inline-grid; flex: 0 0 auto; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal-deep); font-size: 10px; font-weight: 800; }
.preview-main { min-width: 0; padding: 22px 24px 17px; background: var(--white); }
.preview-main-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 25px; }
.preview-kicker, .surface-kicker, .board-kicker { display: block; margin-bottom: 5px; color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: 0.09em; }
.preview-main h2 { margin: 0; font-size: 20px; }
.version-chip, .version-chip-large, .release-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--muted); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.version-chip-large { padding: 9px 11px; font-size: 11px; }
.preview-chat-label { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--faint); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; }
.preview-chat-label span { color: var(--teal); font-family: var(--sans); letter-spacing: 0; }
.preview-chat { display: flex; flex-direction: column; gap: 18px; min-height: 245px; padding: 18px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: oklch(0.985 0.004 180); }
.chat-row { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; }
.chat-row > div { min-width: 0; }
.chat-row small { display: block; margin-bottom: 3px; color: var(--faint); font-size: 9px; }
.chat-row p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.chat-user p { color: var(--ink); font-weight: 600; }
.avatar-user { background: var(--coral-soft); color: var(--coral); }
.avatar-agent { background: var(--teal-soft); color: var(--teal-deep); }
.source-tag { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 4px 7px; border-radius: 5px; background: var(--teal-soft); color: var(--teal-deep); font-size: 9px; }
.source-tag b { color: var(--teal); }
.preview-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; margin-top: 12px; padding: 0 8px 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--faint); font-size: 10px; }
.preview-input button { display: grid; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 5px; background: var(--teal); color: var(--white); }
.preview-evidence { padding: 21px 15px; border-left: 1px solid var(--line); background: oklch(0.97 0.012 178); }
.evidence-head { display: flex; justify-content: space-between; margin-bottom: 20px; color: var(--muted); font-size: 10px; font-weight: 700; }
.evidence-count { color: var(--teal); font-family: var(--mono); }
.evidence-score { display: flex; align-items: baseline; gap: 5px; }
.evidence-score strong { color: var(--teal-deep); font-size: 44px; line-height: 1; letter-spacing: -0.06em; }
.evidence-score span { color: var(--faint); font-size: 11px; }
.evidence-score small { display: block; width: 100%; margin-top: 5px; color: var(--muted); font-size: 9px; }
.mini-meter, .progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--line); }
.mini-meter { margin: 13px 0 22px; }
.mini-meter span, .progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.evidence-line { display: flex; justify-content: space-between; margin: 11px 0; color: var(--muted); font-size: 10px; }
.evidence-line b { color: var(--ink-soft); font-family: var(--mono); font-size: 10px; }
.evidence-line b.good { color: var(--green); }
.evidence-divider { height: 1px; margin: 26px 0 18px; background: var(--line-strong); }
.evidence-note { display: flex; gap: 8px; color: var(--muted); font-size: 10px; }
.note-icon { display: inline-grid; flex: 0 0 auto; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 10px; font-weight: 800; }
.evidence-note p { margin: 0; line-height: 1.55; }
.evidence-note b { color: var(--teal-deep); }

.signal-strip { display: flex; align-items: center; gap: 21px; max-width: 1300px; margin: 0 auto; padding: 23px clamp(22px, 5vw, 74px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal-item { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.signal-item strong { margin-left: auto; color: var(--ink); font-size: 12px; }
.signal-index { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--teal); font-family: var(--mono); font-size: 9px; font-weight: 700; }
.signal-line { width: 34px; height: 1px; background: var(--line-strong); }

.workflow-section { max-width: 1600px; margin: 0 auto; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 58px; }
.section-label { margin-bottom: 17px; font-size: 10px; }
.section-heading-row h2, .evidence-copy h2, .workbench-heading h2 { margin: 0; font-size: clamp(35px, 4vw, 58px); line-height: 1.05; }
.section-heading-row h2 span, .evidence-copy h2 span, .workbench-heading h2 span { color: var(--teal); }
.section-intro { max-width: 330px; margin: 0 2% 5px 0; color: var(--muted); line-height: 1.7; }
.workflow-rail { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.workflow-step { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 17px; min-height: 196px; padding: 29px 20px 25px 0; border-right: 1px solid var(--line); }
.workflow-step + .workflow-step { padding-left: 20px; }
.workflow-step:last-child { border-right: 0; }
.workflow-step-active { color: var(--teal-deep); }
.step-number { color: var(--coral); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.workflow-step h3 { margin: 0 0 9px; font-size: 16px; }
.workflow-step p { max-width: 170px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.step-arrow { align-self: start; color: var(--line-strong); font-size: 16px; }
.workflow-step-active .step-arrow { color: var(--coral); }

.evidence-section { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: clamp(50px, 10vw, 150px); max-width: 1400px; margin: 0 auto; }
.evidence-copy p:not(.section-label) { max-width: 420px; margin: 23px 0 24px; color: var(--muted); line-height: 1.75; }
.evidence-board { padding: 24px 26px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.board-head, .surface-head, .data-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.board-head h3, .surface-head h2 { margin: 0; font-size: 16px; }
.run-state { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 11px; white-space: nowrap; }
.bar-chart { display: flex; gap: 13px; height: 215px; margin: 28px 0 14px; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 0 0 20px; color: var(--faint); font-family: var(--mono); font-size: 9px; }
.chart-area { position: relative; flex: 1; min-width: 0; }
.chart-grid-line { height: 1px; margin-bottom: 48px; background: var(--line-strong); opacity: 0.6; }
.bars { position: absolute; right: 8%; bottom: 0; left: 5%; display: flex; align-items: end; justify-content: space-around; height: 192px; }
.bar-group { display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 9px; height: 100%; }
.bar { display: block; width: clamp(23px, 4vw, 44px); min-height: 15px; border-radius: 5px 5px 0 0; }
.bar-good { background: var(--coral); }.bar-teal { background: var(--teal); }.bar-coral { background: var(--amber); }.bar-dark { background: var(--teal-deep); }
.bar-group small { color: var(--muted); font-size: 10px; }
.board-footer { display: flex; align-items: center; gap: 16px; color: var(--faint); font-size: 10px; }
.board-footer span { display: inline-flex; align-items: center; gap: 6px; }
.board-time { margin-left: auto; font-family: var(--mono); }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }.legend-good { background: var(--teal); }.legend-muted { background: var(--line-strong); }

.workbench-section { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: end; gap: 80px; max-width: 1600px; margin: 0 auto; padding-top: 110px; }
.workbench-heading { display: flex; flex-wrap: wrap; align-items: end; gap: 28px; }
.workbench-heading h2 { width: 100%; }
.workbench-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 5px; }
.workbench-notes > div { padding-top: 15px; border-top: 1px solid var(--line-strong); }
.note-index { display: block; margin-bottom: 28px; color: var(--coral); font-family: var(--mono); font-size: 10px; }
.workbench-notes p { margin: 0 0 4px; font-weight: 700; }.workbench-notes small { display: block; color: var(--muted); font-size: 11px; line-height: 1.55; }
.cta-section { margin-top: 130px; padding: 80px clamp(22px, 8vw, 150px); background: var(--teal-deep); color: var(--white); }
.cta-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; max-width: 1260px; margin: 0 auto; }.section-label-light { color: var(--teal-soft); }.cta-inner h2 { margin: 0; font-size: clamp(39px, 5vw, 72px); line-height: 1; }
.site-footer { display: flex; align-items: center; gap: 30px; min-height: 96px; padding: 0 clamp(22px, 5vw, 74px); color: var(--faint); font-size: 11px; }.site-footer .brand-lockup { margin-right: auto; }.site-footer .brand-mark { border-color: var(--teal); }

/* Workspace */
.workspace-view { min-height: 100vh; background: oklch(0.965 0.014 178); }
.workspace-shell { display: flex; min-height: 100vh; }
.app-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; width: 226px; min-height: 100vh; padding: 22px 13px 14px; border-right: 1px solid var(--line-strong); background: var(--white); }
.app-brand { padding: 0 10px 24px; }.app-brand .brand-lockup strong { font-size: 14px; }.app-brand .brand-lockup small { font-size: 8px; }
.workspace-switcher { display: flex; align-items: center; gap: 9px; margin: 0 2px 25px; padding: 9px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }.workspace-switcher div { display: flex; flex-direction: column; min-width: 0; }.workspace-switcher small { color: var(--faint); font-size: 9px; }.workspace-switcher b { overflow: hidden; color: var(--ink); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.app-nav { display: flex; flex-direction: column; gap: 3px; }.app-nav-item { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-size: 12px; }.app-nav-item span { width: 16px; color: var(--faint); text-align: center; font-size: 15px; }.app-nav-item:hover { background: var(--surface); color: var(--teal); }.app-nav-item.active { background: var(--teal); color: var(--white); }.app-nav-item.active span { color: var(--white); }.app-nav-divider { height: 1px; margin: 19px 10px; background: var(--line); }.app-nav-secondary .app-nav-item { min-height: 35px; font-size: 11px; }
.sidebar-bottom { margin-top: auto; }.workspace-health { display: flex; align-items: center; gap: 8px; margin: 0 9px 15px; color: var(--muted); font-size: 10px; }.user-row { display: flex; align-items: center; gap: 9px; padding: 12px 8px 0; border-top: 1px solid var(--line); }.user-row div { display: flex; flex-direction: column; min-width: 0; }.user-row b { color: var(--ink); font-size: 11px; }.user-row small { color: var(--faint); font-size: 9px; }.user-row button { margin-left: auto; border: 0; background: transparent; color: var(--faint); }
.app-main { min-width: 0; flex: 1; }.app-topbar { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 clamp(25px, 4vw, 56px); border-bottom: 1px solid var(--line-strong); background: oklch(1 0 0 / 0.75); }.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }.breadcrumb b { color: var(--line-strong); }.breadcrumb span:last-child { color: var(--ink); font-weight: 700; }.topbar-actions { display: flex; align-items: center; gap: 10px; }.saved-state { display: inline-flex; align-items: center; gap: 7px; margin-right: 8px; color: var(--faint); font-size: 10px; }.saved-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.app-content { max-width: 1500px; margin: 0 auto; padding: clamp(30px, 4vw, 58px) clamp(22px, 4vw, 58px) 80px; }.view-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }.view-intro h1 { margin: 0 0 7px; font-size: clamp(30px, 3vw, 43px); }.view-intro p:not(.section-label) { margin: 0; color: var(--muted); font-size: 13px; }.compact-intro { margin-bottom: 27px; }.intro-actions { display: flex; align-items: center; gap: 10px; }
.overview-grid { display: grid; grid-template-columns: 1.18fr 1fr 0.88fr; gap: 16px; }.surface { border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 5px 22px oklch(0.28 0.04 190 / 0.035); }.overview-grid .surface { min-height: 279px; padding: 21px; }.surface-head { margin-bottom: 17px; }.surface-head h2 { font-size: 16px; }.surface-description { max-width: 310px; margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.65; }.status-pill { display: inline-flex; align-items: center; align-self: start; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }.status-pill-draft { background: var(--coral-soft); color: var(--coral); }.status-pill-live { background: var(--teal-soft); color: var(--teal-deep); }.agent-tags { display: flex; flex-wrap: wrap; gap: 6px; }.agent-tags span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 10px; }.surface-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 19px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }.agent-summary, .eval-summary, .release-summary { display: flex; flex-direction: column; }.score-row { display: flex; align-items: baseline; gap: 6px; margin: 13px 0 11px; }.score-row strong { color: var(--teal-deep); font-size: 49px; line-height: 1; letter-spacing: -0.07em; }.score-row div { display: flex; flex-direction: column; color: var(--faint); font-family: var(--mono); font-size: 11px; }.score-row small { margin-top: 6px; color: var(--muted); font-family: var(--sans); font-size: 10px; }.progress-track { margin-bottom: 16px; }.metric-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: auto; }.metric-list div { display: flex; flex-direction: column; gap: 3px; }.metric-list span { color: var(--faint); font-size: 9px; }.metric-list b { color: var(--ink-soft); font-family: var(--mono); font-size: 12px; }.metric-list b.good { color: var(--green); }.release-dot { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }.check-list { display: flex; flex-direction: column; gap: 13px; margin: 8px 0 auto; }.check-row { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 7px; font-size: 11px; }.check-row > span { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 800; }.check-row.done > span { background: var(--teal-soft); color: var(--teal); }.check-row.pending > span { background: var(--coral-soft); color: var(--coral); }.check-row p { margin: 0; color: var(--ink-soft); }.check-row small { color: var(--faint); font-size: 9px; }.overview-lower { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 16px; margin-top: 16px; }.queue-panel, .activity-panel { padding: 21px; }.case-list { display: flex; flex-direction: column; }.case-row { display: grid; grid-template-columns: 67px 1fr auto; align-items: center; gap: 13px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }.case-row:last-child { border-bottom: 0; }.case-status { align-self: start; padding: 5px 7px; border-radius: 5px; font-size: 9px; font-weight: 700; text-align: center; }.case-status-warm { background: var(--coral-soft); color: var(--coral); }.case-status-coral { background: oklch(0.92 0.04 24); color: oklch(0.48 0.14 28); }.case-status-teal { background: var(--teal-soft); color: var(--teal-deep); }.case-row b { display: block; margin-bottom: 3px; color: var(--ink-soft); font-size: 11px; }.case-row small { color: var(--faint); font-size: 10px; }.case-arrow { color: var(--line-strong); }.case-row:hover b, .case-row:hover .case-arrow { color: var(--teal); }.activity-period { color: var(--faint); font-size: 10px; }.activity-total { display: flex; align-items: baseline; gap: 7px; margin: 22px 0 13px; }.activity-total strong { color: var(--teal-deep); font-size: 32px; letter-spacing: -0.05em; }.activity-total span { color: var(--muted); font-size: 11px; }.activity-chart { display: flex; align-items: end; gap: 7px; height: 86px; padding: 0 3px; border-bottom: 1px solid var(--line); }.activity-chart i { flex: 1; min-height: 9px; border-radius: 4px 4px 0 0; background: var(--teal-soft); }.activity-chart i:nth-last-child(-n+2) { background: var(--teal); }.activity-foot { display: flex; justify-content: space-between; margin-top: 13px; color: var(--faint); font-size: 9px; }.activity-foot span:first-child { display: flex; align-items: center; gap: 7px; color: var(--muted); }

.builder-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr); gap: 16px; }.builder-form, .simulator { padding: 23px; }.save-label { color: var(--faint); font-family: var(--mono); font-size: 9px; }.field-label { display: block; margin: 17px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; }.text-input, .text-area { display: block; width: 100%; margin-top: 7px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 400; transition: border 160ms ease, box-shadow 160ms ease; }.text-input:focus, .text-area:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); outline: 0; }.text-area { resize: vertical; line-height: 1.55; }.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.attached-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }.attached-head { display: flex; align-items: center; justify-content: space-between; }.attached-head .field-label { margin: 0; }.attached-list { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }.attached-list > div { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; }.attached-list > div > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }.attached-list b { color: var(--ink-soft); font-size: 11px; }.attached-list small { color: var(--faint); font-size: 9px; }.attached-list .status-dot { margin-left: auto; }.file-icon, .tool-icon { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 6px; background: var(--surface); color: var(--teal); font-size: 14px; }.tool-icon { background: var(--coral-soft); color: var(--coral); }.simulator { display: flex; flex-direction: column; min-height: 600px; }.simulator-note { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--faint); font-size: 10px; }.simulator-note b { color: var(--teal); }.simulator-chat { flex: 1; min-height: 320px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: oklch(0.985 0.004 180); }.simulator-chat .chat-row + .chat-row { margin-top: 22px; }.simulator-input { display: flex; gap: 8px; margin-top: 12px; }.simulator-input input { min-width: 0; flex: 1; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); outline: 0; }.simulator-input input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }.simulator-input .button { min-width: 57px; }.simulator-footer { display: flex; justify-content: space-between; margin-top: 12px; color: var(--faint); font-size: 10px; }.simulator-footer span:first-child { display: flex; align-items: center; gap: 7px; color: var(--muted); }

.data-surface, .eval-table-surface { padding: 0 22px 12px; }.data-toolbar { align-items: center; min-height: 66px; border-bottom: 1px solid var(--line); }.filter-tabs { display: flex; gap: 19px; height: 66px; }.filter-tab { position: relative; border: 0; background: transparent; color: var(--muted); font-size: 11px; }.filter-tab.active { color: var(--teal); font-weight: 700; }.filter-tab.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--teal); content: ""; }.filter-tab b { margin-left: 4px; color: var(--faint); font-family: var(--mono); font-size: 9px; }.data-actions { display: flex; align-items: center; gap: 8px; }.data-table { overflow-x: auto; }.data-row { display: grid; grid-template-columns: minmax(250px, 1.7fr) minmax(130px, 0.75fr) minmax(120px, 0.75fr) minmax(120px, 0.7fr) 26px; align-items: center; gap: 15px; min-width: 680px; min-height: 62px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }.data-row:last-child { border-bottom: 0; }.data-row-head { min-height: 43px; color: var(--faint); font-family: var(--mono); font-size: 9px; }.data-name { display: flex; align-items: center; gap: 10px; min-width: 0; }.data-name b { overflow: hidden; color: var(--ink-soft); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }.row-more { border: 0; background: transparent; color: var(--faint); font-size: 17px; }.file-icon-warm { background: var(--coral-soft); color: var(--coral); }.eval-overview { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 16px; margin-bottom: 16px; }.eval-score, .eval-insight { min-height: 205px; padding: 21px; }.eval-score .score-row { margin-top: 26px; }.eval-splits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }.eval-splits div { display: flex; flex-direction: column; gap: 3px; }.eval-splits b { color: var(--ink-soft); font-family: var(--mono); font-size: 13px; }.eval-splits span { color: var(--faint); font-size: 9px; }.eval-insight h2 { margin: 24px 0 8px; font-size: 22px; }.eval-insight > p { max-width: 520px; margin-bottom: 17px; color: var(--muted); font-size: 12px; line-height: 1.65; }.insight-source { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 10px; }.insight-source b { color: var(--teal-deep); }.result-pill { display: inline-flex; padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 700; }.result-pass { background: var(--teal-soft); color: var(--teal-deep); }.result-review { background: var(--coral-soft); color: var(--coral); }.result-human { background: oklch(0.92 0.04 24); color: oklch(0.48 0.14 28); }.eval-table .data-row { grid-template-columns: minmax(270px, 1.8fr) minmax(100px, 0.7fr) minmax(80px, 0.5fr) minmax(100px, 0.7fr) 70px; }

.publish-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr); gap: 16px; }.release-card, .release-timeline { padding: 23px; }.release-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }.release-meta div { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }.release-meta span { color: var(--faint); font-size: 9px; }.release-meta b { color: var(--ink-soft); font-family: var(--mono); font-size: 12px; }.release-checks { display: flex; flex-direction: column; gap: 14px; padding: 15px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.release-card .button-full { margin-top: 20px; }.timeline { padding-top: 15px; }.timeline-item { position: relative; display: flex; align-items: center; gap: 13px; min-height: 80px; padding-left: 22px; border-left: 1px solid var(--line-strong); }.timeline-item:last-child { border-left-color: transparent; }.timeline-node { position: absolute; left: -5px; width: 9px; height: 9px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--white); }.timeline-item.current .timeline-node { border-color: var(--coral); background: var(--coral); }.timeline-item > div { display: flex; flex-direction: column; gap: 4px; }.timeline-item b { color: var(--ink-soft); font-size: 11px; }.timeline-item small { color: var(--faint); font-size: 9px; }.timeline-item .text-button { margin-left: auto; font-size: 10px; }.timeline-tag { margin-left: auto; padding: 4px 7px; border-radius: 5px; background: var(--coral-soft); color: var(--coral); font-size: 9px; font-weight: 700; }.empty-view { min-height: 510px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 500px; margin: 0 auto; }.empty-mark { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 22px; }.empty-view h1 { margin-bottom: 10px; font-size: 36px; }.empty-view p:not(.section-label) { margin-bottom: 25px; color: var(--muted); }

.dialog { width: min(520px, calc(100vw - 32px)); padding: 26px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }.dialog::backdrop { background: oklch(0.24 0.025 210 / 0.42); }.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }.dialog-head h2 { margin: 0; font-size: 23px; }.dialog > p { margin: 15px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.65; }.dialog .field-label { margin-top: 14px; }.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }.toast { max-width: 340px; padding: 12px 15px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--white); color: var(--ink-soft); box-shadow: var(--shadow-soft); font-size: 12px; animation: toast-in 240ms ease-out both; }.toast.toast-success { border-color: var(--teal); }.toast.toast-warm { border-color: var(--coral); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1160px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }.hero-copy { max-width: 730px; }.hero-visual { max-width: 820px; }.workflow-step { min-height: 220px; }.overview-grid { grid-template-columns: repeat(2, 1fr); }.release-summary { grid-column: span 2; min-height: 220px !important; }.release-summary .check-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.workbench-section { gap: 45px; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }.site-header { padding: 0 22px; }.hero { min-height: auto; padding-top: 76px; }.signal-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.signal-line { display: none; }.signal-item { padding: 7px 0; }.section-heading-row, .evidence-section, .workbench-section { grid-template-columns: 1fr; }.section-heading-row { display: grid; gap: 22px; }.section-intro { margin: 0; }.workflow-rail { grid-template-columns: repeat(2, 1fr); }.workflow-step:nth-child(2) { border-right: 0; }.workflow-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.evidence-section { gap: 37px; }.workbench-section { display: grid; gap: 42px; }.cta-inner { align-items: start; flex-direction: column; }.app-sidebar { width: 198px; }.app-content { padding-right: 25px; padding-left: 25px; }.overview-lower, .builder-grid, .publish-grid, .eval-overview { grid-template-columns: 1fr; }.release-summary { grid-column: auto; }.release-summary .check-list { display: flex; }.builder-form, .simulator { min-width: 0; }
}
@media (max-width: 680px) {
  .site-header { min-height: 68px; }.site-actions .button-quiet { display: none; }.site-actions .button-primary { min-height: 35px; padding: 0 11px; font-size: 11px; }.hero { padding-top: 57px; }.hero h1 { font-size: clamp(43px, 13vw, 65px); }.hero-lede { font-size: 15px; }.hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }.preview-layout { grid-template-columns: 1fr; }.preview-sidebar, .preview-evidence { display: none; }.preview-main { padding: 19px 16px 16px; }.preview-chat { min-height: 265px; }.signal-strip { padding-right: 22px; padding-left: 22px; }.signal-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; white-space: normal; }.signal-item strong { grid-column: 2; margin: 0; }.workflow-rail { grid-template-columns: 1fr; }.workflow-step, .workflow-step + .workflow-step { min-height: auto; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }.workflow-step:last-child { border-bottom: 0; }.evidence-board { padding: 18px 14px; }.board-head { align-items: start; flex-direction: column; gap: 10px; }.board-footer { flex-wrap: wrap; }.board-time { width: 100%; margin-left: 0; }.workbench-notes { grid-template-columns: 1fr; gap: 18px; }.workbench-notes > div { padding-top: 12px; }.note-index { margin-bottom: 11px; }.cta-section { margin-top: 80px; padding-top: 64px; padding-bottom: 64px; }.site-footer { align-items: flex-start; flex-direction: column; gap: 9px; padding-top: 28px; padding-bottom: 28px; }.site-footer .brand-lockup { margin: 0 0 11px; }.workspace-shell { display: block; }.app-sidebar { position: static; width: 100%; min-height: auto; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line-strong); }.app-brand { display: flex; justify-content: space-between; padding: 0 2px 12px; }.workspace-switcher { max-width: 250px; margin: 0 0 11px; }.app-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; overflow-x: auto; }.app-nav-secondary, .app-nav-divider, .sidebar-bottom { display: none; }.app-nav-item { justify-content: center; flex-direction: column; gap: 2px; min-height: 48px; padding: 4px; text-align: center; font-size: 9px; white-space: nowrap; }.app-nav-item span { width: auto; font-size: 14px; }.app-topbar { height: 58px; padding: 0 17px; }.saved-state, .topbar-actions .icon-button { display: none; }.topbar-actions .button { min-height: 32px; font-size: 10px; }.app-content { padding: 28px 15px 52px; }.view-intro { align-items: start; flex-direction: column; gap: 17px; }.view-intro h1 { font-size: 31px; }.intro-actions { width: 100%; flex-wrap: wrap; }.overview-grid { grid-template-columns: 1fr; }.overview-grid .surface { min-height: 252px; }.release-summary { grid-column: auto; }.queue-panel, .activity-panel { padding: 17px; }.case-row { grid-template-columns: 59px 1fr; gap: 9px; }.case-arrow { display: none; }.field-row, .release-meta { grid-template-columns: 1fr; }.builder-form, .simulator, .release-card, .release-timeline, .eval-score, .eval-insight { padding: 17px; }.simulator { min-height: 520px; }.data-surface, .eval-table-surface { padding-right: 12px; padding-left: 12px; }.dialog { padding: 21px; }.dialog .field-row { display: block; }.dialog .field-row .field-label + .field-label { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

/* Adapted brand motion: a restrained signal field keeps the reference site's
   spatial feeling while the product surfaces remain readable and operational. */
html { scroll-behavior: auto; }
.hero { position: relative; isolation: isolate; overflow: clip; }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.hero-visual { transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease, border-color 260ms ease; }

.brand-field {
  position: absolute;
  z-index: 0;
  top: clamp(46px, 4vw, 84px);
  right: clamp(15px, 7vw, 150px);
  width: min(34vw, 405px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid oklch(0.43 0.12 185 / 0.14);
  border-radius: 50%;
  background: oklch(0.31 0.085 190 / 0.035);
  opacity: 0.82;
  pointer-events: auto;
  transform: translate3d(var(--pointer-dx, 0px), var(--pointer-dy, 0px), 0);
  transition: opacity 450ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1), border-color 450ms ease;
}
.brand-field.is-active { border-color: oklch(0.43 0.12 185 / 0.32); opacity: 0.98; }
.brand-field__grid, .brand-field__halo, .brand-field__orb, .brand-field__ring, .brand-field__signal, .brand-field__readout { position: absolute; display: block; pointer-events: none; }
.brand-field__grid { inset: 13%; border: 1px solid oklch(0.43 0.12 185 / 0.13); border-radius: 50%; background-image: linear-gradient(oklch(0.43 0.12 185 / 0.07) 1px, transparent 1px), linear-gradient(90deg, oklch(0.43 0.12 185 / 0.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle, #000 20%, transparent 70%); transform: rotate(18deg); }
.brand-field__halo { inset: 20%; border: 1px solid oklch(0.43 0.12 185 / 0.17); border-radius: 50%; box-shadow: 0 0 0 25px oklch(0.43 0.12 185 / 0.025), 0 0 0 52px oklch(0.43 0.12 185 / 0.018); }
.brand-field__orb { top: 50%; left: 50%; width: 126px; height: 126px; border: 1px solid oklch(0.87 0.06 178 / 0.48); border-radius: 50%; background: radial-gradient(circle at 31% 23%, oklch(0.98 0.015 180 / 0.95) 0 3%, transparent 14%), radial-gradient(circle at 68% 72%, oklch(0.36 0.12 275 / 0.56), transparent 38%), radial-gradient(circle at 46% 43%, oklch(0.56 0.15 185 / 0.82), oklch(0.23 0.1 205 / 0.98) 65%, oklch(0.11 0.05 215) 100%); box-shadow: 0 0 28px oklch(0.43 0.12 185 / 0.28), inset 8px 10px 14px oklch(0.98 0.015 180 / 0.18), inset -14px -16px 24px oklch(0.1 0.06 220 / 0.82); transform: translate3d(calc(-50% + var(--orb-dx, 0px)), calc(-50% + var(--orb-dy, 0px)), 0); transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1); }
.brand-field__orb span { position: absolute; inset: 13%; border: 1px solid oklch(0.87 0.06 178 / 0.34); border-top-color: oklch(1 0 0 / 0.82); border-radius: 50%; transform: rotate(-24deg); }
.brand-field__ring { top: 50%; left: 50%; border: 1px solid oklch(0.43 0.12 185 / 0.28); border-radius: 50%; transform: translate(-50%, -50%) rotate(-20deg); }
.brand-field__ring-one { width: 58%; height: 28%; animation: brand-field-orbit 10s linear infinite; }
.brand-field__ring-two { width: 38%; height: 75%; border-color: oklch(0.68 0.16 40 / 0.22); animation: brand-field-orbit-reverse 13s linear infinite; }
.brand-field__signal { height: 1px; background: oklch(0.43 0.12 185 / 0.42); transform-origin: left center; }
.brand-field__signal-one { top: 37%; right: 4%; width: 24%; transform: rotate(-21deg); }
.brand-field__signal-two { bottom: 27%; left: 3%; width: 19%; background: oklch(0.68 0.16 40 / 0.36); transform: rotate(18deg); }
.brand-field__readout { right: 11%; bottom: 18%; color: oklch(0.31 0.085 190 / 0.7); font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; }
@keyframes brand-field-orbit { to { transform: translate(-50%, -50%) rotate(340deg); } }
@keyframes brand-field-orbit-reverse { to { transform: translate(-50%, -50%) rotate(-380deg); } }

.brand-mark[data-brand-orb] { transform: perspective(140px) rotateX(var(--orb-tilt-x, 0deg)) rotateY(var(--orb-tilt-y, 0deg)); transform-origin: center; transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1); }
.brand-mark[data-brand-orb] span { box-shadow: 0 0 10px oklch(0.68 0.16 40 / 0.28); transition: box-shadow 260ms ease, transform 260ms ease; }

[data-polish-card] { position: relative; isolation: isolate; }
[data-polish-card]::after { position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), oklch(0.43 0.12 185 / 0.12), transparent 38%); content: ""; opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
[data-polish-card]:hover::after, [data-polish-card]:focus-within::after { opacity: 1; }
[data-polish-card]:hover { border-color: oklch(0.43 0.12 185 / 0.42); }
.hero-visual[data-polish-card]:hover { box-shadow: 0 30px 74px oklch(0.28 0.04 190 / 0.16); transform: translate3d(var(--pointer-dx, 0px), calc(10px + var(--pointer-dy, 0px)), 0) rotate(0.4deg); }
.surface[data-polish-card], .workflow-step[data-polish-card], .workbench-notes > div[data-polish-card] { transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease; }
.surface[data-polish-card]:hover, .surface[data-polish-card]:focus-within { box-shadow: 0 12px 34px oklch(0.28 0.04 190 / 0.09); }
.workflow-step[data-polish-card]:hover, .workbench-notes > div[data-polish-card]:hover { transform: translateY(-3px); }

[data-reveal] { transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms), transform 520ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms); }
.has-xinyun-interactions [data-reveal]:not(.is-revealed) { opacity: 0.72; transform: translateY(8px); }
.app-view.view-entering { animation: workspace-view-in 240ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes workspace-view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1160px) {
  .brand-field { top: 24px; right: 4%; width: min(315px, 43vw); opacity: 0.55; }
}
@media (max-width: 680px) {
  .brand-field { top: 27px; right: -70px; width: 270px; opacity: 0.4; }
  .brand-field__orb { width: 96px; height: 96px; }
  .brand-field__readout { display: none; }
  .hero-copy { z-index: 2; }
  .hero-visual[data-polish-card]:hover { transform: translateY(10px) rotate(0.4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-field__ring-one, .brand-field__ring-two { animation: none; }
  [data-reveal], .app-view.view-entering { transition: none; animation: none; }
  .has-xinyun-interactions [data-reveal]:not(.is-revealed) { opacity: 1; transform: none; }
}

/* Unified enterprise AI workspace */
.product-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 2px 15px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.product-switch-item { display: grid; grid-template-columns: 17px 1fr; grid-template-rows: auto auto; gap: 1px 6px; min-width: 0; padding: 8px 7px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); text-align: left; }
.product-switch-item > span { grid-row: span 2; align-self: center; color: var(--faint); font-size: 15px; text-align: center; }
.product-switch-item b { overflow: hidden; color: inherit; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.product-switch-item small { overflow: hidden; color: var(--faint); font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.product-switch-item:hover { background: var(--white); color: var(--teal); }
.product-switch-item.active { background: var(--teal); color: var(--white); box-shadow: 0 5px 14px oklch(0.43 0.12 185 / 0.18); }
.product-switch-item.active > span, .product-switch-item.active small { color: var(--teal-soft); }
.workspace-view[data-module="agents"] [data-open-api-key], .workspace-view[data-module="api"] [data-open-create] { display: none; }

.api-overview-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr); gap: 16px; margin-bottom: 16px; }
.api-status-surface, .api-key-surface, .api-usage-surface, .api-policy-surface { min-width: 0; padding: 21px; }
.api-status-surface, .api-key-surface { min-height: 255px; }
.api-status-surface .surface-description { max-width: 520px; margin-bottom: 20px; }
.api-endpoint-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 22px 0 17px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-family: var(--mono); font-size: 10px; }
.api-endpoint-row b { color: var(--teal-deep); }
.api-capability-list { display: flex; flex-wrap: wrap; gap: 9px 16px; color: var(--muted); font-size: 10px; }
.api-capability-list span { display: inline-flex; align-items: center; gap: 7px; }
.api-key-surface { display: flex; flex-direction: column; }
.api-key-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 63px; border-bottom: 1px solid var(--line); }
.api-key-row:last-child { border-bottom: 0; }
.api-key-row > div { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.api-key-row b { overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.api-key-row small { overflow: hidden; color: var(--faint); font-family: var(--mono); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.key-icon { display: inline-grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; background: var(--teal-soft); color: var(--teal); font-size: 16px; }
.muted-key .key-icon { background: var(--surface); color: var(--faint); }
.api-lower-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 16px; margin-bottom: 16px; }
.api-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 24px 0 20px; }
.api-metric-row div { display: flex; flex-direction: column; gap: 4px; }
.api-metric-row strong { color: var(--teal-deep); font-family: var(--mono); font-size: 22px; letter-spacing: -0.04em; }
.api-metric-row span { color: var(--faint); font-size: 10px; }
.api-bars { display: flex; align-items: end; gap: 8px; height: 80px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.api-bars i { flex: 1; min-height: 8px; border-radius: 4px 4px 0 0; background: var(--teal-soft); }
.api-bars i:nth-last-child(-n+2) { background: var(--teal); }
.api-policy-surface { min-height: 255px; }
.api-policy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 25px; }
.api-policy-list div { display: flex; flex-direction: column; gap: 4px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }
.api-policy-list span, .api-policy-list small { color: var(--faint); font-size: 9px; }
.api-policy-list b { color: var(--ink-soft); font-family: var(--mono); font-size: 11px; }
.api-next-step { display: flex; align-items: center; gap: 15px; padding: 18px 21px; border-color: oklch(0.43 0.12 185 / 0.28); background: oklch(0.96 0.025 178); }
.api-next-step > div:nth-child(2) { min-width: 0; flex: 1; }
.api-next-step h2 { margin: 0 0 5px; font-size: 15px; }
.api-next-step p { max-width: 760px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.next-step-mark { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--teal); color: var(--white); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.agent-type-badge { display: inline-flex; align-items: center; min-height: 22px; margin: 7px 0 9px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--teal-deep); font-size: 10px; font-weight: 700; }

@media (max-width: 900px) {
  .api-overview-grid, .api-lower-grid { grid-template-columns: 1fr; }
  .api-next-step { align-items: flex-start; flex-wrap: wrap; }
  .api-next-step > div:nth-child(2) { flex-basis: calc(100% - 48px); }
  .api-next-step .button { margin-left: 47px; }
}
@media (max-width: 680px) {
  .product-switcher { margin-right: 0; margin-left: 0; }
  .product-switch-item { padding: 8px 10px; }
  .api-status-surface, .api-key-surface, .api-usage-surface, .api-policy-surface { padding: 17px; }
  .api-metric-row { gap: 9px; }
  .api-metric-row strong { font-size: 17px; }
  .api-policy-list { gap: 7px; }
  .api-next-step { padding: 17px; }
}

/* Immersive enterprise AI hero. Three.js provides the scene; DOM remains the
   source of truth for labels, actions, and the product preview. */
.site-shell .site-header { position: absolute; top: 0; right: 0; left: 0; border-bottom-color: oklch(0.98 0 0 / 0.13); background: oklch(0.06 0.025 210 / 0.35); color: oklch(0.96 0.02 180); }
.site-shell .site-header .brand-lockup strong { color: oklch(0.98 0.02 180); }
.site-shell .site-header .brand-lockup small { color: oklch(0.75 0.04 180); }
.site-shell .site-header .site-nav { color: oklch(0.78 0.035 180); }
.site-shell .site-header .site-nav a:hover { color: oklch(0.74 0.15 185); }
.site-shell .site-header .button-quiet { color: oklch(0.84 0.035 180); }
.site-shell .site-header .button-quiet:hover { color: oklch(0.74 0.15 185); }
.hero--immersive { position: relative; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr); align-items: center; gap: clamp(45px, 7vw, 112px); width: 100%; max-width: none; min-height: min(960px, 100svh); margin: 0; padding-top: clamp(126px, 13vw, 172px); padding-bottom: clamp(64px, 8vw, 112px); overflow: hidden; isolation: isolate; background: #070e12; color: oklch(0.96 0.02 180); }
.hero--immersive::before { position: absolute; z-index: 1; inset: 0; background-image: linear-gradient(oklch(0.96 0.02 180 / 0.038) 1px, transparent 1px), linear-gradient(90deg, oklch(0.96 0.02 180 / 0.026) 1px, transparent 1px); background-size: 58px 58px; content: ""; opacity: 0.35; pointer-events: none; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.hero-canvas { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.hero-no-webgl .hero-canvas { display: none; }
.hero--immersive .brand-field { display: none; }
.hero--immersive .hero-copy, .hero--immersive .hero-visual { z-index: 2; }
.hero--immersive .hero-copy { max-width: 610px; }
.hero--immersive .eyebrow { color: oklch(0.75 0.15 185); }
.hero--immersive .eyebrow-dot { background: oklch(0.71 0.17 40); box-shadow: 0 0 0 4px oklch(0.71 0.17 40 / 0.14); }
.hero--immersive h1 { max-width: 670px; color: oklch(0.97 0.018 180); font-size: clamp(52px, 6vw, 88px); letter-spacing: -0.04em; line-height: 0.91; }
.hero--immersive h1 em { color: oklch(0.74 0.16 185); }
.hero--immersive .hero-lede { max-width: 520px; color: oklch(0.76 0.035 180); font-size: 16px; line-height: 1.72; }
.hero--immersive .hero-proof { gap: 8px; color: oklch(0.74 0.035 180); }
.hero--immersive .hero-proof span { min-height: 28px; padding: 5px 9px; border: 1px solid oklch(0.96 0.02 180 / 0.16); border-radius: 999px; background: oklch(0.06 0.025 210 / 0.58); }
.hero--immersive .hero-actions { margin-bottom: 24px; }
.hero--immersive .button-primary { background: oklch(0.72 0.16 185); color: oklch(0.1 0.04 205); box-shadow: 0 10px 30px oklch(0.72 0.16 185 / 0.24); }
.hero--immersive .button-primary:hover { background: oklch(0.8 0.15 185); box-shadow: 0 14px 36px oklch(0.72 0.16 185 / 0.36); }
.hero--immersive .text-button { color: oklch(0.76 0.12 40); }
.hero--immersive .text-button:hover { color: oklch(0.86 0.14 40); }
.hero-scene-meta { position: absolute; z-index: 2; top: 104px; right: clamp(22px, 5vw, 74px); left: clamp(22px, 5vw, 74px); display: flex; justify-content: space-between; color: oklch(0.68 0.035 180); font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; pointer-events: none; }
.hero-scene-meta span:last-child { display: inline-flex; align-items: center; gap: 8px; }
.hero-module-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-width: 560px; margin-top: 34px; }
.hero-module-card { position: relative; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 68px; padding: 10px 13px; border: 1px solid oklch(0.96 0.02 180 / 0.15); border-radius: 8px; background: oklch(0.12 0.035 205 / 0.42); color: oklch(0.82 0.035 180); text-align: left; transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, color 200ms ease; }
.hero-module-card:hover, .hero-module-card:focus-visible { border-color: oklch(0.73 0.15 185 / 0.7); background: oklch(0.18 0.05 200 / 0.64); color: oklch(0.98 0.02 180); outline: none; transform: translateY(-2px); }
.hero-module-card.is-active { border-color: oklch(0.73 0.15 185 / 0.72); background: oklch(0.18 0.065 200 / 0.7); color: oklch(0.98 0.02 180); box-shadow: inset 0 0 0 1px oklch(0.73 0.15 185 / 0.1), 0 12px 36px oklch(0.02 0.03 210 / 0.25); }
.hero-module-card:nth-child(2).is-active { border-color: oklch(0.72 0.16 40 / 0.74); background: oklch(0.18 0.05 28 / 0.68); }
.hero-module-index { align-self: start; padding-top: 2px; color: oklch(0.72 0.16 40); font-family: var(--mono); font-size: 9px; font-weight: 700; }
.hero-module-card span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.hero-module-card b { overflow: hidden; color: inherit; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hero-module-card small { overflow: hidden; color: oklch(0.64 0.035 180); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.hero-module-card i { color: oklch(0.73 0.15 185); font-size: 17px; font-style: normal; }
.hero-module-card:nth-child(2) i { color: oklch(0.76 0.16 40); }
.hero--immersive .hero-visual { align-self: end; border-color: oklch(0.88 0.04 180 / 0.3); background: oklch(0.92 0.025 180 / 0.9); box-shadow: 0 28px 90px oklch(0.01 0.02 210 / 0.42), 0 0 0 1px oklch(0.98 0 0 / 0.06); transform: translateY(6px) rotate(0.5deg); }
.hero--immersive .hero-visual::after { border-color: oklch(0.74 0.15 185 / 0.26); }

@media (max-width: 1160px) {
  .hero--immersive { grid-template-columns: 1fr; min-height: 1020px; gap: 52px; padding-top: 154px; }
  .hero--immersive .hero-copy { max-width: 760px; }
  .hero--immersive .hero-visual { width: min(100%, 820px); }
}
@media (max-width: 680px) {
  .site-shell .site-header { min-height: 68px; background: oklch(0.06 0.025 210 / 0.72); }
  .hero--immersive { min-height: 930px; gap: 37px; padding-top: 126px; padding-right: 22px; padding-left: 22px; }
  .hero--immersive h1 { max-width: 350px; font-size: clamp(48px, 14vw, 65px); line-height: 0.93; }
  .hero--immersive .hero-lede { font-size: 14px; }
  .hero-scene-meta { top: 88px; right: 22px; left: 22px; font-size: 7px; }
  .hero-scene-meta span:first-child { display: none; }
  .hero-module-rail { grid-template-columns: 1fr; max-width: 360px; margin-top: 26px; }
  .hero-module-card { min-height: 58px; }
  .hero--immersive .hero-visual { transform: translateY(4px) rotate(0.3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-module-card { transition: none; }
}

/* Scroll narrative: the scene stays in place while the message moves through
   governance, training, and release. */
.site-shell { overflow: clip; }
.hero-scroll-story { display: block; min-height: 300vh; max-width: none; margin: 0; padding: 0; overflow: visible; background: #070e12; }
.hero-scroll-story::before { display: none; }
.hero-stage { position: sticky; top: 0; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr); align-items: center; gap: clamp(45px, 7vw, 112px); height: 100vh; min-height: 0; padding: clamp(126px, 13vw, 172px) clamp(22px, 5vw, 74px) clamp(64px, 8vw, 112px); overflow: hidden; isolation: isolate; background: #070e12; color: oklch(0.96 0.02 180); }
.hero-stage::before { position: absolute; z-index: 1; inset: 0; background-image: linear-gradient(oklch(0.96 0.02 180 / 0.038) 1px, transparent 1px), linear-gradient(90deg, oklch(0.96 0.02 180 / 0.026) 1px, transparent 1px); background-size: 58px 58px; content: ""; opacity: 0.35; pointer-events: none; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.hero-stage > .hero-copy, .hero-stage > .hero-visual { z-index: 2; }
.hero-story-content { display: grid; min-height: 290px; }
.hero-story-step { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translate3d(0, 34px, 0); pointer-events: none; will-change: transform, opacity; transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), transform 360ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 360ms; }
.hero-story-step.is-before { transform: translate3d(0, -34px, 0); }
.hero-story-step.is-after { transform: translate3d(0, 34px, 0); }
.hero-story-step.is-active { visibility: visible; opacity: 1; transform: translate3d(0, 0, 0); pointer-events: auto; transition-delay: 0s; }
.hero-story-step > .eyebrow,
.hero-story-step > .hero-story-title,
.hero-story-step > .hero-lede {
  transition: transform 90ms linear;
}
.hero-story-step > .eyebrow { transform: translate3d(0, calc(var(--story-step-progress, 0) * -5px), 0); }
.hero-story-step > .hero-story-title { transform: translate3d(0, calc(var(--story-step-progress, 0) * -12px), 0); }
.hero-story-step > .hero-lede { transform: translate3d(0, calc(var(--story-step-progress, 0) * -8px), 0); }
.hero-copy > .hero-actions,
.hero-copy > .hero-proof,
.hero-copy > .hero-module-rail,
.hero-copy > .hero-story-progress {
  transform: translate3d(0, var(--story-content-shift, 0px), 0);
  transition: transform 120ms linear;
}
.hero--immersive .hero-story-title { max-width: 670px; margin: 0 0 23px; color: oklch(0.97 0.018 180); font-size: clamp(52px, 6vw, 88px); letter-spacing: -0.04em; line-height: 0.91; }
.hero--immersive .hero-story-title em { color: oklch(0.74 0.16 185); font-style: normal; }
.hero-story-progress { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: oklch(0.55 0.035 180); font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; }
.hero-story-progress > span:not(.hero-story-progress-line) { transition: color 220ms ease; }
.hero-story-progress > span.is-active { color: oklch(0.86 0.07 180); }
.hero-story-progress-line { position: relative; display: block; width: 44px; height: 1px; background: oklch(0.96 0.02 180 / 0.18); }
.hero-story-progress-line i { position: absolute; top: -1px; left: 0; display: block; width: 15px; height: 3px; background: oklch(0.72 0.16 185); transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1); }

/* The preview is part of the same system surface now, so its chrome echoes
   the dark workspace instead of reading as a separate white product shot. */
.hero--immersive .hero-visual { border-color: oklch(0.96 0.02 180 / 0.22); background: oklch(0.105 0.025 210 / 0.96); box-shadow: 0 28px 90px oklch(0.01 0.02 210 / 0.58), 0 0 0 1px oklch(0.98 0 0 / 0.05); }
.hero--immersive .preview-topbar { border-bottom-color: oklch(0.96 0.02 180 / 0.12); background: oklch(0.13 0.035 210 / 0.96); color: oklch(0.63 0.035 180); }
.hero--immersive .preview-sidebar { border-right-color: oklch(0.96 0.02 180 / 0.1); background: oklch(0.12 0.04 205); color: oklch(0.69 0.035 180); }
.hero--immersive .preview-side-label, .hero--immersive .preview-kicker, .hero--immersive .preview-chat-label { color: oklch(0.57 0.035 180); }
.hero--immersive .preview-project { border-color: oklch(0.96 0.02 180 / 0.16); background: oklch(0.17 0.045 205); color: oklch(0.91 0.025 180); }
.hero--immersive .preview-nav-item.active { background: oklch(0.43 0.12 185); color: oklch(0.97 0.018 180); }
.hero--immersive .preview-sidebar-foot { border-top-color: oklch(0.96 0.02 180 / 0.12); }
.hero--immersive .preview-main { background: oklch(0.105 0.025 210); }
.hero--immersive .preview-main h2 { color: oklch(0.94 0.025 180); }
.hero--immersive .version-chip { border-color: oklch(0.96 0.02 180 / 0.16); background: oklch(0.15 0.04 205); color: oklch(0.76 0.035 180); }
.hero--immersive .preview-chat-label span { color: oklch(0.72 0.16 185); }
.hero--immersive .preview-chat { border-color: oklch(0.96 0.02 180 / 0.13); background: oklch(0.075 0.025 210); }
.hero--immersive .chat-row small { color: oklch(0.57 0.035 180); }
.hero--immersive .chat-row p { color: oklch(0.84 0.025 180); }
.hero--immersive .chat-user p { color: oklch(0.94 0.025 180); }
.hero--immersive .source-tag { background: oklch(0.23 0.07 185); color: oklch(0.82 0.1 180); }
.hero--immersive .source-tag b { color: oklch(0.82 0.14 185); }
.hero--immersive .preview-input { border-color: oklch(0.96 0.02 180 / 0.18); color: oklch(0.58 0.035 180); }
.hero--immersive .preview-evidence { border-left-color: oklch(0.96 0.02 180 / 0.1); background: oklch(0.13 0.035 210); }
.hero--immersive .evidence-head, .hero--immersive .evidence-line { color: oklch(0.7 0.035 180); }
.hero--immersive .evidence-count, .hero--immersive .evidence-line b { color: oklch(0.8 0.1 180); }
.hero--immersive .evidence-score strong { color: oklch(0.84 0.12 180); }
.hero--immersive .evidence-score span, .hero--immersive .evidence-score small { color: oklch(0.58 0.035 180); }
.hero--immersive .mini-meter, .hero--immersive .evidence-divider { background: oklch(0.96 0.02 180 / 0.14); }
.hero--immersive .evidence-note { color: oklch(0.7 0.035 180); }
.hero--immersive .evidence-note b { color: oklch(0.83 0.11 180); }

/* Workspace theme tokens. Existing components inherit these tokens, keeping
   the dense product UI consistent without duplicating every component rule. */
.workspace-view { --ink: oklch(0.93 0.02 180); --ink-soft: oklch(0.82 0.03 180); --muted: oklch(0.68 0.035 180); --faint: oklch(0.53 0.035 180); --bg: oklch(0.07 0.025 210); --surface: oklch(0.12 0.035 210); --surface-strong: oklch(0.17 0.045 205); --line: oklch(0.96 0.02 180 / 0.11); --line-strong: oklch(0.96 0.02 180 / 0.2); --teal: oklch(0.72 0.16 185); --teal-deep: oklch(0.82 0.1 180); --teal-soft: oklch(0.25 0.07 185); --coral: oklch(0.76 0.14 40); --coral-soft: oklch(0.26 0.07 40); --amber: oklch(0.82 0.14 84); --green: oklch(0.72 0.13 151); --white: oklch(0.94 0.02 180); --shadow: 0 24px 64px oklch(0.01 0.02 210 / 0.4); --shadow-soft: 0 12px 36px oklch(0.01 0.02 210 / 0.3); background: var(--bg); color: var(--ink); }
.workspace-view .app-sidebar { background: oklch(0.085 0.03 210); border-color: var(--line-strong); }
.workspace-view .app-topbar { border-color: var(--line-strong); background: oklch(0.08 0.03 210 / 0.9); }
.workspace-view .surface, .workspace-view .data-surface, .workspace-view .eval-table-surface, .workspace-view .release-card, .workspace-view .release-timeline, .workspace-view .builder-form, .workspace-view .simulator, .workspace-view .eval-score, .workspace-view .eval-insight, .workspace-view .api-status-surface, .workspace-view .api-key-surface, .workspace-view .api-usage-surface, .workspace-view .api-policy-surface { border-color: var(--line-strong); background: var(--surface); box-shadow: 0 8px 28px oklch(0.01 0.02 210 / 0.22); }
.workspace-view .workspace-switcher, .workspace-view .product-switcher { border-color: var(--line); background: oklch(0.12 0.035 210); }
.workspace-view .product-switch-item:hover { background: oklch(0.18 0.045 205); color: var(--teal); }
.workspace-view .app-nav-item:hover { background: oklch(0.16 0.04 205); color: var(--teal); }
.workspace-view .app-nav-item.active, .workspace-view .product-switch-item.active { background: oklch(0.43 0.12 185); color: oklch(0.98 0.02 180); }
.workspace-view .button-secondary { border-color: var(--line-strong); background: oklch(0.13 0.035 210); color: var(--ink-soft); }
.workspace-view .button-secondary:hover { background: oklch(0.18 0.045 205); color: var(--teal); }
.workspace-view .text-input, .workspace-view .text-area, .workspace-view .simulator-input input { border-color: var(--line-strong); background: oklch(0.085 0.025 210); color: var(--ink); }
.workspace-view .text-input::placeholder, .workspace-view .text-area::placeholder, .workspace-view .simulator-input input::placeholder { color: var(--faint); }
.workspace-view .simulator-note, .workspace-view .simulator-chat, .workspace-view .api-endpoint-row, .workspace-view .insight-source, .workspace-view .api-policy-list div, .workspace-view .attached-list > div, .workspace-view .release-meta div { border-color: var(--line); background: oklch(0.085 0.025 210); }
.workspace-view .simulator-chat .chat-row p, .workspace-view .case-row b, .workspace-view .data-name b, .workspace-view .release-meta b, .workspace-view .timeline-item b { color: var(--ink-soft); }
.workspace-view .api-next-step { border-color: oklch(0.72 0.16 185 / 0.34); background: oklch(0.14 0.045 185); }
.workspace-view .progress-track, .workspace-view .mini-meter { background: oklch(0.96 0.02 180 / 0.14); }
.workspace-view .toast, body:has(.workspace-view:not([hidden])) .dialog { border-color: var(--line-strong); background: oklch(0.12 0.035 210); color: var(--ink-soft); }

@media (max-width: 1160px) {
  .hero-stage { grid-template-columns: 1fr; height: 100vh; min-height: 0; gap: 52px; padding-top: 154px; }
  .hero-stage > .hero-copy { max-width: 760px; }
  .hero-stage > .hero-visual { width: min(100%, 820px); }
}
@media (max-width: 680px) {
  .hero-scroll-story { min-height: 270vh; }
  .hero-stage { display: block; height: 100vh; min-height: 0; padding: 126px 22px 64px; }
  .hero-stage > .hero-copy { position: relative; max-width: none; }
  .hero--immersive .hero-story-title { max-width: 350px; font-size: clamp(48px, 14vw, 65px); line-height: 0.93; }
  .hero-story-content { min-height: 300px; }
  .hero--immersive .hero-lede { padding: 6px 8px; border: 1px solid oklch(0.96 0.02 180 / 0.12); border-radius: 7px; background: oklch(0.06 0.025 210 / 0.46); color: oklch(0.82 0.035 180); font-size: 14px; }
  .hero-story-progress { flex-wrap: wrap; gap: 9px 12px; margin-top: 22px; font-size: 8px; }
  .hero-story-progress-line { width: 34px; }
  .hero-stage > .hero-visual { position: absolute; top: calc(100vh - 16px); right: 22px; bottom: auto; left: 22px; width: auto; transform: rotate(0.3deg); }
  .workspace-view .app-sidebar { background: oklch(0.085 0.03 210); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-story-step, .hero-story-progress > span, .hero-story-progress-line i { transition: none; }
}

/* Keep landing navigation available during the scroll story, then return it
   to the document surface once the dark Hero has released. */
.has-xinyun-interactions .site-shell .site-header { position: fixed; transition: background 260ms ease, border-color 260ms ease, color 260ms ease; }
.site-shell[data-story-zone="document"] .site-header { border-bottom-color: oklch(0.9 0.018 180 / 0.75); background: oklch(1 0 0 / 0.94); color: var(--ink); }
.site-shell[data-story-zone="document"] .site-header .brand-lockup strong { color: var(--ink); }
.site-shell[data-story-zone="document"] .site-header .brand-lockup small { color: var(--faint); }
.site-shell[data-story-zone="document"] .site-header .site-nav { color: var(--muted); }
.site-shell[data-story-zone="document"] .site-header .site-nav a:hover { color: var(--teal); }
.site-shell[data-story-zone="document"] .site-header .button-quiet { color: var(--muted); }
.site-shell[data-story-zone="document"] .site-header .button-quiet:hover { color: var(--teal); }

/* The Hero hands its dark system map into the document with a deliberate
   curved surface, instead of a hard white strip appearing at the fold. */
.site-shell .signal-strip { position: relative; z-index: 0; max-width: none; border: 0; background: #070e12; color: oklch(0.78 0.035 180); }
.site-shell .signal-strip .signal-item { color: oklch(0.68 0.035 180); }
.site-shell .signal-strip .signal-item strong { color: oklch(0.9 0.025 180); }
.site-shell .signal-strip .signal-index { border-color: oklch(0.96 0.02 180 / 0.28); color: oklch(0.72 0.12 185); }
.site-shell .signal-strip .signal-line { background: oklch(0.96 0.02 180 / 0.2); }
.site-shell .workflow-section { position: relative; z-index: 1; max-width: none; margin-top: -48px; padding-top: 104px; border-radius: 48px 48px 0 0; background: var(--bg); }

@media (max-width: 680px) {
  .site-shell .workflow-section { margin-top: -30px; padding-top: 76px; border-radius: 30px 30px 0 0; }
}

/* Landing theme: keep the public surface continuous with the dark system scene. */
.site-shell {
  --ink: oklch(0.93 0.02 180);
  --ink-soft: oklch(0.82 0.03 180);
  --muted: oklch(0.68 0.035 180);
  --faint: oklch(0.54 0.035 180);
  --bg: oklch(0.07 0.025 210);
  --surface: oklch(0.12 0.035 210);
  --surface-strong: oklch(0.17 0.045 205);
  --line: oklch(0.96 0.02 180 / 0.11);
  --line-strong: oklch(0.96 0.02 180 / 0.2);
  --teal: oklch(0.74 0.14 185);
  --teal-deep: oklch(0.4 0.1 190);
  --teal-soft: oklch(0.27 0.065 185);
  --coral: oklch(0.76 0.14 40);
  --coral-soft: oklch(0.27 0.07 40);
  --amber: oklch(0.82 0.14 84);
  --green: oklch(0.72 0.13 151);
  --white: oklch(0.96 0.02 180);
  --shadow: 0 24px 64px oklch(0.01 0.02 210 / 0.45);
  --shadow-soft: 0 12px 36px oklch(0.01 0.02 210 / 0.3);
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

body:has(.site-shell) { background: oklch(0.07 0.025 210); }
.site-shell main { background: transparent; }
.site-shell .site-header {
  border-bottom-color: var(--line);
  background: oklch(0.07 0.025 210 / 0.9);
  color: var(--ink-soft);
}
.site-shell .site-header .brand-lockup strong { color: var(--ink); }
.site-shell .site-header .brand-lockup small { color: var(--faint); }
.site-shell .site-header .site-nav { color: var(--muted); }
.site-shell .site-header .button-quiet { color: var(--ink-soft); }
.site-shell .site-header .button-quiet:hover,
.site-shell .site-header .site-nav a:hover { color: var(--teal); }
.site-shell .button-primary { background: var(--teal-deep); color: var(--white); box-shadow: 0 10px 24px oklch(0.01 0.02 210 / 0.28); }
.site-shell .button-primary:hover { background: oklch(0.47 0.11 190); box-shadow: 0 12px 28px oklch(0.01 0.02 210 / 0.36); }
.site-shell .button-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink-soft); }
.site-shell .button-secondary:hover { border-color: var(--teal); background: var(--surface-strong); color: var(--teal); }
.site-shell .button-light { background: var(--white); color: var(--teal-deep); }
.site-shell .button-light:hover { background: oklch(0.88 0.045 180); color: oklch(0.25 0.045 190); }
.site-shell .icon-button:hover { border-color: var(--line); background: var(--surface); }

.site-shell[data-story-zone="document"] .site-header {
  border-bottom-color: var(--line);
  background: oklch(0.07 0.025 210 / 0.94);
  color: var(--ink);
}
.site-shell[data-story-zone="document"] .site-header .brand-lockup strong { color: var(--ink); }
.site-shell[data-story-zone="document"] .site-header .brand-lockup small { color: var(--faint); }
.site-shell[data-story-zone="document"] .site-header .site-nav { color: var(--muted); }
.site-shell[data-story-zone="document"] .site-header .button-quiet { color: var(--ink-soft); }

.site-shell .signal-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}
.site-shell .signal-strip .signal-item { color: var(--muted); }
.site-shell .signal-strip .signal-item strong { color: var(--ink); }
.site-shell .signal-strip .signal-index { border-color: var(--line-strong); color: var(--teal); }
.site-shell .signal-strip .signal-line { background: var(--line-strong); }

.site-shell .workflow-section {
  background: oklch(0.085 0.03 210);
  box-shadow: 0 -14px 36px oklch(0.01 0.02 210 / 0.24);
}
.site-shell .workflow-section .section-intro,
.site-shell .workflow-section .workflow-step p { color: var(--muted); }
.site-shell .workflow-section .workflow-rail { border-color: var(--line-strong); }
.site-shell .workflow-section .workflow-step { border-color: var(--line); }
.site-shell .workflow-section .workflow-step-active { color: var(--teal); }
.site-shell .workflow-section .step-arrow { color: var(--faint); }
.site-shell .workflow-section .workflow-step-active .step-arrow { color: var(--coral); }

.site-shell .evidence-section,
.site-shell .workbench-section { background: var(--bg); }
.site-shell .evidence-copy p:not(.section-label),
.site-shell .workbench-notes small { color: var(--muted); }
.site-shell .evidence-board {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.site-shell .board-head h3,
.site-shell .workbench-notes p { color: var(--ink); }
.site-shell .board-kicker,
.site-shell .chart-axis,
.site-shell .board-footer { color: var(--faint); }
.site-shell .chart-grid-line { background: var(--line-strong); }
.site-shell .bar-group small { color: var(--muted); }
.site-shell .legend-muted { background: var(--line-strong); }
.site-shell .workbench-notes > div { border-top-color: var(--line-strong); }
.site-shell .text-button { color: var(--teal); }
.site-shell .text-button:hover { color: var(--coral); }

.site-shell .cta-section {
  border-top: 1px solid oklch(0.96 0.02 180 / 0.08);
  background: oklch(0.19 0.065 190);
  color: var(--white);
}
.site-shell .cta-section .section-label-light { color: oklch(0.82 0.09 180); }
.site-shell .cta-section h2 { color: var(--white); }
.site-shell .site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--faint);
}
.site-shell .site-footer .brand-lockup strong { color: var(--ink-soft); }
.site-shell .site-footer .brand-lockup small { color: var(--faint); }

/* The system map is a fixed visual layer; every landing section scrolls across it. */
.hero-scroll-story,
.hero-stage { background: transparent; }
.hero-canvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  transition: opacity 280ms ease;
}
.site-shell .signal-strip { background: oklch(0.07 0.025 210 / 0.86); }
.site-shell .workflow-section { background: oklch(0.085 0.03 210 / 0.9); }
.site-shell .evidence-section,
.site-shell .workbench-section { background: oklch(0.07 0.025 210 / 0.86); }
.site-shell .cta-section { background: oklch(0.19 0.065 190 / 0.94); }
.site-shell .site-footer { background: oklch(0.07 0.025 210 / 0.92); }

@media (prefers-reduced-motion: reduce) {
  .hero-story-step,
  .hero-story-step > .eyebrow,
  .hero-story-step > .hero-story-title,
  .hero-story-step > .hero-lede,
  .hero-copy > .hero-actions,
  .hero-copy > .hero-proof,
  .hero-copy > .hero-module-rail,
  .hero-copy > .hero-story-progress { will-change: auto; transition: none; transform: none; }
  .hero-canvas { transition: none; }
}

@media (max-width: 680px) {
  .site-shell .site-header { background: oklch(0.07 0.025 210 / 0.9); }
}
