:root {
    --global-color-black: #000;
    --global-color-white: #fff;
    --global-color-gray-light: #969696;
    --global-color-gray-dark: #262626;
    --global-color-primary: blue; /* Adicionada para consistência */
}

/* ================================== */
/* === GERAL E RESET === */
/* ================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    background: var(--global-color-black);
    color: var(--global-color-gray-light);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 5rem 1.5rem;
}

/* ================================== */
/* === CLASSES DE LAYOUT E CONTAINER === */
/* ================================== */

.align-center { text-align: center; }
.align-left { text-align: left; }

.w-size-small, .w-size-normal {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: flex; /* Mantido do original */
    align-items: center; /* Mantido do original */
    flex-direction: column; /* Mantido do original */
}
.w-size-small { max-width: 900px; }
.w-size-normal { max-width: 1200px; }
.w-size-full { width: 100%; }
.w-size-subtitle {
    max-width: 700px;
    color: var(--global-color-gray-light);
    margin-left: auto;
    margin-right: auto;
}

/* ================================== */
/* === CABEÇALHO (HEADER) === */
/* ================================== */

.header-container {
    padding: 2rem 5%;
}

.header-brand {
    width: 120px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Esta é a linha que centraliza o logo */
    align-items: center;
    padding: 0rem 1rem; /* Padding mais consistente */
}

.header-background {
    width: 100%;
    height: 80vh;
    margin-top: 3rem;
}

