.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding-top: 18vh;
    background:
        radial-gradient(circle at 50% 38%, rgba(37, 99, 235, 0.16), transparent 34%),
        linear-gradient(145deg, #050b16 0%, #0a1630 52%, #07111f 100%);
    color: #f8fafc;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.splash-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    width: min(92vw, 780px);
    text-align: center;
    padding: 32px 20px;
}

.splash-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(37, 99, 235, 0.28));
    opacity: 0;
    transform: translateY(10px) scale(0.94);
    animation: splashReveal 0.55s ease forwards;
}

.splash-title {
    margin: 18px 0 26px;
    font-size: clamp(34px, 6vw, 58px);
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(12px);
    animation: splashReveal 0.55s 0.18s ease forwards;
}

.splash-modules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.splash-modules span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid rgba(96, 165, 250, 0.38);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    color: #dbeafe;
    font-size: clamp(11px, 2vw, 14px);
    font-weight: 750;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(12px);
}

.splash-modules span:nth-child(1) { animation: splashReveal 0.45s 0.42s ease forwards; }
.splash-modules span:nth-child(2) { animation: splashReveal 0.45s 0.62s ease forwards; }
.splash-modules span:nth-child(3) {
    border-color: rgba(52, 211, 153, 0.52);
    color: #d1fae5;
    animation: splashReveal 0.45s 0.82s ease forwards;
}

.splash-flow {
    position: relative;
    width: min(74vw, 520px);
    height: 34px;
    margin: 6px auto 0;
}

.splash-flow::before,
.splash-flow::after {
    content: "";
    position: absolute;
    top: 12px;
    width: 41%;
    height: 2px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.15), #60a5fa);
    opacity: 0;
    animation: splashLine 0.65s 1.0s ease forwards;
}

.splash-flow::before { left: 5%; transform-origin: right center; }
.splash-flow::after { right: 5%; transform: scaleX(-1); transform-origin: left center; }

.splash-flow i {
    position: absolute;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.8);
    opacity: 0;
}

.splash-flow i:nth-child(1) { left: 5%; animation: splashDotLeft 0.7s 1.08s ease forwards; }
.splash-flow i:nth-child(2) { right: 5%; animation: splashDotRight 0.7s 1.08s ease forwards; }
.splash-flow i:nth-child(3) {
    left: 50%;
    margin-left: -5px;
    background: #34d399;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.8);
    animation: splashCenter 0.35s 1.62s ease forwards;
}

.splash-motto {
    margin: 2px 0 0;
    color: #cbd5e1;
    font-size: clamp(14px, 2.3vw, 18px);
    opacity: 0;
    transform: translateY(8px);
    animation: splashReveal 0.45s 1.78s ease forwards;
}

@keyframes splashReveal {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splashLine {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}

@keyframes splashDotLeft {
    0% { opacity: 0; left: 5%; }
    20% { opacity: 1; }
    100% { opacity: 1; left: 49%; }
}

@keyframes splashDotRight {
    0% { opacity: 0; right: 5%; }
    20% { opacity: 1; }
    100% { opacity: 1; right: 49%; }
}

@keyframes splashCenter {
    from { opacity: 0; transform: scale(0.3); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
    .splash-modules {
        grid-template-columns: 1fr;
        max-width: 330px;
    }

    .splash-modules span {
        min-height: 46px;
    }

    .splash-flow {
        display: none;
    }

    .splash-motto {
        margin-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .splash-logo,
    .splash-title,
    .splash-modules span,
    .splash-motto,
    .splash-flow::before,
    .splash-flow::after,
    .splash-flow i {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}
