/* ============================================
   NEURALIVO — Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
}

/* ── Grid Background ── */
.hero__grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    z-index: 0;
}

/* ── Radial Glows ── */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.hero__glow--primary {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    opacity: 0.08;
    top: -100px;
    right: -100px;
    animation: hero-pulse 8s ease-in-out infinite alternate;
}

.hero__glow--secondary {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    opacity: 0.06;
    bottom: -100px;
    left: -100px;
    animation: hero-pulse 10s ease-in-out infinite alternate-reverse;
}

.hero__glow--tertiary {
    width: 300px;
    height: 300px;
    background: var(--accent-tertiary);
    opacity: 0.05;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: hero-pulse 12s ease-in-out infinite alternate;
}

@keyframes hero-pulse {
    0% { transform: scale(1); opacity: 0.06; }
    100% { transform: scale(1.2); opacity: 0.12; }
}

/* ── Content ── */
.hero__content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    max-width: 800px;
    padding: 0 var(--space-xl);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    margin-bottom: var(--space-2xl);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--radius-full);
    animation: hero-fade-in 0.8s ease-out;
}

.hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 12px var(--accent-secondary);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: var(--fw-extrabold);
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    animation: hero-fade-in 0.8s ease-out 0.1s both;
}

.hero__title-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    animation: hero-fade-in 0.8s ease-out 0.2s both;
}

.hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    animation: hero-fade-in 0.8s ease-out 0.3s both;
}

.hero__cta .btn {
    min-width: 200px;
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Floating Particles (Optional Decoration) ── */
.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero__particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle linear infinite;
}

.hero__particle:nth-child(1) { left: 15%; top: 20%; animation-duration: 15s; animation-delay: 0s; }
.hero__particle:nth-child(2) { left: 35%; top: 60%; animation-duration: 20s; animation-delay: 2s; width: 3px; height: 3px; background: var(--accent-secondary); }
.hero__particle:nth-child(3) { left: 65%; top: 30%; animation-duration: 18s; animation-delay: 4s; }
.hero__particle:nth-child(4) { left: 80%; top: 70%; animation-duration: 22s; animation-delay: 1s; width: 5px; height: 5px; background: var(--accent-secondary); }
.hero__particle:nth-child(5) { left: 50%; top: 80%; animation-duration: 16s; animation-delay: 3s; width: 3px; height: 3px; }
.hero__particle:nth-child(6) { left: 25%; top: 45%; animation-duration: 19s; animation-delay: 5s; background: var(--accent-tertiary); }

@keyframes float-particle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* ── Subpage Hero ── */
.page-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
    overflow: hidden;
}

.page-hero__grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.page-hero__glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.06;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.page-hero__content {
    position: relative;
    z-index: var(--z-base);
    max-width: 700px;
}

.page-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--fw-extrabold);
    margin-bottom: var(--space-lg);
}

.page-hero__subtitle {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}
