@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-main: #060608;
    --bg-card: #121217;
    --primary: #00F5FF;
    --primary-glow: rgba(0, 245, 255, 0.3);
    --secondary: #7000FF;
    --text-white: #FFFFFF;
    --text-muted: #94A3B8;
    --glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Previne rolagem lateral estranha */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden; /* Garantia extra */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Blobs */
.blob {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
    opacity: 0.4;
}

.blob-1 { top: -10%; left: -10%; background: radial-gradient(circle, rgba(112, 0, 255, 0.2) 0%, transparent 70%); }
.blob-2 { bottom: -10%; right: -10%; }

/* Header */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(6, 6, 8, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%; /* Margem dinâmica para evitar cortes */
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-white), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.logo span {
    font-weight: 300;
    opacity: 0.8;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover { color: var(--primary); }

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-btn { display: block; }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 2rem;
        flex-direction: column;
        text-align: center;
        border-bottom: 1px solid var(--border-glass);
    }
    nav.active { display: flex; }
    nav a { margin: 1rem 0; width: 100%; color: var(--text-white); }
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary);
}

.section-implementation {
    padding: 4rem;
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    text-align: center;
}

.badge {
    background: var(--glass);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 2rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Bento Grid */
.bento-section { padding: 5rem 0; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(260px, auto);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-feature { grid-column: span 2; grid-row: span 2; }
.card-wide { grid-column: span 2; grid-row: span 1; }
.card-full { grid-column: span 4; grid-row: span 1; min-height: 200px; }
.card-stats { grid-column: span 2; grid-row: span 1; }
.card-small { grid-column: span 1; grid-row: span 1; }

.card-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.bento-card:hover .card-img { opacity: 1; }

.card-content {
    position: relative;
    z-index: 2;
}

.card-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.card-full img {
    width: 45%;
    height: auto;
    border-radius: 20px;
}

.card-wide .card-content {
    max-width: 55%;
}

.card-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; line-height: 1.2; }
.card-content h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    line-height: 1.2;
    text-align: center;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-glow:hover { transform: scale(1.05); box-shadow: 0 0 40px var(--primary-glow); }

/* Responsive */
@media (max-width: 900px) {
    .bento-grid { 
        grid-template-columns: repeat(2, 1fr); 
        grid-auto-rows: minmax(300px, auto);
    }
    .card-feature, .card-wide, .card-full { grid-column: span 2; }
    .card-feature { grid-row: span 2; }
}

@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
    .card-feature, .card-wide, .card-full, .card-stats, .card-small { grid-column: span 1; grid-row: span 1; }
    h1 { font-size: 2.8rem; }
    .hero { padding: 8rem 0 3rem; }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border-glass);
    margin-top: 5rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 245, 255, 0.02));
}

footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

footer h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

footer nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

footer nav a {
    margin-left: 0;
    color: var(--text-muted) !important;
}

footer nav a:hover {
    color: var(--primary) !important;
}

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

.social-links a {
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 10px var(--primary));
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

@media (max-width: 768px) {
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    footer .container > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer nav {
        align-items: center;
    }

    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.8rem;
    }
}

/* Partners inside Bento Grid */
.partners-grid-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.partner-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-mini img {
    max-width: 100%;
    max-height: 35px;
    filter: grayscale(1) brightness(1.2);
    transition: all 0.3s ease;
}

.partner-mini:hover {
    border-color: var(--primary);
    background: rgba(0, 245, 255, 0.05);
    transform: scale(1.05);
}

.partner-mini:hover img {
    filter: grayscale(0) brightness(1);
}

@media (max-width: 768px) {
    .partners-grid-bento {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .partners-grid-bento {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* FAQ Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-question i {
    transition: var(--transition);
    color: var(--text-muted);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
}

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

.faq-item.active .faq-answer {
    max-height: 250px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--primary);
}

/* Footer Grid Refinement */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-white);
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links nav a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--secondary);
    width: 20px;
}

.footer-bottom {
    margin-top: 4rem;
}

/* =============================================
   RESPONSIVIDADE PREMIUM (MOBILE & TABLET)
   ============================================= */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Hero Mobile Refinado */
    .hero {
        padding: 4rem 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.3rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Bento Grid Mobile - Empilhamento Total */
    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .section-implementation {
        padding: 2.5rem 1.5rem !important;
    }

    .bento-card {
        padding: 1.5rem !important;
        min-height: auto !important;
    }

    .bento-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: auto !important;
        padding: 2rem !important;
        flex-direction: column;
    }

    .card-img {
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        height: 200px !important;
        margin-top: 1.5rem;
        border-radius: 12px;
    }

    /* Tipografia e UX */
    h2 {
        font-size: 2rem !important;
    }

    /* Botões Mobile Estilo SaaS Premium */
    .btn {
        display: flex !important;
        flex-direction: column !important; /* Ícone em cima, texto embaixo */
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 1.5rem 1rem !important;
        height: auto !important;
        min-height: auto !important;
        border-radius: 20px !important; /* Arredondado mas mais sólido */
        white-space: normal !important;
        line-height: 1.4 !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .btn-glow {
        background-image: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
        background-attachment: scroll !important;
        background-size: 100% 100% !important;
    }

    .btn br {
        display: none; /* Remove quebras de linha manuais no mobile */
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a0a0b; /* Fundo sólido para evitar transparência */
        padding: 2rem;
        flex-direction: column;
        text-align: center;
        border-bottom: 1px solid var(--border-glass);
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    /* FAQ Mobile */
    .faq-question {
        padding: 1.2rem;
        font-size: 1rem;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-links nav, .footer-contact {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Floating WhatsApp Adjust */
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

