:root {
  color-scheme: light dark;
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e7edf5;
  --muted: #9aa8b8;
  --accent: #3d8bfd;
  --accent-hover: #5a9dff;
  --border: #2a3647;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #1b2940 0%, transparent 55%),
    var(--bg);
  color: var(--text);
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.hero .eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  line-height: 1.1;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.downloads,
.install-help {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.hint {
  margin: 0 0 1rem;
  color: var(--muted);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button.recommended {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}

.version-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.version-note a {
  color: var(--accent);
}

details {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.footer {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer a {
  color: var(--accent);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --text: #152033;
    --muted: #5a677a;
    --border: #d7e0ec;
  }

  body {
    background:
      radial-gradient(circle at top, #dbe8ff 0%, transparent 55%),
      var(--bg);
  }
}
