@font-face {
  font-family: Inter;
  src: url("inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fbf7ef;
  --surface: #f2ebde;
  --layer: #eee5d5;
  --line: #d8cdb9;
  --ink: #192820;
  --muted: #4e5a51;
  --subtle: #566258;
  --green: #265c43;
  --accent: #a93920;
  --orange: #ff784e;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font: 16px/1.55 Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
button[hidden], .starter-handoff[hidden] { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p, h1, h2, h3, pre, figure { margin: 0; }
code { font-family: var(--mono); }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.nav-inner, .footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; font-size: 1.15rem; font-weight: 750; white-space: nowrap; }
.domain { color: var(--subtle); font-weight: 500; }
.brand-icon { display: inline-block; position: relative; width: 22px; height: 22px; border: 2px solid var(--accent); border-radius: 50%; margin-right: 8px; }
.brand-icon::after { content: ""; position: absolute; left: 7px; bottom: 7px; width: 7px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); border-radius: 0 0 0 2px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; color: var(--muted); font-size: .875rem; font-weight: 550; }
nav a:hover, nav a:focus-visible { color: var(--ink); }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 15px; gap: 8px; border: 1px solid transparent; border-radius: 7px; font-size: .875rem; font-weight: 680; line-height: 1.35; text-align: center; }
.button-outline { color: var(--ink); border-color: var(--line); background: transparent; }
.button-outline:hover { background: var(--layer); border-color: var(--subtle); }
.button-primary { color: #28160d; background: var(--orange); }
.button-primary:hover { background: #ff8f6c; }
.console-entry { display: flex; align-items: center; gap: 10px; }
.console-link { min-height: 38px; white-space: nowrap; }
.access-note { color: var(--subtle); font-size: .75rem; line-height: 1.3; white-space: nowrap; }

.hero-body { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: clamp(32px, 5vw, 76px); padding-block: clamp(48px, 7vw, 98px); }
.hero-copy { min-width: 0; padding-bottom: 6px; }
.hero h1 { max-width: 11ch; font-size: clamp(2.9rem, 5.65vw, 5.35rem); font-weight: 780; letter-spacing: -.075em; line-height: .98; }
.hero h1 em { display: block; margin-top: .06em; color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.065em; }
.hero-detail { margin-top: 25px; max-width: 36ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.13rem); }
.actions { display: flex; align-items: center; gap: 12px 19px; flex-wrap: wrap; margin-top: 26px; }
.actions .button { min-height: 46px; padding-inline: 17px; }
.actions .text-link { color: var(--ink); }

.section { padding-block: 66px; }
.section-heading { margin-bottom: 23px; }
h2 { margin-bottom: 11px; font-size: clamp(1.85rem, 3.1vw, 2.5rem); line-height: 1.12; letter-spacing: -.044em; font-weight: 740; }
h3 { font-size: 1.08rem; line-height: 1.3; }
.section-heading > p, .quickstart-layout p, .atlas-copy > p, .guide-grid p, .closing p { color: var(--muted); max-width: 66ch; }
.section-band { background: var(--surface); border-block: 1px solid var(--line); }
.workbench, .code-window {
  color-scheme: dark;
  --work-bg: #15271f;
  --work-layer: #1e3228;
  --work-line: #3c5348;
  --work-ink: #f3f2e8;
  --work-muted: #bcd0c3;
  --work-green: #bbe7a9;
  --work-amber: #ffb278;
  background: var(--work-bg);
  color: var(--work-ink);
  border: 1px solid var(--work-line);
  border-radius: 12px;
  min-width: 0;
}
.workbench { scroll-margin-top: 16px; }
.workbench :focus-visible, .code-window :focus-visible { outline-color: var(--work-green); outline-offset: 2px; }
.workbench-bar { min-height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline: 19px; background: var(--work-layer); border-bottom: 1px solid var(--work-line); border-radius: 11px 11px 0 0; }
.file-label { margin: 0; font-size: 1rem; font-weight: 690; letter-spacing: -.025em; }
.signal { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--work-green); }
.badge { display: inline-flex; align-items: center; gap: 6px; color: var(--work-muted); font: .69rem/1.3 var(--mono); }
.demo-controls { display: flex; align-items: end; gap: 10px; padding: 16px 19px 14px; }
.scenario-field { flex: 1; min-width: 0; }
.scenario-field label { display: block; color: var(--work-muted); margin-bottom: 5px; font-size: .78rem; font-weight: 600; }
.scenario-field select { appearance: none; width: 100%; min-height: 42px; color: var(--work-ink); padding: 8px 29px 8px 11px; border: 1px solid var(--work-line); border-radius: 6px; background: #101f18; font-size: .875rem; text-overflow: ellipsis; }
.select-field { position: relative; }
.select-field::after { position: absolute; content: ""; right: 13px; top: 15px; width: 8px; height: 8px; border-right: 2px solid var(--work-muted); border-bottom: 2px solid var(--work-muted); transform: rotate(45deg); pointer-events: none; }
.button-run { flex: none; color: #162819; background: var(--work-green); }
.button-run:hover { background: #d4f2c7; }
.play-icon { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.trace-panel { min-width: 0; padding: 4px 19px 16px; }
.trace-heading { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-bottom: 10px; }
.run-id { color: var(--work-muted); font: .77rem var(--mono); overflow-wrap: anywhere; }
.trace-status { white-space: nowrap; }
.trace-status[data-state="succeeded"] { color: var(--work-green); }
.trace-status[data-state="waiting"] { color: var(--work-amber); }
.execution-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.execution-path li { display: flex; min-width: 0; position: relative; flex-direction: column; gap: 3px; padding: 10px 11px; border: 1px solid var(--work-line); border-top: 3px solid #789384; border-radius: 7px; background: var(--work-layer); }
.execution-path li[data-tone="warning"] { border-top-color: var(--work-amber); }
.execution-path li[data-tone="good"] { border-top-color: var(--work-green); }
.execution-path li[data-tone="pending"] { border-top-color: var(--work-line); }
.execution-path li[data-tone="warning"] strong { color: var(--work-amber); }
.execution-path li[data-tone="good"] strong { color: var(--work-green); }
.execution-path li[data-tone="pending"] strong { color: var(--work-muted); }
.execution-path li:not(:last-child)::after { position: absolute; content: ""; right: -13px; top: 49%; width: 12px; border-top: 1px solid #789384; }
.execution-path span, .execution-path small { color: var(--work-muted); font-size: .72rem; line-height: 1.2; overflow-wrap: anywhere; }
.execution-path span { font-weight: 650; }
.execution-path strong { color: var(--work-ink); font: 600 clamp(1.35rem, 3.3vw, 2.45rem)/1.2 var(--mono); letter-spacing: -.075em; overflow-wrap: anywhere; }
.button-reply { margin-top: 11px; color: var(--work-green); border-color: var(--work-line); background: var(--work-layer); }
.button-reply:hover { border-color: var(--work-green); }

.workbench-details { border-top: 1px solid var(--work-line); padding-inline: 19px; }
.workbench-details details + details { border-top: 1px solid var(--work-line); }
.workbench-details summary { padding-block: 9px; cursor: pointer; color: var(--work-muted); font-size: .81rem; }
.workbench-details summary:hover { color: var(--work-ink); }
.workbench-details summary code { color: var(--work-green); margin-left: 4px; font-size: .72rem; }
.request-code, .quick-code { padding: 13px; overflow: auto; background: #101f18; color: var(--work-ink); font: .825rem/1.6 var(--mono); tab-size: 2; }
.request-code { margin-bottom: 10px; border: 1px solid var(--work-line); border-radius: 6px; }
.quick-code { border-radius: 0 0 11px 11px; }
.code-key { color: #f7cb9f; }
.code-string { color: #c1e5b8; }
.timeline { margin: 0 0 8px; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--work-line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .trace-empty { display: block; color: var(--work-muted); font-size: .81rem; }
.event-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; }
.event-dot.neutral { background: var(--work-muted); }
.event-dot.warning { background: var(--work-amber); }
.event-dot.good { background: var(--work-green); }
.timeline strong { display: block; font-size: .84rem; }
.timeline small, .timeline time { display: block; color: var(--work-muted); font-size: .75rem; }
.timeline time { margin-top: 2px; font-family: var(--mono); }
.starter-handoff { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 19px; border-top: 1px solid var(--work-line); border-radius: 0 0 11px 11px; background: var(--work-layer); }
.starter-handoff p { color: var(--work-muted); font-size: .82rem; }
.starter-handoff .button { color: var(--work-green); border-color: #708674; }
.starter-handoff .button:hover { background: #294235; }

.quickstart-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); gap: 42px; align-items: center; }
.quickstart-layout p + p { margin-top: 10px; }
.quickstart-layout .text-link { margin-top: 14px; }
.inline-link, .text-link { color: var(--green); text-decoration: underline; text-underline-offset: .22em; }
.inline-link:hover, .text-link:hover { color: var(--ink); }
.text-link { display: inline-block; font-size: .875rem; font-weight: 650; }
.code-options { display: flex; gap: 4px; }
.code-options button, .copy-button { min-height: 35px; padding: 4px 9px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--work-muted); font-size: .875rem; }
.code-options button[aria-pressed="true"] { color: var(--work-green); border-color: var(--work-line); background: #14251d; }
.code-options button:hover, .copy-button:hover { color: var(--work-ink); }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 82px; }
.copy-icon { position: relative; display: inline-block; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 2px; }
.copy-icon::before { content: ""; position: absolute; width: 9px; height: 9px; left: -4px; top: -4px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; border-radius: 2px 0 0 0; }

.atlas-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 40px; align-items: center; }
.atlas-copy h2 { max-width: 19ch; }
.atlas-copy > p { min-height: 3.1em; }
.chart-options { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; }
.chart-options button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: .85rem; }
.chart-options button:hover { color: var(--ink); border-color: var(--subtle); }
.chart-options button[aria-pressed="true"] { color: var(--green); border-color: var(--green); background: var(--layer); }
.chart-image { display: block; aspect-ratio: 850 / 530; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #192234; }
.chart-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.atlas-figure figcaption { margin-top: 9px; color: var(--subtle); font-size: .78rem; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.chart-full { text-decoration: underline; text-underline-offset: .2em; }

#guides { padding-top: 29px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.guide-grid article { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.guide-grid p { margin-block: 7px 12px; font-size: .9rem; }
.closing { padding-block: 37px; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.closing h2 { font-size: 1.65rem; margin-bottom: 6px; }
.closing .button { flex: none; }
.footer { padding-block: 17px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 1000px) {
  .console-entry { align-items: flex-end; flex-direction: column-reverse; gap: 3px; }
  .hero-body { padding-block: 48px; gap: 31px; }
  .atlas-layout { gap: 25px; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .nav-inner { min-height: 66px; gap: 12px; }
  .nav-inner nav { display: none; }
  .console-entry { padding-block: 6px; }
  .console-link { min-height: 35px; }
  .hero-body, .quickstart-layout, .atlas-layout, .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-body { gap: 25px; padding-block: 33px; }
  .hero h1 { font-size: clamp(2.9rem, 9vw, 4.5rem); }
  .hero-detail { margin-top: 15px; font-size: .97rem; }
  .actions { margin-top: 16px; }
  .section { padding-block: 37px; }
  .section-heading { margin-bottom: 16px; }
  .demo-controls, .trace-panel, .workbench-details, .workbench-bar, .starter-handoff { padding-inline: 13px; }
  .execution-path strong { font-size: clamp(1.45rem, 6.2vw, 2.2rem); }
  .quickstart-layout { gap: 20px; }
  .quick-code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .atlas-layout { gap: 17px; }
  .atlas-copy > p { min-height: 0; }
  .closing { padding-block: 28px; }
  .closing-inner, .footer { align-items: start; flex-direction: column; }
  .footer { gap: 14px; }
}

@media (max-width: 460px) {
  .demo-controls { flex-wrap: wrap; align-items: start; }
  .scenario-field { flex-basis: 100%; }
}

@media (max-width: 385px) {
  .execution-path { gap: 7px; }
  .execution-path li { padding-inline: 7px; }
  .execution-path li:not(:last-child)::after { right: -8px; width: 7px; }
}
