/* ============================================================
   NLA Homepage v3 — Page-specific styles.
   Tokens, body baseline, film grain, header dark override + reveal
   animation are inherited from /css/nla-v3-base.css (loaded by the
   layout in preview mode).
   ============================================================ */

/* --- HERO SECTION (compact two-column) --- */
.hv3-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e1a 0%, #08080f 50%, #0c1018 100%);
    padding: 120px 0 60px;
}

.hv3-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 48px;
}

.hv3-hero__content {
    flex: 0 0 45%;
    max-width: 520px;
}

.hv3-hero__media {
    position: relative;
    flex: 0 1 55%;
    min-width: 0;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.hv3-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-radius: 8px;
    background: rgba(10, 12, 18, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background 0.25s ease;
    pointer-events: none;
}

.hv3-hero__media:hover .hv3-hero__overlay,
.hv3-hero__media:focus-visible .hv3-hero__overlay {
    background: rgba(10, 12, 18, 0.6);
}

.hv3-hero__play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, background 0.25s ease;
}

/* Gray triangle. Optical centering: a right-pointing triangle's visual
   mass (centroid) sits 1/3 from its base, so its bounding box must be
   nudged right by ~1/6 of its width for the center to look centered. */
.hv3-hero__triangle {
    width: 0;
    height: 0;
    margin-left: 5px; /* ≈ base-width / 6 */
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent #c8ccd4;
    transition: border-color 0.25s ease;
}

.hv3-hero__media:hover .hv3-hero__play,
.hv3-hero__media:focus-visible .hv3-hero__play {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.2);
}

.hv3-hero__media:hover .hv3-hero__triangle,
.hv3-hero__media:focus-visible .hv3-hero__triangle {
    border-left-color: #fff;
}

.hv3-hero__watch {
    font-family: var(--nla-font-display, 'Bebas Neue', sans-serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.hv3-hero__media:focus-visible {
    outline: 2px solid var(--nla-accent-bright, #FE3C3C);
    outline-offset: 6px;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .hv3-hero__play {
        width: 66px;
        height: 66px;
    }

    .hv3-hero__triangle {
        margin-left: 4px;
        border-width: 12px 0 12px 20px;
    }

    .hv3-hero__watch {
        font-size: 18px;
    }
}

.hv3-hero__video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Launch trailer modal ───────────────────────── */
.hv3-trailer[hidden] {
    display: none;
}

.hv3-trailer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hv3-trailer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    animation: heroFadeIn 0.25s ease forwards;
}

.hv3-trailer__dialog {
    position: relative;
    width: 100%;
    max-width: 1100px;
    animation: heroFadeIn 0.3s ease forwards;
}

.hv3-trailer__frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.hv3-trailer__frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hv3-trailer__close {
    position: absolute;
    top: -46px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hv3-trailer__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 767px) {
    .hv3-trailer {
        padding: 16px;
    }

    .hv3-trailer__close {
        top: -44px;
    }
}

.hv3-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--nla-accent-bright);
    margin-bottom: 24px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.15s forwards;
}

.hv3-hero__eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--nla-accent-bright);
}

.hv3-hero__title {
    font-family: var(--nla-font-display);
    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 0.95;
    letter-spacing: 1px;
    color: #fff;
    margin: 0 0 20px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.3s forwards;
}

.hv3-hero__title span {
    display: block;
    background: linear-gradient(135deg, #fff 40%, var(--nla-accent-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hv3-hero__subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--nla-text-mid);
    margin-bottom: 36px;
    max-width: 440px;
    font-weight: 300;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.45s forwards;
}

.hv3-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.6s forwards;
}

/* --- TRUST SECTION (own zone between products and news) --- */
.trust-section {
    background: #ebe9e3;
    padding: 64px 0;
}

.trust-bar-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(20, 20, 30, 0.5);
    margin-bottom: 28px;
}


.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--nla-accent);
    color: #fff;
    font-family: var(--nla-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-hero-primary:hover {
    background: var(--nla-accent-bright);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--nla-accent-glow);
}

.btn-hero-primary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover svg {
    transform: translateX(3px);
}


.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 2.5vw, 36px);
    flex-wrap: wrap;
}

.trust-logos img {
    height: 22px;
    width: auto;
    object-fit: contain;
    filter: brightness(0);
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.trust-logos img:hover {
    opacity: 0.75;
}

/* --- PRODUCTS SHOWCASE --- */
.products-showcase {
    padding: 120px 0;
    background: var(--nla-bg);
}

/* Light theme variant — breaks up the dark page rhythm */
.products-showcase--light {
    background: var(--nla-light-bg);
    position: relative;
}

.products-showcase--light::before,
.products-showcase--light::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
}

.products-showcase--light::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent);
}

.products-showcase--light::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--nla-accent-bright);
    margin-bottom: 12px;
}

.section-heading {
    font-family: var(--nla-font-display);
    font-size: clamp(36px, 4vw, 52px);
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 60px;
}


