/* ============================================
CSS Variables (Theme Colors & Fonts)
============================================
*/
:root {
    /* Tema Escuro (Padrão - Cores do layout original) */
    --background-color: #24133D; /* Roxo bem escuro, quase preto */
    --primary-color: #FFFFFF;   /* Branco puro para texto principal */
    --secondary-text-color: #C0B6D2; /* Um tom de cinza-roxo claro */
    --icon-bg-color: #382455;   /* Roxo um pouco mais claro para fundos de ícones */
    --footer-text-color: #8C82A3; /* Tom de cinza-roxo para o rodapé */
    --dropdown-bg-color: #382455; /* Fundo do dropdown, mesma cor do icon-bg-color */
    --dropdown-hover-color: #4A306D; /* Hover nos itens do dropdown */

    --font-family: 'Roboto', sans-serif;
}

body.light-mode {
    /* Tema Claro (Versão coerente das cores originais) */
    --background-color: #F9F7FD; /* Fundo branco-acinzentado muito claro */
    --primary-color: #24133D;   /* Texto principal roxo escuro */
    --secondary-text-color: #5E5278; /* Texto secundário roxo acinzentado */
    --icon-bg-color: #E9E4F2;   /* Fundo de ícones cinza-claro roxeado */
    --footer-text-color: #8C82A3; /* Rodapé cinza-roxo */
    --dropdown-bg-color: #FFFFFF; /* Fundo do dropdown branco */
    --dropdown-hover-color: #F0EDF5; /* Hover nos itens do dropdown branco-acinzentado */
}


/* ============================================
Base and Reset Styles
============================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--primary-color);
    font-family: var(--font-family);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* ============================================
Header
============================================
*/
header.container { /* Alterado de 'header' para 'header.container' */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

p.logo-text { /* Estilo para o texto do logo no header */
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0; 
}


.social-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-icons > div > a { /* Target direct children 'a' of selectors */
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.social-icons .material-symbols-outlined {
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.social-icons > div > a:hover {
    opacity: 0.8;
}

/* ============================================
Dropdown Styles (Comum para Tema e Idioma)
============================================
*/
.language-selector, .theme-selector {
    position: relative;
}

.language-dropdown, .theme-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--dropdown-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
}

.language-selector.active .language-dropdown,
.theme-selector.active .theme-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown ul, .theme-dropdown ul {
    list-style: none;
    padding: 0.5rem 0;
}

.language-dropdown ul li a, .theme-dropdown ul li a {
    color: var(--primary-color); /* Garante que o texto do dropdown mude de cor com o tema */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.language-dropdown ul li a:hover, .theme-dropdown ul li a:hover {
    background-color: var(--dropdown-hover-color);
}

.check-icon {
    font-size: 1.2rem;
    visibility: hidden; /* Oculta o ícone por padrão */
}

/* Mostra o ícone de check quando o link tem a classe .selected */
.language-dropdown ul li a.selected .check-icon,
.theme-dropdown ul li a.selected .check-icon {
    visibility: visible;
}

/* ============================================
Hero Section
============================================
*/
.hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 4rem 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 300px;
    width: 100%;
}

.hero-content {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content .logo {
    margin-bottom: 1rem;
}

.logo-icon-large {
    font-size: 3rem;
}

.hero-content h1 { /* Seletor h1 para o título principal da seção hero */
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-content h2.subtitle { /* Seletor h2.subtitle para o subtítulo */
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-content .description {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    max-width: 500px;
    margin-bottom: 2rem;
}

.google-play-button img {
    height: 60px;
    transition: transform 0.3s ease;
}

.google-play-button:hover img {
    transform: scale(1.05);
}

/* ============================================
Features Section
============================================
*/
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 2rem;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.feature-icon-wrapper {
    background-color: var(--icon-bg-color);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.feature-icon-wrapper .material-symbols-outlined {
    font-size: 2.5rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.feature-item p {
    color: var(--secondary-text-color);
    max-width: 320px;
}

/* ============================================
Footer
============================================
*/
footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
    border-top: 1px solid var(--icon-bg-color);
    margin-top: 2rem;
    transition: border-color 0.3s ease;
}

footer a {
    color: var(--footer-text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* ============================================
Responsive Design (Media Queries)
============================================
*/
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .hero-content {
        align-items: center;
    }

    .hero-content .description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    header.container { /* Usando o seletor específico para manter o padding */
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 2rem; 
        padding-bottom: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
    
    .language-dropdown, .theme-dropdown {
        left: 50%;
        transform: translateX(-50%) translateY(-10px); /* Posição inicial para animação */
        top: calc(100% + 15px);
    }

    .language-selector.active .language-dropdown,
    .theme-selector.active .theme-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
Legal Content Page Styles
============================================
*/
.legal-content {
    max-width: 800px;
    margin: 2rem auto 4rem auto;
    padding: 2rem 3rem;
    background-color: var(--icon-bg-color);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.legal-content h1, 
.legal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.legal-content h1 {
    font-size: 2.2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dropdown-hover-color);
}

.legal-content p,
.legal-content li {
    line-height: 1.7;
    color: var(--secondary-text-color);
}

.legal-content p {
    margin-bottom: 1em;
}

.legal-content ul, 
.legal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
}

.legal-content a {
    color: #c9b2ff; /* Tom de roxo mais vibrante para links */
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

/* ============================================
Modern Redesign Styles
============================================
*/

/* Animação de Fade-in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-animated {
    animation: fadeInUp 0.8s ease-out forwards;
}


/* Hero Section Renovada */
.hero-content h1 {
    font-size: 3rem; /* Título maior e mais impactante */
}

.hero-content .subtitle {
    font-size: 1.5rem;
}

.hero .google-play-button {
    margin-top: 1rem;
}

/* Seção de Prova Social (Depoimentos) */
.social-proof {
    padding: 4rem 2rem;
    background-color: var(--icon-bg-color);
    text-align: center;
}

.social-proof h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.testimonials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.testimonial-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.testimonial-card blockquote {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    border-left: 3px solid var(--dropdown-hover-color);
    padding-left: 1.5rem;
}

.testimonial-card footer {
    margin-top: 1.5rem;
    padding: 0;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    text-align: right;
    color: var(--primary-color);
}


/* Destaque de Funcionalidades (Layout Zig-Zag) */
.feature-spotlight {
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Inverte a ordem da imagem e texto para seções pares */
.feature-spotlight:nth-of-type(even) {
    flex-direction: row-reverse;
}

.spotlight-text {
    flex: 1;
}

.spotlight-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.spotlight-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--secondary-text-color);
}

.spotlight-image {
    flex: 1;
    text-align: center;
}

.spotlight-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Seção de FAQ */
.faq-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.faq-item {
    background-color: var(--icon-bg-color);
    margin-bottom: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    text-align: left;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.faq-item p {
    color: var(--secondary-text-color);
    line-height: 1.7;
}


/* Seção de CTA Final */
.final-cta {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(45deg, #4a306d, #382455);
}

.final-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}


/* Ajustes de Responsividade para as novas seções */
@media (max-width: 992px) {
    .feature-spotlight, .feature-spotlight:nth-of-type(even) {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .spotlight-text h2 {
        font-size: 2rem;
    }
}

.spotlight-image img {
    box-shadow: none;
    border-radius: 0;
}