:root {
  --ink: #15232b;
  --muted: #5f7078;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --surface-subtle: #eef3f2;
  --line: #d7e1df;
  --line-strong: #b9c9c6;
  --navy: #071624;
  --navy-soft: #0d2633;
  --teal: #147f82;
  --teal-bright: #21d4c2;
  --violet: #745ed9;
  --amber: #c57813;
  --code-bg: #0b1d29;
  --code-ink: #d9e8eb;
  --shadow: 0 18px 55px rgba(7, 22, 36, 0.12);
  --header-height: 64px;
  --content-width: 1180px;
}

:root[data-theme="dark"] {
  --ink: #e4eeef;
  --muted: #a7b8bc;
  --paper: #0b151c;
  --surface: #10212a;
  --surface-subtle: #152b34;
  --line: #29434b;
  --line-strong: #42616a;
  --teal: #45c9bc;
  --amber: #efae4f;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--violet);
}

img {
  max-width: 100%;
}

code,
pre,
.terminal-stage {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: #071624;
  background: #21d4c2;
  border-radius: 4px;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content-width));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: max-content;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  display: block;
  border-radius: 7px;
}

.brand > span > span {
  color: var(--teal);
}

.header-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.header-nav > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}

.header-nav > a:hover,
.header-nav > a.is-active {
  color: var(--ink);
  background: var(--surface-subtle);
}

