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

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, #60a5fa, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 1rem;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3)); }
    100% { filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.6)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #cbd5e1;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
}

.simulation-container {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
    border: 2px solid rgba(168, 85, 247, 0.3);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.controls-panel {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 1.5rem;
    margin-top: 2rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-label {
    display: block;
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #374151;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #a855f7, #ec4899);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, #10b981, #06b6d4);
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #f59e0b, #ef4444);
    color: white;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4);
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.preset-btn {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #e2e8f0;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.preset-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}

.species-card {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.species-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(31, 41, 55, 0.8);
}

.species-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    box-shadow: 0 0 15px currentColor;
}

.info-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.1);
}

.ad-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    padding: 1rem;
}

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(45deg, #a855f7, #ec4899);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
    cursor: pointer;
    animation: pulse 2s infinite;
    border: none;
    font-weight: 600;
    z-index: 1000;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stats-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.quantum-glow {
    animation: quantumPulse 2s ease-in-out infinite alternate;
}

@keyframes quantumPulse {
    0% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
    100% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.8); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .simulation-container { margin: 0 1rem; }
    .floating-cta { bottom: 1rem; right: 1rem; padding: 0.75rem 1.5rem; }
}