:root {
    --brand-primary: #d4ff00;
    --brand-primary-glow: rgba(212, 255, 0, 0.4);
    /* Default Dark Theme Colors */
    --brand-bg: #030712; 
    --brand-bg-light: #111827;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --surface: rgba(212, 255, 0, 0.03);
    --surface-border: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] {
    --brand-bg: #ACAEB0;
    --brand-bg-light: #9CA1A6;
    --text-main: #000000;
    --text-muted: #1e293b;
    --surface: rgba(212, 255, 0, 0.1); 
    --surface-border: #000000; 
}

/* Fundo preto para textos LIME no tema Light */
html[data-theme="light"] .highlight-text {
    background: #030712;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: var(--brand-primary);
    padding: 0.1em 0.4em 0.25em 0.4em; /* Adicionado padding bottom para letras com descida como 'g' e 'ç' */
    border-radius: 8px;
    display: inline-block;
}

html[data-theme="light"] .badge {
    background: #030712;
    border-color: #030712;
}

html[data-theme="light"] .step-number {
    background: #030712;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Alinhado com a altura do navbar fixa */
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--brand-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografia Estilizada */
.highlight-text {
    font-style: italic;
    background: linear-gradient(135deg, #d4ff00 0%, #e8fe55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(212, 255, 0, 0.3);
    padding-right: 0.25em; /* Aumentado para evitar corte da letra "r" em itálico */
}

.section-title {
    font-size: clamp(2rem, 6vw, 2.8rem); /* Reduzi levemente o max para caber melhor */
    text-align: center;
    margin-bottom: clamp(1rem, 3vh, 2rem);
    width: 100%; /* Garante que ocupe toda a largura para o text-align funcionar */
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

/* Navbar Fixa */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-img {
    height: 120px; /* Aumentado significativamente */
    width: auto;
    max-width: 60vw; /* Ajuste para não empurrar os links no mobile */
    object-fit: contain;
    margin: -30px 0; /* Margem negativa para não expandir demais a navbar verticalmente */
}

.footer-logo-img {
    height: 160px;
    width: auto;
    max-width: 80vw;
    object-fit: contain;
    margin-bottom: 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

/* Força cores do tema dark no menu superior no tema light (apenas desktop e apenas quando rolar a página) */
@media (min-width: 769px) {
    html[data-theme="light"] .navbar.scrolled .nav-links a {
        color: #94a3b8;
    }
    
    html[data-theme="light"] .navbar.scrolled .nav-links a:hover, 
    html[data-theme="light"] .navbar.scrolled .nav-links a.active {
        color: #f8fafc;
    }

    html[data-theme="light"] .navbar.scrolled .theme-toggle-btn {
        color: #f8fafc;
    }

    html[data-theme="light"] .navbar.scrolled .btn-outline {
        color: #f8fafc;
        border-color: rgba(255, 255, 255, 0.05);
    }

    html[data-theme="light"] .navbar.scrolled .btn-outline:hover {
        border-color: #f8fafc;
    }
}

.mobile-only {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--surface);
    transform: scale(1.1);
}

/* Hide correct icon based on theme */
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }

html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

/* Mobile Menu Button Base Styles */
.mobile-menu-btn {
    display: none; /* Elemento invisível no Desktop */
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1001; /* Ficar acima do menu aberto */
    position: relative;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background-color: var(--brand-primary); /* Alterado para Lime */
    transition: all 0.3s ease;
    border-radius: 3px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--brand-bg);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-main);
    box-shadow: 0 0 0 2px var(--text-main) inset;
}

.btn-secondary {
    background-color: var(--brand-bg-light);
    color: var(--text-main);
    border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
    background-color: var(--surface);
    border-color: var(--brand-primary);
    box-shadow: 0 0 15px var(--brand-primary-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--surface-border);
}

.btn-outline:hover {
    border-color: var(--text-main);
}

.btn-lime-outline {
    background-color: #030712;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
}

.btn-lime-outline:hover {
    background-color: var(--brand-primary);
    color: #030712;
    box-shadow: 0 0 15px var(--brand-primary-glow);
}

