:root {
    /* --- TEMA CLARO --- */
    --bg-main: #FFFFFF;
    --bg-alt: #F4F4F6;
    --bg-card: #FFFFFF;
    --text-main: #18181B;
    --text-muted: #71717A;
    --text-title: #352486; /* Roxo/Azul */

    --premium-yellow: #EAB308;
    --premium-glow: rgba(234, 179, 8, 0.4);

    --normal-purple: #9333EA;
    --normal-glow: rgba(147, 51, 234, 0.2);

    --nav-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --badge-bg: rgba(255, 255, 255, 0.98); /* Aumentei opacidade */
    --badge-border: #e4e4e7;

    --font-body: 'Inter', sans-serif;
    --font-title: 'Oswald', sans-serif;
}

/* --- TEMA ESCURO --- */
[data-theme="dark"] {
    --bg-main: #09090b;
    --bg-alt: #09090b;
    --bg-card: #18181b;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --text-title: #ffffff;

    --premium-glow: rgba(234, 179, 8, 0.6);
    --normal-glow: rgba(147, 51, 234, 0.5);

    --nav-border: #27272a;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --badge-bg: #18181b; /* Cor sólida para não precisar de blur */
    --badge-border: #333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Tipografia */
h1, h2, h3, .highlight-title {
    font-family: var(--font-title);
    text-transform: uppercase;
    color: var(--text-title);
}

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; }

p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-pad { padding: 80px 0; }

.bg-alt {
    background-color: var(--bg-alt);
    transition: background-color 0.3s;
}

.highlight-yellow { color: var(--premium-yellow); }

/* HEADER - PERFORMANCE OPTIMIZED (SEM BLUR) */
header {
    padding: 15px 0;
    background: var(--premium-yellow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s, border 0.3s;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.2);
    backdrop-filter: none; /* Garante que não tenha blur */
}

[data-theme="dark"] header {
    background: rgba(9, 9, 11, 0.98); /* Quase sólido */
    border-bottom: 1px solid var(--nav-border);
    box-shadow: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-style: italic;
}

.logo i { color: var(--text-title); fill: var(--text-title); }
.logo span { color: var(--text-title) !important; font-family: var(--font-title); text-transform: uppercase; }

[data-theme="dark"] .logo i { color: var(--premium-yellow); fill: var(--premium-yellow); }
[data-theme="dark"] .logo span { color: var(--premium-yellow) !important; }

/* NAV */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
}

[data-theme="dark"] .desktop-nav a { color: var(--text-muted); font-weight: 500; }
[data-theme="dark"] .desktop-nav a:hover { color: var(--text-title); }

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s;
}

[data-theme="dark"] .desktop-nav a::after { background: var(--premium-yellow); }
.desktop-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 15px; }

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    padding: 5px;
    transition: 0.3s;
}

[data-theme="dark"] .theme-btn { color: var(--text-main); }
.theme-btn:hover { color: var(--text-title); opacity: 0.7; }
[data-theme="dark"] .theme-btn:hover { color: var(--premium-yellow); opacity: 1; }

/* Botões */
button {
    cursor: pointer;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-weight: 700;
    transition: 0.3s;
}

.btn-login {
    padding: 10px 24px;
    background: #000;
    color: var(--premium-yellow);
    border: none;
    border-radius: 4px;
    white-space: nowrap;
}

[data-theme="dark"] .btn-login { background: var(--text-title); color: #000; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
[data-theme="dark"] .btn-login:hover { background: var(--premium-yellow); color: #000; }

.btn-primary {
    background: var(--premium-yellow);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px var(--premium-glow);
}
.btn-primary:hover { transform: translateY(-3px); }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 50px;
}
.btn-secondary:hover { border-color: var(--text-title); color: var(--text-title); }

/* Hero */
.hero {
    margin-top: 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text-content { flex: 1; z-index: 1; }

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.hero-image-container {
    position: relative;
    display: inline-block;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid var(--nav-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

[data-theme="dark"] .hero-image-container { background: #18181b; border-color: #333; }
.hero-image-container:hover { transform: rotateY(-5deg) rotateX(5deg) scale(1.02); }

.hero-image {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
    display: block;
}

.img-light { display: block; }
.img-dark { display: none; }
[data-theme="dark"] .img-light { display: none; }
[data-theme="dark"] .img-dark { display: block; }

/* STAT BADGE - PERFORMANCE OPTIMIZED */
.stat-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--badge-bg); /* Sólido */
    backdrop-filter: none; /* Sem blur */
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid var(--badge-border);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 5;
    transition: 0.3s;
    transform: translateZ(30px);
}

.stat-badge i { color: var(--premium-yellow); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.stat-value { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(234, 179, 8, 0.1);
    border-radius: 50px;
    color: var(--premium-yellow);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.cta-buttons { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }

/* ESTRELAS E FUNDO */
.stars-bg, .star-bg-effect { display: none; pointer-events: none; }
[data-theme="dark"] .stars-bg, [data-theme="dark"] .star-bg-effect { display: block; }

.stars-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) infinite linear;
    opacity: 0;
}

@keyframes twinkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: var(--opacity); transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0.5); }
}