/* Editorial product spotlight — no card chrome, image at natural aspect */
.product-spotlight {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
}

.product-spotlight__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 32px 80px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.product-spotlight:hover .product-spotlight__media img {
    transform: translateY(-2px);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 16px 40px rgba(0, 0, 0, 0.1),
        0 40px 96px rgba(0, 0, 0, 0.1);
}

.product-spotlight__content {
    display: flex;
    flex-direction: column;
}

.product-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--nla-accent-bright);
    margin-bottom: 14px;
}

.products-showcase--light .product-eyebrow {
    color: var(--nla-accent);
}

.product-name {
    font-family: var(--nla-font-display);
    font-size: clamp(40px, 4vw, 56px);
    color: #fff;
    letter-spacing: 1px;
    margin: 0 0 20px;
    line-height: 1;
}

.products-showcase--light .product-name {
    color: var(--nla-light-text);
}

.product-desc {
    font-size: 16px;
    line-height: 1.65;
    color: var(--nla-text-mid);
    margin-bottom: 24px;
    font-weight: 300;
}

.products-showcase--light .product-desc {
    color: var(--nla-light-text-mid);
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.product-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--nla-border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--nla-text-dim);
}

.products-showcase--light .product-feature-tag {
    background: rgba(20, 20, 30, 0.03);
    border-color: var(--nla-light-border);
    color: var(--nla-light-text-mid);
}

.product-feature-tag::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--nla-accent);
    border-radius: 50%;
}

.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-product {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    font-family: var(--nla-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-product svg {
    transition: transform 0.3s ease;
}

.btn-product:hover svg {
    transform: translateX(3px);
}

.btn-product-primary {
    background: var(--nla-accent);
    color: #fff;
    border: none;
}

.btn-product-primary:hover {
    background: var(--nla-accent-bright);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--nla-accent-glow);
}

.btn-product-ghost {
    background: transparent;
    color: var(--nla-text-mid);
    border: 1px solid var(--nla-border);
}

.btn-product-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.products-showcase--light .btn-product-ghost {
    color: var(--nla-light-text-mid);
    border-color: rgba(20, 20, 30, 0.18);
}

.products-showcase--light .btn-product-ghost:hover {
    color: var(--nla-light-text);
    border-color: rgba(20, 20, 30, 0.4);
    background: rgba(20, 20, 30, 0.03);
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

.btn-section {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--nla-text-mid);
    font-family: var(--nla-font-body);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--nla-border);
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-section:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* --- NEWS SECTION --- */
.news-showcase {
    padding: 100px 0;
    background: var(--nla-bg);
    border-top: 1px solid var(--nla-border);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--nla-card);
    border: 1px solid var(--nla-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.news-card-image {
    height: 180px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 24px;
}

.news-card-title {
    font-family: var(--nla-font-body);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.4;
}

.news-card-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: var(--nla-text-dim);
    margin-bottom: 16px;
}

.news-card-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--nla-accent-bright);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.news-card-link:hover {
    color: #fff;
    text-decoration: none;
}

/* --- Footer Dark Override --- */
body.home-v3 .site-footer .footer-main {
    background: #0c0c14;
    border-top: 1px solid var(--nla-border);
}

body.home-v3 .site-footer .footer-copyright {
    background: #08080f;
}

/* --- ANIMATIONS --- */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .hv3-hero .container {
        flex-direction: column;
        gap: 40px;
    }

    .hv3-hero__content {
        flex: none;
        max-width: 100%;
        text-align: center;
    }

    .hv3-hero__subtitle {
        max-width: 100%;
    }

    .hv3-hero__actions {
        justify-content: center;
    }

    .hv3-hero__media {
        flex: none;
        max-width: 560px;
        margin: 0 auto;
    }

    .product-spotlight {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .trust-section {
        padding: 48px 0;
    }
}

@media (max-width: 767px) {
    .hv3-hero {
        padding: 100px 0 50px;
    }

    .hv3-hero__title {
        font-size: 38px;
    }

    .trust-logos {
        gap: 30px;
    }

    .trust-logos img {
        height: 20px;
    }

    .products-showcase,
    .news-showcase {
        padding: 60px 0;
    }

    .section-heading {
        font-size: 32px;
        margin-bottom: 40px;
    }

}

@media (max-width: 480px) {
    .hv3-hero__title {
        font-size: 32px;
    }

    .hv3-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary {
        width: 100%;
        justify-content: center;
    }

    .trust-logos {
        gap: 20px;
    }

    .trust-logos img {
        height: 16px;
    }
}

/* --- Utility: hide default hero styles from front.css --- */
body.home-v3 #hero {
    display: none !important;
}

body.home-v3 #professional {
    display: none !important;
}

body.home-v3 #products {
    display: none !important;
}

body.home-v3 #articles {
    display: none !important;
}

body.home-v3 #real_life {
    display: none !important;
}
