/* ----- GLOBAL VARIABLES ----- */
:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-red: #e62429;
    --accent-red-hover: #ff3b40;
    --accent-dark-red: #8B0000;
    --accent-blue: #1d4ed8;
    
    --glow-red: rgba(230, 36, 41, 0.4);
    --glow-blue: rgba(29, 78, 216, 0.4);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ----- RESETS & BASICS ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography Classes */
h1, h2, h3, h4, .logo-text, .hero-title {
    font-family: var(--font-heading);
}

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

.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 0.5rem; }

/* Background Glow Effects */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-red) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
}

.bg-glow.left {
    top: -100px;
    left: -200px;
}

.bg-glow.right {
    top: 500px;
    right: -200px;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 60%);
    opacity: 0.2;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* ----- NAVBAR ----- */
.navbar {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.logo-icon {
    color: var(--accent-red);
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav-links li a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-red);
    background: rgba(230, 36, 41, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-dark-red));
    color: var(--text-primary);
    border: none;
    box-shadow: 0 0 15px rgba(230, 36, 41, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-red-hover), var(--accent-red));
    box-shadow: 0 0 25px rgba(230, 36, 41, 0.5);
    transform: translateY(-2px);
}

/* ----- HERO SECTION ----- */
.hero {
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
    gap: 4rem;
    min-height: calc(100vh - 80px);
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.pulse {
    width: 6px;
    height: 6px;
    background-color: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red);
    animation: pulsing 2s infinite;
}

@keyframes pulsing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 36, 41, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(230, 36, 41, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 36, 41, 0); }
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span.block {
    display: block;
}

.text-white { color: #ffffff; }

.text-gradient-grey {
    background: linear-gradient(180deg, #ffffff, #6b7280);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-red {
    background: linear-gradient(180deg, #ff7e82, var(--accent-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 450px;
    margin-bottom: 2.5rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: #e5e7eb;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.dashboard-wrapper {
    position: relative;
    border-radius: 12px;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.5));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px var(--glow-red);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.dashboard-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.dashboard-img {
    width: 100%;
    max-width: 550px;
    border-radius: 8px;
    display: block;
}

/* ----- CORE FEATURES SECTION ----- */
.core-features {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    margin: 1rem auto 0;
}

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

.feature-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0,0,0,0.5);
}

.icon-box i {
    width: 24px;
    height: 24px;
}

.red-glow i { color: #ff7e82; }
.red-glow { box-shadow: 0 0 20px rgba(230, 36, 41, 0.15); border-color: rgba(230, 36, 41, 0.3); }

.blue-glow i { color: #60a5fa; }
.blue-glow { box-shadow: 0 0 20px rgba(29, 78, 216, 0.15); border-color: rgba(29, 78, 216, 0.3); }

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

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

/* ----- HOW IT WORKS ----- */
.how-it-works {
    padding: 4rem 2rem;
    text-align: center;
}

.timeline {
    margin-top: 4rem;
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
}

.timeline-line {
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-blue) 50%, var(--accent-red) 100%);
    z-index: 1;
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.red-border {
    border: 2px solid var(--accent-red);
    color: #ff7e82;
    box-shadow: 0 0 15px rgba(230, 36, 41, 0.3);
}

.blue-border {
    border: 2px solid var(--accent-blue);
    color: #60a5fa;
    box-shadow: 0 0 15px rgba(29, 78, 216, 0.3);
}

.step h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-width: 220px;
}

