@font-face {
  font-family: "Righteous";
  src: url("/brand/righteous-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --primary: #9B6BFF;
  --primary-hover: #8A5BFF;
  --bg: #0F0B1D;
  --bg-deep: #08050F;
  --bg-accent: rgba(122, 59, 255, .14);
  --surface: #181129;
  --surface-2: #221A38;
  --border: rgba(200, 182, 255, .10);
  --border-strong: rgba(200, 182, 255, .17);
  --text: #F2EEFB;
  --text-strong: #FFFFFF;
  --muted: #A79FBE;
  --faint: #8A82A0;
  --pop-grad: linear-gradient(120deg, #7A3BFF, #FF4D8D 55%, #FF9A3D);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 50% -10%, var(--bg-accent), transparent 70%),
    var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

.card {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.logo { border-radius: 10px; }

.wordmark {
  font-family: "Righteous", var(--font-sans);
  font-size: 1.45rem;
  color: var(--text-strong);
  letter-spacing: .02em;
}

.home-link {
  margin-left: auto;
  color: var(--muted);
  font-size: .85rem;
  text-decoration: none;
}

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

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.grad {
  background: var(--pop-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  color: var(--muted);
  margin-bottom: 32px;
}

.dl-button {
  display: block;
  padding: 16px 24px;
  border-radius: 14px;
  background: var(--pop-grad);
  color: var(--text-strong);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}

.dl-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.dl-button.pending { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--muted); cursor: default; }
.dl-button.pending:hover { filter: none; transform: none; }

.alt {
  margin-top: 20px;
  font-size: .9rem;
  color: var(--faint);
}

.alt a { color: var(--primary); text-decoration: none; }
.alt a:hover { color: var(--primary-hover); text-decoration: underline; }

.all-files { margin-top: 8px; font-size: .85rem; }
.all-files a { color: var(--faint); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.all-files a:hover { color: var(--muted); }

footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--faint);
}

footer .legal { margin-top: 4px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text-strong); }

/* nginx autoindex listing (linked from "All downloads") */
body.listing { display: block; max-width: 760px; margin: 0 auto; padding: 40px 24px; }
