:root {
  --bg: #07080c;
  --bg-2: #0d0f14;
  --card: #13161e;
  --line: #262b38;
  --text: #f4f1ea;
  --muted: #a39c90;
  --accent: #f5a524;
  --hot: #ff4d2e;
  --link: #9ec1ff;
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #1c2130; border: 1px solid var(--line); border-radius: 6px; padding: 0.05em 0.4em;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 8, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { color: var(--text); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 12px var(--hot); }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.nav li a:hover { color: var(--text); background: #1a1f2b; text-decoration: none; }

.hero {
  padding: 72px 0 60px;
  background:
    radial-gradient(720px 320px at 12% 0%, rgba(245,165,36,0.16), transparent 62%),
    radial-gradient(640px 280px at 100% 20%, rgba(255,77,46,0.12), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
}
.stat {
  display: block;
  margin: 4px 0 0;
  font-size: min(44vw, 380px);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: -0.055em;
  color: #ff5a1f;
  -webkit-text-fill-color: #ff5a1f;
}
.hero h1 { margin: 8px 0 0; font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
.lead { margin: 22px 0 0; max-width: 640px; color: var(--muted); font-size: 19px; }

.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
.block:nth-of-type(even) { background: var(--bg-2); }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.03em; margin: 8px 0 12px; }
.section-head p { margin: 0 0 24px; color: var(--muted); max-width: 660px; }

.term { background: #07090d; border: 1px solid #2a3142; border-radius: 12px; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #121621; border-bottom: 1px solid #2a3142; }
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4154; }
.term-bar span:first-child { background: #ff5f56; }
.term-bar em { margin-left: 10px; font-style: normal; color: var(--muted); font: 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.term pre {
  margin: 0; padding: 16px 18px; color: #ffb4a3; white-space: pre-wrap; word-break: break-all;
  font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.facts div { color: #d9d3c8; font-size: 15.5px; }
.facts strong { display: block; color: var(--text); margin-bottom: 4px; }

/* Responsive HTML figures */
.fig-panel {
  background: #10131a;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.fig-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.fig-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.side {
  background: #0b0d13;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.side.hot { border-color: rgba(255, 77, 46, 0.5); }
.side-label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.side.hot .side-label { color: var(--hot); }
.big-num { font-size: clamp(64px, 11vw, 108px); line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; margin: 8px 0 6px; }
.side.hot .big-num { color: var(--hot); }
.sub-num { color: var(--muted); font-size: 15px; }
.sub-num strong { color: var(--text); }
.arrow { font-size: 36px; color: var(--hot); font-weight: 800; }

.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.base, .b.base { background: #4a5268; }
.sw.sys, .b.sys { background: var(--accent); }
.sw.nosys, .b.nosys { background: var(--hot); }

.bars { display: flex; flex-direction: column; gap: 14px; }
.row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.row .m { font-weight: 600; font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 5px; }
.line { display: flex; align-items: center; gap: 10px; }
.b { height: 12px; border-radius: 3px; display: block; min-width: 3px; }
.line em { font-style: normal; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.line em.hot { color: #ff8a72; font-weight: 600; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 16px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: #d9d3c8; font-size: 15.5px; }

.sources ol { margin: 0; padding-left: 22px; color: var(--muted); font-size: 15px; }
.sources li { margin: 0 0 10px; }

footer { padding: 28px 0 48px; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .nav ul { display: none; }
  .hero { padding: 36px 0 40px; }
  .facts, .cards { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .arrow { display: none; }
  .row { grid-template-columns: 1fr; gap: 6px; }
}
