:root {
  --font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --bg: #f2f3ef;
  --surface: #fafaf7;
  --surface-2: #eceee8;
  --ink: #11161a;
  --ink-2: #4f5a63;
  --ink-3: #5f6c76;
  --line: #d5dad3;
  --line-strong: #b8c0b8;
  --accent: #2337f5;
  --accent-ink: #ffffff;
  --accent-soft: #e8eaff;
  --accent-deep: #1828bd;
  --key: #ffffff;
  --key-edge: #c3cbc3;
  --stage: #10161d;
  --stage-2: #18212b;
  --stage-ink: #eef2f4;
  --stage-line: #2b3743;
  --stage-muted: #93a1ae;
  --code-bg: #0d131a;
  --code-ink: #edf1f5;
  --code-muted: #8f9eac;
  --warm: #ffb000;
  --radius: 12px;
  --shadow: 0 24px 70px -34px rgb(17 22 26 / 38%);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0a0e13;
  --surface: #111820;
  --surface-2: #151e27;
  --ink: #edf1f3;
  --ink-2: #a6b2bd;
  --ink-3: #7f8d99;
  --line: #252f39;
  --line-strong: #3a4753;
  --accent: #8794ff;
  --accent-ink: #0a0e13;
  --accent-soft: #1a2249;
  --accent-deep: #b8c1ff;
  --key: #1a232d;
  --key-edge: #3a4855;
  --stage: #0e151d;
  --stage-2: #17212c;
  --stage-ink: #eef2f4;
  --stage-line: #2b3743;
  --stage-muted: #93a1ae;
  --code-bg: #080d12;
  --code-ink: #edf1f5;
  --code-muted: #8f9eac;
  --shadow: 0 24px 70px -30px rgb(0 0 0 / 70%);
  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(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="fa"] body {
  font-family: "Vazirmatn", var(--font-sans);
  line-height: 1.85;
}

html[lang="fa"] {
  --font-display: "Vazirmatn", var(--font-sans);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}

html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

p,
ul,
ol,
figure {
  margin: 0;
}

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

code {
  font-size: 0.92em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

kbd {
  display: inline-flex;
  min-width: 28px;
  height: 29px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--key-edge);
  border-radius: 6px;
  background: var(--key);
  box-shadow: 0 2px 0 var(--key-edge);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.key-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  direction: ltr;
  unicode-bidi: isolate;
}

.key-plus {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
}

.skip {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  transform: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-block-end: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-key {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--key-edge);
  border-radius: 7px;
  background: var(--key);
  box-shadow: 0 3px 0 var(--key-edge);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-slash {
  color: var(--ink-3);
  padding: 0 2px;
}

.brand-sub {
  color: var(--ink-2);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline-start: auto;
  font-size: 14px;
  color: var(--ink-2);
}

.site-nav a {
  position: relative;
  padding-block: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 8px;
}

.icon-btn {
  display: inline-flex;
  min-width: 38px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.icon-btn:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

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

.theme-btn .moon {
  display: none;
}

html[data-theme="dark"] .theme-btn .sun {
  display: none;
}

html[data-theme="dark"] .theme-btn .moon {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 78px 104px;
  border-block-end: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.8s ease-in-out infinite;
}

.hero h1 {
  margin-block-start: 22px;
  font-size: clamp(56px, 7.4vw, 96px);
  font-weight: 600;
  letter-spacing: -0.065em;
}

html[lang="fa"] .hero h1 {
  font-size: clamp(46px, 6.2vw, 78px);
  font-weight: 700;
}

.lede {
  max-width: 56ch;
  margin-block-start: 26px;
  color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}

html[lang="fa"] .lede {
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  box-shadow: 0 3px 0 var(--accent-deep);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--accent-deep);
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--accent-deep);
}

.button svg {
  width: 16px;
  height: 16px;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: 0 3px 0 var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  box-shadow: 0 4px 0 var(--line);
}

.button-secondary:active {
  box-shadow: 0 1px 0 var(--line);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-block-start: 26px;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: 13px;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.hero-visual {
  position: relative;
  direction: ltr;
  unicode-bidi: isolate;
}

.stage {
  position: relative;
  padding: 18px;
  border: 1px solid var(--stage-line);
  border-radius: 18px;
  background:
    linear-gradient(var(--stage-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-line) 1px, transparent 1px), var(--stage);
  background-size: 28px 28px;
  box-shadow: var(--shadow);
  animation: stage-in 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.window {
  overflow: hidden;
  border: 1px solid var(--stage-line);
  border-radius: 12px;
  background: var(--stage-2);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 13px;
  border-block-end: 1px solid var(--stage-line);
  color: var(--stage-muted);
  font-size: 11px;
}

.traffic {
  display: inline-flex;
  gap: 5px;
}

.traffic i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #465563;
}

.traffic i:first-child {
  background: #c75b53;
}

.traffic i:nth-child(2) {
  background: #c99a4a;
}

.traffic i:nth-child(3) {
  background: #5f9c70;
}

.window-title {
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.focus-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: auto;
  padding: 3px 8px;
  border: 1px solid var(--stage-line);
  border-radius: 99px;
  color: var(--stage-ink);
}

.focus-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warm);
}

