/* ============================================================
   HIFI AMSTERDAM V2.2
   Palette: Deep purple + magenta + electric neon blue accents on near-black
   Genre: Bouncy Techno
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

:root {
  --text-xs:   clamp(0.7rem,  0.65rem + 0.25vw, 0.8rem);
  --text-sm:   clamp(0.8rem, 0.75rem + 0.3vw, 0.95rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-lg:   clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  --text-xl:   clamp(1.4rem, 1.1rem + 1vw, 2rem);
  --text-2xl:  clamp(1.8rem, 1rem + 2.5vw, 3.2rem);
  --text-hero: clamp(2.8rem, 0.5rem + 7vw, 8rem);

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* HiFi Palette V2.2 — electric neon blue replaces acid green */
  --bg:          #0e0e1a;
  --bg-2:        #111120;
  --surface:     #16162a;
  --surface-2:   #1c1c34;
  --surface-3:   #24243d;
  --border:      #2e2e4a;
  --text:        #e4e4ef;
  --text-2:      #a0a0bb;
  --text-3:      #606078;
  --purple:      #8b5cf6;
  --purple-dim:  #6d3fd4;
  --magenta:     #e040a0;
  --cyan:        #22d3ee;
  --cyan-dim:    #0ea5c9;
  --electric:    #00b4ff;
  --electric-dim:#0090d0;
  --glow-purple: rgba(139, 92, 246, 0.25);
  --glow-magenta:rgba(224, 64, 160, 0.2);
  --glow-cyan:   rgba(34, 211, 238, 0.15);
  --glow-electric:rgba(0, 180, 255, 0.25);

  --font: 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Syne', system-ui, sans-serif;
  --mono: 'Space Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
img, video, canvas, svg { display: block; max-width: 100%; }

::selection { background: rgba(0, 180, 255, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s var(--ease), visibility 1s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--mono);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 700;
  color: var(--purple);
  text-shadow: 0 0 60px var(--glow-purple), 0 0 120px var(--glow-purple);
  margin-bottom: var(--sp-8);
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 60px var(--glow-purple), 0 0 120px var(--glow-purple); }
  50% { text-shadow: 0 0 80px rgba(139,92,246,0.5), 0 0 160px rgba(139,92,246,0.3), 0 0 40px rgba(0,180,255,0.2); }
}

.loader-bar { width: 180px; height: 2px; background: var(--surface-3); margin: 0 auto var(--sp-4); border-radius: 1px; overflow: hidden; }
.loader-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--purple), var(--electric)); transition: width 0.2s; box-shadow: 0 0 10px var(--electric); }
.loader-tagline { font-size: var(--text-xs); color: var(--text-2); letter-spacing: 0.15em; text-transform: uppercase; }

/* ============================================================
   CANVAS
   ============================================================ */
#cloud-canvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-6);
  height: 60px;
  background: rgba(14, 14, 26, 0.7);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(46, 46, 74, 0.5);
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.nav.visible { opacity: 1; transform: translateY(0); }

.nav-logo { display: flex; align-items: center; gap: var(--sp-2); text-decoration: none; }
.nav-logo-h {
  font-family: var(--mono); font-size: var(--text-xl); font-weight: 700;
  color: var(--purple); line-height: 1;
}
.nav-logo-text {
  font-family: var(--mono); font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.18em; color: var(--text);
}
.nav-logo-dim { color: var(--text-2); font-weight: 400; margin-left: 4px; font-size: 0.8em; }

.nav-center { display: flex; gap: var(--sp-8); }
.nav-link {
  font-size: var(--text-sm); color: var(--text-2);
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--purple), var(--magenta));
  transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link--active { color: var(--text); }
.nav-link--active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: var(--sp-4); }

/* "BOUNCY TECHNO" badge in nav — electric neon blue */
.nav-genre {
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--electric); font-weight: 600;
  padding: 3px 10px;
  border: 1px solid rgba(0, 180, 255, 0.35);
  border-radius: 3px;
  background: rgba(0, 180, 255, 0.06);
}
.nav-social { color: var(--text-2); transition: color 0.2s; display: flex; }
.nav-social:hover { color: var(--purple); }

