/* How It Works CSS */

/* ==========================================================
   HOW IT WORKS
   PART 1
========================================================== */

.hiw-section{

    background:#F6F8F7;

    padding:120px 24px;

    overflow:hidden;

}

.hiw-container{

    max-width:1200px;

    margin:0 auto;

}

/* ==========================================================
   HEADER
========================================================== */

.hiw-header{

    max-width:760px;

    margin:0 auto;

    text-align:center;

}

.hiw-label{

    display:inline-flex;

    align-items:center;

    padding:8px 18px;

    border-radius:999px;

    background:#DDF3E5;

    color:#2E9B57;

    font-family:'Inter',sans-serif;

    font-size:.78rem;

    font-weight:700;

    letter-spacing:.12em;

    text-transform:uppercase;

}

.hiw-title{

    margin:24px 0;

    font-family:'Inter',sans-serif;

    font-size:clamp(2.8rem,5vw,4.4rem);

    font-weight:800;

    line-height:1.05;

    letter-spacing:-0.04em;

    color:#1D2433;

}

.hiw-title span{

    color:#2E9B57;

}

.hiw-description{

    max-width:650px;

    margin:0 auto;

    font-family:'Inter',sans-serif;

    font-size:1.1rem;

    line-height:1.9;

    color:#7D879C;

}

/* ==========================================================
   PHONE WRAPPER
========================================================== */

.hiw-phone-wrapper{

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

    margin-top:90px;

}


/* ==========================================================
   GREEN GLOW
========================================================== */

.hiw-glow{

    position:absolute;

    width:520px;

    height:520px;

    border-radius:50%;

    background:radial-gradient(circle,

        rgba(46,155,87,.18) 0%,

        rgba(46,155,87,.08) 45%,

        rgba(46,155,87,0) 72%);

    filter:blur(10px);

    z-index:0;

}

/* ==========================================================
   iPHONE FRAME
========================================================== */

