/* ══════════════════════════════════════════════════════════════════
   ELOVANCE — HOMEPAGE, NEW LOOK (v2)
   Dark editorial hero · asymmetric split · integrated live terminal.
   Same brand palette (olive / gold / cream), same logos, same content.
   Layers over styles.css; scoped to the homepage where possible.
   ══════════════════════════════════════════════════════════════════ */

:root {
    --rd-gold: #C8A96E;
    --rd-gold-lite: #e8d5a3;
    --rd-olive: #2C3A1E;
    --rd-olive-deep: #131a0d;
    --rd-cream: #F0EDE6;
    --rd-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ══════════════════════════════════════════════════
   HERO — dark, full-bleed, asymmetric
   ══════════════════════════════════════════════════ */
.nx-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 9.5rem 0 5rem;
    background:
        radial-gradient(120% 90% at 78% 6%, rgba(74, 94, 48, 0.5), transparent 55%),
        linear-gradient(158deg, #2F3E20 0%, #26331B 52%, #1F2915 100%);
    overflow: hidden;
}

/* darkening + gold-haze overlay so cream text stays legible over aurora */
.nx-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(110deg, rgba(26, 35, 18, 0.86) 0%, rgba(32, 42, 22, 0.62) 44%, rgba(44, 58, 30, 0.26) 100%),
        linear-gradient(180deg, transparent 55%, rgba(22, 30, 15, 0.6) 100%);
}

/* soft gold light bloom, upper-right */
.nx-hero-glow {
    position: absolute;
    top: -12%;
    right: -8%;
    width: 60vw;
    height: 60vw;
    max-width: 820px;
    max-height: 820px;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(200, 169, 110, 0.22), transparent 62%);
    filter: blur(10px);
    animation: nxGlowDrift 14s ease-in-out infinite alternate;
}

@keyframes nxGlowDrift {
    from { transform: translate(0, 0) scale(1); opacity: 0.85; }
    to   { transform: translate(-4%, 4%) scale(1.12); opacity: 1; }
}

.nx-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.nx-hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 4rem;
    align-items: center;
}

/* ── LEFT copy ─────────────────────────────────── */
.nx-hero-copy { max-width: 620px; }

.nx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    padding: 0.45rem 1rem 0.45rem 0.85rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rd-gold-lite);
    background: rgba(200, 169, 110, 0.10);
    border: 1px solid rgba(200, 169, 110, 0.32);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.nx-eyebrow-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rd-gold);
    box-shadow: 0 0 0 0 rgba(200, 169, 110, 0.55);
    animation: nxPulse 2.2s ease-out infinite;
}

@keyframes nxPulse {
    0%   { box-shadow: 0 0 0 0 rgba(200, 169, 110, 0.5); }
    70%  { box-shadow: 0 0 0 9px rgba(200, 169, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 169, 110, 0); }
}

/* Oversized headline, left-aligned; light→gold gradient for dark bg */
.nx-title {
    font-size: clamp(2.5rem, 4.4vw + 1rem, 5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.042em;
    margin-bottom: 1.6rem;
    text-align: left;
    max-width: 15ch;
}

.nx-hero .gradient-text-animate {
    background-image: linear-gradient(112deg,
        #FFFFFF 0%,
        #F4F1EA 26%,
        #C8A96E 52%,
        #e8d5a3 66%,
        #C8A96E 82%,
        #F4F1EA 100%);
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nx-sub {
    font-size: clamp(1.02rem, 0.6vw + 0.9rem, 1.2rem);
    line-height: 1.7;
    color: rgba(240, 237, 230, 0.78);
    margin-bottom: 2.25rem;
    max-width: 50ch;
}

/* rotating keyword pill — the real pill lives on .rt-inner.
   Keep the host as a clean baseline wrapper (no box of its own),
   then theme the inner pill for the dark hero. */
.nx-hero .rotating-text-host {
    vertical-align: baseline;
}

.nx-hero .rt-inner {
    background: rgba(200, 169, 110, 0.16);
    border-color: rgba(200, 169, 110, 0.5);
    border-radius: 8px;
    padding: 0.14em 0.5em;
    line-height: 1.12;
    color: var(--rd-gold-lite);
    font-weight: 700;
    white-space: nowrap;
    transform: translateY(0.06em);
}

.nx-hero .rt-word {
    padding-bottom: 0.08em;
    line-height: 1.12;
}

.nx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.75rem;
}

.nx-btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(240, 237, 230, 0.32);
    color: var(--rd-cream);
}

.nx-btn-ghost:hover {
    background: var(--rd-cream);
    color: var(--rd-olive);
    border-color: var(--rd-cream);
    transform: translateY(-3px);
}

/* Stat bar with gold hairline dividers */
.nx-stats {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(240, 237, 230, 0.12);
}

.nx-stat { display: flex; flex-direction: column; }

.nx-stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 2.6vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.nx-stat-label {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240, 237, 230, 0.55);
}

.nx-stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(200, 169, 110, 0.65), transparent);
}

/* ── RIGHT visual — live terminal ─────────────── */
.nx-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.nx-visual-head .tagline {
    margin-bottom: 0.3rem;
    color: var(--rd-gold);
}

