:root {
  color-scheme: dark;
  --ground: #080a0f;
  --surface: #11151e;
  --raised: #1b2333;
  --ink: #f2f4fa;
  --muted: #b6bed0;
  --accent: #3655f2;
  --light-blue: #b4c2ff;
  font: 16px/1.65 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--ground);
  color: var(--ink);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button, select, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--light-blue); outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: 16px; translate: 0 -200%; padding: 10px; background: var(--surface); z-index: 2; }
.skip:focus { translate: 0; }
.wrap { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar { min-height: 82px; }
.topbar nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
.topbar a:hover, .footer a:hover { color: var(--light-blue); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 650; }
.bot-hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(40px, 6vw, 100px); padding-block: 85px 92px; }
.product-name { margin: 0 0 14px; font-size: 22px; color: var(--light-blue); }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(37px, 5vw, 73px); line-height: 1.16; letter-spacing: -.052em; font-weight: 550; }
.intro { color: var(--muted); font-size: 18px; max-width: 32em; margin-block: 24px 30px; }
.primary, .actions button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px; padding: 10px 19px; border: 0; background: var(--raised); color: var(--ink); }
.primary, .actions .primary { background: var(--accent); color: white; }
.primary:hover, .actions .primary:hover { background: #4563fa; }
.actions button:not(.primary):hover { background: #27324a; }
button:disabled, select:disabled { cursor: default; opacity: .7; }
.workflow { background: var(--surface); padding: 38px 26px; text-align: center; }
.flow-node { padding: 14px 16px; width: max-content; max-width: 100%; margin-inline: auto; background: var(--raised); font-weight: 550; }
.flow-goal { background: var(--accent); color: white; }
.flow-result { background: var(--ink); color: var(--ground); }
.workflow svg { width: 100%; height: 43px; display: block; fill: none; stroke: #778bcc; stroke-width: 1.4; }
.flow-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.flow-roles span { padding: 14px 4px; background: var(--raised); font-size: 14px; }
.demo-section { padding-bottom: 68px; scroll-margin-top: 28px; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
h2 { font-size: clamp(29px, 3.7vw, 49px); line-height: 1.2; font-weight: 550; letter-spacing: -.04em; }
.section-intro p { color: var(--muted); max-width: 29em; }
.console { background: var(--surface); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; gap: 2px; background: var(--ground); }
.progress li { padding: 14px 9px; background: var(--raised); color: var(--muted); text-align: center; }
.progress [aria-current="step"] { background: var(--ink); color: var(--ground); font-weight: 650; }
.progress .done { color: var(--light-blue); }
.goal-form, .execution, .delivery { padding: 28px clamp(20px, 4vw, 48px); }
.goal-form label { display: block; margin-bottom: 8px; font-weight: 550; }
.goal-form select { width: min(100%, 430px); min-height: 48px; border: 1px solid #4a5571; padding: 8px 12px; background: var(--raised); color: var(--ink); }
.goal-preview { margin-block: 19px; padding: 13px 16px; background: var(--raised); }
.goal-preview span, .demo-note, .status, .handoff, .agent-state { color: var(--muted); font-size: 14px; }
.goal-preview p { margin-top: 3px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.demo-note { margin-top: 12px; }
.execution, .delivery { scroll-margin-top: 20px; }
.execution-heading, .task-progress { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.execution-heading { margin-bottom: 12px; }
.execution .execution-heading h3 { margin-bottom: 0; }
.secondary { border: 0; padding: 8px 12px; min-height: 42px; color: var(--ink); background: var(--raised); white-space: nowrap; }
.secondary:hover { background: #27324a; }
.task-progress { margin-bottom: 14px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.task-progress progress { flex: 1; min-width: 0; height: 7px; accent-color: var(--light-blue); }
.result-link { display: inline-flex; gap: 14px; align-items: center; min-height: 44px; margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--light-blue); }
.result-link:hover { text-decoration: underline; }
.execution h3, .delivery h3 { font-size: 23px; margin-bottom: 14px; }
.agents { display: grid; gap: 6px; }
.agents details { background: var(--raised); }
.agents summary { padding: 11px 16px; }
.agent-state { margin-inline-start: 12px; }
.agents p { padding: 0 16px 13px; color: var(--muted); }
.agents .agent-output { color: var(--ink); }
.delivery { background: #1a2440; }
.delivery ul { padding-left: 1.3em; margin-block: 14px; }
.delivery li + li { margin-top: 6px; }
.delivery .actions { margin-top: 20px; }
.status { padding: 11px clamp(20px, 4vw, 48px); background: #0d1017; }
.footer { padding-block: 24px 38px; color: var(--muted); font-size: 14px; }
@media (min-width: 901px) {
  .console.has-run { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); align-items: start; }
  .console.has-run > .progress, .console.has-run > .status { grid-column: 1 / -1; }
  .console.has-run .goal-form { padding-right: 20px; }
  .console.has-run .execution, .console.has-run .delivery { padding-inline: 30px; }
  .console.has-run #workstream { background: #141a27; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .bot-hero { gap: 28px; padding-block: 60px; }
  .workflow { padding-inline: 16px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px); }
  .topbar { min-height: 65px; }
  .topbar nav { gap: 14px; }
  .bot-hero { grid-template-columns: 1fr; padding-block: 43px 54px; gap: 30px; }
  .intro { margin-block: 18px 22px; font-size: 16px; }
  .workflow { padding-block: 22px 17px; }
  .workflow svg { height: 28px; }
  .section-intro { display: block; }
  .section-intro p { margin-top: 10px; }
  .progress li { font-size: 14px; }
}
@keyframes arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .product-name, .bot-hero h1, .intro, .bot-hero .primary, .workflow > *, .flow-roles span, .delivery {
    animation: arrive 420ms ease-out both;
  }
  .bot-hero h1, .workflow svg:first-of-type { animation-delay: 60ms; }
  .intro, .flow-roles span { animation-delay: 120ms; }
  .flow-roles span:nth-child(2) { animation-delay: 165ms; }
  .flow-roles span:nth-child(3) { animation-delay: 210ms; }
  .bot-hero .primary, .workflow svg:last-of-type { animation-delay: 220ms; }
  .flow-result { animation-delay: 290ms; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

.footer { flex-wrap: wrap; gap: 10px 24px; }
#main { position: relative; isolation: isolate; }
.bot-ambient {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: min(88vw, 1140px);
  fill: none;
  stroke: #758aff;
  stroke-width: 1.35;
  opacity: .34;
  pointer-events: none;
}
@keyframes bot-field-drift {
  0%, 100% { transform: translate3d(0, -8px, 0); }
  50% { transform: translate3d(0, 13px, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .bot-ambient { animation: bot-field-drift 8s ease-in-out infinite; }
  .bot-hero h1, .delivery { animation-duration: 560ms; }
}