/* ==========================================================================
   DYNAMIC HERO ANIMATION & KINETIC TYPOGRAPHY STYLES
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 7rem;
    padding-bottom: 4rem;
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Phase Tracker Header */
.animation-tracker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
}

.tracker-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.tracker-step.active {
    color: var(--text-primary);
}

.tracker-step.step-1.active .step-num { color: var(--accent-red); }
.tracker-step.step-2.active .step-num { color: var(--accent-cyan); }
.tracker-step.step-3.active .step-num { color: var(--accent-gold); }

.tracker-line {
    width: 30px;
    height: 2px;
    background: var(--border-color);
}

/* Hero Stage Box */
.hero-animation-stage {
    position: relative;
    width: 100%;
    max-width: 950px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Floating Friction Badges (Phase 1) */
.floating-friction-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.floating-friction-container.visible {
    opacity: 1;
}

.friction-badge {
    position: absolute;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-red);
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.3);
    box-shadow: 0 0 15px var(--accent-red-glow);
    animation: floatParticle 5s ease-in-out infinite alternate;
}

.badge-1 { top: 10%; left: 8%; animation-delay: 0s; }
.badge-2 { top: 20%; right: 10%; animation-delay: -1.2s; }
.badge-3 { bottom: 25%; left: 5%; animation-delay: -2.5s; }
.badge-4 { bottom: 15%; right: 8%; animation-delay: -3.8s; }
.badge-5 { top: -5%; left: 40%; animation-delay: -0.8s; }
.badge-6 { bottom: -2%; right: 35%; animation-delay: -4.2s; }

@keyframes floatParticle {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    100% { transform: translateY(-20px) scale(1.05) rotate(3deg); }
}

/* Phase Container Transitions */
.animation-phase {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animation-phase.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
}

.animation-phase.fade-in {
    animation: phaseEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes phaseEnter {
    0% { opacity: 0; transform: translateY(30px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Headlines Typography */
.hero-headline {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.text-problem {
    color: var(--accent-red);
    text-shadow: 0 0 35px var(--accent-red-glow);
}

.text-solver {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.text-solver .prefix {
    font-size: 0.45em;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    font-weight: 700;
}

.glow-text {
    text-shadow: 0 0 30px var(--accent-cyan-glow);
}

.text-brand {
    font-size: clamp(3.2rem, 8vw, 6rem);
}

.brand-reveal-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    animation: pulseBadge 2s infinite alternate;
}

@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
    100% { transform: scale(1.05); box-shadow: 0 0 25px rgba(245, 158, 11, 0.5); }
}

.phase-caption {
    font-size: 1.25rem;
    max-width: 580px;
    color: var(--text-secondary);
}

.brand-subtext {
    font-size: 1.3rem;
    max-width: 720px;
    line-height: 1.6;
    margin-bottom: 2.25rem;
    color: var(--text-secondary);
}

/* Glitch Effect for "Problems" */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip: rect(0, 0, 0, 0);
}

.glitch::before {
    left: -2px;
    text-shadow: 2px 0 var(--accent-cyan);
    animation: glitchAnim1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: 2px;
    text-shadow: -2px 0 var(--accent-red);
    animation: glitchAnim2 2.5s infinite linear alternate-reverse;
}

@keyframes glitchAnim1 {
    0% { clip: rect(20px, 9999px, 40px, 0); }
    20% { clip: rect(60px, 9999px, 80px, 0); }
    40% { clip: rect(10px, 9999px, 30px, 0); }
    60% { clip: rect(50px, 9999px, 70px, 0); }
    80% { clip: rect(30px, 9999px, 50px, 0); }
    100% { clip: rect(80px, 9999px, 100px, 0); }
}

@keyframes glitchAnim2 {
    0% { clip: rect(50px, 9999px, 70px, 0); }
    20% { clip: rect(10px, 9999px, 30px, 0); }
    40% { clip: rect(70px, 9999px, 90px, 0); }
    60% { clip: rect(20px, 9999px, 40px, 0); }
    80% { clip: rect(60px, 9999px, 80px, 0); }
    100% { clip: rect(40px, 9999px, 60px, 0); }
}

/* Hero Actions & Stats Strip */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glass);
}

.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.stat-name {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

/* Sequence Control Toolbar */
.animation-controls {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .hero-headline { font-size: 2.8rem; }
    .hero-stats-strip { flex-direction: column; gap: 1rem; border-radius: var(--radius-lg); }
    .stat-divider { width: 100%; height: 1px; }
}

/* ==========================================================================
   INTERACTIVE CUSTOM CURSOR & MODAL KEYFRAME ANIMATIONS
   ========================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--color-bench-yellow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    margin-top: -4px;
    margin-left: -4px;
    box-shadow: 0 0 10px var(--color-bench-yellow);
    transition: transform 0.15s ease, background 0.2s ease;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(244, 206, 20, 0.5);
    background: rgba(244, 206, 20, 0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    margin-top: -19px;
    margin-left: -19px;
    backdrop-filter: blur(2px);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, margin 0.25s ease, background 0.25s ease;
}

.cursor-dot.cursor-hover {
    transform: scale(1.8);
    background: #FFF;
    box-shadow: 0 0 15px #FFF;
}

.cursor-ring.cursor-hover {
    width: 58px;
    height: 58px;
    margin-top: -29px;
    margin-left: -29px;
    border-color: var(--color-bench-yellow);
    background: rgba(244, 206, 20, 0.12);
    box-shadow: 0 0 20px rgba(244, 206, 20, 0.3);
}

/* MODAL POP-UP ENTRY KEYFRAMES */
@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