.tabbar {
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-height: 42px;
  padding: 7px 8px 0;
  border-block-end: 1px solid var(--stage-line);
  overflow: hidden;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 150px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-block-end: 0;
  border-radius: 7px 7px 0 0;
  color: var(--stage-muted);
  font-size: 11px;
  white-space: nowrap;
}

.tab kbd {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-color: var(--stage-line);
  background: var(--stage);
  box-shadow: none;
  color: var(--stage-muted);
  font-size: 9px;
}

.tab.active {
  border-color: var(--stage-line);
  background: var(--stage);
  color: var(--stage-ink);
}

.tab.active kbd {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.tab-add {
  display: grid;
  place-items: center;
  width: 30px;
  color: var(--stage-muted);
  font-size: 17px;
}

.window-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 236px;
}

.mini-side {
  padding: 16px 12px;
  border-inline-end: 1px solid var(--stage-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-line {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: var(--stage-line);
}

.mini-line.w40 {
  width: 40%;
}

.mini-line.w65 {
  width: 65%;
}

.mini-line.w70 {
  width: 70%;
  background: #2f4050;
}

.mini-line.w85 {
  width: 85%;
}

.mini-main {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px 18px 16px;
}

.mini-main .mini-line:nth-child(1) {
  height: 8px;
  background: #30404f;
  margin-block-end: 8px;
}

.mini-main .mini-line:nth-child(2) {
  width: 78%;
}

.mini-main .mini-line:nth-child(3) {
  width: 54%;
}

.mini-main .mini-line:nth-child(4) {
  width: 68%;
}

.mini-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-start: auto;
  padding: 9px 10px;
  border: 1px solid var(--stage-line);
  border-radius: 7px;
  color: var(--stage-muted);
  font-size: 10px;
}

.mini-prompt .mini-keys {
  display: inline-flex;
  gap: 3px;
  margin-inline-start: auto;
}

.mini-prompt kbd {
  min-width: 22px;
  height: 21px;
  padding: 0 5px;
  border-color: var(--stage-line);
  background: var(--stage);
  box-shadow: none;
  color: var(--stage-ink);
  font-size: 9px;
}

.stage-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-block-start: 16px;
  padding-inline: 8px;
}

.stage-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 8px;
  border: 1px solid var(--stage-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 4%);
  color: var(--stage-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  animation: key-in 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stage-key:nth-child(2) {
  animation-delay: 80ms;
}

.stage-key:nth-child(3) {
  animation-delay: 160ms;
}

.stage-key:nth-child(4) {
  animation-delay: 240ms;
}

.stage-key kbd {
  min-width: 21px;
  height: 21px;
  padding: 0 4px;
  border-color: var(--stage-line);
  background: var(--stage);
  box-shadow: 0 2px 0 #070b0f;
  color: var(--stage-ink);
  font-size: 9px;
}

.stage-key:first-child kbd {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 2px 0 var(--accent-deep);
  color: var(--accent-ink);
}

.stage-key em {
  font-style: normal;
  color: var(--stage-muted);
}

.section {
  padding-block: 92px;
  border-block-end: 1px solid var(--line);
}

.section-head {
  max-width: 710px;
}

.section-head h2 {
  margin-block-start: 16px;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 600;
}

html[lang="fa"] .section-head h2 {
  font-size: clamp(30px, 3.8vw, 44px);
}

.section-lede {
  margin-block-start: 18px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-block-start: 50px;
  border-block-start: 1px solid var(--line);
}

.feature {
  padding: 26px 30px 0;
  border-inline-start: 1px solid var(--line);
}

.feature:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.feature:last-child {
  padding-inline-end: 0;
}

.feature-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-block-end: 20px;
}