.header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.search-trigger,
.theme-toggle,
.menu-toggle {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.search-trigger {
  height: 36px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 650;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.search-trigger:hover,
.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  color: #071624;
  background: var(--teal-bright);
  border: 1px solid var(--teal-bright);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.button::after {
  content: "\2192";
}

.button:hover {
  color: #071624;
  background: #66e5d8;
  border-color: #66e5d8;
}

.button.secondary {
  color: #ecf6f7;
  background: transparent;
  border-color: #54707a;
}

.button.secondary:hover {
  color: #ffffff;
  background: #17303c;
  border-color: #7e969e;
}

/* Home */

.hero {
  position: relative;
  overflow: hidden;
  color: #eaf4f5;
  background: var(--navy);
  border-bottom: 1px solid #193746;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 0;
  left: calc(50% - 590px);
  width: 1px;
  height: 100%;
  background: #15303e;
}

.hero::after {
  right: calc(50% - 590px);
  bottom: 0;
  width: 1px;
  height: 46%;
  background: #15303e;
}

.hero-inner {
  position: relative;
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 78px 0 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 790px;
}

.hero-kicker {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 18px;
  color: #bdd1d6;
  font-size: 13px;
  font-weight: 650;
}

.hero-kicker::before {
  width: 8px;
  height: 8px;
  background: var(--teal-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(33, 212, 194, 0.13);
  content: "";
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: 68px;
  font-weight: 780;
  line-height: 1.03;
}

.hero h1 span {
  color: var(--teal-bright);
}

.hero-lead {
  max-width: 720px;
  margin: 22px 0 28px;
  color: #b9ccd1;
  font-size: 20px;
  line-height: 1.55;
}

.hero .button-row {
  margin-bottom: 44px;
}

.terminal-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 310px;
  overflow: hidden;
  color: #dcebed;
  background: #0c202c;
  border: 1px solid #294753;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

.terminal-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 46px;
  padding: 0 16px;
  color: #829ca4;
  background: #102a36;
  border-bottom: 1px solid #294753;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
}

.terminal-lights {
  display: flex;
  gap: 7px;
}

.terminal-lights span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #45606a;
}

.terminal-lights span:nth-child(1) {
  background: #dd6b5d;
}

.terminal-lights span:nth-child(2) {
  background: #d7a842;
}

.terminal-lights span:nth-child(3) {
  background: #43b77d;
}

.terminal-body {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  min-height: 264px;
}

.terminal-output {
  padding: 28px 30px;
  font-size: 14px;
  line-height: 1.8;
}

.terminal-output p {
  margin: 0;
  white-space: pre-wrap;
}

.terminal-output .prompt {
  color: var(--teal-bright);
}

.terminal-output .command {
  color: #f1f7f8;
}

.terminal-output .dim {
  color: #78949d;
}

.terminal-output .success {
  color: #7ed8a7;
}

.terminal-output .violet {
  color: #a997ff;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 3px;
  vertical-align: -3px;
  background: var(--teal-bright);
  animation: cursor-blink 1.1s steps(1) infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.terminal-inspector {
  padding: 25px 26px;
  background: #0a1b25;
  border-left: 1px solid #294753;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.terminal-inspector > span {
  display: block;
  margin-bottom: 20px;
  color: #708b94;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.inspector-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  color: #91aab1;
  font-size: 12px;
  border-bottom: 1px solid #183541;
}

.inspector-row strong {
  color: #dcebed;
  font-size: 13px;
}

.metrics-band {
  color: var(--ink);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.metrics-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
}

.metric {
  min-width: 0;
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}

.metric:first-child {
  border-left: 1px solid var(--line);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  color: var(--ink);
  font-size: 25px;
  line-height: 1.2;
}

.metric span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.home-section {
  padding: 96px 0;
}

.home-section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 690px;
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
}

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

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.flow-step {
  position: relative;
  min-width: 0;
  padding: 28px 28px 30px 0;
}

.flow-step:not(:last-child)::after {
  position: absolute;
  top: 35px;
  right: 18px;
  color: var(--line-strong);
  font-size: 22px;
  content: "\2192";
}

.flow-step > span {
  display: block;
  margin-bottom: 21px;
  color: var(--violet);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 750;
}

.flow-step h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.flow-step p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.package-table {
  border-top: 1px solid var(--line-strong);
}

.package-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(250px, 1.2fr) 130px;
  gap: 32px;
  align-items: center;
  min-height: 92px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.package-row h3,
.package-row p {
  margin: 0;
}

.package-row h3 {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
}

.package-row p {
  color: var(--muted);
  font-size: 14px;
}

.package-kind {
  justify-self: end;
  padding: 4px 9px;
  color: var(--teal);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.code-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 70px;
  align-items: center;
}

.code-copy h2 {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.15;
}

.code-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.plain-list {
  padding: 0;
  margin: 27px 0 30px;
  list-style: none;
}

.plain-list li {
  display: flex;
  gap: 11px;
  align-items: baseline;
  padding: 8px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.plain-list li::before {
  flex: none;
  color: var(--teal);
  content: "//";
  font-family: monospace;
  font-weight: 700;
}

.home-code {
  position: relative;
  min-width: 0;
}

.home-code pre {
  min-height: 420px;
  margin: 0;
  padding: 30px;
  border: 1px solid #294753;
  box-shadow: var(--shadow);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  min-height: 205px;
  padding: 25px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.doc-card:hover {
  color: var(--ink);
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(7, 22, 36, 0.08);
  transform: translateY(-2px);
}

.doc-card .card-index {
  color: var(--violet);
  font-family: monospace;
  font-size: 12px;
  font-weight: 750;
}

.doc-card h3 {
  margin: 25px 0 8px;
  font-size: 19px;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.doc-card .card-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.final-cta {
  padding: 78px 0;
  color: #e7f2f3;
  background: var(--navy);
  border-top: 1px solid #193746;
}

.final-cta .section-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.final-cta h2 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 34px;
}

.final-cta p {
  margin: 0;
  color: #a9c0c6;
}

/* Documentation */

.docs-page {
  min-height: calc(100vh - var(--header-height));
}

.docs-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 760px) 180px;
  gap: 48px;
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
  padding: 52px 0 100px;
}

.docs-sidebar,
.page-toc {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 50px);
  overflow-y: auto;
}

.sidebar-group {
  margin-bottom: 25px;
}

.sidebar-group h2,
.page-toc > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.sidebar-group ul,
.page-toc ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-group a {
  display: block;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  border-left: 2px solid transparent;
}

.sidebar-group a:hover {
  color: var(--ink);
}

.sidebar-group a.is-current {
  color: var(--teal);
  background: var(--surface-subtle);
  border-left-color: var(--teal);
}

.sidebar-mobile-heading,
.sidebar-trigger,
.sidebar-scrim {
  display: none;
}

.doc-content {
  min-width: 0;
  font-size: 16px;
}

