
.how-it-works {
    width: 100%;
    background: #111B31;
}

.how-it-works-container {
    padding: 60px 100px;
}

.how-it-works-title {
    font-weight: 700;
    font-size: 50px;
    line-height: 102%;
    color: #FFFFFF;
    margin-bottom: 55px;
}

.how-it-works-content {
    position: relative;
    width: 100%;
    height: 500px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("../images/how-it-work.png");
}

.how-it-works-image img {
    width: 588px;
    height: 384px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 45px;
    position: absolute;
    right: -87px;
    top: -22px;
}

.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px 25px 15px 15px;
    gap: 15px;
    width: fit-content;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 44px;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    height: 0.5px;
    background: #ffff;
    top: 50%;
    transform: translateY(-50%);
}

.step-1::after {
    width: calc(100%);
    left: calc(-100%);
}

.step-2, .step-3 {
    margin-left: 100px;
}

.step-2::after {
    width: calc(100% - 120px);
    left: calc(-100% + 120px);
}

.step-3::after {
    width: calc(100% + 230px);
    left: calc(-100% - 230px);
}

.step-4::after {
    width: calc(100%);
    left: calc(-100%);
}

.step-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;

    font-weight: 500;
    font-size: 20px;
    color: #FFFFFF;
    background: #3530FA;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-text {
    font-weight: 500;
    font-size: 20px;
    line-height: 20px;
    color: #FFFFFF;
}

@media (max-width: 1180px) {
    .how-it-works-container {
        padding: 60px 0;
    }

    .how-it-works-content {
        margin: 0 auto;
        padding: 200px 0;
        position: relative;
        width: 200px;
        height: 130px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-image: url("../images/diagram.png");
    }

    .how-it-works-image {
        display: flex;
        justify-content: center;
    }

    .steps {
        position: absolute;
        max-width: 700px;
        margin: 0 auto;
        right: 0;
        top: 0;
        left: 0;
        bottom: 0;
    }

    .step {
        padding: 10px 25px 10px 15px;
    }

    .step-text {
        font-size: 16px;
        white-space: nowrap;
    }

    .step-circle {
        font-size: 16px;
    }

    .step::after {
        left: 90%;
        transform: translateY(-90%);
    }

    .step-1 {
        position: absolute;
        left: -70px;
        top: -25px;
    }

    .step-2 {
        position: absolute;
        right: -150px;
        top: 40px;
        transform: translateX(-30%);
    }

    .step-3 {
        position: absolute;
        bottom: 60px;
        right: 65px;
    }

    .step-4 {
        position: absolute;
        bottom: -11px;
        left: 56px;
    }

    .step-1::after {
        left: 45%;
        top: 84%;
        transform: translateX(-50%);
        width: 1px;
        height: 159px;
        rotate: -26deg;
    }

    .step-2::after {
        left: 42%;
        top: 95%;
        transform: translateX(-50%);
        width: 1px;
        height: 45px;
        rotate: 26deg;
    }

    .step-3::after {
        left: 65%;
        top: -185%;
        transform: translateX(-50%);
        width: 1px;
        height: 100px;
        rotate: 30deg;
    }

    .step-4::after {
        left: 72%;
        top: -370%;
        transform: translateX(-50%);
        width: 1px;
        height: 189px;
        rotate: -16deg;
    }
}


@media (max-width: 768px) {
    .how-it-works-title {
        font-size: 24px;
    }
}
