/* =========================================================
   WordPress Plugins, Integrations & APIs — Premium V2
   Unique namespace: wp-api-v2
   ========================================================= */

.wp-api-v2 {
    position: relative;
    overflow: hidden;
    padding: 105px 0 95px;
    background:
        radial-gradient(circle at 50% 55%, rgba(47, 132, 255, .075), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #14213d;
}

.wp-api-v2 *,
.wp-api-v2 *::before,
.wp-api-v2 *::after {
    box-sizing: border-box;
}

.wp-api-v2__container {
    position: relative;
    z-index: 2;
}

.wp-api-v2__glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(3px);
}

.wp-api-v2__glow--one {
    top: 20px;
    left: -150px;
    background: radial-gradient(circle, rgba(58, 137, 255, .11), transparent 68%);
}

.wp-api-v2__glow--two {
    right: -160px;
    bottom: -40px;
    background: radial-gradient(circle, rgba(121, 73, 255, .09), transparent 68%);
}

.wp-api-v2__header {
    max-width: 980px;
    margin: 0 auto 56px;
    text-align: center;
}

.wp-api-v2__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 17px;
    border: 1px solid rgba(30, 120, 235, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 28px rgba(20, 53, 105, .08);
    color: #17264b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .35px;
}

.wp-api-v2__badge i {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b8cff, #6555f5);
    color: #fff;
    font-size: 11px;
}

.wp-api-v2__header h2 {
    max-width: 920px;
    margin: 25px auto 14px;
    color: #14213d;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.04;
    font-weight: 850;
    letter-spacing: -2.5px;
}

.wp-api-v2__header h2::first-line {
    background: linear-gradient(90deg, #152342 0%, #177ff5 48%, #7b45ef 100%);
}

.wp-api-v2__intro {
    max-width: 850px;
    margin: 0 auto;
    color: #657695;
    font-size: 17px;
    line-height: 1.75;
}

.wp-api-v2__highlights {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 30px;
}

.wp-api-v2__highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 205px;
    padding: 3px 30px;
    border-right: 1px solid #e3eaf4;
    text-align: left;
}

.wp-api-v2__highlight:last-child {
    border-right: 0;
}

.wp-api-v2__highlight-icon {
    display: grid;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(22, 77, 142, .12);
    color: #087edc;
}

.wp-api-v2__highlight strong,
.wp-api-v2__highlight small {
    display: block;
}

.wp-api-v2__highlight strong {
    margin-bottom: 3px;
    color: #182747;
    font-size: 14px;
    font-weight: 800;
}

.wp-api-v2__highlight small {
    color: #73819b;
    font-size: 11px;
    white-space: nowrap;
}

/* Network */
.wp-api-v2__network {
    position: relative;
    display: grid;
    grid-template-columns: minmax(310px, 1fr) 300px minmax(310px, 1fr);
    gap: 44px;
    align-items: center;
    min-height: 535px;
}

.wp-api-v2__cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wp-api-v2__card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 108px;
    padding: 16px 42px 16px 16px;
    border: 1px solid rgba(205, 217, 235, .62);
    border-radius: 25px;
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 18px 45px rgba(42, 78, 128, .08);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.wp-api-v2__card:hover {
    transform: translateY(-5px);
    border-color: rgba(38, 128, 239, .28);
    box-shadow: 0 24px 55px rgba(42, 78, 128, .14);
}

