/* BeeWS Landing Page Styles */

/* Base */
html {
    overflow-x: hidden;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Prevenir scroll horizontal em todos os elementos */
*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* Fix mobile overflow */
section, header, footer, div, main {
    max-width: 100vw;
}

/* =============================================
   CORREÇÕES PARA MOBILE - DEFINITIVAS
   ============================================= */
@media (max-width: 768px) {
    /* Prevenir overflow horizontal */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* HEADER SEMPRE ACIMA DE TUDO */
    #main-header {
        z-index: 9000 !important;
    }
    
    /* FORMULÁRIO HERO - SEM z-index alto, apenas visual */
    #hero-lead-form {
        opacity: 1 !important;
        position: relative !important;
        z-index: 1 !important;
        background-color: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    }
    
    /* Botão Simular - SÓLIDO */
    #hero-lead-form button {
        opacity: 1 !important;
        background-color: #000000 !important;
        color: #ffffff !important;
    }
    
    /* Seção hero - FORÇAR OPACIDADE 1 E SEM TRANSFORM */
    #hero {
        padding-bottom: 60px !important;
        background-color: #000000 !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Formulário - FORÇAR OPACIDADE 1 */
    #hero-lead-form,
    #hero-lead-form * {
        opacity: 1 !important;
    }
    
    /* DESABILITAR TODAS AS ANIMAÇÕES NO MOBILE */
    .animate-on-scroll,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale,
    .animate-zoom,
    .animate-rotate-scroll,
    .animate-blur-in,
    .hover-lift,
    .float-animation,
    .card-tilt,
    .bee-float,
    .wave-animate-1,
    .wave-animate-2 {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition: none !important;
    }
    
    /* Forçar visibilidade */
    .animate-on-scroll.visible,
    .animate-slide-left.visible,
    .animate-slide-right.visible,
    .animate-scale.visible,
    .animate-zoom.visible,
    .animate-rotate-scroll.visible,
    .animate-blur-in.visible {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Remover efeito shine no mobile */
    .shine-effect::before {
        display: none !important;
    }
    
    /* Seções sem overflow horizontal */
    section {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* ========================================
       CARROSSEL COMPARATIVO - SCROLL NATIVO
       ======================================== */
    .comp-carousel-wrapper {
        padding: 0 !important;
        overflow: visible !important;
    }
    
    .comp-viewport {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        padding: 20px 40px !important;
        scrollbar-width: none !important;
    }
    
    .comp-viewport::-webkit-scrollbar {
        display: none !important;
    }
    
    .comp-track {
        display: flex !important;
        gap: 16px !important;
        width: max-content !important;
        transform: none !important;
    }
    
    .comp-card {
        flex: 0 0 280px !important;
        scroll-snap-align: center !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Setas do carrossel comparativo */
    .comp-nav {
        display: flex !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 10 !important;
    }
    
    .comp-nav-prev { left: 2px !important; }
    .comp-nav-next { right: 2px !important; }
    
    /* Esconder fades no mobile */
    .comp-fade {
        display: none !important;
    }
    
    /* ========================================
       GALERIA DE APPS - SCROLL NATIVO
       ======================================== */
    .app-gallery-wrapper {
        padding: 8px !important;
        overflow: visible !important;
    }
    
    .app-gallery-track {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        display: flex !important;
        gap: 10px !important;
        padding: 8px 0 !important;
        scrollbar-width: none !important;
    }
    
    .app-gallery-track::-webkit-scrollbar {
        display: none !important;
    }
    
    .app-gallery-slide {
        flex: 0 0 90px !important;
        scroll-snap-align: start !important;
    }
    
    /* Setas da galeria */
    .gallery-nav {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Hero banner */
    #hero-banner {
        overflow: hidden !important;
    }
    
    /* Grid background - esconder no mobile */
    .grid-bg::before {
        display: none !important;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #000; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

.smooth-scroll { scroll-behavior: smooth; }

/* Hero Banner - remover gap */
#hero-banner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background-color: #000 !important;
}

/* Canvas para efeito de quadriculado e velocidade */
#racing-lines-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Hero - SEM degradês, fundo PRETO FIXO */
#hero::before,
#hero::after {
    display: none !important;
}

/* Hero com fundo preto PURO - FIXO, SEM ANIMAÇÃO */
#hero {
    background-color: #000 !important;
    margin-top: 0 !important;
    position: relative;
    overflow: hidden;
}


/* Garantir que não há gap entre seções pretas */
#hero-banner + #hero,
#hero + #pwa-beneficios {
    margin-top: 0 !important;
    border-top: none !important;
}

