/* =========================================================
   VARIABLES
========================================================= */

.cx-newsroom {
    --cx-bg: #080808;
    --cx-text: #f6f6f3;
    --cx-muted: #a6a6aa;
    --cx-soft: #77777c;
    --cx-line: rgba(255,255,255,.10);

    --cx-card-bg: #111111;
    --cx-card-fade: .75;

    width: 100%;

    background: var(--cx-bg);
    color: var(--cx-text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    overflow: hidden;
}


.cx-newsroom *,
.cx-newsroom *::before,
.cx-newsroom *::after {
    box-sizing: border-box;
}


.cx-wrap {
    width: calc(100% - 64px);

    max-width: 1380px;

    margin: 0 auto;
}



/* =========================================================
   BADGES
========================================================= */

.cx-badge {
    display: inline-block;

    padding:
        8px
        14px;

    border:
        1px solid
        var(--cx-line);

    border-radius: 100px;

    background:
        rgba(255,255,255,.035);

    color: #aaaab0;

    font-size: 11px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: .05em;

    text-transform: uppercase;
}



/* =========================================================
   INTRO
========================================================= */

.cx-intro-strip {
    display: grid;

    grid-template-columns:
        1.2fr
        1fr;

    gap: 80px;

    padding:
        55px
        0;

    border-top:
        1px solid
        var(--cx-line);

    border-bottom:
        1px solid
        var(--cx-line);
}


.cx-small-label {
    display: block;

    margin-bottom: 16px;

    color: #86868b;

    font-size: 12px;

    letter-spacing: .06em;

    text-transform: uppercase;
}


.cx-intro-strip h2 {
    max-width: 650px;

    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            34px,
            4vw,
            58px
        );

    font-weight: 400;

    line-height: 1.03;

    letter-spacing: -.045em;
}


.cx-intro-strip p {
    align-self: end;

    margin: 0;

    color:
        var(--cx-muted);

    font-size: 17px;

    line-height: 1.65;
}



/* =========================================================
   CARDS GRID
========================================================= */

.cx-products {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 22px;

    padding-top: 100px;
    padding-bottom: 120px;
}



/* =========================================================
   CARD
========================================================= */

.cx-card {
    position: relative;

    min-height: 460px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding:
        34px
        38px
        42px;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 32px;

    background:
        var(--cx-card-bg);

    box-shadow:
        inset
        0
        1px
        0
        rgba(255,255,255,.05),

        0
        25px
        55px
        rgba(0,0,0,.28);

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}



/* =========================================================
   CARD IMAGE
========================================================= */

.cx-card-image {
    position: absolute;

    inset: 0;

    z-index: 0;

    overflow: hidden;

    pointer-events: none;

    opacity: .55;
}


.cx-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position:
        var(
            --cx-image-position,
            center center
        );

    filter:
        saturate(.72)
        brightness(.72)
        contrast(1.06);

    transition:
        transform
        .8s
        cubic-bezier(.2,.7,.2,1),

        filter
        .5s
        ease;
}



/* =========================================================
   IMAGE FADE
========================================================= */

.cx-card-fade {
    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:

        linear-gradient(
            to top,

            rgba(
                8,
                8,
                8,
                1
            )
            0%,

            rgba(
                8,
                8,
                8,
                .92
            )
            22%,

            rgba(
                8,
                8,
                8,
                calc(
                    var(--cx-card-fade)
                    * .75
                )
            )
            52%,

            rgba(
                8,
                8,
                8,
                calc(
                    var(--cx-card-fade)
                    * .25
                )
            )
            100%
        ),

        linear-gradient(
            90deg,

            rgba(
                8,
                8,
                8,
                .40
            )
            0%,

            transparent
            65%
        );
}



/* =========================================================
   CARD CONTENT
========================================================= */

.cx-card-top,
.cx-card-body {
    position: relative;

    z-index: 2;
}


.cx-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.cx-card-index {
    color: #b0b0b4;

    font-size: 12px;

    letter-spacing: .08em;
}


.cx-card h3 {
    margin:
        0
        0
        10px;

    color: #ffffff;

    font-size:
        clamp(
            38px,
            4vw,
            60px
        );

    font-weight: 400;

    line-height: 1;

    letter-spacing: -.05em;
}


.cx-card h4 {
    margin:
        0
        0
        22px;

    color: #b3b3b8;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 23px;

    font-style: italic;

    font-weight: 400;

    line-height: 1.2;
}


.cx-card p {
    max-width: 540px;

    margin: 0;

    color: var(--cx-muted);

    font-size: 16px;

    line-height: 1.65;
}



