/* --- VARIAVEIS E RESET --- */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #3b82f6;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --border: #e2e8f0;
    --text: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    /* Surfaces & components */
    --card-bg: #ffffff;
    --card-border: var(--border);
    --tag-bg: #f0fdf4;
    --tag-color: #166534;
    --filter-bg: #ffffff;
    --filter-color: var(--text-muted);
    --btn-bg: var(--dark);
    --btn-color: #ffffff;
    --card-header-border: var(--light);
    --testimonial-bg: var(--darker);
    --testimonial-card-bg: rgba(255,255,255,0.05);
    --testimonial-card-border: rgba(255,255,255,0.1);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Tema escuro (aplicado no body via classe `dark-theme`) */
.dark-theme {
    --light: #071226;
    --dark: #e6eef5;
    --darker: #020617;
    --border: rgba(255,255,255,0.06);
    --text: #e6eef5;
    --text-muted: #9aa6b3;
    --white: #071226;
    /* Dark-mode component colors */
    --card-bg: #071226;
    --card-border: rgba(255,255,255,0.06);
    --tag-bg: rgba(255,255,255,0.04);
    --tag-color: var(--text);
    --filter-bg: transparent;
    --filter-color: var(--text);
    --btn-bg: var(--text);
    --btn-color: var(--white);
    --card-header-border: rgba(255,255,255,0.06);
    --testimonial-bg: var(--darker);
    --testimonial-card-bg: rgba(255,255,255,0.06);
    --testimonial-card-border: rgba(255,255,255,0.12);
}

/* Transições suaves de cores */
body, .main-header, .card, .feature-card, .hero-section { transition: background-color 0.25s ease, color 0.25s ease; }

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0 15px; }

/* --- BARRA DE TOPO --- */
.top-bar {
    background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%);
    color: white;
    text-align: center;
    padding: 10px 5px;
    font-size: 12px;
    font-weight: 600;
}
.top-bar i { margin-right: 5px; animation: pulse 2s infinite; }
.top-bar span { background: rgba(0,0,0,0.2); padding: 2px 4px; border-radius: 4px; font-family: monospace; }

/* --- HEADER --- */
.main-header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo span { color: var(--primary); }
.logo small { font-size: 9px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }

.nav-links { display: flex; gap: 20px; }
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }

/* Uniformizar cor dos links em nav e footer para modo claro/escuro */
.nav-links a, .footer-col ul li a, .footer-bottom p, .footer-bottom a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-links a:hover, .footer-col ul li a:hover, .footer-bottom a:hover {
    color: var(--primary);
}
.nav-links a.active { color: var(--primary); font-weight: 800; }

/* Forçar contraste para acessibilidade em modo escuro */
.dark-theme .nav-links a, .dark-theme .footer-col ul li a, .dark-theme .footer-bottom p, .dark-theme .footer-bottom a {
    color: var(--text);
}

