:root {
  --bg-deep: #050508;
  --bg-surface: #0d0d12;
  --bg-elevated: #14141c;
  --border: #1f1f2e;
  --text-primary: #ececf1;
  --text-muted: #6b6b80;
  --accent-primary: #c41e3a;
  --accent-glow: #ff2d55;
  --glass: rgba(13, 13, 18, 0.88);
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Outfit', system-ui, sans-serif;
  --nav-height: 56px;
  --music-bar-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--music-bar-height) + 16px);
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Site background — GIF (all pages) or fallback orbs */

.site-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

.site-background__gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-background__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 8, 0.92) 0%,
    rgba(5, 5, 8, 0.75) 40%,
    rgba(5, 5, 8, 0.88) 100%
  );
  pointer-events: none;
}

.site-background--orbs .ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.ambient-orb--1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-primary), transparent 70%);
  top: -120px;
  left: -80px;
}

.ambient-orb--2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #1a0a12, transparent 70%);
  bottom: 10%;
  right: -100px;
  animation-delay: -6s;
}

.ambient-orb--3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -12s;
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}

.site-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 935px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--bg-deep) 60%, transparent);
  backdrop-filter: blur(8px);
}

.site-nav__brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.site-nav__links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
  border-color: var(--border);
  background: var(--bg-elevated);
}

.nav-link.is-active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(196, 30, 58, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-primary), #8b0018);
  color: #fff;
  border: 1px solid rgba(255, 45, 85, 0.3);
  box-shadow: 0 4px 24px rgba(196, 30, 58, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 45, 85, 0.45);
}

.btn--ghost {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn--ghost:hover {
  border-color: var(--accent-primary);
}

.btn--block { width: 100%; }

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
