:root {
  --bg: #121214;
  --bg-soft: #1a1a1e;
  --bg-sunken: #222227;
  --ink: #f4f4f2;
  --text: #c8c8d0;
  --muted: #9b9ba4;
  --faint: #71717a;
  --line: #26262b;
  --line-strong: #34343a;
  --accent: #8d97ff;
  --accent-soft: #23244a;
  --accent-strong: #7d89f5;
  --dark: #101116;
  --dark-2: #17181e;
  --dark-line: rgb(255 255 255 / 9%);
  --dark-text: #f4f4f2;
  --dark-muted: #9b9ba4;
  --dark-faint: #6e6e78;
  --ok: #46a374;
  --warn: #b7791f;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.drawer-open {
  overflow: hidden;
}

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

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

::selection {
  background: rgb(79 82 216 / 18%);
}

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

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #12141c;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgb(18 18 20 / 72%);
  backdrop-filter: blur(14px) saturate(110%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.brand img {
  width: 25px;
  height: 25px;
  border-radius: 6px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  transition: color .16s, background .16s;
}

.icon-btn:hover {
  color: var(--ink);
  background: var(--bg-sunken);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.menu-btn {
  margin-right: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 20px;
  font-size: 13px;
  color: var(--muted);
}

.header-nav a {
  transition: color .16s;
}

.header-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background .18s var(--ease), border-color .18s, color .18s, transform .18s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--small {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12.5px;
}

.btn--paper {
  background: var(--accent-strong);
  color: #12141c;
}

.btn--paper:hover {
  background: #9aa4ff;
}

.btn--ghost {
  border-color: rgb(255 255 255 / 18%);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: rgb(255 255 255 / 30%);
  background: rgb(255 255 255 / 6%);
}

/* ---------- drawer ---------- */

.drawer-scrim,
.docs-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgb(20 20 24 / 32%);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .22s var(--ease);
}

.drawer-scrim[hidden],
.docs-scrim[hidden] {
  display: none;
}

body.drawer-visible .drawer-scrim,
body.drawer-visible .docs-scrim {
  opacity: 1;
}

.site-drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(320px, 88vw);
  padding: 16px 14px 20px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform .28s var(--ease), visibility .28s;
}

.site-drawer.is-open {
  transform: none;
  visibility: visible;
}

.site-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 16px;
  border-bottom: 1px solid var(--line);
}

.site-drawer__nav {
  flex: 1;
  padding-top: 16px;
  overflow-y: auto;
}

.drawer-label {
  padding: 18px 8px 6px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: .02em;
}

.drawer-label:first-child {
  padding-top: 0;
}

.site-drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  transition: color .14s, background .14s;
}

.site-drawer__nav a:hover {
  color: var(--ink);
  background: var(--bg-sunken);
}

.site-drawer__nav a span {
  color: var(--faint);
  font-size: 11.5px;
  font-family: var(--mono);
}

.site-drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

.site-drawer__foot a {
  color: var(--muted);
}

.site-drawer__foot a:hover {
  color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 62px);
  padding: clamp(36px, 5vw, 56px) 0 clamp(32px, 4vw, 44px);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero__label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .02em;
}

.hero h1 {
  max-width: 1060px;
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

.hero__lede {
  max-width: 580px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
  text-wrap: pretty;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--faint);
  font-size: 12.5px;
}

.hero__meta span {
  position: relative;
}

.hero__meta span + span::before {
  content: "";
  position: absolute;
  left: -10px;
  top: .55em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

/* ---------- interactive run demo (dark product panel) ---------- */

.demo {
  margin-top: auto;
  padding-top: 28px;
}

.demo__window {
  overflow: hidden;
  border: 1px solid #2c2c32;
  border-radius: 14px;
  background: var(--dark);
  color: var(--dark-text);
  box-shadow: 0 1px 2px rgb(20 20 24 / 6%), 0 18px 48px rgb(20 20 24 / 9%);
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--dark-line);
  background: var(--dark-2);
}

.demo__dots {
  display: inline-flex;
  gap: 6px;
}

.demo__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
}

