:root {
  --bg: #0b1020;
  --bg-soft: #121a33;
  --text: #e8ecf8;
  --muted: #a9b3cf;
  --card: #151d38;
  --border: #26315a;
  --cyan: #22d3ee;
  --purple: #a855f7;
  --grad: linear-gradient(90deg, #22d3ee, #a855f7);
  --link: #7dd3fc;
  --btn-text: #0b1020;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6fb;
    --bg-soft: #e9edf8;
    --text: #0b1020;
    --muted: #46506e;
    --card: #ffffff;
    --border: #d5dbea;
    --link: #0e6fa3;
    --btn-text: #ffffff;
  }
}

:root[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-soft: #e9edf8;
  --text: #0b1020;
  --muted: #46506e;
  --card: #ffffff;
  --border: #d5dbea;
  --link: #0e6fa3;
  --btn-text: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 8px;
}

.brand img {
  display: block;
  height: 56px;
  width: auto;
}

.lang { font-size: 14px; color: var(--muted); white-space: nowrap; }
.lang a { color: var(--link); text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.lang a[aria-current="page"] { color: var(--text); font-weight: 700; background: var(--bg-soft); }

h1 {
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1.15;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 1.3rem;
  margin: 36px 0 12px;
}

p { margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); }

.badge {
  display: inline-block;
  background: var(--grad);
  color: var(--btn-text);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  margin: 8px 0 4px;
}

.steps, .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
}

.steps ol { margin: 0; padding-left: 22px; }
.steps li { margin: 6px 0; }

ul.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
ul.features li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
ul.features li strong {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 560px) {
  ul.features { grid-template-columns: 1fr 1fr; }
}

footer {
  margin: 48px 0 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}
footer a { color: var(--link); }

article.doc h1 { font-size: 1.9rem; }
article.doc h2 { font-size: 1.15rem; margin-top: 28px; }
article.doc ul { padding-left: 22px; }
article.doc li { margin: 6px 0; }

a { color: var(--link); }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .wm {
  font-weight: 800; font-size: 30px; letter-spacing: -.02em; line-height: 1;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
