:root {
  --bg: #0c1220;
  --surface: #151e33;
  --surface2: #1f2a44;
  --text: #e8ecf6;
  --muted: #a3aec8;
  --accent: #5eead4;
  --accent-ink: #0c1220;
  --grad: linear-gradient(135deg, #1f2a44, #27407a 60%, #2b6f8f);
  --radius: 18px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6fb; --surface: #fff; --surface2: #e6ebf6;
    --text: #141b2d; --muted: #55607a; --accent: #0f766e; --accent-ink: #fff;
  }
}
:root[data-theme="light"] {
  --bg: #f4f6fb; --surface: #fff; --surface2: #e6ebf6;
  --text: #141b2d; --muted: #55607a; --accent: #0f766e; --accent-ink: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
header.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--surface2); }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
header.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
header.top .brand img { width: 30px; height: 30px; border-radius: 8px; }
header.top nav { margin-left: auto; display: flex; gap: 16px; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a:hover { color: var(--text); }
button.theme { background: none; border: 1px solid var(--surface2); color: var(--muted); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; flex: none; }
.hero { background: var(--grad); color: #fff; padding: 56px 0 48px; }
.hero .wrap { display: grid; gap: 32px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero h1 { font-size: clamp(30px, 5.5vw, 48px); margin: 0 0 12px; line-height: 1.1; }
.hero p { font-size: 18px; opacity: .95; margin: 0; }
.hero .mock { justify-self: center; width: 100%; max-width: 360px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; background: #fff; color: #14233f; }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } header.top nav { display: none; } }
section { padding: 48px 0 8px; }
h2 { font-size: 28px; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--surface2); }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p, .card li { color: var(--muted); font-size: 15px; margin: 4px 0; }
.card ul { padding-left: 20px; margin: 8px 0 0; }
.ico { width: 42px; height: 42px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; font-size: 20px; }
.dl { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 16px; }
.dl .card h3 { margin-top: 0; font-size: 22px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 99px; background: var(--surface2); color: var(--muted); margin-bottom: 8px; }
.dl .btn { background: var(--accent); color: var(--accent-ink); margin-top: 14px; }
.dl .btn.off { background: var(--surface2); color: var(--muted); pointer-events: none; }
.meta { font-size: 13px; color: var(--muted); word-break: break-word; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--surface2); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
details.card { margin-bottom: 16px; }
details summary { cursor: pointer; font-weight: 600; }
details p, details li { color: var(--muted); }
code { background: var(--surface2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--surface2); border-radius: var(--radius); padding: 14px 16px 14px 58px; position: relative; color: var(--muted); font-size: 15px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; }
.steps b { color: var(--text); }
footer { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--surface2); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.doc { padding: 40px 0 0; max-width: 780px; }
.doc h1 { font-size: 34px; margin: 0 0 4px; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc li { margin: 4px 0; }
.doc table { margin: 12px 0; }
.mock text { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.hero .mock { border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.45); height: auto; }
.shots { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 12px; display: block; }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }
.shots figcaption b { color: var(--text); }
