:root {
  --bg-start: #040112;
  --bg-end: #18002f;
  --accent: #ff2d95;
  --accent-2: #33ffe2;
  --text: #f9f5ff;
  --subtle: #c3b9ff;
  --card-bg: rgba(8, 5, 24, 0.7);
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", "Syne", "Comic Sans MS", system-ui, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(255, 45, 149, 0.45), transparent 40%),
    linear-gradient(120deg, var(--bg-start), var(--bg-end));
  overflow-x: hidden;
}

.background-noise {
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"%3E%3Crect width="1" height="1" fill="%23ffffff" opacity="0.05"/%3E%3C/svg%3E');
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.starfield {
  position: fixed;
  inset: -100px 0 0 0;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}
.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: hsl(var(--spark-hue, 300), 90%, 70%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
  opacity: 0.9;
  pointer-events: none;
  animation: sparkle 6s linear forwards;
}

@keyframes sparkle {
  0% {
    transform: translate3d(0, 0, 0) scale(0.5);
    opacity: 1;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    transform: translate3d(40px, -120px, 0) scale(0);
    opacity: 0;
  }
}


.hero,
main,
footer {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 3vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(9, 6, 25, 0.8);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--subtle);
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  margin-bottom: 0.4rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--subtle);
  min-height: 2.5rem;
}

.hero-subline {
  font-size: 1.2rem;
  color: var(--subtle);
  margin: 0.3rem 0 0.5rem;
  font-weight: 600;
}

.hero-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-media {
  flex: 1 1 280px;
  text-align: center;
}

.hero-media img {
  width: min(420px, 90vw);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.hero-media img:hover {
  transform: scale(1.02);
}

.hero-label {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--subtle);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.btn {
  font-size: 1rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn.primary {
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  color: #05000d;
  font-weight: 600;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.35);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.section {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(10, 8, 32, 0.85);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.section-head p {
  margin: 0;
  color: var(--subtle);
}

.cards .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.card {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  min-height: 150px;
}

.card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.95rem;
}

.audio-lab audio {
  width: 100%;
  margin: 1rem 0;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.now-playing {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-weight: 600;
}

.playlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.playlist-item {
  flex: 1 1 220px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.playlist-item.active {
  border-color: var(--accent);
  background: rgba(255, 45, 149, 0.12);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.metrics-grid article {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 3, 27, 0.86);
}

.metric-label {
  margin: 0 0 0.4rem;
  color: var(--subtle);
}

.metric-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.download {
  display: block;
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.download span {
  color: var(--subtle);
  font-size: 0.9rem;
}

.download:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
}

.facts ul {
  list-style: "⚡ ";
  padding-left: 1.4rem;
  line-height: 1.6;
  color: var(--subtle);
}

footer {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--subtle);
}

body.party-mode {
  background: linear-gradient(120deg, #ff8bd6, #6cfff3, #ffef6f);
  animation: hue 6s linear infinite;
}

body.party-mode .hero,
body.party-mode .section {
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.4);
}

@keyframes hue {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.relic-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 0, 12, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 8;
}

.relic-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.relic-overlay__dialog {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  padding: 1.5rem;
  border-radius: 28px;
  background: rgba(7, 4, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1;
}

.relic-overlay__dialog img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.relic-overlay__label {
  margin: 0;
  text-align: center;
  color: var(--subtle);
}

.relic-overlay__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--text);
  font-size: 1.1rem;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
}

.relic-overlay__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.relic-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .hero,
  .section {
    padding: 1.5rem;
  }

  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-actions {
    width: 100%;
    align-items: stretch;
  }
}
