:root {
  color-scheme: dark;
  --ink: #f6f8fb;
  --ink-soft: #9aa8b7;
  --paper: #080a12;
  --paper-strong: #0e1320;
  --paper-warm: #151420;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #f1b36d;
  --accent-deep: #b96f2d;
  --accent-hover: #f7c987;
  --accent-ink: #1c1006;
  --accent-muted: rgba(241, 179, 109, 0.1);
  --accent-line: rgba(241, 179, 109, 0.4);
  --accent-shadow: rgba(241, 179, 109, 0.22);
  --red: #c95d4f;
  --blue: #4fb7d8;
  --amber: var(--accent);
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
  --small-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  --radius: 8px;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, ui-monospace, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #121722;
  --ink-soft: #596577;
  --paper: #f5f7fb;
  --paper-strong: #ffffff;
  --paper-warm: #fff8ed;
  --line: rgba(22, 28, 38, 0.12);
  --line-strong: rgba(22, 28, 38, 0.2);
  --accent: #b96f2d;
  --accent-deep: #8a4f1d;
  --accent-hover: #9d5b24;
  --accent-ink: #ffffff;
  --accent-muted: rgba(185, 111, 45, 0.09);
  --accent-line: rgba(185, 111, 45, 0.36);
  --accent-shadow: rgba(185, 111, 45, 0.18);
  --amber: var(--accent);
  --shadow: 0 24px 70px rgba(23, 33, 48, 0.12);
  --small-shadow: 0 12px 34px rgba(23, 33, 48, 0.09);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 50% -160px, rgba(241, 179, 109, 0.13), transparent 70%),
    radial-gradient(760px 420px at 14% 12%, rgba(185, 111, 45, 0.12), transparent 66%),
    var(--paper);
  font-family: var(--sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: -2;
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--mono);
}

.site-frame {
  position: fixed;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: -1;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #eef4f2;
  position: relative;
  z-index: 1;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 18, 0.86);
  backdrop-filter: blur(18px);
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-weight: 680;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.theme-toggle {
  color: rgba(238, 244, 242, 0.72);
  font-size: 0.82rem;
  font-weight: 620;
  text-decoration: none;
  padding: 7px 9px;
  border-radius: 7px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  cursor: pointer;
}

.nav-links .nav-download {
  color: var(--accent-ink);
  background: var(--accent);
}

.nav-links a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links .nav-download:hover,
.nav-links .nav-download:focus-visible {
  color: var(--accent-ink);
  background: var(--accent-hover);
}

.section-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  color: #f3f7f5;
  display: grid;
  gap: 0;
  align-items: center;
  padding: 82px 0 70px;
  position: relative;
  text-align: center;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
  background: transparent;
  z-index: -1;
}

.hero-copy {
  width: min(880px, 100%);
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 720;
  text-transform: uppercase;
}

.hero h1,
.narrative h2,
.capability-matrix h2,
.screenshots-copy h2,
.workflow h2,
.cli-copy h2,
.download h2 {
  margin: 0;
  line-height: 1;
  font-weight: 740;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(3.5rem, 8vw, 6.6rem);
  font-weight: 760;
  letter-spacing: 0;
}

.hero-statement {
  max-width: 900px;
  margin: 8px auto 0;
  color: #f1b36d;
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  font-weight: 760;
  line-height: 1;
}

.hero-lede {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(238, 244, 242, 0.72);
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 670;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.button:hover,
.button:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 14px 32px var(--accent-shadow);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-hover);
}

.hero .button-primary {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 14px 32px var(--accent-shadow);
}

.hero .button-primary:hover,
.hero .button-primary:focus-visible {
  background: var(--accent-hover);
}

.button-secondary {
  color: #f3f7f5;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
}

.button-full {
  width: 100%;
}

.release-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 610px;
  margin: 28px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: none;
}

.release-strip div {
  padding: 12px 16px;
}

