/* --- Premium Hero Section (Mobile First) --- */
:root {
    --hero-bg-gradient: radial-gradient(circle at 15% 50%, #1e293b 0%, #0f172a 100%);
    --surface-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --accent-glow: rgba(42, 140, 166, 0.4);
    --text-hero-main: #ffffff;
    --text-hero-muted: #94a3b8;
    --anim-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-premium {
    position: relative;
    min-height: 100vh;
    background: var(--hero-bg-gradient);
    overflow: hidden;
    padding: 160px 20px 100px;
    /* Balanced spacing: clears header (120px) + 40px breathing room */
    display: flex;
    align-items: center;
}

.hero-container-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

/* --- Left: Content --- */
.hero-content-left {
    z-index: 10;
    max-width: 600px;
    /* Slightly narrower for better reading line length */
    padding-right: 20px;
}

/* Staggered Entrance Init State */
.reveal-el {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--anim-ease), transform 0.8s var(--anim-ease);
}

.hero-premium.active .reveal-el {
    opacity: 1;
    transform: translateY(0);
}

/* Delays */
.hero-premium.active .reveal-el:nth-child(1) {
    transition-delay: 0.1s;
}

/* Eyebrow */
.hero-premium.active .reveal-el:nth-child(2) {
    transition-delay: 0.15s;
}

/* H1 */
.hero-premium.active .reveal-el:nth-child(3) {
    transition-delay: 0.25s;
}

/* Quote */
.hero-premium.active .reveal-el:nth-child(4) {
    transition-delay: 0.35s;
}

/* P */
.hero-premium.active .reveal-el:nth-child(5) {
    transition-delay: 0.45s;
}

/* Buttons */

.eyebrow {
    font-size: 0.75rem;
    /* Reduced from 0.85rem */
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
    /* Reduced from 20px */
    background: rgba(42, 140, 166, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(42, 140, 166, 0.2);
}

.hero-h1 {
    font-size: 2.6rem;
    /* Reduced from 3rem */
    line-height: 1.15;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    /* Reduced from 30px */
    letter-spacing: -0.5px;
}

.quote-wrapper {
    position: relative;
    padding-left: 20px;
    /* Reduced from 24px */
    margin-bottom: 25px;
    /* Reduced from 30px */
}

.quote-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0%;
    /* Animates to 100% */
    background: var(--primary);
    transition: height 1s var(--anim-ease);
}

.hero-premium.active .quote-line {
    height: 100%;
    transition-delay: 0.3s;
}

.hero-quote-text {
    font-size: 1.15rem;
    /* Reduced from 1.35rem */
    font-style: italic;
    color: #cbd5e1;
    line-height: 1.5;
    font-weight: 300;
}

.hero-p {
    font-size: 1.05rem;
    /* Slight bump for readability */
    line-height: 1.65;
    color: var(--text-hero-muted);
    margin-bottom: 35px;
    max-width: 95%;
}

.btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-hero:active {
    transform: scale(0.98);
}

.btn-hero-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(42, 140, 166, 0.3);
}

.btn-hero-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

/* Hover Sheen */
.btn-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-hero:hover::after {
    left: 100%;
}

/* --- Right: Neural Network Animation --- */
.hero-visual-right {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1.5s ease 0.6s;
}

.hero-premium.active .hero-visual-right {
    opacity: 1;
}

#heroAnimContainer {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    #heroAnimContainer canvas {
        display: none;
    }

    /* Fallback static image if desired, or simplified visual */
    #heroAnimContainer {
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.05);
        /* Placeholder glass look */
    }
}



/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .reveal-el,
    .hero-premium.active .reveal-el {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .card-stack,
    .glass-card,
    .chart-bar {
        animation: none;
        transform: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-visual-right {
        height: 350px;
    }
}

/* Animations */
@keyframes barGrow {
    0% {
        height: 20%;
        opacity: 0.5;
    }

    100% {
        height: 80%;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .reveal-el,
    .hero-premium.active .reveal-el {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .card-stack,
    .glass-card,
    .chart-bar {
        animation: none;
        transform: none;
    }
}

/* Desktop Split */
@media (min-width: 1024px) {
    .hero-container-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-h1 {
        font-size: 3.5rem;
        /* Scaled for Desktop */
    }

    .hero-content-left {
        text-align: left;
    }

    .hero-visual-right {
        justify-content: flex-end;
    }
}

@media (max-width: 1023px) {
    .hero-container-grid {
        text-align: center;
        /* Remove grid gap since they are now layered */
        display: block;
    }

    .hero-content-left {
        margin: 0 auto;
        position: relative;
        z-index: 2;
        /* Content above visual */
        padding-top: 40px;
    }

    .quote-wrapper {
        padding-left: 20px;
        text-align: left;
        display: inline-block;
    }

    .btn-group {
        justify-content: center;
    }

    /* Move Visual to Background */
    .hero-visual-right {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin-top: 0;
        z-index: 0;
        /* Behind content */
        justify-content: center;
        align-items: center;
        opacity: 0.3;
        /* Subtle background */
        pointer-events: none;
        /* Let clicks pass through to content */
    }

    .card-stack {
        transform: scale(0.6);
        /* Smaller for background */
    }
}