:root {
  --ink: #15171f;
  --ink-soft: #4a4f5e;
  --line: #e2e4ec;
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --accent: #4338ca;
  --accent-ink: #312e81;
  --accent-soft: #eef0ff;
  --warn: #9a3412;
  --warn-soft: #fff4e6;
  --ok: #166534;
  --ok-soft: #e7f6ec;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
.brand-text { font-weight: 750; font-size: 17px; line-height: 1.2; }
.brand-text small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.menu { display: flex; flex-wrap: wrap; gap: 2px; }
.menu a { padding: 8px 11px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover { background: var(--bg-soft); }
.menu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }

/* Text */
main { padding-top: 22px; padding-bottom: 40px; }
h1 { font-size: clamp(27px, 6vw, 36px); line-height: 1.18; margin: 6px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 23px; line-height: 1.25; margin: 38px 0 10px; }
h3 { font-size: 18px; line-height: 1.3; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.lead { font-size: 19px; color: var(--ink-soft); }
.crumb { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; }
.crumb a { color: var(--ink-soft); }
.updated { display: inline-block; margin: 0 0 16px; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
code { font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.source { font-size: 14px; color: var(--ink-soft); }

/* Hero (home page) */
[hidden] { display: none !important; }
.hero { position: relative; overflow: hidden; margin: 0 0 18px; padding: 30px 28px 28px; border-radius: 18px; color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(167, 139, 250, 0.55), transparent 46%),
    radial-gradient(circle at 8% 100%, rgba(56, 189, 248, 0.28), transparent 42%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 52%, #5b21b6 100%); }
.hero::after { content: "X"; position: absolute; right: -18px; top: -70px; font-size: 330px; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, 0.07); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { margin: 4px 0 12px; color: #fff; }
.hero .lead { color: #e0e1ff; max-width: 60ch; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #c7c9ff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn.primary { background: #fbbf24; border-color: #fbbf24; color: #1e1b4b; }
.btn.primary:hover { background: #fcd34d; border-color: #fcd34d; color: #1e1b4b; }
.hero :focus-visible { outline-color: #fbbf24; }

/* Countdown timer */
.timer { margin: 18px 0 0; }
.timer-date { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.2; }
.timer-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 460px; }
.unit { padding: 12px 6px 10px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24); }
.unit b { display: block; font-size: clamp(28px, 8vw, 42px); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.unit span { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #c7c9ff; }
.timer-note { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: #d5d7ff; max-width: 62ch; }
/* Same timer on a light page (release date page) */
.timer-panel { margin: 18px 0; padding: 18px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #d9dcff; }
.timer-panel .timer { margin: 0; }
.timer-panel .timer-date { color: var(--accent-ink); }
.timer-panel .unit { background: #fff; border-color: #d9dcff; }
.timer-panel .unit b { color: var(--accent-ink); }
.timer-panel .unit span, .timer-panel .timer-note { color: var(--ink-soft); }

/* Video (click-to-load YouTube player) */
.video { margin: 18px 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0f1020; border: 1px solid var(--line); }
.video-frame a, .video-frame img, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-frame img { object-fit: cover; }
.video-frame .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px; background: rgba(15, 16, 32, 0.82); transition: background 0.15s; }
.video-frame .play::after { content: ""; position: absolute; left: 30px; top: 15px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.video-frame a:hover .play, .video-frame a:focus-visible .play { background: #dc2626; }
.video figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; }
.stat { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.stat span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.stat b { display: block; margin-top: 2px; font-size: 18px; line-height: 1.3; color: var(--accent-ink); }

/* Notices */
.notice { margin: 18px 0; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); }
.notice > :last-child { margin-bottom: 0; }
.notice.warn { background: var(--warn-soft); border-color: #f5d2ad; }
.notice.warn strong:first-child { color: var(--warn); }
.notice h2, .notice h3 { margin-top: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-soft); font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-soft); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 650; white-space: nowrap; }
td.empty { text-align: center; color: var(--ink-soft); padding: 22px 14px; }
.copy { margin-left: 8px; padding: 4px 11px; border: 1px solid var(--accent); border-radius: 7px; background: var(--bg); color: var(--accent); font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.copy:hover { background: var(--accent-soft); }
.copy.done { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.off { background: var(--bg-soft); color: var(--ink-soft); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.card { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; background: var(--bg); }
.card:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.card strong { display: block; font-size: 17px; color: var(--accent-ink); }
.card span { display: block; font-size: 15px; color: var(--ink-soft); line-height: 1.45; margin-top: 2px; }

.card.has-icon { position: relative; padding-left: 62px; }
.card .icon { position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; padding: 7px; border-radius: 9px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .icon { background: #fff; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; background: var(--bg); }
.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 650; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0; padding: 12px 16px; color: var(--ink-soft); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 14px 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 20px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.timeline time { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.timeline h3 { margin: 2px 0 4px; }
.timeline p { margin-bottom: 6px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 8px 42px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }

.related { margin-top: 44px; padding-top: 6px; border-top: 1px solid var(--line); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 22px 0 28px; font-size: 14px; color: var(--ink-soft); }
.site-foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; }
.foot-links a { color: var(--ink); font-weight: 600; }
.site-foot .foot-contact { margin-top: 8px; }
.foot-contact a { color: var(--ink); font-weight: 600; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .menu { flex-wrap: nowrap; overflow-x: auto; width: 100%; margin: 0 -6px; padding-bottom: 2px; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { flex: 0 0 auto; padding: 7px 9px; font-size: 14px; white-space: nowrap; }
  .hero { padding: 22px 16px 20px; border-radius: 14px; }
  .hero::after { font-size: 220px; top: -40px; }
  .hero .lead { font-size: 17px; }
  .timer-units { gap: 6px; }
  .unit { padding: 10px 2px 8px; }
  .unit span { font-size: 11px; letter-spacing: 0.03em; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { flex: 1 1 100%; text-align: center; }
  th, td { padding: 10px 11px; }
  tbody th { white-space: normal; }
}