.feature h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.feature p {
  margin-block-start: 12px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.7;
}

.table-wrap {
  margin-block-start: 42px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

th,
td {
  padding: 15px 18px;
  border-block-end: 1px solid var(--line);
  text-align: start;
  vertical-align: middle;
}

th {
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

tr:last-child td {
  border-block-end: 0;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: var(--accent-soft);
}

td:first-child {
  color: var(--ink-2);
}

td:first-child strong {
  color: var(--ink);
  font-weight: 500;
}

.table-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-block-start: 12px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 38px;
  margin-block-start: 48px;
}

.note {
  padding-block-start: 18px;
  border-block-start: 2px solid var(--ink);
}

.note h3 {
  font-size: 18px;
  font-weight: 600;
}

.note p {
  margin-block-start: 8px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
  margin-block-start: 48px;
}

.steps {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
  border-block-start: 1px solid var(--line);
}

.steps li {
  counter-increment: install-step;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding-block: 22px;
  border-block-end: 1px solid var(--line);
}

.steps li::before {
  content: "0" counter(install-step);
  padding-block-start: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.steps h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.steps p {
  margin-block-start: 5px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--stage-line);
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 13px;
  border-block-end: 1px solid #26313c;
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.terminal-bar .traffic i {
  background: #3f4c58;
}

.terminal-bar .traffic i:first-child {
  background: #c75b53;
}

.terminal-bar .traffic i:nth-child(2) {
  background: #c99a4a;
}

.terminal-bar .traffic i:nth-child(3) {
  background: #5f9c70;
}

.terminal-label {
  margin-inline-start: 4px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  margin-inline-start: auto;
  padding: 0 8px;
  border: 1px solid #2f3c48;
  border-radius: 5px;
  background: transparent;
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  direction: ltr;
}

.copy-btn:hover {
  border-color: #536473;
  color: var(--code-ink);
}

.copy-btn svg {
  width: 12px;
  height: 12px;
}

.os-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 13px 0;
}

.os-tab {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
}

.os-tab[aria-selected="true"] {
  border-color: #344250;
  background: #151e27;
  color: var(--code-ink);
}

.os-tab:hover {
  color: var(--code-ink);
}

.os-pane {
  padding: 10px 18px 20px;
}

.os-pane pre {
  margin: 0;
  padding: 14px 0 0;
  color: var(--code-ink);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: left;
}

.os-pane .prompt {
  color: #7dd3a7;
  user-select: none;
}

.terminal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 0 18px 18px;
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.copy-status {
  min-height: 1.2em;
  color: #7dd3a7;
}

.details {
  margin-block-start: 34px;
  border-block-start: 1px solid var(--line);
}

details {
  border-block-end: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 18px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  margin-inline-start: auto;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

.details-body {
  padding-block-end: 24px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.details-body p + p,
.details-body p + pre,
.details-body pre + p,
.details-body .mini-table + p {
  margin-block-start: 14px;
}

.details-body pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
}

.mini-table {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  margin-block-start: 14px;
  border-block-start: 1px solid var(--line);
  font-size: 13px;
}

.mini-table div {
  padding: 9px 10px;
  border-block-end: 1px solid var(--line);
}

.mini-table div:nth-child(odd) {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-block-start: 48px;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--line);
}

.pipeline li {
  position: relative;
  padding: 24px 24px 0;
  border-inline-start: 1px solid var(--line);
}

.pipeline li:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.pipeline li:last-child {
  padding-inline-end: 0;
}

.pipeline-num {
  display: block;
  margin-block-end: 16px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.pipeline h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.pipeline p {
  margin-block-start: 8px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.path-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-block-start: 32px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  direction: ltr;
}

.limit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-block-start: 44px;
  border-block-start: 1px solid var(--line);
}

.limit {
  padding: 24px 30px 26px;
  border-block-end: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}

.limit:nth-child(odd) {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.limit:nth-child(even) {
  padding-inline-end: 0;
}

.limit h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.limit p {
  margin-block-start: 8px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.tui-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--stage-line);
  border-radius: 18px;
  background: var(--stage);
  color: var(--stage-ink);
}

.tui-panel .section-kicker {
  color: var(--stage-muted);
}

.tui-panel h2 {
  margin-block-start: 14px;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
}

.tui-panel p {
  margin-block-start: 16px;
  color: #b8c4ce;
  font-size: 15px;
  line-height: 1.75;
}

.tui-list {
  display: grid;
  gap: 10px;
  margin-block-start: 22px;
  padding: 0;
  list-style: none;
  color: #dbe3e9;
  font-size: 14px;
}

.tui-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
}