.star-bg-effect {
    position: absolute;
    top: 50%; left: 25%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.12) 0%, transparent 70%);
    filter: blur(70px); /* Esse blur não costuma travar tanto pois é estático */
    z-index: -1;
}

.hero-star-svg {
    display: none; pointer-events: none; position: absolute;
    top: 50%; right: 0; transform: translate(30%, -50%) rotate(15deg);
    width: 600px; height: 600px;
    color: var(--premium-yellow); opacity: 0.05; z-index: -2;
    transition: all 0.5s ease;
}

[data-theme="dark"] .hero-star-svg {
    display: block; right: auto; left: 25%; top: 45%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 800px; height: 800px; opacity: 0.08;
}

/* Discover */
.discover-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}

.discover-card {
    background: var(--premium-yellow); border-radius: 30px; padding: 25px;
    text-align: center; position: relative;
    box-shadow: var(--card-shadow); overflow: hidden;
    max-width: 400px; margin: 0 auto;
}

.card-star-logo {
    position: absolute; top: 20px; left: 50%;
    transform: translateX(-50%); color: #000;
    font-family: var(--font-title); font-weight: 700; font-size: 1.1rem;
    display: flex; align-items: center; gap: 5px; z-index: 2;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.discover-img {
    width: 100%; border-radius: 20px; margin-top: 30px; margin-bottom: 20px;
    position: relative; z-index: 1; animation: float 4s ease-in-out infinite;
}

.btn-discover {
    background: #FFFFFF; color: #000; border: none;
    padding: 10px 25px; border-radius: 50px; font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); position: relative; z-index: 2;
}
.btn-discover:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }

/* Features */
.section-header { text-align: center; margin-bottom: 50px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.feature-box {
    padding: 30px; background: var(--bg-card);
    border: 1px solid var(--nav-border); border-radius: 12px;
    transition: 0.3s; box-shadow: var(--card-shadow);
}
.feature-box:hover { border-color: var(--premium-yellow); transform: translateY(-5px); }

.feature-icon-wrapper {
    width: 50px; height: 50px;
    background: rgba(234, 179, 8, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--premium-yellow);
}

.feature-box h3 { font-size: 1.25rem; margin-bottom: 10px; }

/* Planos */
.plans-wrapper {
    display: flex; align-items: center; justify-content: center;
    gap: 50px; flex-wrap: wrap;
}

.plans-list {
    display: flex; gap: 30px; flex-wrap: wrap; justify-content: center;
}

/* CARD MULHER IA */
.ia-highlight {
    max-width: 400px; width: 100%; position: relative;
    border-radius: 20px; overflow: hidden;
    border: 1px solid var(--nav-border); background: #FFFFFF !important;
    box-shadow: var(--card-shadow); order: -1;
}

[data-theme="dark"] .ia-highlight { background: #000000; border-color: #333; }

.ia-img {
    width: 100%; height: auto; display: block; position: relative;
    z-index: 1; opacity: 1 !important; transition: transform 0.5s ease, filter 0.5s ease;
}

.ia-highlight:hover .ia-img { transform: scale(1.05); filter: brightness(1.1); }

.ia-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; pointer-events: none; transition: background 0.3s;
    background: transparent;
}

[data-theme="dark"] .ia-overlay { background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.9) 100%); }

