/*
 * CTA v5 — geometry corrected against the approved reference crop.
 * Scope: CTA only. No footer, testimonial or global asset changes.
 */
.tw-cta-reference-exact {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    padding: 1rem 0 .95rem !important;
    background: #041a24 !important;
    border: 0 !important;
    color: #fff;
}

.tw-cta-reference-exact::before,
.tw-cta-reference-exact::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.tw-cta-reference-exact::before {
    left: -7rem;
    bottom: -5.75rem;
    width: 30rem;
    height: 16rem;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(226, 170, 45, .26) 0%, rgba(226, 170, 45, .08) 36%, transparent 72%);
    filter: blur(13px);
}

.tw-cta-reference-exact::after {
    right: -10rem;
    bottom: -6rem;
    width: 30rem;
    height: 15rem;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(15, 198, 231, .08) 0%, transparent 74%);
    filter: blur(13px);
}

.tw-cta-reference-exact__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(231, 173, 48, .035) 0%, transparent 19%),
        linear-gradient(270deg, rgba(16, 196, 229, .018) 0%, transparent 22%);
}

.tw-cta-reference-exact__shell {
    width: min(calc(100% - 7rem), 75rem);
    position: relative;
    z-index: 1;
}

.tw-cta-reference-exact__card {
    direction: ltr;
    position: relative;
    display: grid;
    grid-template-columns: 50.7% 49.3%;
    aspect-ratio: 5.9 / 1;
    min-height: 0;
    overflow: hidden;
    border-radius: .9rem;
    border: 1px solid rgba(18, 114, 140, .27);
    background: #051b25;
    box-shadow:
        0 1.2rem 2.8rem rgba(0, 0, 0, .22),
        inset 0 0 0 1px rgba(255,255,255,.012);
}

.tw-cta-reference-exact__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 4;
    box-shadow:
        inset 0 0 0 1px rgba(235, 181, 62, .018),
        inset 0 -1px 0 rgba(236, 180, 55, .06);
}

.tw-cta-reference-exact__media {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #061923;
}

.tw-cta-reference-exact__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 49%;
    filter: saturate(.98) contrast(1.02) brightness(.91);
    transform: scale(1.002);
}

.tw-cta-reference-exact__media-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(4, 20, 29, 0) 0%,
            rgba(4, 20, 29, 0) 58%,
            rgba(4, 20, 29, .08) 70%,
            rgba(4, 20, 29, .42) 88%,
            #051b25 100%),
        linear-gradient(180deg, rgba(4, 20, 29, .02), rgba(4, 20, 29, .10));
}

.tw-cta-reference-exact__content {
    direction: rtl;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 1.15rem 3.1rem 1.05rem 2rem;
    text-align: right;
    background:
        radial-gradient(23rem 9rem at 100% 50%, rgba(5, 65, 82, .09), transparent 72%),
        #051b25;
}

.tw-cta-reference-exact__title {
    width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(1.65rem, 2.25vw, 2.05rem);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -.02em;
    white-space: nowrap;
    text-wrap: nowrap;
}

.tw-cta-reference-exact__text {
    width: 100%;
    max-width: none;
    margin-top: .3rem;
    color: rgba(239, 246, 249, .79);
    font-size: clamp(.8rem, .9vw, .9rem);
    font-weight: 500;
    line-height: 1.75;
}

.tw-cta-reference-exact__text > * {
    margin: 0;
}

.tw-cta-reference-exact__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .72rem;
    margin-top: .72rem;
}

.tw-cta-reference-exact__button {
    min-height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .58rem;
    padding: .5rem .75rem .5rem .88rem;
    border-radius: .58rem;
    font-size: .84rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.tw-cta-reference-exact__button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.tw-cta-reference-exact__button--primary {
    color: #08131a;
    background: linear-gradient(180deg, #ffd867 0%, #eeb23d 100%);
    border: 1px solid rgba(255, 219, 110, .94);
    box-shadow:
        0 .62rem 1.45rem rgba(231, 171, 52, .22),
        inset 0 1px 0 rgba(255,255,255,.48);
}

.tw-cta-reference-exact__button--secondary {
    color: #f5f9fb;
    background: rgba(3, 22, 31, .56);
    border: 1px solid rgba(17, 196, 229, .86);
    box-shadow: inset 0 0 0 1px rgba(4, 74, 92, .15);
}

.tw-cta-reference-exact__button-circle {
    width: 1.6rem;
    height: 1.6rem;
    flex: 0 0 1.6rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    border: 1px solid rgba(17, 196, 229, .55);
    background: rgba(5, 39, 51, .62);
}

.tw-cta-reference-exact__button-circle--dark {
    color: #07131a;
    border-color: rgba(7, 19, 26, .16);
    background: rgba(6, 20, 27, .18);
}

.tw-cta-reference-exact__button-circle svg {
    width: .8rem;
    height: .8rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1100px) {
    .tw-cta-reference-exact__shell {
        width: min(calc(100% - 3rem), 75rem);
    }

    .tw-cta-reference-exact__content {
        padding-inline: 2rem 1.4rem;
    }

    .tw-cta-reference-exact__title {
        font-size: clamp(1.45rem, 2.7vw, 1.85rem);
    }
}

@media (max-width: 820px) {
    .tw-cta-reference-exact__card {
        aspect-ratio: auto;
        grid-template-columns: 1fr;
    }

    .tw-cta-reference-exact__content {
        order: 1;
        padding: 1.25rem 1.2rem 1.15rem;
    }

    .tw-cta-reference-exact__media {
        order: 2;
        min-height: 11.5rem;
    }

    .tw-cta-reference-exact__title {
        white-space: normal;
        text-wrap: balance;
    }

    .tw-cta-reference-exact__media-fade {
        background: linear-gradient(180deg, #051b25 0%, rgba(5, 27, 37, .04) 28%, rgba(5, 27, 37, .1) 100%);
    }
}

@media (max-width: 560px) {
    .tw-cta-reference-exact {
        padding: .65rem 0 .55rem !important;
    }

    .tw-cta-reference-exact__shell {
        width: min(calc(100% - 1rem), 75rem);
    }

    .tw-cta-reference-exact__card {
        border-radius: .82rem;
    }

    .tw-cta-reference-exact__title {
        font-size: clamp(1.35rem, 7vw, 1.85rem);
    }

    .tw-cta-reference-exact__actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .tw-cta-reference-exact__button {
        width: 100%;
        justify-content: space-between;
    }

    .tw-cta-reference-exact__media {
        min-height: 9.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tw-cta-reference-exact__button {
        transition: none;
    }
}
