/* ===================================
   NeoPage Dark Theme — Override Layer
   =================================== */

/* ===== Variáveis do Tema NeoPage ===== */
:root {
    --primary-color: #9333ea;
    --primary-dark: #7c3aed;
    --primary-light: #a855f7;
    --secondary-color: #0d0d1a;
    --accent-color: #c084fc;

    --gradient-primary: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
    --gradient-blue: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    --gradient-purple: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    --gradient-text: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    --gradient-cta: linear-gradient(135deg, #7c3aed 0%, #a855f7 60%, #9333ea 100%);

    --bg-dark: #080810;
    --bg-section: #0d0d1a;
    --bg-section-alt: #0f0f1e;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(147, 51, 234, 0.1);
    --border-card: rgba(147, 51, 234, 0.2);
    --border-card-hover: rgba(147, 51, 234, 0.5);

    --text-primary: #f0eeff;
    --text-secondary: rgba(240, 238, 255, 0.72);
    --text-muted: rgba(240, 238, 255, 0.45);

    --shadow-purple: 0 8px 32px rgba(147, 51, 234, 0.25);
    --shadow-purple-lg: 0 20px 60px rgba(147, 51, 234, 0.35);

    --gray-100: #f0eeff;
    --gray-200: rgba(240, 238, 255, 0.15);
    --gray-300: rgba(240, 238, 255, 0.2);
    --gray-400: rgba(240, 238, 255, 0.4);
    --gray-500: rgba(240, 238, 255, 0.5);
    --gray-600: rgba(240, 238, 255, 0.65);
    --gray-700: rgba(240, 238, 255, 0.75);
    --gray-800: rgba(255, 255, 255, 0.06);
    --gray-900: #080810;
}

/* ===== Reset Global para Tema Escuro ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

p { color: var(--text-secondary); }

a { color: var(--primary-light); }
a:hover { color: var(--accent-color); }

.bg-light { background-color: var(--bg-section-alt) !important; }

/* ===== Partículas / Estrelas de Fundo ===== */
#neo-stars-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== Barra de Promo ===== */
.promo-banner { background: var(--gradient-primary); }
.promo-banner .promo-cta { color: var(--primary-dark); }

/* ===== Header / Nav ===== */
.header {
    background: rgba(8, 8, 16, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(147, 51, 234, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background-color: rgba(147, 51, 234, 0.12) !important;
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid rgba(147, 51, 234, 0.4);
}

.btn-outline-custom:hover {
    background: rgba(147, 51, 234, 0.12);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.btn-primary-custom {
    background: var(--gradient-primary);
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
    color: #fff;
}

.btn-primary-custom:hover {
    box-shadow: 0 6px 28px rgba(147, 51, 234, 0.6);
    color: #fff;
}

.navbar-brand .logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ===== Hero Section ===== */
.hero-section {
    background: var(--bg-dark) !important;
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.hero-glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(ellipse, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
    top: -100px; left: 50%;
    transform: translateX(-50%);
    animation: glowPulse 8s ease-in-out infinite;
}
.hero-glow-2 {
    width: 400px; height: 400px;
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    bottom: 0; right: 5%;
    animation: glowPulse 10s ease-in-out infinite reverse;
}
.hero-glow-3 {
    width: 300px; height: 300px;
    background: radial-gradient(ellipse, rgba(109, 40, 217, 0.25) 0%, transparent 70%);
    bottom: 100px; left: 5%;
    animation: glowPulse 12s ease-in-out infinite 3s;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1) translateX(-50%); }
    50% { opacity: 1; transform: scale(1.15) translateX(-50%); }
}
.hero-glow-2 { animation: glowPulse2 10s ease-in-out infinite reverse; }
.hero-glow-3 { animation: glowPulse3 12s ease-in-out infinite 3s; }
@keyframes glowPulse2 { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes glowPulse3 { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.1); } }

/* Hero Shapes desativados no tema escuro */
.hero-background { display: none; }

.hero-content { position: relative; z-index: 2; }

.badge-pill {
    background: rgba(147, 51, 234, 0.15) !important;
    border: 1px solid rgba(147, 51, 234, 0.4);
    color: var(--accent-color) !important;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
    backdrop-filter: blur(10px);
}

.hero-title { color: var(--text-primary) !important; }

.gradient-text {
    background: var(--gradient-text) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hero-description { color: var(--text-secondary) !important; }

/* Hero Email Input */
.hero-email-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto 1.5rem;
    gap: 0;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(147, 51, 234, 0.35);
    padding: 6px;
    backdrop-filter: blur(10px);
}

.hero-email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.7rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-radius: 50px 0 0 50px;
}

.hero-email-input::placeholder { color: var(--text-muted); }

.hero-email-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.5);
}

