/* =============================================================
   GLOBAL
   ============================================================= */

/* Prevents CSS animations from triggering page scroll.
   overflow-anchor: none disables Scroll Anchoring globally,
   stopping the eco-marquee from causing scroll position jumps. */
html {
    scroll-behavior: auto;
    overflow-anchor: none;
}

/* =============================================================
   HERO — PARALLAX STAR BACKGROUND
   ============================================================= */

@keyframes animStar {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-2000px);
    }
}

#stars,
#stars2,
#stars3 {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

#stars {
    width: 1px;
    height: 1px;
    animation: animStar 50s linear infinite;
}

#stars2 {
    width: 2px;
    height: 2px;
    animation: animStar 100s linear infinite;
}

#stars3 {
    width: 3px;
    height: 3px;
    animation: animStar 150s linear infinite;
}

#stars::after,
#stars2::after,
#stars3::after {
    content: "";
    position: absolute;
    top: 2000px;
    left: 0;
    background: transparent;
}

#stars::after {
    width: 1px;
    height: 1px;
}

#stars2::after {
    width: 2px;
    height: 2px;
}

#stars3::after {
    width: 3px;
    height: 3px;
}

/* =============================================================
   MÉTODO — ARCHITECTURAL BLUEPRINT BACKGROUND
   ============================================================= */

@keyframes grid-flow {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(60px);
    }
}

@keyframes construction-line {
    0% {
        height: 0%;
        opacity: 0;
    }

    50% {
        height: 100%;
        opacity: 1;
    }

    100% {
        height: 100%;
        opacity: 0;
    }
}

@keyframes scan-horizontal {
    0% {
        top: 10%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 80%;
        opacity: 0;
    }
}

.animate-grid-flow {
    animation: grid-flow 2s linear infinite;
}

.animate-construction-line {
    animation: construction-line 4s ease-in-out infinite;
}

.animate-scan-horizontal {
    animation: scan-horizontal 8s ease-in-out infinite;
}

/* =============================================================
   ECOSYSTEM — ECO-MARQUEE CAROUSEL
   ============================================================= */

@keyframes eco-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.eco-track {
    display: flex;
    width: max-content;
    animation: eco-marquee 40s linear infinite;
    will-change: transform;
    /* Prevents browser from adjusting scroll position when
       this animated element changes position */
    overflow-anchor: none;
}

.eco-track:hover {
    animation-play-state: paused;
}

/* Also disable scroll anchoring on the section itself */
#ecosystem {
    overflow-anchor: none;
}

/* =============================================================
   HERO — GLASS BUTTONS
   ============================================================= */

.btn-glass-primary {
    background: rgba(255, 85, 8, 0.95);
    backdrop-filter: blur(400px);
    -webkit-backdrop-filter: blur(400px);
    border: 1px solid rgba(255, 120, 50, 0.5);
}

.btn-glass-secondary {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(400px);
    -webkit-backdrop-filter: blur(400px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* =============================================================
   ECOSYSTEM — HEADING HIGHLIGHT & MASK
   ============================================================= */

.eco-highlight {
    background-color: #ff5508;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    display: inline-block;
}

.eco-mask {
    mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
}

/* =============================================================
   PARTNER LOGOS — BALANCED GRAYSCALE
   ============================================================= */

.partner-logo {
    filter: grayscale(1) brightness(1.1) contrast(0.9) opacity(0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: filter, transform;
}

.partner-logo:hover {
    filter: grayscale(0) brightness(1) contrast(1) opacity(1);
    transform: scale(1.1);
}

/* Chrome, Safari, Opera */
#scenariosTrack::-webkit-scrollbar {
    display: none;
}

/* IE, Edge, Firefox */
#scenariosTrack {
    -ms-overflow-style: none;
    scrollbar-width: none;
}