:root {
    --bg: #0B0B0B;
    --bg-alt: #121212;
    --card: #1E1E1E;
    --muted: #A8A8A8;
    --brand: #E10600;
    --brand-dark: #B30000;
    --glow: rgba(225, 16, 0, 0.25);
    --radius: 12px;
}

body.light {
    --bg: #f4f4f4;
    --bg-alt: #fff;
    --card: #eaeaea;
    --muted: #333;
    color: #000;
}

.site-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

/* Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Outfit", sans-serif;
    background: var(--bg);
    color: #fff;
    overflow-x: hidden;
    transition: background .4s, color .4s;
}

/* Navbar */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    z-index: 1000;
    transition: background .3s, box-shadow .3s;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 2px 20px rgba(255, 0, 0, 0.25);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 6px 30px var(--glow);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
    transition: .3s;
}

.nav-links a:hover {
    color: var(--brand);
}

.cta-btn {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.cta-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-3px);
}

.toggle-theme {
    background: none;
    border: 1px solid var(--muted);
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: .3s;
}

.toggle-theme:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--muted);
}

@media(max-width:800px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-alt);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* Wrapper */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

/* Hero */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    padding-top: 40px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.hero p {
    color: var(--muted);
    margin-bottom: 18px;
    max-width: 500px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.hero-visual img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(225, 0, 0, 0.3);
}

/* Sections */
.section {
    margin-top: 70px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    transition: transform .3s, box-shadow .3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px var(--glow);
}

.player {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-dark);
}

.tag {
    background: rgba(225, 16, 0, 0.1);
    color: var(--brand);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* Schedule */
.matches {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
}

.matches th,
.matches td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.matches th {
    color: var(--brand);
}

.match-win {
    color: var(--brand-dark);
    font-weight: 700;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Fade Animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive hero text */
@media(max-width:600px) {
    .hero h1 {
        font-size: 2rem;
    }
}