/* ============================================ */
/* DESIGN SYSTEM — TOKENS                       */
/* ============================================ */
:root {
    /* Colors */
    --bg-deep: #04040c;
    --bg-primary: #08081a;
    --bg-surface: #0e0e28;
    --bg-elevated: #161640;
    --bg-card: #0c0c24;

    --color-primary: #7c5bf5;
    --color-primary-light: #a78bfa;
    --color-primary-dark: #5b3fd4;
    --color-secondary: #06b6d4;
    --color-accent: #f5a623;
    --color-accent-warm: #fbbf24;
    --color-support: #f472b6;

    --color-text: #e8e6f0;
    --color-text-muted: #9896a8;
    --color-text-dim: #5a587a;
    --color-text-bright: #ffffff;

    --gradient-cosmic: linear-gradient(135deg, #7c5bf5 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-warm: linear-gradient(135deg, #f5a623 0%, #f97316 50%, #ef4444 100%);
    --gradient-surface: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
    --gradient-card: linear-gradient(145deg, rgba(124,91,245,0.08) 0%, rgba(6,182,212,0.04) 100%);

    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: clamp(2rem, 4vw, 2.75rem);
    --fs-4xl: clamp(2.5rem, 5vw, 3.5rem);
    --fs-hero: clamp(3rem, 9vw, 7.5rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-section: clamp(5rem, 12vw, 10rem);

    /* Borders */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    --border-subtle: 1px solid rgba(124, 91, 245, 0.1);
    --border-card: 1px solid rgba(124, 91, 245, 0.12);
    --border-hover: 1px solid rgba(124, 91, 245, 0.3);

    /* Shadows (consistent top-left light) */
    --shadow-sm: 2px 2px 8px rgba(0,0,0,0.4), -1px -1px 3px rgba(124,91,245,0.03);
    --shadow-md: 4px 4px 20px rgba(0,0,0,0.5), -2px -2px 8px rgba(124,91,245,0.05);
    --shadow-lg: 8px 8px 40px rgba(0,0,0,0.6), -3px -3px 12px rgba(124,91,245,0.06);
    --shadow-xl: 12px 12px 60px rgba(0,0,0,0.7), -4px -4px 16px rgba(124,91,245,0.08);
    --shadow-glow: 0 0 30px rgba(124, 91, 245, 0.15);
    --shadow-glow-accent: 0 0 30px rgba(245, 166, 35, 0.15);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --duration-fast: 200ms;
    --duration-base: 350ms;
    --duration-slow: 600ms;
    --duration-slower: 900ms;

    /* Z-index scale */
    --z-bg: -1;
    --z-base: 1;
    --z-card: 10;
    --z-nav: 100;
    --z-mobile-menu: 90;
    --z-preloader: 1000;
    --z-grain: 9998;
}

/* ============================================ */
/* RESET & BASE                                 */
/* ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-dark) var(--bg-deep);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: var(--color-primary-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

::selection {
    background: rgba(124, 91, 245, 0.35);
    color: var(--color-text-bright);
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--bg-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================ */
/* AURORA BACKGROUND                            */
/* ============================================ */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.06;
    will-change: transform;
}
.aurora-1 {
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, #7c5bf5, #6d28d9);
    top: -15%;
    left: -10%;
    animation: auroraFloat1 30s ease-in-out infinite;
}
.aurora-2 {
    width: 550px;
    height: 550px;
    background: linear-gradient(135deg, #06b6d4, #0e7490);
    top: 35%;
    right: -12%;
    animation: auroraFloat2 35s ease-in-out infinite;
    animation-delay: -10s;
}
.aurora-3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #f5a623, #d97706);
    bottom: -10%;
    left: 25%;
    animation: auroraFloat3 40s ease-in-out infinite;
    animation-delay: -20s;
}
@keyframes auroraFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, -50px) scale(1.15); }
    66% { transform: translate(-40px, 60px) scale(0.9); }
}
@keyframes auroraFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, 40px) scale(1.1); }
    66% { transform: translate(50px, -50px) scale(0.95); }
}
@keyframes auroraFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, 30px) scale(1.1); }
    66% { transform: translate(-50px, -40px) scale(0.9); }
}

