/* ==========================================================================
    TEMA PREMIUM FINTECH
========================================================================== */
:root {
    --primary: #00FF88;
    --primary-hover: #33FF9F;
    --secondary: #121A21;
    --neutral: #0A0D10;
    
    --bg-base: var(--neutral);
    --bg-surface: var(--secondary);
    --bg-surface-hover: #19242d;
    
    --text-primary: #FFFFFF;
    --text-secondary: #9BA1A6;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 255, 136, 0.2);
    
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 100px;
}

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    letter-spacing: -0.03em;
    line-height: 1.1;
}
p { line-height: 1.6; }
.highlight-primary { color: var(--primary); }

/* Container com padding lateral garantido */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ==========================================================================
    BOTÕES
========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}
.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--neutral);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.1);
}
.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--border-highlight);
}
.btn-secondary:hover {
    background-color: rgba(0, 255, 136, 0.08);
    border-color: var(--primary-hover);
    color: var(--primary-hover);
}

/* ==========================================================================
    HEADER / NAVBAR
========================================================================== */
.header-wrapper {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 24px;
    box-sizing: border-box;
}
.navbar-floating {
    background: rgba(18, 26, 33, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 8px 24px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.login-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 12px;
}

/* Menu Hamburger Oculto no Desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* Menu Mobile Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 13, 16, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-nav.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

/* ==========================================================================
    HERO
========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end; /* Empurra o conteúdo para baixo estilo Apple TV */
    justify-content: center;
    text-align: center;
    padding: 120px 24px 100px;
    box-sizing: border-box;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; 
    pointer-events: none;
}

/* Controles do Vídeo Overlay */
.video-controls {
position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Tooltip Estilo Chatbox (Alerta sutil) */
.unmute-tooltip {
    position: absolute;
    bottom: calc(100% + 14px); /* Fica logo acima do botão */
    right: 0; /* Alinhado à direita, onde fica o botão de mute */
    background: rgba(18, 26, 33, 0.85); /* Fundo escuro premium */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--primary); /* Borda verde Rami */
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none; /* Para não atrapalhar o clique */
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: floatTooltip 2.5s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.15);
}

/* Triângulo do Chatbox apontando para o botão de som */
.unmute-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 16px; /* Aponta para o centro do botão que tem 44px */
    border-width: 6px;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
}

/* Quando o usuário clica, adicionamos essa classe via JS para esconder */
.unmute-tooltip.hidden {
    opacity: 0;
    transform: translateY(10px);
}

@keyframes floatTooltip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.control-btn {
    background: rgba(10, 13, 16, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.control-btn:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Ajuste no gradiente para garantir leitura do texto na parte inferior */
    background: linear-gradient(to bottom, rgba(10, 13, 16, 0.2) 0%, rgba(10, 13, 16, 0.6) 50%, var(--neutral) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px; /* Alargado para caber o texto em 1 linha */
    width: 100%;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    font-weight: 800;
    margin: 0 auto 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A3A7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.25;
    padding-bottom: 0.1em;
    white-space: nowrap; /* Força 1 linha no desktop */
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #E2E4E9;
    max-width: 900px;
    margin: 0 auto 32px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap; /* Força 1 linha no desktop */
}

.hero-actions { display: flex; justify-content: center; gap: 16px; }

/* ==========================================================================
    EFEITO GLOW (APLICADO GLOBALMENTE)
========================================================================== */
.glow-effect {
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, border-color;
}

.glow-effect::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(0, 255, 136, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
    will-change: background;
}

.glow-effect:hover::before {
    opacity: 1;
}

.glow-effect > * {
    position: relative;
    z-index: 1;
}

.glow-effect:hover {
    border-color: var(--border-highlight);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* ==========================================================================
    SOLUÇÕES (BENTO GRID 45/55)
========================================================================== */
.bento-section { padding: 40px 0 80px; position: relative; z-index: 3;}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 3rem; margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); font-size: 1.15rem; max-width: 700px; margin: 0 auto; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

.bento-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-highlight);
    flex-shrink: 0;
}
.bento-icon svg { width: 24px; height: 24px; color: var(--primary); }
.icon-pix-external {
    width: 24px;
    height: 24px;
    object-fit: contain;
    /* Essa sequência de filtros transforma qualquer SVG numa cor que simula o nosso --primary (#00FF88) */
    filter: invert(65%) sepia(87%) saturate(541%) hue-rotate(94deg) brightness(101%) contrast(106%);
}
.bento-card h3 { font-size: 1.35rem; margin: 0; }
.bento-card p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

.col-span-9 { grid-column: span 9; }   
.col-span-11 { grid-column: span 11; } 
.col-span-12 { grid-column: span 12; } 
.col-span-8 { grid-column: span 8; }   

/* ==========================================================================
    TELECOM
========================================================================== */
.telecom-grid { display: flex; flex-direction: column; gap: 32px; }
.telecom-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    min-height: 450px;
}
.telecom-card:nth-child(even) { grid-template-columns: 1fr 1fr; direction: rtl; }
.telecom-card:nth-child(even) > * { direction: ltr; }

.tc-content { padding: 64px; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
.tc-content h3 { font-size: 2.25rem; margin-bottom: 24px; }
.tc-content p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 32px; }
.tc-image { background-size: cover; background-position: center; position: relative; }
.tc-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--bg-surface) 0%, transparent 50%); }
.telecom-card:nth-child(even) .tc-image::before { background: linear-gradient(to left, var(--bg-surface) 0%, transparent 50%); }

