/* =================================================================
   DESIGN SYSTEM (VERSÃO FINAL COM FUNDO DINÂMico)
================================================================= */
:root {
    /* Paleta de Cores */
    --background-body-start: #0F131A; /* Fundo mais escuro para o vídeo */
    --background-body-end: #1A202C;   /* Fundo mais escuro para o vídeo */
    --background-card: #1A202C; /* Cor do card ajustada */
    --text-dark: #EDF2F7; /* Invertido para fundo escuro */
    --text-medium: #A0AEC0; /* Invertido para fundo escuro */
    --text-light: #718096;
    --border-color: #2D3748; /* Borda mais visível no fundo escuro */

    /* Cores de Destaque da Logo */
    --accent-purple: #8A2BE2;
    --accent-blue: #4D4DFF;
    
    /* Tipografia */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Efeitos */
    --main-gradient: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra mais sutil */
    --card-shadow-hover: 0 7px 20px rgba(0, 0, 0, 0.2);
    --glow-shadow: 0 0 25px rgba(77, 77, 255, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-secondary);
    background-color: var(--background-body-start);
    background-image: linear-gradient(180deg, var(--background-body-start) 0%, var(--background-body-end) 100%);
    color: var(--text-medium);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* --- EFEITO AURORA ANIMADO NO FUNDO --- */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(77, 77, 255, 0.08), transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(138, 43, 226, 0.07), transparent 40%);
    z-index: -1;
    animation: background-pan 30s linear infinite;
}

@keyframes background-pan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- NOVO: EFEITO DE LUZ DO CURSOR --- */
.cursor-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(77, 77, 255, 0.12) 0%, rgba(138, 43, 226, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: transform 0.1s ease-out;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* =================================================================
   ANIMAÇÕES E ESTILOS GERAIS
================================================================= */
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.fade-in-section { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-section.visible { opacity: 1; transform: translateY(0); }

.section-title { font-family: var(--font-primary); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 1rem; color: var(--text-dark); text-align: center; line-height: 1.2; }
.section-subtitle { font-size: clamp(1rem, 2.5vw, 1.1rem); color: var(--text-light); margin-bottom: 3.5rem; text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; }

/* =================================================================
   HERO SECTION (COM VÍDEO)
================================================================= */
#hero {
    text-align: center;
    /* A linha de padding foi removida */
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* NOVO: Wrapper do vídeo */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que o vídeo cubra toda a área */
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 19, 26, 0.7); /* Overlay escuro para legibilidade */
}
/* FIM NOVO */

.hero-container {
    animation: slideUp 0.8s ease-out;
    position: relative;
    z-index: 1;
    padding: 6rem 1.5rem; /* ADICIONE ESTA LINHA (ajustado para mobile) */
}
.hero-title { font-family: var(--font-primary); font-size: clamp(2.8rem, 8vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; color: var(--text-dark); }
.hero-title .highlight {
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}
.hero-subtitle { font-size: clamp(1.1rem, 2.5vw, 1.3rem); color: var(--text-medium); margin-bottom: 2.5rem; max-width: 650px; margin-left: auto; margin-right: auto; }

.cta-button { display: inline-block; background: var(--main-gradient); color: #FFF; padding: 1rem 2.5rem; font-family: var(--font-primary); font-size: 1.1rem; font-weight: 700; text-decoration: none; border-radius: 8px; transition: all 0.3s ease; border: 2px solid transparent; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--glow-shadow);
}
.hero-guarantee { margin-top: 1.5rem; color: var(--text-light); font-size: 0.9rem; }

/* =================================================================
   CALCULADORA
================================================================= */
#calculator { padding: 5rem 0; }
.calculator-container { max-width: 800px; }
.calculator-wrapper { background: var(--background-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; box-shadow: var(--card-shadow); }

.calculator-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }

.form-group { display: flex; flex-direction: column; }
.form-group label { color: var(--text-dark); margin-bottom: 0.8rem; font-weight: 600; font-size: 0.9rem; flex-grow: 1; }
.form-group input { width: 100%; padding: 0.8rem 1rem; background-color: var(--background-body-start); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-dark); font-size: 1.5rem; font-family: var(--font-primary); transition: all 0.3s ease; -moz-appearance: textfield; }
.form-group input::-webkit-outer-spin-button, .form-group input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-group input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(77, 77, 255, 0.15); }

.calculator-result { text-align: center; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.result-label { font-size: 1.1rem; color: var(--text-light); margin-bottom: 0.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.result-amount {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 12vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2rem;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow-wrap: break-word;
    word-break: break-all;
}

.result-explanation { text-align: left; margin-bottom: 2rem; }
.result-explanation h4 { font-family: var(--font-primary); color: var(--text-dark); margin-bottom: 1rem; text-align: center; }
.result-explanation p { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 1.5rem; text-align: center; }

.explanation-step { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-radius: 8px; background-color: var(--background-body-start); border: 1px solid var(--border-color); margin-bottom: 0.75rem; flex-wrap: wrap; }
.explanation-step span { font-weight: 600; font-size: 0.9rem; color: var(--text-medium); margin-bottom: 0.5rem; }
.explanation-step small { font-size: 0.9rem; color: var(--text-light); font-style: italic; }
.explanation-step strong { font-family: var(--font-primary); font-size: 1.2rem; color: var(--accent-blue); }
.calculator-cta { margin-top: 1rem; }

/* =================================================================
   SEÇÕES DE CONTEÚDO (CARDS COM NOVOS EFEITOS)
================================================================= */
#symptoms, #solution { padding: 5rem 0; }
.symptoms-grid, .solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.symptom-card, .solution-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease-out;
    box-shadow: var(--card-shadow);
    position: relative; /* Necessário para o pseudo-elemento da borda */
    z-index: 1;
    overflow: hidden; /* Garante que a borda não vaze */
}

/* NOVO: EFEITO DE BORDA DE GRADIENTE NO HOVER */
.symptom-card::before, .solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--main-gradient) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.symptom-card:hover, .solution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.symptom-card:hover::before, .solution-card:hover::before {
    opacity: 1;
}

/* NOVO: ESTILO DOS ÍCONES */
.symptom-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.symptom-icon svg {
    width: 24px;
    height: 24px;
    stroke: url(#icon-gradient); /* Aplica o gradiente */
}
/* FIM NOVO */

.fade-in-section.visible .symptom-card,
.fade-in-section.visible .solution-card {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease-out forwards;
}
.symptoms-grid .symptom-card:nth-child(2), .solution-grid .solution-card:nth-child(2) { animation-delay: 0.1s; }
.symptoms-grid .symptom-card:nth-child(3), .solution-grid .solution-card:nth-child(3) { animation-delay: 0.2s; }
.symptoms-grid .symptom-card:nth-child(4) { animation-delay: 0.3s; }
.symptoms-grid .symptom-card:nth-child(5) { animation-delay: 0.4s; }
.symptoms-grid .symptom-card:nth-child(6) { animation-delay: 0.5s; }

.symptom-card h3, .solution-card h3 { font-family: var(--font-primary); font-size: 1.3rem; margin-bottom: 1rem; color: var(--text-dark); }
.solution-card { text-align: center; }
.solution-number { display: inline-block; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; background: var(--main-gradient); color: white; font-family: var(--font-primary); font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
#contact { padding: 5rem 0; text-align: center; }
.contact-container { max-width: 700px; }
.contact-guarantee { margin-top: 1.5rem; color: var(--text-light); font-size: 0.9rem; }

/* =================================================================
   FOOTER (LOGO MAIOR)
================================================================= */
footer { padding: 4rem 1rem; border-top: 1px solid var(--border-color); }
.footer-container { text-align: center; }
.footer-logo {
    max-height: 320px; /* Tamanho original restaurado */
    width: auto;
    margin-bottom: 1.5rem;
}
.slogan { font-family: var(--font-primary); font-size: 1.8rem; color: var(--text-dark); margin-bottom: 1.5rem; }
.copyright { font-size: 0.9rem; color: var(--text-light); }

/* =================================================================
   MEDIA QUERIES
================================================================= */
@media (min-width: 500px) {
    .explanation-step { flex-wrap: nowrap; }
    .explanation-step span { margin-bottom: 0; }
}
@media (min-width: 768px) {
    .calculator-wrapper { padding: 3rem; }
    .explanation-step { padding: 1.2rem; }
}

@media (max-width: 400px) {
    .calculator-wrapper { padding: 1.5rem; }
}
/* =================================================================
   CORREÇÃO FORÇADA PARA VÍDEO NO MOBILE
================================================================= */
@media (max-width: 768px) {
    .hero-video {
        /* Força o vídeo a ser 40% maior que a tela, eliminando as bordas cinzas */
        transform: scale(1.8);
    }
}

/* =================================================================
   NOVO: ESTILOS DA SEÇÃO DE INTEGRAÇÕES (LOGOS)
================================================================= */
#integrations {
    padding: 4rem 0;
    position: relative;
}

/* O contêiner principal que esconde o excesso e aplica o fade nas bordas */
.logo-scroller {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

/* O contêiner que segura os logos e que será animado */
.scroller-inner {
    display: flex;
    gap: 2rem; /* Espaçamento entre os logos */
    padding-block: 1rem;
    width: max-content; /* Garante que todos os logos fiquem na mesma linha */
    animation: scroll 40s linear infinite;
}

/* A animação que move os logos da direita para a esquerda */
@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

/* Estilo individual dos logos */
.logo-scroller img {
    height: 35px; /* Altura uniforme para todos os logos */
    width: auto;
    filter: grayscale(1) opacity(0.6); /* Deixa em escala de cinza e semi-transparente */
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse: pausa a animação e colore os logos */
.logo-scroller:hover .scroller-inner {
    animation-play-state: paused;
}

.logo-scroller:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}