/* =========================================================
   API INTEGRATION
   ========================================================= */

.api-integration-section {
    padding-top: 90px;
    padding-bottom: 90px;
    background: #ffffff;
    overflow: hidden;
}

.api-content {
    padding-right: 30px;
}

.api-label {
    display: inline-block;

    margin-bottom: 16px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1.2px;

    color: #2463eb;
}

.api-title {
    margin-bottom: 22px;

    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.15;

    font-weight: 700;

    color: #172033;
}

.api-title span {
    display: block;
    color: #2463eb;
}

.api-lead {
    max-width: 650px;

    margin-bottom: 18px;

    font-size: 20px;
    line-height: 1.65;

    color: #475467;
}

.api-description {
    max-width: 650px;

    margin-bottom: 30px;

    font-size: 16px;
    line-height: 1.75;

    color: #667085;
}

.api-content .btn {
    padding-top: 11px;
    padding-bottom: 11px;

    font-weight: 600;
}


/* =========================================================
   API VISUAL
   ========================================================= */

.api-visual {
    position: relative;

    width: 100%;
    max-width: 560px;

    height: 500px;

    margin: 0 auto;

    border-radius: 30px;

    background:
        radial-gradient(
            circle at center,
            rgba(36, 99, 235, 0.08),
            rgba(36, 99, 235, 0.02) 45%,
            transparent 70%
        );
}


/* =========================================================
   SYSTEM CARDS
   ========================================================= */

.api-system {
    position: absolute;

    width: 125px;
    min-height: 115px;

    padding: 18px 12px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e7ebf3;

    border-radius: 20px;

    box-shadow:
        0 12px 35px rgba(30, 40, 70, 0.08);

    z-index: 4;
}

.api-system span {
    margin-top: 8px;

    font-size: 14px;
    font-weight: 700;

    color: #172033;
}

.api-system-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #edf3ff;

    color: #2463eb;

    font-size: 24px;
}


/* POS */

.api-pos {
    top: 65px;
    left: 15px;
}


/* CRM */

.api-crm {
    top: 205px;
    left: 5px;
}


/* E-commerce */

.api-ecommerce {
    bottom: 55px;
    left: 55px;
}


/* =========================================================
   API CENTER
   ========================================================= */

.api-center {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 190px;
    height: 190px;

    border-radius: 50%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #eef4ff,
            #ffffff
        );

    border: 1px solid #dce6fb;

    box-shadow:
        0 20px 60px rgba(36, 99, 235, 0.13);

    z-index: 5;
}

.api-center-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 20px;

    background: #2463eb;

    color: #ffffff;

    font-size: 30px;
}

.api-center strong {
    font-size: 20px;

    color: #172033;
}

.api-center small {
    margin-top: 5px;

    font-size: 12px;

    color: #667085;
}


/* =========================================================
   API OUTPUT
   ========================================================= */

.api-output {
    position: absolute;

    right: 5px;
    top: 50%;

    transform: translateY(-50%);

    width: 165px;

    padding: 22px 15px;

    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e7ebf3;

    border-radius: 20px;

    box-shadow:
        0 14px 40px rgba(30, 40, 70, 0.09);

    z-index: 4;
}

.api-output-icon {
    width: 55px;
    height: 55px;

    margin-bottom: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #e8f9f2;

    color: #12a875;

    font-size: 25px;
}

.api-output strong {
    font-size: 15px;

    color: #172033;
}

.api-output small {
    margin-top: 6px;

    font-size: 11px;
    line-height: 1.4;

    color: #667085;
}


/* =========================================================
   CONNECTING LINES
   ========================================================= */

.api-connection {
    position: absolute;

    height: 2px;

    background: #cdd8ef;

    z-index: 2;

    transform-origin: left center;
}

.connection-pos {
    width: 125px;

    left: 135px;
    top: 145px;

    transform: rotate(18deg);
}

.connection-crm {
    width: 130px;

    left: 130px;
    top: 255px;

    transform: rotate(0deg);
}

.connection-ecommerce {
    width: 125px;

    left: 145px;
    top: 350px;

    transform: rotate(-22deg);
}

.connection-output {
    width: 120px;

    left: 335px;
    top: 250px;

    transform: rotate(0deg);
}


/* =========================================================
   API CAPABILITIES
   ========================================================= */

.api-capabilities-section {
    padding-top: 90px;
    padding-bottom: 90px;

    background: #f8f9fc;
}

.api-capabilities-section h2 {
    margin-bottom: 15px;

    font-size: clamp(34px, 4vw, 48px);

    font-weight: 700;

    color: #172033;
}

.api-capability-card {
    padding: 30px 25px;

    background: #ffffff;

    border: 1px solid #e7ebf3;

    border-radius: 20px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.api-capability-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 16px 40px rgba(20, 35, 70, 0.08);
}

.api-capability-icon {
    width: 58px;
    height: 58px;

    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    font-size: 24px;
}

.api-capability-card h3 {
    margin-bottom: 12px;

    font-size: 19px;

    font-weight: 700;

    color: #172033;
}

.api-capability-card p {
    margin-bottom: 0;

    font-size: 14px;

    line-height: 1.7;

    color: #667085;
}


/* =========================================================
   ICON COLORS
   ========================================================= */

.icon-blue {
    background: #eaf1ff;
    color: #2463eb;
}

.icon-green {
    background: #e8f9f2;
    color: #12a875;
}

.icon-orange {
    background: #fff4df;
    color: #f59f00;
}

.icon-purple {
    background: #f0ebff;
    color: #6950e8;
}


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

@media (max-width: 991.98px) {

    .api-content {
        padding-right: 0;
        text-align: center;
    }

    .api-lead,
    .api-description {
        margin-left: auto;
        margin-right: auto;
    }

    .api-visual {
        margin-top: 30px;
    }

}


@media (max-width: 575.98px) {

    .api-integration-section,
    .api-capabilities-section {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .api-visual {
        height: 400px;
    }

    .api-system {
        width: 95px;
        min-height: 90px;

        padding: 10px;
    }

    .api-system-icon {
        width: 42px;
        height: 42px;

        font-size: 19px;
    }

    .api-system span {
        font-size: 11px;
    }

    .api-pos {
        top: 35px;
        left: 0;
    }

    .api-crm {
        top: 160px;
        left: 0;
    }

    .api-ecommerce {
        bottom: 30px;
        left: 25px;
    }

    .api-center {
        width: 145px;
        height: 145px;
    }

    .api-center-icon {
        width: 48px;
        height: 48px;

        font-size: 22px;
    }

    .api-center strong {
        font-size: 16px;
    }

    .api-output {
        width: 125px;
        right: 0;
    }

    .api-output-icon {
        width: 45px;
        height: 45px;

        font-size: 20px;
    }

    .api-output strong {
        font-size: 13px;
    }

    .connection-pos {
        width: 80px;
        left: 100px;
        top: 110px;
    }

    .connection-crm {
        width: 80px;
        left: 95px;
        top: 205px;
    }

    .connection-ecommerce {
        width: 75px;
        left: 110px;
        top: 285px;
    }

    .connection-output {
        width: 75px;
        left: 265px;
        top: 200px;
    }

}