/* ============================================
   Base Styles
   ============================================ */

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
}

/* === PREMIUM BACKGROUND SYSTEM === */

/* Ambient glow blobs — fixed, always visible */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70vw 55vh at 10% 15%, rgba(0,229,255,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 55vw 45vh at 90% 30%, rgba(170,0,255,0.065) 0%, transparent 50%),
        radial-gradient(ellipse 45vw 35vh at 50% 80%, rgba(41,121,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse 35vw 25vh at 8% 70%, rgba(170,0,255,0.04) 0%, transparent 45%),
        radial-gradient(ellipse 25vw 20vh at 95% 85%, rgba(0,229,255,0.04) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0%   { opacity: 1; }
    100% { opacity: 0.65; }
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.025;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: overlay;
}

body.menu-open {
    overflow: hidden;
}

body.player-active {
    padding-bottom: var(--player-height);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,229,255,0.25);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

@media (min-width: 768px) {
    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-4xl); }
    h3 { font-size: var(--text-3xl); }
}

@media (min-width: 1024px) {
    h1 { font-size: var(--text-6xl); }
}

p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 65ch;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: var(--text-glow-cyan);
}

.text-accent {
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: var(--text-xs);
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 1;
}

/* Gradient divider between sections */
.section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.12), rgba(170,0,255,0.12), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .label {
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: var(--text-xs);
    color: var(--color-cyan);
    margin-bottom: var(--space-md);
    display: block;
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* Selection */
::selection {
    background: rgba(0, 229, 255, 0.2);
    color: var(--color-text-primary);
}
