/* Hero Centered Layout */
.hero-centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 8rem; /* Account for fixed nav */
    position: relative;
    overflow: hidden;
}

.hero-content-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content-center h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content-center .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* New Outline Button for Hero */
.btn-outline-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    backdrop-filter: blur(4px);
}

.btn-outline-hero:hover {
    background: #fff;
    color: #050505;
}

/* Stats Center (Legacy - kept for safety) */
.hero-stats-center {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.stat-val {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
    display: block;
}

.hero-visual-full {
    width: 100%;
    height: 60vh;
    min-height: 500px;
    position: relative;
    margin-top: auto;
}

/* Hero Unified Layout */
.hero-unified {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10rem; /* Increased from 6rem */
    padding-bottom: 2rem;
}

/* Background Animation Layer */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Radial Gradient Overlay */
.hero-radial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.7) 60%, rgba(5, 5, 5, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Content Container */
.hero-content-unified {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content-unified h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-content-unified .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Stage Indicator Row */
.stage-indicator-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.stage-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.3;
    transition: all 0.4s ease;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 4px;
}

/* Moving Underline */
.stage-underline {
    position: absolute;
    bottom: 10px;
    height: 2px;
    width: 40px;
    background: #fff;
    transition: all 0.4s ease;
    display: none;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 5px rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.stage-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Active Stage Styling */
.stage-item.active {
    opacity: 1;
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Specific Colors for Active States */
.stage-item[data-stage="annotate"].active .stage-dot { background: #00E5FF; box-shadow: 0 0 10px #00E5FF; }
.stage-item[data-stage="enrich"].active .stage-dot { background: #D500F9; box-shadow: 0 0 10px #D500F9; }
.stage-item[data-stage="insight"].active .stage-dot { background: #FF3D00; box-shadow: 0 0 10px #FF3D00; }
.stage-item[data-stage="feedback"].active .stage-dot { background: #22C55E; box-shadow: 0 0 10px #22C55E; }

.stage-item[data-stage="annotate"].active { color: #00E5FF; }
.stage-item[data-stage="enrich"].active { color: #D500F9; }
.stage-item[data-stage="insight"].active { color: #FF3D00; }
.stage-item[data-stage="feedback"].active { color: #22C55E; }

/* Flash Animation */
@keyframes stageFlash {
    0% { opacity: 1; text-shadow: 0 0 20px currentColor; transform: scale(1.1); }
    50% { opacity: 1; text-shadow: 0 0 10px currentColor; transform: scale(1.05); }
    100% { opacity: 0.3; text-shadow: none; transform: scale(1); }
}

.stage-item.flash {
    animation: stageFlash 0.5s ease-out;
}

/* Dynamic Description */
.stage-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    height: 1.5rem;
    opacity: 0.8;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   HERO FOOTER SECTION (Metrics + Logos) - CRITICAL FIXES
   ========================================================================== */

.hero-footer-section {
    /* Highly transparent gradient background */
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.7) 0%, rgba(5, 5, 5, 0.1) 50%, rgba(5, 5, 5, 0.8) 100%);
    
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 4rem 0;
    box-shadow: none;
    display: block;
}

/* Layout Grid */
.hero-footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1.2fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

/* Metrics Column */
.hero-metrics-column {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.metric-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.metric-box:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.metric-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-box:nth-child(2) .metric-icon { color: var(--accent-purple); }
.metric-box:nth-child(3) .metric-icon { color: var(--accent-green); }

.metric-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.metric-value {
    font-family: 'Space Mono', monospace; /* Force font */
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.metric-label {
    font-family: 'Nunito', sans-serif; /* Force font */
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Vertical Divider */
.footer-vertical-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
}

/* Logos Column */
.hero-logos-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.trusted-label-small {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
    text-align: left;
}

.hero-logo-grid {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align left with title */
}

/* Logo Item Styling - FORCED SIZING */
.hero-logo-item {
    height: 32px !important; /* Force height */
    max-height: 32px !important;
    width: auto !important;
    object-fit: contain;
    
    /* Grayscale filter to handle colored logos */
    filter: grayscale(100%) brightness(0) invert(0.8);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.hero-logo-item:hover {
    filter: grayscale(0%) brightness(1) invert(0);
    opacity: 1;
    transform: translateY(-2px);
}

/* Logo blend fixes for logos with white backgrounds (Bonsai, HP, Tractor Supply) */
.hero-logo-item.logo-bg-fix {
    /* Invert white bg to black so it disappears in screen mode */
    filter: invert(1) grayscale(100%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.hero-logo-item.logo-bg-fix:hover {
    /* Keep inverted geometry but restore color */
    filter: invert(1) grayscale(0%);
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-vertical-divider {
        display: none;
    }
    
    .hero-metrics-column {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-logos-column {
        align-items: center;
    }
    
    .trusted-label-small {
        text-align: center;
    }
    
    .hero-logo-grid {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-content-unified h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 1rem;
    }
    
    .btn, .btn-outline-hero {
        width: 100%;
    }
    
    .stage-indicator-row {
        width: 95%;
        padding: 0.8rem 0.5rem;
        gap: 0.5rem;
    }
    
    .stage-label {
        font-size: 0.7rem;
    }
    
    .stage-arrow {
        display: none;
    }
    
    .hero-metrics-column {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .metric-box {
        width: 100%;
        justify-content: center;
    }
}

/* Laptop / Compact Screen Adjustments */
@media (max-width: 1440px), (max-height: 900px) {
    .hero-unified {
        padding-top: 7rem; /* Reduce top padding */
        padding-bottom: 1rem;
    }
    
    .hero-content-unified h1 {
        font-size: clamp(2.5rem, 5vw, 4rem); /* Smaller title */
        margin-bottom: 1rem;
    }
    
    .hero-content-unified .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem; /* Reduce margin */
        line-height: 1.4;
    }
    
    .hero-cta-group {
        margin-bottom: 2.5rem; /* Reduce gap */
    }
    
    .stage-indicator-row {
        margin-bottom: 0.5rem;
        padding: 0.75rem 1.5rem;
    }
    
    .stage-description {
        margin-bottom: 1rem;
    }
    
    .hero-footer-section {
        padding: 2rem 0; /* Compact footer */
    }
    
    .hero-footer-grid {
        gap: 1.5rem;
    }
}
