:root {
    --bg: #14161b;
    --bg-2: #1b1e25;
    --panel: #22262f;
    --line: #2f3440;
    --text: #e7e9ee;
    --muted: #9aa1ae;
    --orange: #ff7a00;
    --blue: #548ed6;
    --green: #46b080;
    --radius: 12px;
    --width: 1120px;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

code, kbd, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; }
code { background: var(--panel); padding: 0.1em 0.4em; border-radius: 4px; }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; padding: 0; }
kbd {
    display: inline-block; min-width: 1.6em; padding: 0.05em 0.45em; text-align: center;
    background: var(--panel); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
}

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 20px; }

/* Header */

header.top {
    position: sticky; top: 0; z-index: 10;
    background: rgba(20, 22, 27, 0.88); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav.links { display: flex; gap: 20px; margin-left: auto; }
nav.links a { color: var(--muted); font-size: 15px; }
nav.links a:hover, nav.links a.current { color: var(--text); text-decoration: none; }

/* Hero */

.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 720px; margin: 0 auto 30px; }
.hero .shot { margin-top: 48px; }
.shot.video { aspect-ratio: 16 / 9; background: #000; }
.shot.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.shot.screenshot { margin-bottom: 48px; }

.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 10px; font-weight: 600;
    background: var(--panel); color: var(--text); border: 1px solid var(--line);
}
.button:hover { text-decoration: none; border-color: #48505f; }
.button.primary { background: var(--orange); border-color: var(--orange); color: #16120d; }
.button.primary:hover { background: #ff8c24; }
.button .size { font-weight: 400; opacity: 0.75; font-size: 14px; }
.button .size:empty { display: none; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

.shot {
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* Sections */

section { padding: 64px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 30px; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 0 0 8px; }
.section-lead { color: var(--muted); max-width: 720px; margin: 0 0 36px; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 8px; vertical-align: 1px; }

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.split.reverse { grid-template-columns: 1.3fr 1fr; }
.split.reverse > :first-child { order: 2; }
.split ul { padding-left: 20px; color: var(--muted); }
.split li { margin: 6px 0; }
.split li strong { color: var(--text); }

figure { margin: 0; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }

/* Guide */

.guide { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-top: 40px; padding-bottom: 80px; }
.guide aside { position: sticky; top: 84px; align-self: start; font-size: 15px; }
.guide aside ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.guide aside a { display: block; padding: 5px 0 5px 16px; color: var(--muted); }
.guide aside a:hover { color: var(--text); text-decoration: none; }
.guide article { min-width: 0; }
.guide article h1 { font-size: 38px; margin: 0 0 10px; }
.guide article h2 { margin-top: 56px; padding-top: 8px; scroll-margin-top: 76px; }
.guide article h3 { margin-top: 28px; }
.guide article p, .guide article li { color: #cfd3db; }
.guide article figure { margin: 24px 0; }
.guide article .shot { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

.tip { background: rgba(84, 142, 214, 0.1); border: 1px solid rgba(84, 142, 214, 0.35); border-radius: 10px; padding: 12px 16px; margin: 20px 0; }
.tip p { margin: 0; }

ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; }
ol.steps > li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line);
    display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--orange);
}

/* Footer */

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

@media (max-width: 820px) {
    nav.links { gap: 14px; }
    nav.links .hide-small { display: none; }
    .split, .split.reverse { grid-template-columns: 1fr; gap: 24px; }
    .split.reverse > :first-child { order: 0; }
    .guide { grid-template-columns: 1fr; gap: 0; }
    .guide aside { display: none; }
    section { padding: 48px 0; }
    .hero { padding-top: 48px; }
}
