.automation-wrapper {
    position: relative;
    padding: 90px 7vw 130px;
    display: flex;
    flex-direction: column;
    gap: 90px;
    background: radial-gradient(circle at 50% 5%, rgba(0, 255, 136, 0.12), transparent 50%) no-repeat;
}

.automation-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 60% at 20% 20%, rgba(0, 255, 136, 0.12), transparent 70%),
        radial-gradient(50% 50% at 80% 10%, rgba(0, 212, 255, 0.14), transparent 75%);
    mix-blend-mode: screen;
    opacity: 0.8;
}

.automation-wrapper > * {
    position: relative;
    z-index: 1;
}

.automation-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.automation-section__intro {
    max-width: 720px;
}

.automation-section__intro h2 {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.automation-section__intro p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.automation-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    align-items: center;
    gap: 60px;
}

.automation-hero__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.automation-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.28), rgba(0, 212, 255, 0.24));
    color: var(--color-accent-green);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.automation-hero__content h1 {
    font-size: clamp(2.8rem, 5vw, 3.8rem);
    line-height: 1.2;
    color: var(--color-text-primary);
    text-shadow:
        0 0 35px rgba(0, 255, 136, 0.4),
        0 0 65px rgba(0, 212, 255, 0.25);
}

.automation-hero__content p {
    color: rgba(224, 255, 239, 0.85);
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 540px;
}

.automation-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.automation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.automation-btn--primary {
    background: linear-gradient(135deg, rgba(0, 255, 136, 1), rgba(0, 212, 255, 0.95));
    color: #000;
    box-shadow: 0 20px 55px rgba(0, 255, 136, 0.5);
    border: none;
}

.automation-btn--primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 65px rgba(0, 255, 136, 0.6);
}

.automation-btn--ghost {
    border: 1px solid rgba(0, 255, 136, 0.35);
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.1);
}

.automation-btn--ghost:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 136, 0.55);
    box-shadow: inset 0 0 12px rgba(0, 255, 136, 0.25);
    background: rgba(0, 255, 136, 0.08);
}

.automation-hero__media {
    position: relative;
    display: grid;
    place-items: center;
    margin-top: 36px;
}

.automation-hero__media::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    max-width: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.4), rgba(0, 212, 255, 0.18), transparent 70%);
    filter: blur(10px);
}

.automation-hero__media img {
    position: relative;
    width: min(95%, 368px);
    border-radius: 28px;
    border: 1px solid rgba(0, 255, 136, 0.35);
    box-shadow:
        0 30px 65px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(0, 255, 136, 0.35);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(0, 40, 30, 0.65), rgba(0, 0, 0, 0.82));
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 30px 60px rgba(0, 255, 136, 0.35),
        0 0 25px rgba(0, 255, 136, 0.25);
}

.feature-card h3 {
    color: var(--color-text-primary);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.feature-card p {
    color: rgba(220, 255, 239, 0.78);
    font-size: 0.98rem;
    line-height: 1.6;
}

.automation-steps {
    display: flex;
    align-items: flex-start;
    gap: 64px;
    overflow-x: auto;
    padding: 10px 12px 22px 16px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.3) rgba(0, 0, 0, 0.2);
}

.automation-steps::-webkit-scrollbar {
    height: 8px;
}

.automation-steps::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 8px;
}

.automation-steps::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.step-card {
    position: relative;
    flex: 0 0 clamp(240px, 45vw, 320px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 12px 16px;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    scroll-snap-align: start;
}

.step-card::after {
    content: "\f178";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 28px;
    color: var(--color-accent-green);
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(28px, -50%);
    text-shadow: 0 0 18px rgba(0, 255, 136, 0.45);
    opacity: 0.85;
    pointer-events: none;
}

.step-card:last-of-type::after {
    display: none;
}

.step-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.step-badge {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-accent-green);
}

.step-card h3 {
    color: var(--color-text-primary);
    font-size: 1.5rem;
    margin: 0;
}

.step-card p {
    color: rgba(214, 255, 237, 0.78);
    line-height: 1.6;
    margin: 0;
}

.step-media {
    display: grid;
    place-items: center;
}

.step-media img {
    width: min(100%, 320px);
    border-radius: 24px;
    border: 1px solid rgba(0, 255, 136, 0.35);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(0, 255, 136, 0.25);
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.adv-card {
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(0, 30, 20, 0.8), rgba(0, 0, 0, 0.88));
    border: 1px solid rgba(0, 255, 136, 0.18);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

.adv-card h3 {
    margin: 0 0 12px 0;
    color: var(--color-text-primary);
}

.adv-card ul {
    list-style: disc;
    padding-left: 20px;
    color: rgba(208, 255, 236, 0.75);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.automation-closing {
    text-align: center;
    padding: 80px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(0, 212, 255, 0.12));
    border: 1px solid rgba(0, 255, 136, 0.25);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(0, 255, 136, 0.2);
}

.automation-closing h2 {
    margin-bottom: 16px;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    color: var(--color-text-primary);
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.35);
}

.automation-closing p {
    max-width: 620px;
    margin: 0 auto 32px;
    color: rgba(210, 255, 236, 0.78);
    line-height: 1.7;
}

@media (max-width: 1200px) {
    .automation-wrapper {
        gap: 80px;
    }

    .automation-hero {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .automation-hero__content {
        text-align: center;
        align-items: center;
    }

    .automation-hero__content p {
        max-width: 100%;
    }

    .automation-hero__media::before {
        width: 320px;
        height: 320px;
    }

    .automation-hero__media img {
        width: min(85%, 368px);
        max-width: 368px;
    }

    .automation-hero__media {
        margin-top: 28px;
    }

    .automation-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .automation-wrapper {
        padding: 90px 24px 110px;
        gap: 60px;
    }

    .automation-section {
        gap: 32px;
    }

    .automation-steps {
        gap: 32px;
        padding: 8px 12px 18px 16px;
        scroll-padding: 0 16px;
    }

    .step-card {
        flex: 0 0 calc(100% - 32px);
        padding: 0 8px 12px;
    }

    .step-card::after {
        font-size: 22px;
        transform: translate(20px, -50%);
    }

    .step-media img {
        width: min(90%, 300px);
    }

    .automation-closing {
        padding: 60px 32px;
    }

    .automation-btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .automation-badge {
        font-size: 0.85rem;
    }

    .automation-hero__content h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .automation-steps {
        gap: 24px;
        padding: 8px 14px 18px 16px;
        scroll-padding: 0 16px;
    }

    .step-card {
        flex: 0 0 calc(100% - 20px);
    }

    .feature-card,
    .adv-card {
        padding: 24px;
    }

    .automation-closing {
        padding: 48px 24px;
    }

    .step-card::after {
        font-size: 18px;
        transform: translate(14px, -50%);
    }
}

@media (min-width: 1200px) {
    .automation-steps {
        justify-content: center;
        gap: 84px;
    }

    .step-card {
        flex: 0 0 280px;
    }
}
