/* Preloader */
.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 133, 0, .12), transparent 32%),
        radial-gradient(circle at 70% 40%, rgba(37, 99, 235, .14), transparent 34%),
        #f8fbff;
    transition: opacity .45s ease, visibility .45s ease;
}

.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-box {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.preloader-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 18px 34px rgba(15,23,42,.18));
    animation: preloaderPulse 1.4s ease-in-out infinite;
}

.preloader-text {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.preloader-line {
    width: 180px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e9f0;
}

.preloader-line span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8500, #2563eb, #7360f2);
    animation: preloaderLine 1s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes preloaderLine {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(260%); }
}

/* Custom cursor desktop only */
.cursor-dot,
.cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999998;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff8500;
    box-shadow: 0 0 18px rgba(255,133,0,.55);
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(37,99,235,.55);
    border-radius: 50%;
    transition: width .18s ease, height .18s ease, border-color .18s ease, background .18s ease;
}

.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor input,
.has-custom-cursor select,
.has-custom-cursor textarea {
    cursor: none;
}

.cursor-active .cursor-dot,
.cursor-active .cursor-ring {
    opacity: 1;
}

.cursor-hover .cursor-ring {
    width: 52px;
    height: 52px;
    border-color: rgba(255,133,0,.65);
    background: rgba(255,133,0,.08);
}

@media (max-width: 900px), (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    .has-custom-cursor,
    .has-custom-cursor a,
    .has-custom-cursor button,
    .has-custom-cursor input,
    .has-custom-cursor select,
    .has-custom-cursor textarea {
        cursor: auto;
    }
}
