:root {
  color-scheme: dark;
  --bg: #10141d;
  --panel: #171d28;
  --panel-strong: #202838;
  --text: #edf2f7;
  --muted: #aeb8c8;
  --line: #303a4c;
  --green: #78d848;
  --cyan: #70d6ff;
  --ink: #080b10;
  --page-x: clamp(20px, 5vw, 72px);
  --nav-top: 16px;
  --nav-clearance: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--nav-clearance);
  background:
    radial-gradient(circle at 86% 12%, rgba(112, 214, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 8% 82%, rgba(174, 184, 200, 0.1), transparent 28rem),
    linear-gradient(145deg, #10141d 0%, #171d28 48%, #10141d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.hero,
.page-header {
  padding: 20px var(--page-x) 56px;
}

.hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: clamp(18px, 3vh, 34px);
  position: relative;
  min-height: calc(100svh - var(--nav-clearance));
  background: transparent;
}

@supports (min-height: 100dvh) {
  .hero {
    min-height: calc(100dvh - var(--nav-clearance));
  }
}

.page-header {
  min-height: 48vh;
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: fixed;
  top: var(--nav-top);
  left: 50%;
  z-index: 20;
  width: min(calc(100% - (2 * var(--page-x))), 1120px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(48, 58, 76, 0.84);
  border-radius: 8px;
  background: rgba(23, 29, 40, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  object-position: center;
}

.nav-links {
  color: var(--muted);
  font-size: 0.94rem;
  white-space: nowrap;
}

.nav-links a {
  padding: 8px 2px;
}

.menu {
  position: relative;
}

.menu-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green);
  color: var(--ink);
  cursor: pointer;
}

.menu-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.menu[data-open="true"] .menu-panel {
  display: grid;
}

.menu-panel a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text);
  font-weight: 700;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  align-self: end;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-content {
  display: grid;
  gap: 34px;
  max-width: 640px;
}

.hero-content h1,
.hero-content .lead {
  margin: 0;
}

.page-title {
  margin: 100px auto 0;
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
}

.hero-content h1 {
  font-size: clamp(7rem, 14vw, 8.8rem);
  white-space: nowrap;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  max-width: 780px;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-features h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-self: end;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-features article {
  min-height: 132px;
  padding: 18px;
}

.section-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.section-next:hover,
.section-next:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(120, 216, 72, 0.16);
  outline: none;
}

.section-next svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(44px, 7vh, 72px) var(--page-x);
}

.section {
  align-content: center;
  min-height: calc(100svh - var(--nav-clearance));
  scroll-margin-top: var(--nav-clearance);
  width: 100%;
}

@supports (min-height: 100dvh) {
  .section {
    min-height: calc(100dvh - var(--nav-clearance));
  }
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.install-section {
  display: grid;
  gap: clamp(18px, 3vh, 34px);
}

.install-section .section-heading {
  margin-bottom: 0;
}

.install-section .section-heading .eyebrow {
  margin-bottom: 12px;
}

.usage-section {
  display: grid;
  gap: clamp(12px, 2.2vh, 22px);
}

.usage-section .section-heading {
  margin-bottom: 0;
}

.usage-section h2 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
}

.command-grid,
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.install-section .command-grid {
  gap: clamp(24px, 4vw, 40px);
}

.hero-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command,
.usage-card,
.hero-features article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.command {
  display: grid;
  gap: clamp(18px, 3vh, 28px);
  padding: clamp(24px, 4vw, 36px);
}

.command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-header span {
  color: var(--muted);
  font-size: 0.95rem;
}

.command-row {
  display: grid;
  gap: 8px;
}

.install-process {
  display: block;
  width: 100%;
  height: clamp(150px, 28vh, 260px);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  object-fit: contain;
}

.usage-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--panel);
  object-fit: contain;
}

