[x-cloak] {
    display: none !important;
}

/* Definitive Overflow Fix */
html,
body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
}

.hero-video-gradient {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.4) 50%, rgba(10, 10, 10, 1) 100%);
}

.text-glow {
    text-shadow: 0 0 10px rgba(255, 206, 26, 0.3);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF5500;
}

/* Performance Optimizations */
.snap-x {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
}

/* GPU Acceleration */
.arena-card,
#testimonials .grid>div,
.gpu-accelerated {
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

section {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

/* --- OTIMIZAÇÃO DE PERFORMANCE (ARENA) --- */

/* Container de Scroll Otimizado */
.optimize-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    /* Previne scroll vertical */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Fluidez no iOS */
    scroll-behavior: smooth;

    /* Força GPU e evita repaints */
    will-change: scroll-position;
    touch-action: manipulation;
}

/* Esconde a barra de rolagem (estética + performance) */
.optimize-scroll::-webkit-scrollbar {
    display: none;
}

.optimize-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Card Otimizado */
.optimize-card {
    scroll-snap-align: center;
    flex: 0 0 85%;
    /* No mobile ocupa 85% da tela */
    min-height: 500px;

    /* Aceleração de Hardware */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

/* Ajuste para Desktop */
@media (min-width: 768px) {
    .optimize-card {
        flex: 1;
        /* Volta ao normal no desktop */
        content-visibility: visible;
        /* Desliga otimização agressiva no desktop */
    }
}

/* Animação Float para badge flutuante */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Números tabulares (evita que os números pulem na animação) */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}
/* Fix para Hero Section no mobile - altura fixa em 100vh */
#home {
    height: 100vh;
    height: 100svh;
}

@supports (-webkit-touch-callout: none) {
    #home {
        height: -webkit-fill-available;
    }
}