.wp-api-v2__card-icon {
    display: grid;
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    place-items: center;
    margin-right: 17px;
    border-radius: 50%;
    background: linear-gradient(145deg, #eaf5ff, #dceeff);
    color: #1683e9;
    font-size: 28px;
}

.wp-api-v2__card:nth-child(2) .wp-api-v2__card-icon {
    background: linear-gradient(145deg, #f0eaff, #e8ddff);
    color: #6231cf;
}

.wp-api-v2__card:nth-child(3) .wp-api-v2__card-icon {
    background: linear-gradient(145deg, #e5faef, #d5f5e5);
    color: #129d67;
}

.wp-api-v2__card:nth-child(4) .wp-api-v2__card-icon {
    background: linear-gradient(145deg, #fff0ef, #ffe2e0);
    color: #ed493c;
}

.wp-api-v2__cards--right .wp-api-v2__card:nth-child(1) .wp-api-v2__card-icon {
    background: linear-gradient(145deg, #fff7dc, #ffefc4);
    color: #e29a00;
}

.wp-api-v2__cards--right .wp-api-v2__card:nth-child(2) .wp-api-v2__card-icon {
    background: linear-gradient(145deg, #ffeaf4, #ffdded);
    color: #e52a82;
}

.wp-api-v2__card-body {
    min-width: 0;
}

.wp-api-v2__card h3 {
    margin: 0 0 7px;
    color: #172544;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}

.wp-api-v2__card p {
    margin: 0;
    color: #71809b;
    font-size: 13px;
    line-height: 1.55;
}

.wp-api-v2__number {
    position: absolute;
    top: 17px;
    right: 16px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #edf6ff;
    color: #1782e8;
    font-size: 11px;
    font-weight: 800;
}

.wp-api-v2__cards--right .wp-api-v2__number {
    background: #fff4dc;
    color: #db9700;
}

/* Connector lines */
.wp-api-v2__connector {
    position: absolute;
    top: 50%;
    width: 82px;
    height: 60px;
    border-top: 1.5px dashed #a8b9d6;
    pointer-events: none;
}

.wp-api-v2__cards--left .wp-api-v2__connector {
    right: -83px;
    border-right: 1.5px dashed #a8b9d6;
    border-top-right-radius: 55px;
    transform: translateY(-50%);
}

.wp-api-v2__cards--right .wp-api-v2__connector {
    left: -83px;
    border-left: 1.5px dashed #a8b9d6;
    border-top-left-radius: 55px;
    transform: translateY(-50%);
}

/* Central WordPress hub */
.wp-api-v2__hub-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 390px;
}

.wp-api-v2__hub-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(55, 142, 246, .14);
}

.wp-api-v2__hub-ring--outer {
    width: 310px;
    height: 310px;
    background: radial-gradient(circle, rgba(55, 142, 246, .08), transparent 67%);
}

.wp-api-v2__hub-ring--middle {
    width: 235px;
    height: 235px;
    background: radial-gradient(circle, rgba(55, 142, 246, .08), transparent 70%);
}

.wp-api-v2__hub {
    position: relative;
    z-index: 3;
    display: grid;
    width: 175px;
    height: 175px;
    place-items: center;
    border: 10px solid rgba(255, 255, 255, .95);
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 0 10px rgba(40, 133, 241, .09),
        0 25px 65px rgba(31, 102, 178, .18);
}

.wp-api-v2__wordpress-mark {
    display: grid;
    width: 125px;
    height: 125px;
    place-items: center;
    border: 5px solid #0d82cf;
    border-radius: 50%;
    background: linear-gradient(145deg, #087dbd, #0b96dd);
    color: #fff;
    box-shadow: inset 0 0 0 5px rgba(255,255,255,.15);
}

.wp-api-v2__wordpress-mark span {
    font-family: Georgia, serif;
    font-size: 80px;
    line-height: 1;
    font-weight: 700;
    transform: translateY(-2px);
}

.wp-api-v2__hub-note {
    position: absolute;
    bottom: 2px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #253658;
    font-family: "Segoe Print", "Bradley Hand", cursive;
    font-size: 15px;
    line-height: 1.05;
    transform: translateX(-50%) rotate(-4deg);
}

.wp-api-v2__hub-note i {
    position: absolute;
    top: -42px;
    left: 65px;
    font-size: 25px;
    transform: rotate(25deg);
}

/* CTA */
.wp-api-v2__cta {
    position: relative;
    z-index: 4;
    margin-top: 35px;
    text-align: center;
}

.wp-api-v2__cta-button {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    padding: 15px 19px 15px 27px;
    border-radius: 999px;
    background: linear-gradient(100deg, #087ff1, #8241ec);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(68, 91, 230, .23);
    transition: transform .25s ease, box-shadow .25s ease;
}

.wp-api-v2__cta-button:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 21px 42px rgba(68, 91, 230, .30);
}

.wp-api-v2__cta-button i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #5d48dc;
}

.wp-api-v2__cta p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    color: #71809a;
    font-size: 12px;
}

/* Tablet */
@media (max-width: 1199.98px) {
    .wp-api-v2 {
        padding: 85px 0 80px;
    }

    .wp-api-v2__network {
        grid-template-columns: minmax(270px, 1fr) 220px minmax(270px, 1fr);
        gap: 25px;
    }

    .wp-api-v2__card {
        min-height: 104px;
    }

    .wp-api-v2__card-icon {
        flex-basis: 62px;
        width: 62px;
        height: 62px;
        font-size: 23px;
    }

    .wp-api-v2__connector {
        width: 55px;
    }

    .wp-api-v2__cards--left .wp-api-v2__connector {
        right: -56px;
    }

    .wp-api-v2__cards--right .wp-api-v2__connector {
        left: -56px;
    }

    .wp-api-v2__hub-ring--outer {
        width: 230px;
        height: 230px;
    }

    .wp-api-v2__hub-ring--middle {
        width: 180px;
        height: 180px;
    }

    .wp-api-v2__hub {
        width: 145px;
        height: 145px;
    }

    .wp-api-v2__wordpress-mark {
        width: 105px;
        height: 105px;
    }

    .wp-api-v2__wordpress-mark span {
        font-size: 67px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .wp-api-v2 {
        padding: 65px 0 60px;
    }

    .wp-api-v2__header {
        margin-bottom: 38px;
    }

    .wp-api-v2__header h2 {
        margin-top: 20px;
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .wp-api-v2__intro {
        font-size: 15px;
        line-height: 1.65;
    }

    .wp-api-v2__highlights {
        display: grid;
        grid-template-columns: 1fr;
        gap: 13px;
        margin-top: 25px;
    }

    .wp-api-v2__highlight {
        min-width: 0;
        padding: 0;
        border-right: 0;
        justify-content: center;
        text-align: left;
    }

    .wp-api-v2__network {
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 24px;
    }

    .wp-api-v2__hub-wrap {
        order: 1;
        width: 100%;
        height: 250px;
    }

    .wp-api-v2__cards--left {
        order: 2;
    }

    .wp-api-v2__cards--right {
        order: 3;
    }

    .wp-api-v2__cards {
        width: 100%;
        gap: 14px;
    }

    .wp-api-v2__card {
        min-height: 98px;
        padding: 13px 39px 13px 13px;
        border-radius: 20px;
    }

    .wp-api-v2__card-icon {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
        margin-right: 13px;
        font-size: 22px;
    }

    .wp-api-v2__card h3 {
        font-size: 14px;
    }

    .wp-api-v2__card p {
        font-size: 12px;
    }

    .wp-api-v2__connector {
        display: none;
    }

    .wp-api-v2__hub-ring--outer {
        width: 205px;
        height: 205px;
    }

    .wp-api-v2__hub-ring--middle {
        width: 155px;
        height: 155px;
    }

    .wp-api-v2__hub {
        width: 120px;
        height: 120px;
        border-width: 7px;
    }

    .wp-api-v2__wordpress-mark {
        width: 88px;
        height: 88px;
        border-width: 4px;
    }

    .wp-api-v2__wordpress-mark span {
        font-size: 56px;
    }

    .wp-api-v2__hub-note {
        bottom: -4px;
        font-size: 13px;
    }

    .wp-api-v2__hub-note i {
        top: -34px;
        left: 53px;
        font-size: 21px;
    }

    .wp-api-v2__cta {
        margin-top: 32px;
    }

    .wp-api-v2__cta-button {
        max-width: 100%;
        padding-left: 20px;
        font-size: 13px;
    }

    .wp-api-v2__cta p {
        padding: 0 15px;
        line-height: 1.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wp-api-v2__card,
    .wp-api-v2__cta-button {
        transition: none;
    }
}