/* ----- COMPETITION SECTION ----- */
.competition {
    padding: 8rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.target-icon {
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.target-icon i {
    width: 48px;
    height: 48px;
}

.competition h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.competition p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

/* ----- FOOTER ----- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    background: #000;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.brand-sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links h4, .footer-socials h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links li a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links li a:hover {
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-icon:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.social-icon i {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #4b5563;
    font-size: 0.8rem;
}

/* ----- TIER LIST SECTION ----- */
.tier-list-section {
    padding: 6rem 2rem;
}

.tier-list-container {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    margin-top: 2rem;
}

.tier-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tier-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.t-tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.t-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.t-tab.active {
    background: rgba(230, 36, 41, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.t-icon {
    width: 16px;
    height: 16px;
}

.tier-search {
    position: relative;
    display: flex;
    align-items: center;
}

.t-search-icon {
    position: absolute;
    left: 1rem;
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.tier-search input {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 250px;
    transition: border-color 0.3s;
}

.tier-search input:focus {
    outline: none;
    border-color: var(--accent-red);
}

.tier-table-header {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 1fr;
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-row {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 1fr;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    transition: transform 0.2s, background 0.2s;
}

.tier-row:hover {
    background: rgba(255,255,255,0.04);
    transform: scale(1.01);
}

.c-rank {
    display: flex;
    justify-content: center;
}

.rank-badge {
    width: 40px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    font-family: var(--font-heading);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #222;
    color: var(--text-primary);
    position: relative;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #fff;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #9ca3af, #4b5563);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #b45309, #78350f);
}

.rank-badge.normal {
    background: #1f2937;
    border: 1px solid #374151;
}

.p-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.p-avatar {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.1);
}

.p-info {
    display: flex;
    flex-direction: column;
}

.p-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.p-title {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.t-ad {
    color: #ef4444;
    font-weight: 800;
}

.t-au {
    color: #06b6d4;
    font-weight: 800;
}

.t-so {
    color: #fbbf24;
    font-weight: 800;
}

.t-ti {
    color: #a855f7;
    font-weight: 800;
}

.t-ae {
    color: #38bdf8;
    font-weight: 800;
}

.t-em {
    color: #f97316;
    font-weight: 800;
}

.t-nv {
    color: #9ca3af;
    font-weight: 800;
}

.p-pts {
    color: var(--text-secondary);
}

.r-tag {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.r-tag.na {
    background: rgba(230, 36, 41, 0.15);
    color: #ff7e82;
    border: 1px solid rgba(230, 36, 41, 0.3);
}

.r-tag.eu {
    background: rgba(29, 78, 216, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(29, 78, 216, 0.3);
}

.badges-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.mode-badge {
    width: 38px;
    height: 42px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    cursor: help;
}

.b-ht1 { background: linear-gradient(135deg, #fbbf24, #d97706); color: #000; }
.b-ht2 { background: linear-gradient(135deg, #9ca3af, #6b7280); color: #fff; }
.b-ht3 { background: linear-gradient(135deg, #d946ef, #a21caf); color: #fff; }
.b-ht4 { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.b-lt1 { background: linear-gradient(135deg, #38bdf8, #0369a1); color: #fff; }
.b-lt2 { background: linear-gradient(135deg, #4ade80, #15803d); color: #fff; }
.b-lt3 { background: linear-gradient(135deg, #cbd5e1, #64748b); color: #000; }
.b-lt4 { background: linear-gradient(135deg, #334155, #0f172a); color: #fff; }

.b-nv { background: linear-gradient(135deg, #9ca3af, #6b7280); color: #fff; }
.b-em { background: linear-gradient(135deg, #f97316, #c2410c); color: #fff; }
.b-ae { background: linear-gradient(135deg, #38bdf8, #0369a1); color: #fff; }
.b-ti { background: linear-gradient(135deg, #a855f7, #7e22ce); color: #fff; }
.b-so { background: linear-gradient(135deg, #fbbf24, #d97706); color: #000; }
.b-au { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; }
.b-ad { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }

/* Tier list body scrolling */
.tier-list-scrollable {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar */
.tier-list-scrollable::-webkit-scrollbar {
    width: 6px;
}

.tier-list-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.tier-list-scrollable::-webkit-scrollbar-thumb {
    background: rgba(230, 36, 41, 0.5);
    border-radius: 4px;
}

.tier-list-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 36, 41, 0.8);
}

/* ----- PRELOADER & PAGE TRANSITIONS ----- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    color: var(--accent-red);
    width: 48px;
    height: 48px;
    animation: spin-pulse 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    filter: drop-shadow(0 0 15px var(--accent-red));
}

@keyframes spin-pulse {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* Page entrance */
.page-wrapper {
    opacity: 0;
    transform: translateY(15px);
    animation: pageEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

body.fade-out {
    animation: fadeOutPage 0.4s ease forwards;
}

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

@keyframes fadeOutPage {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.98); }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
    }
    
    .hero-features {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .dashboard-wrapper {
        margin-top: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .timeline-line {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation - Scrollable instead of hidden */
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none; /* Hide scrollbar for a cleaner look */
    }
    
    .tier-table-header, .tier-row {
        grid-template-columns: 50px 2fr 1fr 1fr 1fr;
        font-size: 0.7rem;
        padding: 0.8rem 0.5rem;
        gap: 0.5rem;
    }
    
    .p-avatar {
        width: 32px;
        height: 32px;
    }
    
    .rank-badge {
        width: 30px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .p-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero {
        padding: 3rem 1rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    .feature-card {
        padding: 1.5rem 1rem;
    }
    .competition h2 {
        font-size: 1.8rem;
    }
    .tier-list-container {
        padding: 1rem 0.5rem;
    }
}
