/* ─── Custom Properties ─── */
:root {
    --plum-50: #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --plum-600: #9333ea;
    --plum-700: #7e22ce;
    --plum-800: #6b21a8;
    --plum-900: #581c87;
    --plum-950: #3b0764;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --dark-850: #1a1025;
    --dark-900: #0f0a18;
    --dark-950: #070410;
}

/* ─── Base Reset & Typography ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Gold Button ─── */
.btn-gold {
    background: linear-gradient(135deg, var(--amber-400) 0%, var(--amber-500) 50%, var(--amber-600) 100%);
    color: var(--dark-900);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-gold:hover::before {
    opacity: 1;
}

/* ─── Nav Links ─── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--amber-400), var(--amber-600));
    transition: width 0.3s ease;
}

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

/* ─── Mobile Menu ─── */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(126, 34, 206, 0.2);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ─── Navbar Scroll State ─── */
#navbar.scrolled {
    background: rgba(7, 4, 16, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(126, 34, 206, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ─── Stat Cards (Hero) ─── */
.stat-card {
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(1) {
    animation-delay: 0s;
}

.stat-card:nth-child(2) {
    animation-delay: -1.5s;
}

.stat-card:nth-child(3) {
    animation-delay: -3s;
}

.stat-card:nth-child(4) {
    animation-delay: -4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ─── Menu Cards ─── */
.menu-card {
    background: rgba(26, 16, 37, 0.6);
    border: 1px solid rgba(126, 34, 206, 0.25);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(251, 191, 36, 0.08);
}

/* ─── Marquee Animation ─── */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ─── Reveal Animations (progressive enhancement) ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-950);
}

::-webkit-scrollbar-thumb {
    background: var(--plum-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--plum-600);
}

/* ─── Selection ─── */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: var(--plum-50);
}

/* ─── Focus Styles ─── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--amber-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Responsive Tweaks ─── */
@media (max-width: 768px) {
    .stat-card {
        animation: none !important;
    }
}