/* LIVE NOW button — electric neon blue, pulsing */
.nav-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bg); background: var(--electric);
  padding: 5px 14px; border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 0 12px var(--glow-electric), 0 0 24px rgba(0,180,255,0.12);
  transition: box-shadow 0.3s, transform 0.2s;
  animation: live-pulse 2s ease-in-out infinite;
}
.nav-live:hover { box-shadow: 0 0 20px var(--glow-electric), 0 0 40px rgba(0,180,255,0.2); transform: scale(1.04); }
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 12px var(--glow-electric), 0 0 24px rgba(0,180,255,0.12); }
  50% { box-shadow: 0 0 20px rgba(0,180,255,0.4), 0 0 40px rgba(0,180,255,0.2); }
}
.nav-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bg);
  animation: live-dot 1.5s ease-in-out infinite;
}
@keyframes live-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-burger span { width: 20px; height: 1.5px; background: var(--text-2); transition: 0.3s; }

@media (max-width: 768px) {
  .nav-center, .nav-genre { display: none; }
  .nav-live { font-size: 0.6rem; padding: 4px 10px; }
  .nav-burger { display: flex; }
  .nav-center.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(14,14,26,0.95); backdrop-filter: blur(24px);
    padding: var(--sp-6); gap: var(--sp-4);
    border-bottom: 1px solid var(--border);
  }
}

/* ============================================================
   HERO — extended to force cloud descent
   ============================================================ */
.hero {
  position: relative; z-index: 10;
  min-height: 180vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--sp-16) var(--sp-6);
  pointer-events: none;
}
.hero-content {
  pointer-events: auto;
  position: relative;
  padding: var(--sp-8) var(--sp-12);
  border-radius: 16px;
  background: radial-gradient(ellipse at center, rgba(14,14,26,0.55) 0%, rgba(14,14,26,0.25) 60%, transparent 100%);
  /* animation defined at bottom of file */
}

/* Hero badge — electric neon blue */
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 4px 14px; margin-bottom: var(--sp-6);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.2em;
  color: var(--electric);
  border: 1px solid rgba(0, 180, 255, 0.35);
  border-radius: 3px;
  background: rgba(0, 180, 255, 0.06);
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--electric);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--electric); }
  50% { opacity: 0.4; box-shadow: none; }
}

/* Hero title — Space Mono for the brand identity */
.hero-title {
  font-family: var(--mono); font-size: var(--text-hero);
  font-weight: 800; letter-spacing: 0.03em; line-height: 0.92;
  color: var(--text);
  text-shadow: 0 0 80px var(--glow-purple), 0 0 120px rgba(0,180,255,0.15);
  margin-bottom: var(--sp-6);
  text-transform: uppercase;
}

.hero-sub {
  font-size: var(--text-lg); color: var(--text-2);
  line-height: 1.5; max-width: 520px; margin: 0 auto var(--sp-12);
}

/* "Descend into the clouds" — electric neon blue */
.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--electric), transparent); }
.hero-scroll span { font-size: var(--text-xs); color: var(--electric); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }

/* ============================================================
   FEATURED — generous cloud-descent spacing
   ============================================================ */
.featured {
  position: relative; z-index: 10;
  padding: var(--sp-24) var(--sp-6) var(--sp-24);
}
.featured-inner {
  max-width: 960px; margin: 0 auto;
}
/* "LATEST SET" label — electric neon blue */
.featured-label {
  font-family: var(--mono); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.2em; color: var(--electric);
  margin-bottom: var(--sp-4);
  text-shadow: 0 0 12px var(--glow-electric);
}
.featured-player {
  aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--glow-purple);
}
.featured-player iframe { width: 100%; height: 100%; border: none; }

/* Thumbnail-first player */
.featured-thumb {
  position: relative; width: 100%; height: 100%;
  cursor: pointer;
}
.featured-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.featured-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,14,26,0.35);
  transition: background 0.3s;
}
.featured-play-btn:hover {
  background: rgba(14,14,26,0.15);
}
.featured-play-btn svg {
  filter: drop-shadow(0 4px 20px rgba(139,92,246,0.5));
  transition: transform 0.3s var(--ease);
}
.featured-play-btn:hover svg {
  transform: scale(1.1);
}
.featured-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) 0; flex-wrap: wrap; gap: var(--sp-3);
}
.featured-title { font-size: var(--text-lg); font-weight: 600; color: var(--text); }
.featured-meta { font-size: var(--text-xs); color: var(--text-2); }