/* ============================================ */
/* CUSTOM CURSOR                                */
/* ============================================ */
@media (hover: hover) and (pointer: fine) {
    body.custom-cursor-active *,
    body.custom-cursor-active *::before,
    body.custom-cursor-active *::after { cursor: none !important; }

    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99999;
        pointer-events: none;
        mix-blend-mode: difference;
    }
    .cursor-dot {
        width: 6px;
        height: 6px;
        background: #fff;
        border-radius: 50%;
        position: absolute;
        transform: translate(-50%, -50%);
        transition: width 0.15s ease, height 0.15s ease;
    }
    .cursor-ring {
        width: 40px;
        height: 40px;
        border: 1.5px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        position: absolute;
        transform: translate(-50%, -50%);
        transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    }
    .custom-cursor.is-hovering .cursor-ring {
        width: 64px;
        height: 64px;
        border-color: rgba(124, 91, 245, 0.6);
    }
    .custom-cursor.is-hovering .cursor-dot {
        width: 8px;
        height: 8px;
        background: rgba(124, 91, 245, 0.8);
    }
    .custom-cursor.is-clicking .cursor-ring {
        width: 32px;
        height: 32px;
    }
}

body.no-scroll {
    overflow: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ============================================ */
/* PRELOADER                                    */
/* ============================================ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    gap: 0.5em;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 var(--space-md);
}

.preloader-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: preloaderWordIn 0.6s var(--ease-out-expo) forwards;
    position: relative;
}

.preloader-word:nth-child(1) { animation-delay: 0.2s; }
.preloader-word:nth-child(2) { animation-delay: 0.5s; }
.preloader-word:nth-child(3) { animation-delay: 0.8s; }

.preloader-word:nth-child(1),
.preloader-word:nth-child(3) {
    color: var(--color-primary-light);
    text-shadow: 0 0 30px rgba(124, 91, 245, 0.4);
}

.preloader-word--accent {
    color: var(--color-text-muted);
}

/* Glitch effect on the preloader words */
.preloader-word::before,
.preloader-word::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.preloader-word:nth-child(1)::before,
.preloader-word:nth-child(3)::before {
    color: var(--color-secondary);
    animation: glitchLeft 3s steps(2) 1.2s infinite;
}

.preloader-word:nth-child(1)::after,
.preloader-word:nth-child(3)::after {
    color: var(--color-support);
    animation: glitchRight 3s steps(2) 1.2s infinite;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(124, 91, 245, 0.15);
    border-radius: 2px;
    margin: var(--space-2xl) auto var(--space-lg);
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s var(--ease-out-expo) 1s forwards;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-cosmic);
    border-radius: 2px;
    animation: preloaderBar 2s var(--ease-out-expo) 1.2s forwards;
}

.preloader-tagline {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--color-text-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.5s var(--ease-out-expo) 1.4s forwards;
}

