:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-strong: #171b22;
  --text: #171b22;
  --text-soft: #626873;
  --text-inverse: #f7f7f4;
  --line: #dfe1dc;
  --line-strong: #c7cac3;
  --accent: #f2c94c;
  --accent-bright: #ffda51;
  --accent-ink: #171b22;
  --code-bg: #11151b;
  --code-text: #e9ecf0;
  --shadow: 0 24px 70px rgb(30 35 43 / 12%);
  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --shell: min(1180px, calc(100% - 48px));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1217;
  --surface: #171b22;
  --surface-strong: #f2f3ef;
  --text: #f2f3ef;
  --text-soft: #9aa1ac;
  --text-inverse: #171b22;
  --line: #2b3039;
  --line-strong: #3a414d;
  --accent: #e8bd3e;
  --accent-bright: #f8cf4b;
  --accent-ink: #171b22;
  --code-bg: #0a0d11;
  --code-text: #eef0f3;
  --shadow: 0 28px 90px rgb(0 0 0 / 35%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 50% 0 / 72px 72px,
    linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 50% 0 / 72px 72px,
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0, transparent 32rem);
  content: "";
  pointer-events: none;
}

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

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

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.link-with-icon {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

button {
  font: inherit;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand img {
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--line));
  border-radius: 0.8rem;
  box-shadow: 0 6px 20px rgb(232 189 62 / 22%);
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 650;
}

.site-nav > a {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  transition: color 160ms ease;
}

.site-nav > a:hover {
  color: var(--text);
}

