/* ============================================
   MusiEQ — Premium Design System
   ============================================ */

:root {
    /* --- THEME COLORS (preserved) --- */
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;

    --accent: #f472b6;
    --accent-glow: #ec4899;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --bg-main: #1e1a25;
    --bg-surface: rgba(22, 17, 33, 0.6);
    --bg-card: rgba(30, 25, 45, 0.5);
    --bg-elevated: rgba(255, 255, 255, 0.03);
    --bg-tertiary: #1e1b29;

    --text-primary: #f1f0f5;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-glass: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(139, 92, 246, 0.3);
    --border-active: rgba(139, 92, 246, 0.6);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.2);
    --shadow-glow-accent: 0 0 30px rgba(244, 114, 182, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Dashboard Background Animation ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(219, 39, 119, 0.05), transparent 25%);
    filter: blur(60px);
    animation: pulseBg 10s ease-in-out infinite alternate;
}

@keyframes pulseBg {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

.background-elements {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.sound-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
}

.wave-1 {
    height: 300px;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%237c3aed' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    animation: waveFloat 10s ease-in-out infinite alternate;
}

.wave-2 {
    height: 350px;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ec4899' d='M0,128L48,144C96,160,192,192,288,186.7C384,181,480,139,576,149.3C672,160,768,224,864,229.3C960,235,1056,181,1152,165.3C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    animation: waveFloat 15s ease-in-out infinite alternate-reverse;
}

.wave-3 {
    height: 280px;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%233b82f6' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,250.7C960,235,1056,181,1152,160C1248,139,1344,149,1392,154.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    animation: waveFloat 12s ease-in-out infinite alternate;
}

@keyframes waveFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(15px);
    }
}

.floating-notes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.note {
    position: absolute;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.1);
    animation: noteFloatUp 8s linear infinite;
    pointer-events: none;
}

.note-1 {
    left: 10%;
    animation-delay: 0s;
    font-size: 32px;
}

.note-2 {
    left: 20%;
    animation-delay: 4s;
    font-size: 24px;
}

.note-3 {
    left: 70%;
    animation-delay: 2s;
    font-size: 40px;
}

.note-4 {
    left: 80%;
    animation-delay: 6s;
    font-size: 28px;
}

.note-5 {
    left: 50%;
    animation-delay: 3s;
    font-size: 36px;
}

@keyframes noteFloatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    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='0.03'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

/* ---- Layout ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* ============================================
   TOP HEADER (Unified Dashboard Design)
   ============================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100% - 40px));
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    z-index: 2000;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.7);
    top: 10px;
    border-color: 1px solid rgba(139, 92, 246, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo {
    height: 44px;
    width: 44px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.08);
    padding: 5px;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.35), 0 0 30px rgba(139, 92, 246, 0.12);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.08) rotate(5deg);
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
}

.header-brand {
    height: 32px;
    width: auto;
    opacity: 0.92;
    display: block;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .header-center {
        display: none;
    }
}

.header-center a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.header-center a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa, #c084fc);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-center a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.header-center a:hover::after {
    width: 60%;
}

.header-center a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 139, 250, 0.1));
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.3), 0 2px 8px rgba(139, 92, 246, 0.15);
    font-weight: 600;
}

.header-center a.active::after {
    width: 50%;
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* User Menu & Login */
#login-btn-new {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: var(--transition-spring);
    display: flex;
    align-items: center;
    gap: 10px;
}

#login-btn-new:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 6px 6px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.user-menu:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    color: white;
}

.signout-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.signout-btn:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.plan-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    line-height: 1;
}