/* ============================================ */
/* NAVIGATION                                   */
/* ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: var(--space-md) 0;
    transition: all var(--duration-base) var(--ease-out-expo);
    transform: translateY(-100%);
    opacity: 0;
}

#navbar.visible {
    transform: translateY(0);
    opacity: 1;
}

#navbar.scrolled {
    background: rgba(4, 4, 12, 0.8);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: var(--border-subtle);
    padding: var(--space-sm) 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all var(--duration-base) var(--ease-out-expo);
}

.nav-logo:hover {
    text-shadow: 0 0 20px rgba(124, 91, 245, 0.5);
}

.logo-m { color: var(--color-primary-light); }
.logo-dot { color: var(--color-text-dim); margin: 0 1px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    transition: all var(--duration-base) var(--ease-out-expo);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gradient-cosmic);
    transition: width var(--duration-base) var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-support {
    color: var(--color-accent);
    background: rgba(245, 166, 35, 0.08);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid rgba(245, 166, 35, 0.2);
    transition: all var(--duration-base) var(--ease-out-expo);
}

.nav-support::after { display: none; }

.nav-support:hover {
    background: rgba(245, 166, 35, 0.15);
    border-color: rgba(245, 166, 35, 0.4);
    color: var(--color-accent-warm);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.1);
}

.support-heart {
    display: inline-block;
    transition: transform var(--duration-fast) var(--ease-spring);
}

.nav-support:hover .support-heart {
    transform: scale(1.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    z-index: calc(var(--z-nav) + 1);
}

.toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--duration-base) var(--ease-out-expo);
    transform-origin: center;
}

.nav-toggle.active .toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.active .toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-mobile-menu);
    background: rgba(4, 4, 12, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-slow) var(--ease-out-expo);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all var(--duration-base) var(--ease-out-expo);
    transform: translateY(20px);
    opacity: 0;
}

.mobile-menu.open .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-link:nth-child(5) { transition-delay: 0.25s; }

.mobile-link:hover, .mobile-link:focus { color: var(--color-text); }

.mobile-support {
    color: var(--color-accent) !important;
    font-size: var(--fs-lg) !important;
}

/* ============================================ */
/* HERO                                         */
/* ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
}

.hero-orb--1 {
    width: 700px;
    height: 700px;
    background: var(--color-primary);
    top: -20%;
    left: -15%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.hero-orb--2 {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    bottom: -10%;
    right: -10%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.hero-orb--3 {
    width: 350px;
    height: 350px;
    background: var(--color-accent);
    top: 30%;
    right: 20%;
    opacity: 0.06;
    animation: orbFloat3 18s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(4, 4, 12, 0.3) 0%,
        rgba(4, 4, 12, 0.1) 40%,
        rgba(4, 4, 12, 0.5) 80%,
        rgba(4, 4, 12, 1) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-xl);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: rgba(124, 91, 245, 0.08);
    border: 1px solid rgba(124, 91, 245, 0.15);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2xl);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-2xl);
}

.hero-line {
    display: block;
    color: var(--color-text-bright);
}

.hero-line--accent {
    background: linear-gradient(
        90deg,
        #a78bfa 0%,
        #06b6d4 25%,
        #c084fc 50%,
        #06b6d4 75%,
        #a78bfa 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 5s linear infinite;
}
@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================ */
/* BUTTONS                                      */
/* ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-cosmic);
    color: var(--color-text-bright);
    box-shadow: 0 4px 20px rgba(124, 91, 245, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: visible;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(124, 91, 245, 0.4), rgba(6, 182, 212, 0.4), rgba(124, 91, 245, 0.4));
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity var(--duration-base) var(--ease-out-expo);
}
.btn-primary:hover::before {
    opacity: 1;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 91, 245, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(124, 91, 245, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(124, 91, 245, 0.3);
}

.btn-secondary:hover {
    background: rgba(124, 91, 245, 0.08);
    border-color: rgba(124, 91, 245, 0.5);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-arrow {
    transition: transform var(--duration-base) var(--ease-out-expo);
}

.btn-primary:hover .btn-arrow {
    transform: translateY(3px);
}

.btn-support {
    background: linear-gradient(135deg, rgba(245,166,35,0.15) 0%, rgba(244,114,182,0.15) 100%);
    color: var(--color-accent);
    border: 1px solid rgba(245, 166, 35, 0.25);
    font-size: var(--fs-base);
    padding: var(--space-lg) var(--space-3xl);
}

.btn-support:hover {
    background: linear-gradient(135deg, rgba(245,166,35,0.25) 0%, rgba(244,114,182,0.25) 100%);
    border-color: rgba(245, 166, 35, 0.5);
    box-shadow: 0 8px 40px rgba(245, 166, 35, 0.15);
    transform: translateY(-2px);
}

.btn-support:active {
    transform: translateY(0);
}

.support-heart-btn {
    font-size: var(--fs-lg);
    transition: transform var(--duration-base) var(--ease-spring);
}

.btn-support:hover .support-heart-btn {
    transform: scale(1.3);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-3xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--color-primary-light) 0%, transparent 100%);
    animation: scrollLine 2s ease-in-out infinite;
}

/* ============================================ */
/* SECTIONS — SHARED                            */
/* ============================================ */
.section {
    position: relative;
    padding: var(--space-section) 0;
    overflow: hidden;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto var(--space-4xl);
}

.section-header--center { max-width: 800px; }

.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-label::before,
.section-label::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--color-primary-dark);
    vertical-align: middle;
    margin: 0 var(--space-md);
}

.section-label--warm {
    color: var(--color-accent);
}