/* Letras SÓLIDAS - sem degradê */
#hero h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    line-height: 1.4 !important;
}

#hero h1 span {
    color: #888888 !important;
    -webkit-text-fill-color: #888888 !important;
    display: block;
    margin-top: 0.5rem;
}

#hero p {
    color: #cccccc !important;
    -webkit-text-fill-color: #cccccc !important;
    margin-top: 1.5rem !important;
}

#hero #hero-lead-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

/* Seção Como Funciona - INVERTIDO: usa imagem tudo incluso */
#como-funciona {
    position: relative;
    background-image: url('assets/tudo incluso na entrega.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Seção Tudo Incluso - SIMPLES, só imagem de fundo */
#entregamos {
    background: url('assets/como funciona.png') center center / cover no-repeat;
    background-color: #f5f5f5;
}

/* Mobile - ajuste da imagem para cobrir 100% */
@media (max-width: 768px) {
    #entregamos {
        background-size: cover;
        background-position: 60% center;
    }
}

#entregamos .entrega-card {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transition: none;
}

#entregamos .entrega-card i,
#entregamos .entrega-card h4 {
    color: #fff;
}

#entregamos h2,
#entregamos p {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Botão na seção Tudo Incluso */
#entregamos a.inline-flex {
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(5px);
}

#como-funciona::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#como-funciona > * {
    position: relative;
    z-index: 2;
}

#como-funciona h2,
#como-funciona h3 {
    color: #ffffff !important;
}

#como-funciona p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Cards glassmorphism na seção Como Funciona */
#como-funciona .grid > div {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#como-funciona .grid > div .w-12 {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#como-funciona .grid > div .w-12 i {
    color: #ffffff !important;
}

#como-funciona .grid > div h3 {
    color: #ffffff !important;
}

#como-funciona .grid > div p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Botão na seção Como Funciona */
#como-funciona .text-center a {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

#como-funciona .text-center a:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* Cubo interativo - pausa animação no hover */
.cube-container-banner:hover .cube-banner {
    animation-play-state: paused;
}

.cube-banner {
    transition: transform 0.1s ease-out;
}

.cube-banner.interactive {
    animation: none !important;
}

/* Fonte elegante fina para SELECTA */
.font-elegant {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Cor dourada */
.text-gold { color: #D4AF37; }
.bg-gold { background-color: #D4AF37; }
.border-gold { border-color: #D4AF37; }

/* Logos de clientes */
.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 8px;
    transition: all 0.3s ease;
}

.client-logo {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

.client-logo-item:hover .client-logo {
    filter: none;
}

.client-logo-invert {
    filter: grayscale(100%) opacity(0.5) invert(1);
}

.client-logo-item:hover .client-logo-invert {
    filter: grayscale(0%) opacity(1) invert(0);
}

/* Logo com fundo escuro (para logos brancos) */
.client-logo-dark {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 8px 12px;
}

.client-logo-dark .client-logo {
    filter: none;
}

.client-logo-dark:hover .client-logo {
    filter: none;
}


/* Logo BeeWS - Montserrat SemiBold */
.logo-beews {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Bee - fundo claro (branco) */
.logo-bee-light { color: #262626; }

/* Bee - fundo escuro */
.logo-bee-dark { color: #ffffff; }

/* WS - sempre cinza */
.logo-ws { color: #989898; }

/* Seção PWA - z-index para evitar sobreposição do Hero */
#pwa-beneficios {
    position: relative;
    z-index: 10;
}

/* Hero - z-index menor que seções abaixo */
#hero {
    position: relative;
    z-index: 1;
}

/* Intro Animation - Slide Up Vertical */
#intro-overlay {
    position: fixed;
    inset: 0;
    background-color: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideUpOut 0.8s ease-in-out 1.8s forwards;
}

#intro-logo {
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    animation: logoReveal 0.5s ease-out 0.15s forwards, logoFadeUp 0.6s ease-in-out 1.2s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Animação: overlay sobe para cima revelando a página */
@keyframes slideUpOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 1;
    }
}

/* Animação: logo faz fade up antes do overlay subir */
@keyframes logoFadeUp {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(-50px);
        opacity: 0;
    }
}

/* Animação da abelha no Hero */
.bee-float {
    animation: beeFloat 3s ease-in-out infinite;
}

@keyframes beeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(2deg); }
    50% { transform: translateY(-4px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
}

/* Galeria de Apps - Carrossel elegante */
.app-gallery {
    position: relative;
    margin-top: 16px;
}

.app-gallery-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px 40px;
}

.app-gallery-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
}

