:root {
  --bg: #0a0f22;
  --bg-soft: #111933;
  --surface: #131d39cc;
  --border: #6ea9ff3d;
  --text: #eef2ff;
  --muted: #9caacf;
  --accent: #3ed8ff;
  --accent-strong: #0bbdff;
  --shadow: 0 18px 60px #03102f6b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: #e6f8ff;
  color: #04223a;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 20;
}

.skip-link:focus-visible {
  top: 0.75rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, #1b3b86 0%, transparent 40%),
    radial-gradient(circle at 88% 28%, #00c9ff24 0%, transparent 33%),
    linear-gradient(160deg, #090d1d, #0d1430 62%, #0c1735);
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  inset: -8% -5%;
  background: url("assets/generated/hero-background_20260506T163123_06a632.png") center/cover no-repeat;
  opacity: 0.2;
  mix-blend-mode: screen;
  z-index: -1;
}

.container {
  width: min(1080px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand img {
  width: 84px;
  height: 84px;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 1.5rem;
  padding: 3.5rem 0 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.9vw, 3.85rem);
  line-height: 1.02;
}

.subtitle {
  margin-top: 1rem;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 700;
  padding: 0.72rem 1.15rem;
  transition: 180ms ease;
}

.primary-btn {
  background: linear-gradient(130deg, var(--accent), var(--accent-strong));
  color: #002130;
  box-shadow: 0 8px 24px #0ac9ff5e;
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  border: 1px solid var(--border);
  color: var(--text);
  background: #12204775;
}

.ghost-btn:hover {
  border-color: #8fc0ff;
  background: #18295a94;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid #6de8ff;
  outline-offset: 2px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: rise 700ms ease both;
}

.hero-visual img {
  width: min(100%, 430px);
  filter: drop-shadow(0 24px 45px #0b103fb5);
}

.stats,
.downloads,
.pitch-card {
  backdrop-filter: blur(9px);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem auto 1.5rem;
  padding: 1rem 1.2rem;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.value {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.downloads {
  padding: 1.3rem;
}

.pitch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto 1.5rem;
}

.pitch-card {
  padding: 1.2rem;
}

.pitch-card h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
}

.pitch-card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.section-head h2,
h3 {
  margin: 0;
}

.section-head p {
  margin: 0.45rem 0 1.2rem;
  color: var(--muted);
}

.downloads-toolbar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}

.downloads-toolbar label {
  color: var(--muted);
  font-size: 0.9rem;
}

#platform-select {
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: #12204775;
  color: var(--text);
  padding: 0.55rem 0.65rem;
  font: inherit;
}

#platform-select:focus {
  outline: 2px solid #5ddfff;
  outline-offset: 1px;
}

.all-releases-btn {
  margin-left: auto;
}

.latest-card,
.release-item {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  background: #101932a1;
}

.latest-title {
  margin: 0;
  font-size: 1.25rem;
}

.meta {
  margin: 0.45rem 0 1rem;
  color: var(--muted);
}

.assets {
  display: grid;
  gap: 0.65rem;
}

.recommended-wrap {
  margin-bottom: 0.8rem;
}

.recommended-wrap .primary-btn {
  width: 100%;
}

.empty-assets {
  margin: 0;
  color: var(--muted);
}

.asset-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid #ffffff1d;
  border-radius: 0.72rem;
  padding: 0.65rem 0.8rem;
  transition: 170ms ease;
}

.asset-link:hover {
  border-color: #77beff;
  background: #1a27519c;
}

.asset-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

h3 {
  font-size: 1.03rem;
  margin: 1.25rem 0 0.75rem;
}

.release-list {
  display: grid;
  gap: 0.7rem;
}

.release-top {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
}

.tag {
  margin: 0;
  font-weight: 700;
}

.release-date,
.loading {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.section-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.footer {
  padding: 2rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (max-width: 920px) {
  .container {
    width: min(1080px, calc(100% - 1.4rem));
  }

  .nav {
    padding-top: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    gap: 0.6rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(87%, 360px);
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .pitch {
    grid-template-columns: 1fr;
  }

  .release-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .asset-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .all-releases-btn {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .brand span {
    font-size: 1rem;
  }

  h1 {
    line-height: 1.08;
  }

  .subtitle {
    font-size: 0.96rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
    padding: 0.78rem 1rem;
  }

  #platform-select {
    width: 100%;
  }

  .downloads-toolbar {
    align-items: stretch;
  }

  .downloads,
  .stats {
    padding: 1rem;
  }

  .value {
    font-size: 1.2rem;
  }

  .latest-title {
    font-size: 1.1rem;
  }

  .footer {
    padding-top: 1.5rem;
    padding-bottom: 1.7rem;
    font-size: 0.88rem;
  }
}