.section-label--warm::before,
.section-label--warm::after {
    background: rgba(245, 166, 35, 0.3);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text-bright);
    margin-bottom: var(--space-xl);
    text-shadow: 0 0 40px rgba(124, 91, 245, 0.1), 0 0 80px rgba(124, 91, 245, 0.05);
}

.section-title em {
    font-style: normal;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* Section background orbs */
.section-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

.section-bg-orb--left {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    left: -200px;
    top: 20%;
}

.section-bg-orb--right {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    right: -200px;
    top: 30%;
}

.section-bg-orb--center {
    width: 700px;
    height: 700px;
    background: var(--color-primary);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================ */
/* PHILOSOPHY SECTION                           */
/* ============================================ */

/* The Loop Visual */
.loop-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-4xl);
    flex-wrap: wrap;
}

.loop-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.loop-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xl);
    border-radius: 50%;
    background: var(--bg-surface);
    border: var(--border-card);
    box-shadow: var(--shadow-md);
    transition: all var(--duration-base) var(--ease-out-expo);
}

.loop-node:hover .loop-icon {
    box-shadow: var(--shadow-glow);
    border-color: rgba(124, 91, 245, 0.3);
    transform: translateY(-3px);
}

.loop-node span {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.loop-node--1 .loop-icon,
.loop-node--3 .loop-icon {
    background: rgba(124, 91, 245, 0.1);
    border-color: rgba(124, 91, 245, 0.2);
}

.loop-node--2 .loop-icon {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}

.loop-arrow {
    color: var(--color-text-dim);
}

/* Philosophy Cards */
.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.phil-card {
    position: relative;
    background: var(--gradient-card);
    background-color: var(--bg-card);
    border: var(--border-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out-expo);
}

.phil-card:hover {
    border-color: rgba(124, 91, 245, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.phil-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.02) 40%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.02) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
    transform: translateX(-100%);
    pointer-events: none;
    z-index: 1;
}
.phil-card:hover::after {
    opacity: 1;
    transform: translateX(100%);
}

.phil-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--color-primary);
    filter: blur(80px);
    opacity: 0;
    top: -50px;
    right: -50px;
    transition: opacity var(--duration-slow) var(--ease-out-expo);
    pointer-events: none;
}

.phil-card:hover .phil-card-glow {
    opacity: 0.06;
}

.phil-card-number {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: 700;
    color: rgba(124, 91, 245, 0.1);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.phil-card-title {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--color-text-bright);
    margin-bottom: var(--space-md);
}

.phil-card-text {
    font-size: var(--fs-sm);
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* ============================================ */
/* FREQUENCIES SECTION                          */
/* ============================================ */
.freq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.freq-card {
    position: relative;
    background-color: var(--bg-card);
    background-image: var(--gradient-card);
    border: var(--border-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--duration-base) var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.freq-card:hover {
    border-color: rgba(124, 91, 245, 0.25);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.freq-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.02) 40%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.02) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
    transform: translateX(-100%);
    pointer-events: none;
    z-index: 1;
}
.freq-card:hover::after {
    opacity: 1;
    transform: translateX(100%);
}

/* Individual card color accents */
.freq-card:nth-child(1) { --freq-color: #22c55e; }
.freq-card:nth-child(2) { --freq-color: #f5a623; }
.freq-card:nth-child(3) { --freq-color: #06b6d4; }
.freq-card:nth-child(4) { --freq-color: #a78bfa; }
.freq-card:nth-child(5) { --freq-color: #f472b6; }
.freq-card:nth-child(6) { --freq-color: #e2e8f0; }

.freq-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-lg);
}

.freq-card-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--freq-color);
    opacity: 0.7;
    transition: all var(--duration-base) var(--ease-out-expo);
}

.freq-card:hover .freq-card-icon svg {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--freq-color));
}

.freq-card-hz {
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--freq-color);
    margin-bottom: var(--space-sm);
}

.freq-card-title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--color-text-bright);
    margin-bottom: var(--space-md);
}

.freq-card-text {
    font-size: var(--fs-sm);
    line-height: 1.75;
    color: var(--color-text-muted);
    flex-grow: 1;
    margin-bottom: var(--space-lg);
}

.freq-card-link {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--freq-color);
    opacity: 0.7;
    transition: all var(--duration-base) var(--ease-out-expo);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.freq-card-link:hover {
    opacity: 1;
    gap: var(--space-sm);
}

