:root {
  color-scheme: dark;
  --background: #050914;
  --surface: #0d1521;
  --surface-raised: #182331;
  --surface-deep: #070e19;
  --text: #e7f1fb;
  --muted: #a7b9cb;
  --subtle: #7b8da4;
  --accent: #55e6ff;
  --violet: #777cff;
  --mint: #a0ffda;
  --glow-rgb: 85 230 255;
  --violet-rgb: 119 124 255;
  --mint-rgb: 160 255 218;
  --line: #2b3b50;
  --sans: "Inter", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #34465e var(--background);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) { overflow: hidden; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); }
svg { display: block; }
::selection { color: var(--background); background: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 20px;
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--text);
  color: #080a0b;
  font-size: 13px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.visual-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 82% 12%, rgb(var(--violet-rgb) / 12%), transparent 46%),
    radial-gradient(ellipse at 88% 82%, rgb(var(--mint-rgb) / 9%), transparent 48%),
    radial-gradient(ellipse at 45% 0%, #10243b, transparent 50%),
    var(--background);
}

/* A static wave fallback remains visible without JavaScript or WebGL. */
.visual-background::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 48% -25% -38%;
  background: repeating-radial-gradient(
    ellipse at 52% 100%,
    transparent 0 18px, rgb(var(--glow-rgb) / 13%) 19px 20px, transparent 21px 38px
  );
  mask-image: linear-gradient(transparent, #000 38%, transparent 95%);
  transform: perspective(700px) rotateX(58deg) rotateZ(-8deg);
  opacity: .6;
}

#ambient-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms ease;
}

#ambient-canvas.is-ready { opacity: 1; }

.background-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(5 9 20 / 38%), transparent 65%),
    linear-gradient(180deg, transparent 45%, rgb(5 9 20 / 10%) 78%, rgb(5 9 20 / 30%));
}

.page-shell {
  position: relative;
  z-index: 1;
  overflow: clip;
}

.wrap {
  width: min(85%, 1200px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 64px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand svg { width: 92px; height: 34px; }

.site-nav, .desktop-links {
  display: flex;
  align-items: center;
}

.site-nav { gap: 52px; }
.desktop-links { gap: 32px; }

.nav-link {
  position: relative;
  padding: 9px 0;
  border: 0;
  background: none;
  color: #a4a6ad;
  font-size: 11px;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-link:hover, .nav-link[aria-current="page"] { color: #f3f3f1; }

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nav-link:hover::after, .nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 37px;
  padding: 0 23px;
  border: 1px solid #53657d;
  border-radius: 4px;
  background-color: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease,
              color 180ms ease, box-shadow 180ms ease;
}

/* Keep the hit box fixed and interpolate solid colors, not gradient backgrounds. */
.button:hover {
  border-color: var(--accent);
  background-color: rgb(var(--glow-rgb) / 8%);
}

.button svg { width: 14px; height: 14px; pointer-events: none; }
.button-primary {
  min-width: 126px;
  border-color: #e7f1fb;
  background-color: #e7f1fb;
  color: #07111f;
  box-shadow: 0 2px 18px rgb(var(--glow-rgb) / 9%);
}

.button-primary:hover {
  border-color: #fff;
  background-color: #fff;
  color: #07111f;
  box-shadow: 0 3px 24px rgb(var(--glow-rgb) / 18%);
}

.button-primary svg { transition: transform 180ms ease; }
.button-primary:hover svg { transform: translateX(2px); }
.button-secondary { min-width: 143px; }

.nav-start {
  min-width: 108px;
  min-height: 30px;
  padding-inline: 19px;
  border-color: #454a51;
  border-radius: 3px;
  font-size: 11px;
}

.menu-toggle, .mobile-menu { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(48px, 6vw, 86px);
}

.hero-copy { position: relative; z-index: 1; animation: arrive 750ms ease both; }

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero-copy > .eyebrow { color: var(--mint); }
.hero-title { margin: 12px 0 0; font-weight: 300; }

.hero-wordmark {
  width: clamp(220px, 21vw, 280px);
  height: auto;
  aspect-ratio: 780 / 285;
  margin: 0 0 8px -16px;
  overflow: visible;
}

.tagline {
  display: block;
  font-size: clamp(30px, 3.15vw, 44px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.hero-description {
  max-width: 560px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 400;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 23px;
}

.hero-art {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: min(100%, 430px);
  pointer-events: none;
  animation: arrive 900ms ease both;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 15% 2% 9%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(var(--glow-rgb) / 10%), rgb(var(--violet-rgb) / 6%) 40%, transparent 72%);
  filter: blur(20px);
}

.hero-cube { width: 100%; height: auto; aspect-ratio: 720 / 745; overflow: visible; }

/* Workflow surfaces and review lanes inherit the cube's graphite, cyan, violet, and mint. */
.workflow-overview {
  position: relative;
  isolation: isolate;
  margin-top: 47px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid #31435c;
  border-radius: 8px;
  background: linear-gradient(120deg, rgb(13 21 33 / 94%), rgb(7 14 25 / 90%));
  box-shadow: 0 0 48px rgb(var(--glow-rgb) / 6%), inset 0 1px 0 rgb(255 255 255 / 3%);
  animation: arrive 900ms ease both;
  scroll-margin-top: 30px;
}

.workflow-overview::before {
  content: "";
  position: absolute;
  inset: 0 8% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--violet), var(--mint), transparent);
  box-shadow: 0 0 24px 6px rgb(var(--glow-rgb) / 10%);
  opacity: .5;
  pointer-events: none;
}

.workflow-overview::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -110px;
  right: -110px;
  width: 420px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(var(--violet-rgb) / 14%), transparent 70%);
  opacity: .4;
  pointer-events: none;
}

