@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@400;700&display=swap');

:root {
    --bg-dark: #070913;
    --primary-glow: rgba(0, 198, 255, 0.15);
    --secondary-glow: rgba(0, 114, 255, 0.2);
    --accent-blue: #0072ff;
    --accent-cyan: #00c6ff;
    --text-color: #f5f6fa;
}

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

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

/* Ambient Background Glows */
.ambient-glow-1 {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(7, 9, 19, 0) 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(80px);
    animation: pulseGlow 12s infinite alternate;
}

.ambient-glow-2 {
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(7, 9, 19, 0) 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(100px);
    animation: pulseGlow 16s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    100% { transform: scale(1.2) translate(30px, -30px); opacity: 1; }
}

/* Canvas Background for 3D Covers & Particles */
#introCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: auto;
}

/* Center Interactive Glassmorphism Panel */
.center-panel {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 60px;
    background: rgba(11, 14, 30, 0.45);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 90%;
    width: 650px;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    animation: slideInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.center-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(0, 198, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@keyframes slideInUp {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Title Gradient with Elegant Neon Stroke and Glow */
.app-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #dcdde1 30%, var(--accent-cyan) 70%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    filter: drop-shadow(0 4px 12px rgba(0, 198, 255, 0.2));
    animation: shineText 6s linear infinite;
    letter-spacing: -1.5px;
}

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

.app-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(245, 246, 250, 0.7);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

/* Premium Pulsating Enter Call to Action */
.enter-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-decoration: none;
    z-index: 11;
}

.enter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.enter-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(0, 198, 255, 0.6),
                0 0 10px rgba(0, 114, 255, 0.4);
}

.enter-button:hover::before {
    left: 100%;
}

.enter-button:active {
    transform: scale(0.98);
}

/* Visual cue for transition */
.page-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #070913;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.page-fade-overlay.fade-out {
    opacity: 1;
    pointer-events: auto;
}

/* Responsiveness */
@media (max-width: 768px) {
    .center-panel {
        padding: 30px 25px;
        width: 90%;
    }
    
    .app-title {
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }
    
    .app-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .enter-button {
        padding: 14px 36px;
        font-size: 0.95rem;
    }
}
