/* =========================================================
   Section 8 — Final Conversion CTA
   Scoped under .nx-cta. Reuses --nx-* tokens.
   Does not modify Sections 1–7 or footer.
   ========================================================= */

.nx-cta {
    position: relative;
    background: var(--nx-bg);
    color: var(--nx-text);
    min-height: clamp(60vh, 78vh, 90vh);
    display: flex;
    align-items: center;
    padding: clamp(5.5rem, 14vh, 10rem) 0;
    overflow-x: clip;
    overflow-y: visible;
    border-top: 1px solid var(--nx-border);
}

.nx-cta__glow {
    position: absolute;
    width: min(820px, 95vw);
    height: min(620px, 78vh);
    left: 68%;
    top: 46%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        circle at center,
        rgba(79, 124, 255, 0.28) 0%,
        rgba(79, 124, 255, 0.12) 32%,
        rgba(79, 124, 255, 0.04) 55%,
        transparent 72%
    );
    filter: blur(6px);
}

.nx-cta__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.nx-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 34rem;
}

.nx-cta__eyebrow {
    margin-bottom: 1.25rem;
}

.nx-cta__title {
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7.5vw, 5.75rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--nx-text);
    max-width: 12ch;
}

.nx-cta__description {
    margin: 0 0 2.5rem;
    max-width: 34rem;
    font-size: clamp(1.02rem, 1.3vw, 1.125rem);
    line-height: 1.65;
    color: var(--nx-text-muted);
}

.nx-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
}

.nx-cta__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.95rem 1.65rem;
    border-radius: 999px;
    background: var(--nx-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(79, 124, 255, 0.22);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nx-cta__primary span {
    display: inline-block;
    transition: transform 0.25s ease;
}

.nx-cta__primary:hover {
    background: var(--nx-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(79, 124, 255, 0.3);
}

.nx-cta__primary:hover span {
    transform: translateX(5px);
}

.nx-cta__primary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.nx-cta__secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--nx-text);
    text-decoration: none;
    letter-spacing: -0.01em;
    padding: 0.5rem 0.15rem;
    transition: color 0.2s ease;
}

.nx-cta__secondary span {
    color: var(--nx-accent);
    display: inline-block;
    transition: transform 0.25s ease;
}

.nx-cta__secondary:hover {
    color: #fff;
}

.nx-cta__secondary:hover span {
    transform: translate(3px, -2px);
}

.nx-cta__secondary:focus-visible {
    outline: 2px solid var(--nx-accent);
    outline-offset: 4px;
    border-radius: 2px;
}

.nx-cta__reassurance {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(146, 153, 165, 0.85);
    max-width: 28rem;
}

/* ---------- Device mockups (laptop + phone) ---------- */
.nx-cta__devices {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 34rem;
    height: clamp(300px, 44vw, 440px);
    margin-inline: auto;
    padding: 1.25rem 0 2.25rem;
    overflow: visible;
}

.nx-cta__devices::before {
    content: "";
    position: absolute;
    left: 52%;
    top: 42%;
    width: 120%;
    height: 110%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(79, 124, 255, 0.42) 0%,
        rgba(79, 124, 255, 0.18) 28%,
        rgba(79, 124, 255, 0.06) 52%,
        transparent 70%
    );
    filter: blur(18px);
}

.nx-cta__laptop {
    position: relative;
    width: min(88%, 28rem);
    margin-left: 12%;
    z-index: 1;
    animation: nxCtaFloatLaptop 5.8s ease-in-out infinite;
    filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.5));
}