.demo__name {
  color: var(--dark-muted);
  font-size: 12px;
}

.demo__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--dark-muted);
  font-size: 11.5px;
  font-family: var(--mono);
}

.demo__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: live-pulse 2.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgb(111 124 240 / 22%); }
  50% { box-shadow: 0 0 0 6px rgb(111 124 240 / 10%); }
}

.demo__body {
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  align-items: stretch;
}

.demo__rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 10px;
  border-right: 1px solid var(--dark-line);
  background: rgb(255 255 255 / 1.5%);
}

.demo__rail-label {
  padding: 4px 8px 8px;
  color: var(--dark-faint);
  font-size: 11px;
  letter-spacing: .05em;
}

.demo__task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--dark-muted);
  font-size: 12.5px;
  text-align: left;
  transition: color .16s, background .16s;
}

.demo__task:hover {
  color: var(--dark-text);
  background: rgb(255 255 255 / 4%);
}

.demo__task.is-active {
  color: var(--dark-text);
  background: rgb(255 255 255 / 7%);
}

.demo__task-state {
  flex: none;
  color: var(--dark-faint);
  font-size: 10px;
  font-family: var(--mono);
}

.demo__task-state.is-running {
  color: #a2abff;
}

.demo__main {
  min-width: 0;
}

.demo__exec {
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}

.demo__exec.is-swapping {
  opacity: .4;
  transform: translateY(3px);
}

.exec-phase {
  padding: 6px 0;
}

.exec-phase__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px 5px;
  color: var(--dark-faint);
  font-size: 11px;
  letter-spacing: .05em;
}

.exec-phase__head i {
  width: 7px;
  height: 7px;
  flex: none;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
}

.exec-phase.is-done .exec-phase__head {
  color: var(--dark-muted);
}

.exec-phase.is-done .exec-phase__head i {
  border-color: transparent;
  background: #5f9f84;
}

.exec-phase.is-current .exec-phase__head {
  color: var(--dark-text);
}

.exec-phase.is-current .exec-phase__head i {
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgb(111 124 240 / 18%);
}

.exec-phase__time {
  margin-left: auto;
  color: var(--dark-faint);
  font-family: var(--mono);
  font-size: 10.5px;
}

.exec-row {
  display: grid;
  grid-template-columns: 8px 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 8px 18px;
  border-top: 1px solid var(--dark-line);
  color: var(--dark-muted);
  text-align: left;
  transition: background .15s var(--ease);
}

.exec-row:hover {
  background: rgb(255 255 255 / 3%);
}

.exec-row.is-active {
  background: rgb(255 255 255 / 4.5%);
  box-shadow: inset 2px 0 0 var(--accent);
}

.exec-row__dot {
  width: 7px;
  height: 7px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
}

.exec-row__dot.is-done {
  border-color: transparent;
  background: #7fc9a4;
}

.exec-row__dot.is-running {
  border-color: transparent;
  background: #a2abff;
  animation: live-pulse 2.6s ease-in-out infinite;
}

.exec-row__cli {
  color: var(--dark-faint);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.exec-row__role {
  color: var(--dark-text);
  font-size: 13px;
  letter-spacing: -.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exec-row__meta {
  color: var(--dark-faint);
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}

.demo__detail {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  padding: 12px 16px;
  border-top: 1px solid var(--dark-line);
  background: var(--dark-2);
  color: var(--dark-muted);
  font-size: 12px;
  line-height: 1.6;
}

.demo__detail-label {
  flex: none;
  color: var(--dark-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
}

.demo__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
}

.demo__tabs {
  display: none;
  align-items: center;
  gap: 2px;
}

.demo__tab {
  position: relative;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--faint);
  font-size: 12.5px;
  transition: color .16s, background .16s;
}

.demo__tab:hover {
  color: var(--ink);
  background: var(--bg-sunken);
}

.demo__tab.is-active {
  color: var(--ink);
  font-weight: 500;
}

.demo__tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.demo__hint {
  color: var(--faint);
  font-size: 11.5px;
}

.hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.demo__caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

/* ---------- cli band ---------- */

.cli-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cli-band__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 18px 0;
}

