@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0a0c0e;
  --panel: #10151a;
  --panel-rail: #0e1317;
  --border: #232a31;
  --border-strong: #354049;
  --text: #ece7df;
  --muted: #8f9aa4;
  --accent: #ff7a5c;
  --accent-soft: #ff7a5c1a;
  --accent-deep: #c8432a;
  font-family: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  background: var(--ink);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(760px 420px at 16% -12%, #ff7a5c12, transparent 68%),
    var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

::selection {
  background: #ff7a5c45;
  color: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.container {
  width: min(100% - 64px, 1080px);
  margin-inline: auto;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0c1013f2;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.brand-mark {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}

.nav-source {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 9px 13px;
}

.nav-source:hover {
  border-color: var(--accent);
}

/* Hero */

.hero {
  padding-block: 76px 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 60px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5.4vw, 62px);
  letter-spacing: -0.05em;
}

h1 span {
  color: var(--accent);
}

.hero-description {
  max-width: 46ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s ease;
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

.button-primary:hover {
  background: #ff967e;
  color: var(--ink);
}

.text-link {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero-note {
  margin: 22px 0 0;
  color: #6d7883;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

/* Specimen card */

.specimen {
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  background: var(--panel);
  padding: 16px 18px 14px;
}

.specimen-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
}

.specimen dl {
  margin: 0;
}

.specimen dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #1a2026;
}

.specimen dt {
  color: var(--muted);
  font-size: 11px;
}

.specimen dd {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  text-align: right;
}

.specimen-foot {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

/* Panels */

.setup {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 0;
  padding-bottom: 76px;
  align-items: stretch;
}

.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}

.panel:first-child {
  padding-right: 40px;
  border-right: 1px solid var(--border);
}

.panel:last-child {
  padding-left: 40px;
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2 {
  margin: 0;
  font-size: 18px;
}

.panel > p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.mono {
  color: #6f8093;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.code-block {
  margin: 0 0 18px;
  padding: 14px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #07090b;
  color: #cfd6dc;
  font-size: 12px;
  line-height: 1.9;
  overflow-x: auto;
}

.code-block.compact {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
}

.prompt {
  color: var(--accent);
  user-select: none;
}

.code-block.copyable {
  position: relative;
  padding-right: 86px;
  /* The install line is longer than narrow viewports: wrap it so the
     whole command stays visible and the copy button stays reachable. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #0c1013;
  color: #6f8093;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.code-copy:hover {
  color: #cfd6dc;
  border-color: #3a4a56;
}

.code-copy.copied {
  color: var(--accent);
  border-color: var(--accent);
}

.code-copy:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.panel-note {
  font-size: 11.5px;
  color: #6f8093;
}

.requirements {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}

.requirements li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.req-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--border-strong);
}

.panel-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: #b9cad9;
}

/* Steps */

.steps {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.steps li {
  display: flex;
  min-width: 0;
  gap: 14px;
}

.steps li > div {
  min-width: 0;
}

.step-number {
  color: var(--accent);
  font-size: 10px;
  padding-top: 4px;
  flex: none;
  letter-spacing: 0.08em;
}

.steps strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.steps p code {
  padding: 1px 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #090d10;
  color: #dbe6f0;
  font-size: 11px;
}

/* Bundle visual */

.bundle-section {
  padding-block: 76px;
  border-block: 1px solid var(--border);
  background:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px),
    var(--panel-rail);
  background-size: 52px 52px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.section-heading .eyebrow {
  justify-content: flex-start;
  margin-bottom: 12px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(27px, 3.9vw, 40px);
}

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

.visual {
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  overflow: hidden;
  background: var(--ink);
}

.visual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.visual-toolbar .status-dot {
  margin-right: 8px;
}

.bundle-code {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  border-left: 2px solid var(--accent-deep);
  background: #07090b;
  color: #cfd6dc;
  font-size: 12px;
  line-height: 1.85;
}

figcaption {
  padding: 11px 18px;
  border-top: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 10.5px;
}

/* Components */

.components {
  padding-block: 78px 70px;
}

.component-table,
.status-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.component-table tbody,
.status-table tbody {
  counter-reset: row;
}

.component-table tbody th::before,
.status-table tbody th::before {
  counter-increment: row;
  content: counter(row, decimal-leading-zero);
  display: inline-block;
  width: 2.4em;
  color: #5b666f;
  font-weight: 400;
}

.component-table thead th,
.status-table thead th {
  padding: 0 14px 11px;
  border-bottom: 1px solid var(--border-strong);
  color: #6f8093;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.component-table tbody th,
.status-table tbody th {
  padding: 15px 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: top;
}

.component-table tbody td,
.status-table tbody td {
  padding: 15px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}

.component-table tbody th,
.status-table tbody th {
  border-top: 1px solid var(--border);
}

.component-table thead th:first-child,
.component-table tbody th:first-child,
.status-table thead th:first-child,
.status-table tbody th:first-child {
  padding-left: 0;
}

.component-table thead th:last-child,
.component-table tbody td:last-child,
.status-table thead th:last-child,
.status-table tbody td:last-child {
  padding-right: 0;
}

.tag {
  display: inline-block;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 2px 7px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.tag-always {
  border-color: #ff7a5c66;
  background: var(--accent-soft);
  color: var(--accent);
}

.section-footnote {
  margin: 22px 0 0;
  color: #6f8093;
  font-size: 12px;
}

/* Options */

.options {
  padding-block: 64px 72px;
  border-top: 1px solid var(--border);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.option-grid article {
  padding: 16px 20px 2px 0;
  border-top: 1px solid var(--border-strong);
}

.option-grid article + article {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.option-grid article:last-child {
  background: none;
}

.option-number {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.option-grid h3 {
  margin: 12px 0 9px;
  font-size: 18px;
}

.option-grid p {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 13px;
}

.option-highlight {
  border-top: 2px solid var(--accent);
  padding-top: 15px;
}

.option-highlight h3 {
  color: var(--accent);
}

/* How it works */

.how {
  padding-block: 68px;
  border-block: 1px solid var(--border);
  background: var(--panel);
}

.how-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.how-inner > div:first-child {
  order: 2;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.how-inner > ol.flow {
  order: 1;
}

.how-inner .eyebrow {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.how-inner > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13.5px;
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 0;
}

.flow li + li {
  border-top: 1px solid var(--border);
}

.flow-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--ink);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.flow .mono {
  display: block;
  margin-bottom: 6px;
  font-size: 9.5px;
}

.flow strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.flow p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

/* Status */

.status {
  padding-block: 76px 84px;
}

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  min-height: 112px;
  padding-block: 28px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: #6f8093;
}

.site-footer .brand {
  font-size: 17px;
}

.site-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Docs page */

.docs-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 64px;
  padding-block: 54px 86px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 96px;
  font-size: 12px;
}

.docs-nav .mono {
  margin-bottom: 14px;
}

.docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  border-left: 1px solid var(--border);
}

.docs-nav a {
  display: block;
  margin-left: -1px;
  padding-left: 14px;
  border-left: 1px solid transparent;
  color: var(--muted);
}

.docs-nav a:hover {
  border-left-color: var(--accent);
  color: var(--text);
}

.docs-body {
  max-width: 700px;
}

.docs-body .eyebrow {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.docs-body h1 {
  margin-bottom: 15px;
  font-size: clamp(29px, 4.4vw, 42px);
}

.docs-lead {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.docs-body h2 {
  margin: 46px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 21px;
}

.docs-body section:first-of-type h2 {
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
}

.docs-body h3 {
  margin: 26px 0 8px;
  color: #b9cad9;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-body p,
.docs-body li,
.docs-body dd {
  color: var(--muted);
  font-size: 13.5px;
}

.docs-body p {
  margin-bottom: 15px;
}

.docs-body ul {
  margin: 0 0 16px;
  padding-left: 17px;
  display: grid;
  gap: 6px;
}

.docs-body code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #090d10;
  color: #dbe6f0;
  font-size: 12px;
}

.docs-body pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

.docs-body .code-block {
  margin-bottom: 18px;
}

.docs-table {
  width: 100%;
  margin-bottom: 18px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.docs-table th,
.docs-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.docs-table thead th {
  padding-top: 0;
  border-top: 0;
  border-bottom: 1px solid var(--border-strong);
  color: #6f8093;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-table tbody th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.docs-table tbody td {
  color: var(--muted);
}

.docs-table th:first-child,
.docs-table td:first-child {
  padding-left: 0;
}

.docs-errors {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0 0 20px;
}

.docs-errors dt code {
  border-color: #ff7a5c4d;
  color: var(--accent);
}

.docs-errors dd {
  margin: 0;
  font-size: 13px;
}

/* Responsive */

@media (max-width: 1100px) {
  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .option-grid article + article {
    border-left: 0;
    padding-left: 0;
  }

  .option-grid article {
    padding: 16px 24px 12px 0;
  }

  .option-grid article:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid var(--border);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .setup,
  .how-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .panel:first-child {
    padding-right: 0;
    padding-bottom: 26px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .panel:last-child {
    padding-left: 0;
  }

  .how-inner {
    gap: 30px;
  }

  .how-inner > div:first-child {
    order: 0;
  }

  .how-inner > ol.flow {
    order: 1;
  }

  .option-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .option-grid article {
    padding: 16px 0 12px;
  }

  .option-grid article + article {
    padding-left: 0;
    border-left: 0;
  }

  nav {
    gap: 18px;
  }

  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-block: 40px 64px;
  }

  .docs-nav {
    position: static;
  }

  .docs-nav ul {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 11px;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }

  .docs-nav a {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 36px);
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 12px;
    padding-block: 10px;
  }

  .brand {
    font-size: 18px;
  }

  nav {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 12px;
    font-size: 11.5px;
  }

  .nav-source {
    padding: 7px 10px;
  }

  .nav-section {
    display: none;
  }

  .hero {
    padding-block: 62px 48px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-description {
    font-size: 14px;
  }

  .setup {
    padding-bottom: 56px;
  }

  .bundle-section,
  .components,
  .options,
  .how,
  .status {
    padding-block: 52px;
  }

  .bundle-code {
    font-size: 11px;
    line-height: 1.75;
  }

  .component-table,
  .status-table {
    font-size: 12px;
  }

  /* Stack rows into two-line entries: name and state on one line, detail below. */
  .component-table thead,
  .status-table thead {
    display: none;
  }

  .component-table tbody tr,
  .status-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
  }

  .component-table tbody th,
  .component-table tbody td,
  .status-table tbody th,
  .status-table tbody td {
    padding: 0;
    border: 0;
  }

  .component-table tbody th,
  .status-table tbody th {
    grid-column: 1;
  }

  .component-table tbody td:last-child,
  .status-table tbody td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .component-table tbody td:nth-child(2),
  .status-table tbody td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 2px;
    white-space: normal;
  }

  .docs-errors {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .docs-errors dd {
    margin-bottom: 10px;
  }

  .docs-table {
    font-size: 12px;
  }

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

@media (max-width: 380px) {
  .brand {
    font-size: 16px;
    gap: 8px;
  }

  .brand-mark {
    width: 19px;
    height: 19px;
  }

  nav {
    gap: 10px;
    font-size: 11px;
  }

  .nav-source {
    padding: 6px 8px;
  }
}

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

  .button {
    transition: none;
  }
}