.copy-command {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.copy-command[data-state="failed"] {
  background: transparent;
  color: var(--text);
}

.copy-command svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.copied-icon,
.copy-command[data-state="copied"] .copy-icon {
  display: none;
}

.copy-command[data-state="copied"] .copied-icon {
  display: block;
}

code {
  display: block;
  overflow-x: auto;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  white-space: nowrap;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.usage-card-grid {
  display: flex;
  gap: 16px;
  height: clamp(320px, 48vh, 460px);
  min-height: 0;
}

.usage-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: clamp(12px, 2vh, 18px);
  flex: 0 0 clamp(104px, 10vw, 132px);
  min-width: 0;
  overflow: hidden;
  padding: clamp(14px, 2vw, 20px);
  background: var(--panel-strong);
  cursor: pointer;
  transition:
    flex-basis 180ms ease,
    background-color 180ms ease;
}

.usage-card[data-active="true"] {
  flex: 1 1 0;
  align-content: stretch;
  background: var(--panel);
}

.usage-card h3 {
  margin: 0;
  color: var(--green);
  font-size: 0.95rem;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.usage-card[data-active="true"] h3 {
  writing-mode: horizontal-tb;
  transform: none;
}

.usage-card:focus-visible {
  box-shadow: 0 0 0 4px rgba(120, 216, 72, 0.16);
  outline: none;
}

.usage-card code,
.usage-card img {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.usage-card[data-active="true"] code,
.usage-card[data-active="true"] img {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.usage-card[data-active="true"] code {
  white-space: normal;
}

.usage-note {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
}

.example-section,
.details-section,
.regeneration-section,
.labels-section,
.limits-section {
  display: grid;
  gap: clamp(16px, 2.5vh, 30px);
}

.example-section .section-heading,
.details-section .section-heading,
.regeneration-section .section-heading,
.labels-section .section-heading,
.limits-section .section-heading {
  margin-bottom: 0;
}

.example-grid,
.detail-grid,
.mode-grid,
.two-column {
  display: grid;
  gap: 16px;
}

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

.detail-grid,
.mode-grid {
  display: flex;
  height: clamp(220px, 34vh, 320px);
  min-height: 0;
}

.code-window,
.detail-grid article,
.mode-grid article,
.note-panel,
.two-column article,
.readme-document,
.release-note-panel,
.license-summary-panel,
.license-document {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.code-window,
.detail-grid article,
.mode-grid article,
.note-panel,
.two-column article,
.readme-document,
.release-note-panel,
.license-summary-panel,
.license-document {
  padding: clamp(18px, 3vw, 28px);
}

.code-window {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.code-window p,
.detail-grid p,
.mode-grid p,
.note-panel p,
.two-column p,
.two-column li,
.readme-document p,
.readme-document li,
.release-note-panel p,
.license-summary-panel p,
.license-summary-panel li,
.license-document p,
.license-document li {
  color: var(--muted);
}

.code-window p,
.note-panel p,
.two-column ul,
.license-summary-panel ul {
  margin-bottom: 0;
}

.code-window pre,
.note-panel pre {
  min-width: 0;
  margin: 0;
  overflow-x: auto;
}

.code-window code,
.note-panel pre code {
  white-space: pre;
}

.detail-grid article,
.mode-grid article,
.two-column article {
  min-width: 0;
}

.detail-card,
.mode-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: clamp(12px, 2vh, 18px);
  flex: 0 0 clamp(104px, 10vw, 132px);
  overflow: hidden;
  padding: clamp(14px, 2vw, 20px);
  background: var(--panel-strong);
  cursor: pointer;
  transition:
    flex-basis 180ms ease,
    background-color 180ms ease;
}

.detail-card[data-active="true"],
.mode-card[data-active="true"] {
  flex: 1 1 0;
  background: var(--panel);
}

.detail-card h3,
.mode-card h3 {
  margin: 0;
  color: var(--green);
  font-size: 0.95rem;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.detail-card[data-active="true"] h3,
.mode-card[data-active="true"] h3 {
  writing-mode: horizontal-tb;
  transform: none;
}

.detail-card:focus-visible,
.mode-card:focus-visible {
  box-shadow: 0 0 0 4px rgba(120, 216, 72, 0.16);
  outline: none;
}

.detail-card p,
.mode-card p {
  display: none;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.detail-card[data-active="true"] p,
.mode-card[data-active="true"] p {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.detail-grid article > code,
.detail-grid p code,
.two-column li code,
.note-panel p code {
  display: inline;
  overflow-wrap: anywhere;
  white-space: normal;
}

.note-panel {
  display: grid;
  gap: 12px;
  background: var(--panel-strong);
}

.label-code {
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.two-column ul,
.license-summary-panel ul {
  padding-left: 20px;
}

.two-column li + li,
.license-summary-panel li + li {
  margin-top: 10px;
}

.text-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.license-divider {
  width: 100%;
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.license-link {
  text-decoration: none;
}

.package-link {
  text-decoration: none;
}

.readme-page,
.release-page,
.license-page {
  display: grid;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: var(--nav-clearance) var(--page-x) 72px;
}

.release-note-panel {
  display: grid;
  gap: 12px;
}

.readme-document {
  display: grid;
  gap: 18px;
}

.readme-document h1,
.readme-document h2,
.readme-document h3,
.readme-document p,
.readme-document ul,
.readme-document pre {
  margin: 0;
}

.readme-document h1,
.readme-document h2 {
  max-width: none;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
}

.readme-document h3 {
  color: var(--text);
}

.readme-document ul {
  padding-left: 20px;
}

.readme-document li + li {
  margin-top: 10px;
}

.readme-document pre {
  overflow-x: auto;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.readme-document pre code {
  color: var(--text);
  white-space: pre;
}

.readme-document p code,
.readme-document li code {
  display: inline;
  overflow-wrap: anywhere;
  white-space: normal;
}

.release-note-panel h2,
.license-document h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.release-note-panel p {
  max-width: 74ch;
}

.license-document h3 {
  margin-top: 28px;
  color: var(--text);
}

.license-document p {
  max-width: 74ch;
}

.license-text {
  margin: 0;
  overflow-x: auto;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.release-page .text-link {
  color: var(--green);
}

.hero-features p,
.readme-page p,
.readme-page li,
.release-page p,
.release-page a {
  color: var(--muted);
}

.hero-features p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

@media (max-width: 760px) {
  :root {
    --nav-top: 12px;
    --nav-clearance: 76px;
  }

  .page-header {
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero {
    padding-bottom: 48px;
    background: transparent;
  }

  .nav {
    gap: 10px;
    padding: 8px 10px;
  }

  .nav-links {
    display: none;
  }

  .menu-panel {
    right: -2px;
    min-width: min(240px, calc(100vw - 40px));
  }

  .menu-button {
    width: 36px;
    height: 36px;
  }

  .brand {
    font-size: 0.85rem;
  }

  .split,
  .command-grid,
  .hero-features,
  .example-grid,
  .detail-grid,
  .mode-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(3.4rem, 20vw, 5.4rem);
  }

  .hero-content h1 {
    font-size: clamp(3.4rem, 17vw, 5.6rem);
  }

  .hero-features {
    margin-top: 32px;
  }

  .hero-features article {
    min-height: auto;
    padding: 14px;
  }

  .usage-section h2 {
    font-size: clamp(1.35rem, 7vw, 2.1rem);
    white-space: normal;
  }

  .usage-card-grid {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .detail-grid,
  .mode-grid {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .usage-card,
  .usage-card[data-active="true"],
  .detail-card,
  .detail-card[data-active="true"],
  .mode-card,
  .mode-card[data-active="true"] {
    flex-basis: auto;
  }

  .usage-card[data-active="true"] .usage-screenshot {
    height: auto;
  }

  .usage-card h3,
  .detail-card h3,
  .mode-card h3 {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .section {
    min-height: auto;
    padding-top: 52px;
    padding-bottom: 52px;
  }

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