/* --- FUNDAMENTOS --- */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; width: 100%; }

/* Ajuste para imagens não estourarem o layout */
img { max-width: 100%; height: auto; }

.img-dashboard { border-radius: 25px; }

/* --- EFEITOS DE SOMBRA --- */
.btn-effect { transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
.btn-effect:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); }
.bg-brand.btn-effect:hover { box-shadow: 0 15px 30px rgba(64, 231, 145, 0.4); }

/* --- NAV DESKTOP --- */
.nav-container { position: fixed; top: 30px; left: 0; width: 100%; display: flex; justify-content: center; padding: 25px 0; z-index: 1000; transition: all 0.6s; }
.navbar-main { display: flex; align-items: center; justify-content: space-between; width: 95%; max-width: 1200px; padding: 12px 30px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); border-radius: 28px; border: 1px solid rgba(0, 0, 0, 0.05); transition: all 0.6s; }
.nav-container.scrolled { padding: 15px 0; }
.nav-container.scrolled .navbar-main { max-width: 880px; background: rgba(255, 255, 255, 0.95); border-radius: 100px; padding: 8px 25px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }

/* --- MOBILE HEADER --- */
.mobile-header { display: none; position: fixed; top: 0; width: 100%; z-index: 1100; background: #0f172a; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.mobile-bar button { background: none; border: none; color: #40E791; font-size: 26px; }
.mobile-logo img { height: 32px; }
.mobile-cta { background: #40E791; color: #0f172a; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; }

/* --- MENU LATERAL --- */
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1200; }
.menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu { position: fixed; top: 0; left: -300px; width: 300px; height: 100vh; background: #020617; z-index: 1300; transition: 0.4s; display: flex; flex-direction: column; }
.mobile-menu.active { left: 0; }
.menu-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.menu-header img { height: 28px; }
.menu-header button { background: none; border: none; color: #40E791; font-size: 24px; }
.menu-links { display: flex; flex-direction: column; padding: 20px; gap: 10px; }
.menu-links a, .menu-links button { color: #e5e7eb; padding: 12px; border-radius: 8px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.menu-links a:hover, .menu-links button:hover { background: rgba(64,231,145,0.1); color: #40E791; }
.menu-footer { margin-top: auto; padding: 20px; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- GLASSMORPHISM & PRICING --- */
.glass-card { background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); }
.bg-pricing-custom { background: #0b1221; position: relative; }
.bg-pricing-custom::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(64, 231, 145, 0.12) 0%, transparent 70%); pointer-events: none; }
.btn-quero-assinar { background: #40E791; color: #0f172a; box-shadow: 0 10px 20px rgba(64, 231, 145, 0.2); }

/* --- HERO & VIDEO --- */
.btn-hero-video { display: flex; align-items: center; gap: 12px; font-weight: 800; color: #475569; padding: 14px 28px; border-radius: 100px; border: 1px solid rgba(0,0,0,0.08); background: white; }
.hero-gradient { background: radial-gradient(circle at top right, rgba(64, 231, 145, 0.15), transparent 45%); }

/* --- REVEAL --- */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0, 0); }

/* --- RESPONSIVIDADE ADICIONAL --- */
@media (max-width: 1024px) {
    .nav-container { display: none; }
    .mobile-header { display: block; }
}

@media (max-width: 640px) {
    section { padding-left: 20px; padding-right: 20px; }
    .hero-gradient { padding-top: 120px; }
    h1 { font-size: 2.5rem !important; }
    .glass-card { padding: 40px 20px !important; }
}

/* Container centralizador */
.float-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 60px; /* Espaço para a sombra e movimento */
}

/* O Celular com movimento fluante */
.floating-image {
    width: 250px;
    height: auto;
    position: relative;
    z-index: 2;
    /* Animação de 6 segundos para ser suave */
    animation: flutuar-celular 6s ease-in-out infinite;
}

/* A Sombra dinâmica no chão */
.float-container::after {
    content: "";
    position: absolute;
    bottom: 20px; /* Posição fixa no "chão" */
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 15px;
    background: rgba(0, 0, 0, 0.5); /* Sombra forte */
    border-radius: 50%;
    filter: blur(12px);
    z-index: 1;
    /* Animação sincronizada com o celular */
    animation: sombra-dinamica 6s ease-in-out infinite;
}

/* --- KEYFRAMES --- */

@keyframes flutuar-celular {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-40px); /* Sobe os 40px que você definiu */
    }
}

@keyframes sombra-dinamica {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5; /* Sombra mais forte quando perto */
    }
    50% {
        transform: translateX(-50%) scale(0.7); /* Sombra encolhe quando sobe */
        opacity: 0.2; /* Sombra suaviza quando o celular se afasta */
    }
}


@keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
.animate-fade-in { animation: fade-in 0.5s ease-out; }
.btn-effect { transition: all 0.2s ease; }
.btn-effect:hover { opacity: 0.9; transform: translateY(-2px); }
.glass-card { background: rgba(16, 185, 129, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(16, 185, 129, 0.1); }
.nav-container { top: 1.5rem; transition: top 0.3s ease; }
.sticky-header { top: 0rem; background: rgba(255, 255, 255, 0.8) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }