/* CSI Preloader — minimal, professional splash screen */
.csi-preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.csi-preloader.csi-preloader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.csi-preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    width: min(520px, 90vw);
    text-align: center;
}

.csi-preloader__logo {
    max-width: 240px;
    max-height: 120px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.csi-preloader__brand {
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 2.4vw, 22px);
    letter-spacing: 0.2px;
    color: #0969C0;
    line-height: 1.2;
}

.csi-preloader__bar {
    width: 100%;
    height: 4px;
    background: rgba(9, 105, 192, 0.12);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-top: 28px;
}

.csi-preloader__bar-fill {
    width: 0%;
    height: 100%;
    background: #0969C0;
    border-radius: 999px;
    transition: width 0.2s ease-out;
}

.csi-preloader__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid #0969C0;
    background: transparent;
    color: #0969C0;
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}
.csi-preloader__close:hover { opacity: 0.85; }

html.csi-preloader-active,
body.csi-preloader-active {
    overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
    .csi-preloader,
    .csi-preloader__bar-fill {
        transition: none;
    }
}