.app-gallery-track::-webkit-scrollbar {
    display: none;
}

.app-gallery-slide {
    flex: 0 0 auto;
    width: 120px;
    cursor: pointer;
    scroll-snap-align: center;
    transition: all 0.3s ease;
}

.app-gallery-slide:hover {
    transform: translateY(-4px);
}

.app-gallery-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.app-gallery-slide:hover img {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* Setas de navegação do carrossel */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-nav:hover {
    background: #000;
    color: white;
    border-color: #000;
}

.gallery-nav.prev { left: 4px; }
.gallery-nav.next { right: 4px; }

/* Modal de imagem fullscreen */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.image-modal img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animação de entrada do modal */
.image-modal.active .image-modal-content {
    animation: modalZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animação de troca de imagem */
.image-modal img.slide-out-left {
    animation: slideOutLeft 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.image-modal img.slide-out-right {
    animation: slideOutRight 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.image-modal img.slide-in-left {
    animation: slideInLeft 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.image-modal img.slide-in-right {
    animation: slideInRight 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideOutLeft {
    0% { opacity: 1; transform: translateX(0) scale(1); }
    100% { opacity: 0; transform: translateX(-60px) scale(0.95); }
}

@keyframes slideOutRight {
    0% { opacity: 1; transform: translateX(0) scale(1); }
    100% { opacity: 0; transform: translateX(60px) scale(0.95); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(60px) scale(0.95); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(-60px) scale(0.95); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Setas de navegação do modal */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: all 0.2s ease;
    z-index: 10000;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.modal-nav.prev { left: 24px; }
.modal-nav.next { right: 24px; }

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 10000;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

/* Electric waves animation - preto/cinza/branco */
.electric-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    opacity: 0;
}

/* Modal SELECTA elegante */
.selecta-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.selecta-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.selecta-modal {
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.selecta-modal-overlay.active .selecta-modal {
    transform: scale(1) translateY(0);
}

.selecta-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selecta-modal-body {
    padding: 24px 28px;
    max-height: 60vh;
    overflow-y: auto;
}

.selecta-modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Feature item no modal */
.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #1a1a1a;
    border-color: #444;
    transform: translateX(4px);
}

.feature-item.selected {
    background: #1a1a1a;
    border-color: #D4AF37;
    border-width: 1px;
}

.feature-item.selected .feature-check {
    background: #D4AF37;
    border-color: #D4AF37;
}

.feature-check {
    width: 24px;
    height: 24px;
    border: 2px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-check i {
    color: #000;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.feature-item.selected .feature-check i {
    opacity: 1;
}

/* Botão trigger elegante */
.selecta-trigger {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #111 0%, #000 100%);
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selecta-trigger:hover {
    border-color: #555;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.selecta-trigger .icon-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selecta-trigger .sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.electric-ring-1 {
    width: 150px;
    height: 150px;
    animation: electricPulse 2s ease-out 0.5s infinite;
}

.electric-ring-2 {
    width: 200px;
    height: 200px;
    animation: electricPulse 2s ease-out 0.8s infinite;
}

.electric-ring-3 {
    width: 250px;
    height: 250px;
    animation: electricPulse 2s ease-out 1.1s infinite;
}

@keyframes electricPulse {
    0% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes logoReveal {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; visibility: hidden; }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animação de entrada lateral */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Animação de escala */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animação de fade */
.animate-fade {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animate-fade.visible {
    opacity: 1;
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

/* Floating animation contínua */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Pulse animation */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* SELECTA Items Selected State - borda dourada */
.selecta-card {
    transition: all 0.3s ease;
}

.selecta-card.selected {
    background-color: #000 !important;
    color: #D4AF37 !important;
    border-color: #D4AF37 !important;
    border-width: 1px !important;
}

.selecta-card.selected .selecta-name {
    color: #D4AF37 !important;
}

.selecta-card.selected span {
    color: #D4AF37 !important;
}

/* Slider Customization */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #111827;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #111827;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* CTA Button Animation */
.cta-btn {
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* === ANIMAÇÕES DINÂMICAS DE SCROLL === */

/* Animação de rotação suave ao scroll */
.animate-rotate-scroll {
    opacity: 0;
    transform: rotate(-3deg) translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-rotate-scroll.visible {
    opacity: 1;
    transform: rotate(0) translateY(0);
}

/* Animação de zoom suave */
.animate-zoom {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-zoom.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animação stagger para cards */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* Blur fade in - DESABILITADO para não causar efeito cinza */
.animate-blur-in {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

.animate-blur-in.visible {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

/* Classe para fade-out ao sair da tela */
.fade-out {
    opacity: 0.3 !important;
    transform: translateY(20px) !important;
    transition: all 0.5s ease-out !important;
}

/* Animação das barras do gráfico comparativo */
.chart-bar {
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar.animate {
    animation: chartGrow 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes chartGrow {
    from { width: 0%; }
}

/* === SEÇÃO COMPARATIVA 3D === */

/* Background animado com ondas */
.wave-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.02) 0%, transparent 50%);
    animation: waveMove 20s ease-in-out infinite;
}

@keyframes waveMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 1%) rotate(1deg); }
    50% { transform: translate(0, 2%) rotate(0deg); }
    75% { transform: translate(-2%, 1%) rotate(-1deg); }
}

/* Container do gráfico 3D */
.chart-3d-container {
    perspective: 1000px;
}

.chart-3d {
    transform: rotateX(10deg) rotateY(-5deg);
    transform-style: preserve-3d;
}

/* Barras 3D */
.chart-3d-bar {
    width: 80px;
    height: 0;
    position: relative;
    transform-style: preserve-3d;
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-3d-bar.animate {
    animation: bar3DGrow 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chart-bar-beews {
    --bar-color: #fff;
    --bar-dark: #e5e5e5;
    --bar-light: #f5f5f5;
}

.chart-bar-sem {
    --bar-color: #404040;
    --bar-dark: #333;
    --bar-light: #4a4a4a;
}

.bar-face {
    position: absolute;
    backface-visibility: hidden;
}

.chart-bar-beews .bar-front {
    width: 80px;
    height: 100%;
    background: linear-gradient(180deg, #fff 0%, #e5e5e5 100%);
    transform: translateZ(20px);
}

.chart-bar-beews .bar-back {
    width: 80px;
    height: 100%;
    background: #ccc;
    transform: translateZ(-20px) rotateY(180deg);
}

.chart-bar-beews .bar-left {
    width: 40px;
    height: 100%;
    background: linear-gradient(180deg, #e5e5e5 0%, #ccc 100%);
    transform: rotateY(-90deg) translateZ(0px);
    left: -20px;
}

.chart-bar-beews .bar-right {
    width: 40px;
    height: 100%;
    background: linear-gradient(180deg, #f5f5f5 0%, #e5e5e5 100%);
    transform: rotateY(90deg) translateZ(80px);
    left: -20px;
}

.chart-bar-beews .bar-top {
    width: 80px;
    height: 40px;
    background: #fff;
    transform: rotateX(90deg) translateZ(0px);
    top: -20px;
}

.bar-glow {
    position: absolute;
    width: 120%;
    height: 100%;
    left: -10%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    filter: blur(20px);
    opacity: 0;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes bar3DGrow {
    from { height: 0; }
}

/* Cards de métricas */
.metric-card {
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: #404040;
    transform: translateY(-2px);
}

/* Feature cards */
.feature-compare {
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.feature-compare:hover {
    border-color: #404040;
    transform: translateY(-4px);
}

/* === GRÁFICOS DE ONDAS ANIMADOS === */

.chart-wave-card {
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.chart-wave-card:hover {
    border-color: #404040;
    transform: translateY(-4px);
}

.chart-wave-container {
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

/* Animação das linhas de onda */
.wave-chart {
    width: 100%;
    height: 100%;
}

.wave-path, .wave-line {
    opacity: 0;
    animation: waveDrawIn 2s ease-out forwards;
}

.wave-1 { animation-delay: 0.2s; }
.wave-2 { animation-delay: 0.4s; }
.wave-3 { animation-delay: 0.6s; }

@keyframes waveDrawIn {
    0% {
        opacity: 0;
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

.wave-dot {
    opacity: 0;
    animation: dotPulse 2s ease-out 1.5s forwards;
}

@keyframes dotPulse {
    0% { opacity: 0; r: 0; }
    50% { opacity: 1; r: 6; }
    100% { opacity: 1; r: 4; }
}

/* Ondas grandes animadas continuamente */
.wave-animate-1 {
    animation: waveFloat1 8s ease-in-out infinite;
}

.wave-animate-2 {
    animation: waveFloat2 10s ease-in-out infinite;
}

@keyframes waveFloat1 {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(0) translateY(-10px); }
    75% { transform: translateX(10px) translateY(-5px); }
}

@keyframes waveFloat2 {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(15px) translateY(-3px); }
    50% { transform: translateX(0) translateY(-8px); }
    75% { transform: translateX(-15px) translateY(-3px); }
}

/* Círculos de progresso */
.circle-chart {
    position: relative;
    width: 80px;
    height: 80px;
}

.circle-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.circle-progress {
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle-progress.animate {
    animation: circleGrow 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Dashboard container */
.dashboard-container {
    border: 1px solid #2a2a2a;
}

/* === CARROSSEL COMPARATIVO === */

.comp-carousel-wrapper {
    position: relative;
    padding: 0 70px;
}

/* Fade nas bordas */
.comp-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 5;
    pointer-events: none;
}

.comp-fade-left {
    left: 70px;
    background: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.comp-fade-right {
    right: 70px;
    background: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.comp-viewport {
    overflow: hidden;
    padding: 20px 0;
}

.comp-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Setas de navegação */
.comp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comp-nav:hover {
    background: #2a2a2a;
    border-color: #555;
}

.comp-nav-prev {
    left: 0;
}

.comp-nav-next {
    right: 0;
}

.comp-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Cards */
.comp-card {
    flex-shrink: 0;
    width: 320px;
    padding: 28px;
    background: #111;
    border: 1px solid #222;
    transition: all 0.4s ease;
    opacity: 0.4;
    transform: scale(0.95);
}

.comp-card.visible {
    opacity: 1;
    transform: scale(1);
}

/* Ícone pequeno */
.comp-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: black;
}

.comp-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

/* Barras */
.comp-bars {
    display: flex;
    justify-content: center;
    gap: 32px;
    height: 160px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.comp-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comp-bar-wrap {
    width: 48px;
    height: 130px;
    background: #1a1a1a;
    display: flex;
    align-items: flex-end;
}

.comp-bar {
    width: 100%;
    transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 0;
}

.comp-bar-beews {
    background: white;
}

.comp-bar-sem {
    background: #444;
}

.comp-label {
    margin-top: 10px;
    font-size: 0.7rem;
    color: #666;
    text-align: center;
}

/* Descrição */
.comp-desc {
    text-align: center;
    font-size: 0.85rem;
    color: white;
    margin: 0;
}

/* Indicadores */
.comp-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.comp-dot {
    width: 8px;
    height: 8px;
    background: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.comp-dot.active {
    background: white;
    width: 24px;
}

/* Parallax suave para seções */
.parallax-section {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Linha animada sob títulos */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-underline.visible::after {
    width: 100%;
}

/* Contador animado */
.count-up {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.count-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efeito de brilho passando */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.shine-effect:hover::before {
    left: 100%;
}

/* Cards com movimento suave no hover */
.card-tilt {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.card-tilt:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Texto que aparece letra por letra (via JS) */
.text-reveal {
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Badge flutuante */
.floating-badge {
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(1deg); }
    75% { transform: translateY(3px) rotate(-1deg); }
}

/* =============================================
   CUBO 3D BANNER (ao lado do logo BeeWS)
   ============================================= */
.cube-container-banner {
    perspective: 600px;
    width: 80px;
    height: 80px;
}

.cube-banner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCubeBanner 12s infinite linear;
}

.cube-face-banner {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(5px);
}

.cube-face-banner i {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.5rem !important;
}

.cube-face-banner.front  { transform: translateZ(40px); }
.cube-face-banner.back   { transform: rotateY(180deg) translateZ(40px); }
.cube-face-banner.right  { transform: rotateY(90deg) translateZ(40px); }
.cube-face-banner.left   { transform: rotateY(-90deg) translateZ(40px); }
.cube-face-banner.top    { transform: rotateX(90deg) translateZ(40px); }
.cube-face-banner.bottom { transform: rotateX(-90deg) translateZ(40px); }

@keyframes rotateCubeBanner {
    0%   { transform: rotateX(-20deg) rotateY(0deg); }
    100% { transform: rotateX(-20deg) rotateY(360deg); }
}

@media (min-width: 1024px) {
    .cube-container-banner {
        width: 100px;
        height: 100px;
    }
    .cube-face-banner {
        width: 100px;
        height: 100px;
    }
    .cube-face-banner.front  { transform: translateZ(50px); }
    .cube-face-banner.back   { transform: rotateY(180deg) translateZ(50px); }
    .cube-face-banner.right  { transform: rotateY(90deg) translateZ(50px); }
    .cube-face-banner.left   { transform: rotateY(-90deg) translateZ(50px); }
    .cube-face-banner.top    { transform: rotateX(90deg) translateZ(50px); }
    .cube-face-banner.bottom { transform: rotateX(-90deg) translateZ(50px); }
}