.partner-grid {
    display: flex;
    justify-content: space-between; /* Distribui o espaço uniformemente */
    gap: 16px;
    align-items: center;
    background: var(--neutral);
    padding: 24px 32px; /* Mais respiro para as logos maiores */
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.partner-grid img { 
    height: auto;
    max-height: 40px; /* Logos bem maiores (antes era 24px) */
    max-width: 22%; /* Garante que caibam lado a lado e encolham se a tela diminuir */
    object-fit: contain;
    opacity: 0.7; 
    filter: grayscale(1) brightness(2); 
    transition: 0.3s; 
}
.partner-grid img:hover { opacity: 1; filter: none; }

/* ==========================================================================
    DEPOIMENTOS (TESTIMONIALS)
========================================================================== */
.testimonials-section {
    padding: 100px 0;
    background: var(--neutral);
    overflow: hidden; /* Evita que o slider gere scroll horizontal no body */
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: transform 0.3s ease-out; /* Suaviza o movimento do slider mobile */
}
.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}
.testimonial-quote {
    color: var(--primary);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.5;
}
.testimonial-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
    font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden; /* Garante que a foto não vaze do círculo */
}

/* Regra específica para a imagem dentro do avatar */
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a foto preencher todo o espaço sem achatar */
    display: block;
}.author-info h4 { margin: 0 0 4px 0; font-size: 1rem; color: var(--text-primary); }
.author-info span { font-size: 0.85rem; color: var(--text-secondary); }

/* Dots do slider ocultos no desktop */
.slider-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-subtle);
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active {
    background: var(--primary);
    width: 16px;
    border-radius: 4px;
}

/* ==========================================================================
    QUEM SOMOS E PARCERIA
========================================================================== */
.about-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--neutral), var(--bg-surface));
    border-top: 1px solid var(--border-subtle);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-content h3 { font-size: 2.5rem; margin-bottom: 24px; color: var(--text-primary); }
.about-content p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 24px; }

.partnership-box {
    background: var(--neutral);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-top: 40px;
}

/* ==========================================================================
    FAQ MODERNO
========================================================================== */
.faq-section { padding: 100px 0; background: var(--neutral); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}
.faq-question:hover { color: var(--primary); }
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-secondary);
}
.faq-item.active {
    border-color: var(--border-highlight);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.05);
}
.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 300px;
}
.faq-arrow { transition: transform 0.3s; }
.faq-item.active .faq-arrow { transform: rotate(180deg); color: var(--primary); }

/* ==========================================================================
    FOOTER
========================================================================== */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px;
    background: #050709;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand p { color: var(--text-secondary); margin-top: 24px; max-width: 300px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 24px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 16px; }
.footer-col a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }

/* ==========================================================================
    RESPONSIVIDADE (MOBILE & TABLET)
========================================================================== */
@media (max-width: 1024px) {
    .hero-title, .hero-subtitle { white-space: normal; } /* Restaura quebra de linha em telas menores */
    .hero-title { font-size: 2.8rem; }
    
    /* Bento Grid Tablet - Transforma em 1 coluna */
    .bento-grid { grid-template-columns: 1fr; }
    .col-span-9, .col-span-11, .col-span-12, .col-span-8 { grid-column: span 1; }
    
    .telecom-card, .telecom-card:nth-child(even), .about-grid {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .tc-image { height: 300px; }
    .tc-image::before, .telecom-card:nth-child(even) .tc-image::before {
        background: linear-gradient(to top, var(--bg-surface) 0%, transparent 100%);
    }
}

@media (max-width: 768px) {
    /* Header Mobile Ajustes */
    .nav-links, .hide-mobile { display: none !important; }
    .hamburger { display: flex; } /* Mostra o menu de barrinhas */
    .navbar-floating { padding: 12px 20px; }
    
    .hero { min-height: auto; padding-top: 150px; padding-bottom: 100px; }
    .hero-title { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .video-controls { bottom: 20px; right: 20px; } /* Ajuste mobile */
    
    /* Configuração do Slider Mobile para os Testimonials */
    .testimonials-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px; /* Menor gap para caber na tela do celular */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        /* Esconde a barra de rolagem visualmente, mas permite o scroll pelo dedo */
        -ms-overflow-style: none;
        scrollbar-width: none; 
    }
    .testimonials-grid::-webkit-scrollbar { display: none; }
    
    .testimonial-card {
        min-width: 85vw; /* Ocupa 85% da tela, deixando a ponta do proximo aparecer */
        scroll-snap-align: center;
        flex-shrink: 0;
    }
    
    .slider-dots { display: flex; } /* Mostra as bolinhas no mobile */

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .tc-content { padding: 32px; }
    
    /* Responsividade específica para as marcas de ERP */
    .partner-grid {
        justify-content: center;
        gap: 32px 24px; /* Mais espaçamento vertical para acomodar logos maiores */
        padding: 32px 24px;
    }
    .partner-grid img {
        max-height: 60px; /* Logos bem maiores no mobile */
        max-width: 45%; /* Ocupa quase metade da tela, garantindo a quebra perfeita de 2 em 2 */
    }
}