.release-strip div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.release-strip dt {
  margin: 0 0 4px;
  color: rgba(238, 244, 242, 0.58);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.release-strip dd {
  margin: 0;
  color: #ffffff;
  font-weight: 780;
}

.hero-visual {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: center;
  justify-items: center;
  margin-top: 54px;
}

.product-shot {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #111;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-shot img,
.product-shot video {
  display: block;
  width: 100%;
  height: auto;
}

.product-shot video {
  background: #111;
}

.shot-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.shot-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.product-shot figcaption {
  margin: 0;
  padding: 12px 14px;
  background: rgba(14, 19, 32, 0.94);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
}

.hero-shot {
  width: min(100%, 880px);
  margin-top: 0;
}

.narrative {
  padding: 36px 0 40px;
  border-top: 1px solid var(--line);
}

.narrative h2,
.capability-matrix h2,
.screenshots-copy h2,
.workflow h2,
.cli-copy h2,
.download h2 {
  max-width: 820px;
  font-size: clamp(2.45rem, 5.6vw, 4.5rem);
  letter-spacing: 0;
}

.narrative p,
.workflow-copy p,
.cli-copy p,
.download-copy p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.62;
}

.download-copy .download-note {
  max-width: 680px;
  padding: 13px 14px;
  border: 1px solid rgba(241, 179, 109, 0.28);
  border-radius: var(--radius);
  background: rgba(241, 179, 109, 0.08);
  color: #e7c497;
  font-size: 0.95rem;
}

.feature-grid {
  margin: 20px auto 64px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.capability-matrix {
  padding: 78px 0 84px;
  border-top: 1px solid var(--line);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.capability-grid article {
  grid-column: span 2;
  min-height: 250px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--small-shadow);
}

.capability-grid article:nth-child(4) {
  grid-column: 2 / span 2;
}

.capability-grid article:nth-child(5) {
  grid-column: 4 / span 2;
}

.capability-grid h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.capability-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-grid li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.48;
}

.capability-grid li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-card {
  min-height: 220px;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-muted);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
}

.feature-card h3,
.steps h3 {
  margin: 18px 0 10px;
  font-size: 1.12rem;
}

.feature-card p,
.steps p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.screenshots {
  color: #f3f7f5;
  padding: 88px 0;
  position: relative;
  z-index: 0;
}

.screenshots::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
  background: transparent;
  z-index: -1;
}

.screenshots-copy {
  max-width: 920px;
  margin: 0 0 22px;
}

.screenshots-copy h2 {
  color: #ffffff;
}

.screenshots-copy p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.screenshots .product-shot {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
}

.screenshots .product-shot:first-child {
  grid-column: auto;
}

.screenshots .product-shot figcaption {
  background: rgba(14, 18, 30, 0.94);
  color: rgba(243, 247, 245, 0.72);
}

.workflow {
  padding: 90px 0;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--small-shadow);
}

.steps article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
}

.steps article + article {
  border-top: 1px solid var(--line);
}

.steps span {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--line));
  background: var(--accent-muted);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 850;
}

.steps h3 {
  grid-column: 2;
  margin: 1px 0 6px;
}

.steps p {
  grid-column: 2;
}

.cli-section {
  padding: 70px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 44px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.terminal {
  border: 1px solid rgba(241, 179, 109, 0.22);
  border-radius: var(--radius);
  background: #100d0a;
  color: #f3dfc2;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  color: #c9a678;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.terminal pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  font-size: 0.9rem;
  line-height: 1.7;
}

.download {
  padding: 78px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 52px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.download-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.package-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.package-head img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
}

.package-head strong,
.package-head span {
  display: block;
}

.package-head span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.checksum-row {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.checksum-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.checksum-row code {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.copy-button {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.copy-button.is-copied {
  border-color: var(--accent-line);
  background: var(--accent-muted);
  color: var(--accent);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 14px;
}

.site-footer a {
  color: #f6f8fb;
  font-weight: 700;
  text-decoration: none;
}

.docs-main {
  padding-bottom: 36px;
}

.docs-hero {
  padding: 74px 0 44px;
  border-bottom: 1px solid var(--line);
}

.docs-hero h1 {
  max-width: 880px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 760;
  line-height: 1;
}

.docs-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1.16rem;
  line-height: 1.58;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 44px;
  padding: 38px 0 84px;
}

.docs-toc {
  position: sticky;
  top: 76px;
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--small-shadow);
}

.docs-toc strong {
  display: block;
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--accent);
}

.docs-toc strong + strong {
  margin-top: 14px;
}

.docs-toc a {
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.docs-toc a:hover,
.docs-toc a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.docs-content {
  min-width: 0;
}

.docs-section {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.docs-section:first-child {
  padding-top: 0;
}

.docs-section-lead {
  padding-top: 0;
}

.docs-section h2 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 740;
  line-height: 1.04;
}

.docs-section p {
  max-width: 740px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.docs-card-grid article {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--small-shadow);
}

.docs-card-grid h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
}

.docs-card-grid p {
  margin: 0;
  font-size: 0.96rem;
}

.docs-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.docs-list li {
  position: relative;
  padding: 12px 14px 12px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-soft);
  line-height: 1.5;
}

