/* ==========================================================================
   ANTIGRAVITY - CSS Premium
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #0a0e27;
    --bg-sec: #0f1535;
    --accent-cyan: #0466C8;
    --accent-green: #00ff88;
    --text-main: #ffffff;
    --text-sec: #a0aec0;
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-primary: 'Space Grotesk', sans-serif;
    
    /* Transitions */
    --transition-base: 0.3s ease-out;
}

/* ==========================================================================
   RESET & ACCESSIBILITY
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-sec);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Focus Rings */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); box-shadow: 0 0 10px rgba(4, 102, 200, 0.2); }
    50% { opacity: 1; transform: scale(1.05); box-shadow: 0 0 30px rgba(4, 102, 200, 0.6); }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -20px); }
    50% { transform: translate(0, -40px); }
    75% { transform: translate(-20px, -20px); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Prefers Reduced Motion */
@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;
    }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-glow-pulse { animation: glowPulse 4s ease-in-out infinite; }
.animate-fade-up { animation: fadeUp 0.6s ease-out forwards; }
.animate-float-orb { animation: floatOrb 8s ease-in-out infinite; }
.animate-slide-in-left { animation: slideInLeft 0.6s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 0.6s ease-out forwards; }

/* ==========================================================================
   UTILITIES & COMPONENTS
   ========================================================================== */
.glass {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.3s ease-out;
}

.glass:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.text-gradient {
    background: linear-gradient(90deg, var(--text-main), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
}

.section-padding {
    padding: 6rem 0;
}

/* Background Orbs */
.bg-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.orb-cyan {
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.orb-green {
    background: radial-gradient(circle, var(--accent-green) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-base);
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    border: none;
}

.btn-primary {
    background-color: rgba(4, 102, 200, 0.15);
    color: var(--text-main);
    border: 1px solid var(--accent-cyan);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(4, 102, 200, 0.3);
}

.btn-primary:hover {
    background-color: rgba(4, 102, 200, 0.3);
    box-shadow: 0 0 25px rgba(4, 102, 200, 0.6);
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: scale(1.05);
}

.btn-outline:active {
    transform: scale(0.98);
}

/* Grids */
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Cards Genericos */
.card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: scale(1.05);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(4, 102, 200, 0.1);
    color: var(--accent-cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.card:hover .icon-box {
    background: var(--accent-cyan);
    color: var(--bg-main);
    box-shadow: 0 0 15px rgba(4, 102, 200, 0.4);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 1.2rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -1px;
}

.logo-img {
    width: 150px;
    height: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-only { display: none; }
.desktop-only { display: inline-flex; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-item {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

/* Hero Visual & Mockup */
.hero-visual {
    position: relative;
}

.floating-card {
    position: absolute;
    top: -30px;
    right: -20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    background: rgba(10, 14, 39, 0.8);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    color: var(--text-main);
}

.card-subtitle {
    font-size: 0.8rem;
}

.hero-mockup {
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
}

.mockup-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
}

.dot:nth-child(1) { background: #ff5f56; }
.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #27c93f; }

.mockup-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mockup-chart {
    height: 120px;
    background: linear-gradient(to top, rgba(4, 102, 200, 0.2), transparent);
    border-bottom: 2px solid var(--accent-cyan);
    border-radius: 4px;
    position: relative;
    clip-path: polygon(0 100%, 0 60%, 20% 50%, 40% 70%, 60% 40%, 80% 20%, 100% 0, 100% 100%);
}

.mockup-lines {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.line {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
}
.w-100 { width: 100%; }
.w-75 { width: 75%; }
.w-50 { width: 50%; }

/* ==========================================================================
   PROCESSO SECTION (TIMELINE)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 30px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-cyan), transparent);
    z-index: 1;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--bg-main);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(4, 102, 200, 0.4);
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    padding: 2rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.highlight-card {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(4, 102, 200, 0.1), rgba(0, 255, 136, 0.05));
    border-color: rgba(4, 102, 200, 0.3);
}

.highlight-card h3 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

/* ==========================================================================
   DEPOIMENTOS SECTION & CAROUSEL
   ========================================================================== */
.stars {
    color: #ffbd2e;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.author {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.author strong {
    color: var(--text-main);
}

/* Carousel */
.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .carousel-slide { min-width: 33.3333%; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .carousel-slide { min-width: 50%; }
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-light);
    cursor: pointer;
    transition: var(--transition-base);
}

.carousel-indicator.active {
    background-color: var(--accent-cyan);
    transform: scale(1.3);
}

.stats-banner {
    display: flex;
    justify-content: space-around;
    padding: 2.5rem;
    background: rgba(10, 14, 39, 0.6);
}

.stat-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.stat-box .stat-text {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-card {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(4, 102, 200, 0.1), rgba(0, 0, 0, 0.2));
    border-color: rgba(4, 102, 200, 0.3);
}

.cta-desc {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cta-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge i {
    color: var(--accent-green);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-sec);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--accent-cyan);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
}

.contact-list i {
    color: var(--accent-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a:hover {
    color: var(--text-main);
}

/* ==========================================================================
   RESPONSIVIDADE (Mobile First adapt)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-description {
        margin: 0 auto 2.5rem;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-ctas {
        justify-content: center;
    }
    .floating-card {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    .grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    .desktop-only { display: none; }
    .mobile-toggle { display: block; }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-sec);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-light);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-only {
        display: inline-flex;
        width: 100%;
        margin-top: 1rem;
    }

    .grid-2x2, .grid-3col {
        grid-template-columns: 1fr;
    }
    
    .stats-banner {
        flex-direction: column;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-badges {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .hero-stats {
        flex-direction: column;
    }
    .section-title {
        font-size: 1.75rem;
    }
}

/* Visibility helpers for Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
}

/* JS will add this class to trigger fadeUp */
.scroll-reveal.is-visible {
    animation: fadeUp 0.6s ease-out forwards;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    animation: float 6s ease-in-out infinite;
}

.whatsapp-float:hover {
    background-color: #20b858;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.7);
    transform: translateY(-5px) scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}
