@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
    --primary: #00f0ff;
    --secondary: #7000ff;
    --accent: #14f195;
    --bg-dark: #05050a;
    --bg-card: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: #9ca3af;
    --vip: #14f195;
    --mvp: #00f0ff;
    --elite: #a855f7;
    --immortal: #f59e0b;
    --glow-spread: 0 0 30px rgba(0, 240, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1, h2, h3, h4, .orbitron-text {
    font-family: 'Outfit', sans-serif !important;
}

/* Animated Background Mesh */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 15% 30%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(0, 240, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(20, 241, 149, 0.05) 0%, transparent 60%);
    background-color: var(--bg-dark);
    z-index: -2;
    animation: mesh-pulse 10s ease-in-out infinite alternate;
}

@keyframes mesh-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

/* Particles */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
    box-shadow: 0 0 10px var(--primary);
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(5, 5, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 35px;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--primary);
    border-radius: 2px;
}

nav a:hover {
    color: #fff;
}

nav a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary), #0099ff);
    color: #000;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    color: #000;
}

.btn:hover::before {
    left: 100%;
}

/* Premium Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 50%, rgba(255, 255, 255, 0.02));
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.02);
}

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

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Footer */
footer {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 100px;
    color: var(--text-dim);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Rank badge colors based on modern scheme */
.rank-vip { color: var(--vip) !important; text-shadow: 0 0 15px rgba(20, 241, 149, 0.4); }
.rank-mvp { color: var(--mvp) !important; text-shadow: 0 0 15px rgba(0, 240, 255, 0.4); }
.rank-elite { color: var(--elite) !important; text-shadow: 0 0 15px rgba(168, 85, 247, 0.4); }
.rank-immortal { color: var(--immortal) !important; text-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }

.rank-badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.badge-vip    { background: rgba(20, 241, 149, 0.1); color: var(--vip); border: 1px solid rgba(20, 241, 149, 0.3); }
.badge-mvp    { background: rgba(0, 240, 255, 0.1);  color: var(--mvp); border: 1px solid rgba(0, 240, 255, 0.3); }
.badge-elite  { background: rgba(168, 85, 247, 0.1); color: var(--elite); border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-immortal { background: rgba(245, 158, 11, 0.1); color: var(--immortal); border: 1px solid rgba(245, 158, 11, 0.3); }

/* Stats bar */
.stats-bar {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px 35px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.stat-item .stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .stats-bar {
        gap: 15px;
    }
    .stat-item {
        flex: 1 1 40%;
        padding: 15px;
    }
}