.tui-list li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.tui-panel .button {
  margin-block-start: 28px;
}

.tui-figure {
  margin: 0;
  direction: ltr;
}

.tui-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--stage-line);
  border-radius: 10px;
  background: #0b1016;
}

.tui-figure figcaption {
  margin-block-start: 10px;
  color: var(--stage-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 100px;
}

.faq-intro h2 {
  margin-block-start: 16px;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 600;
}

.faq-intro p {
  margin-block-start: 16px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}

.faq-list {
  border-block-start: 1px solid var(--line);
}

.faq-list summary {
  font-size: 15px;
}

.faq-list .details-body {
  padding-inline-end: 28px;
}

.footer {
  padding-block: 44px;
}

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

.footer-tagline {
  max-width: 34ch;
  margin-block-start: 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
}

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

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 9px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: end;
}

.footer-meta a {
  color: var(--ink-2);
}

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

.footer-key {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-block-start: 20px;
  border: 1px solid var(--key-edge);
  border-radius: 7px;
  background: var(--key);
  box-shadow: 0 3px 0 var(--key-edge);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes key-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 5px var(--accent-soft);
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 10px;
    row-gap: 6px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-inline-start: 0;
    gap: 18px;
    overflow-x: auto;
    padding-block-end: 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .controls {
    margin-inline-start: auto;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-visual {
    max-width: 620px;
  }

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

  .feature,
  .feature:first-child,
  .feature:last-child {
    padding: 22px 0;
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
  }

  .feature:first-child {
    border-block-start: 0;
  }

  .install-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .pipeline li:nth-child(3) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .tui-panel {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-intro {
    position: static;
  }

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

  .footer-meta {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: start;
  }
}

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

  .header-inner {
    min-height: 60px;
    gap: 12px;
  }

  .controls {
    margin-inline-start: auto;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-sub,
  .brand-slash {
    display: none;
  }

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

  .hero h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .tabbar .tab:nth-of-type(3),
  .tabbar .tab-add {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    display: grid;
    gap: 5px;
  }

  .section {
    padding-block: 66px;
  }

  .section-lede {
    font-size: 15.5px;
  }

  .notes-grid,
  .limit-grid {
    grid-template-columns: 1fr;
  }

  .limit,
  .limit:nth-child(odd),
  .limit:nth-child(even) {
    padding: 20px 0;
    border-inline-start: 0;
  }

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

  .pipeline li,
  .pipeline li:nth-child(3) {
    padding: 20px 0;
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
  }

  .pipeline li:first-child {
    border-block-start: 0;
  }

  .tui-panel {
    padding: 26px 20px;
    border-radius: 12px;
  }

  .mini-table {
    grid-template-columns: 1fr;
  }

  .mini-table div:nth-child(odd) {
    padding-block-end: 0;
    border-block-end: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-meta {
    grid-column: auto;
  }

  .window-body {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .mini-side {
    padding-inline: 8px;
  }

  .stage {
    padding: 12px;
  }

  .stage-key em {
    display: none;
  }
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
