:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --soft: #f6f7f9;
    --text: #111827;
    --muted: #4b5563;
    --faint: #6b7280;
    --line: #e5e7eb;
    --accent: #6366f1;
    --button: #111827;
    --button-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0d17;
        --soft: #131627;
        --text: #f3f4f6;
        --muted: #c7c9d1;
        --faint: #9ca3af;
        --line: #262a3d;
        --accent: #818cf8;
        --button: #ffffff;
        --button-text: #0b0d17;
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero {
    padding: 72px 0 56px;
    background: radial-gradient(700px 360px at 0% 0%, rgba(34, 211, 238, .14), transparent 70%),
                radial-gradient(700px 380px at 100% 100%, rgba(192, 132, 252, .14), transparent 70%);
}
.hero .mark { width: 72px; height: 72px; }
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 18px 0 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.button {
    display: inline-block; padding: 12px 20px; border-radius: 12px; background: var(--button); color: var(--button-text);
    font-weight: 600; text-decoration: none;
}
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.button[aria-disabled="true"] { opacity: .65; cursor: default; }
.small { font-size: 14px; color: var(--faint); }

section { padding: 48px 0; border-top: 1px solid var(--line); }
h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 18px; }
h3 { font-size: 18px; margin: 0 0 8px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--soft); border-radius: 14px; padding: 20px; }
.card ul, .card ol { margin: 0; padding-left: 20px; color: var(--muted); }
.card p { margin: 0; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: baseline; color: var(--muted); }
.steps li::before {
    content: counter(step); flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}
.shots { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.shots img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }

article.doc { max-width: 760px; padding: 48px 0 64px; }
article.doc h1 { font-size: 38px; }
article.doc h2 { font-size: 22px; margin-top: 36px; }
article.doc p, article.doc li { color: var(--muted); }
article.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
article.doc th, article.doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
article.doc code { font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
footer p { margin: 4px 0; }
footer a { color: var(--faint); }
nav a { white-space: nowrap; }
@media (max-width: 520px) {
    nav a { margin-left: 12px; font-size: 14px; }
    nav a.wide { display: none; }
}
