/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
    background: var(--pocket-dark);
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.hero__background svg {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* Subtle animation for active nodes */
@keyframes nodePulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

@keyframes nodeGlow {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.2; }
}

.hero__background .node-active {
    animation: nodePulse 4s ease-in-out infinite;
}

.hero__background .node-glow {
    animation: nodeGlow 6s ease-in-out infinite;
}

.hero__background .path-flow {
    stroke: #4c9bf5 !important;
    stroke-opacity: 0.45;
    stroke-dasharray: 8 4;
    stroke-dashoffset: 0;
    animation: flowDash 20s linear infinite, flowPulse 4s ease-in-out infinite;
}

@keyframes flowDash {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -100; }
}

@keyframes flowPulse {
    0%, 100% { stroke-opacity: 0.35; }
    50% { stroke-opacity: 0.55; }
}

/* Failing node path animations */
.hero__background .path-flow-fail {
    stroke: #ef4444 !important;
    stroke-opacity: 0.4;
    stroke-dasharray: 8 4;
    stroke-dashoffset: 0;
    animation: flowDash 20s linear infinite, failPulse 2s ease-in-out infinite;
}

@keyframes failPulse {
    0%, 100% { stroke-opacity: 0.25; }
    50% { stroke-opacity: 0.5; }
}

/* Reroute path animations */
.hero__background .path-flow-reroute {
    stroke: #4c9bf5 !important;
    stroke-opacity: 0.5;
    stroke-dasharray: 6 3;
    stroke-dashoffset: 0;
    animation: flowDash 15s linear infinite, reroutePulse 3s ease-in-out infinite;
}

@keyframes reroutePulse {
    0%, 100% { stroke-opacity: 0.4; }
    50% { stroke-opacity: 0.65; }
}

/* Failing node animations */
.hero__background .node-fail {
    animation: nodeFail 2s ease-in-out infinite;
}

.hero__background .node-glow-fail {
    animation: nodeGlowFail 2s ease-in-out infinite;
}

@keyframes nodeFail {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.45; }
}

@keyframes nodeGlowFail {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(32, 62, 169, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(76, 155, 245, 0.1), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pocket-yellow);
    margin-bottom: 24px;
}

.hero__eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--pocket-yellow);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero__title-line {
    display: block;
}

.hero__title-highlight {
    color: var(--pocket-interactive-blue);
}

.hero__description {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero__description strong {
    color: #fff;
    font-weight: 600;
}

.hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }
    
    .hero__description {
        font-size: 1.0625rem;
    }
    
    .hero__cta-group {
        flex-direction: column;
    }
    
    .hero__cta-group .btn {
        width: 100%;
    }
}
