:root {
  --bg: #07090d;
  --surface: #10141c;
  --surface-2: #151b25;
  --line: #252d3a;
  --text: #f4f7fb;
  --muted: #aab3c1;
  --gold: #e5b56b;
  --gold-2: #f2cf91;
  --blue: #7ac3ff;
  --green: #5fd19a;
  --red: #ff7f88;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.hero {
  min-height: 710px;
  background:
    radial-gradient(circle at 85% 20%, rgba(229,181,107,.19), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(68,129,190,.12), transparent 32%),
    linear-gradient(145deg, #0d1118 0%, #07090d 60%);
  border-bottom: 1px solid var(--line);
}
.nav { height: 84px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid rgba(229,181,107,.55); border-radius: 12px;
  color: #16100a; background: linear-gradient(135deg, var(--gold-2), #b57932);
}
.beta { margin-left: auto; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-content { padding: 110px 0 80px; }
.eyebrow { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .16em; margin: 0 0 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 920px; margin-bottom: 26px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.055em; }
h1 span { color: var(--gold-2); }
h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; }
h3 { margin-bottom: 10px; font-size: 1.25rem; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 750; transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); border-color: #4a5669; }
.button.primary { border-color: #d2a45f; background: linear-gradient(135deg, var(--gold-2), #c89045); color: #171009; }
.button.secondary { background: #171c24; color: var(--text); }
.button.disabled { opacity: .45; pointer-events: none; }
.notice { margin-top: 18px; color: #7e8999; font-size: .88rem; }
.section { padding: 96px 0; }
.section.alt { background: #0c1016; border-block: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading > p:last-child { color: var(--muted); }
.inline-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(155deg, rgba(22,28,38,.96), rgba(12,16,23,.96)); }
.checker { padding: 28px; }
.checker label { display: block; margin-bottom: 9px; font-weight: 750; }
.checker-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.checker input { min-width: 0; height: 52px; padding: 0 16px; border: 1px solid #303947; border-radius: 12px; background: #0a0d12; color: var(--text); font: inherit; font-size: 1.08rem; outline: none; }
.checker input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(229,181,107,.12); }
.result { margin-top: 18px; padding: 15px 17px; border-radius: 12px; background: #151b24; color: var(--muted); }
.result.good { background: rgba(53,151,104,.12); color: #9ae6bd; border: 1px solid rgba(95,209,154,.28); }
.result.bad { background: rgba(184,61,70,.12); color: #ffacb2; border: 1px solid rgba(255,127,136,.28); }
.compat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.mini-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #0d1118; }
.mini-card strong { color: var(--gold-2); font-size: 1.08rem; }
.mini-card span { color: var(--muted); font-size: .9rem; }
.mini-card.blocked strong { color: var(--red); }
.fine-print { color: #788392; font-size: .85rem; margin: 14px 0 0; }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.online-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 18px; padding: 28px 32px; }
.online-card .step-number { margin-bottom: 12px; }
.online-card p { max-width: 700px; margin-bottom: 0; color: var(--muted); }
.online-card .button { flex: 0 0 auto; }
.step-card { position: relative; padding: 32px; overflow: hidden; }
.step-card p { min-height: 78px; color: var(--muted); }
.step-number { display: inline-block; margin-bottom: 38px; color: var(--gold); font-size: .8rem; font-weight: 800; letter-spacing: .14em; }
.flow { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 24px 28px; }
.flow div { display: flex; align-items: center; gap: 10px; }
.flow b { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border-radius: 50%; background: rgba(229,181,107,.14); color: var(--gold-2); }
.flow span { color: var(--muted); font-size: .9rem; }
.flow i { color: #536071; font-style: normal; }
.payload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.payload-card { padding: 24px; }
.payload-top { display: flex; justify-content: space-between; gap: 14px; }
.payload-card p { min-height: 48px; color: var(--muted); }
.version { flex: 0 0 auto; height: fit-content; padding: 4px 8px; border: 1px solid #3a4657; border-radius: 999px; color: var(--blue); font-size: .78rem; }
.payload-card code { display: block; padding-top: 15px; border-top: 1px solid var(--line); color: #7e8999; font-size: .78rem; }
.loading { color: var(--muted); }
.warning { margin-top: 18px; padding: 22px 24px; border-color: rgba(229,181,107,.32); }
.warning strong { color: var(--gold-2); }
.warning p { margin: 5px 0 0; color: var(--muted); }
.source-help { margin-top: 18px; padding: 22px 24px; }
.source-help strong { color: var(--text); }
.source-help ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.source-help li + li { margin-top: 6px; }
.two-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.update-list p { padding: 0 0 22px; border-bottom: 1px solid var(--line); color: var(--muted); }
.update-list b { color: var(--text); }
.footer { display: flex; justify-content: space-between; gap: 30px; padding-block: 34px; color: #758090; font-size: .84rem; }
.footer p { margin: 0; }

@media (max-width: 850px) {
  .hero { min-height: auto; }
  .hero-content { padding-top: 70px; }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .install-grid, .payload-grid, .two-columns { grid-template-columns: 1fr; }
  .online-card { align-items: stretch; flex-direction: column; }
  .flow { display: grid; grid-template-columns: 1fr; }
  .flow i { display: none; }
  .inline-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1160px); }
  .hero-content { padding: 52px 0 62px; }
  h1 { font-size: 2.9rem; }
  .section { padding: 68px 0; }
  .checker, .step-card { padding: 21px; }
  .checker-row { grid-template-columns: 1fr; }
  .compat-grid { grid-template-columns: 1fr; }
  .hero-actions .button, .button-row .button, .step-card > .button { width: 100%; }
  .footer { flex-direction: column; }
}
