:root {
  color-scheme: light;
  --background: oklch(1 0 0);
  --foreground: oklch(.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(.145 0 0);
  --primary: oklch(.205 0 0);
  --primary-foreground: oklch(.985 0 0);
  --secondary: oklch(.97 0 0);
  --secondary-foreground: oklch(.205 0 0);
  --muted: oklch(.97 0 0);
  --muted-foreground: oklch(.556 0 0);
  --accent: oklch(.97 0 0);
  --accent-foreground: oklch(.205 0 0);
  --border: oklch(.922 0 0);
  --input: oklch(.922 0 0);
  --ring: oklch(.708 0 0);
  --code: oklch(.17 .005 285);
  --code-foreground: oklch(.985 0 0);
  --success: oklch(.527 .154 150);
  --radius: .625rem;
  --shell: min(1120px, calc(100% - 48px));
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
code, pre { font-family: var(--mono); }
code { font-size: .9em; }
.shell { width: var(--shell); margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.copy-fallback { position: fixed; inset: 0 auto auto 0; opacity: 0; pointer-events: none; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 64px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 94%, transparent);
  color: var(--foreground);
}
.header-inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.wordmark {
  width: max-content;
  color: var(--foreground);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -.9px;
  line-height: 1;
  text-decoration: none;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a,
.site-footer nav a {
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a { position: relative; padding-block: 21px; }
.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--foreground);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .16s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] { color: var(--foreground); }
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-action { justify-self: end; }
.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  transition: background .15s ease, opacity .15s ease;
}
.button--accent { background: var(--primary); color: var(--primary-foreground); }
.button--accent:hover { opacity: .9; }

.dark-band,
.light-band { background: var(--background); color: var(--foreground); }
.hero { padding: 82px 0 68px; text-align: center; }
.hero-grid { display: block; }
.hero-copy { max-width: 900px; margin-inline: auto; }
.hero h1 {
  max-width: 940px;
  margin: 0 auto;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 730;
  letter-spacing: -.055em;
  line-height: 1.03;
}
.hero-copy > p {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted-foreground);
  font-size: 18px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--foreground); }
.text-link span { transition: transform .15s ease; }
.text-link:hover span { transform: translateX(3px); }
.text-link--dark { color: var(--foreground); }

.terminal {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
}
.terminal--hero {
  max-width: 760px;
  margin: 34px auto 0;
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 24px rgb(0 0 0 / 5%);
}
.command-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.terminal--hero .command-row { padding: 13px 13px 13px 18px; }
.command-row code {
  min-width: 0;
  overflow-x: auto;
  padding: 5px 0;
  color: inherit;
  white-space: nowrap;
}
.prompt { color: var(--success); }
.copy-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 3px);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.copy-button:hover,
.copy-button:focus-visible { background: var(--accent); }
.copy-button.is-copied { border-color: var(--foreground); background: var(--foreground); color: var(--background); }

