@charset "UTF-8";

/* ================================================================= */
/* FONTES E VARIÁVEIS GLOBAIS (Hungry Stack - Dark First)          */
/* ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta de Cores (Seu novo Tema Dark - Padrão) */
    --color-background: #181822;    /* Fundo Principal */
    --color-surface: #262635;       /* Fundo Secundário (Containers/Cards) */
    --color-primary: #7A4CFF;      /* Cor de Destaque (Roxo) */
    --color-secondary: #5833CC;     /* Roxo mais escuro (para gradientes) */
    --color-text: #C8C8D0;          /* Cor do Texto Principal (Cinza) */
    --color-text-high: #FFFFFF;     /* Cor do Texto de Alto Contraste */
    --color-text-muted: #8B949E;    /* Texto secundário (Mantido por ser um bom cinza) */
    --color-border: rgba(122, 76, 255, 0.2); /* Borda com Roxo (7A4CFF) */

    /* Gradientes (Atualizados para Roxo) */
    --gradient-primary: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    --gradient-border: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));

    /* Tipografia */
    --font-family: 'Inter', sans-serif;

    /* Outros */
    --border-radius: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Espaçamento e sombras (design tokens) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;

    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
    --shadow-lg: 0 20px 55px rgba(0,0,0,0.45);

    /* Efeito glass opcional */
    --glass-bg: rgba(38, 38, 53, 0.75); /* (Baseado no #262635) */
    --glass-border: rgba(255,255,255,0.06);
}

/* 1.2. Implementação do Light Mode (Nova Classe) */
body.light-mode {
    --color-background: #FFFFFF;
    --color-surface: #F0F0F0;
    --color-primary: #7A4CFF;      /* Mantido consistente */
    --color-secondary: #5833CC;     /* Mantido consistente */
    --color-text: #333333;          /* Cinza escuro legível */
    --color-text-high: #000000;
    --color-text-muted: #555555;    /* Cinza escuro suave */
    --color-border: rgba(0, 0, 0, 0.1); /* Borda cinza claro */

    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 55px rgba(0,0,0,0.15);

    --glass-bg: rgba(240, 240, 240, 0.75); /* (Baseado no #F0F0F0) */
    --glass-border: rgba(0,0,0,0.06);
}


/* ================================================================= */
/* ESTILOS DE BASE E RESET                                           */
/* ================================================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
    position: relative;
    /* Transição suave de TEMA (conforme solicitado) */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* EFEITO DE FUNDO "AURORA" ANIMADO (Agora usará os novos roxos) */
body::before, body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80vmax;
    height: 80vmax;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary), transparent 60%);
    opacity: 0.1;
    filter: blur(100px);
    z-index: -1;
    animation: aurora-move 25s infinite;
}

body::after {
    background: radial-gradient(circle, var(--color-secondary), transparent 60%);
    animation: aurora-move 25s infinite reverse;
    animation-delay: -12.5s;
}

/* CLASSES UTILITÁRIAS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ================================================================= */
/* 2.5. BOTÃO DE TEMA (Novo)                                         */
/* ================================================================= */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001; /* Acima da maioria dos elementos */
  width: 50px;
  height: 50px;
  
  /* Estilo de ícone flutuante SEM fundo e SEM borda */
  background: transparent;
  border: none;
  box-shadow: none;

  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.5rem; /* Ícone maior */
  
  /* Cor do ícone baseada no tema */
  color: var(--color-text-muted); 
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  color: var(--color-primary); /* Roxo no hover */
  transform: scale(1.1);
  background-color: rgba(122, 76, 255, 0.1); /* Leve brilho roxo no hover */
}

/* No light-mode, o ícone deve ser escuro */
body.light-mode .theme-toggle {
    color: var(--color-text-muted);
}
body.light-mode .theme-toggle:hover {
    color: var(--color-primary);
}


/* ================================================================= */
/* BOTÕES (Agora herdam os novos roxos)                               */
/* ================================================================= */
.btn {
    display: block;
    width: 100%;
    padding: 1.1rem 1.5rem;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn:focus-visible {
    outline: 3px solid rgba(122, 76, 255, 0.6);
    outline-offset: 3px;
}
.btn-secondary {
    background: rgba(122, 76, 255, 0.1);
    color: var(--color-primary);
    border-color: rgba(122, 76, 255, 0.3);
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #7A4CFF 0%, #5833CC 100%);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(122, 76, 255, 0.4);
    transform: translateY(-2px);
}
.btn-primary {
    background: linear-gradient(135deg, #7A4CFF 0%, #B47CFF 50%, #7A4CFF 100%);
    background-size: 200% 100%;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(122, 76, 255, 0.3);
}

/* Light mode específico para botões secundários */
body.light-mode .btn-secondary {
    color: var(--color-primary);
    background: rgba(122, 76, 255, 0.08);
}
body.light-mode .btn-secondary:hover {
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(122, 76, 255, 0.5);
    animation: gradient-flow 2s linear infinite;
}

/* Efeito ripple suave ao clicar */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.3), transparent 50%);
    opacity: 0;
    transition: opacity .3s ease;
}
.btn:active::after { 
    opacity: 1; 
    transition: opacity .15s ease; 
}
.btn:active {
    transform: translateY(0);
}


