:root {
  --bg: #0b1020;
  --bg-elev: #12182c;
  --header: #0e1430;
  --violet: #241a52;
  --accent: #5ec8f8;
  --accent-2: #8b9cff;
  --accent-ink: #062033;
  --paper: #ffffff;
  --paper-soft: #f3f5fb;
  --ink: #1c1830;
  --ink-muted: #5c5672;
  --line: rgba(255,255,255,.12);
  --line-dark: rgba(28,24,48,.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --font-ui: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-article: "Source Serif 4", Georgia, "Times New Roman", serif;
  --shadow: 0 18px 50px rgba(8, 10, 28, .28);
  --wrap: 1120px;
  --motion-fast: 220ms;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: #e8eefc;
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b8ecff; }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 20;
}
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); }
.muted { color: var(--ink-muted); }
.small { font-size: .88rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--header) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 650; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-size: 1.05rem; }
.search-bar { position: relative; flex: 1; display: flex; align-items: center; background: #1a2140; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; max-width: 420px; }
.search-bar input { flex: 1; background: transparent; border: 0; color: #e8eefc; padding: 10px 8px; font: inherit; outline: none; }
.search-bar input::placeholder { color: #8b90ad; }
.icon-btn { background: transparent; border: 0; color: var(--accent); padding: 8px; border-radius: 999px; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: #c9d2ee; text-decoration: none; font-size: .94rem; font-weight: 500; }
.nav a:hover { color: #fff; }
.bell, .nav-toggle { background: transparent; border: 1px solid var(--line); color: #e8eefc; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 3px 0; }
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow); overflow: hidden; z-index: 30;
}
.search-suggest a { display: block; padding: 10px 14px; color: #e8eefc; text-decoration: none; }
.search-suggest a:hover { background: #1c2444; }

.hero { padding: 48px 0 32px; background:
  radial-gradient(900px 400px at 10% -10%, rgba(94,200,248,.16), transparent 50%),
  radial-gradient(700px 320px at 90% 0%, rgba(139,156,255,.14), transparent 45%),
  var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: stretch; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--accent); font-weight: 600; margin: 0 0 10px; }
.hero h1, .page-head h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 650; }
.lead { font-size: 1.12rem; color: #c5cce6; max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: #9aa3c4; font-size: .9rem; }
.trust li { position: relative; padding-left: 14px; }
.trust li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 99px; background: var(--accent); }
.hero-feature {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-xl);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.hero-feature-media img { width: 100%; height: 240px; object-fit: cover; }
.hero-feature-body { padding: 22px; }
.hero-feature-body h2 { font-size: 1.45rem; margin: 8px 0 10px; letter-spacing: -.02em; }
.hero-feature-body h2 a { color: #fff; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 .95rem var(--font-ui);
  border: 1px solid transparent; text-decoration: none; transition: transform var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: var(--line); color: #e8eefc; }
.btn-ghost:hover { color: #fff; background: #1a2140; }
.chip {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 4px 10px; text-decoration: none;
}

.section { padding: 56px 0; background: var(--paper-soft); color: var(--ink); }
.section + .section { padding-top: 8px; }
.section-alt { background: #eceff8; }
.section h2, .page-head h1 { color: inherit; }
.section .section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.section .section-head h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.section .section-head a { color: #3b4a88; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; min-height: 100%;
  box-shadow: 0 8px 24px rgba(20, 24, 48, .05);
}
.card-media img { width: 100%; height: 170px; object-fit: cover; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { margin: 0; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: #2a3f9a; }
.card-excerpt { margin: 0; color: var(--ink-muted); font-size: .95rem; }
.card-meta { margin: 0; color: #7a7490; font-size: .82rem; margin-top: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rank { list-style: none; padding: 0; margin: 0; }
.rank li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.rank span { font-variant-numeric: tabular-nums; color: #8b9cff; font-weight: 650; }
.rank a { color: var(--ink); text-decoration: none; font-weight: 550; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.cat-tile {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line-dark); text-decoration: none; color: var(--ink);
}
.cat-tile span { color: var(--ink-muted); font-size: .92rem; }

.cta-band {
  background: linear-gradient(160deg, #1a1440, #0e1430 55%, #163050);
  color: #e8eefc; padding: 48px 0;
}
.cta-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.cta-band h2 { margin: 0 0 8px; letter-spacing: -.02em; }
.cta-band p { margin: 0; color: #c5cce6; max-width: 56ch; }

.page-head { padding: 48px 0 12px; }
.article-page main, .article-shell { background: var(--paper-soft); color: var(--ink); }
.crumb { padding: 20px 0 0; font-size: .88rem; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumb a { color: #3b4a88; text-decoration: none; }
.article-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.03em; margin: 12px 0; color: var(--ink); max-width: 22ch; }
.article-hero .lead { color: var(--ink-muted); }
.article-meta { color: #7a7490; font-size: .92rem; }
.article-cover { margin: 24px auto; }
.article-cover img { width: 100%; border-radius: var(--radius-xl); max-height: 420px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; padding-bottom: 48px; }
.article-paper, .about-paper {
  background: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius-xl);
  padding: 28px 28px 36px; box-shadow: 0 10px 40px rgba(20,24,48,.06);
}
.article-body { font-family: var(--font-article); font-size: 1.125rem; line-height: 1.7; color: #221e35; }
.article-body h2 { font-family: var(--font-ui); font-size: 1.45rem; letter-spacing: -.02em; margin: 1.6em 0 .5em; }
.article-body h3 { font-family: var(--font-ui); font-size: 1.15rem; margin: 1.3em 0 .4em; }
.article-body p, .article-body li { margin: 0 0 1em; }
.article-body a { color: #2651c9; }
.article-body .aff { font-weight: 650; }
.article-body pre, .article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.article-body pre { background: #f3f5fb; padding: 14px; border-radius: var(--radius-sm); overflow: auto; }
.article-body table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: .92rem; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line-dark); padding: 10px 8px; text-align: left; }
.table-wrap { overflow: auto; }
.box-tip, .box-warn, .box-reco {
  border-radius: var(--radius-md); padding: 14px 16px; margin: 0 0 1.2em; font-family: var(--font-ui); font-size: .98rem;
}
.box-tip { background: #e7f6ff; border: 1px solid #b8e4f8; }
.box-warn { background: #fff4e8; border: 1px solid #f3d5b0; }
.box-reco { background: #eef0ff; border: 1px solid #c9ceff; }
.toc { background: #f3f5fb; border-radius: var(--radius-lg); padding: 18px 20px; margin: 0 0 28px; }
.toc-title { margin: 0 0 8px; font-weight: 650; font-family: var(--font-ui); }
.toc ol { margin: 0; padding-left: 18px; font-family: var(--font-ui); }
.toc a { color: #2a3f9a; text-decoration: none; }
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius-md); padding: 14px 16px; }
.section .faq-item { background: #fff; }
.faq-item h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--ink); }
.faq-a { color: var(--ink-muted); font-size: .96rem; }
.faq-a p { margin: 0; }

.magnet {
  margin-top: 36px; padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #1a1440, #163050); color: #e8eefc;
}
.magnet h2 { margin: 8px 0 10px; font-size: 1.35rem; }
.magnet p { color: #c5cce6; }
.share-row, .helpful { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.helpful { color: var(--ink-muted); }
.share-row .btn-ghost, .helpful .btn-ghost { color: var(--ink); border-color: var(--line-dark); }
.share-row .is-on { color: #c23b5a; border-color: #c23b5a; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.prevnext a { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line-dark); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); }
.prevnext span { font-size: .78rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.article-aside { display: grid; gap: 16px; }
.aside-card { background: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 16px; }
.aside-card a { color: #2a3f9a; }
.comment { border-left: 3px solid var(--accent); padding: 0 0 0 14px; margin: 0 0 16px; color: var(--ink); }
.comment-form, .form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 550; }
input, textarea, select {
  font: inherit; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark);
  background: #fff; color: var(--ink); min-height: 44px;
}
.hp { position: absolute; left: -9999px; }
.flash-ok { background: #e7f8ee; color: #14633a; padding: 12px 14px; border-radius: var(--radius-sm); }
.flash-err { background: #fdecee; color: #8b1d2c; padding: 12px 14px; border-radius: var(--radius-sm); }

.site-footer { background: var(--header); color: #c5cce6; padding: 48px 0 24px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-title { color: #fff; font-weight: 650; margin: 0 0 10px; }
.foot-list { list-style: none; padding: 0; margin: 0; }
.foot-list a { color: #c5cce6; text-decoration: none; }
.foot-list li { margin: 0 0 8px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; background: #161c36; }
.socials img { width: 22px; height: 22px; }
.legal-line { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
.brand-foot { color: #fff; text-decoration: none; }

.cookie {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 50;
  max-width: 720px; margin: 0 auto; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow);
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.modal {
  position: fixed; inset: 0; background: rgba(6,8,20,.62); z-index: 60; display: grid; place-items: center; padding: 20px;
}
.modal[hidden], .cookie[hidden], .search-suggest[hidden], .progress[hidden] { display: none !important; }
.modal-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-xl); padding: 28px; max-width: 520px;
  position: relative; box-shadow: var(--shadow);
}
.modal-x { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 1.4rem; color: var(--ink-muted); }
.steps { padding-left: 18px; }
.progress {
  position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 70;
  transform-origin: left;
}
.ad-slot { margin: 16px 0; min-height: 0; }
.pager { display: flex; gap: 8px; margin-top: 24px; }
.pager a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-dark); color: var(--ink); text-decoration: none; }
.pager .is-on { background: var(--ink); color: #fff; }
.sitemap-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.glossary dt { font-weight: 650; margin-top: 12px; }
.glossary dd { margin: 4px 0 0; color: var(--ink-muted); }

@media (max-width: 960px) {
  .hero-grid, .article-layout, .split, .footer-grid, .grid-3, .cat-grid, .sitemap-cols { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--header); padding: 16px 20px 24px; border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: grid; }
  .search-bar { max-width: none; }
  .header-inner { flex-wrap: wrap; }
  .brand { order: 0; }
  .nav-toggle { order: 1; margin-left: auto; }
  .bell { order: 2; }
  .search-bar { order: 3; flex-basis: 100%; }
  .cta-inner, .prevnext { grid-template-columns: 1fr; display: grid; }
  .article-paper { padding: 18px 16px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
