:root {
  --pink: #FF4FA3; --fuchsia: #E6298F; --purple: #9B51E0; --violet: #512B81; --orange: #FF875E;
  --gold: #FFD080; --turquoise: #35D0D0; --midnight: #14142B; --black: #0A0A12; --white: #FFF1E6;
  --muted: #b9adc0; --line: rgba(255, 241, 230, .13); color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; background: var(--black); color: var(--white); font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--turquoise); text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; padding: 8px 12px; background: var(--midnight); z-index: 9; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 12px max(20px, calc((100vw - 1120px) / 2)); background: rgba(10, 10, 18, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-size: 18px; white-space: nowrap; }
.brand b { color: var(--gold); }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.top nav a:hover { color: var(--white); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; padding: 5px 10px; cursor: pointer; }
.lang button[aria-pressed=true] { background: var(--violet); color: var(--white); }

.hero { border-bottom: 1px solid var(--line); background:
  radial-gradient(60% 46% at 78% 108%, rgba(255, 135, 94, .62), transparent 70%),
  radial-gradient(70% 70% at 68% 112%, rgba(230, 41, 143, .55), transparent 72%),
  linear-gradient(180deg, var(--black) 0%, var(--midnight) 42%, var(--violet) 100%); }
.hero-in { max-width: 1120px; margin: auto; padding: 56px 20px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 32px; }
.logo { width: 100%; max-width: 440px; height: auto; justify-self: end; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.07; letter-spacing: -.02em; margin: 0 0 18px; max-width: 14ch; text-wrap: balance; }
.lead { font-size: 19px; max-width: 54ch; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; text-decoration: none; color: var(--white); background: rgba(10, 10, 18, .6); border: 1px solid rgba(255, 241, 230, .28); font-weight: 600; }
.btn:hover { border-color: var(--gold); }
.btn.main { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn.main:hover { background: var(--white); border-color: var(--white); }
.fine { font-size: 14px; color: var(--muted); max-width: 62ch; }
.hero .fine { color: #e6d8e2; margin: 22px 0 0; }

section:not(.hero) { max-width: 1120px; margin: auto; padding: 64px 20px 0; }
section.tiles { display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 30px; }
.tiles div { padding: 4px 20px; border-left: 1px solid var(--line); }
.tiles div:first-child { padding-left: 0; border: 0; }
.tiles span { display: block; color: var(--muted); font-size: 14px; }
.tiles strong { font-size: 27px; font-weight: 650; }
h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 10px; }
h3 { font-size: 19px; margin: 30px 0 8px; }
.sub { color: var(--muted); max-width: 74ch; margin: 0 0 22px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two h3 { margin-top: 14px; }
.head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.head p { margin: 0; color: var(--muted); font-size: 14px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 11px 0; border-top: 1px solid var(--line); }
.feed a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.feed a:hover { text-decoration: underline; }
.feed small { display: block; color: var(--muted); font-size: 14px; }
.news { max-height: 620px; overflow: auto; padding: 18px 20px; background: var(--midnight); border: 1px solid var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.news p { margin: 0 0 10px; }
.news p.li { padding-left: 18px; text-indent: -14px; }
.news p.t { font-weight: 650; font-size: 18px; }

figure { margin: 0; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 84ch; }
.chart { background: var(--midnight); border: 1px solid var(--line); border-radius: 14px; padding: 14px; overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 720px; height: auto; }
.chart text { fill: var(--muted); font-size: 12px; }
.chart .val { fill: var(--white); }
.chart .grid { stroke: var(--line); }
.chart .goal { stroke: var(--gold); stroke-dasharray: 4 4; }
.chart .bar { fill: var(--pink); }
.chart .area { fill: transparent; }
.chart .hit { outline: none; }
.chart .hit:hover .area { fill: rgba(255, 241, 230, .06); }
.chart .hit:focus-visible .area { stroke: var(--gold); }
#tip { position: fixed; z-index: 10; max-width: 290px; padding: 10px 12px; border-radius: 10px; background: #26264a; border: 1px solid rgba(255, 241, 230, .24); font-size: 14px; line-height: 1.45; pointer-events: none; white-space: pre-line; }
details { margin-top: 14px; }
summary { cursor: pointer; color: var(--turquoise); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin-top: 10px; }
th, td { text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
code { font: 13px/1.5 "Cascadia Mono", Consolas, monospace; color: var(--muted); overflow-wrap: anywhere; }

.line { list-style: none; margin: 22px 0 0; padding: 0; }
.line li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.line time { color: var(--gold); font-size: 15px; }
.line b { display: block; font-size: 18px; }
.line p { margin: 4px 0 0; color: #e0d3da; max-width: 72ch; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 20px 0 0; }
.feats div { padding: 16px 0; border-top: 1px solid var(--line); }
.feats dt { font-weight: 650; }
.feats dd { margin: 3px 0 0; color: #e0d3da; }

.file { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--line); align-items: center; }
.file small { display: block; color: var(--muted); font-size: 14px; }
.file code { grid-column: 1 / -1; }
.rels { margin-bottom: 18px; }
.rel { display: grid; grid-template-columns: 200px 170px 1fr 70px auto; gap: 18px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.rel span { color: var(--muted); font-size: 15px; }
.rel .num { text-align: right; font-variant-numeric: tabular-nums; }
.rel svg { display: block; width: 100%; height: 8px; }
.rel rect { fill: var(--purple); }

.steps { margin: 18px 0 0; padding-left: 22px; }
.steps li { padding: 0 0 14px 6px; }
.steps li::marker { color: var(--gold); font-weight: 650; }
.plain { margin: 0; padding-left: 18px; }
.plain li { margin-bottom: 8px; }
.states { list-style: none; margin: 20px 0 0; padding: 0; }
.states li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.states i { font-style: normal; }
.states .ok { color: var(--turquoise); }
.states .wip { color: var(--gold); }
.states .no { color: var(--muted); }
#faqs details { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
#faqs summary { color: var(--white); font-weight: 600; }
#faqs p { margin: 8px 0 0; color: #e0d3da; max-width: 76ch; }
footer { max-width: 1120px; margin: 76px auto 0; padding: 28px 20px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer p { max-width: 84ch; margin: 0 0 10px; }
.ns { text-align: center; }

@media (max-width: 800px) {
  .top { flex-wrap: wrap; gap: 8px 16px; }
  .lang { margin-left: auto; }
  .top nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; }
  html { scroll-padding-top: 106px; }
  .hero-in, .two, .feats { grid-template-columns: minmax(0, 1fr); }
  .two { gap: 20px; }
  .logo { max-width: 250px; justify-self: center; order: -1; }
  .hero-in { padding: 28px 20px 48px; gap: 12px; }
  section:not(.hero) { padding-top: 48px; }
  section.tiles { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .tiles div:nth-child(odd) { padding-left: 0; border: 0; }
  .line li, .states li { grid-template-columns: 1fr; gap: 2px; }
  .rel { grid-template-columns: 1fr auto; gap: 2px 16px; }
  .rel svg { display: none; }
  .file { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Test PC: label and value on one line, stacked on phones. */
.specs { margin: 8px 0 0; }
.specs div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
@media (max-width: 760px) { .specs div { grid-template-columns: 1fr; gap: 2px; } }