.hero-email-btn:hover {
    box-shadow: 0 6px 30px rgba(147, 51, 234, 0.7);
    transform: scale(1.03);
}

.hero-example-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    margin-bottom: 2.5rem;
}

.hero-example-link span { color: var(--primary-light); text-decoration: underline; }

/* Hero Social Proof */
.hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack img {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    object-fit: cover;
    margin-left: -10px;
}

.avatar-stack img:first-child { margin-left: 0; }

.social-proof-text {
    font-size: 0.875rem;
    color: var(--text-secondary) !important;
    margin: 0;
}

.social-proof-text strong { color: var(--primary-light); }

/* Botões hero */
.btn-hero-primary {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    box-shadow: var(--shadow-purple);
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 50px;
}

.btn-hero-primary:hover {
    box-shadow: var(--shadow-purple-lg) !important;
    transform: translateY(-3px);
    color: #fff !important;
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-secondary) !important;
    border: 1.5px solid rgba(147, 51, 234, 0.35) !important;
    border-radius: 50px;
    padding: 1rem 2rem;
}

.btn-hero-outline:hover {
    background: rgba(147, 51, 234, 0.12) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
}

/* ===== Section Global ===== */
.section { padding: 90px 0; }

.section-badge {
    background: rgba(147, 51, 234, 0.12) !important;
    color: var(--primary-light) !important;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.section-title { color: var(--text-primary) !important; }
.section-subtitle { color: var(--text-secondary) !important; }

/* ===== Step Cards (Como Criar) ===== */
.step-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
}

.step-card:hover {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-card-hover) !important;
    box-shadow: var(--shadow-purple) !important;
    transform: translateY(-8px) !important;
}

.step-number {
    background: var(--gradient-primary) !important;
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.5) !important;
}

.step-icon {
    background: rgba(147, 51, 234, 0.12) !important;
}

.step-icon i { color: var(--primary-light) !important; }

.step-title { color: var(--text-primary) !important; }
.step-description { color: var(--text-secondary) !important; }

/* ===== Feature Cards ===== */
.feature-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: var(--bg-card-hover) !important;
    border-color: rgba(147, 51, 234, 0.5) !important;
    box-shadow: var(--shadow-purple) !important;
    transform: translateY(-8px) !important;
}

.feature-icon {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.35);
}

.feature-title { color: var(--text-primary) !important; }
.feature-description { color: var(--text-secondary) !important; }

/* ===== Partners Section ===== */
.section-partners-dark {
    background: rgba(13, 13, 26, 0.8) !important;
    border-top: 1px solid rgba(147, 51, 234, 0.1);
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
}

/* ===== Stats Section ===== */
.section-stats {
    background: var(--bg-section) !important;
}

.section-stats::before {
    background: radial-gradient(ellipse, rgba(147, 51, 234, 0.15) 0%, transparent 70%) !important;
    opacity: 1 !important;
}

.section-stats .section-title { color: var(--text-primary) !important; }
.section-stats .lead { color: var(--text-secondary) !important; }

