/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6B46C1;
    --secondary: #9333EA;
    --accent: #FFD700;
    --dark: #1A1A2E;
    --darker: #0F0F1E;
    --light: #F5F5F5;
    --text: #E4E4E7;
    --gradient: linear-gradient(135deg, #6B46C1 0%, #9333EA 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--darker);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Particle Background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#particles::before,
#particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

#particles::before {
    left: 10%;
    animation-delay: 0s;
}

#particles::after {
    left: 90%;
    animation-delay: 10s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.cta-button {
    background: var(--gradient);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.3);
    color: white !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.animated-text {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(228, 228, 231, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.primary-button,
.secondary-button {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.primary-button {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(107, 70, 193, 0.4);
}

.secondary-button {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.secondary-button:hover {
    background: var(--primary);
    color: white;
}

/* Character Preview */
.character-preview {
    position: relative;
    height: 250px;
    margin-top: 60px;
}

.avatar,
.monster {
    position: absolute;
    font-size: 80px;
    top: 50%;
    transform: translateY(-50%);
}

.avatar {
    left: 25%;
}

.monster {
    right: 25%;
}

.vs-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: 800;
    color: var(--accent);
}

.health-bar {
    position: absolute;
    top: 20%;
    left: 20%;
    font-size: 16px;
    color: #4ECDC4;
    font-weight: 600;
}

.level-badge {
    position: absolute;
    bottom: 30%;
    left: 23%;
    font-size: 14px;
    background: var(--gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.monster-damage {
    position: absolute;
    top: 20%;
    right: 28%;
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    opacity: 0;
    animation: monsterDamageFloat 2s infinite 0.5s;
}

@keyframes monsterDamageFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
        transform: translateY(-30px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

.shake {
    animation: shake 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-60%);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    25% {
        transform: translateY(-50%) translateX(-5px);
    }
    75% {
        transform: translateY(-50%) translateX(5px);
    }
}

.damage-number {
    position: absolute;
    top: 20%;
    right: 35%;
    font-size: 24px;
    font-weight: bold;
    color: #FF6B6B;
    opacity: 0;
    animation: damageFloat 2s infinite;
}

.coin-reward {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
    color: var(--accent);
    opacity: 0;
    animation: coinFloat 2s infinite 1s;
}

@keyframes damageFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
        transform: translateY(-30px);
    }
}

@keyframes coinFloat {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* How It Works */
.how-it-works {
    background: var(--dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step-card {
    background: rgba(107, 70, 193, 0.1);
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(107, 70, 193, 0.2);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.step-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--accent);
}

/* Stats Section */
.stats {
    background: var(--dark);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(228, 228, 231, 0.8);
}

/* Download Section */
.download {
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
}

.download-subtitle {
    font-size: 1.25rem;
    color: rgba(228, 228, 231, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.store-button img {
    height: 50px;
    transition: transform 0.3s ease;
}

.store-button:hover img {
    transform: scale(1.05);
}

.coming-soon {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--darker);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-top: 15px;
    font-size: 14px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .character-preview {
        display: none;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}