.doc-heading {
  margin-bottom: 46px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.doc-heading h1 {
  margin: 0;
  font-size: 43px;
  line-height: 1.12;
}

.doc-lead {
  max-width: 690px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.doc-content > h1:first-of-type {
  display: none;
}

.doc-content h2,
.doc-content h3,
.doc-content h4 {
  position: relative;
  color: var(--ink);
  line-height: 1.3;
}

.doc-content h2 {
  margin: 52px 0 18px;
  padding-top: 3px;
  font-size: 27px;
}

.doc-content h3 {
  margin: 35px 0 13px;
  font-size: 20px;
}

.doc-content h4 {
  margin: 27px 0 10px;
  font-size: 17px;
}

.doc-content p,
.doc-content ul,
.doc-content ol,
.doc-content blockquote,
.doc-content table,
.doc-content pre {
  margin-top: 0;
  margin-bottom: 22px;
}

.doc-content p,
.doc-content li {
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}

.doc-content ul,
.doc-content ol {
  padding-left: 24px;
}

.doc-content li {
  margin: 7px 0;
}

.doc-content li::marker {
  color: var(--teal);
}

.doc-content strong {
  color: var(--ink);
}

.doc-content a {
  font-weight: 550;
}

.doc-content :not(pre) > code {
  padding: 2px 5px;
  color: color-mix(in srgb, var(--teal) 76%, var(--ink));
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

pre {
  position: relative;
  max-width: 100%;
  overflow: auto;
  padding: 22px 24px;
  color: var(--code-ink);
  background: var(--code-bg);
  border: 1px solid #26414d;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.65;
  tab-size: 2;
}

pre code {
  color: inherit;
  background: transparent;
}

.copy-code {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  min-width: 56px;
  height: 29px;
  padding: 0 9px;
  color: #a9c0c6;
  background: #112b37;
  border: 1px solid #35515c;
  border-radius: 5px;
  font: 650 11px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.copy-code:hover {
  color: #ffffff;
  border-color: #6f8a93;
}

.doc-content blockquote {
  padding: 17px 20px;
  color: var(--muted);
  background: var(--surface-subtle);
  border-left: 3px solid var(--violet);
}

.doc-content blockquote > :last-child {
  margin-bottom: 0;
}

.doc-content table {
  display: table;
  width: 100%;
  overflow: auto;
  border-collapse: collapse;
  font-size: 14px;
}

.doc-content th,
.doc-content td {
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.doc-content th {
  color: var(--ink);
  background: var(--surface-subtle);
  font-size: 12px;
  text-transform: uppercase;
}

.doc-content hr {
  height: 1px;
  margin: 44px 0;
  background: var(--line);
  border: 0;
}

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

.page-toc:has(ol:empty) {
  display: none;
}

.page-toc li {
  margin: 5px 0;
}

.page-toc li.is-subsection {
  padding-left: 11px;
}

.page-toc a {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.page-toc a:hover,
.page-toc a.is-visible {
  color: var(--teal);
}

.doc-feedback {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  margin-top: 68px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.doc-feedback strong,
.doc-feedback span {
  display: block;
}

.doc-feedback strong {
  font-size: 14px;
}

.doc-feedback span {
  color: var(--muted);
  font-size: 12px;
}

.doc-feedback a {
  flex: none;
  font-size: 13px;
}

/* Search */

.search-dialog {
  width: min(calc(100% - 32px), 680px);
  max-height: min(720px, calc(100vh - 48px));
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-dialog::backdrop {
  background: rgba(5, 17, 25, 0.66);
  backdrop-filter: blur(5px);
}

.search-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.search-heading .eyebrow {
  margin-bottom: 4px;
}

.search-heading h2 {
  margin: 0;
  font-size: 23px;
}

.dialog-close,
.sidebar-mobile-heading button {
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.search-dialog > label {
  display: block;
  padding: 20px 26px 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-dialog input {
  display: block;
  width: calc(100% - 52px);
  height: 48px;
  margin: 0 26px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
}

.search-dialog input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent);
}

.search-status {
  margin: 13px 26px 7px;
  color: var(--muted);
  font-size: 12px;
}

.search-results {
  max-height: 390px;
  padding: 0 16px 18px;
  margin: 0;
  overflow-y: auto;
  list-style: none;
}

.search-results a {
  display: block;
  padding: 13px 10px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.search-results a:hover {
  background: var(--surface-subtle);
}

.search-results strong,
.search-results span {
  display: block;
}

.search-results strong {
  font-size: 14px;
}

.search-results span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

/* Footer */

.site-footer {
  color: #9db3ba;
  background: #071624;
  border-top: 1px solid #193746;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 40px;
  align-items: center;
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 39px 0;
}

.footer-brand {
  display: flex;
  gap: 11px;
  align-items: center;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: #e7f2f3;
  font-size: 14px;
}

.footer-brand span {
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.site-footer nav a {
  color: #b9cbd0;
  font-size: 12px;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--teal-bright);
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  color: #708991;
  font-size: 11px;
  border-top: 1px solid #193440;
}

/* Rouge */

.highlight .c,
.highlight .c1,
.highlight .cm { color: #6f8e98; }
.highlight .k,
.highlight .kd,
.highlight .kt { color: #a997ff; }
.highlight .s,
.highlight .s1,
.highlight .s2 { color: #79d7a5; }
.highlight .na,
.highlight .nc,
.highlight .nf { color: #53cfc2; }
.highlight .mi,
.highlight .mf { color: #efae4f; }
.highlight .n,
.highlight .p { color: #d9e8eb; }

@media (max-width: 1100px) {
  .docs-shell {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 38px;
    width: min(calc(100% - 40px), 980px);
  }

  .page-toc {
    display: none;
  }
}

@media (max-width: 860px) {
  .header-inner {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .menu-toggle {
    display: block;
  }

  .header-nav {
    position: absolute;
    top: calc(var(--header-height) - 1px);
    right: 14px;
    left: 14px;
    display: none;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow);
  }

  .site-header.is-menu-open .header-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .header-nav > a {
    justify-content: center;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    margin: 4px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .search-trigger {
    flex: 1;
  }

  .hero-inner {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .terminal-body {
    grid-template-columns: 1fr;
  }

  .terminal-inspector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 25px;
    border-top: 1px solid #294753;
    border-left: 0;
  }

  .terminal-inspector > span {
    grid-column: 1 / -1;
  }

  .metrics-inner {
    grid-template-columns: 1fr 1fr;
  }

  .metric:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

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

  .section-heading,
  .code-feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .architecture-flow {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .package-row {
    grid-template-columns: minmax(190px, 0.8fr) minmax(220px, 1.2fr) 100px;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .docs-shell {
    display: block;
    width: min(calc(100% - 32px), 720px);
    padding-top: 28px;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 210;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(310px, calc(100% - 48px));
    max-height: none;
    padding: 22px 18px 50px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .docs-page.is-sidebar-open .docs-sidebar {
    transform: translateX(0);
  }

  .sidebar-mobile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    font-weight: 750;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-trigger {
    display: block;
    width: min(calc(100% - 32px), 720px);
    height: 42px;
    margin: 20px auto 0;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 200;
    inset: 0;
    background: rgba(5, 17, 25, 0.62);
  }

  .docs-page.is-sidebar-open .sidebar-scrim {
    display: block;
  }

  .doc-heading h1 {
    font-size: 36px;
  }

  .doc-content table {
    display: block;
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  .hero-inner,
  .section-inner,
  .metrics-inner,
  .footer-inner {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .hero-inner {
    padding: 48px 0 54px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero .button-row {
    margin-bottom: 32px;
  }

  .button {
    flex: 1 1 180px;
  }

  .terminal-stage {
    min-height: 400px;
  }

  .terminal-bar {
    grid-template-columns: auto 1fr;
  }

  .terminal-bar > span:last-child {
    display: none;
  }

  .terminal-bar > span:nth-child(2) {
    justify-self: end;
  }

  .terminal-output {
    padding: 23px 18px;
    font-size: 12px;
  }

  .terminal-inspector {
    grid-template-columns: 1fr 1fr;
    padding: 20px 18px;
  }

  .metrics-inner {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    padding: 20px 15px;
  }

  .metric strong {
    font-size: 21px;
  }

  .home-section {
    padding: 70px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .code-copy h2 {
    font-size: 32px;
  }

  .architecture-flow,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .flow-step {
    padding-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-step:last-child {
    border-bottom: 0;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .package-row {
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    padding: 18px 0;
  }

  .package-row p {
    grid-column: 1 / -1;
  }

  .package-kind {
    grid-column: 2;
    grid-row: 1;
  }

  .home-code pre {
    min-height: auto;
    padding: 22px 17px;
    font-size: 11px;
  }

  .final-cta .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-feedback {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer p {
    grid-column: 1;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