.btn-header {
    background: var(--btn-bg);
    color: var(--btn-color);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: 0.3s;
    white-space: nowrap;
}
.btn-header:hover { background: var(--primary); transform: translateY(-2px); }

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, var(--darker) 0%, #1e293b 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.hero-text { max-width: 600px; }
.tag-hero {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.hero-text p { font-size: 16px; color: #cbd5e1; margin-bottom: 25px; }

.hero-btns { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
    font-size: 14px;
}
.btn-primary { background: var(--primary); color: white; border: 2px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.05); }

.trust-indicators { display: flex; gap: 15px; font-size: 12px; color: #94a3b8; font-weight: 500; flex-wrap: wrap; }
.trust-indicators i { color: var(--primary); margin-right: 5px; }

.hero-visual { display: flex; justify-content: center; width: 100%; max-width: 350px; }

/* Visual Hero */
.glass-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.stat-item { display: flex; align-items: center; gap: 15px; }
.stat-item i { font-size: 20px; color: var(--primary); background: rgba(255,255,255,0.1); padding: 10px; border-radius: 10px; }
.stat-item strong { display: block; font-size: 16px; }
.stat-item small { color: #94a3b8; font-size: 12px; }

/* --- VANTAGENS --- */
.features-section { padding: 60px 0; background: var(--light); }
.section-title { text-align: center; max-width: 700px; margin: 0 auto 40px auto; }
.section-title h2 { font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 10px; letter-spacing: -1px; }
.section-title p { color: var(--text-muted); font-size: 16px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { padding: 25px; border-radius: 16px; background: var(--light); border: 1px solid var(--border); transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); background: var(--card-bg); border-color: var(--primary); }
.icon-box { width: 50px; height: 50px; background: #ecfdf5; color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 15px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* --- PRODUTOS --- */
.products-section { padding: 60px 0; background: var(--light); }
.section-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 20px; flex-direction: column; text-align: center;}
.title-left h2 { font-size: 32px; font-weight: 800; color: var(--dark); }

.filter-container { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.filter-btn { padding: 6px 14px; border: 1px solid var(--card-border); background: var(--filter-bg); border-radius: 50px; font-weight: 600; cursor: pointer; color: var(--filter-color); transition: 0.3s; font-size: 13px; }
.filter-btn:hover, .filter-btn.active { background: var(--btn-bg); color: var(--btn-color); border-color: var(--btn-bg); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; grid-auto-rows: 1fr; }

/* Card Produto */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: 0.3s;
    box-shadow: var(--shadow-card);
    overflow: visible; /* permitir elementos posicionados (tags) saírem do fluxo do card */
}

/* Garantir que cada card dentro do grid expanda igualmente por linha */
.products-grid > .card { display: flex; flex-direction: column; height: 100%; }

/* Garantir que o corpo do card cresça e alinhe o botão ao final */
.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.btn-buy {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.tag-top { position: absolute; top: 15px; right: 15px; background: var(--tag-bg); color: var(--tag-color); font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; }
/* Garantir que a tag "MKR OFICIAL" fique acima das imagens e plan-tags */
.tag-top { z-index: 20; }

/* Forçar imagens/header com z-index menor para não sobrepor a tag */
.card-header-img { z-index: 1; }
.card-header-img .card-image, .card-header-img img { position: relative; z-index: 2; }

/* --- PLAN TAGS (Zapp / Whats / Sender) --- */
/* Mostrar empilhadas sobre a imagem do card (centro superior) */
.card-header-img { position: relative; }
.card-header-img .plan-tags {
    position: absolute;
    top: -54px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    z-index: 6;
}
.card-header-img .plan-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(2,6,23,0.08);
}
/* Cores específicas por tipo (ajuste conforme desejar) */
.card-header-img .plan-tag.anual { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; }
.card-header-img .plan-tag.semestral { background: #fef3c7; color: #92400e; }
.card-header-img .plan-tag.mensal { background: #ecfeff; color: #064e3b; }

@media (max-width: 576px) {
    .card-header-img .plan-tags { top: -44px; gap: 4px; }
    .card-header-img .plan-tag { font-size: 11px; padding: 6px 10px; }
}

.card-header-img { text-align: center; padding: 10px 0; border-bottom: 1px solid var(--light); margin-bottom: 15px; }
.card-image { width: 100%; max-width: 180px; height: auto; border-radius: 12px; display: inline-block; object-fit: cover; }

.card-body h3 { font-size: 17px; font-weight: 800; color: var(--dark); margin-bottom: 5px; }
.card-category { font-size: 10px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; }

.card-price { margin-bottom: 15px; background: var(--light); padding: 12px; border-radius: 10px; text-align: center; }
.current-price { font-size: 28px; font-weight: 900; color: var(--dark); line-height: 1; }
.installment { font-size: 12px; color: var(--text-muted); display: block; }

.features-list { list-style: none; margin-bottom: 20px; flex-grow: 1; font-size: 13px; padding-left: 0; min-height: 110px; }
.features-list li { display: flex; align-items: center; gap: 8px; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.features-list i { color: var(--primary); font-size: 12px; width: 18px; text-align: center; }

@media (min-width: 992px) {
    .features-list { min-height: 140px; }
}

.btn-buy {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    background: var(--btn-bg); color: var(--btn-color); padding: 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 13px; transition: 0.3s;
}
.btn-buy:hover { background: var(--primary); color: white; }

/* --- DEPOIMENTOS --- */
.testimonials-section { background: var(--testimonial-bg); padding: 60px 0; }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.section-title.dark-mode-title h2 { color: white; }
.section-title.dark-mode-title p { color: #cbd5e1; }

.testimonial-card {
    background: var(--testimonial-card-bg);
    border: 1px solid var(--testimonial-card-border);
    padding: 20px;
    border-radius: 16px;
    color: white;
}
.testimonial-text { font-size: 14px; font-style: italic; opacity: 0.9; margin-bottom: 20px; line-height: 1.6; }
.client-info { display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
.client-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.client-info h4 { font-size: 13px; font-weight: 700; }
.client-info span { font-size: 10px; color: #94a3b8; display: block; }
.stars { color: #fbbf24; font-size: 9px; }

/* --- GARANTIA --- */
.guarantee-section { background: var(--light); padding: 40px 0; text-align: center; }
.guarantee-box { display: flex; align-items: center; gap: 20px; justify-content: center; flex-direction: column; }
.guarantee-icon i { font-size: 40px; color: #fbbf24; }
/* Badge image for guarantee */
.guarantee-icon .badge-img { display: block; width: 72px; height: auto; margin: 0 auto; }

@media (max-width: 576px) {
    .guarantee-icon .badge-img { width: 60px; }
}
.guarantee-text h3 { font-size: 20px; font-weight: 700; margin-bottom: 5px; }
.guarantee-text p { opacity: 0.8; font-size: 14px; color: var(--text-muted); }

/* --- FAQ --- */
.faq-section { padding: 60px 0; background: var(--light); }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.faq-item { background: var(--light); padding: 20px; border-radius: 12px; border: 1px solid var(--border); }
.faq-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { font-size: 13px; color: var(--text-muted); }

/* --- FOOTER --- */
.main-footer { background: var(--light); padding: 40px 0 20px 0; border-top: 1px solid var(--card-border); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; text-align: center; }
.logo-footer { font-size: 20px; font-weight: 900; color: var(--dark); margin-bottom: 10px; }
.brand-col p { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; }
.social-links { display: flex; gap: 10px; justify-content: center; }
.social-links a { width: 32px; height: 32px; background: var(--card-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--dark); text-decoration: none; }
.footer-col h4 { font-size: 15px; margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col ul li a { font-size: 13px; }
.payment-img { max-width: 120px; margin: 10px 0; }
.footer-bottom { font-size: 11px; text-align: center; padding-top: 10px; }

/* --- FLOATS --- */
.floats { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 2000; }
.btn-float {
    width: 50px; height: 50px; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; color: white; box-shadow: 0 8px 20px rgba(2,6,23,0.15); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Botão "Voltar ao topo" (inserido acima do YouTube) */
.btn-float.top-f {
    background: rgba(16,24,39,0.92);
    width: 44px;
    height: 44px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.btn-float.top-f.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.btn-float.top-f:focus {
    outline: 2px solid var(--primary);
    box-shadow: 0 6px 18px rgba(2,6,23,0.25);
}
.btn-float:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(2,6,23,0.18); }
.btn-float.yt-f { background: #FF0000; }
.btn-float.wa-f { background: #25D366; }

.card-image { width: 100%; max-width: 220px; height: auto; border-radius: 12px; object-fit: cover; }

@media (max-width: 576px) {
    .card-image { max-width: 260px; }
}

/* --- MEDIA QUERIES (RESPONSIVIDADE) --- */

/* Desktop - Pequeno */
@media (min-width: 992px) {
    .section-header-flex { flex-direction: row; text-align: left; }
    .hero-content { padding: 20px 0; }
    .hero-text h1 { font-size: 50px; }
    .guarantee-box { flex-direction: row; text-align: left; }
    .faq-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; text-align: left; }
    .social-links { justify-content: start; }
    /* Ocultar botão de menu (hamburger) na versão desktop */
    .hamburger { display: none; }
}

/* --- AJUSTES PARA MOBILE --- */

/* Garantir imagens responsivas */
img, .card-image, .client-img, .payment-img { max-width: 100%; height: auto; }

@media (max-width: 991px) {
    .container { padding: 0 16px; }
    .nav-container { flex-wrap: wrap; gap: 10px; align-items: center; position: relative; }
    .nav-links { order: 3; width: 100%; justify-content: center; gap: 12px; flex-wrap: wrap; display: none; }
    .nav-links.open { display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 10px; background: rgba(255,255,255,0.02); border-radius: 10px; }
    .hamburger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(0,0,0,0.05); border-radius: 8px; font-size: 18px; color: var(--dark); margin-right: 0; }
    .hamburger:focus { outline: 2px solid var(--primary); }
    .theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(0,0,0,0.05); border-radius: 8px; font-size: 16px; color: var(--dark); margin-left: 0; }

    /* Agrupar hamburger + theme-toggle no canto direito (mobile) */
    .nav-container .hamburger, .nav-container .theme-toggle {
        position: absolute;
        top: 12px; /* alinhar próximo ao topo, na altura do logo */
        transform: none;
        margin: 0;
        z-index: 1100; /* garantir sobreposição acima de outros elementos */
    }
    /* Posicionar o theme-toggle e o hamburger com gap pequeno, sem quebrar linha */
    .nav-container .theme-toggle { right: 12px; }
    .nav-container .hamburger { right: 62px; } /* 12 + 44(width) + 6(gap) = 62 */
    .theme-toggle:focus { outline: 2px solid var(--primary); }
    .nav-links a { font-size: 13px; padding: 6px 8px; }
    .btn-header { order: 2; margin-left: 0; margin-top: 6px; }

    .hero-section { padding: 40px 0; }
    .hero-content { flex-direction: column; align-items: flex-start; gap: 20px; }
    .hero-text { max-width: 100%; }
    .hero-text h1 { font-size: 32px; }
    .hero-text p { font-size: 15px; }
    .hero-visual { max-width: 100%; display: flex; justify-content: center; }

    .features-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    /* Manter botões de filtro em linha no mobile (não quebrar para nova linha) */
    .filter-container { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 8px; }
    .filter-container .filter-btn { flex: 0 0 auto; white-space: nowrap; }
    .card { padding: 16px; }
    .card-image { max-width: 120px; margin: 0 auto; }

    .guarantee-box { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }

    .top-bar { padding: 8px 6px; }
    .top-bar p { font-size: 11px; }
}

@media (max-width: 576px) {
    .hero-text h1 { font-size: 26px; }
    .hero-text p { font-size: 14px; }
    .hero-btns { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-secondary { width: 100%; padding: 12px; }
    .trust-indicators { justify-content: flex-start; gap: 8px; }
    .nav-links { gap: 8px; }
    .btn-header { width: 100%; text-align: center; padding: 10px; border-radius: 10px; }
    .section-title h2 { font-size: 24px; }
    .testimonial-text { font-size: 13px; }

    /* Produtos em coluna única e cards centralizados para dar mais espaço às imagens */
    .products-grid { grid-template-columns: 1fr; }
    .card { align-items: center; text-align: center; }
    .card-body { width: 100%; }
    .card-header-img { padding: 8px 0 0 0; }
    .card-image { max-width: 320px; margin: 0 auto; }
}

/* Pequenos toques para floats fixos em mobile */
.floats a.btn-float { width: 44px; height: 44px; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
