:root {
  --red: #c8102e;
  --black: #111111;
  --text: #111111;
  --muted: #5e5e5e;
  --bg: #ffffff;
  --surface: #f3f3f3;
  --border: #e2e2e2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --red: #e8303f;
    --text: #ffffff;
    --muted: #b3b3b3;
    --bg: #000000;
    --surface: #1a1a1a;
    --border: #333333;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--red); }

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

header.site {
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero { padding: 64px 0 40px; text-align: center; }
.hero img { width: 112px; height: 112px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 auto 28px; max-width: 34ch; }

.badge {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 600; font-size: 15px;
}

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 24px 0 48px; }
.step { background: var(--surface); border-radius: 16px; padding: 20px; }
.step .n { color: var(--red); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.step h3 { margin: 4px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

section h2 { font-size: 26px; margin: 40px 0 12px; }
ul.features { padding-left: 1.2em; }
ul.features li { margin: 6px 0; }

.doc { padding-top: 40px; padding-bottom: 24px; }
.doc h1 { font-size: 36px; margin: 0 0 4px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc .summary { background: var(--surface); border-left: 4px solid var(--red); border-radius: 8px; padding: 16px 20px; }
.doc .summary p { margin: 0; }

footer.site { border-top: 1px solid var(--border); margin-top: 56px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