.header-background-container {
    background-image: url('../app/img/png/plataforma-1.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Mais responsivo */
    height: 100%;
}

/* ================================== */
/* === TIPOGRAFIA === */
/* ================================== */

h1, h2, h3 {
    font-family: "NeueMontreal", "NeueMontreal FullBack", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--global-color-white);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p {
    margin-bottom: 2rem;
}

.text-gradient {
    font-family: "NeueMontreal", "NeueMontreal FullBack", system-ui, sans-serif;
    background-image: linear-gradient(to right, #0878ff, #00ddff, #c5efff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* ================================== */
/* === BOTÕES E LINKS === */
/* ================================== */

a.button-cta, button.ton-ctabut {
    font-size: 1rem;
    background-color: var(--global-color-primary);
    padding: 1rem 5rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--global-color-white);
    text-align: center;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.animation {
    animation: pulse-efeito 2s infinite;
}

@keyframes pulse-efeito {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

/* ================================== */
/* === MODAL (POPUP) === */
/* ================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.modal.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}
.popup-content {
    background: #121212;
    width: 90%;
    max-width: 600px;
    height: 85%;
    max-height: 700px;
    border-radius: 1.5rem;
    display: flex;
    padding: 1.5rem;
    flex-direction: column;
    border: 1px solid #222;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal.visible .popup-content { transform: scale(1); }
.popup-content-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--global-color-gray-dark);
    flex-shrink: 0;
}
.popup-content-header span, .popup-content-header p {
    font-size: 1rem;
    margin: 0;
    color: var(--global-color-gray-light);
}
.close-modal-btn {
    background: transparent;
    border: 1px solid var(--global-color-gray-dark);
    color: var(--global-color-gray-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-modal-btn:hover {
    transform: scale(1.1) rotate(90deg);
    color: var(--global-color-white);
    border-color: var(--global-color-white);
}
.popup-brand { width: 100px; margin-bottom: 1rem; }
.popup-content-text {
    overflow-y: auto;
    width: 100%;
    height: 100%;
    margin-top: 1.5rem;
}
.popup-content-text li {
    font-size: 1rem;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid #2a2a2a;
    list-style-type: none;
    text-align: left;
    color: var(--global-color-gray-light);
}

/* ================================== */
/* === CARDS DE CONTEÚDO (BOX) === */
/* ================================== */

.box-container {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: var(--global-color-gray-dark);
    height: 100%;
}
.box-container-title {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    flex-grow: 1; /* Faz o conteúdo ocupar o espaço disponível */
}
.box-container-description {
    flex-grow: 1; /* Empurra o botão para baixo */
    color: var(--global-color-gray-light);
}
.box-container-button-wrapper {
    margin-top: auto; /* Garante que o botão fique no final */
    padding-top: 1rem;
}
.open-modal-btn {
    font-size: 0.9rem;
    font-weight: 300;
    background: transparent;
    border: 1px solid #727272;
    color: #8b8b8b;
    padding: 0.8rem 1rem;
    width: 100%;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.open-modal-btn:hover {
    color: var(--global-color-white);
    border-color: var(--global-color-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* ================================== */
/* === ESTRUTURA DE GRID (ROW) === */
/* ================================== */

.row {
    display: grid;
    width: 100%;
    gap: 1.5rem;
}
.row-2 { grid-template-columns: repeat(2, 1fr); }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.row-icon {
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
}
.row-icon-img { width: 80px; }
.row-align-center { align-items: center; }

/* ================================== */
/* === SEÇÕES ESPECÍFICAS === */
/* ================================== */

.icon {
    padding: 2rem;
    border-radius: 1.5rem;
    background-color: #1f1f1f;
}

.guarantee-img {
    width: 100%;
    max-width: 250px;
    margin: 1.5rem auto 0;
}

/* ================================== */
/* === SEÇÃO DE PLANOS E PREÇOS === */
/* ================================== */

.plan-container {
    border-radius: 1.5rem;
    padding: 1.5rem;
    background-color: var(--global-color-gray-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Garante que todos os cards na mesma linha tenham a mesma altura */
}

/* Estilo de destaque para o plano principal */
.plan-container-full {
    background-color: #222222;
    transform: scale(1.05);
    z-index: 10;
}

.plan-icon {
    width: 80px;
    margin-bottom: 1rem;
}

.plan-title {
    text-align: center;
    margin: 0.5rem 0;
}

.plan-title h3 {
    margin-bottom: 0.5rem;
}

.plan-title p {
    font-size: 0.9rem;
    color: var(--global-color-gray-light);
    margin-bottom: 0;
}

.plan-price {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    text-align: center;
    border-top: 0.8px solid var(--global-color-gray-light);
    border-bottom: 0.8px solid var(--global-color-gray-light);
    width: 100%;
}

.plan-price-reduction {
    color: rgb(92, 92, 92);
    font-weight: 100;
    text-decoration: line-through;
}

.plan-container ul {
    list-style: none;
    margin-top: 0.5rem;
    width: 45%;
    padding: 0;
    flex-grow: 1; /* Faz a lista crescer, empurrando o botão para baixo */
}

.plan-container li {
    display: flex;
    align-items: center;
    color: var(--global-color-gray-light);
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
}

.plan-container li p {
    margin-bottom: 0;
}

.plan-container svg {
    width: 10px;
    height: 10px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.plan-container .check-icon {
    fill: #c3ff00;
}

.plan-container .cross-icon {
    fill: red;
}

.plan-d-flex {
    display: flex;
    align-items: center;
}

.plan-d-flex span {
    font-size: 0.8rem;
    color: var(--global-color-white);
    margin-left: 0.5rem;
}

.plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto; /* Garante que o botão sempre fique no final do card */
    padding-top: 1.5rem;
    width: 100%;
}

.faq { width: 100%; }
.question {
    cursor: pointer;
    padding: 1.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--global-color-gray-dark);
    border-radius: 1rem;
    transition: background-color 0.3s ease;
}
.question .d-flex { display: flex; justify-content: space-between; align-items: center; }
.question p { margin-bottom: 0; }
.question svg {
    width: 1rem; height: 1rem; fill: var(--global-color-white);
    transition: transform 0.3s ease;
    flex-shrink: 0; margin-left: 1rem;
}
.question.open svg { transform: rotate(45deg); }
.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding-top 0.4s ease;
    color: #8d8d8d;
    font-size: 1rem;
}
.question.open { background-color: var(--global-color-gray-dark); }
.answer.open { padding-top: 1rem; max-height: 300px; }

/* ================================== */
/* === SEÇÃO CTA COM GRADIENTE === */
/* ================================== */

/* 1. Removemos o padding da <section> para o gradiente preencher a seção inteira */
#cta {
    padding: 0;
}

/* 2. Aplicamos o gradiente e o padding diretamente na div interna */
.w-size-cta-background {
    background-image: linear-gradient(to bottom, #000000, #003575); /* O gradiente do seu código original */
    padding: 8rem 1.5rem; /* Espaçamento interno generoso e responsivo */
    width: 100%;
    
    /* Garantias de alinhamento para o conteúdo interno */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 3. Limitamos a largura do texto em telas muito grandes para melhor leitura */
.w-size-cta-background h1 {
    max-width: 900px;
}

.w-size-cta-background p {
    max-width: 700px;
}

/* 4. Garantimos que o container do botão esteja centralizado */
.cta-d-flex {
    display: flex;
    justify-content: center;
}

/* ================================== */
/* === FOOTER === */
/* ================================== */

.footer-container {
    padding: 4rem 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--global-color-gray-dark);
}
.footer-brand { margin: 0 auto 1.5rem auto; width: 120px; }
.footer-container p { font-size: 0.5rem; }
.legal-text {
    font-size: 0.9rem;
    color: #626262;
    max-width: 800px;
    margin: 1.5rem auto 0 auto;
    line-height: 1.5;
}

/* ================================== */
/* === RESPONSIVIDADE === */
/* ================================== */

@media screen and (max-width: 991px) {
    .row-2, .row-3 { grid-template-columns: 1fr; }
    .row-icon {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1rem;
    }
}

@media screen and (max-width: 768px) {
    body { font-size: 1rem; }
    section { padding: 3rem 1rem; }
    .header-background { height: 50vh; }
    .box-container-title { padding: 1.5rem; }
    .guarantee-img { margin-top: 2rem; }
}