@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap");

#digipropLoader,
#digipropLoader * {
    box-sizing: border-box;
}

/* ================================
   DIGIPROP LOADER CONTAINER
================================ */

.dp-stage {
    width: 100%;
    min-height: 100vh;
    height: 100%;
    border-radius: 0;
    background: #030405;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 20px;
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

/* The production viewer supplies the full-screen overlay. Keep the
   compatibility progress widget in the DOM, but out of the visual layer. */
#digipropLoader {
    position: fixed;
    inset: 0;
    z-index: 999998;
}

.loading > .progress {
    opacity: 1;
    pointer-events: auto;
    z-index: 1000000;
}

.loading > .progress-circle {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 540px) {
    .dp-stage {
        min-height: 100vh;
        padding: 34px 14px;
        border-radius: 0;
    }
}

.dp-ambient {
    position: absolute;
    width: 500px;
    height: 440px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(33, 126, 231, 0.13),
            rgba(33, 126, 231, 0.025) 46%,
            transparent 72%
        );
    filter: blur(30px);
    animation: dpAmbientPulse 3.2s ease-in-out infinite;
    pointer-events: none;
}

/* ================================
   EXACT STATIC LOGO
================================ */

.dp-logo-wrap {
    position: relative;
    z-index: 2;
    width: min(76vw, 325px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.dp-logo {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 16px rgba(33, 126, 231, 0.07));
}

/* ================================
   ANIMATED WORDMARK
================================ */

.dp-brand {
    position: relative;
    z-index: 2;
    margin-top: 25px;
    text-align: center;
    font-family: "Montserrat", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
}

.dp-brand-name {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 800;
    line-height: 0.93;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.dp-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    filter: blur(7px);
    animation: dpCharIn 0.42s cubic-bezier(.2,.8,.25,1) forwards;
}

.dp-char:nth-child(1) { animation-delay: .12s; }
.dp-char:nth-child(2) { animation-delay: .19s; }
.dp-char:nth-child(3) { animation-delay: .26s; }
.dp-char:nth-child(4) { animation-delay: .33s; }
.dp-char:nth-child(5) { animation-delay: .40s; }
.dp-char:nth-child(6) { animation-delay: .47s; }
.dp-char:nth-child(7) { animation-delay: .54s; }
.dp-char:nth-child(8) { animation-delay: .61s; }

.dp-iwrap {
    position: relative;
    display: inline-block;
}

.dp-idot {
    position: absolute;
    width: .40em;
    height: .40em;
    border-radius: 50%;
    background: #217ee7;
    left: 50%;
    top: -.43em;
    opacity: 0;
    transform: translate(-50%, -34px) scale(.4);
    animation:
        dpIDrop .62s cubic-bezier(.18,1.35,.42,1)
        forwards .72s;
    box-shadow: 0 0 0 rgba(33,126,231,0);
}

.dp-tagline {
    margin-top: 12px;
    font-size: clamp(14px, 2vw, 21px);
    font-family: "Montserrat", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: .01em;
    color: rgba(255,255,255,.91);
    opacity: 0;
    transform: translateY(11px);
    animation: dpFadeUp .48s ease forwards .98s;
}

/* ================================
   LOADING UI
================================ */

.dp-loader-ui {
    position: relative;
    z-index: 2;
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    animation: dpFadeUp .48s ease forwards 1.15s;
}

.dp-percent {
    display: flex;
    align-items: baseline;
    font-size: 43px;
    font-weight: 300;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

.dp-percent small {
    font-size: 13px;
    margin-left: 5px;
    color: rgba(255,255,255,.38);
}

.dp-status {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dp-status-text {
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.60);
}

.dp-dots {
    display: flex;
    gap: 5px;
}

.dp-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #217ee7;
    animation: dpDotBounce 1s ease-in-out infinite;
}

.dp-dot:nth-child(2) { animation-delay: .16s; }
.dp-dot:nth-child(3) { animation-delay: .32s; }

.dp-sub {
    margin-top: 9px;
    font-size: 13px;
    color: rgba(255,255,255,.33);
    text-align: center;
    min-height: 20px;
}

.dp-track {
    width: 250px;
    height: 2px;
    margin-top: 24px;
    background: rgba(255,255,255,.09);
    border-radius: 999px;
    overflow: hidden;
}

.dp-fill {
    height: 100%;
    width: 0;
    background: #217ee7;
    box-shadow: 0 0 17px rgba(33,126,231,.55);
    transition: width .42s cubic-bezier(.2,.8,.2,1);
}

.dp-ready-mark {
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #217ee7;
    opacity: 0;
    transform: translateY(7px);
    transition:
        opacity .4s ease,
        transform .4s ease;
}

.dp-ready-mark.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   DEMO BUTTON
================================ */

.dp-demo-controls {
    display: flex;
    justify-content: center;
    padding-top: 14px;
}

.dp-demo-controls button {
    min-height: 42px;
    padding: 0 17px;
    border-radius: 10px;
    border: 1px solid #d7d7d7;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.dp-demo-controls button:focus {
    outline: 2px solid #217ee7;
    outline-offset: 2px;
}

/* ================================
   STATES
================================ */

.dp-stage.is-complete .dp-dots {
    display: none;
}

/* Optional transition before removing loader */
.dp-stage.is-hiding {
    opacity: 0;
    transition: opacity 500ms ease;
}

/* ================================
   ANIMATIONS
================================ */

@keyframes dpCharIn {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes dpIDrop {
    0% {
        opacity: 0;
        transform: translate(-50%, -34px) scale(.4);
    }

    62% {
        opacity: 1;
        transform: translate(-50%, 5px) scale(1.12);
    }

    82% {
        transform: translate(-50%, -2px) scale(.96);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
        box-shadow: 0 0 25px rgba(33,126,231,.38);
    }
}

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

@keyframes dpDotBounce {
    0%,
    100% {
        opacity: .3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

@keyframes dpAmbientPulse {
    0%,
    100% {
        opacity: .42;
        transform: scale(.96);
    }

    50% {
        opacity: 1;
        transform: scale(1.045);
    }
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 540px) {
    .dp-stage {
        min-height: 560px;
        padding: 34px 14px;
        border-radius: 16px;
    }

    .dp-logo-wrap {
        width: min(86vw, 295px);
    }

    .dp-percent {
        font-size: 38px;
    }

    .dp-track {
        width: 220px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .dp-stage * {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        transition-duration: .01ms !important;
    }
}

/* Production viewer overrides must come after the demo media rules. */
#digipropLoader {
    position: fixed;
    inset: 0;
    min-height: 100vh;
    height: 100%;
    border-radius: 0;
    z-index: 999998;
}

.loading > .progress {
    opacity: 1;
    pointer-events: auto;
    z-index: 1000000;
}

.loading > .progress-circle {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 540px) {
    #digipropLoader {
        min-height: 100vh;
        border-radius: 0;
    }
}
