/* Signal: cool paper, ink, and two wire colors, one per profile.
   Cobalt is agent-control-core, green is model-provider-core. */
:root {
  --paper: #f4f6fb;
  --card: #ffffff;
  --ink: #101a33;
  --soft: #5b6478;
  --rule: #d9deea;
  --cobalt: #2747ff;
  --green: #0a8f64;
}
* { box-sizing: border-box; }
body {
  margin: 0 auto; max-width: 1120px; padding: 0 24px;
  background: var(--paper); color: var(--ink);
  font: 17px/1.6 "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}
a { color: var(--cobalt); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 24px 0; }
header .mark { font-size: 22px; font-weight: 800; color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--cobalt); }
h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 24px; text-wrap: balance; }
h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 20px; }
h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
p { text-wrap: pretty; }

/* The first screen: words on the left, the moving stack on the right. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 56px; align-items: center; padding: 24px 0 96px; }
.lede { font-size: 21px; line-height: 1.5; color: var(--soft); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 32px 0 0; }
.button { background: var(--ink); color: var(--card); padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--cobalt); }
.stack { display: block; width: 100%; height: auto; }
.note { font-size: 15px; color: var(--soft); margin-top: 20px; }

section { margin: 0 0 96px; max-width: 760px; }
section.routes, section.contents { max-width: none; }
.layers p { color: var(--soft); }
.routes > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.route { border-top: 2px solid var(--ink); padding: 16px 0 32px; }
.route p { margin: 0; color: var(--soft); }
.route .from { font-size: 15px; font-weight: 600; color: var(--cobalt); margin: 0 0 8px; }
.questions h3 { margin-top: 32px; }
.questions p { margin: 0; color: var(--soft); }
.contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.contents ul { margin: 0; padding-left: 20px; }
.contents li { margin-bottom: 12px; }
pre { white-space: pre-wrap; background: var(--ink); color: #e6ebf7; padding: 24px; border-radius: 12px; overflow-x: auto; line-height: 1.6; margin: 0; }
.page { background: var(--card); border-radius: 16px; padding: 48px; margin: 24px 0 96px; max-width: 760px; }
footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--soft); font-size: 15px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 64px; }
  /* Keep the diagram on the first screen: headline, diagram, then the rest. */
  .hero > div { display: contents; }
  .hero h1 { margin: 0; }
  .stack { order: 1; max-width: 480px; margin: 0 auto; }
  .hero > div > :not(h1) { order: 2; margin-top: 0; margin-bottom: 0; }
  .routes > div, .contents { grid-template-columns: minmax(0, 1fr); }
  .page { padding: 28px 20px; }
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
}