.docs-list li::before {
  content: "";
  position: absolute;
  top: 1.2em;
  left: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.command-block {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #100d0a;
  box-shadow: var(--small-shadow);
  overflow: hidden;
}

.command-block-muted {
  background: rgba(255, 255, 255, 0.035);
}

.command-block pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #f3dfc2;
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.command-block-muted pre {
  color: var(--ink-soft);
}

.docs-table {
  display: grid;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.docs-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 240px);
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
}

.docs-table > div + div {
  border-top: 1px solid var(--line);
}

.docs-table span {
  color: var(--ink);
  font-weight: 680;
}

.docs-table code {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.image-dialog {
  width: min(1160px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(8, 10, 18, 0.96);
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}

.image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

.image-dialog figure {
  margin: 0;
}

.image-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  background: #111;
}

.image-dialog figcaption {
  padding: 12px 16px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(8, 10, 18, 0.78);
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 680;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero,
  .workflow,
  .cli-section,
  .download {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 20px;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-visual {
    min-height: auto;
  }

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

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

  .capability-grid article,
  .capability-grid article:nth-child(4),
  .capability-grid article:nth-child(5) {
    grid-column: auto;
  }

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

  .cli-section {
    gap: 24px;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .docs-toc {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

.docs-toc strong {
  grid-column: 1 / -1;
}
}

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    padding: 14px 0 4px;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.78rem;
    padding: 6px 7px;
  }

  .theme-toggle {
    font-size: 0.78rem;
    padding: 6px 7px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-lede,
  .narrative p,
  .workflow-copy p,
  .cli-copy p,
  .download-copy p {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    margin-bottom: 54px;
  }

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

  .feature-card {
    min-height: auto;
  }

  .narrative h2,
  .capability-matrix h2,
  .screenshots-copy h2,
  .workflow h2,
  .cli-copy h2,
  .download h2 {
    font-size: 2.25rem;
  }

  .workflow,
  .cli-section,
  .download,
  .capability-matrix,
  .screenshots {
    padding: 54px 0;
  }

  .screenshots-copy {
    display: block;
  }

  .steps article {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px;
  }

  .steps span {
    width: 30px;
    height: 30px;
  }

  .terminal pre {
    font-size: 0.78rem;
  }

  .site-footer {
    padding: 22px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .docs-hero {
    padding: 42px 0 34px;
  }

  .docs-hero h1 {
    font-size: 2.7rem;
  }

  .docs-layout {
    padding: 26px 0 54px;
  }

  .docs-toc {
    grid-template-columns: 1fr 1fr;
  }

  .docs-section {
    padding: 34px 0;
  }

  .docs-table > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .command-block pre {
    font-size: 0.78rem;
  }
}

html[data-theme="light"] body {
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 50% -160px, rgba(241, 179, 109, 0.16), transparent 70%),
    radial-gradient(760px 420px at 14% 12%, rgba(185, 111, 45, 0.1), transparent 66%),
    var(--paper);
}

html[data-theme="light"] body::before {
  background:
    linear-gradient(rgba(22, 28, 38, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 28, 38, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}

html[data-theme="light"] .site-frame {
  border-color: rgba(22, 28, 38, 0.08);
}

html[data-theme="light"] .site-header {
  color: #121722;
}

html[data-theme="light"] .site-header::before {
  border-bottom-color: rgba(22, 28, 38, 0.1);
  background: rgba(245, 247, 251, 0.86);
}

html[data-theme="light"] .nav-links a,
html[data-theme="light"] .theme-toggle {
  color: rgba(18, 23, 34, 0.72);
}

html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a:focus-visible,
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible {
  color: #121722;
  background: rgba(22, 28, 38, 0.07);
}

html[data-theme="light"] .theme-toggle {
  border-color: rgba(22, 28, 38, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .nav-links .nav-download {
  color: var(--accent-ink);
  background: var(--accent-deep);
}

html[data-theme="light"] .nav-links a[aria-current="page"] {
  color: #121722;
  background: rgba(22, 28, 38, 0.07);
}

html[data-theme="light"] .nav-links .nav-download:hover,
html[data-theme="light"] .nav-links .nav-download:focus-visible {
  color: var(--accent-ink);
  background: var(--accent-hover);
}

html[data-theme="light"] .hero,
html[data-theme="light"] .button-secondary,
html[data-theme="light"] .screenshots {
  color: var(--ink);
}

html[data-theme="light"] .hero h1,
html[data-theme="light"] .screenshots-copy h2 {
  color: var(--ink);
}

html[data-theme="light"] .hero-statement {
  color: var(--accent);
}

html[data-theme="light"] .hero-lede {
  color: rgba(18, 23, 34, 0.7);
}

html[data-theme="light"] .button-primary,
html[data-theme="light"] .hero .button-primary {
  color: var(--accent-ink);
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  box-shadow: 0 14px 32px var(--accent-shadow);
}

html[data-theme="light"] .button-primary:hover,
html[data-theme="light"] .button-primary:focus-visible,
html[data-theme="light"] .hero .button-primary:hover,
html[data-theme="light"] .hero .button-primary:focus-visible {
  background: var(--accent-hover);
}

html[data-theme="light"] .button-secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(22, 28, 38, 0.16);
}

html[data-theme="light"] .release-strip {
  border-color: rgba(22, 28, 38, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .release-strip div + div {
  border-left-color: rgba(22, 28, 38, 0.12);
}

html[data-theme="light"] .release-strip dt {
  color: rgba(18, 23, 34, 0.52);
}

html[data-theme="light"] .release-strip dd {
  color: var(--ink);
}

html[data-theme="light"] .product-shot {
  border-color: rgba(22, 28, 38, 0.14);
  background: #ffffff;
}

html[data-theme="light"] .product-shot figcaption,
html[data-theme="light"] .screenshots .product-shot figcaption {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-soft);
}

html[data-theme="light"] .feature-card,
html[data-theme="light"] .capability-grid article,
html[data-theme="light"] .docs-card-grid article,
html[data-theme="light"] .docs-list li,
html[data-theme="light"] .docs-toc,
html[data-theme="light"] .docs-table > div,
html[data-theme="light"] .steps,
html[data-theme="light"] .download-panel,
html[data-theme="light"] .checksum-row {
  background: rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .docs-toc a:hover,
html[data-theme="light"] .docs-toc a:focus-visible {
  background: rgba(22, 28, 38, 0.07);
}

html[data-theme="light"] .command-block {
  border-color: rgba(22, 28, 38, 0.14);
}

html[data-theme="light"] .command-block-muted {
  background: rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .feature-number,
html[data-theme="light"] .steps span {
  background: var(--accent-muted);
  color: var(--accent-deep);
}

html[data-theme="light"] .download-copy .download-note {
  border-color: rgba(185, 111, 45, 0.26);
  background: rgba(255, 248, 237, 0.74);
  color: #7a501f;
}

html[data-theme="light"] .copy-button {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .copy-button.is-copied {
  border-color: var(--accent-line);
  background: var(--accent-muted);
  color: var(--accent-deep);
}

html[data-theme="light"] .site-footer a {
  color: var(--ink);
}

html[data-theme="light"] .image-dialog {
  background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .dialog-close {
  border-color: rgba(22, 28, 38, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

@media (max-width: 430px) {
  .site-frame {
    inset: 8px;
  }

  .section-band,
  .site-header,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .hero h1 {
    font-size: 2.54rem;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
  }

  .release-strip {
    grid-template-columns: 1fr;
  }

  .release-strip div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}
