/* === VARIABLES === */
:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --bg-dark: #0e0e16;
    --accent: #f0b232;
    --accent-hover: #ffcc44;
    --accent-glow: rgba(240, 178, 50, 0.3);
    --red: #e74c3c;
    --green: #2ecc71;
    --blue: #3498db;
    --purple: #9b59b6;
    --text: #e8e8f0;
    --text-dim: #8888aa;
    --border: #222233;
    --radius: 14px;
    --font: "Inter", system-ui, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* === UTILITY === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--accent); }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    padding: 10px 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.4rem; }
.logo-icon { font-size: 1.6rem; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001; }
.burger span { display: block; width: 26px; height: 2px; background: var(--text); transition: 0.3s; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    padding: 120px 20px 60px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.75);
    z-index: 0;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.particle {
    position: absolute;
    bottom: -10px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleUp linear infinite;
}
@keyframes particleUp {
    0% { opacity: 0; transform: translateY(0); }
    10% { opacity: 0.7; }
    90% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-100vh); }
}
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}
.hero-subtitle { font-size: 1.15rem; color: var(--text-dim); max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--accent-glow);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Hero stats */
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2.2rem; font-weight: 900; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; display: block; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.8rem;
    animation: bounce 2s ease infinite;
}
.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    position: relative;
}
.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease infinite;
}
@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* === SECTIONS === */
.section { padding: 100px 0; scroll-margin-top: 70px; }
.section-dark { background: var(--bg-dark); }
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 12px;
}
.section-desc {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* === ABOUT === */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 40px rgba(240, 178, 50, 0.1);
}
.about-icon { font-size: 2.6rem; margin-bottom: 16px; }
.about-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.about-card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* === TOURNAMENTS === */
.tournaments-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(240, 178, 50, 0.08);
}
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.tournament-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}
.tournament-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-dim);
}
.tournament-badge {
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-major { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.badge-premier { background: rgba(240, 178, 50, 0.15); color: var(--accent); }
.badge-regional { background: rgba(52, 152, 219, 0.15); color: var(--blue); }
.tournament-body { padding: 20px; }
.tournament-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.tournament-info {
    display: flex;
    gap: 20px;
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 16px;
}
.tournament-prize {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
}

/* === SKINS === */
.skins-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.category-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}
.category-btn.active, .category-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(240, 178, 50, 0.08);
}
.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.skin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.skin-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(240, 178, 50, 0.12);
}
.skin-emoji { font-size: 3rem; margin-bottom: 14px; }
.skin-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.skin-rarity {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rarity-consumer { background: rgba(176,176,176,0.2); color: #b0b0b0; }
.rarity-industrial { background: rgba(100,149,237,0.2); color: #6495ed; }
.rarity-milspec { background: rgba(52,152,219,0.2); color: #3498db; }
.rarity-restricted { background: rgba(155,89,182,0.2); color: #9b59b6; }
.rarity-classified { background: rgba(231,76,60,0.2); color: #e74c3c; }
.rarity-covert { background: rgba(240,178,50,0.2); color: var(--accent); }
.rarity-contraband { background: rgba(120,180,100,0.2); color: #78b464; }
.skin-price { font-size: 1.3rem; font-weight: 900; color: var(--accent); margin-top: 14px; }

/* Price stats */
.price-stats { text-align: center; }
.price-stats h3 { font-size: 1.4rem; margin-bottom: 30px; }
.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    transition: transform 0.3s, border-color 0.3s;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.price-icon { font-size: 2rem; margin-bottom: 10px; }
.price-name { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 8px; }
.price-value { font-size: 1.3rem; font-weight: 900; color: var(--accent); }

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 460px;
    width: 100%;
    padding: 40px 32px;
    position: relative;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.modal-close:hover { color: var(--text); }
.modal-skin-emoji { font-size: 4rem; text-align: center; margin-bottom: 12px; }
.modal-skin-name { font-size: 1.4rem; font-weight: 900; text-align: center; margin-bottom: 4px; }
.modal-skin-collection { text-align: center; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 12px; }
.modal-skin-price { text-align: center; font-size: 2rem; font-weight: 900; color: var(--accent); margin-bottom: 24px; }
.modal-skin-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-detail {
    background: rgba(255,255,255,0.03);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.modal-detail-label { display: block; font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.modal-detail-value { font-weight: 700; font-size: 0.95rem; }

/* === MAPS === */
.maps-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.map-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}
.map-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.map-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, rgba(240,178,50,0.05), rgba(240,178,50,0.02));
}
.map-info { padding: 20px; }
.map-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.map-desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.map-stats { display: flex; gap: 24px; }
.map-stat { text-align: center; }
.map-stat-value { display: block; font-weight: 700; font-size: 0.95rem; color: var(--accent); }
.map-stat-label { font-size: 0.75rem; color: var(--text-dim); }

/* === PROS === */
.pros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.pro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.pro-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.pro-avatar { font-size: 2.8rem; margin-bottom: 10px; }
.pro-name { font-size: 1.2rem; font-weight: 900; margin-bottom: 4px; }
.pro-team { color: var(--accent); font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.pro-role { color: var(--text-dim); font-size: 0.82rem; margin-bottom: 16px; }
.pro-stats { display: flex; justify-content: center; gap: 32px; }
.pro-stat { text-align: center; }
.pro-stat-value { display: block; font-size: 1.2rem; font-weight: 900; }
.pro-stat-label { font-size: 0.75rem; color: var(--text-dim); }

/* === FOOTER === */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 14px; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-weight: 700; margin-bottom: 4px; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        transition: right 0.3s;
        box-shadow: -4px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    .burger { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.6rem; }
    .about-grid { grid-template-columns: 1fr; }
    .tournaments-grid { grid-template-columns: 1fr; }
    .skins-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .maps-showcase { grid-template-columns: 1fr; }
    .pros-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .footer-content { grid-template-columns: 1fr; }
    .price-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-title { font-size: 2rem; }
    .section { padding: 60px 0; }
}