/* ==========================================================================
   LEXDATA PREMIUM HERO STYLES
   ========================================================================== */

:root {
    --hero-bg: #050505; /* Matches global site background */
    --hero-accent-teal: #0097A7;
    --hero-accent-purple: #7C3AED;
    --hero-accent-amber: #F59E0B;
    --hero-text-white: #FFFFFF;
    --hero-text-gray: #B0B0B0;
    --hero-text-muted: #9CA3AF;
    --hero-glass: rgba(10, 10, 10, 0.85); /* Neutral dark glass */
    --hero-border: rgba(255, 255, 255, 0.08);
}

/* --- Base Container --- */
.premium-hero {
    position: relative;
    /* Remove solid background to let global neural-bg show through */
    background-color: transparent; 
    overflow: hidden;
    padding-top: 180px; 
    padding-bottom: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Background Gradients - Glassy Sheen */
.hero-ambient-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* Subtle glass gradients, less opaque to show neurons */
    background: 
        radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%), /* Top light source */
        radial-gradient(circle at 15% 30%, rgba(93, 93, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 40%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
    backdrop-filter: blur(1px); /* Slight blur for depth */
}

.container.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px; /* Wider for the visualization */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   LAYER 1: HEADLINE (Redesigned for World-Class Aesthetic)
   ========================================================================== */
.hero-layer-1 {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    position: relative;
}

/* 1. The Badge (Replaces floating label) */
.hero-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--hero-accent-teal);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 151, 167, 0.1);
    white-space: normal;
    line-height: 1.4;
}

    /* The Headline (Tight, Dense, Premium) */
    .hero-headline {
        font-family: 'Inter', 'Nunito', sans-serif;
        color: #FFFFFF;
        font-size: clamp(3.5rem, 6vw, 5rem);
        font-weight: 700;
        line-height: 1.05;
        letter-spacing: -0.03em;
        margin-bottom: 1.5rem;
        background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 20px 80px rgba(255,255,255,0.15);
        white-space: normal !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

.hero-headline .highlight-dot {
    color: var(--hero-accent-teal);
    -webkit-text-fill-color: var(--hero-accent-teal);
    text-shadow: 0 0 20px rgba(0, 151, 167, 0.5);
}

/* 3. The Subtext (Clean, Readable, High Contrast) */
.hero-subtext {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7); /* Precise transparency */
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* 4. The "Stunning" CTA (Glassmorphism + Inner Light) */
.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Primary Button: High Contrast White */
.btn-premium {
    position: relative;
    background: #FFFFFF;
    color: #050505;
    padding: 15px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid #FFFFFF;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-premium:hover {
    transform: translateY(-2px);
    background: #EAEAEA;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    border-color: #EAEAEA;
}

.btn-premium::before {
    display: none; /* Remove inner top border from previous dark style */
}

/* Secondary Premium Button (Glassy Outline) */
.btn-premium-secondary {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    padding: 15px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
}

.btn-premium-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.1);
}

.link-premium {
    color: var(--hero-text-gray);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 1rem;
    transition: color 0.2s;
}

.link-premium:hover {
    color: var(--hero-text-white);
}

/* ==========================================================================
   LAYER 2: PRODUCT VISUALIZATION (THE STREAM)
   ========================================================================== */
.hero-layer-2 {
    width: 100%;
    margin-bottom: 4rem;
    position: relative;
    /* opacity: 0; Removed for safety */
}

/* Stream Container (Canvas) */
.product-stream-container {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5) inset;
    backdrop-filter: blur(10px);
}

#hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Remove old stream styles */
/* ... (Cleaned up in next edit if needed, or just overridden) ... */

/* HUD Active States */
.hud-strip-item.active .hud-dot {
    transform: scale(1.5);
    box-shadow: 0 0 15px var(--step-color);
}

.hud-strip-item.active .hud-title {
    color: #fff;
    text-shadow: 0 0 10px var(--step-color);
}

.hud-strip-item.active .hud-underline {
    opacity: 1;
    transform: scaleX(1);
}

/* Product Labels Below Stream */
.product-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin: 1.5rem auto 0;
    position: relative;
    padding: 0 50px;
}

.prod-label-group {
    text-align: center;
    position: relative;
    z-index: 2;
}

.prod-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.prod-desc {
    display: block;
    font-size: 12px;
    color: var(--hero-text-gray);
}

.prod-name.teal { color: var(--hero-accent-teal); }
.prod-name.purple { color: var(--hero-accent-purple); }
.prod-name.amber { color: var(--hero-accent-amber); }

/* Connecting Lines */
.label-connector {
    position: absolute;
    top: 10px;
    left: 100px;
    right: 100px;
    height: 1px;
    border-top: 1px dotted rgba(255,255,255,0.1);
    z-index: 1;
}

/* LexLoop Return Arc (CSS Only representation) */
.lexloop-return {
    position: absolute;
    right: 0;
    bottom: -20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10B981;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.8;
}

/* ==========================================================================
   LAYER 3: METRICS (Moved Up)
   ========================================================================== */