.nx-cta__laptop-screen {
    background: linear-gradient(180deg, #e8eaee 0%, #cfd3da 100%);
    border-radius: 10px 10px 0 0;
    padding: 9px 9px 7px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.nx-cta__laptop-bezel {
    position: relative;
    background: #050505;
    border-radius: 3px;
    padding: 7px 7px 9px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.nx-cta__laptop-bezel .nx-cta__screen-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 1px;
    background: #07080a;
}

.nx-cta__laptop-base {
    position: relative;
    height: 10px;
    width: 108%;
    margin-left: -4%;
    background: linear-gradient(180deg, #f1f2f5 0%, #c8ccd3 45%, #aeb3bc 100%);
    border-radius: 0 0 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 14px 24px rgba(0, 0, 0, 0.32);
}

.nx-cta__laptop-notch {
    position: absolute;
    left: 50%;
    top: 0;
    width: 14%;
    height: 5px;
    margin-left: -7%;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(180deg, #9aa0aa 0%, #7d838e 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nx-cta__phone {
    position: absolute;
    left: 0;
    bottom: 1.35rem;
    width: clamp(6.75rem, 22%, 8.75rem);
    aspect-ratio: 9 / 19.4;
    z-index: 2;
    background: linear-gradient(160deg, #f5f6f8 0%, #d9dde4 42%, #c4c8d0 100%);
    border-radius: 1.55rem;
    padding: 0.32rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    animation: nxCtaFloatPhone 5.2s ease-in-out infinite 0.45s;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.08),
        inset 1px 0 0 rgba(255, 255, 255, 0.45),
        0 22px 34px rgba(0, 0, 0, 0.45);
}

.nx-cta__phone-bezel {
    position: relative;
    height: 100%;
    background: #050505;
    border-radius: 1.25rem;
    overflow: hidden;
    padding: 0.2rem;
}

.nx-cta__phone-bezel .nx-cta__screen-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 1.05rem;
    background: #07080a;
}

.nx-cta__phone-btn {
    position: absolute;
    left: -2px;
    width: 2px;
    border-radius: 2px 0 0 2px;
    background: linear-gradient(180deg, #cfd3da 0%, #9ea4ae 100%);
}

.nx-cta__phone-btn--vol {
    top: 22%;
    height: 7%;
}

.nx-cta__phone-btn--vol2 {
    top: 32%;
    height: 7%;
}

.nx-cta__phone-btn--power {
    left: auto;
    right: -2px;
    top: 28%;
    height: 11%;
    border-radius: 0 2px 2px 0;
}

@keyframes nxCtaFloatLaptop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes nxCtaFloatPhone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-11px); }
}

/* Reveals */
.nx-cta .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.nx-cta .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .nx-cta .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nx-cta__primary,
    .nx-cta__primary span,
    .nx-cta__secondary,
    .nx-cta__secondary span {
        transition: none !important;
    }

    .nx-cta__primary:hover {
        transform: none;
    }

    .nx-cta__primary:hover span,
    .nx-cta__secondary:hover span {
        transform: none;
    }

    .nx-cta__laptop,
    .nx-cta__phone {
        animation: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .nx-cta__layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nx-cta__devices {
        height: clamp(260px, 48vw, 360px);
        max-width: 32rem;
        margin: 0 auto;
        width: 100%;
    }

    .nx-cta__laptop {
        width: min(86%, 26rem);
        margin-left: 14%;
    }

    .nx-cta__phone {
        width: clamp(6.25rem, 24%, 8rem);
        left: 0.15rem;
        bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .nx-cta {
        min-height: auto;
        padding: clamp(4.75rem, 11vh, 6.5rem) 0;
        align-items: flex-start;
    }

    .nx-cta__title {
        max-width: none;
        font-size: clamp(2.625rem, 11vw, 3.25rem);
    }

    .nx-cta__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .nx-cta__primary {
        width: 100%;
    }

    .nx-cta__secondary {
        justify-content: center;
        padding: 0.65rem 0;
    }

    .nx-cta__devices {
        height: 280px;
        max-width: 26rem;
    }

    .nx-cta__laptop {
        width: 88%;
        margin-left: 12%;
    }

    .nx-cta__laptop-screen {
        padding: 8px 8px 6px;
        border-radius: 8px 8px 0 0;
    }

    .nx-cta__laptop-bezel {
        padding: 8px 8px 10px;
    }

    .nx-cta__phone {
        width: 6.35rem;
        bottom: 0.85rem;
    }
}

@media (max-width: 430px) {
    .nx-cta__title {
        font-size: clamp(2.5rem, 10.5vw, 2.9rem);
    }

    .nx-cta__description {
        font-size: 1.02rem;
        margin-bottom: 2rem;
    }

    .nx-cta__devices {
        height: 240px;
        max-width: 22rem;
    }

    .nx-cta__laptop {
        width: 90%;
        margin-left: 10%;
    }

    .nx-cta__phone {
        width: 5.6rem;
        bottom: 0.7rem;
        border-radius: 1.35rem;
        padding: 0.28rem;
    }

    .nx-cta__phone-bezel {
        border-radius: 1.1rem;
        padding: 0.18rem;
    }

    .nx-cta__phone-bezel .nx-cta__screen-img {
        border-radius: 0.95rem;
    }
}
