:root {
  --bg: #07060b;
  --bg-2: #100e14;
  --panel: rgba(22, 16, 10, 0.72);
  --text: #f6efe2;
  --muted: #b5a894;
  --quiet: #a39888;
  --line: rgba(245, 185, 66, 0.18);
  --gold: #f5b942;
  --gold-2: #ffd27a;
  --ember: #ff8a1a;
  --ink: #120d08;
  --radius: 20px;
  --max: 1120px;
  --nav-h: 74px;
  --font: Manrope, ui-sans-serif, system-ui, sans-serif;
  --display: Sora, Manrope, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
body.nav-open { overflow: hidden; }
::selection { background: rgba(245, 185, 66, .35); color: #fff; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: 8px; top: -48px; z-index: 40;
  background: var(--gold); color: var(--ink); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 8px; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
code {
  font-family: var(--mono);
  font-size: .92em;
  color: var(--gold-2);
  background: rgba(245,185,66,.08);
  padding: .1em .35em;
  border-radius: 6px;
}
.sun-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  pointer-events: none; z-index: 2; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245,185,66,.14), transparent 62%);
  opacity: 0; transition: opacity .3s;
}
.grid-bg, .orbs {
  position: fixed; inset: 0; pointer-events: none;
}
.grid-bg {
  z-index: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(245,185,66,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,185,66,.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.orbs { z-index: 0; }
.orbs span {
  position: absolute; border-radius: 50%; filter: blur(60px);
}
.orbs .a { width: 420px; height: 420px; top: -80px; right: 8%; background: rgba(245,185,66,.18); }
.orbs .b { width: 360px; height: 360px; bottom: 8%; left: -40px; background: rgba(255,138,26,.12); }
.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7,6,11,.78);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.top-inner, .wrap, .foot-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.top-inner {
  height: 100%;
  display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-family: var(--display); font-weight: 700; letter-spacing: .04em;
}
.brand:hover { color: var(--gold-2); }
.nav { display: flex; gap: 16px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a.active, .nav a:hover { color: var(--gold-2); }
.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(245,185,66,.18);
}
.btn-primary:hover { color: var(--ink); }
.btn-ghost {
  border-color: var(--line); color: #fff; background: rgba(255,255,255,.03);
}
main { position: relative; z-index: 1; padding: 48px 0 80px; }
main.stack { display: flex; flex-direction: column; gap: 72px; padding: 56px 0 96px; }
.hero, .split {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start;
}
.hero > * { min-width: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.04em; }
.article h1 { font-size: clamp(32px, 4.4vw, 48px); }
h2 { font-size: 28px; margin-top: 1.4em; }
.article h2:first-of-type, .wrap > h2:first-child { margin-top: 0; }
.lead { font-size: 18px; color: var(--muted); max-width: 64ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); letter-spacing: .14em;
  font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(245,185,66,.06);
}
.badge {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--gold-2); font-size: 12px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0;
}
.stat, .card, .desk, .article, .faq-item, .theme-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat { padding: 16px; }
.stat b { display: block; font-family: var(--display); font-size: 22px; color: var(--gold-2); }
.stat span { color: var(--muted); font-size: 13px; }
.notice {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: #e8dfd0;
}
.table-wrap caption {
  text-align: left;
  color: var(--gold-2);
  font-weight: 700;
  margin-bottom: 8px;
}
.desk {
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.desk-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.25);
}
.desk-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #3a3228; }
.desk-chrome i:nth-child(1) { background: #ff5f57; }
.desk-chrome i:nth-child(2) { background: #febc2e; }
.desk-chrome i:nth-child(3) { background: #28c840; }
.desk-chrome span { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--quiet); }
.desk-body { display: grid; grid-template-columns: 160px 1fr; min-height: 280px; }
.x-menu {
  padding: 12px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.x-menu button {
  text-align: left; background: transparent; border: 0; color: var(--muted);
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
}
.x-menu button.on, .x-menu button:hover { background: rgba(245,185,66,.1); color: var(--gold-2); }
.x-stage { padding: 18px; font-family: var(--mono); font-size: 13px; color: #e8d9b8; }
.x-stage[hidden] { display: none; }
.x-stage .cm { color: #a39888; }
.x-stage .kw { color: #ffb14a; }
.x-stage .fn { color: #7ee0c8; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.card {
  padding: 20px; display: block; color: inherit;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { border-color: rgba(245,185,66,.45); transform: translateY(-2px); color: inherit; }
.card h3 { font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.steps { counter-reset: step; display: grid; gap: 14px; margin: 20px 0; padding: 0; }
.steps li {
  list-style: none; padding: 16px 16px 16px 58px; position: relative;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
}
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 14px; top: 16px;
  font-family: var(--display); color: var(--gold); font-weight: 700;
}
.themes { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.theme-chip {
  padding: 8px 12px; cursor: pointer; color: var(--muted); font-size: 13px;
  border: 1px solid var(--line);
}
.theme-chip.on, .theme-chip:hover { color: #fff; border-color: var(--gold); }
.swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--gold); }
.theme-chip[data-theme="ember"] .swatch { background: #ff8a1a; }
.theme-chip[data-theme="amethyst"] .swatch { background: #a78bfa; }
.theme-chip[data-theme="rose"] .swatch { background: #fb7185; }
.theme-chip[data-theme="ocean"] .swatch { background: #38bdf8; }
.theme-chip[data-theme="mint"] .swatch { background: #34d399; }
.theme-chip[data-theme="gold"] .swatch { background: #f5b942; }
.article { padding: 32px; }
.article p { color: #e8dfd0; max-width: 72ch; }
.article ul { color: #e8dfd0; padding-left: 1.2em; margin: .4em 0 1em; }
.article li { margin: .35em 0; }
.table-wrap { overflow: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--gold-2); font-weight: 600; }
.faq-item { padding: 4px 16px; margin: 10px 0; }
.faq-item summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.tags { display: none; }
.crumbs { color: var(--quiet); font-size: 13px; }
.foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--quiet); font-size: 13px;
}
.foot-inner {
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-left: auto; }
.foot a { color: var(--muted); }
[data-theme-frame] { transition: background .25s ease, color .25s ease; }
[data-theme-frame][data-skin="rose"] { background: #1a0f14; }
[data-theme-frame][data-skin="ocean"] { background: #0b1520; }
[data-theme-frame][data-skin="mint"] { background: #0d1714; }
[data-theme-frame][data-skin="amethyst"] { background: #140f1c; }
[data-theme-frame][data-skin="ember"] { background: #1a0f0a; }
[data-theme-frame][data-skin="gold"] { background: #1a1408; }
@media (max-width: 1080px) {
  .hero, .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  main.stack { gap: 56px; }
}
@media (max-width: 900px) {
  .hero, .split, .desk-body, .grid { grid-template-columns: 1fr; }
  .status { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(16,14,20,.98);
    padding: 16px 20px 24px;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
  }
  .nav.open { display: flex; }
  .nav a { font-size: 16px; padding: 8px 0; }
  .burger { display: grid; place-items: center; margin-left: auto; }
  .top-inner .btn-primary { flex-shrink: 0; }
  .article { padding: 20px; }
  h1 { font-size: 36px; }
  .foot-links { margin-left: 0; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .top-inner, .wrap, .foot-inner { width: min(var(--max), calc(100% - 28px)); }
  .actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .sun-glow, .orbs { display: none; }
  .btn:hover, .card:hover { transform: none; }
}
@media (pointer: coarse) {
  .sun-glow { display: none; }
}
@media print {
  .sun-glow, .grid-bg, .orbs, .top, .foot, .burger { display: none !important; }
  body { background: #fff; color: #111; }
  a { color: #000; text-decoration: underline; }
}