.hero-layer-3 {
    width: 100%;
    /* Apply borders to metrics to separate from HUD above */
    border-top: 1px solid var(--hero-border);
    border-bottom: 1px solid var(--hero-border);
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 3rem; /* Spacing from HUD */
    margin-bottom: 3rem;
    opacity: 1; 
}

.metrics-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.metric-item {
    text-align: center;
}

.metric-number {
    display: block;
    font-size: 2.25rem; /* 36px */
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
    font-family: 'Space Mono', monospace;
}

.metric-label {
    color: var(--hero-text-gray);
    font-size: 14px;
}

.logo-strip {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-strip img {
    height: 32px; /* Increased size */
    width: auto;
    filter: brightness(0) invert(1); /* Force completely white */
    transition: all 0.3s ease;
    opacity: 0.6;
}

.logo-strip img:hover {
    filter: brightness(0) invert(1); /* Keep white on hover */
    opacity: 1;
}

.testimonial-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
    display: inline-flex;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hero-accent-teal);
}

.testimonial-text {
    text-align: left;
}

.quote-text {
    display: block;
    color: #fff;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 2px;
}

.quote-author {
    display: block;
    color: var(--hero-text-muted);
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   LAYER 4: SOCIAL PROOF (Moved Down)
   ========================================================================== */
.hero-layer-4 {
    width: 100%;
    text-align: center;
    padding-bottom: 4rem;
    padding-top: 1rem;
    /* No borders for social proof at bottom, just spacing */
}

.trusted-label {
    display: block;
    color: var(--hero-text-muted);
    font-size: 13px;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-strip {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
}

/* Logos: Default Style (For Transparent PNGs with any text color) */
/* This forces any transparent logo to become a flat WHITE silhouette */
.logo-strip img {
    height: 32px; 
    width: auto;
    filter: brightness(0) invert(1); /* 1. Turn black 2. Invert to White */
    -webkit-filter: brightness(0) invert(1);
    transition: opacity 0.3s ease; /* Only animate opacity, not the heavy filter */
    opacity: 0.9; 
    /* Removed mix-blend-mode from default to prevent black text disappearing */
}

/* Specific Fix for logos with SOLID WHITE Backgrounds (HP, Tractor Supply) */
/* These need to invert the background to black, then screen it out */
.logo-strip img[src*="hp"], 
.logo-strip img[src*="tractor-supply"] {
    filter: invert(1) grayscale(100%); /* White bg -> Black, Black text -> White */
    -webkit-filter: invert(1) grayscale(100%);
    mix-blend-mode: screen; /* Hides the black background */
    opacity: 1; /* These usually need full opacity to look crisp */
}

/* Hover State */
.logo-strip img:hover {
    opacity: 1;
    /* Do not remove filter on hover, keep them white/clean for the dark theme */
}

.testimonial-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hero-accent-teal);
}

.testimonial-text {
    text-align: left;
}

.quote-text {
    display: block;
    color: #fff;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 2px;
}

.quote-author {
    display: block;
    color: var(--hero-text-muted);
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   LAYER 5: SCROLL INDICATOR
   ========================================================================== */
.hero-layer-5 {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--hero-text-muted);
    font-size: 20px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* ==========================================================================
   ANIMATION CLASSES
   ========================================================================== */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .product-labels { padding: 0 20px; }
    .label-connector { left: 50px; right: 50px; }
}

@media (max-width: 768px) {
    .hero-headline { font-size: 2.5rem; }
    
    .product-stream-container {
        height: auto;
        min-height: 500px;
        overflow: visible;
        background: transparent;
        border: none;
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    .stream-track {
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: relative;
        height: auto;
    }
    
    .stream-item {
        position: relative;
        top: auto;
        left: auto !important;
        transform: none !important;
        width: 100%;
        margin: 0 auto;
    }
    
    .product-labels {
        display: none; /* Hide horizontal labels on mobile */
    }
    
    .metrics-row {
        flex-direction: column;
        gap: 2rem;
    }
    
    .logo-strip {
        gap: 1.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
}

/* Laptop / Compact Screen Adjustments */
@media (max-width: 1440px), (max-height: 900px) {
    .premium-hero {
        padding-top: 160px; /* Increased from 100px to prevent nav overlap */
        min-height: 100vh;
        height: auto; /* Allow content to flow naturally, preventing clipping */
        overflow: visible; /* Ensure content isn't clipped if it overflows bounds slightly */
    }

    .container.hero-container {
        max-width: 1200px;
    }

    .hero-layer-1 {
        margin-bottom: 2rem;
    }

    .hero-headline {
        font-size: 3.5rem; /* Smaller than 4rem */
        margin-bottom: 1rem;
    }

    .hero-subtext {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-layer-2 {
        margin-bottom: 2rem;
        height: auto; /* Allow height to grow for HUD strip */
    }

    .product-stream-container {
        height: 350px; /* Keep the stream itself compact */
    }
    
    .stream-item {
        width: 280px;
        height: 210px;
    }
    
    .product-labels {
        margin-top: 1rem;
    }

    .hero-layer-3 {
        margin-bottom: 2rem;
    }
    
    .logo-strip {
        gap: 2rem;
        margin-bottom: 1rem;
    }

    .metrics-row {
        gap: 3rem;
    }
    
    .metric-number {
        font-size: 1.8rem;
    }
}
