:root {
    --primary: #8a2be2;
    --accent: #ff4081;
    --bg: #000;
    --text: #fff;
    --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --glow: 0 0 20px rgba(138, 43, 226, 0.5);
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    text-align: center;
}

/* Cosmic Energy Field */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 64, 129, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    max-width: 800px;
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* NUCLEAR TITLE */
.title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3.5rem, 15vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow);
    line-height: 0.9;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.7;
}

/* SUBTITLE BEAM */
.subtitle {
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    margin: 1rem 0 2rem;
    color: rgba(255,255,255,0.7);
    position: relative;
    padding-bottom: 1.5rem;
    text-indent: 0.5em;
    animation: subtitleGlow 3s infinite alternate;
}

@keyframes subtitleGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    animation: beam 2s infinite;
}

@keyframes beam {
    0% { width: 100px; opacity: 0.7; }
    50% { width: 150px; opacity: 1; }
    100% { width: 100px; opacity: 0.7; }
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* COMET BUTTON */
.comet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    background: rgba(138, 43, 226, 0.1);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.comet-btn.secondary {
    background: rgba(255, 64, 129, 0.1);
    border-color: rgba(255, 64, 129, 0.4);
    color: var(--accent);
}

.comet-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.3), transparent);
    transition: all 0.8s ease;
}

.comet-btn.secondary::before {
    background: linear-gradient(90deg, transparent, rgba(255, 64, 129, 0.3), transparent);
}

.comet-btn:hover {
    background: rgba(138, 43, 226, 0.2);
    letter-spacing: 0.25em;
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--glow);
}

.comet-btn.secondary:hover {
    background: rgba(255, 64, 129, 0.2);
    border-color: var(--primary);
}

.comet-btn:hover::before {
    left: 100%;
}

.comet-btn i {
    margin-right: 0.8rem;
    transition: all var(--transition);
}

.comet-btn:hover i {
    transform: rotate(15deg) scale(1.1);
    color: var(--accent);
}

.comet-btn.secondary:hover i {
    color: var(--primary);
}

/* Floating particles */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .title {
        font-size: clamp(3rem, 12vw, 5rem);
    }
    
    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.3em;
        margin: 0.5rem 0 1.5rem;
        padding-bottom: 1rem;
    }
    
    .comet-btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.8rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .subtitle {
        letter-spacing: 0.2em;
    }
    
    .comet-btn {
        padding: 0.7rem 1.5rem;
    }
}