.nx-visual-title {
    margin: 0;
    color: var(--rd-cream);
    font-size: clamp(1.35rem, 1.4vw + 0.9rem, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nx-terminal-wrap {
    position: relative;
    margin: 0.35rem 0 0.35rem;
}

/* the light terminal card pops beautifully on the dark hero */
.nx-hero .hero-terminal {
    max-width: none;
    border-color: rgba(200, 169, 110, 0.28);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(200, 169, 110, 0.18) inset;
    transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
    transition: transform 0.6s var(--rd-ease);
}

.nx-terminal-wrap:hover .hero-terminal {
    transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
}

/* live seal → floating badge on the terminal corner */
.nx-terminal-wrap .live-seal-wrap {
    position: absolute;
    right: -26px;
    bottom: -30px;
    width: 108px;
    height: 108px;
    z-index: 6;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.nx-terminal-wrap .live-seal-rotate,
.nx-terminal-wrap .live-seal-ring {
    width: 108px;
    height: 108px;
}

.nx-terminal-wrap .live-seal-disc {
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
}

.nx-visual-desc {
    margin: 0;
    max-width: 44ch;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(240, 237, 230, 0.6);
}

/* scroll cue already styled in this file below; ensure light on dark */
.nx-scroll-cue { color: rgba(240, 237, 230, 0.85); }

/* ══════════════════════════════════════════════════
   SCROLL CUE
   ══════════════════════════════════════════════════ */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    animation: rdCueFloat 2.6s ease-in-out infinite;
}

.scroll-cue-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(240, 237, 230, 0.55);
    border-radius: 14px;
    position: relative;
}

.scroll-cue-mouse::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 7px;
    margin-left: -2px;
    border-radius: 3px;
    background: var(--rd-gold);
    animation: rdCueDot 2.6s ease-in-out infinite;
}

@keyframes rdCueFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

@keyframes rdCueDot {
    0%   { opacity: 0; transform: translateY(0); }
    30%  { opacity: 1; }
    60%  { opacity: 1; transform: translateY(12px); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ══════════════════════════════════════════════════
   BUTTONS — bolder gold with shine sweep
   ══════════════════════════════════════════════════ */
.btn-primary {
    background: linear-gradient(135deg, #C8A96E 0%, #e8d5a3 50%, #C8A96E 100%);
    background-size: 220% 100%;
    background-position: 0% 0%;
    transition: background-position 0.55s var(--rd-ease),
        transform 0.4s var(--rd-ease), box-shadow 0.4s var(--rd-ease);
}

.btn-primary:hover {
    background-position: 100% 0%;
    box-shadow: 0 14px 34px rgba(200, 169, 110, 0.42);
}

/* ══════════════════════════════════════════════════
   TRUSTED-TOOLS MARQUEE
   ══════════════════════════════════════════════════ */
.tools-marquee-section {
    background: linear-gradient(180deg, var(--bg-cream-light) 0%, var(--bg-cream) 100%);
    padding: 3.5rem 0 3.75rem;
    border-top: 1px solid rgba(44, 58, 30, 0.06);
    overflow: hidden;
}

.tools-marquee-label {
    display: block;
    text-align: center;
    margin-bottom: 1.9rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tools-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.tools-marquee-track {
    display: flex;
    align-items: center;
    gap: 4.5rem;
    width: max-content;
    animation: rdMarquee 32s linear infinite;
}

.tools-marquee:hover .tools-marquee-track { animation-play-state: paused; }

.tools-marquee-item {
    flex: 0 0 auto;
    color: var(--rd-olive);
    opacity: 0.42;
    transition: opacity 0.35s var(--rd-ease), transform 0.35s var(--rd-ease), color 0.35s var(--rd-ease);
}

.tools-marquee-item svg { display: block; height: 34px; width: auto; fill: currentColor; }

.tools-marquee-item:hover {
    opacity: 1;
    color: var(--rd-gold);
    transform: translateY(-3px) scale(1.08);
}

@keyframes rdMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════
   CTA — a touch bolder
   ══════════════════════════════════════════════════ */
.cta-title {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .nx-hero { padding: 8rem 0 4rem; min-height: auto; }
    .nx-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .nx-title { max-width: 18ch; }
    .nx-hero-visual { max-width: 560px; }
    .nx-hero .hero-terminal { transform: none; }
    .nx-terminal-wrap:hover .hero-terminal { transform: none; }
}

@media (max-width: 768px) {
    .nx-hero { padding: 7rem 0 3.5rem; }
    .nx-title { max-width: none; }
    .nx-stats { gap: 1.25rem; }
    .nx-stat-divider { display: none; }
    .nx-stat { flex: 1 1 28%; }
    .nx-terminal-wrap .live-seal-wrap { right: -10px; bottom: -22px; width: 88px; height: 88px; }
    .nx-terminal-wrap .live-seal-rotate,
    .nx-terminal-wrap .live-seal-ring { width: 88px; height: 88px; }
    .scroll-cue { display: none; }
}

/* ══════════════════════════════════════════════════
   MOTION / TRANSPARENCY GUARDS
   ══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .nx-hero-glow,
    .scroll-cue,
    .scroll-cue-mouse::before,
    .nx-eyebrow-pulse,
    .tools-marquee-track { animation: none !important; }
    .tools-marquee-track { transform: none; }
    .nx-hero .hero-terminal { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
    .nx-eyebrow { background: rgba(200, 169, 110, 0.18); }
}