.overview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.overview-heading h2 {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 350;
  line-height: 1.22;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.overview-heading .guide-link { margin-top: 3px; }
.overview-intro { max-width: 940px; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.workflow-jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.workflow-jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgb(7 14 25 / 55%);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.workflow-jump-links a:is(:hover, :focus-visible) { color: var(--accent); border-color: #48667e; background-color: rgb(var(--glow-rgb) / 5%); }
.agent-workflow, .workflow-assists, .workflow-support { margin-top: 32px; padding-top: 30px; border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.workflow-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, .9fr);
  align-items: start;
  gap: 24px;
}

.workflow-section-heading h3 { margin: 8px 0 0; font-size: clamp(20px, 2vw, 25px); font-weight: 400; line-height: 1.35; letter-spacing: -.025em; text-wrap: balance; }
.workflow-section-heading > p { align-self: end; max-width: 400px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.workflow-kicker { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.7; letter-spacing: .14em; text-transform: uppercase; }
.agent-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 18px; margin-top: 24px; }
.agent-brief, .agent-cycle, .assist-card, .workflow-mode { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: rgb(7 14 25 / 78%); }
.agent-brief { display: flex; flex-direction: column; padding: 24px; }
.agent-brief > .workflow-kicker { color: var(--mint); }
.agent-brief blockquote { margin: 16px 0 0; padding-left: 16px; border-left: 2px solid var(--mint); }
.agent-brief blockquote p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.8; }
.agent-brief-points { display: grid; gap: 12px; margin: 20px 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.agent-brief-points strong, .assist-outcome strong, .workflow-detail-body strong, .safety-note strong { color: var(--text); font-weight: 500; }
.agent-requirement { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.75; }
.agent-cycle { padding: 22px; border-color: #3b506b; background: linear-gradient(145deg, rgb(var(--glow-rgb) / 5%), rgb(var(--violet-rgb) / 4%) 70%), var(--surface-deep); }
.agent-core { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.agent-core > div { min-width: 0; }
.agent-cube { flex: 0 0 auto; width: 86px; height: auto; aspect-ratio: 720 / 745; overflow: visible; pointer-events: none; }
.agent-core .workflow-kicker { color: var(--accent); }
.agent-core-title { margin: 6px 0 0; font-size: 18px; font-weight: 400; line-height: 1.4; letter-spacing: -.02em; }
.agent-loop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.agent-loop li { position: relative; min-width: 0; padding-left: 32px; }
.workflow-step-index {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #344d65;
  border-radius: 4px;
  background: linear-gradient(140deg, rgb(var(--glow-rgb) / 7%), rgb(var(--violet-rgb) / 7%));
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.agent-loop .workflow-step-index { position: absolute; top: 0; left: 0; }
.agent-loop h4 { margin: 1px 0 6px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.agent-loop p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.cycle-feedback { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; padding: 13px 14px; border: 1px solid rgb(var(--glow-rgb) / 18%); border-radius: 5px; background: rgb(var(--glow-rgb) / 4%); color: var(--muted); font-size: 12px; line-height: 1.75; }
.cycle-feedback svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.execution-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--mint);
  border-radius: 6px;
  background: linear-gradient(100deg, rgb(var(--mint-rgb) / 5%), rgb(7 14 25 / 75%));
}

.execution-note h4 { margin: 0 0 7px; font-size: 14px; font-weight: 500; line-height: 1.5; }
.execution-note p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.execution-note .workflow-link { flex: 0 0 auto; margin: 0; }
.assist-bridge { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px; background: rgb(7 14 25 / 55%); color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.8; }
.assist-bridge svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--accent); }
.assist-bridge span:last-child { color: var(--mint); }
.assist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.assist-card {
  --review-color: var(--accent);
  --review-rgb: var(--glow-rgb);
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-top: 2px solid var(--review-color);
  background: linear-gradient(135deg, rgb(var(--review-rgb) / 7%), transparent 60%), var(--surface-deep);
}

.assist-prompt { --review-color: var(--violet); --review-rgb: var(--violet-rgb); }
.assist-label { margin: 0; color: var(--review-color); font-family: var(--mono); font-size: 10px; line-height: 1.7; letter-spacing: .14em; text-transform: uppercase; }
.assist-card h4 { margin: 8px 0 12px; font-size: 23px; font-weight: 400; line-height: 1.3; letter-spacing: -.025em; }
.assist-intro { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.assist-actions { margin: 18px 0 22px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.assist-actions li + li { margin-top: 9px; }
.assist-actions li::marker { color: var(--review-color); }
.assist-outcome { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.8; }
.assist-schedule { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, .8fr); align-items: start; gap: 24px; margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: rgb(13 21 33 / 65%); }
.assist-schedule-copy h4 { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; }
.assist-schedule-copy p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.assist-schedule-copy .workflow-link { margin-top: 5px; }
.assist-example { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-deep); }
.assist-example dl { display: grid; gap: 14px; margin: 15px 0; }
.assist-example dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.assist-example dt { color: var(--accent); font-family: var(--mono); font-size: 11px; line-height: 1.7; }
.assist-example dl > div:nth-child(2) dt { color: var(--violet); }
.assist-example dd { margin: 0; color: var(--text); font-size: 12px; line-height: 1.7; }
.assist-example > p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.workflow-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.workflow-mode { display: flex; flex-direction: column; padding: 22px; }
.workflow-mode .workflow-kicker { color: var(--accent); }
.workflow-mode:nth-child(2) .workflow-kicker { color: var(--mint); }
.workflow-mode:nth-child(3) .workflow-kicker { color: var(--violet); }
.workflow-mode h4 { margin: 9px 0 0; font-size: 18px; font-weight: 400; line-height: 1.4; letter-spacing: -.02em; }
.workflow-mode > p:not(.workflow-kicker) { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.workflow-mode > p.mode-note { font-size: 12px; }
.workflow-mode .workflow-link { align-self: flex-start; margin-top: auto; padding-top: 18px; }
.workflow-checkpoints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 24px 0 0; padding: 0; list-style: none; }
.workflow-checkpoints li { min-width: 0; padding-left: 16px; border-left: 1px solid #3c536e; }
.checkpoint-label { color: var(--mint); font-family: var(--mono); font-size: 10px; line-height: 1.7; letter-spacing: .12em; text-transform: uppercase; }
.workflow-checkpoints h4 { margin: 7px 0; font-size: 14px; font-weight: 500; line-height: 1.5; }
.workflow-checkpoints p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.workflow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
  transition: color 180ms ease;
}

.workflow-link svg { width: 14px; height: 14px; flex: 0 0 auto; transition: transform 180ms ease; }
.workflow-link:is(:hover, :focus-visible) { color: var(--mint); text-decoration: underline; text-underline-offset: 4px; }
.workflow-link:is(:hover, :focus-visible) svg { transform: translateX(3px); }
.workflow-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; margin-top: 24px; }
.workflow-detail { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: rgb(7 14 25 / 70%); }
.workflow-detail[open] { border-color: #486380; }
.workflow-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 84px;
  padding: 17px 18px;
  border-radius: 5px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.workflow-detail summary > span { min-width: 0; }
.workflow-detail summary::-webkit-details-marker { display: none; }
.workflow-detail summary:hover { background: rgb(var(--glow-rgb) / 4%); }
.workflow-detail summary:focus-visible { outline-offset: -3px; }
.workflow-detail summary strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; }
.workflow-detail[open] summary { border-bottom: 1px solid var(--line); border-radius: 5px 5px 0 0; }
.workflow-detail-caption { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.disclosure-icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent); transition: transform 180ms ease; }
.workflow-detail[open] .disclosure-icon { transform: rotate(90deg); }
.workflow-detail-body { padding: 18px; }
.workflow-detail-body ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.workflow-detail-body li + li { margin-top: 12px; }
.workflow-detail-body .workflow-link { margin-top: 10px; }
.safety-note { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-left: 2px solid var(--mint); border-radius: 6px; background: linear-gradient(110deg, rgb(var(--mint-rgb) / 4%), rgb(7 14 25 / 70%)); }
.safety-note h4 { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; }
.safety-note p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.safety-note .workflow-link { margin-top: 6px; }

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 36px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.closing > div { min-width: 0; }
.closing h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 350;
  line-height: 1.3;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.closing p {
  max-width: 720px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
  padding-block: 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  transition: color 180ms ease;
}

