:root {
    --tn-blue: #079cf0;
    --tn-cyan: #14d4e9;
    --tn-teal: #16d8b3;
    --tn-navy: #03132d;
}

#tradenow-intro {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(8,156,240,.16), transparent 32%),
        linear-gradient(145deg, #010817 0%, #03132d 55%, #020b1e 100%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .7s cubic-bezier(.4,0,.2,1), visibility .7s;
}

#tradenow-intro.tn-exit {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tn-scene {
    position: relative;
    width: min(88vw, 620px);
    height: min(88vw, 620px);
    display: grid;
    place-items: center;
}

.tn-brand {
    position: relative;
    z-index: 10;
    width: min(66%, 390px);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: tn-brand-in .85s cubic-bezier(.2,.8,.2,1) both;
}

.tn-logo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 17%;
    filter: drop-shadow(0 20px 38px rgba(0,0,0,.42));
}

.tn-tagline {
    width: 112%;
    margin-top: 13px;
    text-align: center;
    color: #fff;
    font-size: clamp(10px, 2.1vw, 15px);
    line-height: 1.35;
    font-weight: 500;
    font-style: italic;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    opacity: 0;
    animation: tn-tagline-in .7s ease-out .45s forwards;
}

.tn-ring {
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
    background: conic-gradient(
        from 15deg,
        transparent 0 28deg,
        #087ff0 46deg,
        #0bd7e8 105deg,
        #15d8b0 170deg,
        #0aa4ef 238deg,
        transparent 292deg 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.tn-ring-one {
    inset: 4%;
    padding: 9px;
    animation: tn-spin 3s linear infinite;
    filter: drop-shadow(0 0 8px rgba(8,190,255,.75));
}

.tn-ring-two {
    inset: 10%;
    padding: 4px;
    opacity: .34;
    animation: tn-spin-reverse 4.6s linear infinite;
}

.tn-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(45px);
    pointer-events: none;
}

.tn-glow-one {
    width: 28%;
    height: 28%;
    background: rgba(0,157,255,.18);
    animation: tn-pulse 1.8s ease-in-out infinite;
}

.tn-glow-two {
    width: 22%;
    height: 22%;
    background: rgba(20,218,183,.13);
    transform: translate(35%, 20%);
    animation: tn-pulse 2.2s ease-in-out .2s infinite;
}

.tn-loading {
    position: absolute;
    z-index: 12;
    left: 50%;
    bottom: 2%;
    width: min(55%, 310px);
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255,255,255,.92);
    font-size: 12px;
    letter-spacing: .4px;
}

.tn-loading-text {
    display: block;
    margin-bottom: 9px;
}

.tn-progress {
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
}

.tn-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tn-blue), var(--tn-cyan), var(--tn-teal));
    box-shadow: 0 0 12px rgba(20,211,233,.8);
    animation: tn-progress 3s linear forwards;
}

@keyframes tn-brand-in {
    from { opacity: 0; transform: scale(.86); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes tn-tagline-in {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tn-spin {
    to { transform: rotate(360deg); }
}

@keyframes tn-spin-reverse {
    to { transform: rotate(-360deg); }
}

@keyframes tn-pulse {
    0%,100% { transform: scale(.88); opacity: .55; }
    50% { transform: scale(1.12); opacity: 1; }
}

@keyframes tn-progress {
    to { width: 100%; }
}

@media (max-width: 600px) {
    .tn-scene {
        width: 94vw;
        height: 94vw;
    }
    .tn-brand {
        width: 72%;
    }
    .tn-loading {
        width: 58%;
        bottom: 1%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tn-ring, .tn-brand, .tn-tagline, .tn-glow, .tn-progress i {
        animation: none !important;
    }
    .tn-progress i { width: 100%; }
}