/* ================================================================= */
/* Seção de Preços (MELHORADA)                                       */
/* ================================================================= */

.pricing-hero {
    text-align: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.pricing-hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.pricing-hero .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Fundo decorativo discreto na hero de preços */
.pricing-hero::before {
    content: '';
    position: absolute;
    inset: -10% -20%;
    background:
        radial-gradient(600px 200px at 20% 10%, rgba(122, 76, 255,0.08), transparent 60%), /* Roxo */
        radial-gradient(500px 200px at 80% 0%, rgba(88, 51, 204,0.08), transparent 60%); /* Roxo Escuro */
    pointer-events: none;
}

/* Interruptor de Faturamento */
.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
    font-weight: 500;
}
.billing-toggle label {
    transition: color 0.3s ease;
    color: var(--color-text);
}
/* Lógica para desbotar o label inativo */
.billing-toggle .billing-switch-checkbox:not(:checked) ~ label:last-of-type,
.billing-toggle .billing-switch-checkbox:checked ~ label:first-of-type {
    color: var(--color-text-muted);
}

.toggle-switch { 
    position: relative; 
    width: 60px; 
    height: 32px; 
}
.billing-switch-checkbox { 
    display: none; 
}
.toggle-label { 
    position: absolute; 
    cursor: pointer; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: var(--color-surface); 
    border: 2px solid var(--color-border); 
    border-radius: 34px; 
    transition: var(--transition-smooth); 
}
.toggle-label::before { 
    position: absolute; 
    content: ""; 
    height: 24px; 
    width: 24px; 
    left: 4px; 
    bottom: 2px; 
    background-color: var(--color-text-muted); 
    border-radius: 50%; 
    transition: var(--transition-smooth); 
}
.billing-switch-checkbox:checked + .toggle-label { 
    background-color: var(--color-primary); 
    border-color: var(--color-primary); 
}
.billing-switch-checkbox:checked + .toggle-label::before { 
    transform: translateX(26px); 
    background-color: white; 
}

.discount-badge {
    background: var(--color-primary);
    color: var(--color-text-high); /* Branco/Preto */
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

/* Light mode badge */
body.light-mode .discount-badge {
    color: #FFFFFF;
}


/* Grid e Cards de Preços */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    align-items: stretch;
    padding: 20px 0;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:not(.popular):hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 32px rgba(122, 76, 255, 0.3);
    border-color: rgba(122, 76, 255, 0.4);
}

/* Card Popular com Destaque Premium */
.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid rgba(122, 76, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 40px rgba(122, 76, 255, 0.25);
    z-index: 2;
    background: rgba(122, 76, 255, 0.08);
}

.pricing-card.popular:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px rgba(122, 76, 255, 0.4);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #7A4CFF 0%, #B47CFF 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(122, 76, 255, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.pricing-card__header { padding-bottom: 20px; }
.pricing-card__header h3 { 
    font-size: 1.5rem; 
    margin: 0 0 10px; 
    color: var(--color-text-high);
    letter-spacing: 0.3px;
}
.pricing-card__header p { color: var(--color-text-muted); margin: 0; }

.pricing-card__price {
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}
.pricing-card__price span {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-text-high);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-text-high) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-card__price .billing-period {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
.price-yearly { display: none; }
.price-contact { 
    font-size: 2rem; 
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Lista de Features */
.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    text-align: left;
    flex-grow: 1;
}
.pricing-card__features li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 1rem;
    line-height: 1.5;
}
.pricing-card__features li .fa-check { 
    color: var(--color-primary);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(122, 76, 255, 0.6));
}
.pricing-card__features li .fa-times { 
    color: #555;
    font-size: 1.1rem;
}
.pricing-card__features li:has(.fa-times) {
    color: var(--color-text-muted);
    opacity: 0.5;
    text-decoration: line-through;
}

.pricing-card__features li:hover {
    background: rgba(122, 76, 255, 0.08);
    border-color: rgba(122, 76, 255, 0.25);
    transform: translateX(4px);
}