.stat-box {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

.stat-box:hover {
    border-color: rgba(147, 51, 234, 0.4) !important;
    box-shadow: var(--shadow-purple) !important;
}

.stat-box-number {
    background: var(--gradient-text) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.stat-box-label { color: var(--text-muted) !important; }

.stats-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

.stats-card:hover {
    border-color: rgba(147, 51, 234, 0.4) !important;
    box-shadow: var(--shadow-purple) !important;
}

.stats-card i { color: var(--primary-light) !important; }
.stats-card-number { color: var(--text-primary) !important; }
.stats-card-text { color: var(--text-secondary) !important; }

/* ===== Detail Sections ===== */
.detail-badge {
    background: rgba(147, 51, 234, 0.12) !important;
    color: var(--primary-light) !important;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.detail-title { color: var(--text-primary) !important; }
.detail-description { color: var(--text-secondary) !important; }

.detail-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.detail-list-icon {
    background: rgba(147, 51, 234, 0.12) !important;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.detail-list-content h3 { color: var(--text-primary) !important; }
.detail-list-content p { color: var(--text-secondary) !important; }

/* ===== Pricing Cards ===== */
.pricing-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    background: var(--bg-card-hover) !important;
    border-color: rgba(147, 51, 234, 0.45) !important;
    box-shadow: var(--shadow-purple-lg) !important;
}

.pricing-card-featured {
    background: rgba(147, 51, 234, 0.1) !important;
    border: 2px solid rgba(147, 51, 234, 0.6) !important;
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.3) !important;
    transform: scale(1.03);
}

.pricing-card-featured:hover {
    box-shadow: 0 0 60px rgba(147, 51, 234, 0.45) !important;
}

.pricing-title { color: var(--text-primary) !important; }
.pricing-subtitle { color: var(--text-secondary) !important; }

.price-currency { color: var(--text-secondary) !important; }

.price-value {
    color: var(--primary-light) !important;
}

.price-period { color: var(--text-muted) !important; }

.pricing-features li { color: var(--text-secondary) !important; }
.pricing-features li i { color: var(--primary-light) !important; }
.pricing-features li i.text-danger { color: #ef4444 !important; }

.btn-pricing {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
    border-radius: 50px !important;
    color: #fff !important;
}

.btn-pricing:hover {
    box-shadow: 0 6px 30px rgba(147, 51, 234, 0.6) !important;
    color: #fff !important;
}

.card-toggle-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.toggle-label { color: var(--text-secondary) !important; }
.toggle-savings {
    background: rgba(147, 51, 234, 0.15) !important;
    color: var(--primary-light) !important;
}

.pricing-badge {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.5) !important;
}

/* ===== Accordion / FAQ ===== */
.accordion-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.accordion-item:hover {
    border-color: rgba(147, 51, 234, 0.4) !important;
}

.accordion-button {
    background: transparent !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: rgba(147, 51, 234, 0.1) !important;
    color: var(--primary-light) !important;
    box-shadow: none !important;
}

.accordion-button::after {
    filter: brightness(0) saturate(100%) invert(60%) sepia(60%) saturate(500%) hue-rotate(240deg);
}

.accordion-body { color: var(--text-secondary) !important; }

/* ===== CTA Section ===== */
.cta-section {
    background: var(--gradient-cta) !important;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title { color: #fff !important; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); }
.cta-description { color: rgba(255, 255, 255, 0.88) !important; }

.btn-cta {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
    border-radius: 50px !important;
    padding: 1rem 2.5rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.btn-cta:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark) !important;
    border-top: 1px solid rgba(147, 51, 234, 0.15);
}

.footer-logo { max-width: 200px; margin: 0 auto; }

.footer-logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.footer-description { color: var(--text-muted) !important; }

.social-link {
    background: rgba(147, 51, 234, 0.12) !important;
    border: 1px solid rgba(147, 51, 234, 0.25);
    color: var(--text-secondary) !important;
}

.social-link:hover {
    background: var(--gradient-primary) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.4);
}

.footer-partners {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.copyright { color: var(--text-muted) !important; }

/* ===== Back to Top ===== */
.back-to-top {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-purple) !important;
}

.back-to-top:hover {
    box-shadow: var(--shadow-purple-lg) !important;
    color: #fff !important;
}

/* ===== Seções de detalhe — fundo alternado escuro ===== */
.section:not(.bg-light) { background: var(--bg-dark); }
.section.bg-light { background: var(--bg-section-alt) !important; }

/* ===== Hero — mockup e floating cards ===== */
.hero-image-container { position: relative; z-index: 2; }

.hero-mockup {
    filter: drop-shadow(0 20px 60px rgba(147, 51, 234, 0.4)) !important;
}

.floating-card {
    background: rgba(20, 20, 40, 0.9) !important;
    border: 1px solid rgba(147, 51, 234, 0.35) !important;
    color: var(--text-secondary) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(12px);
}

/* ===== Animação de entrada (scroll) ===== */
[data-neo-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-neo-reveal].revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===== Glow animado nos cards de features em hover ===== */
.feature-card, .step-card, .pricing-card, .stats-card, .stat-box {
    position: relative;
    overflow: hidden;
}

.feature-card::before, .step-card::before, .pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%, rgba(147, 51, 234, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover::before, .step-card:hover::before, .pricing-card:hover::before {
    opacity: 1;
}

/* ===== Divider sutil entre seções ===== */
.section + .section { border-top: 1px solid rgba(147, 51, 234, 0.08); }
.section-partners-dark + .section { border-top: none; }

/* ===== Responsivo ===== */
@media (max-width: 768px) {
    .hero-email-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px;
        gap: 10px;
    }

    .hero-email-input {
        border-radius: 10px;
        text-align: center;
        padding: 0.8rem;
    }

    .hero-email-btn { border-radius: 10px; }

    .hero-social-proof { flex-wrap: wrap; }

    .pricing-card-featured { transform: scale(1); }
}

/* ===== Scrollbar estilizada ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed, #a855f7);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ===== Seleção de texto ===== */
::selection {
    background: rgba(147, 51, 234, 0.35);
    color: #fff;
}
