/* Why WINDONUSUM: approach cards and integration network */
.platform-section {
    background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
}

.platform-heading h2 span {
    color: #3c7da7;
}

.platform-heading > p {
    line-height: 1.8;
}

.platform-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-block: 42px 32px;
}

.platform-value {
    display: flex;
    flex-direction: column;
    padding: 26px 28px;
    border: 1px solid #e1eaf3;
    border-radius: 23px;
    background: radial-gradient(ellipse at 100% 0%, #edf6ff, transparent 75%), #fff;
    transition: transform 220ms, border-color 220ms, box-shadow 220ms;
}

.platform-value:hover {
    transform: translateY(-4px);
    border-color: #bed6ec;
    box-shadow: 0 16px 36px #163f6a0a;
}

.platform-value-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.platform-value-index {
    color: #abc1d4;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.platform-value-index > span {
    display: block;
    max-width: 140px;
    margin-top: 10px;
    color: #537792;
    font-size: 0.5625rem;
    line-height: 1.8;
    letter-spacing: 0.1em;
}

.platform-value-top img {
    display: block;
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    object-fit: contain;
    transition: transform 350ms ease;
}

.platform-value:hover img {
    transform: translateY(-4px) rotate(-3deg);
}

.platform-value h3 {
    margin-bottom: 14px;
    color: #193b59;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    line-height: 1.4;
}

.platform-value p {
    margin-bottom: 25px;
    color: #6c8093;
    font-size: 0.875rem;
    line-height: 1.8;
}

.platform-value-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 19px;
    border-top: 1px solid #e3ecf4;
    color: #507490;
    font-size: 0.6875rem;
}

.platform-value-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4f9ccc;
}

