:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #171717;
  --surface-strong: #262626;
  --border: #404040;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #a78bfa;
  --accent-bright: #c4b5fd;
  --pink: #ec4899;
  --red: #e11d48;
  --success: #86efac;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgb(124 58 237 / 18%), transparent 34rem), var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(100%, 960px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px 22px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 110px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 100%;
  height: auto;
}

.header-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  flex: 1;
}

.hero {
  padding: 72px 0 52px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--accent-bright);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(2.65rem, 13vw, 5.5rem);
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.hero-message {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-intro {
  margin-bottom: 20px;
}

.section-intro .eyebrow {
  margin-bottom: 8px;
}

.section-intro h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.platform-grid {
  display: grid;
  gap: 14px;
}

.platform-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgb(23 23 23 / 88%);
}

.platform-card-featured {
  border-color: rgb(167 139 250 / 55%);
  background:
    linear-gradient(135deg, rgb(124 58 237 / 16%), transparent 60%),
    rgb(23 23 23 / 92%);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.card-kicker {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.67rem;
}

.platform-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 6vw, 1.75rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.platform-card > p {
  max-width: 58ch;
  margin-bottom: 18px;
  color: var(--muted);
}

.platform-card > p:last-of-type {
  margin-bottom: 0;
}

.card-icon,
.badge {
  flex: 0 0 auto;
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(167 139 250 / 40%);
  border-radius: 9px;
  background: rgb(124 58 237 / 18%);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.badge {
  padding: 5px 8px;
  border: 1px solid rgb(167 139 250 / 45%);
  border-radius: 999px;
  background: rgb(124 58 237 / 20%);
  font-size: 0.63rem;
  white-space: nowrap;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 26px 0 0;
  padding: 15px 17px;
  border: 1px solid var(--accent-bright);
  border-radius: 10px;
  background: var(--accent-bright);
  color: #171717;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.download-button:hover {
  border-color: #ddd6fe;
  background: #ddd6fe;
  transform: translateY(-1px);
}

.download-status {
  min-height: 1.25em;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.download-status.is-error {
  color: #fda4af;
}

.release-details {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.release-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 22px;
}

.release-facts div {
  min-width: 0;
}

.release-facts dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.notes-block h3,
.install-guide h3 {
  margin-bottom: 8px;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.notes-block pre {
  max-height: 260px;
  margin: 0;
  padding: 13px;
  overflow: auto;
  border: 1px solid rgb(64 64 64 / 70%);
  border-radius: 9px;
  background: rgb(10 10 10 / 55%);
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.checksum {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

code {
  color: var(--accent-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

.install-guide {
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.install-guide ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.install-guide li + li {
  margin-top: 7px;
}

.certificate {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.78rem;
}

.certificate summary {
  cursor: pointer;
  color: var(--accent-bright);
}

.certificate code {
  display: block;
  margin-top: 10px;
  line-height: 1.7;
}

.text-link {
  color: var(--accent-bright);
  text-decoration-color: rgb(196 181 253 / 45%);
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--text);
}

.text-link-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.noscript-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 54px;
  color: var(--muted);
  font-size: 0.78rem;
}

footer a {
  color: var(--accent-bright);
  text-decoration: none;
}

:is(a, summary, .download-button):focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .page {
    padding: 38px 30px 28px;
  }

  .brand {
    width: 130px;
  }

  .hero {
    padding: 104px 0 76px;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-card-featured {
    grid-column: 1 / -1;
  }

  .download-button {
    max-width: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
