:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #f4f6ff;
  background: #0b1020;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #a0aac0;
  --line: rgb(162 184 231 / 16%);
  --accent: #9d8bff;
  --cyan: #71dcff;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(87 74 190 / 24%), transparent 38rem),
    radial-gradient(ellipse at 100% 65%, rgb(37 132 158 / 11%), transparent 32rem),
    #0b1020;
}

a {
  color: inherit;
}

.page {
  display: flex;
  width: min(100% - 40px, 900px);
  min-height: 100vh;
  margin: 0 auto;
  flex-direction: column;
}

.topbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(157 139 255 / 50%);
  border-radius: 11px;
  background: rgb(157 139 255 / 13%);
  color: #c8bdff;
  font-size: 1rem;
}

.brand-light {
  color: #a9b4cc;
  font-weight: 500;
}

.admin-link {
  color: #c2cbe0;
  font-size: 0.88rem;
  text-decoration: none;
}

.admin-link:hover,
footer a:hover {
  color: var(--cyan);
}

.hero {
  max-width: 680px;
  padding: clamp(70px, 13vw, 126px) 0 68px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  letter-spacing: -0.065em;
  line-height: 0.99;
}

h1 span {
  color: #b4a7ff;
}

.intro {
  max-width: 510px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.13rem);
  line-height: 1.7;
}

.downloads {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgb(23 32 56 / 95%), rgb(15 22 39 / 97%));
  box-shadow: 0 24px 70px rgb(0 0 0 / 22%);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
}

h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.status {
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.status[data-state="error"] {
  color: #ff9a9a;
}

.release-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 12px;
}

.release-card {
  display: flex;
  min-height: 105px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgb(255 255 255 / 2%);
}

.release-card h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.release-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.download-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, #8877ff, #5ebfea);
  color: #09101e;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.download-button:hover {
  filter: brightness(1.1);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.6;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 34px 0 24px;
  color: #8995ad;
  font-size: 0.8rem;
}

footer a {
  text-decoration: none;
}

@media (max-width: 540px) {
  .page {
    width: min(100% - 28px, 900px);
  }

  .topbar {
    min-height: 70px;
  }

  .brand {
    gap: 8px;
    font-size: 0.68rem;
  }

  .admin-link {
    font-size: 0.78rem;
  }

  .downloads {
    padding: 17px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .status {
    text-align: left;
  }

  .release-card {
    align-items: start;
    flex-direction: column;
  }
}
