:root {
  color-scheme: dark;
  --bg: #0b0c12;
  --panel: rgba(24, 25, 36, 0.9);
  --panel-solid: #181924;
  --line: #30313f;
  --text: #f7f7fb;
  --muted: #a6a8ba;
  --purple: #7b72ff;
  --cyan: #5eead4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5fb;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-solid: #fff;
  --line: #d9dbea;
  --text: #191b29;
  --muted: #62667a;
  --purple: #635bff;
  --cyan: #098d7d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 90% 4%, rgba(123, 114, 255, 0.18), transparent 26rem), radial-gradient(circle at 5% 65%, rgba(94, 234, 212, 0.09), transparent 28rem), var(--bg); color: var(--text); }
a { color: inherit; }
button { font: inherit; }
code { padding: 0.15em 0.4em; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--panel-solid) 82%, var(--purple)); font-size: 0.9em; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 10px; color: #fff; background: #635bff; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; padding: 10px max(16px, calc((100% - 1120px) / 2)); border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #6f64ff, #a66bff); font-weight: 900; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand small { color: var(--muted); }
.header-actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--panel-solid); text-decoration: none; cursor: pointer; font-weight: 750; }
.button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--purple) 65%, var(--line)); }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--cyan) 70%, transparent); outline-offset: 3px; }
.button.primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, #665cff, #8f64ed); }
.button.secondary { background: color-mix(in srgb, var(--panel-solid) 90%, var(--purple)); }
.button.ghost { background: transparent; }
.button.large { min-height: 48px; padding-inline: 19px; }
main, footer { width: min(1120px, calc(100% - 28px)); margin-inline: auto; }
.hero { padding: clamp(56px, 10vw, 112px) 0 48px; }
.eyebrow, .section-title p { margin: 0; color: var(--cyan); font-size: 0.74rem; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 16px 0 20px; font-size: clamp(2.65rem, 8vw, 5.7rem); letter-spacing: -0.06em; line-height: 0.98; }
.hero h1 em { color: #9a92ff; font-style: normal; }
.hero > p { max-width: 680px; margin: 0 0 26px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.85; }
.toc { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 34px; padding: 9px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); scrollbar-width: thin; }
.toc a { flex: 0 0 auto; padding: 9px 13px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 750; }
.toc a:hover { color: var(--text); background: color-mix(in srgb, var(--panel-solid) 84%, var(--purple)); }
.section { margin-bottom: 22px; padding: clamp(22px, 4.5vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12); }
.section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.section-title > span { display: grid; width: 39px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #b8b3ff; background: color-mix(in srgb, var(--panel-solid) 80%, var(--purple)); font-size: 0.75rem; font-weight: 900; }
.section-title h2 { margin: 4px 0 0; font-size: clamp(1.45rem, 4vw, 2.2rem); letter-spacing: -0.03em; }
.feature-grid, .tip-grid, .faq-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.card, .mini-card, .platform-card { padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--panel-solid) 94%, transparent); }
.card-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #6e64ff, #8e68e9); font-weight: 900; }
.card h3, .mini-card strong { display: block; margin: 14px 0 7px; }
.card p, .mini-card p, .platform-card p, .lead, .choice-help, .recommendation p, .note p, .steps p, details p { margin: 0; color: var(--muted); line-height: 1.75; }
.note { display: flex; gap: 14px; margin-top: 18px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--cyan) 40%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--cyan) 7%, transparent); }
.note strong { flex: 0 0 auto; }
.note.warning { border-color: color-mix(in srgb, #f2bd5f 45%, var(--line)); background: color-mix(in srgb, #f2bd5f 7%, transparent); }
.steps { display: grid; gap: 13px; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--panel-solid) 94%, transparent); }
.steps li > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fff; background: var(--purple); font-weight: 850; }
.steps h3 { margin: 3px 0 6px; font-size: 1rem; }
.mini-card strong { margin-top: 0; }
.recommendation { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; padding: 18px; border: 1px solid color-mix(in srgb, var(--purple) 60%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--purple) 10%, transparent); }
.recommendation > span { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #fff; background: var(--purple); font-size: 0.7rem; font-weight: 850; }
.recommendation strong { display: block; margin-bottom: 5px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; }
table { width: 100%; min-width: 610px; border-collapse: collapse; background: color-mix(in srgb, var(--panel-solid) 95%, transparent); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; line-height: 1.55; }
thead th { color: #fff; background: color-mix(in srgb, var(--purple) 75%, #242536); }
tbody th { color: var(--muted); font-size: 0.83rem; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.choice-help { margin-top: 14px; }
.lead { margin: -10px 0 20px; font-size: 1.02rem; }
.platform-grid { display: grid; gap: 13px; }
.platform-card.featured { border-color: color-mix(in srgb, var(--purple) 58%, var(--line)); }
.platform-label { display: inline-block; margin-bottom: 10px; color: var(--text); font-weight: 850; }
.platform-card ol { margin: 4px 0 14px; padding-left: 1.3rem; line-height: 1.85; }
.official-link { margin: 16px 0 0; }
.official-link a { color: color-mix(in srgb, var(--cyan) 85%, var(--text)); font-weight: 750; }
.faq-grid details { border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--panel-solid) 94%, transparent); }
.faq-grid summary { padding: 16px; cursor: pointer; font-weight: 800; }
.faq-grid details p { padding: 0 16px 16px; }
.privacy-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: color-mix(in srgb, var(--cyan) 42%, var(--line)); }
.privacy-summary h2 { margin: 7px 0 9px; }
.privacy-summary p { max-width: 720px; color: var(--muted); line-height: 1.75; }
footer { display: flex; justify-content: space-between; padding: 20px 0 42px; color: var(--muted); font-size: 0.85rem; }

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tip-grid, .faq-grid { grid-template-columns: repeat(3, 1fr); }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .compact-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-header { align-items: flex-start; }
  .brand small { display: none; }
  .header-actions .button { min-height: 40px; padding: 8px 11px; font-size: 0.8rem; }
  .hero { padding-top: 48px; }
  .hero-actions .button { width: 100%; }
  .section { border-radius: 19px; }
  .note, .recommendation, .privacy-summary { align-items: flex-start; flex-direction: column; }
  .privacy-summary .button { width: 100%; }
  footer { gap: 16px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