/* ============================================ */
/* ARTICLES SECTION                             */
/* ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.article-card {
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out-expo);
}

.article-card:hover {
    border-color: rgba(124, 91, 245, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card-image {
    height: 180px;
    background: var(--card-gradient, linear-gradient(135deg, #1a0533, #2d1b69));
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--space-md);
    position: relative;
    overflow: hidden;
}

.article-card-waveform {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    opacity: 0.6;
}

.article-card-waveform svg {
    width: 100%;
    height: 100%;
}

.article-card-tag {
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-bright);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.article-card-body {
    padding: var(--space-xl);
}

.article-card-meta {
    font-size: var(--fs-xs);
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
    display: block;
}

.article-card-title {
    font-family: var(--font-display);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-text-bright);
    margin-bottom: var(--space-md);
    transition: color var(--duration-base) var(--ease-out-expo);
}

.article-card:hover .article-card-title {
    color: var(--color-primary-light);
}

.article-card-excerpt {
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* ============================================ */
/* SCIENCE SECTION                              */
/* ============================================ */
.science-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-4xl);
}

.stat-card {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: var(--radius-xl);
    transition: all var(--duration-base) var(--ease-out-expo);
}

.stat-card:hover {
    border-color: rgba(124, 91, 245, 0.25);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--color-primary-light);
    display: inline;
    margin-left: 2px;
}

.stat-label {
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

.science-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.science-quote {
    margin-bottom: var(--space-2xl);
    padding: var(--space-2xl);
    border-left: 3px solid var(--color-primary);
    background: rgba(124, 91, 245, 0.04);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    text-align: left;
}

.science-quote p {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.science-quote cite {
    font-size: var(--fs-sm);
    color: var(--color-text-dim);
    font-style: normal;
}

.science-content > p {
    font-size: var(--fs-md);
    line-height: 1.9;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    text-align: left;
}

.science-content strong {
    color: var(--color-text);
}

.science-content em {
    color: var(--color-primary-light);
    font-style: normal;
}

/* ============================================ */
/* SOUND HEALING — IMMERSIVE                    */
/* ============================================ */
.section--immersive {
    position: relative;
}

.immersive-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.immersive-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(124, 91, 245, 0.06) 0%, transparent 70%),
                linear-gradient(180deg, var(--bg-deep) 0%, rgba(14, 10, 30, 0.95) 30%, rgba(14, 10, 30, 0.95) 70%, var(--bg-deep) 100%);
}

.healing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.healing-item {
    padding: var(--space-2xl);
    background: rgba(124, 91, 245, 0.04);
    border: var(--border-card);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--duration-base) var(--ease-out-expo);
}

