/* ===== ANATOMIA FINANCEIRA - LANDING PAGE ===== */

/* Variáveis para Landing Page */
:root {
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --accent-yellow: #f59e0b;
    --text-dark: #374151;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Animações personalizadas */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Classes de animação */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

.animate-slide-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out;
}

/* Gradientes */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-dark {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.gradient-border {
    border: 2px solid transparent;
    background: linear-gradient(white, white),
        linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    background-clip: padding-box, border-box;
}

/* Efeitos de Hover */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card-hover:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Botões CTA */
.cta-button {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    text-decoration: none !important;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    color: white !important;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Navbar */
.navbar-blur {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="white" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"></path><path fill="white" d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5"></path><path fill="white" d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z"></path></svg>') no-repeat;
    background-size: cover;
    z-index: 1;
}

/* Dashboard Preview */
.dashboard-preview {
    position: relative;
    z-index: 2;
}

.dashboard-preview:hover {
    transform: rotate(0deg) !important;
    transition: transform 0.5s ease;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    animation-delay: -2s;
}

.floating-element:nth-child(3) {
    animation-delay: -4s;
}

/* Testimonials */
.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Pricing Cards */
.pricing-popular {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    position: relative;
    transform: scale(1.05);
    z-index: 2;
}

.pricing-popular::before {
    content: '🔥 MAIS POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-yellow);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: bounce-slow 3s infinite;
}

/* Countdown Timer */
.countdown-timer {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: pulse 2s infinite;
    font-size: 0.9rem;
}

/* Loading Effects */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Stats Section */
.stats-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-yellow), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FAQ Section */
.faq-item {
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--shadow-md);
}

.faq-button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.faq-button:hover {
    background: rgba(16, 185, 129, 0.05);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-wave {
        height: 60px;
    }

    .gradient-text {
        font-size: 2.5rem !important;
    }

    .dashboard-preview {
        transform: rotate(0deg) !important;
        margin-top: 2rem;
    }

    .pricing-popular {
        transform: scale(1) !important;
        margin-top: 2rem;
    }

    .pricing-popular::before {
        top: -10px;
        font-size: 0.7rem;
        padding: 6px 16px;
    }

    .stats-number {
        font-size: 2rem;
    }

    .floating-element {
        display: none;
    }
}

@media (max-width: 576px) {
    .countdown-timer {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }

    .card-hover:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .cta-button {
        font-size: 0.9rem;
    }
}

/* Otimizações de Performance */
.card-hover,
.testimonial-card,
.cta-button {
    will-change: transform;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus States para Acessibilidade */
.cta-button:focus,
.faq-button:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Prevenção de FOUC (Flash of Unstyled Content) */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Proteção contra elementos que desaparecem - removido transform: none */
#hero-content,
#hero-visual {
    /* Apenas containers, sem interferir nos filhos */
}

/* Estados iniciais dos elementos antes do GSAP carregar */
#hero-badge,
#hero-title,
#hero-subtitle,
#hero-buttons,
#hero-proof,
#dashboard-preview,
#float-1,
#float-2,
#float-3 {
    /* Garantir visibilidade inicial se GSAP falhar */
    opacity: 1;
}

/* Remover qualquer transform ou transition que interfira com GSAP */
#hero-badge,
#hero-title,
#hero-subtitle,
#hero-buttons,
#hero-proof,
#dashboard-preview,
#float-1,
#float-2,
#float-3 {
    transition: none !important;
    will-change: transform, opacity;
}

/* Swiper Customizations */
.demo-swiper {
    padding-bottom: 40px;
}

.demo-swiper .swiper-pagination {
    bottom: 0;
}

.demo-swiper .swiper-pagination-bullet {
    background: var(--primary-green);
    opacity: 0.3;
    width: 12px;
    height: 12px;
}

.demo-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.demo-swiper .swiper-button-next,
.demo-swiper .swiper-button-prev {
    color: var(--primary-green);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.demo-swiper .swiper-button-next:after,
.demo-swiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.demo-swiper .swiper-button-next:hover,
.demo-swiper .swiper-button-prev:hover {
    background: white;
    transform: scale(1.1);
}

/* ========================================
   CSS MOVIDO DO INLINE (Sprint 1)
   ======================================== */

/* Animações personalizadas adicionais */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.15);
}

.cta-button {
    background: linear-gradient(135deg, #10b981, #059669);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

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

.cta-button:hover::before {
    left: 100%;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #10b981;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.pricing-card.featured {
    border-color: #10b981;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'Mais Popular';
    position: absolute;
    top: 20px;
    right: -30px;
    background: #10b981;
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-price {
    font-size: 3rem;
    font-weight: bold;
    color: #10b981;
    margin: 1rem 0;
}

.pricing-period {
    color: #6b7280;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.pricing-popular {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    position: relative;
}

.pricing-popular::before {
    content: '🔥 MAIS POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Estilos para avatares com fallback */
.avatar-container {
    position: relative;
    overflow: hidden;
}

.avatar-fallback {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.avatar-image {
    transition: opacity 0.3s ease;
}

.avatar-image.loading {
    opacity: 0.6;
}

.avatar-image.error {
    opacity: 0;
}

/* Navbar elegante estilo Mobills */
.navbar-link-hover {
    transition: all 0.3s ease;
    position: relative;
}

.navbar-link-hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-link-hover:hover {
    color: #10b981 !important;
    transform: translateY(-1px);
}

.navbar-link-hover:hover::after {
    width: 80%;
}

.hover-transform {
    transition: all 0.3s ease;
}

.hover-transform:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25) !important;
}

/* Navbar com glassmorphism sutil */
#navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Animação smooth no menu mobile */
#mobileNav {
    border-radius: 0 0 20px 20px;
    margin-top: -1px;
}

/* Estilos para o CTA final e footer */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ========================================
   ACESSIBILIDADE - Sprint 2
   ======================================== */

/* Respeitar preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card-hover:hover,
    .cta-button:hover,
    .feature-card:hover,
    .testimonial-card:hover,
    .pricing-card:hover,
    .hover-transform:hover,
    .hover-lift:hover {
        transform: none !important;
    }
}

/* Print Styles */
@media print {

    .countdown-timer,
    .floating-element,
    .navbar-blur {
        display: none;
    }

    .gradient-bg {
        background: var(--primary-green) !important;
    }
}