:root {
    --primary-red: #E01E22;
    --primary-white: #FFFFFF;
    --text-dark: #1A1A1A;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --glitch-speed: 3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #F6F6F6;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    overflow-x: hidden;
    position: relative;
}

canvas#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.character-container {
    position: relative;
    max-width: 400px;
    width: 80%;
}

.character {
    width: 100%;
    height: auto;
    display: block;
    z-index: 2;
    position: relative;
}

.glow {
    display: none;
}

.title {
    font-family: 'Bungee', cursive;
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.05);
    position: relative;
}

.title::after {
    content: '$POKEMAGA';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--primary-red);
    opacity: 0.5;
    z-index: -1;
    animation: glitch var(--glitch-speed) infinite linear alternate-reverse;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.ca-container {
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
    margin-bottom: 2rem;
    max-width: 100%;
}

.price-container {
    font-family: 'Bungee', cursive;
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#tokenPrice {
    color: var(--text-dark);
}

.ca-container:hover {
    background: #eeeeee;
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.ca-label {
    font-weight: 800;
    color: var(--primary-red);
}

.ca-value {
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.buy-btn {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 6px 0px #b0181b;
}

.buy-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 0px #b0181b;
}

.buy-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0px #b0181b;
}

.burn-info {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fire-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(224, 30, 34, 0.4));
    animation: flicker 1.5s infinite alternate;
}

.burn-text {
    font-family: 'Bungee', cursive;
    color: var(--primary-red);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

@keyframes flicker {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    z-index: 100;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    body {
        overflow-y: auto;
        height: auto;
        padding: 40px 10px;
    }
    
    .hero {
        gap: 1.5rem;
    }

    .character-container {
        max-width: 300px;
    }

    .title {
        font-size: 3.2rem;
        line-height: 1;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .price-container {
        font-size: 1.1rem;
    }

    .ca-container {
        padding: 10px 15px;
        width: 100%;
        justify-content: center;
    }

    .ca-value {
        font-size: 0.65rem;
    }

    .btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
    }

    .burn-text {
        font-size: 1rem;
    }
}