.healing-item:hover {
    background: rgba(124, 91, 245, 0.08);
    border-color: rgba(124, 91, 245, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.healing-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.healing-item h3 {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--color-text-bright);
    margin-bottom: var(--space-md);
}

.healing-item p {
    font-size: var(--fs-sm);
    line-height: 1.75;
    color: var(--color-text-muted);
}

/* ============================================ */
/* SUPPORT SECTION                              */
/* ============================================ */
.section--support {
    text-align: center;
}

.support-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.support-content {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.support-text {
    font-size: var(--fs-md);
    line-height: 1.9;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

.support-text strong {
    color: var(--color-accent);
}

.support-note {
    font-size: var(--fs-sm);
    color: var(--color-text-dim);
    margin-top: var(--space-lg);
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
#footer {
    padding: var(--space-4xl) 0 var(--space-2xl);
    padding-bottom: 100px; /* Space for floating player */
    border-top: var(--border-subtle);
    background: var(--bg-deep);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: var(--border-subtle);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-bright);
    display: inline-block;
    margin-bottom: var(--space-md);
}

.footer-dot { color: var(--color-text-dim); }

.footer-tagline {
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: var(--color-text-dim);
    max-width: 280px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col a {
    font-size: var(--fs-sm);
    color: var(--color-text-dim);
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.footer-col a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: var(--fs-xs);
    color: var(--color-text-dim);
}

.footer-loop {
    letter-spacing: 0.15em;
    opacity: 0.3;
    white-space: nowrap;
    overflow: hidden;
    animation: marqueeScroll 30s linear infinite;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================ */
/* AD CONTAINERS (Google AdSense)               */
/* ============================================ */
.ad-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.ad-container ins {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ============================================ */
/* FREQUENCY CARD — PLAY BUTTON & ACTIVE STATE  */
/* ============================================ */
.freq-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.freq-play {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--freq-color);
    opacity: 0.5;
    transition: all var(--duration-base) var(--ease-out-expo);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.freq-play:hover {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px var(--freq-color));
}

.freq-play:active {
    transform: scale(0.95);
}

.freq-play--active .freq-play-icon { display: none; }
.freq-play--active .freq-stop-icon { display: block !important; }

/* Card playing state — pulsing glow */
.freq-card--playing {
    border-color: var(--freq-color) !important;
    box-shadow: 0 0 20px rgba(124, 91, 245, 0.15),
                0 0 40px color-mix(in srgb, var(--freq-color) 15%, transparent) !important;
    animation: freqCardPulse 3s ease-in-out infinite;
}

.freq-card--playing .freq-card-icon svg {
    opacity: 1;
    filter: drop-shadow(0 0 12px var(--freq-color));
    animation: freqIconPulse 2s ease-in-out infinite;
}

.freq-card--playing .freq-play {
    opacity: 1;
    color: var(--freq-color);
}

@keyframes freqCardPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(124, 91, 245, 0.1), 0 0 40px rgba(124, 91, 245, 0.05); }
    50% { box-shadow: 0 0 30px rgba(124, 91, 245, 0.2), 0 0 60px rgba(124, 91, 245, 0.1); }
}

@keyframes freqIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Headphones notice */
.freq-headphones {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-text-dim);
    margin-top: var(--space-sm);
    opacity: 0.7;
}

/* ============================================ */
/* FLOATING AMBIENT PLAYER                      */
/* ============================================ */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--z-nav) - 1);
    padding: 0 var(--space-md) var(--space-md);
    pointer-events: none;
    transition: transform var(--duration-slow) var(--ease-out-expo),
                opacity var(--duration-slow) var(--ease-out-expo);
}

.player--collapsed {
    transform: translateY(calc(100% - 44px));
}

.player--collapsed .player-inner {
    opacity: 0;
    pointer-events: none;
}

.player-inner {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(10, 10, 32, 0.98);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(124, 91, 245, 0.35);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: var(--space-sm) var(--space-lg);
    pointer-events: auto;
    box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(124, 91, 245, 0.12),
                0 0 80px rgba(124, 91, 245, 0.06),
                inset 0 1px 0 rgba(124, 91, 245, 0.1);
    transition: opacity var(--duration-base) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.player-viz-section {
    max-width: 860px;
    margin: 0 auto;
    height: 80px;
    position: relative;
    background: rgba(6, 6, 20, 0.95);
    border: 1px solid rgba(124, 91, 245, 0.2);
    border-bottom: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
}
.player-viz-section .player-visualizer {
    width: 100%;
    height: 100%;
    display: block;
}
.player-viz-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 30px;
    background: radial-gradient(ellipse at center bottom, rgba(124, 91, 245, 0.25) 0%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.player-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
    z-index: 1;
}

/* Play button */
.player-play {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 91, 245, 0.15);
    border: 1px solid rgba(124, 91, 245, 0.3);
    border-radius: 50%;
    color: var(--color-primary-light);
    transition: all var(--duration-base) var(--ease-out-expo);
}

.player-play:hover {
    background: rgba(124, 91, 245, 0.25);
    border-color: rgba(124, 91, 245, 0.5);
    box-shadow: 0 0 15px rgba(124, 91, 245, 0.2);
    transform: scale(1.05);
}

.player-play:active {
    transform: scale(0.95);
}

.player-play .player-pause-icon { display: none; }
.player-play.playing .player-play-icon { display: none; }
.player-play.playing .player-pause-icon { display: block; }

.player-play.playing {
    background: rgba(124, 91, 245, 0.25);
    box-shadow: 0 0 20px rgba(124, 91, 245, 0.2);
    animation: playerBtnPulse 3s ease-in-out infinite;
}

@keyframes playerBtnPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(124, 91, 245, 0.15); }
    50% { box-shadow: 0 0 25px rgba(124, 91, 245, 0.3); }
}

/* Player info */
.player-info {
    flex-shrink: 0;
    min-width: 0;
}

