/* ============================================
   YOOSH Hero Section
   Full-viewport hero with gradient mesh background,
   headline, subheadline, CTAs, and floating code.
   ============================================ */

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-gradient {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: heroFloat 12s ease-in-out infinite;
}

.hero__bg-gradient--violet {
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.hero__bg-gradient--cyan {
    background: var(--secondary);
    bottom: -200px;
    left: -100px;
    animation-delay: -6s;
}

.hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
}

.hero__badge {
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.hero__title {
    font-size: var(--text-7xl);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto var(--space-8);
    line-height: var(--leading-relaxed);
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
    animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.hero__code-float {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.hero__code-window {
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hero__code-titlebar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}

.hero__code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.hero__code-dot--red { background: #EF4444; }
.hero__code-dot--yellow { background: #F59E0B; }
.hero__code-dot--green { background: #06D6A0; }

.hero__code-body {
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: left;
    overflow-x: auto;
}

.hero__code-body pre {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    white-space: pre;
}

.hero__code-body .code-comment {
    color: var(--text-muted);
}

.hero__code-body .code-string {
    color: var(--secondary);
}

.hero__code-body .code-keyword {
    color: var(--primary-glow);
}

.hero__code-body .code-highlight {
    color: var(--accent-warm);
}

@media (max-width: 768px) {
    .hero__title {
        font-size: var(--text-4xl);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__code-float {
        display: none;
    }
}
