:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --text: #f5f5f7;
  --muted: #8e8e93;
  --faint: #48484d;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-hover: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.09);
  --line-hover: rgba(255, 255, 255, 0.22);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
html, body { width: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.045), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  width: min(600px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
  animation: appear 700ms ease-out both;
}

.mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.mark svg { display: block; width: 26px; height: 26px; }

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.03;
  font-weight: 680;
  letter-spacing: -0.055em;
}

.tagline { max-width: 420px; margin: 17px auto 0; color: var(--muted); letter-spacing: -0.01em; }

h2 {
  margin: 44px 0 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.downloads { margin: 0; padding: 0; list-style: none; text-align: left; }

.downloads li + li { margin-top: 8px; }

.downloads a {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.downloads a:hover,
.downloads a:focus-visible {
  border-color: var(--line-hover);
  background: var(--glass-hover);
}

.downloads a:focus-visible { outline: 1px solid var(--line-hover); outline-offset: 2px; }
.platform { font-weight: 600; }
.file { font-size: 13px; color: var(--muted); word-break: break-all; }

.note {
  max-width: 460px; margin: 28px auto 0;
  color: var(--muted); font-size: 14px; letter-spacing: -0.01em;
}

.discord {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  box-shadow: var(--shadow);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.discord:hover,
.discord:focus-visible {
  border-color: var(--line-hover);
  background: var(--glass-hover);
}

.discord:focus-visible { outline: 1px solid var(--line-hover); outline-offset: 2px; }

.discord-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  transition: color 160ms ease;
}

.discord-mark svg { display: block; width: 24px; height: 24px; }
.discord:hover .discord-mark { color: var(--text); }

.discord-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.discord-title { font-size: 18px; font-weight: 640; letter-spacing: -0.025em; }

.discord-sub { font-size: 13px; line-height: 1.45; color: var(--muted); letter-spacing: -0.01em; }

.discord-chevron {
  margin-left: auto;
  padding-left: 12px;
  font-size: 22px;
  line-height: 1;
  color: var(--faint);
  transition: color 160ms ease;
}

.discord:hover .discord-chevron { color: var(--muted); }

footer {
  margin-top: 46px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

footer p { margin: 0; }
footer .legal { max-width: 460px; margin: 8px auto 0; }

@keyframes appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  .downloads a,
  .discord,
  .discord-mark,
  .discord-chevron { transition: none; }
}
