:root {
  --bg: #0a0b16;
  --bg-soft: #141535;
  --surface: rgba(18, 15, 44, 0.76);
  --line: rgba(170, 162, 255, 0.36);
  --text: #f4f6ff;
  --muted: #b9b2df;
  --accent: #6118ff;
  --accent-2: #2f58d4;
  --accent-3: #8f6bff;
  --danger: #ff7d7d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(9, 9, 24, 0.8), rgba(10, 13, 38, 0.84)),
    url("./assets/bg-grad.png") center / cover no-repeat fixed;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(transparent 96%, rgba(255, 255, 255, 0.07) 100%),
    linear-gradient(90deg, transparent 96%, rgba(255, 255, 255, 0.06) 100%);
  background-size: 3px 3px, 3px 3px;
}

.bg-orb {
  position: fixed;
  width: 34vmax;
  height: 34vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.24;
  pointer-events: none;
}

.bg-orb-a {
  top: -10vmax;
  left: -12vmax;
  background: #6219ff;
  animation: floatA 14s ease-in-out infinite alternate;
}

.bg-orb-b {
  right: -10vmax;
  bottom: -8vmax;
  background: #3d56db;
  animation: floatB 16s ease-in-out infinite alternate;
}

.page {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  margin-bottom: 24px;
  border: 1px solid rgba(138, 132, 228, 0.34);
  background: linear-gradient(140deg, rgba(27, 22, 70, 0.68), rgba(27, 39, 92, 0.56));
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.brand-logo {
  width: clamp(19px, 2.9vw, 28px);
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(89, 55, 255, 0.45));
}

.eyebrow {
  margin: 0;
  color: #e7e2ff;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  font-family: "Sora", "Space Grotesk", sans-serif;
  margin: 10px 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(102, 64, 255, 0.46);
}

.hero p {
  margin: 0;
  max-width: 74ch;
  color: var(--muted);
}

.discord-link {
  text-decoration: none;
  white-space: nowrap;
  color: #fefcff;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 12px;
  font-weight: 700;
  padding: 11px 14px;
  box-shadow: 0 12px 26px rgba(67, 54, 174, 0.34);
}

.discord-link:hover {
  transform: translateY(-1px);
}

.toolbar {
  margin: 26px 0;
}

.toolbar label {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.toolbar span {
  color: var(--muted);
  font-size: 0.9rem;
}

input[type="search"] {
  border: 1px solid var(--line);
  background: rgba(11, 10, 30, 0.8);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

input[type="search"]:focus {
  border-color: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(143, 107, 255, 0.25);
}

.downloads {
  display: grid;
  gap: 16px;
}

.loading,
.empty,
.error {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.error {
  border-color: rgba(255, 125, 125, 0.45);
  color: #ffd0d0;
}

.product-card {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(27, 17, 62, 0.82), rgba(20, 32, 71, 0.72));
  backdrop-filter: blur(7px);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
  animation: reveal 360ms ease forwards;
}

.product-head h2 {
  margin: 0;
  font-family: "Sora", "Space Grotesk", sans-serif;
  font-size: 1.26rem;
}

.product-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.release-list {
  display: grid;
  gap: 12px;
}

.release-item {
  border: 1px solid rgba(133, 120, 255, 0.29);
  border-radius: 12px;
  background: rgba(12, 17, 40, 0.72);
  padding: 12px;
}

.release-meta h3 {
  margin: 0;
  font-size: 1rem;
}

.release-date {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.file-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.file-item {
  border: 1px solid rgba(115, 109, 255, 0.34);
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: inherit;
  background: linear-gradient(145deg, rgba(19, 19, 45, 0.82), rgba(19, 35, 68, 0.7));
}

.file-item:hover {
  border-color: var(--accent-3);
  transform: translateY(-1px);
}

.file-label {
  display: block;
}

.file-details {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.file-cta {
  color: #fbfaff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 11px;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatA {
  from {
    transform: translateY(-10px);
  }
  to {
    transform: translateY(20px);
  }
}

@keyframes floatB {
  from {
    transform: translateY(12px);
  }
  to {
    transform: translateY(-16px);
  }
}

@media (max-width: 720px) {
  .page {
    padding: 32px 0 56px;
  }

  .hero {
    flex-direction: column;
  }

  .brand-lockup {
    flex-direction: column;
  }

  .file-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-cta {
    align-self: flex-start;
  }
}