.player-title {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-headphones {
    font-size: var(--fs-xs);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Preset buttons */
.player-presets {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.player-preset {
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--color-text-dim);
    background: rgba(124, 91, 245, 0.06);
    border: 1px solid rgba(124, 91, 245, 0.1);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out-expo);
    white-space: nowrap;
}

.player-preset:hover {
    color: var(--color-text);
    background: rgba(124, 91, 245, 0.12);
    border-color: rgba(124, 91, 245, 0.25);
}

.player-preset.active {
    color: var(--color-text-bright);
    background: rgba(124, 91, 245, 0.2);
    border-color: rgba(124, 91, 245, 0.4);
    box-shadow: 0 0 10px rgba(124, 91, 245, 0.15);
}

/* Volume */
.player-volume {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
    color: var(--color-text-dim);
}

.player-volume input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(124, 91, 245, 0.15);
    border-radius: 2px;
    outline: none;
}

.player-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--color-primary-light);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(124, 91, 245, 0.3);
    transition: transform var(--duration-fast) var(--ease-spring);
}

.player-volume input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.player-volume input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--color-primary-light);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(124, 91, 245, 0.3);
}

/* Collapse toggle */
.player-collapse {
    position: absolute;
    top: -36px;
    right: var(--space-lg);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 32, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(124, 91, 245, 0.35);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    color: var(--color-primary-light);
    font-size: var(--fs-base);
    pointer-events: auto;
    transition: all var(--duration-base) var(--ease-out-expo);
    box-shadow: 0 -4px 20px rgba(124, 91, 245, 0.08);
}

.player-collapse:hover {
    background: rgba(124, 91, 245, 0.15);
    color: var(--color-text-bright);
}

