:root {
  --bg: #f7f8fa; --surface: #ffffff; --surface-2: #eef1f5; --text: #15191e; --muted: #59626e; --border: #e1e5ea;
  --accent: #2f6fed; --accent-2: #7c4dff; --accent-text: #ffffff; --ok: #1f8a4c; --warn-bg: #fff4e0; --warn: #8a5300;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1115; --surface: #161a20; --surface-2: #1e242c; --text: #e8ebef; --muted: #9aa3ae; --border: #29303a;
    --accent: #6b9bff; --accent-2: #a586ff; --accent-text: #0b0e12; --ok: #4cc283; --warn-bg: #2a2010; --warn: #f0b056; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1115; --surface: #161a20; --surface-2: #1e242c; --text: #e8ebef; --muted: #9aa3ae; --border: #29303a;
  --accent: #6b9bff; --accent-2: #a586ff; --accent-text: #0b0e12; --ok: #4cc283; --warn-bg: #2a2010; --warn: #f0b056; --shadow: none;
}
* { 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); }
img { max-width: 100%; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: var(--accent-text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; border-radius: 10px; padding: 12px 20px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn:hover { filter: brightness(1.06); }

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; }
.hero .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 4px 12px; border-radius: 99px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5.5vw, 56px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Sections */
section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 8px; letter-spacing: -0.01em; }
.section-title p { color: var(--muted); margin: 0 auto; max-width: 620px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .icon { font-size: 26px; margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 22px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0 8px 30px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.note { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 16px 18px; font-size: 15px; }
.note b { color: inherit; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; }
details p, details ol, details ul { color: var(--muted); margin: 10px 0 0; }

/* Guides page */
.guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 40px 0 64px; }
.toc { position: sticky; top: 80px; align-self: start; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 6px 0; font-size: 15px; }
.toc a:hover { color: var(--text); }
.guide { margin-bottom: 44px; scroll-margin-top: 80px; }
.guide h2 { font-size: 26px; margin: 0 0 6px; }
.guide .why { color: var(--muted); margin: 0 0 14px; }
.guide ol { padding-left: 22px; }
.guide li { margin-bottom: 8px; }

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

@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .two, .guide-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .hero { padding: 48px 0 32px; }
  section { padding: 40px 0; }
}