/* Hero Section */
.hero {
    position: relative;
    padding: max(4rem, 10vh) 2rem 2vh;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

/* ==========================================================================
   Update Notification Modal (Landing Page)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

.modal-content {
    background: rgba(10, 10, 10, 0.95);
    backdrop-blur: 20px;
    border: 2px solid var(--brand-primary);
    border-radius: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(191, 255, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.modal-badge {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.version-tag {
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
}

.expand-btn {
    background: var(--brand-primary);
    border: none;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s;
}

.expand-btn:hover {
    transform: scale(1.05);
}

.modal-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.update-main-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.update-icon-small {
    font-size: 2.5rem;
}

.modal-body h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.update-changes {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.5);
}

.update-changes.hidden {
    display: none;
}

.update-changes p {
    font-size: 0.95rem;
    font-style: italic;
    color: #eee;
    line-height: 1.6;
}

.modal-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-apk-lime, .btn-web-lime {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    padding: 1rem;
    border-radius: 40px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-apk-lime:hover, .btn-web-lime:hover {
    background: rgba(191, 255, 0, 0.05);
    transform: translateY(-2px);
}

.btn-text-muted {
    grid-column: span 2;
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    text-decoration: underline;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 255, 0, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

.top-left { top: -200px; left: -200px; }
.bottom-right { bottom: -200px; right: -200px; }
.top-right { top: -200px; right: -200px; }
.bottom-left { bottom: -200px; left: -200px; }

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--brand-primary);
    font-size: min(0.85rem, 2vh);
    font-weight: 700;
    margin-bottom: min(1.5rem, 3vh);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: clamp(2rem, min(6vw, 8vh), 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: min(1.25rem, 2vh);
}

.prevent-split {
    white-space: nowrap !important;
}



.subtitle {
    font-size: clamp(0.9rem, min(2vw, 2.5vh), 1.15rem);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto min(1rem, 2vh);
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: min(1.5rem, 3vh);
}

/* Glass Card Globales */
.glass-card {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
}

/* Hero Statistics */
.stats-box {
    display: inline-flex;
    align-items: center;
    padding: min(0.8rem, 1.5vh) 1.5rem;
    margin: min(1.5rem, 3vh) auto;
    gap: 1.5rem;
    border: 1px solid var(--brand-primary);
}

.stat-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 2px;
    height: 30px;
    background: var(--surface-border);
}

.stat-stars {
    color: #fbbf24;
    font-size: 1.6rem; /* Aumentado a pedido do usuario */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza as estrelas em desktop e mobile */
    line-height: 1; /* Retira o topo "invisível" que algumas fontes têm */
    gap: 0.5rem; /* Reduzido para economizar espaço vertical */
}
.stat-stars span {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem; /* Margem interna para evitar encostar nas bordas em mobile */
}

/* Seções Padrão */
section {
    min-height: 100vh;
    min-height: 100svh; /* Suporte melhor para mobile browsers (evita barra de navegação cortando) */
    position: relative;
    overflow: hidden;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 1.5rem 20px; /* Reduzi o padding bottom para ganhar espaço */
}

/* Ajuste específico para a seção de recursos no desktop para subir o conteúdo */
#recursos {
    /* Padding já herdado e ajustado globalmente */
}

@media (max-width: 768px) {
    section {
        padding: 90px 1rem 3rem; 
    }
}

/* Grid de Recursos */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.feature-card {
    padding: 1.5rem 1.25rem;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 30px var(--brand-primary-glow);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Como funciona (Steps) */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--brand-bg-light);
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin: 0 auto 0.75rem; /* Reduzido de 1.5rem */
    box-shadow: 0 0 20px var(--brand-primary-glow);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.step-divider {
    flex: 1;
    height: 2px;
    background: var(--surface-border);
    margin-top: -60px; /* Alinha com o meio dos círculos */
}

/* Footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsividade Básica (Telas Menores / Dispositivos Móveis) */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .hero {
        align-items: flex-start; /* Tira o alinhamento central vertical, colando o conteúdo mais acima */
        padding: max(6.5rem, 12vh) 1rem 2vh;
    }
    .badge {
        font-size: min(0.7rem, 1.5vh);
        margin-bottom: min(1rem, 2vh);
    }
    .headline { 
        font-size: clamp(1.1rem, 5.2vw, 2.2rem); 
        margin-bottom: min(0.8rem, 1.5vh);
        letter-spacing: -1px;
    }
    .subtitle {
        font-size: clamp(0.85rem, min(4vw, 2vh), 1rem);
        margin: 0 auto min(1rem, 2vh);
    }
    .stats-box { 
        flex-direction: column; 
        gap: min(0.5rem, 1.5vh); 
        padding: min(0.5rem, 1.5vh) 1rem;
        margin: min(1rem, 2vh) auto;
        text-align: center; 
    }
    .stat-inner, .stat-stars { align-items: center; text-align: center; }
    .stat-stars { margin-top: -0.4rem; } /* Puxa as estrelas para cima, dividindo melhor o espaço */
    .stat-value { font-size: 1.2rem; }
    .stat-label { font-size: 0.65rem; }
    .stat-divider { width: 50%; height: 1px; }
    
    .nav-actions { display: none; }
    
    .nav-links { 
        display: none; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #030712;
        flex-direction: column;
        padding: 80px 2rem 2rem;
        gap: 1.5rem;
        z-index: 998;
        text-align: left;
        overflow-y: auto;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-only {
        display: block;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        font-size: 1.2rem;
        color: var(--brand-primary); /* Texto agora em Lime */
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(212, 255, 0, 0.1);
    }
    .nav-links .btn-mobile-only {
        display: inline-flex;
        margin-top: 1rem;
        background: var(--brand-primary);
        color: #000;
        width: 100%;
        justify-content: center;
    }
    
    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg);
        position: absolute;
    }
    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
    }
    
    .cta-group { 
        flex-direction: column; 
        width: 100%;
        margin-top: min(1rem, 2vh);
        gap: min(0.8rem, 1.5vh);
    }
    .cta-group .btn {
        width: 100%;
        padding: min(0.8rem, 1.5vh) 1rem;
    }

    .steps-container { flex-direction: column; gap: 3rem; }
    .step-divider { display: none; }
}
/* Responsividade Vertical (Telas de Notebook / Baixa Altura) */
@media (max-height: 800px) and (min-width: 769px) {
    .hero {
        padding-top: 5rem;
    }
    .badge {
        margin-bottom: 1rem;
    }
    .headline {
        font-size: clamp(2.5rem, 4.5vw, 3.8rem);
        margin-bottom: 0.8rem;
    }
    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    .stats-box {
        margin: 1rem auto;
        padding: 0.6rem 1.2rem;
    }
    .cta-group {
        margin-top: 1rem;
    }
}

@media (max-height: 650px) and (min-width: 769px) {
    .hero {
        padding-top: 4.5rem;
        padding-bottom: 1rem;
    }
    .badge {
        margin-bottom: 0.5rem;
    }
    .headline {
        font-size: clamp(2rem, 4vw, 3.2rem);
        margin-bottom: 0.5rem;
    }
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    .stats-box {
        margin: 0.5rem auto;
        padding: 0.5rem 1rem;
    }
    .cta-group {
        margin-top: 0.5rem;
    }
}

/* ==========================================================================
   Otimização para Telas Grandes (Desktop Premium)
   ========================================================================== */

@media (min-width: 1440px) {
    :root {
        --container-max: 1350px;
    }

    .container {
        max-width: var(--container-max);
    }

    .headline {
        font-size: clamp(3rem, 5vw, 4.5rem);
    }

    .subtitle {
        font-size: 1.25rem;
        max-width: 800px;
    }

    .hero-content {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .nav-container {
        max-width: var(--container-max);
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr auto 1fr; /* Força o menu central a ficar no meio absoluto */
        align-items: center;
    }

    .nav-actions {
        justify-content: flex-end;
    }

    .stats-box {
        padding: 1.5rem 3rem;
        transform: scale(1.1);
        margin: 2.5rem auto;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .feature-card {
        padding: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.4rem;
    }

    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .glow-orb {
        width: 600px;
        height: 600px;
        filter: blur(120px);
    }
}

@media (min-width: 1920px) {
    :root {
        --container-max: 1500px;
    }

    .headline {
        font-size: 5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .feature-card p {
        font-size: 1.15rem;
    }

    .btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }

    .stats-box {
        transform: scale(1.2);
    }
}

/* ==========================================================================
   Otimização para Desktop Centralizado (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
    section {
        /* A altura é a tela toda MENOS a altura do navbar (90px) */
        min-height: calc(100vh - 90px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* Padding zero verticalmente para o flex-center ser geometricamente perfeito */
        padding: 0 2rem; 
    }
    
    section.hero {
        /* A section hero fica 100vh porque ela inicia "embaixo" da nav inicial em Y=0 */
        min-height: 100vh;
        /* Adicionamos 90px no topo dela para que o flex center compense o espaço visual "roubado" pelo navbar */
        padding-top: 90px;
    }

    section > .container, section > .hero-content {
        width: 100%;
    }
}