/* ============================================================
   SECTION — deeper vertical breathing room for cloud descent
   ============================================================ */
.section {
  position: relative; z-index: 10;
  padding: var(--sp-24) var(--sp-6) var(--sp-24);
}
.section--alt { background: rgba(17, 17, 32, 0.75); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: var(--sp-8); display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); }
.section-title {
  font-family: var(--mono); font-size: var(--text-2xl); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.section-count { font-size: var(--text-sm); color: var(--text-2); }
.section-sub { font-size: var(--text-sm); color: var(--text-3); }

/* ============================================================
   SETS GRID
   ============================================================ */
.sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}

.set-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
  cursor: pointer;
}
.set-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 24px var(--glow-purple);
}

.set-card__thumb {
  aspect-ratio: 16/9; position: relative; overflow: hidden;
  background: var(--surface-2);
}
.set-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.set-card:hover .set-card__thumb img { transform: scale(1.04); }

.set-card__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(14, 14, 26, 0.4); opacity: 0; transition: opacity 0.3s;
}
.set-card:hover .set-card__play { opacity: 1; }
.set-card__play svg { filter: drop-shadow(0 0 12px var(--purple)); }

.set-card__body { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.set-card__title { font-size: var(--text-sm); font-weight: 600; color: var(--text); margin-bottom: 2px; line-height: 1.3; }
.set-card__meta { font-size: var(--text-xs); color: var(--text-2); display: flex; gap: var(--sp-3); }

/* ============================================================
   ARTISTS
   ============================================================ */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-4);
}

.artist-card {
  text-align: center; padding: var(--sp-6) var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.artist-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 20px var(--glow-purple);
}

.artist-card__name {
  font-size: var(--text-sm); font-weight: 600; color: var(--text);
  margin-bottom: 2px;
}
.artist-card__count { font-size: var(--text-xs); color: var(--text-2); }

/* Artist sort toggle */
.artist-sort {
  display: flex; gap: var(--sp-1);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px; overflow: hidden;
}
.sort-btn {
  font-family: var(--mono); font-size: var(--text-xs);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); padding: 5px 14px;
  border-radius: 3px; transition: color 0.2s, background 0.2s;
}
.sort-btn:hover { color: var(--text-2); }
.sort-btn--active {
  color: var(--bg); background: var(--electric);
  font-weight: 700;
}
.artist-card__initial {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: var(--text-lg); font-weight: 700;
  color: #fff; margin: 0 auto var(--sp-3);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-2); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: start; }
.about-text p { color: var(--text-2); margin-bottom: var(--sp-4); max-width: 52ch; }
.about-tagline { color: var(--electric) !important; font-weight: 600; font-style: italic; margin-top: var(--sp-4); }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
.stat { text-align: center; }
.stat-num {
  font-family: var(--mono); font-size: var(--text-2xl); font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: var(--text-xs); color: var(--text-2); letter-spacing: 0.1em; text-transform: uppercase; margin-top: var(--sp-1); }

@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; z-index: 10;
  padding: var(--sp-10) var(--sp-6);
  background: var(--bg); border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4);
}
.footer-brand { display: flex; align-items: center; gap: var(--sp-2); }
.footer-h { font-family: var(--mono); font-size: var(--text-xl); font-weight: 700; color: var(--purple); }
.footer-name { font-size: var(--text-sm); color: var(--text-2); }
.footer-links { display: flex; gap: var(--sp-6); }
.footer-links a { font-size: var(--text-sm); color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--purple); }
.footer-meta { font-size: var(--text-xs); color: var(--text-3); display: flex; gap: var(--sp-6); }
.footer-meta a { transition: color 0.2s; }
.footer-meta a:hover { color: var(--text-2); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   ANIMATIONS — scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay variants */
.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }
.reveal--delay-4 { transition-delay: 0.48s; }

/* Hero elements fade up on load */
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-enter 1.2s var(--ease) 0.6s forwards;
}
@keyframes hero-enter {
  to { opacity: 1; transform: translateY(0); }
}