.guide-link svg { width: 16px; height: 16px; transition: transform 180ms ease; }
.guide-link:is(:hover, :focus-visible) { color: var(--mint); }
.guide-link:is(:hover, :focus-visible) svg { transform: translateX(3px); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.site-footer p { margin: 0; }
.site-footer a:hover { color: var(--mint); }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgb(7 14 25 / 80%);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.motion-toggle:hover:not(:disabled) { border-color: var(--accent); }
.motion-toggle:disabled { opacity: .7; }
.motion-state { color: var(--subtle); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.motion-toggle[aria-pressed="true"] .motion-state { color: var(--mint); }

.dialog {
  position: fixed;
  width: min(590px, calc(100% - 32px));
  max-height: min(85dvh, 800px);
  padding: 0;
  overflow: auto;
  border: 1px solid #3b506b;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 100% 0%, rgb(var(--violet-rgb) / 10%), transparent 60%),
    var(--surface);
  color: var(--text);
  box-shadow: 0 24px 100px #0009, 0 0 70px rgb(var(--glow-rgb) / 8%);
  scrollbar-width: thin;
}

.dialog::backdrop { background: rgb(0 0 0 / 76%); backdrop-filter: blur(12px); }
.dialog[open] { animation: dialog-in 200ms ease both; }
.dialog-header { padding: 30px 30px 0; }
.dialog-header .eyebrow { padding-right: 30px; color: var(--accent); }
.dialog-header h2 {
  margin: 13px 32px 0 0;
  font-size: 28px;
  font-weight: 350;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.dialog-intro { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.dialog-body { padding: 24px 30px 28px; }

.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a0a9b2;
}

.dialog-close:hover { color: #fff; background: #ffffff09; }
.dialog-close svg { width: 18px; height: 18px; }

.tabs {
  display: flex;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid #262d33;
  border-radius: 7px;
  background: #06090b;
  scrollbar-width: none;
}

.tab {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 15px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8f9aa5;
  font-size: 11px;
  transition: background 150ms ease, color 150ms ease;
}

.tab:hover { color: #e7ecef; }
.tab[aria-selected="true"] { background: #20272d; color: #f0f3f4; }
.tab:focus-visible { outline-offset: -2px; }

.install-steps {
  display: grid;
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid #344d65;
  border-radius: 5px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.step-description { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.step-description code { color: var(--text); }

.requirements {
  margin: 0;
  padding: 12px 15px;
  border-left: 2px solid var(--mint);
  background: rgb(var(--mint-rgb) / 4%);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.requirements strong { color: var(--text); font-weight: 500; }

.command-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 9px;
  padding: 11px 12px 11px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-deep);
}

.command-row pre { flex: 1; min-width: 0; margin: 0; white-space: pre-wrap; }
.command-row code {
  display: block;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #303b44;
  border-radius: 4px;
  background: #131a1f;
  color: #aebbc5;
  font-size: 10px;
}

.copy-button svg { width: 13px; height: 13px; }
.copy-button:hover { background: #1d282f; color: #fff; }
.copy-button.is-copied { color: #83e0d0; border-color: #37685f; }
.fine-print { margin: 13px 0 0; color: #95a4af; font-size: 12px; line-height: 1.8; }

.dialog-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
  padding-top: 21px;
  border-top: 1px solid #242e35;
}

.dialog-footer .button { min-height: 37px; font-size: 11px; }
.text-button {
  padding: 9px 2px;
  border: 0;
  background: none;
  color: #b2bfc9;
  font-size: 11px;
}

.text-button:is(:hover, :focus-visible) { color: #8ee9e0; }
.docs-dialog { width: min(680px, calc(100% - 32px)); }
.doc-tabs { margin: 24px 30px 0; max-width: calc(100% - 60px); }
.doc-tabs .tab { min-height: 36px; padding-inline: 12px; }
.doc-panel h3 { margin: 0 0 12px; font-size: 20px; font-weight: 400; line-height: 1.35; letter-spacing: -.025em; }
.doc-panel h4 { margin: 23px 0 10px; font-size: 14px; font-weight: 500; line-height: 1.5; }
.doc-panel p { margin: 0 0 15px; color: #a9b5bf; font-size: 13px; line-height: 1.75; }
.doc-panel ul, .doc-panel ol { margin: 12px 0; padding-left: 20px; color: #a9b5bf; font-size: 13px; line-height: 1.9; }
.doc-panel li + li { margin-top: 9px; }
.doc-panel strong { color: #d7e0e6; font-weight: 500; }
.doc-panel p code, .doc-panel li code, .fine-print code { color: #d0dfe6; }
.doc-panel a:not(.button), .fine-print a, .step-description a, .noscript-note a {
  color: #9edbd7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-panel .doc-note {
  margin-top: 20px;
  padding: 12px 15px;
  border-left: 2px solid #45656f;
  background: #ffffff03;
  color: #a0b1bd;
  font-size: 12px;
}

.community-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid #2c3740;
  border-radius: 6px;
  background: #ffffff02;
  transition: border-color 160ms ease, background 160ms ease;
}

.community-link:hover { border-color: #577077; background: #ffffff04; }
.community-link strong { font-size: 13px; font-weight: 450; }
.community-link p { margin: 6px 0 0; color: #8d9da9; font-size: 11px; line-height: 1.6; }
.community-link svg { width: 17px; height: 17px; flex-shrink: 0; color: #92a7b4; transform: rotate(-45deg); }
.noscript-note { padding: 20px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* The inline logo stays steady unless the shared motion preference permits animation. */
.mce-neon-bloom, .mce-word-glow { opacity: .75; }
.mce-neon-flow {
  display: none;
  fill: none;
  stroke: #d9ffff;
  stroke-width: 2.4;
  stroke-dasharray: 12 88;
  stroke-dashoffset: 0;
  opacity: .9;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-running .mce-neon-bloom,
  .motion-running .mce-word-glow { animation: mce-light-breathe 6s ease-in-out infinite; }
  .motion-running .mce-neon-flow { display: inline; animation: mce-strip-flow 6s linear infinite; }
  .motion-running .mce-channel-phase { animation-delay: -1.5s; }
  .motion-running .mce-vent-phase { animation-delay: -3s; }
  .motion-running .mce-lid-phase { animation-delay: -4.5s; }
  .motion-running .mce-word-glow { animation-delay: -.75s; }
  .motion-running .workflow-overview::before { animation: tidal-glow 9s ease-in-out infinite; }
  .motion-running .workflow-overview::after { animation: tidal-glow 11s ease-in-out infinite; }
}

@keyframes mce-light-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes mce-strip-flow { to { stroke-dashoffset: -100; } }
@keyframes tidal-glow { 0%, 100% { opacity: .32; } 50% { opacity: .82; } }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }

@media (min-width: 1300px) {
  .workflow-overview { margin-top: 55px; padding: 36px; }
  .agent-layout, .assist-grid { gap: 22px; }
  .workflow-checkpoints { gap: 28px; }
  .closing { margin-top: 40px; }
}

@media (max-width: 900px) {
  .site-nav { gap: 30px; }
  .desktop-links { gap: 23px; }
  .workflow-section-heading { display: block; }
  .workflow-section-heading > p { max-width: none; margin-top: 12px; }
  .agent-layout, .assist-schedule, .workflow-checkpoints { grid-template-columns: 1fr; }
  .agent-brief-points { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; list-style: none; }
  .assist-example dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .execution-note { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { padding-inline: 24px; }
  .desktop-links { display: none; }
  .site-nav { gap: 14px; }
  .nav-start { min-height: 40px; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .menu-toggle span { width: 19px; height: 1px; background: var(--text); transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu {
    position: absolute;
    top: 64px;
    right: 24px;
    left: 24px;
    display: grid;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgb(13 21 33 / 97%);
    box-shadow: 0 15px 40px #0009;
    backdrop-filter: blur(20px);
  }
  .mobile-menu a, .mobile-menu button {
    min-height: 44px;
    padding: 13px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text);
    text-align: left;
    font-size: 13px;
  }
  .mobile-menu a:hover, .mobile-menu button:hover { color: var(--accent); background: #ffffff07; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 42px; }
  .hero-wordmark { width: 240px; height: auto; margin-left: -14px; }
  .tagline { max-width: 520px; font-size: clamp(28px, 5.3vw, 36px); line-height: 1.25; }
  .hero-description { max-width: 480px; font-size: 14px; line-height: 1.75; }
  .hero-actions { gap: 12px; margin-top: 21px; }
  .hero-actions .button { min-height: 44px; }
  .hero-art { justify-self: center; width: min(78%, 310px); }
  .workflow-overview { margin-top: 36px; padding: 24px 22px; }
  .overview-heading { display: block; }
  .overview-heading h2 { font-size: 28px; }
  .overview-heading .guide-link { margin-top: 10px; }
  .workflow-jump-links { margin-top: 20px; }
  .workflow-jump-links a { padding-inline: 11px; }
  .agent-workflow, .workflow-assists, .workflow-support { margin-top: 28px; padding-top: 26px; }
  .agent-layout, .assist-grid, .workflow-mode-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .agent-brief, .agent-cycle, .assist-card, .workflow-mode { padding: 20px; }
  .agent-brief-points { grid-template-columns: 1fr; gap: 12px; padding-left: 18px; list-style: disc; }
  .agent-cube { width: 74px; }
  .agent-loop { grid-template-columns: 1fr; gap: 18px; }
  .execution-note { padding: 18px; }
  .assist-schedule { gap: 18px; padding: 18px; }
  .workflow-details { grid-template-columns: 1fr; }
  .safety-note { padding: 18px; }
  .closing { display: block; margin-top: 31px; padding-top: 24px; padding-bottom: 28px; }
  .closing h2 { font-size: 26px; }
  .closing p { max-width: 520px; font-size: 14px; line-height: 1.75; }
  .guide-link { margin-top: 16px; }
  .site-footer { display: block; }
  .footer-links { margin-top: 14px; gap: 18px; }
  .motion-toggle { min-height: 44px; }
  .dialog-header { padding: 28px 24px 0; }
  .dialog-header h2 { font-size: 26px; }
  .dialog-body { padding: 23px 24px 25px; }
  .command-row { gap: 8px; padding: 10px; }
  .copy-button { padding-inline: 7px; }
  .doc-tabs { margin-inline: 24px; max-width: calc(100% - 48px); }
  .doc-tabs .tab { min-height: 40px; }
}

@media (max-width: 390px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-inline: 20px; }
  .brand svg { width: 88px; }
  .site-nav { gap: 10px; }
  .nav-start { min-width: 96px; padding-inline: 13px; font-size: 10px; }
  .mobile-menu { right: 20px; left: 20px; }
  .hero-wordmark { width: 220px; }
  .tagline { font-size: 27px; }
  .hero-actions .button { padding-inline: 18px; }
  .workflow-overview { padding-inline: 18px; }
  .overview-heading h2 { font-size: 26px; }
  .workflow-jump-links { flex-direction: column; align-items: stretch; }
  .agent-brief, .agent-cycle, .assist-card, .workflow-mode { padding: 18px; }
  .agent-core { gap: 10px; }
  .agent-cube { width: 62px; }
  .agent-core-title { font-size: 16px; }
  .assist-example dl { grid-template-columns: 1fr; }
  .workflow-detail summary { padding-inline: 16px; }
  .workflow-detail-body { padding-inline: 16px; }
  .dialog-header { padding-inline: 21px; }
  .dialog-body { padding-inline: 21px; }
  .doc-tabs { margin-inline: 21px; max-width: calc(100% - 42px); }
  .tab { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}