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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* Cosmic Void Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at center, #0a0015 0%, #000000 70%);
    overflow: hidden;
}

/* Floating particles/stars */
.bg-animation::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 75%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: stars 60s linear infinite;
    opacity: 0.5;
}

@keyframes stars {
    from { background-position: 0% 0%; }
    to { background-position: 100% 100%; }
}

/* Void portals/orbs */
.void-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float-void 25s ease-in-out infinite;
}

.void-orb1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 51, 153, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.void-orb2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 20, 60, 0.5) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: -8s;
}

.void-orb3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(75, 0, 130, 0.3) 0%, transparent 70%);
    bottom: 15%;
    left: 40%;
    animation-delay: -15s;
}

@keyframes float-void {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(80px, -100px) scale(1.15);
    }
    66% {
        transform: translate(-60px, 80px) scale(0.9);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 0, 21, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(102, 51, 153, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 50%, #e0aaff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.5);
}

.login-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #7209b7 0%, #9d4edd 100%);
    border: 1px solid rgba(157, 78, 221, 0.5);
    border-radius: 25px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(114, 9, 183, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.6);
    border-color: #c77dff;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

h1 {
    font-size: 82px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 50%, #e0aaff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(157, 78, 221, 0.5));
    animation: pulse-glow 4s ease-in-out infinite;
    letter-spacing: 3px;
}

@keyframes pulse-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 30px rgba(157, 78, 221, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 50px rgba(157, 78, 221, 0.8));
    }
}

.tagline {
    font-size: 26px;
    color: #c77dff;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 0 20px rgba(199, 125, 255, 0.4);
    font-weight: 300;
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    padding: 18px 45px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background: linear-gradient(135deg, #7209b7 0%, #9d4edd 100%);
    border: 1px solid rgba(157, 78, 221, 0.5);
    color: #fff;
    box-shadow: 0 6px 20px rgba(114, 9, 183, 0.4);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(157, 78, 221, 0.6);
}

.cta-secondary {
    background: transparent;
    border: 2px solid #9d4edd;
    color: #c77dff;
}

.cta-secondary:hover {
    background: rgba(157, 78, 221, 0.15);
    transform: translateY(-3px);
    border-color: #c77dff;
}

/* Features Section */
.features {
    position: relative;
    padding: 100px 50px;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(10, 0, 21, 0.6);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #9d4edd;
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.3);
    background: rgba(10, 0, 21, 0.8);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.5));
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #c77dff;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

/* Stats Section */
.stats {
    position: relative;
    padding: 80px 50px;
    text-align: center;
    background: rgba(10, 0, 21, 0.4);
    border-top: 1px solid rgba(157, 78, 221, 0.3);
    border-bottom: 1px solid rgba(157, 78, 221, 0.3);
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item h2 {
    font-size: 52px;
    color: #9d4edd;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

/* Footer */
footer {
    position: relative;
    padding: 40px 50px;
    text-align: center;
    border-top: 1px solid rgba(157, 78, 221, 0.3);
    z-index: 1;
    background: rgba(10, 0, 21, 0.5);
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #9d4edd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #c77dff;
    text-shadow: 0 0 10px rgba(199, 125, 255, 0.5);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Loading Screen */
.loading-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-screen.active {
    display: flex;
}

.loading-content {
    text-align: center;
}

.loading-title {
    font-size: 36px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    filter: drop-shadow(0 0 20px rgba(157, 78, 221, 0.6));
}

.progress-bar-container {
    width: 400px;
    height: 8px;
    background: rgba(157, 78, 221, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7209b7 0%, #9d4edd 50%, #c77dff 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 25px rgba(157, 78, 221, 0.8);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-text {
    margin-top: 20px;
    color: #9d4edd;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

/* Modal */
.modal {
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 0, 21, 0.95) 0%, rgba(20, 0, 40, 0.95) 100%);
    border: 1px solid rgba(157, 78, 221, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 52px;
    }

    .tagline {
        font-size: 20px;
    }

    nav {
        padding: 15px 20px;
    }

    .features, .stats {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .progress-bar-container {
        width: 300px;
    }
}