:root {
  --primary: #4D8DFF;
  --secondary: #B266FF;
  --background: #070714;
  --surface: #0B0B22;
  --text: #E8EEFF;
  --muted: #8A94C0;
  --line: color-mix(in srgb, var(--primary) 35%, transparent);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 34rem),
    radial-gradient(circle at 0% 80%, color-mix(in srgb, var(--secondary) 13%, transparent), transparent 32rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
img { max-width: 100%; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 10px 16px; background: var(--primary); color: #050a1a; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: .02em; }
.brand img { border-radius: 12px; }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.topbar nav a:hover { color: var(--primary); }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: 580px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: center; padding: 72px 0; }
.eyebrow { margin: 0 0 10px; color: var(--primary); font-size: .76rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
h2 { margin: 0 0 24px; font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { margin: 0 0 12px; font-size: 1.05rem; }
.tagline { margin: 18px 0 0; color: var(--primary); font-weight: 800; font-size: 1.12rem; }
.description { max-width: 650px; margin: 16px 0 0; color: var(--muted); font-size: 1.06rem; }
.hero-logo { display: grid; place-items: center; }
.hero-logo img { width: min(100%, 260px); height: auto; filter: drop-shadow(0 28px 55px color-mix(in srgb, var(--secondary) 30%, transparent)); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badges span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; }
.download-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.download-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 24px; border-radius: 12px; background: var(--primary); color: #050a1a; font-weight: 900; text-decoration: none; box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 22%, transparent); }
.download-button:hover { filter: brightness(1.08); }
.download-pending { display: inline-flex; min-height: 52px; align-items: center; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-weight: 750; }
.download-meta { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .8rem; }

.section { padding: 64px 0; border-top: 1px solid var(--line); }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.screenshot { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.screenshot img { display: block; width: 100%; max-height: 640px; object-fit: contain; border-radius: 10px; background: #070714; }
.screenshot figcaption { padding: 10px 4px 2px; color: var(--muted); font-size: .82rem; }
.empty-note { margin: 0; padding: 22px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.feature::before { content: "◇"; display: block; margin-bottom: 12px; color: var(--secondary); font-size: 1.4rem; }
.feature p { margin: 0; font-weight: 700; line-height: 1.45; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.install-list { margin: 0; padding-left: 24px; color: var(--muted); }
.install-list li { margin-bottom: 12px; padding-left: 6px; }
.requirements { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.requirements ul { margin: 0 0 28px; padding-left: 20px; color: var(--muted); }
.requirements h3:not(:first-child) { margin-top: 24px; }
.hash { overflow-wrap: anywhere; color: var(--muted); font: .75rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.changelog { display: grid; gap: 14px; }
.release { padding: 20px 22px; border-left: 3px solid var(--primary); border-radius: 0 14px 14px 0; background: var(--surface); }
.release h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.release time { color: var(--muted); font-size: .8rem; font-weight: 500; }
.release ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.release a { color: var(--primary); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 18px 0; cursor: pointer; font-weight: 750; }
details p { margin: 0 0 20px; color: var(--muted); }
.legal { max-width: 800px; padding: 64px 0; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.legal h2 { margin-top: 38px; font-size: 1.4rem; }
.legal p { color: var(--muted); }
.legal .updated { margin: 16px 0 34px; font-size: .9rem; }
.text-link { color: var(--primary); }

footer { width: min(1120px, calc(100% - 40px)); margin: 40px auto 0; padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer > div:first-child { display: flex; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; }
.footer-links a { color: var(--primary); }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 52px 0; gap: 30px; }
  .hero-logo { display: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .topbar { width: min(100% - 28px, 1120px); min-height: 70px; }
  .topbar nav { gap: 12px; font-size: .8rem; }
  .topbar nav a:first-child { display: none; }
  main, footer { width: min(100% - 28px, 1120px); }
  .feature-grid, .screenshot-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .download-button, .download-pending { width: 100%; text-align: center; }
  footer > div:first-child { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