.ia-caption {
    position: absolute; bottom: 20px; left: 20px; right: 20px;
    background: rgba(255, 255, 255, 0.95); padding: 12px;
    border-radius: 8px; border-left: 3px solid var(--premium-yellow);
    font-size: 0.8rem; color: #000; border: 1px solid #e4e4e7; z-index: 3;
}
[data-theme="dark"] .ia-caption { background: rgba(24, 24, 27, 0.8); color: #ddd; border-color: #333; }

.card {
    background: var(--bg-card); border-radius: 16px; padding: 40px;
    width: 320px; text-align: center; transition: all 0.3s ease;
    position: relative; border: 1px solid var(--nav-border);
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: var(--card-shadow);
}
.card:hover { transform: translateY(-8px); }

.card.normal { border-top: 4px solid var(--normal-purple); }
.card.normal h2 { color: var(--normal-purple); }

.btn-normal {
    background: transparent; color: var(--text-main);
    border: 1px solid var(--normal-purple); padding: 15px;
    border-radius: 8px; width: 100%; margin-top: 25px;
}
.btn-normal:hover { background: var(--normal-purple); color: white; }

.card.premium {
    border: 1px solid var(--premium-yellow); transform: scale(1.05); z-index: 2;
}
.card.premium:hover {
    transform: scale(1.08); box-shadow: 0 0 30px var(--premium-glow); border-color: var(--premium-yellow);
}
.card.premium h2 { color: var(--premium-yellow); }

.popular-tag {
    position: absolute; top: 0; right: 0;
    background: var(--premium-yellow); color: #000;
    font-weight: 800; font-size: 0.75rem; padding: 5px 15px;
    border-bottom-left-radius: 12px;
}

.btn-premium {
    background: var(--premium-yellow); color: #000; border: none;
    padding: 15px; border-radius: 8px; width: 100%; margin-top: 25px;
}
.btn-premium:hover { background: #fbbf24; }

.price {
    font-size: 3.5rem; font-weight: 700; font-family: var(--font-title);
    margin: 15px 0; color: var(--text-main); line-height: 1;
}
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; font-family: var(--font-body); }

.features { list-style: none; text-align: left; margin-top: 20px; margin-bottom: 20px; }

.features li {
    margin-bottom: 12px; display: flex; align-items: center;
    gap: 12px; color: var(--text-muted); font-size: 0.95rem;
}
.features li i { color: var(--text-main); }
.unavailable { text-decoration: line-through; opacity: 0.5; }

/* MODAL OVERLAY - PERFORMANCE OPTIMIZED */
.auth-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    /* Cor mais sólida para evitar blur */
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: none; /* ESSENCIAL PARA PERFORMANCE */
    z-index: 2000;
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s;
}

.auth-overlay.active { opacity: 1; }

.auth-box.split-modal {
    width: 95%; max-width: 900px; display: flex; padding: 0;
    overflow: hidden; border: none; border-radius: 16px;
}

.modal-image-col {
    flex: 1; display: block; position: relative; background: #000;
}
.modal-image-col img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-form-col {
    flex: 1; padding: 40px; display: flex; flex-direction: column;
    justify-content: center; position: relative;
}

.modal-header { margin-bottom: 30px; }
.modal-header p { margin: 0; font-size: 1.1rem; font-weight: 400; }
.modal-header h2 { font-size: 2.5rem; line-height: 1; margin-top: 5px; font-family: var(--font-title); }

.modal-form-col .input-group { margin-bottom: 20px; position: relative; }

.modal-form-col .input-group input {
    border-radius: 50px; padding: 15px 25px; border: none;
    width: 100%; font-size: 0.95rem;
}

/* OLHINHO DA SENHA */
.password-group input { padding-right: 50px !important; }

.toggle-password {
    position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); cursor: pointer; color: #888;
    z-index: 10; display: flex;
}
.toggle-password:hover { color: var(--premium-yellow); }

.btn-submit-modal {
    width: 100%; padding: 15px; border-radius: 50px;
    font-weight: 700; text-transform: uppercase; border: none;
    margin-top: 15px; font-size: 1rem; cursor: pointer; transition: 0.3s;
}

