/* CSS Variables (Extracted from App Base Colors) */
:root {
    --color-bg: #111222;
    /* primary-900 */
    --color-surface: rgba(28, 30, 58, 0.4);
    /* primary-700 translucent */
    --color-primary: #fd6b38;
    /* app secondary */
    --color-secondary: #fe406f;
    /* app tertiary */
    --color-text-main: #ffffff;
    --color-text-muted: #9c9daf;
    /* primary-200 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    perspective: 1000px;
}

/* Animated Colorful Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: drift 15s infinite alternate ease-in-out;
}

.blob-1 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -15vw;
    left: -15vw;
}

.blob-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    bottom: -10vw;
    right: -10vw;
    animation-delay: -5s;
    animation-duration: 18s;
}

.blob-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #535574 0%, transparent 70%);
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
    animation-duration: 20s;
    opacity: 0.3;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(8vw, 6vw) scale(1.1) rotate(10deg);
    }
}

/* Main Content Container with Glassmorphism */
.glass-container {
    position: relative;
    z-index: 10;
    background: var(--color-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 3.5rem 4rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(255, 255, 255, 0.02);
    max-width: 600px;
    width: 90%;
    text-align: center;
    transform: translateY(40px);
    opacity: 0;
    animation: appear 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-style: preserve-3d;
    transition: transform 0.1s;
}

@keyframes appear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo Animation */
.logo-wrapper {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Subtle glow behind the logo */
.logo-wrapper::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(10px);
    z-index: -1;
    animation: pulse-glow 4s infinite alternate;
}

.logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(253, 107, 56, 0.2));
    animation: floatLogo 6s ease-in-out infinite;
    transform: translateZ(30px);
    /* 3D effect pop out */
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0) translateZ(30px);
    }

    50% {
        transform: translateY(-12px) translateZ(30px);
    }
}

/* Typography */
.title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #ffffff 30%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
    transform: translateZ(20px);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2.8rem;
    font-weight: 400;
    transform: translateZ(10px);
}

/* Animated Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 20px;
    position: relative;
    animation: scan 3s infinite ease-in-out;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shine 1.5s infinite linear;
}

@keyframes scan {
    0% {
        width: 10%;
        transform: translateX(-100%);
    }

    50% {
        width: 50%;
        transform: translateX(50%);
    }

    100% {
        width: 10%;
        transform: translateX(500%);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.status-text {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 0.6;
        text-shadow: 0 0 5px transparent;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(254, 64, 111, 0.6);
    }
}

/* Particles Container */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .glass-container {
        padding: 2.5rem 1.5rem;
        margin: 0 15px;
    }

    .title {
        font-size: 2.4rem;
    }

    .logo {
        max-width: 160px;
    }
}