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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(45deg, #0a0a0a, #1a0a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: #fff;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.neon-glow {
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 15px #00ffff,
        0 0 25px #00ffff;
}

.purple-neon {
    text-shadow: 
        0 0 5px #ff00ff,
        0 0 10px #ff00ff,
        0 0 15px #ff00ff,
        0 0 25px #ff00ff;
}

.green-neon {
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 15px #00ff00,
        0 0 25px #00ff00;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.logo {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    flex-shrink: 0;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.nav-btn, .download-btn {
    padding: 8px 16px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 20px;
    color: #000;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    white-space: nowrap;
    min-width: fit-content;
}

.nav-btn:hover, .download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

.download-btn-hero {
    position: relative;
    padding: clamp(12px, 3vw, 20px) clamp(25px, 6vw, 50px);
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff00);
    background-size: 300% 300%;
    border: none;
    border-radius: 30px;
    color: #000;
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    animation: gradientMove 3s ease infinite;
    z-index: 1;
    max-width: 90%;
    text-align: center;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.download-text {
    position: relative;
    z-index: 3;
}

.download-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: waveExpand 2s ease-out infinite;
}

.wave1 { animation-delay: 0s; }
.wave2 { animation-delay: 0.7s; }
.wave3 { animation-delay: 1.4s; }

@keyframes waveExpand {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 200px; height: 200px; opacity: 0; }
}

.download-btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.7);
}

.download-btn-hero:active {
    transform: scale(1.02);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 80px 20px 40px;
    width: 100%;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 255, 0, 0.1) 0%, transparent 50%);
    animation: floatCircles 10s ease-in-out infinite;
}

@keyframes floatCircles {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-10px, -20px) rotate(120deg); }
    66% { transform: translate(10px, -10px) rotate(240deg); }
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 20px;
    animation: neonFlicker 3s infinite alternate;
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
}

@keyframes neonFlicker {
    0%, 100% { 
        text-shadow: 
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff,
            0 0 25px #00ffff;
    }
    50% { 
        text-shadow: 
            0 0 2px #00ffff,
            0 0 5px #00ffff,
            0 0 8px #00ffff,
            0 0 15px #00ffff;
    }
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 30px;
    max-width: min(90%, 600px);
    line-height: 1.5;
}

.subtitle {
    font-size: clamp(1.3rem, 4vw, 2rem);
    margin-bottom: 20px;
    line-height: 1.3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 90%), 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.feature-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff00, #ffff00);
    border-radius: 15px;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.feature-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.4;
}

.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    text-align: center;
    margin-bottom: 40px;
    animation: slideUp 1s ease-out;
    line-height: 1.2;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-section {
    background: rgba(0, 0, 0, 0.9);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.system-requirements {
    margin-top: 30px;
    opacity: 0.8;
    font-size: clamp(0.8rem, 2vw, 1rem);
    max-width: 100%;
    word-wrap: break-word;
}

footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ffff;
    border-radius: 50%;
    animation: float 15s linear infinite;
    box-shadow: 0 0 5px #00ffff;
}

@keyframes float {
    0% { 
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-50px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }
    
    header {
        padding: 12px 15px;
    }
    
    .nav-buttons {
        gap: 8px;
    }
    
    .nav-btn, .download-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 70px 15px 30px;
        min-height: calc(100vh - 60px);
    }
    
    .section {
        padding: 40px 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .download-section {
        padding: 40px 15px;
    }
    
    footer {
        padding: 30px 15px;
    }
    
    .particle {
        display: none;
    }
    
    .feature-card::before {
        animation: none;
    }
}

@media (max-width: 480px) {
    .nav-buttons {
        gap: 5px;
        justify-content: flex-end;
    }
    
    .nav-btn, .download-btn {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .hero {
        padding: 60px 10px 20px;
    }
    
    .section {
        padding: 30px 10px;
    }
    
    .features-grid {
        padding: 10px;
    }
    
    .feature-card {
        padding: 15px 10px;
    }
    
    .download-section, footer {
        padding: 30px 10px;
    }
}