/*
 * Nexo Hub / Cloud Nexo Labs — page layout aligned with the 2026 brochure.
 * Loaded only on the two product pages (see nexolabs_enqueue_assets()).
 * All classes are prefixed with .nxp- so the rest of the site is untouched.
 */
:root {
    --nxp-bg: #05070f;
    --nxp-surface: #0a0f18;
    --nxp-card: #0c121c;
    --nxp-border: #1f2937;
    --nxp-accent: #3dffa0;
    --nxp-text: #e2e8f0;
    --nxp-muted: #a3b1c4;
    --nxp-radius: 1.5rem;
}

/* ---------- Typography ---------- */
.nxp-eyebrow {
    color: var(--nxp-accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    line-height: 1.4;
}
.nxp-hero h1.nxp-eyebrow--brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em;
    text-transform: none;
    font-weight: 600;
}
.nxp-eyebrow--brand::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--nxp-accent);
    box-shadow: 0 0 14px rgba(61, 255, 160, 0.7);
}
.nxp-display {
    font-size: clamp(2.6rem, 5.2vw, 4.25rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.nxp-h2 {
    color: #fff;
    font-size: clamp(2.1rem, 4.2vw, 3.3rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.03em;
}
.nxp-h2--sm {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
}
.nxp-accent {
    color: var(--nxp-accent);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.nxp-lead {
    color: #cbd5e1;
    font-size: 1.2rem;
    line-height: 1.6;
}
.nxp-prose,
.nxp-prose p {
    color: var(--nxp-muted);
    font-size: 1.075rem;
    line-height: 1.7;
}

/* ---------- Hero ---------- */
.nxp-hero {
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgba(61, 255, 160, 0.07), transparent 60%),
        var(--nxp-bg);
}
.nxp-glow {
    position: absolute;
    width: 30rem;
    height: 30rem;
    border-radius: 999px;
    background: rgba(61, 255, 160, 0.05);
    filter: blur(120px);
    pointer-events: none;
}
.nxp-glow--tr { top: 15%; right: -8rem; }
.nxp-stores {
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--nxp-border);
    max-width: 30rem;
}

.nxp-visual {
    position: relative;
    max-width: 34rem;
    margin: 0 auto;
    padding: 0 0 2rem 3.5rem;
}
.nxp-visual__photo {
    margin: 0;
    border-radius: 2rem;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    position: relative;
}
.nxp-visual__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 7, 15, 0) 55%, rgba(5, 7, 15, 0.55));
}
.nxp-visual__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    display: block;
}
.nxp-visual__phone {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
}

/* ---------- Phone mockup ---------- */
.nxp-phone {
    border-radius: 2.4rem;
    padding: 0.55rem;
    background: #0b0d12;
    box-shadow: 0 0 0 1px #2a3240, 0 30px 60px -10px rgba(0, 0, 0, 0.75);
}
.nxp-phone__screen {
    border-radius: 1.95rem;
    overflow: hidden;
    aspect-ratio: 600 / 1304;
    background: #111;
}
.nxp-phone__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* ---------- Places strip ---------- */
.nxp-places {
    list-style: none;
    margin-left: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.nxp-place {
    position: relative;
    border-radius: var(--nxp-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--nxp-card);
}
.nxp-place img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.nxp-place:hover img { transform: scale(1.04); }
.nxp-place::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 7, 15, 0) 50%, rgba(5, 7, 15, 0.8));
}
.nxp-place__label {
    position: absolute;
    left: 1.1rem;
    bottom: 0.95rem;
    z-index: 1;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
}
@media (min-width: 1024px) {
    .nxp-places {
        grid-template-columns: 1.6fr 1fr 1fr 1fr;
        height: 22rem;
    }
    .nxp-place { aspect-ratio: auto; }
}

/* ---------- Big numbers ---------- */
.nxp-stats {
    list-style: none;
    margin: 0;
    padding: 2.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    border-top: 1px solid var(--nxp-border);
    border-bottom: 1px solid var(--nxp-border);
}
.nxp-stat {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.nxp-stat__value {
    color: var(--nxp-accent);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.04em;
}
.nxp-stat__label {
    color: var(--nxp-text);
    font-size: 0.98rem;
    line-height: 1.45;
    max-width: 16rem;
}
@media (min-width: 1024px) {
    .nxp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .nxp-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Cards ---------- */
.nxp-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}
@media (min-width: 768px) { .nxp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .nxp-features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nxp-card,
.nxp-hw {
    background: var(--nxp-card);
    border: 1px solid var(--nxp-border);
    border-radius: var(--nxp-radius);
    padding: 1.75rem 1.75rem 1.9rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.nxp-card:hover,
.nxp-hw:hover {
    border-color: rgba(61, 255, 160, 0.4);
}
.nxp-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.9rem;
    background: rgba(61, 255, 160, 0.1);
    color: var(--nxp-accent);
    margin-bottom: 1.15rem;
    flex: 0 0 auto;
}
.nxp-card__icon svg { width: 1.45rem; height: 1.45rem; }
.nxp-card__icon--lg { width: 3.4rem; height: 3.4rem; margin-bottom: 0; }
.nxp-card__icon--lg svg { width: 1.7rem; height: 1.7rem; }
.nxp-card__title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin: 0 0 0.55rem;
}
.nxp-card__text {
    color: var(--nxp-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}
.nxp-hw {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    background: linear-gradient(120deg, rgba(61, 255, 160, 0.1), rgba(61, 255, 160, 0.02)), var(--nxp-card);
    border-color: rgba(61, 255, 160, 0.28);
}

/* ---------- Split (photo + text) ---------- */
.nxp-split {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 2rem;
    overflow: hidden;
    background: var(--nxp-surface);
    border: 1px solid var(--nxp-border);
}
.nxp-split__media {
    position: relative;
    min-height: 20rem;
}
.nxp-split__media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nxp-split__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 7, 15, 0) 40%, rgba(10, 15, 24, 0.5));
}
.nxp-split__phone {
    position: absolute;
    z-index: 2;
    right: 8%;
    bottom: -14%;
    width: 9.5rem;
}
.nxp-split__media { overflow: hidden; }
.nxp-split__body {
    padding: 2.5rem 1.75rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 1024px) {
    .nxp-split { grid-template-columns: 1.05fr 1fr; min-height: 34rem; }
    .nxp-split__body { padding: 4rem 4rem 4rem 3.5rem; }
    .nxp-split__phone { width: 12.5rem; bottom: 2.5rem; right: 2.5rem; }
}

