html {
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #090615;
    --bg-card: #130f26;
    --primary-purple: #9d4edd;
    --primary-gradient: linear-gradient(135deg, #bc4ec6 0%, #7209b7 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-radius-lg: 28px;
    --border-radius-sm: 50px;
    --transition: all 0.3s ease;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    background: rgba(19, 15, 38, 0.6);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(157, 78, 221, 0.15);
}

.logo {
    font-size: 30px;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

    .nav-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
    }

        .nav-links a:hover {
            color: var(--primary-purple);
        }

.btn-discord {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(188, 78, 198, 0.3);
}

    .btn-discord:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(188, 78, 198, 0.5);
    }

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: var(--primary-purple);
    padding: 6px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

    .hero h1 span {
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 650px;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 8% 80px 8%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(157, 78, 221, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .feature-card:hover {
        transform: translateY(-5px);
        border-color: rgba(157, 78, 221, 0.3);
        box-shadow: 0 10px 30px rgba(114, 9, 183, 0.15);
    }

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.toast {
    background: var(--bg-card);
    border-left: 5px solid var(--primary-purple);
    color: var(--text-main);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

    .toast.show {
        transform: translateX(0);
        opacity: 1;
    }

.battle-pass-section {
    padding: 60px 8%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.bp-header {
    text-align: center;
    margin-bottom: 50px;
}

    .bp-header h2 {
        font-size: 36px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .bp-header p {
        color: var(--text-muted);
        font-size: 16px;
    }

.bp-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

    .bp-timeline::before {
        content: '';
        position: absolute;
        left: 50px;
        top: 0;
        bottom: 0;
        width: 4px;
        background: rgba(157, 78, 221, 0.2);
        border-radius: 2px;
    }

.bp-tier {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.bp-level {
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    border: 2px solid var(--primary-purple);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
    flex-shrink: 0;
}

    .bp-level span {
        font-size: 12px;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
    }

.bp-rewards {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    width: 100%;
}

.bp-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

    .bp-card.free:hover {
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-3px);
    }

    .bp-card.premium {
        background: linear-gradient(145deg, rgba(157, 78, 221, 0.1) 0%, rgba(19, 15, 38, 1) 100%);
        border: 1px solid rgba(157, 78, 221, 0.4);
        position: relative;
        overflow: hidden;
    }

        .bp-card.premium::before {
            content: 'PREMƯUM';
            position: absolute;
            top: 0;
            right: 0;
            background: var(--primary-gradient);
            font-size: 10px;
            padding: 4px 12px;
            font-weight: 800;
            border-bottom-left-radius: 12px;
            letter-spacing: 1px;
        }

        .bp-card.premium:hover {
            box-shadow: 0 8px 25px rgba(157, 78, 221, 0.25);
            transform: translateY(-3px);
        }

.reward-icon {
    font-size: 32px;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.bp-card.premium .reward-icon {
    background: rgba(157, 78, 221, 0.2);
}

.reward-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.reward-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.system-summary {
    background: rgba(19, 15, 38, 0.8);
    border-top: 1px solid rgba(157, 78, 221, 0.2);
    padding: 50px 8%;
    margin-top: 50px;
    text-align: center;
}

.summary-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.summary-item {
    flex: 1;
    min-width: 250px;
}

    .summary-item h4 {
        color: var(--primary-purple);
        font-size: 18px;
        margin-bottom: 10px;
    }

    .summary-item p {
        color: var(--text-muted);
        font-size: 14px;
        line-height: 1.6;
    }

.market-showcase {
    padding: 80px 8%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.market-header {
    text-align: center;
    margin-bottom: 50px;
}

    .market-header h2 {
        font-size: 36px;
        font-weight: 800;
        margin-bottom: 10px;
    }

        .market-header h2 span {
            color: var(--primary-purple);
        }

    .market-header p {
        color: var(--text-muted);
        font-size: 16px;
        max-width: 600px;
        margin: 0 auto;
    }

.market-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.market-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 30px 20px;
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .market-card:hover {
        transform: translateY(-8px);
        border-color: rgba(157, 78, 221, 0.4);
        box-shadow: 0 15px 35px rgba(114, 9, 183, 0.2);
    }

    .market-card.legendary {
        background: linear-gradient(180deg, rgba(157, 78, 221, 0.1) 0%, var(--bg-card) 100%);
        border: 1px solid rgba(157, 78, 221, 0.5);
        box-shadow: 0 0 20px rgba(157, 78, 221, 0.15);
    }

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.market-card.legendary .stock-badge {
    background: var(--primary-gradient);
    color: white;
}

.item-visual {
    font-size: 64px;
    margin-top: 20px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
    transition: var(--transition);
}

.market-card:hover .item-visual {
    transform: scale(1.1) rotate(-5deg);
}

.market-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.price-tag {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 800;
    font-size: 16px;
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.2);
    margin-bottom: 20px;
    width: 100%;
    margin-top: auto;
}

.btn-inspect {
    background: transparent;
    border: 1px solid rgba(157, 78, 221, 0.5);
    color: var(--text-main);
    padding: 10px 0;
    width: 100%;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.market-card:hover .btn-inspect {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

@media (max-width: 992px) {
    header {
        padding: 20px 5%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .features, .market-showcase, .battle-pass-section, .system-summary {
        padding: 60px 5%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column; 
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .btn-discord {
        width: 100%; 
        justify-content: center;
    }

    .hero {
        padding: 40px 20px;
    }

        .hero h1 {
            font-size: 32px; 
        }

        .hero p {
            font-size: 15px;
        }

    .features {
        gap: 20px;
    }

    .market-card {
        width: 100%; 
        max-width: 350px;
    }

    .bp-timeline::before {
        display: none; 
    }

    .bp-tier {
        flex-direction: column; 
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .bp-rewards {
        flex-direction: column; 
        width: 100%;
    }

    .summary-grid {
        flex-direction: column;
        gap: 30px;
    }
}

.bp-timeline.is-collapsed .bp-tier:nth-child(n+11) {
    display: none;
}

.bp-timeline.is-collapsed .bp-tier:nth-child(8) {
    opacity: 0.65;
}

.bp-timeline.is-collapsed .bp-tier:nth-child(9) {
    opacity: 0.35;
}

.bp-timeline.is-collapsed .bp-tier:nth-child(10) {
    opacity: 0.12;
}

.bp-tier {
    transition: opacity 0.4s ease;
}

.bp-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 35px;
    position: relative;
    z-index: 5;
}

.btn-bp-toggle {
    background: var(--bg-card);
    border: 1px solid var(--primary-purple);
    color: var(--text-main);
    padding: 14px 34px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 25px rgba(157, 78, 221, 0.25);
    letter-spacing: 1px;
}

    .btn-bp-toggle:hover {
        background: var(--primary-gradient);
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(157, 78, 221, 0.45);
    }