.cli-band__label,
.cli-band__note {
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
}

.cli-band__note {
  margin-left: auto;
}

.cli-band ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cli-band li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .01em;
}

/* ---------- sections ---------- */

.section {
  padding: clamp(84px, 9vw, 120px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-bottom: clamp(44px, 5vw, 64px);
}

.section-head__label {
  padding-top: 12px;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: .02em;
}

.section-head h2 {
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin-left: 208px;
}

.value {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.value__icon {
  width: 22px;
  height: 22px;
  margin-bottom: 14px;
  color: var(--accent);
}

.value__key {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
}

.value h3 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.value p {
  max-width: 520px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  text-wrap: pretty;
}

/* ---------- workflow ---------- */

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
  margin-left: 208px;
}

.workflow-grid > * {
  min-width: 0;
}

.workflow-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.workflow-copy ul {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.workflow-copy li {
  position: relative;
  padding: 14px 0 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

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

.workflow-copy code,
.prose code {
  padding: .12em .38em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .88em;
}

.code {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.code__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
}

.code__head span:first-child {
  color: var(--muted);
}

.code__copy {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 10.5px;
  transition: color .14s, background .14s;
}

.code__copy:hover {
  color: var(--ink);
  background: var(--bg-sunken);
}

.code pre {
  max-height: 460px;
  margin: 0;
  padding: 18px 20px 22px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text);
  tab-size: 2;
}

.code--flush pre {
  max-height: none;
}

.tok-kw {
  color: #8d97ff;
}

.tok-str {
  color: #9ad6ab;
}

.tok-fn {
  color: #d8b078;
}

.tok-com {
  color: #6e7078;
}

.code-note {
  margin-top: 14px;
  color: var(--faint);
  font-size: 12px;
}

.code-note a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}

.code-note a:hover {
  color: var(--ink);
}

/* ---------- fits ---------- */

.fit-list {
  margin-left: 208px;
  border-top: 1px solid var(--line);
}

.fit-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.fit-row h3 {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.fit-row p {
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- limits ---------- */

.limits {
  margin-left: 208px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.limits ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.limits li {
  position: relative;
  padding: 11px 0 11px 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.limits__more {
  margin-top: 16px;
  padding-left: 18px;
  font-size: 13px;
}

.limits__more a {
  color: var(--accent);
  border-bottom: 1px solid rgb(79 82 216 / 30%);
}

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

/* ---------- final ---------- */

.final {
  padding: clamp(84px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.final__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.final__label {
  color: var(--faint);
  font-size: 13px;
  letter-spacing: .02em;
}

.final h2 {
  max-width: 680px;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.final p {
  max-width: 560px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
}

.final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 48px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.site-footer__brand img {
  width: 21px;
  height: 21px;
  border-radius: 5px;
}

.site-footer p {
  max-width: 520px;
  margin-top: 12px;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.75;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--muted);
  font-size: 12.5px;
}

.site-footer__links a:hover {
  color: var(--ink);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

/* ---------- docs ---------- */

.docs-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 740px) 180px;
  gap: 56px;
  width: min(1360px, calc(100% - 48px));
  margin-inline: auto;
  padding: 44px 0 88px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  padding-right: 24px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.docs-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.docs-sidebar__head button {
  display: none;
}

.docs-nav__group {
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
}

.docs-nav__group p {
  padding: 0 10px 6px;
  color: var(--faint);
  font-size: 12px;
}

.docs-nav__group a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-size: 13px;
  transition: color .14s, background .14s, border-color .14s;
}

.docs-nav__group a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.docs-nav__group a.is-active {
  border-left-color: var(--accent);
  background: var(--bg-sunken);
  color: var(--ink);
  font-weight: 500;
}

.docs-sidebar__foot {
  padding: 14px 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.docs-sidebar__foot a {
  color: var(--faint);
}

.docs-sidebar__foot a:hover {
  color: var(--muted);
}

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

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

.docs-hero__label {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .02em;
}

.docs-hero h1 {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.docs-hero > p:last-child {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  color: var(--faint);
  font-size: 12px;
}

.docs-toc {
  position: sticky;
  top: 86px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-size: 12.5px;
}

.docs-toc > p {
  padding-bottom: 8px;
  color: var(--faint);
  font-size: 12px;
}

.docs-toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 1px solid transparent;
  color: var(--faint);
  line-height: 1.5;
  transition: color .14s, border-color .14s;
}

.docs-toc a:hover {
  color: var(--ink);
}

.docs-toc a.is-active {
  border-left-color: var(--accent);
  color: var(--accent);
}

.docs-toc .docs-toc__edit {
  margin-top: 16px;
  padding-left: 12px;
  border-top: 1px solid var(--line);
}

.docs-toc .docs-toc__edit a {
  padding: 12px 0 0;
  border: 0;
}

.prose {
  max-width: 740px;
  padding-top: 38px;
}

.prose section {
  padding-bottom: 46px;
}

.prose section + section {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.4;
}

.prose h3 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.prose p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.9;
  text-wrap: pretty;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.85;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding: 3px 0 3px 18px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.12em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.prose ol {
  list-style: decimal;
  padding-left: 1.2em;
}

.prose ol li {
  padding: 3px 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a:not(.btn) {
  color: var(--accent);
  border-bottom: 1px solid rgb(79 82 216 / 26%);
}

.prose a:not(.btn):hover {
  border-color: var(--accent);
}

.prose .code {
  margin: 18px 0 20px;
  background: var(--bg-soft);
}

.prose .code pre {
  font-size: 12.5px;
}

.callout {
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--bg-soft);
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

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

.table-wrap {
  margin: 18px 0 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
}

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

.prose th {
  color: var(--muted);
  font-weight: 500;
  background: var(--bg-soft);
  white-space: nowrap;
}

.prose td {
  color: var(--text);
}

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

.arch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: 12.5px;
}

.arch span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-soft);
}

.arch i {
  color: var(--faint);
  font-style: normal;
}

/* ---------- download ---------- */

.download-hero {
  padding: clamp(72px, 9vw, 104px) 0 56px;
  border-bottom: 1px solid var(--line);
}

.download-hero h1 {
  max-width: 820px;
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.04em;
}

.download-hero p {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.download-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.download-body {
  padding: 64px 0 96px;
}

.release-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 16px;
  margin-bottom: 64px;
}

.release-card {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.release-card--muted {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
}

.release-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.release-card__top i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.release-card--muted .release-card__top i {
  background: var(--faint);
}

.release-card h2 {
  margin-top: 14px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.release-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.release-card .btn {
  margin-top: 20px;
}

.download-section {
  margin-top: 56px;
}

.download-section__head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.download-section__head p {
  padding-top: 4px;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: .02em;
}

.download-section__head h2 {
  color: var(--ink);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.025em;
}

.download-content {
  margin-left: 208px;
}

.download-content > p {
  max-width: 680px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.download-content a:not(.btn) {
  color: var(--accent);
  border-bottom: 1px solid rgb(79 82 216 / 26%);
}

.download-content a:not(.btn):hover {
  border-color: var(--accent);
}

.download-note {
  margin-top: 24px;
}

.steps {
  counter-reset: step;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.steps > li {
  position: relative;
  padding: 22px 0 24px 46px;
  border-bottom: 1px solid var(--line);
}

.steps > li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 25px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.steps h3 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.steps p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.steps .code {
  margin-top: 12px;
  background: var(--bg-soft);
}

.req-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.req-list > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.req-list dt {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
}

.req-list dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- responsive ---------- */

@media (min-width: 1101px) {
  body.docs-collapsed .docs-sidebar {
    display: none;
  }

  body.docs-collapsed .docs-wrap {
    grid-template-columns: minmax(0, 740px) 180px;
    justify-content: center;
  }
}

@media (max-width: 1180px) {
  .docs-wrap {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 44px;
  }

  .docs-toc {
    display: none;
  }

  .workflow-grid,
  .limits,
  .fit-list,
  .value-grid {
    margin-left: 0;
  }
}

@media (max-width: 980px) {
  .header-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: 0;
    padding-top: 44px;
  }

  .demo {
    margin-top: 40px;
    padding-top: 0;
  }

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

  .demo__rail {
    display: none;
  }

  .demo__tabs {
    display: flex;
  }

  .exec-row {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .exec-row__cli {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-head__label {
    padding-top: 0;
  }

  .value-grid {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fit-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .final__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }

  .download-section__head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .download-content {
    margin-left: 0;
  }

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

@media (max-width: 1100px) {
  .docs-wrap {
    grid-template-columns: minmax(0, 740px);
    justify-content: center;
    padding-top: 32px;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    height: 100vh;
    max-height: none;
    padding: 18px 16px 24px;
    border-right: 1px solid var(--line);
    background: var(--bg);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform .28s var(--ease), visibility .28s;
  }

  .docs-sidebar.is-open {
    transform: none;
    visibility: visible;
  }

  .docs-sidebar__head {
    display: flex;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .docs-sidebar__head button {
    display: inline-grid;
  }

  body.docs-collapsed .docs-sidebar {
    display: block;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .site-header__inner {
    height: 56px;
  }

  .header-actions .icon-btn {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9.6vw, 3rem);
  }

  .hero__lede {
    font-size: 15px;
  }

  .demo {
    margin-top: 40px;
  }

  .demo__switch {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero__row {
    display: grid;
    gap: 18px;
  }

  .hero__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cli-band__inner {
    flex-wrap: wrap;
    gap: 10px 22px;
  }

  .cli-band__note {
    width: 100%;
    margin-left: 0;
  }

  .principle {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .limits {
    padding: 22px 20px;
  }

  .limits ul {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .docs-wrap {
    width: calc(100% - 40px);
  }

  .prose h2 {
    font-size: 21px;
  }

  .req-list {
    grid-template-columns: 1fr;
  }

  .download-hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.9rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- home (dark single-screen) ---------- */

body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.home #main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.home-hero {
  display: flex;
  flex: 1;
  align-items: center;
  padding: clamp(40px, 7vh, 80px) 0;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.16fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.home-hero__label {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .06em;
}

.home-hero h1 {
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(1.9rem, 2.9vw, 2.8rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.home-hero__sub {
  max-width: 480px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  transition: border-color .16s, background .16s, color .16s;
}

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

.cmd__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmd__dollar {
  flex: none;
  color: var(--accent);
}

.cmd svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--faint);
}

.cmd .ic-check {
  display: none;
  color: #7fc9a4;
}

.cmd.is-copied .ic-copy {
  display: none;
}

.cmd.is-copied .ic-check {
  display: block;
}

.demo__bar-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.demo__bar-tabs::-webkit-scrollbar {
  display: none;
}

.demo__bar-tabs .demo__tab {
  flex: none;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--dark-faint);
  font-size: 11px;
}

.demo__bar-tabs .demo__tab:hover {
  color: var(--dark-text);
  background: rgb(255 255 255 / 6%);
}

.demo__bar-tabs .demo__tab.is-active {
  color: var(--dark-text);
  background: rgb(255 255 255 / 8%);
}

.demo__bar-tabs .demo__tab.is-active::after {
  display: none;
}

.home-features {
  padding-bottom: clamp(44px, 8vh, 72px);
}

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

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  transition: border-color .18s, transform .18s var(--ease);
}

.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--bg-sunken);
  color: var(--accent);
}

.feature__icon svg {
  width: 18px;
  height: 18px;
}

.feature h3 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.home-footer {
  border-top: 1px solid var(--line);
}

.home-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 0;
  color: var(--faint);
  font-size: 12px;
}

.home-footer__inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.home-footer__inner a {
  color: var(--muted);
}

.home-footer__inner a:hover {
  color: var(--ink);
}

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

@media (max-width: 920px) {
  .home-hero {
    display: block;
    padding: 48px 0 40px;
  }

  .home-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-hero__sub {
    max-width: 560px;
  }
}

@media (max-width: 560px) {
  .home-features__grid {
    grid-template-columns: 1fr;
  }

  .home-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo__live {
    display: none;
  }
}

/* ---------- real app screenshot ---------- */

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #2c2c32;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgb(0 0 0 / 45%);
}