/* Connection lines are illustrative, not a live connection status. */
.platform-integration {
    scroll-margin-top: 110px;
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    align-items: center;
    gap: 42px;
    overflow: hidden;
    padding: 46px;
    border: 1px solid #173f63;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(ellipse at 90% 40%, #1b608855, transparent 65%),
        linear-gradient(120deg, #092641, #103b5d);
}

.platform-integration-copy .eyebrow {
    margin-bottom: 23px;
    color: #8ec6e7;
    font-size: 0.625rem;
    letter-spacing: 0.14em;
}

.platform-integration-copy h3 {
    margin-bottom: 21px;
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.platform-integration-copy h3 > span {
    color: #79ccec;
}

.platform-integration-copy p {
    max-width: 430px;
    margin-bottom: 22px;
    color: #adc5d9;
    font-size: 0.875rem;
    line-height: 1.9;
}

.platform-integration-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.platform-integration-tags span {
    padding: 5px 9px;
    border: 1px solid #91bad529;
    border-radius: 7px;
    color: #b8d0e3;
    background: #ffffff05;
    font-size: 0.625rem;
}

.platform-integration-copy .button {
    min-height: 47px;
    padding: 12px 18px;
    color: #174e75;
    font-size: 0.8125rem;
}

.platform-integration-copy .button .icon {
    width: 16px;
    height: 16px;
}

.platform-network {
    min-width: 0;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
}

.platform-network-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 500 / 360;
    isolation: isolate;
    background-image: radial-gradient(#93c4e219 1px, transparent 1px);
    background-size: 18px 18px;
}

.platform-network-stage::before {
    position: absolute;
    z-index: -1;
    inset: 15% 25%;
    border: 1px solid #7eb3d219;
    border-radius: 50%;
    box-shadow: 0 0 0 28px #8cc7e505, 0 0 0 56px #8cc7e503;
    content: '';
}

.platform-network-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.platform-network-tracks {
    stroke: #75adcc36;
    stroke-width: 1.2;
}

.platform-network-flow {
    stroke: url(#network-line);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 8 100;
    animation: network-flow 9s linear infinite;
}

@keyframes network-flow {
    to {
        stroke-dashoffset: -216;
    }
}

.platform-network-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 110px;
    border: 1px solid #c1e3fa;
    border-radius: 24px;
    background: linear-gradient(145deg, #fff, #e2effa);
    box-shadow: 0 8px 0 #89bed347, 0 20px 45px #0013264d, 0 0 45px #66c9ed1a;
    transform: translate(-50%, -50%);
}

.platform-network-hub img {
    display: block;
    width: 78px;
    height: 65px;
    object-fit: contain;
}

.platform-network-hub strong {
    margin-top: -5px;
    color: #1b507a;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
}

.platform-network-node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 26%;
    min-height: 68px;
    padding: 9px;
    border: 1px solid #678ca64d;
    border-radius: 15px;
    color: #d3e4f1;
    background: linear-gradient(145deg, #274d6b, #193c59);
    box-shadow: 0 8px 20px #00152b26;
    font-size: 0.6875rem;
    font-weight: 500;
}

.platform-network-node img {
    display: block;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.network-erp {
    top: 10%;
    left: 0;
}

.network-commerce {
    top: 10%;
    right: 0;
}

.network-accounting {
    bottom: 10%;
    left: 0;
}

.network-api {
    bottom: 10%;
    right: 0;
}

.platform-api-symbol {
    display: grid;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #80b4d14d;
    border-radius: 10px;
    color: #9ae2f7;
    background: linear-gradient(135deg, #316d95, #164465);
    box-shadow: 0 3px 0 #0b2e49;
    font-family: monospace;
    font-size: 1rem;
}

.platform-network-caption {
    margin: 21px 0 0;
    color: #8cabc2;
    font-size: 0.625rem;
    text-align: center;
}

@media (max-width: 1100px) {
    .platform-integration {
        padding: 34px;
        gap: 30px;
    }

    .platform-network-node {
        flex-direction: column;
        gap: 3px;
        min-height: 76px;
        padding: 8px 5px;
    }

    .platform-network-node img {
        width: 34px;
        height: 34px;
    }

    .platform-network-hub {
        width: 94px;
        height: 90px;
        border-radius: 20px;
    }

    .platform-network-hub img {
        width: 65px;
        height: 55px;
    }
}

@media (max-width: 900px) {
    .platform-value {
        padding: 22px;
    }

    .platform-value-top img {
        width: 88px;
        height: 88px;
    }

    .platform-value-index > span {
        font-size: 0.5rem;
    }

    .platform-value h3 {
        font-size: 1.0625rem;
    }

    .platform-integration {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .platform-integration-copy p {
        max-width: 600px;
    }

    .platform-network {
        max-width: 470px;
    }

    .platform-network-node {
        flex-direction: row;
        min-height: 64px;
        gap: 8px;
    }
}

@media (max-width: 700px) {
    .platform-values {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 30px;
    }

    .platform-value {
        padding: 22px 25px;
    }

    .platform-value-top {
        margin-bottom: 12px;
    }

    .platform-value-top img {
        width: 100px;
        height: 100px;
    }

    .platform-value h3 {
        font-size: 1.2rem;
    }

    .platform-value-index > span {
        max-width: none;
        font-size: 0.5625rem;
    }

    .platform-integration {
        padding: 30px 24px;
        border-radius: 22px;
    }
}

@media (max-width: 400px) {
    .platform-integration {
        padding: 26px 20px;
    }

    .platform-integration-copy h3 {
        font-size: 1.85rem;
    }

    .platform-integration-copy .button {
        gap: 8px;
        padding-inline: 12px;
        font-size: 0.75rem;
    }

    .platform-network-node {
        flex-direction: column;
        min-height: 65px;
        gap: 2px;
        padding: 5px;
        border-radius: 12px;
        font-size: 0.5625rem;
    }

    .platform-network-node img,
    .platform-api-symbol {
        width: 29px;
        height: 29px;
    }

    .platform-network-hub {
        width: 70px;
        height: 70px;
        border-radius: 17px;
    }

    .platform-network-hub img {
        width: 52px;
        height: 46px;
    }

    .platform-network-hub strong {
        font-size: 0.375rem;
        letter-spacing: 0.04em;
    }

    .platform-network-caption {
        font-size: 0.5625rem;
    }
}

/* Desktop slide: keep the benefits, integration details and CTA in one view. */
@media (min-width: 1024px) {
    .platform-section {
        display: grid;
        min-height: calc(100vh - var(--header-bar-height) - 1px);
        min-height: calc(100dvh - var(--header-bar-height) - 1px);
        align-content: center;
        padding-block: clamp(18px, 2.5vh, 28px);
    }

    .platform-heading {
        display: flex;
        align-items: end;
        gap: 24px;
        margin-bottom: 0;
    }

    .platform-heading .eyebrow {
        margin-bottom: 8px;
        font-size: 0.65rem;
    }

    .platform-heading h2 {
        margin-bottom: 0;
        font-size: var(--section-title-size);
        line-height: 1.2;
    }

    .platform-heading > p {
        max-width: 290px;
        margin-bottom: 3px;
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    .platform-values {
        gap: 16px;
        margin-block: 18px 16px;
    }

    .platform-value {
        padding: 16px 20px;
        border-radius: 18px;
    }

    .platform-value-top {
        margin-bottom: 8px;
    }

    .platform-value-top img {
        width: 64px;
        height: 64px;
    }

    .platform-value-index > span {
        margin-top: 5px;
        line-height: 1.5;
    }

    .platform-value h3 {
        margin-bottom: 8px;
        font-size: 1.0625rem;
        line-height: 1.35;
    }

    .platform-value p {
        margin-bottom: 12px;
        font-size: 0.8125rem;
        line-height: 1.55;
    }

    .platform-value-foot {
        padding-top: 10px;
        font-size: 0.6875rem;
        line-height: 1.5;
    }

    .platform-integration {
        grid-template-columns: 1.1fr 1fr;
        gap: 28px;
        padding: 18px 24px;
        border-radius: 22px;
    }

    .platform-integration-copy .eyebrow {
        margin-bottom: 8px;
        font-size: 0.625rem;
    }

    .platform-integration-copy h3 {
        margin-bottom: 10px;
        font-size: clamp(1.35rem, 1.7vw, 1.65rem);
        line-height: 1.18;
    }

    .platform-integration-copy p {
        max-width: 520px;
        margin-bottom: 10px;
        font-size: 0.8125rem;
        line-height: 1.55;
    }

    .platform-integration-tags {
        gap: 6px;
        margin-bottom: 12px;
    }

    .platform-integration-tags span {
        padding: 3px 7px;
        line-height: 1.5;
    }

    .platform-integration-copy .button {
        min-height: 42px;
        padding: 10px 16px;
    }

    .platform-network {
        max-width: clamp(280px, 23vw, 340px);
    }

    .platform-network-hub {
        width: 88px;
        height: 82px;
        border-radius: 19px;
    }

    .platform-network-hub img {
        width: 58px;
        height: 49px;
    }

    .platform-network-node {
        flex-direction: row;
        gap: 5px;
        width: 31%;
        min-height: 46px;
        padding: 6px;
        border-radius: 11px;
        font-size: 0.625rem;
    }

    .platform-network-node > span {
        white-space: nowrap;
    }

    .platform-network-node img,
    .platform-api-symbol {
        width: 27px;
        height: 27px;
    }

    .platform-api-symbol {
        border-radius: 7px;
        font-size: 0.75rem;
    }

    .platform-network-caption {
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .platform-network-flow {
        animation: none;
    }

    .platform-value:hover,
    .platform-value:hover img {
        transform: none;
    }
}
