*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #9146ff;
  --purple-dark: #6c2bd9;
  --gold: #f0c040;
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #141428;
  --text: #e8e8f0;
  --muted: #8888aa;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === STARFIELD === */
.bg-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 10%, rgba(200,180,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 90%, rgba(200,180,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 55%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 40%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 45%, rgba(255,255,255,0.5) 0%, transparent 100%);
  background-size: 400px 400px;
  animation: drift 60s linear infinite;
  opacity: 0.6;
}
.s2 {
  background-size: 600px 600px;
  animation-duration: 90s;
  animation-direction: reverse;
  opacity: 0.4;
}
.s3 {
  background-size: 300px 300px;
  animation-duration: 120s;
  opacity: 0.3;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(400px, 400px); }
}

/* === HERO === */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(145,70,255,0.15) 0%, transparent 70%);
}

.hero-inner { max-width: 700px; }

.tagline {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, #c084fc 0%, #9146ff 40%, #f0c040 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(145,70,255,0.3); }
.btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

.btn-twitch {
  background: var(--purple);
  color: #fff;
}
.btn-twitch:hover { background: var(--purple-dark); }

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-sm:hover { background: rgba(255,255,255,0.14); box-shadow: none; }

/* === SECTIONS === */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* === MUSIC === */
.music { background: linear-gradient(180deg, transparent 0%, rgba(145,70,255,0.05) 50%, transparent 100%); }

.ep-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--bg3);
  border: 1px solid rgba(145,70,255,0.2);
  border-radius: var(--radius);
  padding: 2rem;
  flex-wrap: wrap;
}

.ep-art {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6c2bd9, #9146ff, #f0c040);
  opacity: 0.85;
}

.ep-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 600;
}

.ep-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem;
}

.ep-info p { color: var(--muted); margin-bottom: 1rem; }

.music-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* === SOCIAL LINKS GRID === */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  color: var(--text);
}
.link-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }

.link-card svg { width: 1.4rem; height: 1.4rem; fill: currentColor; flex-shrink: 0; }
.link-card span { font-weight: 600; display: block; line-height: 1.2; }
.link-card small { color: var(--muted); font-size: 0.8rem; }

.link-twitch { --c: #9146ff; }
.link-tiktok { --c: #69c9d0; }
.link-youtube { --c: #ff0000; }
.link-x { --c: #e7e7e7; }
.link-insta { --c: #e1306c; }
.link-bsky { --c: #0085ff; }

.link-card:hover { border-color: var(--c); box-shadow: 0 6px 20px color-mix(in srgb, var(--c) 20%, transparent); }
.link-card svg { color: var(--c); }

/* === GAME DEV === */
.gamedev {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(240,192,64,0.04) 50%, transparent);
}

.wip-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: rgba(240,192,64,0.1);
  border: 1px solid rgba(240,192,64,0.3);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

/* === FOOTER === */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
footer a { color: var(--muted); text-decoration: underline; }
footer a:hover { color: var(--text); }

@media (max-width: 480px) {
  .ep-card { flex-direction: column; align-items: flex-start; }
  .ep-art { width: 100px; height: 100px; }
}