.theme-toggle {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.theme-toggle:hover {
  transform: rotate(8deg);
  border-color: var(--line-strong);
  background: var(--surface);
}

.theme-toggle svg {
  position: absolute;
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: opacity 160ms ease, transform 220ms ease;
}

:root[data-theme="light"] .sun-icon,
:root[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

:root[data-theme="light"] .moon-icon,
:root[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: scale(0.55) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  min-height: min(760px, calc(100svh - 92px));
  padding-block: 5rem 7rem;
}

.eyebrow {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1.75rem;
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}

.eyebrow b {
  font-weight: inherit;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 770;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.hero h1 > span,
.hero h1 em,
.hero h1 em span {
  display: block;
}

.hero h1 em span {
  white-space: nowrap;
}

.hero h1 em {
  color: var(--text-soft);
  font-style: normal;
  font-weight: 520;
}

.hero-lead {
  max-width: 650px;
  margin: 2rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.925rem;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 30px rgb(232 189 62 / 25%);
}

.button-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 16px 34px rgb(232 189 62 / 32%);
}

.button-quiet {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.hero-flow {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin: 3rem 0 0;
  color: var(--text-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.025em;
}

.hero-flow i {
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.logo-stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.logo-stage::before {
  position: absolute;
  z-index: -2;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(242 201 76 / 25%) 0, transparent 67%);
  content: "";
  filter: blur(20px);
}

.logo-stage::after {
  position: absolute;
  z-index: -1;
  inset: -1.15rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 2.6rem;
  content: "";
  transform: rotate(3deg);
}

.logo-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.logo-orbit {
  position: absolute;
  z-index: 2;
  top: -1.7rem;
  right: -1.7rem;
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
}

.logo-orbit::before,
.logo-orbit::after {
  position: absolute;
  background: var(--line-strong);
  content: "";
}

.logo-orbit::before {
  top: 50%;
  left: -0.75rem;
  width: calc(100% + 1.5rem);
  height: 1px;
}

.logo-orbit::after {
  top: -0.75rem;
  left: 50%;
  width: 1px;
  height: calc(100% + 1.5rem);
}

.logo-caption {
  position: absolute;
  z-index: 3;
  right: 1.1rem;
  bottom: 1.1rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgb(23 27 34 / 18%);
  border-radius: 999px;
  background: rgb(255 255 255 / 86%);
  color: #171b22;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.product-section,
.install-section {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.section-index {
  margin: 0;
  color: var(--text-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5.4vw, 5rem);
  font-weight: 680;
  letter-spacing: -0.065em;
  line-height: 1;
}

.section-copy > p {
  max-width: 620px;
  margin: 1.5rem 0 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.product-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 18px 70px rgb(25 30 38 / 6%);
}

.product-name {
  display: flex;
  min-height: 430px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-strong);
  color: var(--text-inverse);
}

.product-name > div {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: color-mix(in srgb, var(--text-inverse) 62%, transparent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.product-name strong {
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.product-name a {
  color: color-mix(in srgb, var(--text-inverse) 68%, transparent);
  font-size: 0.875rem;
  transition: color 160ms ease;
}

.product-name a .icon {
  width: 1rem;
  height: 1rem;
}

.product-name a:hover {
  color: var(--text-inverse);
}

.feature-list {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.feature-row {
  display: grid;
  min-height: 143px;
  padding: 2rem clamp(1.5rem, 4vw, 3.25rem);
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-row > span {
  color: var(--text-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
}

.feature-row p {
  max-width: 510px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
}

.feature-row code {
  font-size: 0.84em;
  font-weight: 500;
}

.feature-row-muted p {
  color: var(--text-soft);
  font-size: clamp(0.95rem, 1.55vw, 1.12rem);
  font-weight: 520;
}

.install-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.install-intro {
  display: block;
  margin: 0;
}

.install-intro h2 {
  margin-top: 2rem;
}

.install-intro > p:last-child {
  max-width: 390px;
  margin: 1.75rem 0 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.install-grid {
  display: grid;
  gap: 1rem;
}

.command-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 12px 40px rgb(25 30 38 / 5%);
}

.command-heading {
  display: flex;
  min-height: 92px;
  padding: 1.15rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.command-heading > div {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.platform-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  font-weight: 800;
}

.command-heading h2,
.command-heading h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.25;
}

.command-heading p {
  margin: 0.1rem 0 0;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.copy-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.copy-button .icon {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-button .icon-check {
  transform: scale(0.55);
  opacity: 0;
}

.copy-button[data-state="copied"] .icon-copy {
  transform: scale(0.55);
  opacity: 0;
}

.copy-button[data-state="copied"] .icon-check {
  transform: scale(1);
  opacity: 1;
}

.copy-button:hover {
  border-color: var(--line-strong);
  background: var(--bg);
  color: var(--text);
}

.copy-button[data-state="copied"] {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  color: var(--text);
}

.command-card pre {
  margin: 0;
  padding: 1.4rem 1.5rem;
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 0.76rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt {
  color: var(--accent-bright);
}

.install-footer {
  display: flex;
  padding: 0.75rem 0.25rem 0;
  align-items: center;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.install-footer p {
  margin: 0;
}

.install-footer code,
.install-note code {
  color: var(--text);
}

.install-footer a,
.compact-footer a {
  color: var(--text);
  font-weight: 700;
}

.site-footer {
  display: grid;
  min-height: 150px;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.8rem;
}

.footer-brand {
  justify-self: start;
  color: var(--text);
  font-size: 0.95rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 0.65rem;
}

.site-footer > a:last-child {
  justify-self: end;
  color: var(--text);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.copy-toast {
  position: fixed;
  z-index: 20;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.7rem 1rem;
  transform: translateY(1rem);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-inverse);
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.copy-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Documentation */
.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  padding-block: 3.5rem 7rem;
  border-top: 1px solid var(--line);
}

.docs-sidebar {
  position: sticky;
  top: 2rem;
}

.docs-sidebar-title {
  display: flex;
  padding-bottom: 1rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-weight: 780;
  letter-spacing: -0.03em;
}

.docs-sidebar-title small {
  color: var(--text-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
}

.docs-toc {
  display: grid;
  margin-top: 0.75rem;
}

.docs-toc a {
  padding: 0.45rem 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.35;
  transition: color 160ms ease, transform 160ms ease;
}

.docs-toc a:hover {
  transform: translateX(3px);
  color: var(--text);
}

.docs-content {
  width: min(100%, 860px);
  min-width: 0;
}

.docs-hero {
  padding-block: clamp(2rem, 4vw, 4rem) clamp(5rem, 9vw, 8rem);
}

.docs-hero h1 {
  max-width: 770px;
  margin: 0;
  font-size: clamp(3.6rem, 7.5vw, 7rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.docs-hero > p:not(.eyebrow) {
  max-width: 650px;
  margin: 2rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
}

.docs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.doc-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  scroll-margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.doc-heading {
  display: grid;
  margin-bottom: 3rem;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.doc-heading > span {
  padding-top: 0.5rem;
  color: var(--text-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.doc-heading h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1;
}

.doc-heading p {
  max-width: 590px;
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.doc-section h3 {
  margin: 3rem 0 0.8rem;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.doc-section > p,
.doc-columns p,
.workflow-steps p {
  max-width: 760px;
  margin: 1.1rem 0 0;
  color: var(--text-soft);
}

.doc-section p code,
.doc-section td code,
.doc-section th code {
  padding: 0.08em 0.32em;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
  font-size: 0.87em;
}

.doc-section > pre,
.doc-columns pre,
.workflow-steps pre {
  margin: 1rem 0 0;
  padding: 1.25rem 1.4rem;
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--line) 38%, transparent);
  border-radius: 1rem;
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 0.79rem;
  line-height: 1.75;
}

.docs-command-grid {
  display: grid;
  gap: 1rem;
}

.docs-command-grid + p {
  margin-top: 1.75rem;
}

.requirement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.requirement-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.requirement-card strong,
.requirement-card span {
  display: block;
}

.requirement-card strong {
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.requirement-card span {
  margin-top: 0.1rem;
  color: var(--text-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.requirement-card p {
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.doc-callout {
  display: grid;
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
  gap: 1.5rem;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.doc-callout strong {
  font-size: 0.9rem;
  line-height: 1.4;
}

.doc-callout p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.doc-callout-warning {
  border-color: color-mix(in srgb, #e88b3e 55%, var(--line));
  background: color-mix(in srgb, #e88b3e 9%, var(--surface));
}

.doc-columns {
  display: grid;
  margin-top: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.doc-columns > div {
  min-width: 0;
}

.doc-columns h3 {
  margin-top: 0;
}

.table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.status-grid {
  display: grid;
  margin-top: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.status-grid > div {
  display: grid;
  padding: 1rem 1.1rem;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-grid > div:nth-child(2n) {
  border-right: 0;
}

.status-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.status-grid p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.status {
  justify-self: start;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.66rem;
  font-weight: 750;
}

.status-ok {
  background: #dff4e5;
  color: #195c2a;
}

.status-warn {
  background: #fff1c2;
  color: #705000;
}

.status-fail {
  background: #fee2df;
  color: #8b2821;
}

.status-skip {
  background: color-mix(in srgb, var(--line) 75%, var(--surface));
  color: var(--text-soft);
}

.workflow-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.workflow-steps > li {
  display: grid;
  padding: 2.2rem 0;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.workflow-steps > li:first-child {
  padding-top: 0;
}

.workflow-steps > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.workflow-steps > li > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 750;
}

.workflow-steps h3 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.exit-codes {
  display: grid;
  margin-top: 2rem;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.exit-codes > div {
  display: grid;
  padding: 1.3rem;
  border-right: 1px solid var(--line);
}

.exit-codes > div:last-child {
  border-right: 0;
}

.exit-codes strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.8rem;
  line-height: 1;
}

.exit-codes span {
  margin-top: 0.5rem;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.command-reference {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.command-reference > div {
  display: grid;
  min-height: 58px;
  padding: 0.9rem 1rem;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.25fr);
  gap: 1.25rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.command-reference > div:last-child {
  border-bottom: 0;
}

.command-reference code {
  font-size: 0.77rem;
  font-weight: 700;
}

.command-reference span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.docs-end {
  display: flex;
  padding-top: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.docs-end a:hover {
  color: var(--text);
}

.docs-up-icon {
  transform: rotate(-90deg);
}

.docs-footer {
  margin-top: 7rem;
}

/* Standalone installer */
.install-page {
  min-height: 100svh;
}

.install-main {
  display: grid;
  min-height: calc(100svh - 242px);
  padding-block: clamp(4rem, 9vw, 8rem);
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.install-hero {
  position: sticky;
  top: 3rem;
}

.back-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 3rem;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.install-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 740;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.install-hero > p:last-child {
  max-width: 370px;
  margin: 1.5rem 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.standalone-install {
  gap: 1.25rem;
}

.standalone-install .command-card pre {
  min-height: 112px;
  padding: 1.65rem;
  font-size: 0.82rem;
}

.install-note {
  display: grid;
  padding: 1.4rem 1.5rem;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.install-note > div {
  display: grid;
  gap: 0.2rem;
}

.install-note span {
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.install-note p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

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

.compact-footer a {
  justify-self: end;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 82%, transparent);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .docs-shell {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .docs-sidebar {
    position: static;
    min-width: 0;
  }

  .docs-toc {
    display: flex;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    gap: 1.25rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .docs-toc a {
    flex: none;
    white-space: nowrap;
  }

  .docs-toc a:hover {
    transform: none;
  }

  .docs-content {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 5rem 7rem;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
  }

  .hero h1 {
    max-width: 850px;
  }

  .logo-stage {
    width: min(78vw, 460px);
  }

  .section-intro {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-name {
    min-height: 310px;
  }

  .install-section,
  .install-main {
    grid-template-columns: 1fr;
  }

  .install-hero {
    position: static;
  }

  .install-intro > p:last-child {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 28px, 1180px);
    --radius-lg: 1.35rem;
    --radius-md: 1rem;
  }

  body {
    background-size: 48px 48px;
  }

  .site-header {
    min-height: 76px;
  }

  .site-nav {
    gap: 0.5rem;
  }

  .site-nav > a:not(:last-of-type) {
    display: none;
  }

  .site-nav > a {
    padding: 0.5rem;
  }

  .docs-shell {
    padding-block: 2rem 4rem;
  }

  .docs-hero {
    padding-block: 2rem 5rem;
  }

  .docs-hero h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .docs-hero-actions .button {
    width: 100%;
  }

  .doc-section {
    padding-block: 4.5rem;
  }

  .doc-heading {
    margin-bottom: 2.5rem;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .doc-heading > span {
    padding-top: 0;
  }

  .doc-heading h2 {
    font-size: 2.65rem;
  }

  .requirement-grid,
  .doc-columns,
  .status-grid,
  .doc-callout,
  .command-reference > div {
    grid-template-columns: 1fr;
  }

  .status-grid > div,
  .status-grid > div:nth-child(2n),
  .status-grid > div:nth-last-child(-n + 2) {
    grid-template-columns: 5rem minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-grid > div:last-child {
    border-bottom: 0;
  }

  .workflow-steps > li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.8rem;
  }

  .exit-codes {
    grid-template-columns: 1fr;
  }

  .exit-codes > div {
    grid-template-columns: 3rem 1fr;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .exit-codes > div:last-child {
    border-bottom: 0;
  }

  .exit-codes span {
    margin-top: 0;
  }

  .command-reference > div {
    gap: 0.35rem;
    align-items: start;
  }

  .docs-footer {
    margin-top: 4rem;
  }

  .hero {
    gap: 4rem;
    padding-block: 4rem 6rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 11.5vw, 4rem);
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .button {
    width: 100%;
  }

  .hero-flow {
    flex-wrap: wrap;
  }

  .logo-stage {
    width: min(88vw, 430px);
  }

  .logo-stage::after {
    inset: -0.6rem;
    border-radius: 1.7rem;
  }

  .logo-orbit {
    top: -1rem;
    right: -0.75rem;
    width: 3.5rem;
    height: 3.5rem;
  }

  .section-intro h2 {
    font-size: 2.75rem;
  }

  .product-name {
    min-height: 260px;
  }

  .feature-row {
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
  }

  .install-footer,
  .site-footer,
  .install-note {
    grid-template-columns: 1fr;
  }

  .install-footer {
    display: grid;
    gap: 0.7rem;
  }

  .site-footer {
    min-height: 190px;
    padding-block: 2rem;
    gap: 1rem;
  }

  .site-footer > *,
  .footer-brand,
  .site-footer > a:last-child,
  .compact-footer a {
    justify-self: start;
  }

  .command-heading {
    align-items: flex-start;
  }

  .install-main {
    min-height: calc(100svh - 266px);
    padding-block: 3rem 5rem;
  }

  .back-link {
    margin-bottom: 2rem;
  }
}

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

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