/* =====================================================
   WELCOME MODAL
===================================================== */

.welcome-modal {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .4s ease,
        visibility .4s ease;

}


/* =====================================================
   MODAL ACTIVE STATE
===================================================== */

.welcome-modal.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* =====================================================
   BACKGROUND OVERLAY
===================================================== */

.welcome-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(1, 17, 31, .78);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

}


/* =====================================================
   MODAL BOX
===================================================== */

.welcome-box {

    position: relative;

    width: min(650px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    padding: 42px;

    border-radius: 30px;

    background:

        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(244,250,253,.98)
        );

    border:
        1px solid rgba(255,255,255,.8);

    box-shadow:

        0 40px 100px
        rgba(0,0,0,.35),

        0 0 0 1px
        rgba(8,123,217,.08);

    transform:
        translateY(35px)
        scale(.94);

    transition:
        transform .5s cubic-bezier(.16,1,.3,1);

    overflow: hidden;

}


/* Active animation */

.welcome-modal.active .welcome-box {

    transform:
        translateY(0)
        scale(1);

}


/* =====================================================
   DECORATIVE GLOW
===================================================== */

.welcome-glow {

    position: absolute;

    width: 280px;

    height: 280px;

    border-radius: 50%;

    background:
        rgba(20,201,216,.16);

    filter:
        blur(60px);

    top: -140px;

    right: -100px;

    pointer-events: none;

}


/* Second subtle glow */

.welcome-box::after {

    content: "";

    position: absolute;

    width: 220px;

    height: 220px;

    border-radius: 50%;

    background:
        rgba(9,201,107,.08);

    filter:
        blur(55px);

    bottom: -130px;

    left: -100px;

    pointer-events: none;

}


/* =====================================================
   CLOSE BUTTON
===================================================== */

.welcome-close {

    position: absolute;

    top: 18px;

    right: 18px;

    z-index: 10;

    width: 40px;

    height: 40px;

    border: 0;

    border-radius: 50%;

    display: grid;

    place-items: center;

    cursor: pointer;

    font-size: 25px;

    line-height: 1;

    color: var(--navy);

    background:
        rgba(5,47,87,.07);

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;

}


.welcome-close:hover {

    background:
        var(--navy);

    color: white;

    transform:
        rotate(90deg);

}


/* =====================================================
   WELCOME BADGE
===================================================== */

.welcome-badge {

    position: relative;

    z-index: 2;

    width: fit-content;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px 13px;

    border-radius: 50px;

    background:
        rgba(8,123,217,.08);

    border:
        1px solid rgba(8,123,217,.12);

    color:
        var(--blue);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .7px;

    text-transform: uppercase;

}


/* Badge dot */

.badge-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 0 5px
        rgba(9,201,107,.12);

    animation:
        welcomePulse 2s infinite;

}


/* =====================================================
   ICON
===================================================== */

.welcome-icon-wrapper {

    position: relative;

    width: 90px;

    height: 90px;

    margin:
        28px auto 20px;

    display: grid;

    place-items: center;

}


/* Outer animated ring */

.welcome-icon-ring {

    position: absolute;

    inset: 0;

    border-radius: 50%;

    border:
        1px solid
        rgba(8,123,217,.20);

    animation:
        iconRing 2.5s ease-out infinite;

}


/* Icon */

.welcome-icon {

    position: relative;

    z-index: 2;

    width: 70px;

    height: 70px;

    display: grid;

    place-items: center;

    border-radius: 22px;

    color: white;

    font-size: 28px;

    background:

        linear-gradient(
            135deg,
            var(--blue),
            var(--cyan)
        );

    box-shadow:

        0 15px 35px
        rgba(8,123,217,.30);

    animation:
        iconFloat 3s ease-in-out infinite;

}


/* =====================================================
   CONTENT
===================================================== */

.welcome-content {

    position: relative;

    z-index: 2;

    text-align: center;

}


.welcome-small-title {

    display: block;

    margin-bottom: 10px;

    color:
        var(--green);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

}


.welcome-content h2 {

    margin: 0;

    color:
        var(--navy);

    font-family:
        'Manrope',
        sans-serif;

    font-size:
        clamp(29px, 5vw, 42px);

    line-height: 1.15;

    letter-spacing:
        -1.5px;

}


.welcome-content h2 span {

    display: block;

    color:
        var(--blue);

}


