.erp-hero {
    position: relative;
    min-height: 790px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;

    background-image:
        linear-gradient(
            90deg,
            rgba(2, 10, 31, 0.94) 0%,
            rgba(5, 22, 62, 0.78) 50%,
            rgba(2, 10, 31, 0.88) 100%
        ),
        url("/assets/images/erp-background.webp");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.erp-container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 100px 15px;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
}

.erp-content {
    position: relative;
    z-index: 2;
}

.erp-content h1 {
    font-size: clamp(30px, 3vw, 48px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -1.2px;
    margin: 0 0 12px;
    color: #fff;
}

.erp-content h2 {
    margin: 0 0 43px;
    font-size: clamp(32px, 3vw, 47px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -1px;

    background: linear-gradient(90deg, var(--color-1st), #fcc0c0);

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.erp-content p {
    max-width: 610px;
    font-size: 16px;
    line-height: 1.52;
    color: #fff;
    margin: 0 0 48px;
}

.erp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.erp-btn {
    min-height: 63px;
    padding: 0 32px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;

    transition: all 0.3s ease;
}

.erp-btn-primary {
    color: #fff;
    background: var(--color-1st);
    border: 1px solid var(--color-1st);
}

.erp-btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0px 6px 15px 0px #be6464;
}

.erp-btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.erp-btn-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
}

.erp-visual {
    position: relative;
    width: 100%;
    max-width: 510px;
    aspect-ratio: 1 / 1;
    margin: auto;

    display: flex;
    justify-content: center;
    align-items: center;
}

.erp-orbit {
    position: absolute;
    width: 82%;
    height: 82%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;

    animation: orbit-pulse 5s ease-in-out infinite;
}

.erp-center {
    position: relative;
    z-index: 2;
    width: 144px;
    height: 144px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 29px;
    font-weight: 750;
    line-height: 1.22;
    background: linear-gradient(145deg, var(--color-1st), #fc7d7d54);
    box-shadow:
        0 0 45px #fc7d7d54,
        0 0 100px #fc7d7d54;
    animation: center-pulse 4s ease-in-out infinite;
}

.erp-modules {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.erp-module {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    min-height: 55px;
    color: #aab6ce;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(24, 42, 73, 0.78);
    border: 1px solid rgba(60, 140, 220, 0.2);
    border-radius: 13px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    cursor: pointer;
    animation: module-float 4s ease-in-out infinite;
    transition:
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.erp-module img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.erp-module:hover {
    color: #fff;
    background: rgba(25, 64, 105, 0.95);
    border-color: rgba(0, 205, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 190, 255, 0.2);
}

.erp-module:hover img {
    transform: scale(1.12);
}

.erp-module:nth-child(1) {
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.erp-module:nth-child(2) {
    top: 45%;
    left: -5%;
    animation-delay: 0.6s;
}

.erp-module:nth-child(3) {
    top: 45%;
    right: -5%;
    animation-delay: 1.2s;
}

.erp-module:nth-child(4) {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.8s;
}

@keyframes center-pulse {
    0%,
    100% {
        box-shadow:
            0 0 35px #fc7d7d54,
            0 0 80px #fc7d7d54;
    }

    50% {
        box-shadow:
            0 0 55px #fc7d7d63,
            0 0 110px #fc7d7d67;
    }
}

@keyframes orbit-pulse {
    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.08);
    }

    50% {
        border-color: rgba(65, 160, 255, 0.3);
    }
}

@keyframes module-float {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -7px;
    }
}

.erp-content,
.erp-visual {
    opacity: 0;
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.erp-content {
    transform: translateX(-35px);
}

.erp-visual {
    transform: translateX(35px);
}

.erp-active .erp-content,
.erp-active .erp-visual {
    opacity: 1;
    transform: translateX(0);
}

.erp-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-size: 80px 80px;
    background:
        radial-gradient(
            ellipse at 50% 35%,
            rgba(117, 28, 65, 0.28) 0%,
            transparent 48%
        ),
        radial-gradient(
            ellipse at 78% 55%,
            rgba(31, 72, 119, 0.18) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse at 50% 100%,
            rgba(90, 25, 52, 0.12) 0%,
            transparent 55%
        );
}

@media (max-width: 991px) {
    .erp-hero {
        min-height: auto;
    }

    .erp-container {
        grid-template-columns: 1fr;
        gap: 55px;
        padding: 90px 25px;
    }

    .erp-content {
        text-align: center;
    }

    .erp-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .erp-actions {
        justify-content: center;
    }

    .erp-visual {
        max-width: 480px;
    }

    .erp-module:nth-child(2) {
        left: -2%;
    }

    .erp-module:nth-child(3) {
        right: -2%;
    }
}

@media (max-width: 575px) {
    .erp-container {
        padding: 70px 20px;
        gap: 35px;
    }

    .erp-content h1 {
        font-size: 29px;
        letter-spacing: -0.7px;
    }

    .erp-content h2 {
        font-size: 31px;
        margin-bottom: 25px;
    }

    .erp-content p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 30px;
    }

    .erp-actions {
        gap: 12px;
    }

    .erp-btn {
        min-height: 52px;
        padding: 0 22px;
        font-size: 14px;
    }

    .erp-visual {
        max-width: 360px;
    }

    .erp-center {
        width: 105px;
        height: 105px;
        font-size: 23px;
    }

    .erp-module {
        gap: 7px;
        padding: 7px 10px;
        min-height: 40px;
        font-size: 12px;
        border-radius: 9px;
    }

    .erp-module img {
        width: 24px;
        height: 24px;
    }

    .erp-module:nth-child(2) {
        left: -2%;
    }

    .erp-module:nth-child(3) {
        right: -2%;
    }

    .erp-grid-bg {
        background-size: 45px 45px;
    }
}

@media (max-width: 380px) {
    .erp-module {
        gap: 5px;
        padding: 6px 8px;
        font-size: 10px;
    }

    .erp-module img {
        width: 20px;
        height: 20px;
    }

    .erp-visual {
        max-width: 310px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .erp-module,
    .erp-center,
    .erp-orbit,
    .erp-content,
    .erp-visual {
        animation: none !important;
        transition: none !important;
    }

    .erp-content,
    .erp-visual {
        opacity: 1;
        transform: none;
    }
}