/* Temas do Modal */
.modal-theme-premium { background-color: #09090b !important; color: #ffffff; }
.modal-theme-premium .modal-header p { color: #ffffff; }
.modal-theme-premium .modal-header h2 { color: #EAB308; }
.modal-theme-premium input { background-color: #f4f4f5 !important; color: #000 !important; }
.modal-theme-premium .btn-submit-modal { background-color: #f4f4f5; color: #000; }
.modal-theme-premium .btn-submit-modal:hover { background-color: #EAB308; }

.modal-theme-normal { background-color: #f4f4f5 !important; color: #18181B; }
.modal-theme-normal .modal-header p { color: #18181B; }
.modal-theme-normal .modal-header h2 { color: #4A3182; }
.modal-theme-normal input { background-color: #18181B !important; color: #fff !important; }
.modal-theme-normal .btn-submit-modal { background-color: #18181B; color: #fff; }
.modal-theme-normal .btn-submit-modal:hover { background-color: #4A3182; }

/* Footer */
footer {
    margin-top: auto; background: #000; padding: 60px 5%;
    text-align: center; border-top: 1px solid #27272a;
}

.credits-title {
    color: var(--premium-yellow); font-weight: 700; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem;
}

.team-grid { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

.team-member {
    background: #18181b; padding: 8px 20px; border-radius: 6px;
    font-size: 0.85rem; border: 1px solid #333; color: #d4d4d8; transition: 0.2s;
}
.team-member:hover { border-color: var(--premium-yellow); color: white; }

.team-card {
    background: transparent; border: none; padding: 15px 0;
    text-decoration: none; color: white; display: flex;
    align-items: center; gap: 15px; border-bottom: 1px solid #333;
}

.social-icons { margin-top: 30px; display: flex; justify-content: center; gap: 20px; }
.social-icons a { color: var(--text-muted); transition: 0.3s; }
.social-icons a:hover { color: var(--premium-yellow); transform: scale(1.1); }
.copyright { margin-top: 40px; font-size: 0.8rem; color: #52525b; }

/* --- MOBILE & PERFORMANCE FIXES --- */
@media (max-width: 900px) {
    /* 1. PERFORMANCE: REMOVE BLUR PARA NÃO TRAVAR (CRÍTICO) */
    header, .stat-badge, .auth-overlay, .glass-effect {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Deixa o fundo do header sólido no mobile */
    [data-theme="dark"] header {
         background: #09090b !important;
         border-bottom: 1px solid #27272a;
    }

    /* 2. Esconde o menu desktop */
    .desktop-nav { display: none; }

    /* 3. Ajustes Gerais de Layout */
    .hero-container, .discover-grid { 
        display: flex; flex-direction: column; text-align: center; 
        gap: 3rem; align-items: center; 
    }

    .hero h1 { font-size: 2.5rem; }

    /* 4. Hero Image */
    .hero-image-wrapper { width: 100%; margin-top: 20px; }
    .hero-image-container { display: block; margin: 0 auto; width: 90%; max-width: 350px; }

    .stat-badge { 
        left: 50%; transform: translateX(-50%) translateZ(20px); 
        bottom: -15px; width: auto; white-space: nowrap; 
        padding: 10px 20px; background: var(--bg-card);
    }

    .cta-buttons { justify-content: center; }

    /* 5. CARD AMARELO */
    .discover-card { 
        order: -1; width: 90%; max-width: 320px; 
        height: auto; padding: 40px 20px; 
    }

    .card-star-logo {
        position: relative; top: 0; left: 0; transform: none;
        justify-content: center; margin-bottom: 20px;
    }

    .discover-img {
        width: 80%; margin-top: 10px; margin-bottom: 30px; 
        animation: none; /* Desativa animação para performance */
    }

    .discover-text h2 { font-size: 2rem; }

    /* 6. Planos e IA */
    .plans-wrapper { flex-direction: column; gap: 40px; }
    .ia-highlight { order: 0; width: 90%; max-width: 320px; }

    /* 7. Footer */
    .why-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; justify-content: center; gap: 20px; }
    .team-grid { flex-direction: column; align-items: center; }

    /* 8. MODAL MOBILE (CORREÇÃO DE CADASTRO) */
    .auth-box.split-modal { 
        flex-direction: column; 
        width: 95%; 
        max-height: 85vh; /* Ocupa quase toda a altura */
        overflow-y: auto; /* Permite rolar os campos */
        margin: 10px auto;
        background: var(--bg-card); /* Garante o fundo correto sem a imagem */
    }

    /* ESCONDE A IMAGEM NO CELULAR (RESOLVE O LAYOUT QUEBRADO) */
    .modal-image-col { 
        display: none !important; 
    }

    .modal-form-col { padding: 30px 20px; width: 100%; }
    .modal-header h2 { font-size: 1.8rem; }

    /* Botões e Inputs Maiores para Dedo */
    .modal-form-col .input-group input,
    .btn-submit-modal {
        height: 50px; 
        font-size: 16px; /* Evita zoom no iPhone */
    }
}