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

:root {
    --bg-dark: #0b0f1a;
    --bg-mid: #12182b;
    --accent-cyan: #7dd3fc;
    --accent-purple: #c084fc;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
}

html, body {
    height: 100%;
}

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

/* Animated background shapes */
.bg-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: float 18s ease-in-out infinite;
}

.shape-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: -10%;
    left: -8%;
    animation-delay: 0s;
}

.shape-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation-delay: -6s;
}

.shape-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #60a5fa 0%, transparent 70%);
    top: 40%;
    left: 55%;
    animation-delay: -12s;
    opacity: 0.3;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
    top: 20%;
    right: 20%;
    animation-delay: -3s;
    opacity: 0.35;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -40px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 25px) scale(0.95);
    }
}

/* Subtle grid overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 520px;
}

.logo {
    margin-bottom: 1.75rem;
    display: inline-flex;
    animation: pulse-soft 4s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.04); }
}

h1 {
    font-size: clamp(2.8rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #e0f2fe 0%, var(--accent-cyan) 40%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
    line-height: 1.1;
}

.subtitle {
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.divider {
    width: 64px;
    height: 3px;
    margin: 1.75rem auto;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0.8;
}

.message {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.25rem;
}

.progress {
    width: 180px;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 40%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    animation: progress 2.8s ease-in-out infinite;
}

@keyframes progress {
    0% { transform: translateX(-100%); width: 40%; }
    50% { width: 60%; }
    100% { transform: translateX(280%); width: 40%; }
}

footer {
    position: fixed;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.6);
    font-weight: 300;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    .logo svg {
        width: 52px;
        height: 52px;
    }
}
