/* Claritick intro splash — homepage, once per session */

html.clk-splash-lock,
html.clk-splash-lock body {
    overflow: hidden;
}

html.clk-splash-skip #clk-splash {
    display: none !important;
}

.clk-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(1200px 600px at 80% -10%, #15406b 0%, transparent 55%),
                radial-gradient(900px 500px at 0% 10%, #0a2342 0%, transparent 50%),
                linear-gradient(160deg, #07172a 0%, #0a1f38 60%, #0c2747 100%);
    transition: opacity 0.65s ease, visibility 0s linear 0.65s;
}

.clk-splash.is-exit {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.clk-splash.is-hidden {
    display: none;
}

.clk-splash-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.clk-splash-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 50% 45%, rgba(0, 180, 229, 0.16), transparent 58%);
    pointer-events: none;
}

.clk-splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.clk-splash-logo-wrap {
    position: relative;
    display: inline-block;
    padding: 0 8px;
}

.clk-splash-logo-wrap::after {
    content: "";
    position: absolute;
    inset: -35% -20%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 180, 229, 0.28), transparent 68%);
    opacity: 0;
    transform: scale(0.85);
    animation: clk-splash-glow 1.1s ease-out 0.55s forwards;
    pointer-events: none;
    z-index: -1;
}

.clk-splash-logo {
    display: block;
    height: clamp(34px, 5vw, 52px);
    width: auto;
    opacity: 0;
    transform: scale(0.9);
    filter: blur(8px);
    animation: clk-splash-logo-in 0.85s cubic-bezier(0.34, 1.2, 0.64, 1) 0.15s forwards;
}

.clk-splash-line {
    width: 0;
    height: 3px;
    border-radius: 100px;
    background: linear-gradient(90deg, transparent, #00b4e5, #0087e2, #ffbe1d, transparent);
    opacity: 0;
    animation: clk-splash-line 0.9s ease-out 0.75s forwards;
}

.clk-splash.is-exit .clk-splash-content {
    animation: clk-splash-content-out 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes clk-splash-logo-in {
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes clk-splash-glow {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    45% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 0.55;
        transform: scale(1);
    }
}

@keyframes clk-splash-line {
    0% { width: 0; opacity: 0; }
    25% { opacity: 1; }
    100% { width: 200px; opacity: 0.85; }
}

@keyframes clk-splash-content-out {
    to {
        opacity: 0;
        transform: scale(1.08) translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .clk-splash-logo {
        animation: none;
        opacity: 1;
        clip-path: none;
    }

    .clk-splash-logo-wrap::after,
    .clk-splash-line {
        animation: none;
        display: none;
    }

    .clk-splash.is-exit .clk-splash-content {
        animation: none;
    }
}
