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

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f;
    color: #eeeef4;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#helix-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#helix-container canvas {
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.overlay-panel {
    text-align: center;
    padding: 3rem 4rem;
    border-radius: 16px;
    background: rgba(10, 10, 20, 0.45);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 24px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    pointer-events: auto;
    animation: panelFadeIn 2s ease 0.5s both;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-crystal {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    animation: crystalFloat 6s ease-in-out infinite;
}

.logo-crystal svg {
    filter: drop-shadow(0 0 12px rgba(79, 124, 255, 0.4))
            drop-shadow(0 0 40px rgba(128, 96, 208, 0.2));
}

@keyframes crystalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.brand-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #eeeef4 0%, #c8c8e0 40%, #4f7cff 70%, #d4a853 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 8s ease infinite;
}

.brand-dot {
    background: linear-gradient(135deg, #4f7cff, #d4a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.tagline {
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: rgba(200, 200, 220, 0.8);
    margin-bottom: 0.5rem;
    animation: taglineFade 2.5s ease 1.2s both;
}

@keyframes taglineFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tagline-glow {
    width: 120px;
    height: 2px;
    margin: 0.8rem auto 0;
    background: linear-gradient(90deg, transparent, #4f7cff, #b050c8, #d4a853, transparent);
    background-size: 200% 100%;
    border-radius: 1px;
    animation: taglineFade 2.5s ease 1.6s both, glowSlide 4s ease-in-out infinite 2.5s;
    box-shadow: 0 0 12px rgba(79, 124, 255, 0.4), 0 0 30px rgba(176, 80, 200, 0.2);
}

@keyframes glowSlide {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* Blazor scaffolding */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

#blazor-error-ui {
    display: none;
}

@media (max-width: 600px) {
    .overlay-panel {
        padding: 2rem 2rem;
        margin: 0 1rem;
    }

    .brand-title {
        font-size: 1.8rem;
        letter-spacing: 0.15em;
    }

    .tagline {
        font-size: 1rem;
    }

    .logo-crystal svg {
        width: 48px;
        height: 48px;
    }
}
