:root {
  --bg: #09131a;
  --bg-soft: rgba(15, 27, 36, 0.88);
  --surface: rgba(18, 33, 44, 0.82);
  --surface-strong: rgba(28, 47, 61, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f5ef;
  --muted: #a7b5bc;
  --accent: #f0b35f;
  --accent-strong: #ffd7a0;
  --success: #92d0bc;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 179, 95, 0.16), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(146, 208, 188, 0.16), transparent 24%),
    linear-gradient(180deg, #081118 0%, #0d1b24 56%, #081118 100%);
}

.pageGlow {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.6;
}

.pageGlowA {
  top: -100px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: rgba(240, 179, 95, 0.2);
}

.pageGlowB {
  right: -80px;
  top: 240px;
  width: 320px;
  height: 320px;
  background: rgba(146, 208, 188, 0.18);
}

.shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.hero,
.toolbar,
.latestRelease .releaseCard,
.releaseCard {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-soft), var(--surface-strong));
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 34px;
  animation: riseIn 500ms ease-out both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.02), transparent 35%),
    linear-gradient(320deg, rgba(240, 179, 95, 0.08), transparent 35%);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
  margin-top: 16px;
}

.heroCopy h1,
.toolbarTitle h2,
.sectionHeader h2,
.releaseTitle {
  margin: 0;
  font-family: "Futura", "Avenir Next Condensed", "Trebuchet MS", sans-serif;
  letter-spacing: 0.01em;
}

.heroCopy h1 {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1;
  text-wrap: balance;
}

.heroLead {
  max-width: 48rem;
  margin: 18px 0 0;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--muted);
}

.heroMeta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.metaCard,
.heroPanel,
.toolbar,
.releaseCard {
  border-radius: 22px;
}

.metaCard {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metaLabel,
.panelLabel,
.releaseBadge,
.releaseDate,
.sectionHint,
.fileMeta,
.fileSize {
  color: var(--muted);
}

.metaLabel {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metaCard strong {
  font-size: 1.35rem;
}

.heroPanel {
  position: relative;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 14, 20, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panelLabel {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.heroHighlights {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.heroHighlight {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.heroHighlightLabel {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-top: 26px;
  padding: 18px 22px;
}

.toolbarTitle h2,
.sectionHeader h2 {
  margin-top: 6px;
  font-size: 2rem;
}

.filterField {
  display: grid;
  gap: 8px;
  min-width: 220px;
  font-size: 0.88rem;
  color: var(--muted);
}

.filterField select {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(8, 14, 20, 0.9);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.latestRelease {
  margin-top: 18px;
}

.releaseSection {
  margin-top: 26px;
}

.sectionHeader {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 16px;
}

.sectionHint {
  margin: 0;
}

.releaseList {
  display: grid;
  gap: 18px;
}

.releaseCard {
  padding: 22px;
  animation: riseIn 420ms ease-out both;
}

.releaseHeader {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.releaseBadge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(240, 179, 95, 0.12);
  border: 1px solid rgba(240, 179, 95, 0.18);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.releaseTitle {
  margin-top: 12px;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}

.releaseListItem {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, var(--bg-soft), var(--surface-strong));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.releaseListSummary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
}

.releaseListSummary::-webkit-details-marker {
  display: none;
}

.releaseListVersion {
  font-family: "Futura", "Avenir Next Condensed", "Trebuchet MS", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.releaseListMeta {
  color: var(--muted);
  font-size: 0.95rem;
}

.releaseListBody {
  padding: 0 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.releaseDate {
  white-space: nowrap;
  padding-top: 6px;
}

.releaseNotes {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.fileGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.fileCard {
  display: block;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(9, 17, 24, 0.78);
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.fileCard:hover,
.fileCard:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 179, 95, 0.32);
  background:
    linear-gradient(180deg, rgba(240, 179, 95, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(9, 17, 24, 0.88);
}

.fileTopRow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.fileLabel {
  font-weight: 700;
}

.fileVariant {
  white-space: nowrap;
  color: var(--success);
  font-size: 0.9rem;
}

.fileMeta {
  margin-top: 10px;
  font-size: 0.92rem;
}

.fileSize {
  margin-top: 14px;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.emptyState {
  margin-top: 18px;
  padding: 28px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: var(--muted);
  text-align: center;
}

.hidden {
  display: none;
}

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

@media (max-width: 900px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .hero,
  .toolbar,
  .releaseCard {
    border-radius: 24px;
  }

  .hero {
    padding: 24px;
  }

  .heroGrid,
  .heroMeta,
  .toolbar,
  .sectionHeader,
  .releaseHeader,
  .releaseListSummary {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .heroMeta {
    display: grid;
  }

  .filterField {
    min-width: 0;
  }

  .releaseDate {
    padding-top: 0;
  }
}