.hiw-phone{

    position:relative;

    width:355px;

    height:690px;

    padding:10px;

    background:linear-gradient(
        145deg,
        #5F7F6D 0%,
        #4F6F5D 35%,
        #3F5F4D 70%,
        #30483C 100%
    );

    border-radius:52px;

    border:1.5px solid rgba(255,255,255,.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 45px 90px rgba(29,36,51,.18),
        0 12px 30px rgba(46,155,87,.12);

    transition:
        transform .45s ease,
        box-shadow .45s ease;

    overflow:hidden;

}

/* ==========================================================
   DYNAMIC ISLAND
========================================================== */

.hiw-phone::before{

    content:"";

    position:absolute;

    top:14px;

    left:50%;

    transform:translateX(-50%);

    width:118px;

    height:30px;

    border-radius:18px;

    background:linear-gradient(
        180deg,
        #0d0d0d,
        #1d1d1d
    );

    box-shadow:
        inset 0 1px 1px rgba(255,255,255,.05),
        0 1px 2px rgba(0,0,0,.4);

    z-index:20;

}

.hiw-phone::after{

    content:"";

    position:absolute;

    inset:0;

    border-radius:52px;

    border:1px solid rgba(255,255,255,.12);

    pointer-events:none;

}

/* ==========================================================
   VIDEO
========================================================== */

.hiw-video{

    width:100%;

    height:100%;

    object-fit:cover;

    object-position:center top;

    border-radius:42px;

    display:block;

}

/* ==========================================================
   HOVER
========================================================== */

.hiw-phone:hover{

    transform:

        translateY(-10px)

        scale(1.02);

    box-shadow:

        0 65px 110px rgba(29,36,51,.22),

        0 18px 40px rgba(46,155,87,.16);

}

/* ==========================================================
   PROCESS STEPS
========================================================== */

.hiw-process{

    display:flex;

    align-items:flex-start;

    justify-content:center;

    gap:34px;

    margin:80px auto 70px;

    max-width:1100px;

}

.hiw-step{

    flex:1;

    text-align:center;

}

.hiw-step-number{

    width:58px;

    height:58px;

    margin:0 auto 18px;

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:hidden;

    border-radius:50%;

    background:#DDF3E5;

    color:#2E9B57;

    font-family:'Inter',sans-serif;

    font-size:1rem;

    font-weight:700;

}

.hiw-step-number svg{

    width:28px;

    height:28px;

    color:#2E9B57;

}

.hiw-step h4{

    margin-bottom:14px;

    font-family:'Inter',sans-serif;

    font-size:1.35rem;

    font-weight:700;

    color:#1D2433;

}

.hiw-step p{

    max-width:250px;

    margin:auto;

    font-family:'Inter',sans-serif;

    font-size:.98rem;

    line-height:1.8;

    color:#7D879C;

}

.hiw-step-line{

    width:70px;

    height:2px;

    margin-top:28px;

    background:linear-gradient(
        90deg,
        rgba(46,155,87,.18),
        rgba(46,155,87,.45),
        rgba(46,155,87,.18)
    );

}

/* ==========================================================
   EARLY ACCESS BAR
========================================================== */

.hiw-access-bar{

    max-width:1080px;

    margin:0 auto;

    padding:18px 24px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:24px;

    border-radius:24px;

    background:linear-gradient(
        180deg,
        #FFFFFF,
        #F7FBF8
    );

    border:1px solid rgba(46,155,87,.12);

    box-shadow:
        0 18px 45px rgba(29,36,51,.08);

}

.hiw-access-icon{

    width:68px;

    height:68px;

    border-radius:18px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#FFFFFF;

    box-shadow:0 12px 30px rgba(29,36,51,.08);

    font-size:28px;

}

.hiw-access-icon svg{

    width:32px;

    height:32px;

    color:#2E9B57;

}

.hiw-access-content{

    flex:1;

}

.hiw-access-content h3{

    margin:0 0 6px;

    font-size:1.65rem;

    color:#1D2433;

}

.hiw-access-content p{

    margin:0;

    color:#7D879C;

    line-height:1.7;

}

.hiw-access-btn{

    padding:16px 34px;

    border-radius:14px;

    background:#2E9B57;

    color:#fff;

    text-decoration:none;

    font-weight:600;

    transition:.35s;

}

.hiw-access-btn:hover{

    background:#27864B;

    transform:translateY(-3px);

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:768px){

    /* ==========================================
       PROCESS STEPS
    ========================================== */

    .hiw-process{

        flex-direction:column;

        align-items:center;

        gap:18px;

        margin:60px auto;

    }

    .hiw-step{

        max-width:320px;

        width:100%;

    }

    .hiw-step-line{

        width:2px;

        height:42px;

        margin:0;

        background:linear-gradient(
            180deg,
            rgba(46,155,87,.20),
            rgba(46,155,87,.55),
            rgba(46,155,87,.20)
        );

    }


    /* ==========================================
       EARLY ACCESS BAR
    ========================================== */

    .hiw-access-bar{

        flex-direction:column;

        text-align:center;

        gap:20px;

        padding:24px;

    }

    .hiw-access-icon{

        width:60px;

        height:60px;

        margin:0 auto;

    }

    .hiw-access-content{

        width:100%;

    }

    .hiw-access-content h3{

        font-size:1.45rem;

    }

    .hiw-access-content p{

        font-size:.95rem;

        line-height:1.7;

    }

    .hiw-access-btn{

        width:100%;

        justify-content:center;

        padding:16px 20px;

    }

    /* ==========================================
    DESKTOP FLOATING CARDS
    ========================================== */

    .hiw-floating-card{

        display:none;

    }

}


/* ==========================================================
   FLOATING INSIGHT CARDS
========================================================== */

.hiw-floating-card{

    position:absolute;

    width:220px;

    padding:18px;

    background:rgba(255,255,255,.94);

    backdrop-filter:blur(16px);

    border:1px solid rgba(46,155,87,.08);

    border-radius:22px;

    box-shadow:
        0 18px 45px rgba(29,36,51,.08);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

    z-index:3;

}

.hiw-floating-card:hover{

    transform:translateY(-8px) scale(1.02);

    box-shadow:

        0 35px 70px rgba(29,36,51,.12),

        0 12px 30px rgba(46,155,87,.08);

}

/* ==========================================================
   STATUS PILLS
========================================================== */

.hiw-card-status{

    display:inline-flex;

    align-items:center;

    padding:6px 12px;

    border-radius:999px;

    font-size:.75rem;

    font-weight:700;

    font-family:'Inter',sans-serif;

    margin-bottom:14px;

}

.hiw-safe{

    background:#DDF3E5;

    color:#2E9B57;

}

.hiw-warning{

    background:#FDECEC;

    color:#E74C3C;

}

.hiw-moderate{

    background:#FFF7DD;

    color:#D98A00;

}

.hiw-danger{

    background:#FDECEC;

    color:#E74C3C;

}

/* ==========================================================
   CARD TYPOGRAPHY
========================================================== */

.hiw-floating-card h5{

    margin:0 0 8px;

    font-size:1.1rem;

    font-weight:700;

    color:#1D2433;

}

.hiw-floating-card p{

    margin:0;

    font-size:.92rem;

    line-height:1.6;

    color:#7D879C;

}

/* ==========================================================
   CARD POSITIONS
========================================================== */

.hiw-card-top-left{

    top:30px;

    left:-40px;

}

.hiw-card-top-right{

    top:60px;

    right:-40px;

}

.hiw-card-bottom-left{

    bottom:90px;

    left:-40px;

}

.hiw-card-bottom-right{

    bottom:40px;

    right:-40px;

}


/* ==========================================================
   FLOATING ANIMATION
========================================================== */

@keyframes hiwFloatOne{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(-6px);

    }

    100%{

        transform:translateY(0px);

    }

}

@keyframes hiwFloatTwo{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(6px);

    }

    100%{

        transform:translateY(0px);

    }

}

@keyframes hiwFloatThree{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(-5px);

    }

    100%{

        transform:translateY(0px);

    }

}

@keyframes hiwFloatFour{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(5px);

    }

    100%{

        transform:translateY(0px);

    }

}

.hiw-card-top-left{

    animation:hiwFloatOne 5.5s ease-in-out infinite;

}

.hiw-card-top-right{

    animation:hiwFloatTwo 6s ease-in-out infinite;

}

.hiw-card-bottom-left{

    animation:hiwFloatThree 5s ease-in-out infinite;

}

.hiw-card-bottom-right{

    animation:hiwFloatFour 6.5s ease-in-out infinite;

}


/* ==========================================================
   SCROLL REVEAL
========================================================== */

.hiw-header,
.hiw-phone-wrapper,
.hiw-process,
.hiw-access-bar{

    opacity:0;

    transform:translateY(40px);

    transition:

        opacity .8s ease,

        transform .8s ease;

}

.hiw-visible{

    opacity:1;

    transform:translateY(0);

}

.hiw-phone-wrapper{

    transition-delay:.1s;

}

.hiw-process{

    transition-delay:.2s;

}

.hiw-access-bar{

    transition-delay:.3s;

}