/* ---------- Band + integrations ---------- */
.nxp-band {
    background: var(--nxp-surface);
    border-top: 1px solid var(--nxp-border);
    border-bottom: 1px solid var(--nxp-border);
}
.nxp-integrations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem 3rem;
}
@media (min-width: 768px) { .nxp-integrations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .nxp-integrations { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nxp-int {
    padding-top: 1.4rem;
    border-top: 1px solid var(--nxp-border);
}
.nxp-int__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.7rem;
}
.nxp-int__icon {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: rgba(61, 255, 160, 0.1);
    color: var(--nxp-accent);
}
.nxp-int__icon svg { width: 1.15rem; height: 1.15rem; }
.nxp-int__list {
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
}
.nxp-int__list .hub-viacloud {
    display: inline-block;
    padding: 0 0.45rem;
    margin-left: 0.1rem;
    border-radius: 999px;
    background: rgba(126, 182, 255, 0.12);
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: nowrap;
}
.nxp-legal {
    margin-top: 3rem !important;
    color: #7c8a9e !important;
}

/* ---------- Photo banner ---------- */
.nxp-banner {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid var(--nxp-border);
    min-height: 26rem;
    display: flex;
    align-items: flex-end;
}
.nxp-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nxp-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(5, 7, 15, 0.35) 0%, rgba(5, 7, 15, 0.92) 55%, rgba(5, 7, 15, 0.97));
}
.nxp-banner__body {
    position: relative;
    z-index: 2;
    padding: 9rem 1.75rem 2.5rem;
    max-width: 44rem;
}
.nxp-banner__body .nxp-prose { color: #cbd5e1; }
@media (min-width: 1024px) {
    .nxp-banner { align-items: center; min-height: 30rem; }
    .nxp-banner::before {
        background: linear-gradient(90deg, rgba(5, 7, 15, 0.97) 0%, rgba(5, 7, 15, 0.88) 45%, rgba(5, 7, 15, 0.15) 80%);
    }
    .nxp-banner__body { padding: 4rem 4.5rem; }
}

/* ---------- Cloud: local / remote ---------- */
.nxp-modes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) { .nxp-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nxp-mode {
    background: var(--nxp-card);
    border: 1px solid var(--nxp-border);
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.nxp-mode__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.nxp-mode__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nxp-mode__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 18, 28, 0) 45%, rgba(12, 18, 28, 1));
}
.nxp-mode__tag {
    position: absolute;
    z-index: 1;
    left: 1.5rem;
    top: 1.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(5, 7, 15, 0.7);
    border: 1px solid rgba(61, 255, 160, 0.35);
    color: var(--nxp-accent);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    backdrop-filter: blur(6px);
}
.nxp-mode__body { padding: 0.5rem 1.75rem 2rem; }
@media (min-width: 1024px) { .nxp-mode__body { padding: 0.5rem 2.25rem 2.4rem; } }
.nxp-mode__title {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
}

.nxp-tech {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
@media (min-width: 768px) { .nxp-tech { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nxp-tech li {
    padding: 1.4rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--nxp-border);
    background: rgba(255, 255, 255, 0.015);
}
.nxp-tech strong {
    display: block;
    color: var(--nxp-accent);
    font-family: "Space Mono", monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.45rem;
}
.nxp-tech span {
    color: var(--nxp-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .nxp-visual { padding-left: 2.25rem; }
    .nxp-visual__phone { width: 42%; }
    .nxp-phone { border-radius: 1.6rem; padding: 0.35rem; }
    .nxp-phone__screen { border-radius: 1.3rem; }
    .nxp-card, .nxp-hw { padding: 1.4rem 1.35rem 1.5rem; }
    .nxp-hw { flex-direction: column; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .nxp-place img { transition: none; }
}

/* Cloud page variants */
.nxp-hero h1.nxp-display--h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.25rem) !important;
    line-height: 1.02 !important;
}
.nxp-visual--landscape .nxp-visual__photo { aspect-ratio: 5 / 4; }
.nxp-visual--landscape .nxp-visual__photo img { object-position: 50% 60%; }
.nxp-visual--landscape .nxp-visual__phone { width: 34%; }
.nxp-banner__img--top { object-position: 50% 35%; }
@media (min-width: 768px) and (max-width: 1279px) {
    .nxp-features--5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
    .nxp-features--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .nxp-features--5 > * { grid-column: span 2; }
    .nxp-features--5 > :nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 1023px) {
    .nxp-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .nxp-stats--3 .nxp-stat__label { font-size: 0.85rem; }
}