.welcome-content p {

    max-width: 500px;

    margin:
        17px auto 0;

    color:
        var(--muted);

    font-size: 15px;

    line-height: 1.7;

}


/* =====================================================
   FEATURES
===================================================== */

.welcome-features {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin:
        28px 0;

}


.welcome-feature {

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        12px 10px;

    border:
        1px solid
        rgba(5,47,87,.07);

    border-radius: 14px;

    background:
        rgba(255,255,255,.65);

}


.feature-icon {

    flex-shrink: 0;

    width: 32px;

    height: 32px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    color:
        var(--blue);

    background:
        rgba(8,123,217,.09);

    font-size: 13px;

}


.welcome-feature strong {

    display: block;

    color:
        var(--navy);

    font-size: 11px;

    font-weight: 800;

}


.welcome-feature span {

    display: block;

    margin-top: 2px;

    color:
        var(--muted);

    font-size: 9px;

}


/* =====================================================
   ACTION BUTTONS
===================================================== */

.welcome-actions {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

}


.welcome-primary {

    width: 100%;

    min-height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    border-radius: 14px;

    color: white;

    font-size: 15px;

    font-weight: 800;

    background:

        linear-gradient(
            100deg,
            var(--blue),
            var(--green)
        );

    box-shadow:
        0 12px 30px
        rgba(8,123,217,.22);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


.welcome-primary:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 18px 40px
        rgba(8,123,217,.30);

}


.welcome-primary i {

    transition:
        transform .3s ease;

}


.welcome-primary:hover i {

    transform:
        translateX(5px);

}


/* Secondary */

.welcome-secondary {

    border: 0;

    background: transparent;

    cursor: pointer;

    color:
        var(--muted);

    font-size: 12px;

    font-weight: 600;

    padding: 5px 10px;

    transition:
        color .25s ease;

}


.welcome-secondary:hover {

    color:
        var(--navy);

}


/* =====================================================
   BOTTOM NOTE
===================================================== */

.welcome-note {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 18px;

    color:
        #7a8995;

    font-size: 10px;

}


.welcome-note i {

    color:
        var(--green);

}


/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes welcomePulse {

    0% {

        box-shadow:
            0 0 0 0
            rgba(9,201,107,.35);

    }

    70% {

        box-shadow:
            0 0 0 7px
            rgba(9,201,107,0);

    }

    100% {

        box-shadow:
            0 0 0 0
            rgba(9,201,107,0);

    }

}


@keyframes iconRing {

    0% {

        transform: scale(.85);

        opacity: .8;

    }

    70% {

        transform: scale(1.18);

        opacity: 0;

    }

    100% {

        transform: scale(1.18);

        opacity: 0;

    }

}


@keyframes iconFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-5px);

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width:600px) {

    .welcome-modal {

        padding:
            15px;

    }


    .welcome-box {

        padding:
            32px 22px 25px;

        border-radius:
            24px;

        max-height:
            92vh;

    }


    .welcome-close {

        top: 12px;

        right: 12px;

        width: 36px;

        height: 36px;

        font-size: 22px;

    }


    .welcome-badge {

        margin:
            0 auto;

        font-size: 9px;

    }


    .welcome-icon-wrapper {

        width: 75px;

        height: 75px;

        margin:
            23px auto 17px;

    }


    .welcome-icon {

        width: 58px;

        height: 58px;

        border-radius: 18px;

        font-size: 23px;

    }


    .welcome-content h2 {

        font-size: 28px;

        letter-spacing:
            -1px;

    }


    .welcome-content p {

        font-size: 13px;

        line-height: 1.6;

    }


    .welcome-features {

        grid-template-columns:
            1fr;

        gap: 8px;

        margin:
            22px 0;

    }


    .welcome-feature {

        padding:
            10px 12px;

    }


    .welcome-feature strong {

        font-size: 11px;

    }


    .welcome-feature span {

        font-size: 9px;

    }


    .welcome-primary {

        min-height:
            50px;

        font-size:
            14px;

    }

}


/* =====================================================
   VERY SMALL DEVICES
===================================================== */

@media(max-width:380px) {

    .welcome-box {

        padding:
            28px 18px 22px;

    }


    .welcome-content h2 {

        font-size:
            25px;

    }


    .welcome-content p {

        font-size:
            12px;

    }


    .welcome-note {

        font-size:
            9px;

    }

}