.plan-badge.user-vip {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 50%, #FFD700 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}


/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.925rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    color: var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-large {
    padding: 15px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}




.full-width {
    width: 100%;
    text-align: center;
}

.btn-icon {
    width: 22px;
    height: 16px;
    border-radius: 4px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease-out;
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 24px;
    color: #ffffff;
    /* Changed to fully white */
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.highlight-music {
    position: relative;
    display: inline-block;
    color: #8b5cf6;
    /* MusiEQ Violet */
}

.wavy-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 12px;
    pointer-events: none;
}

.wavy-underline path {
    fill: none;
    stroke: #8b5cf6;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawWavy 1.2s ease-out 0.8s forwards;
}

@keyframes drawWavy {
    to {
        stroke-dashoffset: 0;
    }
}


.hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 44px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-invite,
.btn-discord {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-invite svg,
.btn-discord svg {
    flex-shrink: 0;
}

/* Hero glow effect behind heading */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Bento Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    border-radius: 0 0 2px 2px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Accent colors per card */
.feature-card:nth-child(1)::before {
    background: var(--primary);
}

.feature-card:nth-child(2)::before {
    background: var(--accent);
}

.feature-card:nth-child(3)::before {
    background: var(--success);
}

.feature-card:nth-child(4)::before {
    background: var(--info);
}

.feature-card:nth-child(5)::before {
    background: var(--warning);
}

.feature-card:nth-child(6)::before {
    background: var(--accent-glow);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.feature-card:nth-child(2) .feature-icon {
    background: rgba(244, 114, 182, 0.1);
    border-color: rgba(244, 114, 182, 0.15);
}

.feature-card:nth-child(3) .feature-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.15);
}

.feature-card:nth-child(4) .feature-icon {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.15);
}

.feature-card:nth-child(5) .feature-icon {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.15);
}

.feature-card:nth-child(6) .feature-icon {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.15);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 80px 0 24px;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand .logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .logo-img {
    width: 48px;
    height: 32px;
    border-radius: 8px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    animation: none;
    object-fit: cover;
}

.footer-brand .logo-text {
    height: 26px;
    width: auto;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column {
    display: block;
}

.footer-column summary {
    list-style: none;
    cursor: default;
    outline: none;
}

.footer-column summary::-webkit-details-marker {
    display: none;
}

.footer-column summary h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.footer-social-add {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px !important;
    color: white !important;
    font-size: 0.82rem !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: all var(--transition-fast);
    width: auto !important;
}

.footer-social-add:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.55) !important;
    background: linear-gradient(135deg, #7c3aed, var(--primary)) !important;
}

.mobile-only {
    display: none;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-made-with {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-heart {
    color: #a855f7;
    animation: heartbeat 1.4s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    14% {
        transform: scale(1.3);
        opacity: 1;
    }

    28% {
        transform: scale(1);
        opacity: 0.8;
    }

    42% {
        transform: scale(1.2);
        opacity: 1;
    }

    56% {
        transform: scale(1);
    }
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

/* ============================================
   Intro Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }

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

    .stat-item {
        padding: 0 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 11, 21, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 28px;
        transition: right var(--transition-smooth);
        border-left: 1px solid var(--border-glass);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-actions .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 140px 0 70px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-invite,
    .btn-discord {
        justify-content: center;
    }

    .stats-grid {
        flex-direction: column;
        gap: 32px;
    }

    .stat-item {
        padding: 0;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Footer flex redesign ---- */
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        width: 100%;
    }

    .footer-brand .logo-row {
        justify-content: center;
    }

    .footer-brand p {
        max-width: 300px;
        font-size: 0.9rem;
        line-height: 1.6;
        color: var(--text-secondary);
    }

    .footer-social {
        display: flex;
        justify-content: center;
        gap: 14px;
        margin-top: 4px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px 48px;
        width: 100%;
        text-align: center;
    }

    .footer-column {
        flex: 1 1 120px;
        max-width: 160px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-column h4 {
        margin-bottom: 4px;
        font-size: 0.85rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-primary);
    }

    .footer-column a {
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    .footer-links {
        grid-template-columns: unset;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-text h1 {
        font-size: 1.8rem !important;
    }

    .section-title {
        font-size: 1.6rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 32px;
    }
}

/* ---- Mobile overlay ---- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

/* ---- Notification System ---- */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    background: rgba(30, 25, 45, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--primary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease forwards;
    pointer-events: auto;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification.info {
    border-left-color: var(--info);
}

.notification.out {
    animation: slideOut 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ---- Navbar Login Button ---- */
.login-btn-header {
    background: var(--primary);
    color: white;
    padding: 8px 24px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-glow);
}

.login-btn-header:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.login-btn-header i {
    margin-right: 8px;
}

/* ---- Modals ---- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #1e192d;
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 24px;
    z-index: 1;
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
}

.modal-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.5;
    font-size: 15px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 10px 20px;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: #ef4444;
    border: none;
    padding: 10px 20px;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}