.automation-hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 2rem;
    /* background: linear-gradient(135deg, #f9fafb 0%, #faf5ff 50%, #fff7ed 100%); */
}

.automation-hero__container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.automation-hero__copy h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.automation-hero__copy p {
    font-size: 1.125rem;
    max-width: 520px;
    color: #4b5563;
}

.automation-hero__visual {
    position: relative;
}

.automation-hero .gradient-text {
    /* background: linear-gradient(90deg, #2563eb 0%, #9333ea 50%, #f97316 100%); */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.automation-hero .canvas-container,
.automation-hero .stages-container {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}

.automation-hero .canvas-container {
    height: 520px;
}

.automation-hero #animationCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.automation-hero .stages-container {
    min-height: 220px;
}

.automation-hero .stage-label {
    position: absolute;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

underline{
    text-decoration: underline;
    text-decoration-color: #2563eb;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.automation-hero .stage-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.automation-hero .stage-label:hover .stage-title {
    transform: scale(1.1);
    color: #2563eb;
}

/* Allows JS to simulate hover (used for the guided intro on first view). */
.automation-hero .stage-label.is-guided-hover .stage-title {
    transform: scale(1.1);
    color: #2563eb;
}

.automation-hero .stage-description {
    color: #6b7280;
    line-height: 1.5;
    font-size: 1.1rem;
    max-width: 220px;
    margin: 0 auto;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.automation-hero .stage-label:hover .stage-description {
    opacity: 1;
    max-height: 220px;
}

/* Allows JS to simulate hover (used for the guided intro on first view). */
.automation-hero .stage-label.is-guided-hover .stage-description {
    opacity: 1;
    max-height: 220px;
}

.automation-hero .floating-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: automation-hero-float 18s ease-in-out infinite alternate;
}

.automation-hero .circle-1 {
    top: -150px;
    left: -120px;
}

.automation-hero .circle-2 {
    bottom: -180px;
    right: -120px;
}

@keyframes automation-hero-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, -30px) scale(1.05);
    }
    100% {
        transform: translate(-20px, 20px) scale(1);
    }
}

@media (max-width: 768px) {
    .automation-hero {
        padding: 3rem 0;
    }

    .automation-hero__copy h1 {
        font-size: 2.4rem;
    }

    .automation-hero .canvas-container {
        height: 320px;
    }

    .automation-hero .stages-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        position: static;
        width: 100%;
        transform: none;
        left: 0;
    }

    .automation-hero .stage-label {
        position: relative;
        width: 100%;
        transform: none;
    }
}
