/* ============================================
   CHAPTER 1: PROLOGUE — HERO SECTION
   Full-screen hero with text scramble + parallax
   ============================================ */

/* --- Hero Layout --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* --- Status Badge --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-full);
    font-family: var(--heading);
    font-size: 0.8rem;
    font-weight: 500;
    color: #22c55e;
    margin-bottom: 32px;
    will-change: transform;
}

.hero-badge .hero-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: heroStatusPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes heroStatusPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

/* --- Hero Title --- */
.hero-title {
    font-family: var(--heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-primary);
    will-change: transform;
}

.hero-title .hero-line {
    display: block;
}

/* Gradient text on "Architect &" line */
.hero-title .hero-gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text scramble: characters still scrambling get accent color + slight scale */
.hero-scramble-text .hero-char-scrambling {
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
    display: inline-block;
    transform: scale(1.1);
    transition: color 80ms ease, transform 80ms ease;
}

/* Characters that have been revealed return to normal */
.hero-scramble-text .hero-char-revealed {
    display: inline-block;
    transform: scale(1);
    transition: color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

/* For the gradient line, scrambling chars should still show accent-primary,
   but revealed chars go back to gradient */
.hero-gradient-text .hero-char-revealed {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-gradient-text .hero-char-scrambling {
    -webkit-text-fill-color: var(--accent-primary);
    background: none;
}

/* --- Hero Description --- */
.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.7;
    will-change: transform;
}

/* --- CTA Buttons --- */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    will-change: transform;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    color: #fff;
    font-family: var(--heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: none;
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient-hover);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.hero-btn-primary:hover::before {
    opacity: 1;
}

.hero-btn-primary span,
.hero-btn-primary svg {
    position: relative;
    z-index: 1;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--heading);
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
}

.hero-btn-secondary:hover {
    border-color: var(--glass-border-hover);
    background: var(--surface-hover);
    transform: translateY(-2px);
}

/* --- Scroll Indicator --- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-family: var(--heading);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: heroScrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator .hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-tertiary), transparent);
    position: relative;
    overflow: hidden;
}

/* Animated shimmer running down the scroll line */
.hero-scroll-indicator .hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--accent-secondary), transparent);
    animation: heroScrollShimmer 2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes heroScrollShimmer {
    0% { top: -50%; }
    100% { top: 150%; }
}

/* ============================================
   RESPONSIVE — HERO
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 100px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .hero-scroll-indicator {
        bottom: 24px;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.75rem;
    }
}

/* ============================================
   REDUCED MOTION — HERO
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-badge .hero-status-dot {
        animation: none;
    }

    .hero-scroll-indicator {
        animation: none;
    }

    .hero-scroll-indicator .hero-scroll-line::after {
        animation: none;
    }

    .hero-scramble-text .hero-char-scrambling {
        transform: none;
        transition: none;
    }

    .hero-scramble-text .hero-char-revealed {
        transition: none;
    }
}
