:root {
  --ink: #101814;
  --muted: #5d6a63;
  --paper: #f3f6f3;
  --white: #ffffff;
  --night: #09100d;
  --night-soft: #111a16;
  --green: #42d680;
  --green-dark: #117748;
  --cyan: #35b8c5;
  --coral: #e77461;
  --amber: #dfac43;
  --line: #d6ded8;
  --line-dark: #2b3832;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 22px 54px rgba(9, 16, 13, 0.15);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  letter-spacing: 0;
}
body, button, a { -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  color: var(--night);
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.section-shell, .nav-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color 180ms ease, border-color 180ms ease;
}
.site-header.is-scrolled {
  background: rgba(9, 16, 13, 0.96);
  border-color: var(--line-dark);
}
.nav-shell {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--night);
  background: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.77);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }
.nav-links .nav-github { display: inline-flex; align-items: center; gap: 7px; color: var(--white); }
.nav-github svg { width: 18px; }
.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 5px;
  cursor: pointer;
}
.icon-button svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  display: flex;
  min-height: min(820px, 92svh);
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-color: var(--night);
  background-image: url("assets/optimizer-hero-v2.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-scrim { position: absolute; inset: 0; background: rgba(3, 7, 5, 0.35); }
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 48px));
  min-width: 0;
  margin: 0 auto;
  padding: 128px 0 158px;
}
.hero-content > * { min-width: 0; }
.eyebrow {
  display: flex;
  margin: 0 0 17px;
  align-items: center;
  gap: 10px;
  color: #b6dfc8;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--green-dark); }
.eyebrow.light { color: #9ed9b7; }
.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(66, 214, 128, 0.15);
  animation: status-pulse 2.2s ease-in-out infinite;
}
.hero h1 {
  max-width: min(760px, 100%);
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: 0;
}
.hero-kicker {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}
.hero-lede {
  max-width: 670px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.75;
}
.hero-actions { display: flex; margin-top: 31px; flex-wrap: wrap; gap: 11px; }
.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; height: 18px; }
.button-primary { color: #06120b; background: var(--green); }
.button-primary:hover { background: #60df98; }
.button-secondary { color: var(--white); background: rgba(9, 16, 13, 0.78); border-color: rgba(255, 255, 255, 0.36); }
.button-secondary:hover { border-color: var(--white); }
.install-command {
  display: inline-flex;
  min-height: 46px;
  margin-top: 18px;
  padding-left: 15px;
  align-items: center;
  gap: 13px;
  color: #e4eee8;
  background: rgba(6, 10, 8, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
}
.install-command code { font-family: var(--mono); font-size: 12px; }
.install-command .icon-button { width: 45px; height: 45px; border: 0; border-left: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0; }
.install-command .icon-button:hover { color: var(--green); }
.hero-live {
  display: grid;
  width: min(580px, 100%);
  min-height: 42px;
  margin-top: 24px;
  padding-left: 14px;
  align-items: center;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 14px;
  border-left: 2px solid var(--green);
  font-family: var(--mono);
  font-size: 10px;
}
.hero-live-label { color: var(--green); }
.hero-live-value { min-width: 0; color: var(--white); overflow-wrap: anywhere; }
.hero-live-state { display: inline-flex; align-items: center; gap: 7px; color: #b9cbc1; }
.hero-live-state svg { width: 16px; color: var(--cyan); }
.hero-foot {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 72px;
  padding: 0 max(24px, calc((100% - 1200px) / 2));
  align-items: center;
  grid-template-columns: repeat(4, 1fr);
  color: rgba(255, 255, 255, 0.66);
  background: rgba(7, 12, 10, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: 10px;
}
.hero-foot span { display: flex; min-height: 38px; padding: 0 18px; align-items: center; gap: 8px; border-left: 1px solid rgba(255, 255, 255, 0.13); }
.hero-foot span:last-child { border-right: 1px solid rgba(255, 255, 255, 0.13); }
.hero-foot svg { width: 17px; color: var(--green); }
.hero-foot strong { color: var(--white); font-size: 12px; }

.section { padding: 104px 0; }
.section-heading { max-width: 810px; }
.section-heading h2, .demo-copy h2, .use-heading h2, .code-copy h2, .provider-copy h2, .resources-copy h2, .cta-inner h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: 0;
}
.section-heading > p:last-child, .demo-copy > p, .code-copy > p, .provider-copy > p {
  max-width: 740px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.demo-section { padding: 108px 0; background: var(--white); }
.demo-layout { display: grid; align-items: center; grid-template-columns: minmax(280px, 0.66fr) minmax(0, 1.34fr); gap: 66px; }
.demo-copy > p { font-size: 15px; }
.demo-facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.demo-facts div { display: grid; min-height: 70px; padding: 13px 0; align-items: center; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--line); }
.demo-facts dt { color: var(--green-dark); font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.demo-facts dd { margin: 0; color: #37443d; font-size: 13px; font-weight: 700; }
.demo-figure { min-width: 0; margin: 0; }
.demo-window { overflow: hidden; background: var(--night); border: 1px solid #2e3b35; border-radius: 7px; box-shadow: var(--shadow); }
.demo-window picture, .demo-window img { display: block; width: 100%; aspect-ratio: 16 / 9; }
.demo-window img { height: auto; object-fit: cover; }
.demo-figure figcaption { display: grid; min-height: 46px; margin-top: 13px; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.demo-stage { display: grid; min-width: 0; padding: 8px 5px; place-items: center; color: #87968e; border-top: 2px solid #cfd8d2; font-family: var(--mono); font-size: 9px; white-space: nowrap; transition: color 180ms ease, border-color 180ms ease; }
.demo-stage.is-active { color: var(--green-dark); border-color: var(--green); }

.value-band { color: var(--ink); background: #eaf0ec; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { position: relative; min-width: 0; min-height: 320px; padding: 68px 42px 60px; border-right: 1px solid #c9d3cc; }
.value-item:first-child { border-left: 1px solid #c9d3cc; }
.value-item > svg { width: 28px; height: 28px; color: var(--green-dark); }
.value-number { position: absolute; top: 68px; right: 38px; color: #8b9b92; font-family: var(--mono); font-size: 11px; }
.value-item h2 { margin: 36px 0 0; font-size: 24px; line-height: 1.3; }
.value-item p { margin: 15px 0 0; color: var(--muted); font-size: 14px; }

.workflow-section { background: var(--paper); }
.workflow-grid { display: grid; margin: 52px 0 0; padding: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #aab8b0; border-bottom: 1px solid #aab8b0; list-style: none; }
.workflow-step { position: relative; min-width: 0; min-height: 288px; padding: 28px 23px 31px; border-right: 1px solid var(--line); }
.workflow-step:last-child { border-right: 0; }
.workflow-step > span { color: #8a9890; font-family: var(--mono); font-size: 10px; }
.workflow-step > svg { display: block; width: 27px; height: 27px; margin-top: 44px; color: var(--green-dark); }
.workflow-step h3 { margin: 22px 0 0; font-size: 17px; line-height: 1.3; }
.workflow-step p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.use-section { padding: 104px 0; color: var(--white); background: #10282c; }
.use-heading { display: flex; align-items: end; justify-content: space-between; gap: 42px; }
.use-heading > div:first-child { max-width: 660px; }
.use-tabs { display: grid; min-width: 460px; padding: 4px; grid-template-columns: repeat(3, 1fr); background: #0a1d20; border: 1px solid #355157; border-radius: 6px; }
.use-tabs button { display: inline-flex; min-height: 42px; padding: 0 12px; align-items: center; justify-content: center; gap: 7px; color: #9eb3b6; background: transparent; border: 0; border-radius: 4px; font-size: 11px; font-weight: 800; cursor: pointer; }
.use-tabs button svg { width: 16px; }
.use-tabs button[aria-selected="true"] { color: #06120b; background: var(--green); }
.use-panel { display: grid; min-height: 390px; margin-top: 54px; align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.9fr); gap: 80px; border-top: 1px solid #355157; border-bottom: 1px solid #355157; }
.use-copy { max-width: 650px; padding: 54px 0; }
.use-index { margin: 0; color: var(--cyan); font-family: var(--mono); font-size: 10px; }
.use-copy h3 { margin: 17px 0 0; font-size: 32px; line-height: 1.23; }
.use-copy > p:not(.use-index) { margin: 18px 0 0; color: #acc0c2; font-size: 15px; }
.text-link { display: inline-flex; margin-top: 26px; align-items: center; gap: 7px; color: var(--green-dark); font-size: 12px; font-weight: 800; text-decoration: none; }
.text-link.light { color: #a7e8c2; }
.text-link svg { width: 15px; }
.use-output { min-width: 0; padding: 26px; background: #0a1d20; border: 1px solid #355157; border-radius: 7px; box-shadow: 0 20px 50px rgba(3, 11, 12, 0.26); }
.use-output > p { margin: 0; color: var(--cyan); font-family: var(--mono); font-size: 9px; }
.use-output > strong { display: block; margin-top: 7px; font-family: var(--mono); font-size: 22px; overflow-wrap: anywhere; }
.use-output dl { display: grid; margin: 25px 0 0; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #304b50; border-left: 1px solid #304b50; }
.use-output dl div { min-height: 74px; padding: 14px; border-right: 1px solid #304b50; border-bottom: 1px solid #304b50; }
.use-output dt { color: #81999c; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.use-output dd { margin: 6px 0 0; font-family: var(--mono); font-size: 13px; }
.use-output dd.pass { color: var(--green); }
.research-output ul, .agent-output ul { margin: 22px 0 0; padding: 0; border-top: 1px solid #304b50; list-style: none; }
.research-output li { padding: 10px 0; color: #b8cacb; border-bottom: 1px solid #304b50; font-family: var(--mono); font-size: 11px; }
.agent-output li { display: grid; min-height: 48px; padding: 0 5px; align-items: center; grid-template-columns: 24px 1fr auto; gap: 9px; color: #c3d1d2; border-bottom: 1px solid #304b50; font-family: var(--mono); font-size: 11px; }
.agent-output li svg { width: 16px; color: var(--green); }
.agent-output li b { color: #718a8d; font-size: 8px; font-weight: 500; text-transform: uppercase; }

.quickstart-section { background: var(--white); }
.package-demo-heading { display: grid; margin-bottom: 52px; align-items: end; grid-template-columns: 1.08fr 0.92fr; gap: 80px; }
.package-demo-heading h2 { max-width: 680px; margin: 0; font-size: 42px; line-height: 1.08; }
.package-demo-heading > p { max-width: 540px; margin: 0 0 3px; color: #506058; font-size: 15px; line-height: 1.75; }
.package-demo-grid { display: grid; align-items: stretch; grid-template-columns: 1.08fr 0.92fr; gap: 18px; }
.code-window { overflow: hidden; background: #111815; border: 1px solid #33433b; border-radius: 7px; box-shadow: var(--shadow); }
.code-toolbar { display: flex; min-height: 47px; padding-left: 17px; align-items: center; justify-content: space-between; color: #9db0a6; background: #17201c; border-bottom: 1px solid #33433b; font-family: var(--mono); font-size: 11px; }
.code-toolbar > span { display: flex; align-items: center; gap: 8px; }
.code-toolbar > span svg { width: 15px; color: var(--green); }
.code-toolbar .icon-button { width: 47px; height: 47px; border: 0; border-left: 1px solid #33433b; border-radius: 0; }
.code-window pre { min-height: 592px; margin: 0; padding: 25px; overflow: auto; }
.code-window code { color: #d9e7df; font-family: var(--mono); font-size: 11px; line-height: 1.62; }
.result-window { overflow: hidden; min-width: 0; color: #d8e8e0; background: #071714; border: 1px solid #245046; border-radius: 7px; box-shadow: var(--shadow); }
.result-toolbar { display: flex; min-height: 47px; padding: 0 16px; align-items: center; justify-content: space-between; gap: 16px; color: #9cc4b5; background: #0c201b; border-bottom: 1px solid #245046; font-family: var(--mono); font-size: 10px; }
.result-toolbar > span { display: flex; align-items: center; gap: 8px; }
.result-toolbar > span:first-child svg { width: 15px; color: var(--green); }
.result-toolbar > span:last-child { color: #668b7e; font-size: 8px; text-transform: uppercase; }
.terminal-command { min-height: 48px; padding: 16px 22px 13px; color: #a9c2b8; border-bottom: 1px solid #1b3b33; font-family: var(--mono); font-size: 11px; }
.terminal-command span { margin-right: 9px; color: var(--green); }
.result-window > pre { min-height: 238px; margin: 0; padding: 24px 22px; overflow: auto; background: #091d18; border-bottom: 1px solid #245046; }
.result-window > pre code { color: #e4f2eb; font-family: var(--mono); font-size: 12px; line-height: 1.9; }
.result-contract { padding: 0 22px; }
.result-contract > div { display: grid; min-height: 88px; padding: 15px 0; align-items: center; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid #1b3b33; }
.result-contract > div:last-child { border-bottom: 0; }
.result-contract svg { width: 18px; color: var(--green); }
.result-contract span { color: #88a79a; font-size: 11px; line-height: 1.55; }
.result-contract strong { display: block; margin-bottom: 3px; color: #e3efe9; font-size: 12px; }
.result-contract code { color: #a5dccc; font-family: var(--mono); font-size: 10px; }
.package-demo-note { display: flex; max-width: 890px; margin: 26px 0 0; align-items: flex-start; gap: 10px; color: #617168; font-size: 11px; line-height: 1.65; }
.package-demo-note svg { width: 16px; flex: 0 0 auto; color: var(--amber); }

.provider-section { padding: 104px 0; color: var(--white); background: #282321; }
.provider-layout { display: grid; align-items: center; grid-template-columns: 0.76fr 1.24fr; gap: 74px; }
.provider-copy > p { color: #c2b8b3; }
.provider-copy .text-link { color: #ffd0c5; }
.provider-matrix { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #5c4b45; border-left: 1px solid #5c4b45; }
.provider-matrix > div { display: grid; min-width: 0; padding: 24px; gap: 0; border-right: 1px solid #5c4b45; }
.provider-matrix > div > span { margin-bottom: 12px; color: #eea999; font-family: var(--mono); font-size: 9px; }
.provider-matrix > div > strong { min-height: 42px; padding: 10px 0; border-top: 1px solid #5c4b45; font-size: 13px; }
.provider-matrix > p { display: grid; min-height: 94px; margin: 0; padding: 20px 24px; align-items: center; grid-column: 1 / -1; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; color: #fff; background: #174450; border-right: 1px solid #5c4b45; border-bottom: 1px solid #5c4b45; }
.provider-matrix > p svg { width: 25px; color: #78d9e1; }
.provider-matrix > p span, .provider-matrix > p b { display: block; }
.provider-matrix > p b { font-size: 14px; }
.provider-matrix > p span { color: #bad3d7; font-size: 11px; }

.evidence-section { background: var(--paper); }
.evidence-heading { display: grid; align-items: end; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr); gap: 80px; }
.evidence-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.table-wrap { margin-top: 50px; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 16px 17px; text-align: right; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
th { color: #445149; background: #e9eeea; font-weight: 600; }
th:first-child, td:first-child { text-align: left; font-family: var(--sans); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
.positive { color: var(--green-dark); font-weight: 700; }
.negative { color: #b94b42; font-weight: 700; }
.evidence-footer { display: flex; margin-top: 18px; align-items: center; justify-content: space-between; gap: 30px; }
.evidence-footer p { display: grid; max-width: 790px; margin: 0; align-items: start; grid-template-columns: 17px minmax(0, 1fr); gap: 9px; color: var(--muted); font-size: 11px; }
.evidence-footer p svg { width: 17px; margin-top: 2px; color: var(--amber); }
.evidence-footer a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: var(--green-dark); font-size: 11px; font-weight: 800; text-decoration: none; }
.evidence-footer a svg { width: 15px; }

.resources-section { padding: 104px 0; background: var(--white); }
.resources-layout { display: grid; grid-template-columns: 0.74fr 1.26fr; gap: 90px; }
.resource-list { border-top: 1px solid var(--line); }
.resource-row { display: grid; min-height: 91px; padding: 0 15px; align-items: center; grid-template-columns: 36px minmax(0, 1fr) 22px; gap: 14px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color 160ms ease; }
.resource-row:hover { background: #eff5f1; }
.resource-row > svg { width: 22px; color: var(--green-dark); }
.resource-row > svg:last-child { width: 17px; color: #6f7d75; }
.resource-row span, .resource-row strong, .resource-row small { display: block; }
.resource-row strong { font-size: 14px; }
.resource-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.cta-band { padding: 74px 0; color: var(--white); background: var(--night); border-bottom: 1px solid var(--line-dark); }
.cta-inner { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
.cta-inner h2 { max-width: 680px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.site-footer { padding: 34px 0; color: #b8c5be; background: var(--night); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; font-size: 11px; }
.footer-inner p { margin: 0; }
.footer-brand { color: var(--white); }
.footer-brand .brand-mark { width: 32px; height: 32px; font-size: 10px; }

.guide-page { background: var(--white); }
.guide-header { position: sticky; background: var(--night); }
.guide-main { padding: 116px 0 90px; }
.guide-intro { max-width: 760px; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.guide-intro h1 { margin: 0; font-size: 50px; line-height: 1.1; }
.guide-intro p { margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.guide-nav { display: flex; margin: 28px 0 0; flex-wrap: wrap; gap: 10px; }
.guide-nav a { padding: 8px 11px; color: var(--green-dark); background: #eff6f1; border: 1px solid #bad1c1; border-radius: 4px; font-size: 12px; font-weight: 700; text-decoration: none; }
.guide-article { max-width: 850px; padding: 58px 0; border-bottom: 1px solid var(--line); }
.guide-article h2 { margin: 0; font-size: 32px; }
.guide-article h3 { margin: 34px 0 8px; font-size: 20px; }
.guide-article p, .guide-article li { color: var(--muted); }
.guide-article pre { padding: 22px; overflow: auto; color: #dce9e1; background: #111815; border: 1px solid #33433b; border-radius: 5px; }
.guide-article code { font-family: var(--mono); font-size: 12px; }
.guide-article :not(pre) > code { padding: 2px 5px; color: #204d37; background: #eaf3ed; border-radius: 3px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(66, 214, 128, 0.13); }
  50% { box-shadow: 0 0 0 8px rgba(66, 214, 128, 0.04); }
}

@media (max-width: 1020px) {
  .hero h1 { font-size: 58px; }
  .demo-layout, .provider-layout, .resources-layout { grid-template-columns: 1fr; gap: 52px; }
  .package-demo-heading { align-items: start; grid-template-columns: 1fr; gap: 22px; }
  .package-demo-heading > p { max-width: 760px; }
  .package-demo-grid { grid-template-columns: 1fr; }
  .demo-copy { max-width: 760px; }
  .value-item { padding-right: 28px; padding-left: 28px; }
  .workflow-grid { grid-template-columns: repeat(3, 1fr); }
  .workflow-step:nth-child(3) { border-right: 0; }
  .workflow-step:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .use-heading { align-items: start; flex-direction: column; }
  .use-tabs { width: min(100%, 520px); min-width: 0; }
  .use-panel { gap: 48px; }
  .evidence-heading { grid-template-columns: 1fr; gap: 24px; }
  .resources-copy { max-width: 760px; }
  .cta-inner { justify-items: start; grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width: 760px) {
  .section-shell, .nav-shell, .hero-content { width: min(100% - 32px, 1200px); }
  .site-header { background: rgba(9, 16, 13, 0.96); }
  .nav-toggle { display: inline-grid; }
  .nav-links { position: absolute; top: 72px; right: 0; left: 0; display: none; padding: 20px 24px 26px; align-items: stretch; flex-direction: column; gap: 17px; background: var(--night); border-bottom: 1px solid var(--line-dark); }
  .nav-links.is-open { display: flex; }
  .brand > span:last-child { font-size: 13px; }
  .hero { min-height: min(800px, 92svh); background-position: 58% center; }
  .hero-scrim { background: rgba(3, 7, 5, 0.67); }
  .hero-content { padding-top: 106px; padding-bottom: 152px; }
  .hero h1 { font-size: 43px; }
  .hero-kicker { font-size: 19px; }
  .hero-lede { font-size: 14px; line-height: 1.68; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .install-command { display: flex; width: 100%; justify-content: space-between; overflow: hidden; }
  .install-command code { padding-right: 4px; overflow-x: auto; white-space: nowrap; }
  .hero-live { display: none; }
  .hero-foot { min-height: 116px; padding: 11px 16px; grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .hero-foot span, .hero-foot span:last-child { min-height: 40px; padding: 7px 9px; border: 1px solid rgba(255, 255, 255, 0.12); }
  .hero-foot svg { display: none; }
  .section, .demo-section, .use-section, .provider-section, .resources-section { padding: 76px 0; }
  .section-heading h2, .demo-copy h2, .use-heading h2, .package-demo-heading h2, .provider-copy h2, .resources-copy h2, .cta-inner h2 { font-size: 31px; }
  .demo-facts div { grid-template-columns: 72px minmax(0, 1fr); }
  .demo-figure figcaption { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .value-item, .value-item:first-child { min-height: 250px; padding: 50px 24px 44px; border-right: 1px solid #c9d3cc; border-bottom: 1px solid #c9d3cc; border-left: 1px solid #c9d3cc; }
  .value-item:last-child { border-bottom: 0; }
  .value-number { top: 50px; right: 24px; }
  .value-item h2 { margin-top: 26px; font-size: 22px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-step, .workflow-step:nth-child(3) { min-height: 218px; border-top: 1px solid var(--line); border-right: 0; }
  .workflow-step:first-child { border-top: 0; }
  .workflow-step > svg { margin-top: 25px; }
  .use-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .use-tabs button { min-width: 0; padding: 0 7px; gap: 5px; font-size: 9px; }
  .use-tabs button svg { width: 14px; }
  .use-panel { min-height: 0; grid-template-columns: 1fr; gap: 0; }
  .use-copy { padding: 48px 0 34px; }
  .use-copy h3 { font-size: 27px; }
  .use-output { margin-bottom: 48px; padding: 21px; }
  .package-demo-heading { margin-bottom: 34px; }
  .code-window pre { min-height: 0; padding: 21px 17px; }
  .code-window code { font-size: 10px; }
  .result-toolbar { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
  .result-window > pre { min-height: 0; padding: 20px 17px; }
  .result-window > pre code { font-size: 10px; }
  .result-contract { padding: 0 17px; }
  .provider-matrix { grid-template-columns: 1fr; }
  .provider-matrix > p { grid-column: auto; }
  .evidence-footer { align-items: start; flex-direction: column; }
  .resource-row { min-height: 104px; padding: 12px 8px; }
  .cta-actions { width: 100%; flex-direction: column; }
  .guide-intro h1 { font-size: 40px; }
}

@media (max-width: 380px) {
  .brand > span:last-child { display: none; }
  .hero h1 { font-size: 36px; }
  .hero-kicker { font-size: 17px; }
  .hero-lede { font-size: 13px; }
  .hero-foot { font-size: 8px; }
  .hero-foot strong { font-size: 10px; }
  .section-heading h2, .demo-copy h2, .use-heading h2, .package-demo-heading h2, .provider-copy h2, .resources-copy h2, .cta-inner h2 { font-size: 27px; }
  .demo-stage { font-size: 8px; }
  .use-tabs button svg { display: none; }
  .use-output dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .demo-stage { color: #87968e; border-color: #cfd8d2; }
  .demo-stage:last-child { color: var(--green-dark); border-color: var(--green); }
}
