:root {
  --bg: #e4e9f2;
  --ink: #334155;
  --muted: #64748b;
  --soft: #94a3b8;
  --line: #c9d3e2;
  --accent: #4f6fd4;
  --accent-ink: #2c3f86;
  --ok: #2f7a5b;
  --warn: #9a6b12;
  --halt: #b45353;
  --light: #ffffff;
  --shade: #c3cddb;
  --radius: 22px;
  --raise: 9px 9px 18px var(--shade), -9px -9px 18px var(--light);
  --raise-sm: 6px 6px 12px var(--shade), -6px -6px 12px var(--light);
  --press: inset 7px 7px 14px var(--shade), inset -7px -7px 14px var(--light);
  --press-sm: inset 4px 4px 8px var(--shade), inset -4px -4px 8px var(--light);
  --focus: 0 0 0 3px rgba(79, 111, 212, 0.28);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html.allow-motion {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--raise-sm);
  color: var(--ink);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.9rem 0;
}

.mast-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--raise-sm);
}

.mast.is-pin .mast-inner {
  box-shadow: var(--press-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: var(--raise-sm);
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.55rem 0.9rem;
  box-shadow: var(--raise-sm);
  cursor: pointer;
  font: inherit;
}

.nav-toggle:active,
.nav-toggle[aria-expanded="true"] {
  box-shadow: var(--press-sm);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--raise-sm);
}

.nav a:hover,
.nav a[aria-current="page"] {
  box-shadow: var(--press-sm);
  text-decoration: none;
}

.nav a.cta {
  background: var(--bg);
  color: var(--accent-ink);
  font-weight: 700;
}

.hero,
.block {
  padding: 1.4rem 0 0.4rem;
}

.slab {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--raise);
  padding: 1.4rem 1.35rem 1.5rem;
}

.kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  line-height: 1.25;
  font-weight: 750;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

h3 {
  font-size: 1.05rem;
}

.lead,
.intro,
.note p,
.faq p {
  color: var(--muted);
}

.lead,
.intro {
  margin: 0 0 1rem;
  max-width: 62ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: start;
}

.page-hero {
  display: grid;
  gap: 0.85rem;
}

.crumb {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  box-shadow: var(--press-sm);
  color: var(--ink);
  font-size: 0.88rem;
}

.chip.on {
  color: var(--ok);
}

.switch {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  box-shadow: var(--press-sm);
  position: relative;
  display: inline-block;
  background: var(--bg);
}

.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--raise-sm);
}

.chip.on .switch i {
  left: 17px;
  background: #dce8f8;
}

.note {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  box-shadow: var(--press);
}

.note h3 {
  margin-bottom: 0.25rem;
}

.note.warn h3 {
  color: var(--warn);
}

.note.halt h3 {
  color: var(--halt);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1.15rem;
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--raise-sm);
  font-weight: 650;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  box-shadow: var(--press-sm);
}

.btn-primary {
  color: var(--accent-ink);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.metric {
  padding: 0.9rem;
  border-radius: 18px;
  box-shadow: var(--press);
}

.metric b {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.metric span,
.metric em {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.well {
  padding: 0.85rem;
  border-radius: 22px;
  box-shadow: var(--press);
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  border-radius: 16px;
}

.shot figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.grid-4,
.grid-2 {
  display: grid;
  gap: 0.9rem;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.card,
.os {
  display: block;
  padding: 1rem 1rem 1.05rem;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--raise-sm);
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  text-decoration: none;
  box-shadow: var(--press-sm);
}

.card p,
.os p {
  margin: 0;
  color: var(--muted);
}

.ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  margin-bottom: 0.75rem;
  box-shadow: var(--press-sm);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
}

.ico span,
.ico span::before,
.ico span::after {
  display: block;
  background: currentColor;
}

.ico-core span {
  width: 18px;
  height: 20px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.ico-yaml {
  position: relative;
}

.ico-yaml span,
.ico-yaml span::before,
.ico-yaml span::after {
  position: absolute;
  left: 15px;
  height: 2px;
  border-radius: 2px;
}

.ico-yaml span {
  width: 18px;
  top: 16px;
}

.ico-yaml span::before {
  content: "";
  width: 14px;
  top: 7px;
}

.ico-yaml span::after {
  content: "";
  width: 10px;
  top: 14px;
}

.ico-theme span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 5px -4px 0 -2px currentColor;
}

.ico-guard {
  position: relative;
}

.ico-guard span {
  width: 16px;
  height: 18px;
  border-radius: 8px 8px 4px 4px;
  clip-path: polygon(50% 0, 100% 18%, 86% 72%, 50% 100%, 14% 72%, 0 18%);
}

.ico-win span {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.ico-mac span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.ico-linux span {
  width: 14px;
  height: 16px;
  border-radius: 7px 7px 4px 4px;
}

.ico-and span {
  width: 18px;
  height: 12px;
  border-radius: 6px 6px 3px 3px;
}

.label {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.ticks {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.6rem;
  color: var(--muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: var(--press-sm);
  background: var(--bg);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  box-shadow: var(--press);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

.steps {
  display: grid;
  gap: 0.8rem;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem;
  border-radius: 18px;
  box-shadow: var(--raise-sm);
}

.step b {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: var(--press-sm);
  color: var(--accent-ink);
}

.step h3,
.step p {
  margin: 0;
}

.faq details {
  margin: 0 0 0.7rem;
  border-radius: 18px;
  box-shadow: var(--raise-sm);
  background: var(--bg);
}

.faq details[open] {
  box-shadow: var(--press-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem;
  font-weight: 650;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  float: right;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  border-radius: 50%;
  box-shadow: var(--press-sm);
}

.faq details p {
  margin: 0;
  padding: 0 1rem 1rem;
}

.foot {
  margin-top: 2.2rem;
  padding: 0 0 1.4rem;
}

.foot-slab {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 1.2rem 1.1rem;
  border-radius: 26px;
  box-shadow: var(--raise);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  gap: 1.2rem;
}

.foot h3 {
  font-size: 0.95rem;
}

.foot p,
.foot li {
  color: var(--muted);
  font-size: 0.92rem;
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot li {
  margin: 0.3rem 0;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  color: var(--soft);
  font-size: 0.84rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

html.allow-motion .reveal {
  opacity: 0;
  transform: translateY(16px);
}

html.allow-motion .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

html.allow-motion .chip.on .switch i,
html.allow-motion .btn,
html.allow-motion .card,
html.allow-motion .nav a,
html.allow-motion .faq details {
  transition: box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

body.nav-lock {
  overflow: hidden;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .grid-4,
  .metrics,
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 5.2rem;
    padding: 0.8rem;
    border-radius: 22px;
    background: var(--bg);
    box-shadow: var(--raise);
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a {
    justify-content: center;
  }

  .hero-grid,
  .split,
  .grid-4,
  .grid-2,
  .metrics,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .mast-inner {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html.allow-motion {
    scroll-behavior: auto;
  }

  html.allow-motion .reveal,
  html.allow-motion .reveal.is-in,
  html.allow-motion .chip.on .switch i,
  html.allow-motion .btn,
  html.allow-motion .card,
  html.allow-motion .nav a,
  html.allow-motion .faq details {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
