/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 12px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    z-index: 0;
}

.hero-bg video,
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transform: scale(1.05);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 200px);
    width: 100%;
    padding: 0 var(--space-lg);
}

.hero-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-2xl);
    margin-top: auto;
}

.hero-brand {
    font-size: clamp(60px, 12vw, 200px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

/* --- Typewriter --- */
.typewriter-container {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: var(--text-lg);
    font-family: var(--font-mono);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
    min-height: 1.6em;
}

.typewriter-text {
    color: var(--color-accent);
    font-weight: 500;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--color-accent);
    margin-left: 2px;
    animation: cursorBlink 0.9s step-start infinite;
}

/* --- Interactive Grid Canvas --- */
#interactive-grid-container {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

#interactive-grid-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    inset: 0;
}

#grid-canvas {
    z-index: 1;
    pointer-events: none;
}

#hover-canvas {
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
}

#noise-canvas {
    z-index: 3;
    pointer-events: none;
    image-rendering: pixelated;
}

/* --- Hero Text / Stats --- */
.hero-headline {
    font-size: var(--text-2xl);
    font-weight: 500;
    max-width: 600px;
    line-height: 1.2;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    opacity: 0.7;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item span {
    font-size: var(--text-lg);
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-white);
}

@media (max-width: 900px) {
    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xl);
    }

    .hero-brand {
        font-size: clamp(50px, 15vw, 100px);
    }
}