/* =========================================================
   CARD HOVER
========================================================= */

.cx-card:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(255,255,255,.16);

    box-shadow:
        inset
        0
        1px
        0
        rgba(255,255,255,.08),

        0
        32px
        70px
        rgba(0,0,0,.42);
}


.cx-card:hover
.cx-card-image img {
    transform:
        scale(1.04);

    filter:
        saturate(.80)
        brightness(.80)
        contrast(1.08);
}



/* =========================================================
   WORKFLOW
========================================================= */

.cx-workflow-section {
    padding-top: 110px;
    padding-bottom: 130px;

    border-top:
        1px solid
        var(--cx-line);
}


.cx-section-heading {
    margin-bottom: 65px;
}


.cx-section-heading h2 {
    max-width: 950px;

    margin:
        24px
        0
        0;

    color: #ffffff;

    font-size:
        clamp(
            52px,
            6vw,
            88px
        );

    font-weight: 400;

    line-height: .98;

    letter-spacing: -.05em;
}


.cx-section-heading h2 em {
    color: #8f8f94;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-style: italic;

    font-weight: 400;
}



/* =========================================================
   FLOW
========================================================= */

.cx-flow {
    display: flex;

    align-items: center;

    padding: 34px;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius: 32px;

    background: #101010;

    box-shadow:
        0
        25px
        60px
        rgba(0,0,0,.30);
}


.cx-flow-item {
    flex:
        1
        1
        0;

    min-width: 0;

    min-height: 165px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 24px;

    background: #181818;

    border:
        1px solid
        rgba(255,255,255,.06);

    border-radius: 22px;
}


.cx-flow-item span {
    margin-bottom: 24px;

    color: #66666b;

    font-size: 11px;
}


.cx-flow-item strong {
    margin-bottom: 7px;

    color: #ffffff;

    font-size: 20px;

    font-weight: 500;

    letter-spacing: -.02em;
}


.cx-flow-item small {
    color: #8d8d92;

    font-size: 13px;
}


.cx-flow-line {
    flex:
        0
        0
        45px;

    height: 1px;

    background:
        linear-gradient(
            to right,
            rgba(255,255,255,.08),
            rgba(255,255,255,.32),
            rgba(255,255,255,.08)
        );
}


.cx-flow-highlight {
    background:
        linear-gradient(
            145deg,
            #f3f3f3,
            #cfcfcf
        );

    border-color:
        rgba(255,255,255,.25);
}


.cx-flow-highlight strong {
    color: #111111;
}


.cx-flow-highlight span,
.cx-flow-highlight small {
    color: #696969;
}



/* =========================================================
   PROTOCOL SERVER
========================================================= */

.cx-protocol-box {
    display: grid;

    grid-template-columns:
        1fr
        1.2fr;

    gap: 50px;

    align-items: end;

    margin-top: 22px;

    padding:
        38px
        42px;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #171717,
            #111111
        );
}


.cx-protocol-box h3 {
    margin:
        18px
        0
        0;

    color: #ffffff;

    font-size: 38px;

    font-weight: 400;

    letter-spacing: -.04em;
}


.cx-protocol-box p {
    margin: 0;

    color: var(--cx-muted);

    font-size: 16px;

    line-height: 1.65;
}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .cx-intro-strip {
        grid-template-columns:
            1fr;

        gap: 30px;
    }


    .cx-products {
        grid-template-columns:
            1fr;
    }


    .cx-flow {
        flex-direction: column;

        gap: 14px;
    }


    .cx-flow-item {
        width: 100%;
    }


    .cx-flow-line {
        width: 1px;

        height: 28px;

        flex:
            0
            0
            28px;

        background:
            linear-gradient(
                to bottom,
                rgba(255,255,255,.08),
                rgba(255,255,255,.32),
                rgba(255,255,255,.08)
            );
    }


    .cx-protocol-box {
        grid-template-columns:
            1fr;

        gap: 24px;
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .cx-wrap {
        width:
            calc(
                100% - 36px
            );
    }


    .cx-products {
        padding-top: 70px;

        padding-bottom: 90px;
    }


    .cx-card {
        min-height: 420px;

        padding:
            28px
            26px
            34px;

        border-radius: 25px;
    }


    .cx-card-top {
        align-items: flex-start;
    }


    .cx-workflow-section {
        padding-top: 80px;

        padding-bottom: 90px;
    }


    .cx-flow {
        padding: 20px;

        border-radius: 24px;
    }


    .cx-flow-item {
        min-height: 130px;
    }


    .cx-protocol-box {
        padding:
            30px
            26px;
    }

}