/* ===========================================
   ALE APEX — P1APEX One
   =========================================== */

/* ======================
   SECAO
   ====================== */
.ale-apex {
    position: relative;
    overflow: hidden;
    background: #060D20;
    min-height: 786px;
    padding-top: 90px;
}

/* ======================
   FUNDO
   ====================== */
.ale-apex__bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.ale-apex.is-in-view .ale-apex__bg {
    opacity: 1;
}

/* ======================
   PARALLAX — moça PNG
   ====================== */
.ale-apex__parallax {
    position: absolute !important;
    right: -141px !important;
    bottom: -153px !important;
    top: auto !important;
    left: auto !important;
    height: 800px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: right bottom !important;
    z-index: 1;
    will-change: transform;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease 0.3s;
}

.ale-apex.is-in-view .ale-apex__parallax {
    opacity: 1;
}

/* ======================
   OVERLAY — azul escuro, aparece suave
   ====================== */
.ale-apex__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(6, 13, 32, 0.92) 0%,
        rgba(6, 13, 32, 0.8) 40%,
        rgba(6, 13, 32, 0.45) 65%,
        rgba(6, 13, 32, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.ale-apex.is-in-view .ale-apex__overlay {
    opacity: 1;
}

/* ======================
   CONTAINER
   ====================== */
.ale-apex__container {
    position: relative;
    z-index: 3;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 48px 56px;
}

/* ======================
   HEADER
   ====================== */
.ale-apex__header {
    margin-bottom: 24px;
}

.ale-apex__logo {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.6s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.ale-apex.is-in-view .ale-apex__logo {
    opacity: 1;
    transform: translateY(0);
}

.ale-apex__title {
    font-family: 'Mont', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.75s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.75s;
}

.ale-apex.is-in-view .ale-apex__title {
    opacity: 1;
    transform: translateY(0);
}

/* ======================
   BODY
   ====================== */
.ale-apex__body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* ======================
   FEATURES
   ====================== */
.ale-apex__features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 48%;
    flex-shrink: 0;
}

.ale-apex__feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
}

/* Cada feature entra com delay escalonado */
.ale-apex.is-in-view .ale-apex__feature {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease var(--feat-delay, 0.9s),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--feat-delay, 0.9s),
                background 0.3s ease,
                border-color 0.3s ease;
}

.ale-apex__feature:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 153, 214, 0.3);
    transform: translateX(6px) !important;
}

.ale-apex__feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.ale-apex__feature-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ale-apex__feature:hover .ale-apex__feature-icon img {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(0, 153, 214, 0.5));
    transform: scale(1.15);
}

.ale-apex__feature-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.ale-apex__feature-desc {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

/* ======================
   TEXTO DESTAQUE
   ====================== */
.ale-apex__right {
    max-width: 320px;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s ease 1.6s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.6s;
}

.ale-apex.is-in-view .ale-apex__right {
    opacity: 1;
    transform: translateY(0);
}

.ale-apex__highlight {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ======================
   SELOS
   ====================== */
.ale-apex__seals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
    padding-top: 16px;
    opacity: 0;
    transition: opacity 0.7s ease 1.8s;
}

.ale-apex.is-in-view .ale-apex__seals {
    opacity: 1;
}

.ale-apex__seal {
    height: 20px;
    width: auto;
    opacity: 0.45;
    filter: brightness(0) invert(1);
}

.ale-apex__seal-logo {
    height: 22px;
    width: auto;
}

/* ======================
   EDITOR — tudo visivel
   ====================== */
.ale-apex.ale-no-anim,
.ale-apex.ale-no-anim .ale-apex__bg,
.ale-apex.ale-no-anim .ale-apex__parallax,
.ale-apex.ale-no-anim .ale-apex__overlay,
.ale-apex.ale-no-anim .ale-apex__logo,
.ale-apex.ale-no-anim .ale-apex__title,
.ale-apex.ale-no-anim .ale-apex__feature,
.ale-apex.ale-no-anim .ale-apex__right,
.ale-apex.ale-no-anim .ale-apex__seals {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ======================
   TABLET
   ====================== */
@media (max-width: 1024px) {
    .ale-apex__container {
        padding: 0 32px 48px;
    }

    .ale-apex__features {
        width: 55%;
    }

    .ale-apex__parallax {
        height: 500px !important;
        opacity: 0.5;
    }

    .ale-apex__body {
        flex-direction: column;
        align-items: flex-start;
    }

    .ale-apex__right {
        margin-top: 20px;
        max-width: 100%;
    }
}

/* ======================
   MOBILE
   ====================== */
@media (max-width: 767px) {
    .ale-apex {
        min-height: auto;
        padding-top: 48px;
    }

    .ale-apex__container {
        padding: 0 24px 40px;
    }

    .ale-apex__logo {
        height: 32px;
    }

    .ale-apex__title {
        font-size: 16px;
    }

    .ale-apex__features {
        width: 100%;
    }

    .ale-apex__feature {
        padding: 10px 14px;
        gap: 10px;
    }

    .ale-apex__feature-title {
        font-size: 11px;
    }

    .ale-apex__feature-desc {
        font-size: 11px;
    }

    .ale-apex__body {
        flex-direction: column;
        align-items: flex-start;
    }

    .ale-apex__right {
        margin-top: 16px;
        max-width: 100%;
        text-align: center;
    }

    .ale-apex__highlight {
        font-size: 13px;
    }

    .ale-apex__parallax {
        display: none !important;
    }

    .ale-apex__overlay {
        background: rgba(6, 13, 32, 0.88) !important;
    }

    .ale-apex__seals {
        flex-wrap: wrap;
        gap: 14px;
    }

    .ale-apex__seal {
        height: 16px;
    }
}