.quickstart { padding: 12px 0 24px; }
.quickstart > .shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.indexed-heading {
  margin: 0;
  color: var(--foreground);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.quickstart .indexed-heading { padding: 24px 26px 4px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 24px 26px 28px;
  list-style: none;
}
.steps li { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--background);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.step-content { min-width: 0; }
.step-content h3 { margin: 3px 0 12px; font-size: 14px; font-weight: 600; }
.step-content > p { margin: 8px 0 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.5; }
.step-content > p code { color: var(--foreground); }
.command-row--compact,
.command-row--docs,
.command-row--inline {
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--muted);
  color: var(--foreground);
}
.command-row--compact { align-items: flex-start; flex-direction: column; gap: 4px; }
.command-row--compact code { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.command-row--compact {
  position: relative;
  min-height: 78px;
  padding-right: 44px;
}
.command-row--compact .copy-button {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 30px;
  min-height: 30px;
  padding: 0;
  font-size: 0;
}
.command-row--compact .copy-button::before { content: "⧉"; font-size: 14px; }
.command-row--compact .copy-button.is-copied::before { content: "✓"; }
.update-strip {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 26px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 55%, white);
}
.update-strip > div:first-child { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.update-icon { color: var(--muted-foreground); font-size: 18px; line-height: 1; }
.command-row--inline { background: var(--background); }

.documentation-choices { padding: 0 0 24px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.choice-grid article {
  position: relative;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.choice-grid article:hover { border-color: var(--ring); box-shadow: 0 4px 14px rgb(0 0 0 / 4%); }
.choice-grid .indexed-heading { font-size: 17px; }
.choice-grid p { max-width: 430px; margin: 8px 0 2px; color: var(--muted-foreground); font-size: 14px; }

.agent-section { padding: 0 0 72px; }
.agent-section > .shell {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.indexed-heading--dark { color: var(--foreground); }
.terminal--prompt { margin-top: 18px; background: var(--muted); }
.terminal--prompt pre { margin: 0; overflow-x: auto; padding: 20px; color: var(--foreground); font-size: 13px; line-height: 1.55; }
.copy-button--floating { position: absolute; top: 12px; right: 12px; }
.terminal--prompt pre { padding-top: 56px; }

.site-footer { border-top: 1px solid var(--border); background: var(--background); color: var(--foreground); }
.footer-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand > span { color: var(--muted-foreground); font-size: 12px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-inner nav a:hover { color: var(--foreground); }

/* Documentation */
.docs-title { padding: 48px 0 20px; background: var(--background); color: var(--foreground); }
.docs-title h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.docs-title p { max-width: 650px; margin: 12px 0 0; color: var(--muted-foreground); font-size: 16px; }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 730px); gap: 64px; align-items: start; padding-block: 38px 84px; }
.docs-sidebar { position: sticky; top: 28px; padding-right: 24px; border-right: 1px solid var(--border); }
.docs-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.docs-sidebar a {
  position: relative;
  padding: 7px 10px;
  border-radius: calc(var(--radius) - 3px);
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.docs-sidebar a:hover,
.docs-sidebar a[aria-current="true"] { background: var(--muted); color: var(--foreground); }
.docs-sidebar a[aria-current="true"]::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px -2px;
  width: 2px;
  border-radius: 2px;
  background: var(--foreground);
}
.docs-content { min-width: 0; }
.docs-content section { padding: 0 0 34px; border-bottom: 1px solid var(--border); }
.docs-content section + section { padding-top: 34px; }
.docs-content h2 { margin: 0 0 8px; font-size: 23px; font-weight: 650; letter-spacing: -.03em; line-height: 1.25; }
.heading-anchor { margin-left: 6px; color: var(--muted-foreground); font-family: var(--mono); font-size: .6em; text-decoration: none; vertical-align: middle; }
.heading-anchor:hover { color: var(--foreground); }
.docs-content p { margin: 10px 0 16px; color: color-mix(in oklab, var(--foreground) 76%, white); }
.docs-content p code,
.callout code { padding: .1em .32em; border-radius: 4px; background: var(--muted); color: var(--foreground); }
.docs-content a { color: var(--foreground); font-weight: 550; text-underline-offset: 3px; }
.command-row--docs {
  margin: 14px 0;
  border-color: color-mix(in oklab, var(--code) 80%, white);
  background: var(--code);
  color: var(--code-foreground);
}
.command-row--docs code { font-size: 13px; }
.command-row--docs .copy-button { border-color: oklch(.38 0 0); background: transparent; color: var(--code-foreground); }
.command-row--docs .copy-button:hover { background: oklch(.28 0 0); }
.code-block {
  margin: 14px 0 18px;
  overflow-x: auto;
  padding: 17px;
  border: 1px solid color-mix(in oklab, var(--code) 80%, white);
  border-radius: calc(var(--radius) - 2px);
  background: var(--code);
  color: var(--code-foreground);
  font-size: 13px;
  line-height: 1.55;
}
.callout {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
}
.callout--warning { background: var(--muted); }
.command-pair,
.command-list { display: grid; gap: 1px; margin: 14px 0; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); overflow: hidden; }
.command-pair { grid-template-columns: 1fr 1fr; }
.command-pair code,
.command-list code { display: block; overflow-x: auto; padding: 10px 13px; background: var(--muted); color: var(--foreground); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 920px) {
  :root { --shell: min(100% - 36px, 760px); }
  .header-inner { grid-template-columns: auto 1fr; gap: 18px; }
  .main-nav { justify-self: end; gap: 20px; }
  .header-action { display: none; }
  .hero { padding-top: 64px; }
  .steps { grid-template-columns: 1fr; }
  .command-row--compact { flex-direction: row; align-items: center; }
  .docs-layout { grid-template-columns: 1fr; gap: 28px; }
  .docs-sidebar { position: static; overflow-x: auto; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .docs-sidebar nav { width: max-content; flex-direction: row; gap: 4px; }
  .docs-sidebar a[aria-current="true"]::before { display: none; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); }
  body { font-size: 14px; }
  .site-header { padding: 14px 0 8px; }
  .header-inner { min-height: auto; grid-template-columns: 1fr; }
  .main-nav { width: 100%; justify-self: start; justify-content: space-between; gap: 10px; }
  .main-nav a { padding: 7px 0 10px; font-size: 12px; }
  .hero { padding: 54px 0 44px; }
  .hero h1 { font-size: clamp(39px, 12vw, 52px); }
  .hero-copy > p { font-size: 16px; }
  .terminal--hero .command-row,
  .command-row--docs { align-items: stretch; flex-direction: column; }
  .terminal--hero .command-row code,
  .command-row--docs code { width: 100%; overflow: visible; white-space: normal; overflow-wrap: anywhere; text-align: left; }
  .copy-button { align-self: flex-end; }
  .quickstart .indexed-heading { padding-inline: 18px; }
  .steps { padding-inline: 18px; }
  .update-strip { grid-template-columns: 1fr; padding-inline: 18px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-grid article { min-height: 0; padding: 20px; }
  .agent-section > .shell { padding: 20px; }
  .terminal--prompt pre { font-size: 11px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 28px; }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-inner nav { gap: 20px; }
  .docs-title { padding-top: 36px; }
  .docs-layout { padding-top: 22px; }
  .command-pair { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .docs-sidebar, .copy-button { display: none !important; }
  .docs-layout { display: block; width: auto; padding: 0; }
  .code-block, .command-row--docs, .command-list code, .command-pair code { border: 1px solid #777; background: white; color: black; }
}