/* Light Mode Features */
body.light-mode .pricing-card__features li {
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.06);
}
body.light-mode .pricing-card__features li:hover {
    background: rgba(122, 76, 255, 0.08);
    border-color: rgba(122, 76, 255, 0.25);
}


.pricing-card .btn {
    width: 100%;
    justify-content: center;
}
.pricing-card .btn:hover {
    transform: scale(1.05);
}

/* ================================================================= */
/* TABELA COMPARATIVA - REDESIGN PREMIUM                             */
/* ================================================================= */
.feature-comparison {
    padding: 100px 0;
    position: relative;
}
.feature-comparison h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.table-responsive {
    overflow-x: auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
}
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}
.comparison-table th, .comparison-table td {
    padding: 1.8rem 1.5rem;
    text-align: center;
}
.comparison-table thead {
    background: rgba(122, 76, 255, 0.08);
}
.comparison-table thead tr {
    border-bottom: 2px solid rgba(122, 76, 255, 0.3);
}
.comparison-table th {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-high);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.comparison-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}
.comparison-table tbody tr:last-child {
    border-bottom: none;
}
.comparison-table tbody tr:hover {
    background: rgba(122, 76, 255, 0.06);
    transform: scale(1.01);
}
.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    font-size: 1.05rem;
}
.comparison-table .fa-check { 
    color: var(--color-primary); 
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(122, 76, 255, 0.5));
}
.comparison-table .fa-times { 
    color: var(--color-text-muted); 
    opacity: 0.4;
    font-size: 1.4rem;
}

/* ================================================================= */
/* SEÇÃO DE FAQ                                                      */
/* ================================================================= */
.faq {
    padding: 60px 0 100px;
}
.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-text-high);
}
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}
.faq-list details {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}
.faq-list details[open] {
    border-color: var(--color-primary);
}
.faq-list summary {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text);
}
.faq-list details[open] summary {
    color: var(--color-text-high);
}
.faq-list summary::after {
    content: '\f078'; /* Ícone de chevron para baixo */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease-in-out;
}
.faq-list details[open] summary::after {
    transform: rotate(180deg);
}
.faq-list details p {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ================================================================= */
/* SEÇÃO DE TESTEMUNHOS (CÓDIGO MELHORADO E SUAVIZADO)               */
/* ================================================================= */
.testimonials {
    padding: 60px 0 120px;
    overflow: hidden; /* Garante que os cards não "vazem" durante a animação */
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-text-high);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-surface);
    padding: 2.5rem; /* Aumentado para mais respiro */
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    position: relative; /* Necessário para o posicionamento das aspas */
    transition: var(--transition-smooth); /* Transição suave para o hover */
    
    /* Animação de entrada individual */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Efeito de hover suave */
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-left-color: var(--color-primary); /* Mantém roxo */
}

/* Atraso na animação para efeito escalonado (stagger) */
.testimonials-grid .testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}
.testimonials-grid .testimonial-card:nth-child(3) {
    animation-delay: 0.4s;
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem; /* Mais espaço antes do nome */
    position: relative;
    z-index: 1; /* Garante que o texto fique acima das aspas */
}

/* Aspas decorativas para um visual mais profissional */
.testimonial-card blockquote::before {
    content: '“';
    position: absolute;
    top: -2rem;
    left: -1.5rem;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--color-primary);
    opacity: 0.1;
    z-index: 0;
    line-height: 1;
}

.testimonial-card cite {
    display: block; /* Garante que o alinhamento e margens funcionem bem */
    font-weight: 600;
    color: var(--color-text);
    text-align: right; /* Alinha o nome do autor à direita */
}


/* ================================================================= */
/* ANIMAÇÕES (Keyframes)                                             */
/* ================================================================= */
@keyframes aurora-move {
    0%, 100% {
        transform: translateX(-50%) translateY(-50%) scale(1) rotate(0deg);
    }
    50% {
        transform: translateX(-40%) translateY(-60%) scale(1.2) rotate(180deg);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes rotate { 
    100% { transform: rotate(1turn); } 
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradient-border-flow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* CORREÇÃO: Adicionando a animação 'fadeInUp' que estava faltando */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================= */
/* RESPONSIVIDADE                                                    */
/* ================================================================= */
@media (max-width: 992px) {
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-grid {
        gap: 1.5rem;
    }
    .pricing-card { padding: 2rem; }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card {
        margin: 0 auto;
        max-width: 420px;
    }
}

/* Acessibilidade: respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
    * { 
      animation-duration: 0.01ms !important; 
      animation-iteration-count: 1 !important; 
      transition-duration: 0.01ms !important; 
      scroll-behavior: auto !important; 
    }
}