:root {
  color-scheme: dark;
  --ink: #eaf1ed;
  --muted: #9aa8a1;
  --faint: #65736c;
  --paper: #0a1113;
  --panel: #10191b;
  --panel-strong: #152124;
  --line: #263336;
  --lime: #b8f36b;
  --lime-soft: #d8ff9f;
  --coral: #ff806b;
  --blue: #83c7ff;
  --max: 1240px;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 3%, rgba(184, 243, 107, 0.09), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  background: var(--lime);
  color: #07100a;
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(55, 71, 72, 0.72);
  background: rgba(10, 17, 19, 0.9);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--lime);
  border-radius: 9px 2px 9px 2px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
}

.brand__name {
  letter-spacing: -0.03em;
  font-size: 18px;
  font-weight: 800;
}

.brand__label {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #c5d0ca;
  font-size: 14px;
  font-weight: 650;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--lime-soft);
}

.top-nav__npm {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink);
  font: 700 12px var(--mono);
  text-transform: uppercase;
}

.mobile-nav {
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav .docs-nav__link {
  display: block;
  padding: 8px 0;
}

.hero,
.workflow,
.topics,
.agent-band {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  padding: 92px 0 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.eyebrow {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  gap: 10px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(52px, 7.4vw, 100px);
  font-weight: 760;
  letter-spacing: -0.072em;
  line-height: 0.92;
}

.hero h1 em {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero__lede {
  max-width: 690px;
  margin: 34px 0 0;
  color: #b8c4be;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 19px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button--primary {
  background: var(--lime);
  color: #08110a;
}

.button--primary:hover {
  background: var(--lime-soft);
}

.button--secondary {
  border-color: var(--line);
  background: rgba(18, 29, 31, 0.6);
  color: var(--ink);
}

.button--secondary:hover {
  border-color: #60716a;
}

.button--light {
  background: #f1f6f2;
  color: #0a1113;
}

.hero__terminal {
  overflow: hidden;
  border: 1px solid #314043;
  border-radius: 14px;
  background: #0d1517;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
  transform: rotate(0.8deg);
}

.terminal__bar {
  display: flex;
  height: 42px;
  padding: 0 14px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: #121c1e;
}

.terminal__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d4b4e;
}

.terminal__bar span:first-child {
  background: var(--coral);
}

.terminal__bar strong {
  margin-left: auto;
  color: var(--faint);
  font: 600 10px var(--mono);
  text-transform: uppercase;
}

.hero__terminal .code-block {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.hero__terminal .code-block__bar {
  display: none;
}

.hero__terminal pre {
  min-height: 200px;
  margin: 0;
  padding: 30px;
  white-space: pre-wrap;
}

.hero__terminal code {
  color: #d9e7df;
  font-size: 13px;
}

.terminal__result {
  display: flex;
  padding: 18px 24px;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: rgba(184, 243, 107, 0.05);
}

.terminal__result > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(184, 243, 107, 0.38);
  border-radius: 50%;
  color: var(--lime);
}

.terminal__result p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.terminal__result strong {
  color: var(--ink);
  font-size: 13px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 88px;
  border-block: 1px solid var(--line);
}

.hero__facts p {
  display: grid;
  min-height: 104px;
  margin: 0;
  padding: 23px 24px;
  align-content: center;
  border-right: 1px solid var(--line);
}

.hero__facts p:last-child {
  border-right: 0;
}

.hero__facts strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.hero__facts span {
  color: var(--faint);
  font: 500 11px var(--mono);
  text-transform: uppercase;
}

.workflow {
  padding: 130px 0 70px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 60px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -30px;
}

.section-heading h2,
.agent-band h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 70px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.workflow-steps li {
  min-height: 230px;
  padding: 28px 26px;
  border-right: 1px solid var(--line);
}

.workflow-steps li:last-child {
  border-right: 0;
}

.workflow-steps span {
  display: block;
  margin-bottom: 58px;
  color: var(--lime);
  font: 700 11px var(--mono);
}

.workflow-steps strong {
  display: block;
  font-size: 22px;
}

.workflow-steps p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.topics {
  padding: 90px 0 140px;
}

.section-heading--compact {
  display: block;
  max-width: 800px;
}

.section-heading--compact .eyebrow {
  margin-bottom: 20px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 62px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.topic-card {
  display: grid;
  min-height: 270px;
  padding: 25px;
  align-content: start;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 24, 26, 0.48);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.topic-card:hover {
  background: var(--panel-strong);
  transform: translateY(-3px);
}

.topic-card__index {
  color: var(--faint);
  font: 650 11px var(--mono);
}

.topic-card__title {
  margin-top: 34px;
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.035em;
}

.topic-card__summary {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.topic-card__arrow {
  align-self: end;
  margin-top: 25px;
  color: var(--lime);
  font: 700 11px var(--mono);
  text-transform: uppercase;
}

.agent-band {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr auto;
  margin-bottom: 120px;
  padding: 54px;
  align-items: center;
  gap: 48px;
  background: var(--lime);
  color: #09100a;
}

.agent-band .eyebrow {
  color: #30401f;
}

.agent-band h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.agent-band > p {
  margin: 0;
  font-size: 16px;
}

.agent-band code {
  border-color: rgba(9, 16, 10, 0.25);
  background: rgba(9, 16, 10, 0.08);
  color: #09100a;
}

.docs-layout {
  display: grid;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  grid-template-columns: 210px minmax(0, 720px) minmax(150px, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.docs-sidebar,
.page-toc {
  position: sticky;
  top: 106px;
  padding: 54px 0;
}

.docs-sidebar__label,
.page-toc > p {
  margin: 0 0 14px;
  color: var(--faint);
  font: 750 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-nav__link,
.page-toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.docs-nav__link:hover,
.page-toc a:hover {
  color: var(--ink);
}

.docs-nav__link.is-active {
  color: var(--lime);
  font-weight: 750;
}

.page-toc {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.page-toc a {
  font-size: 12px;
  line-height: 1.45;
}

.docs-article {
  min-width: 0;
  padding: 72px 0 120px;
}

.docs-article__header {
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.docs-article__header h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 70px);
  letter-spacing: -0.062em;
  line-height: 0.98;
}

.docs-article__header > p:last-child {
  max-width: 640px;
  margin: 25px 0 0;
  color: #b2beb8;
  font-size: 19px;
}

.docs-section {
  padding: 54px 0 12px;
}

.docs-section + .docs-section {
  margin-top: 28px;
  border-top: 1px solid rgba(38, 51, 54, 0.7);
}

.docs-section h2 {
  margin: 0 0 22px;
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.docs-section p,
.docs-section li {
  color: #b3c0b9;
}

.docs-section p {
  margin: 0 0 20px;
}

.docs-section ul,
.docs-section ol {
  margin: 18px 0 28px;
  padding-left: 23px;
}

.docs-section li {
  margin: 9px 0;
  padding-left: 7px;
}

code {
  padding: 0.12em 0.35em;
  border: 1px solid #334244;
  border-radius: 4px;
  background: #111b1d;
  color: #d8e6df;
  font-family: var(--mono);
  font-size: 0.84em;
}

.code-block {
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid #2f3d40;
  border-radius: 8px;
  background: #0b1315;
}

.code-block__bar {
  display: flex;
  min-height: 40px;
  padding: 0 12px 0 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #263437;
  background: #121c1e;
  color: var(--faint);
  font: 650 10px var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.copy-button {
  border: 0;
  padding: 6px 8px;
  background: transparent;
  color: #9eada6;
  cursor: pointer;
  font: 700 10px var(--mono);
  text-transform: uppercase;
}

.copy-button:hover {
  color: var(--lime);
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  tab-size: 2;
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d5e1db;
  font-size: 12.5px;
  line-height: 1.7;
}

.callout {
  margin: 30px 0;
  padding: 20px 22px;
  border-left: 3px solid var(--blue);
  background: rgba(131, 199, 255, 0.06);
}

.callout--security {
  border-left-color: var(--lime);
  background: rgba(184, 243, 107, 0.055);
}

.callout--warning {
  border-left-color: var(--coral);
  background: rgba(255, 128, 107, 0.055);
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
}

.callout p {
  margin: 0;
  font-size: 14px;
}

.docs-next {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.docs-next a {
  display: grid;
  text-decoration: none;
}

.docs-next span {
  color: var(--faint);
  font: 700 10px var(--mono);
  text-transform: uppercase;
}

.docs-next strong {
  margin-top: 7px;
  font-size: 20px;
}

.docs-next i {
  color: var(--lime);
  font-style: normal;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 108px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  display: flex;
  margin: 0;
  align-items: baseline;
  gap: 12px;
}

.site-footer p span,
.site-footer__links {
  color: var(--faint);
  font-size: 12px;
}

.site-footer__links {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
}

.not-found {
  width: min(calc(100% - 40px), 760px);
  min-height: calc(100vh - 181px);
  margin: 0 auto;
  padding: 120px 0;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.not-found > p:not(.eyebrow) {
  margin: 25px 0 34px;
  color: var(--muted);
  font-size: 18px;
}

.copy-status {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  color: transparent;
  pointer-events: none;
}

.copy-status:not(:empty) {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #162124;
  color: var(--ink);
  font-size: 12px;
}

@media (max-width: 1060px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__terminal {
    width: min(100%, 700px);
    transform: none;
  }

  .docs-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .page-toc {
    display: none;
  }

  .agent-band {
    grid-template-columns: 1fr 1fr;
  }

  .agent-band .button {
    justify-self: start;
  }
}

@media (max-width: 780px) {
  .top-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .hero__facts {
    grid-template-columns: 1fr 1fr;
  }

  .hero__facts p:nth-child(2) {
    border-right: 0;
  }

  .hero__facts p:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 18px;
  }

  .section-heading > p:last-child {
    margin-top: 24px;
  }

  .workflow-steps {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-steps li:nth-child(2) {
    border-right: 0;
  }

  .workflow-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }

  .agent-band {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .docs-layout {
    display: block;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-article {
    padding-top: 54px;
  }
}

@media (max-width: 520px) {
  .site-header__inner,
  .hero,
  .workflow,
  .topics,
  .agent-band,
  .docs-layout,
  .site-footer__inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand__label {
    display: none;
  }

  .hero__lede {
    font-size: 17px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__facts,
  .workflow-steps,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .hero__facts p,
  .hero__facts p:nth-child(2),
  .workflow-steps li,
  .workflow-steps li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-steps li:last-child,
  .hero__facts p:last-child {
    border-bottom: 0;
  }

  .site-footer__inner,
  .site-footer p {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__inner {
    padding: 28px 0;
  }

  .site-footer p {
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