/* Player responsive */
@media (max-width: 768px) {
    .player-content {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .player-presets {
        order: 10;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: var(--space-xs);
    }

    .player-presets::-webkit-scrollbar { display: none; }

    .player-volume {
        margin-left: auto;
    }

    .player-info {
        flex: 1;
        min-width: 0;
    }

    .player-inner {
        padding: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 480px) {
    .player-volume {
        display: none;
    }
}

/* ============================================ */
/* PARTICLE CONTROLS                            */
/* ============================================ */
.particle-controls {
    position: absolute;
    bottom: 80px;
    right: 24px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.pc-toggle,
.pc-fullscreen {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 32, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 91, 245, 0.2);
    border-radius: 10px;
    color: rgba(167, 139, 250, 0.7);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc-toggle:hover,
.pc-fullscreen:hover {
    background: rgba(124, 91, 245, 0.15);
    border-color: rgba(124, 91, 245, 0.4);
    color: #a78bfa;
    box-shadow: 0 0 20px rgba(124, 91, 245, 0.15);
    transform: scale(1.08);
}

.pc-toggle:active,
.pc-fullscreen:active {
    transform: scale(0.95);
}

.pc-panel {
    display: none;
    background: rgba(8, 8, 28, 0.92);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(124, 91, 245, 0.2);
    border-radius: 16px;
    padding: 16px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(124, 91, 245, 0.05);
    animation: pcPanelIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc-panel.is-open {
    display: block;
}

@keyframes pcPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pc-section {
    margin-bottom: 14px;
}

.pc-section:last-child {
    margin-bottom: 0;
}

.pc-label {
    display: block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(167, 139, 250, 0.5);
    margin-bottom: 8px;
}

/* Theme swatches */
.pc-themes {
    display: flex;
    gap: 6px;
}

.pc-theme {
    width: 28px;
    height: 28px;
    padding: 3px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
}

.pc-theme:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.pc-theme.active {
    border-color: rgba(124, 91, 245, 0.6);
    box-shadow: 0 0 10px rgba(124, 91, 245, 0.2);
}

.pc-swatch {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

/* Pattern buttons */
.pc-patterns {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pc-pattern {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(167, 139, 250, 0.6);
    background: rgba(124, 91, 245, 0.06);
    border: 1px solid rgba(124, 91, 245, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.pc-pattern:hover {
    color: rgba(167, 139, 250, 0.9);
    background: rgba(124, 91, 245, 0.12);
    border-color: rgba(124, 91, 245, 0.25);
}

.pc-pattern.active {
    color: #e2e8f0;
    background: rgba(124, 91, 245, 0.2);
    border-color: rgba(124, 91, 245, 0.4);
}

/* Sliders */
.pc-slider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.pc-slider-row:last-child {
    margin-bottom: 0;
}

.pc-slider-row .pc-label {
    margin-bottom: 0;
    min-width: 55px;
    flex-shrink: 0;
}

.pc-range {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: rgba(124, 91, 245, 0.12);
    border-radius: 2px;
    outline: none;
}

.pc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #a78bfa;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(124, 91, 245, 0.4);
    transition: transform 0.15s ease;
}

.pc-range::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.pc-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #a78bfa;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(124, 91, 245, 0.4);
}

/* Fullscreen state */
#hero.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99990;
    height: 100vh !important;
    min-height: 100vh !important;
}

#hero.is-fullscreen .hero-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#hero.is-fullscreen .scroll-indicator {
    display: none;
}

#hero.is-fullscreen .particle-controls {
    bottom: 24px;
    right: 24px;
    z-index: 99991;
}

#hero.is-fullscreen .pc-fullscreen svg {
    transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .particle-controls {
        bottom: 60px;
        right: 16px;
    }
    .pc-panel {
        min-width: 200px;
    }
}

/* ============================================ */
/* REVEAL ANIMATION (scroll-triggered)          */
/* ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================ */
/* KEYFRAMES                                    */
/* ============================================ */
@keyframes preloaderWordIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes glitchLeft {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    92% { opacity: 0.6; transform: translate(-3px, 1px); clip-path: inset(20% 0 40% 0); }
    94% { opacity: 0; transform: translate(0); }
    96% { opacity: 0.4; transform: translate(-2px, -1px); clip-path: inset(60% 0 10% 0); }
    98% { opacity: 0; transform: translate(0); }
}

@keyframes glitchRight {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    91% { opacity: 0; transform: translate(0); }
    93% { opacity: 0.6; transform: translate(3px, -1px); clip-path: inset(40% 0 20% 0); }
    95% { opacity: 0; transform: translate(0); }
    97% { opacity: 0.4; transform: translate(2px, 1px); clip-path: inset(10% 0 60% 0); }
    99% { opacity: 0; transform: translate(0); }
}

@keyframes preloaderBar {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    30% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    60% { transform: scaleY(1); transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, 30px) scale(1.05); }
    66% { transform: translate(-20px, -10px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, -40px) scale(1.08); }
    66% { transform: translate(20px, 20px) scale(0.92); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 20px); }
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .philosophy-cards {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .freq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .science-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-section: clamp(3rem, 10vw, 6rem);
    }

    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu { display: flex; }

    .hero-content {
        padding: 0 var(--space-md);
    }

    .hero-badge {
        font-size: 0.65rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .loop-visual {
        flex-direction: column;
    }

    .loop-arrow {
        transform: rotate(90deg);
    }

    .freq-grid,
    .articles-grid,
    .healing-grid {
        grid-template-columns: 1fr;
    }

    .science-stats {
        grid-template-columns: 1fr;
    }

    .section-label::before,
    .section-label::after {
        width: 15px;
        margin: 0 var(--space-sm);
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .preloader-text {
        font-size: clamp(1.2rem, 5vw, 2rem);
        flex-direction: column;
        gap: 0.2em;
    }

    .science-quote {
        padding: var(--space-lg);
    }

    .science-quote p {
        font-size: var(--fs-lg);
    }

    .btn-support {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--fs-sm);
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

/* Large screens */
@media (min-width: 1600px) {
    .section-container {
        max-width: 1400px;
    }

    .freq-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2xl);
    }
}

/* ============================================ */
/* REDUCED MOTION                               */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-orb,
    .scroll-indicator {
        display: none;
    }

    #heroCanvas {
        opacity: 0.3;
    }
}

/* ============================================ */
/* PRINT                                        */
/* ============================================ */
@media print {
    #preloader, #navbar, .hero-orb, .hero-overlay,
    #heroCanvas, .scroll-indicator, .section-bg-orb,
    .immersive-bg, .support-glow, .phil-card-glow {
        display: none !important;
    }

    body {
        background: white;
        color: #111;
    }

    .section { padding: 2rem 0; }
}
