/* ============================================================
   TEMA CLARO (index.html) — padrão da home desde 2026-11-08; o escuro é
   escolhido pelo botão sol/lua da nav. Este arquivo só age com
   <html data-theme="light"> (vem no markup; o script do <head> tira o atributo
   de quem escolheu o escuro).
   Estratégia: remapear as variáveis de service.css / futuristic.css /
   home-v2.css e corrigir as cores fixas de hero-video.css, home-v2.css,
   theme-dark.css e revsales.css. Carregar por ÚLTIMO.
   O rodapé continua escuro de propósito (igual às páginas legais).
   ============================================================ */

html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="light"] .has-hero-video {
    /* service.css */
    --bg-primary: #ffffff;
    --bg-secondary: #f6f5fb;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #0f1222;
    --text-secondary: #4a4f66;
    --text-muted: #7c8197;
    --accent: #ea580c;
    --accent-light: #f97316;
    --accent-ultra-light: rgba(249, 115, 22, 0.08);
    --accent-glow: rgba(249, 115, 22, 0.14);
    --accent-warm: #9333ea;
    --accent-rose: #a855f7;
    --gradient-text: linear-gradient(135deg, #0f1222 0%, #9333ea 100%);
    --border: rgba(15, 18, 34, 0.09);
    --border-hover: rgba(15, 18, 34, 0.18);
    --shadow-sm: 0 1px 3px rgba(15, 18, 34, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 18, 34, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 18, 34, 0.08);
    --shadow-xl: 0 30px 80px rgba(15, 18, 34, 0.1);
    /* futuristic.css */
    --fx-ink: #ffffff;
    --fx-ink-2: #f6f5fb;
    --fx-cyan: #ea580c;
    --fx-line: rgba(15, 18, 34, 0.08);
    --fx-line-strong: rgba(15, 18, 34, 0.14);
    /* home-v2.css */
    --hv-ink: #ffffff;
    --hv-ink-2: #f6f5fb;
    --hv-ink-3: #eeedf5;
    --hv-line: rgba(15, 18, 34, 0.08);
    --hv-line-strong: rgba(15, 18, 34, 0.13);
    --hv-glass: rgba(15, 18, 34, 0.03);
    --hv-glass-hover: rgba(15, 18, 34, 0.05);
    --hv-text: #0f1222;
    --hv-text-2: rgba(15, 18, 34, 0.68);
    --hv-text-3: rgba(15, 18, 34, 0.5);
    --hv-orange-soft: rgba(249, 115, 22, 0.08);
    --hv-purple-soft: rgba(147, 51, 234, 0.08);

    /* Superfícies reaproveitadas abaixo */
    --lt-card: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
    --lt-card-shadow: 0 1px 2px rgba(15, 18, 34, 0.04), 0 14px 36px rgba(15, 18, 34, 0.06);
    --lt-card-shadow-hover: 0 1px 2px rgba(15, 18, 34, 0.05), 0 24px 56px rgba(15, 18, 34, 0.1), 0 0 0 1px rgba(249, 115, 22, 0.14);
    --lt-chip: rgba(15, 18, 34, 0.035);
    --lt-icon-bg: linear-gradient(140deg, rgba(249, 115, 22, 0.12), rgba(147, 51, 234, 0.12));
    --lt-icon-border: rgba(147, 51, 234, 0.16);
    --lt-icon-color: #7e22ce;
    --lt-num-gradient: linear-gradient(90deg, #ea580c, #9333ea);

    background: #ffffff;
    color: var(--hv-text);
}

html[data-theme="light"] .has-hero-video .grain-overlay {
    mix-blend-mode: multiply;
    opacity: 0.025;
}

html[data-theme="light"] .has-hero-video .cursor-glow {
    mix-blend-mode: multiply;
}

/* ---------- Nav (pill) ---------- */
html[data-theme="light"] .has-hero-video #mainHeader nav::before {
    background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .has-hero-video #mainHeader.scrolled nav::before {
    background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .has-hero-video #mainHeader nav {
    border-color: rgba(15, 18, 34, 0.08);
    box-shadow: 0 10px 34px rgba(15, 18, 34, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .has-hero-video .nav-menu li a {
    color: rgba(15, 18, 34, 0.68);
}

html[data-theme="light"] .has-hero-video .nav-menu li a::after {
    background: #0f1222;
}

html[data-theme="light"] .has-hero-video .nav-menu li a:hover,
html[data-theme="light"] .has-hero-video .nav-menu li a.active,
html[data-theme="light"] .has-hero-video .nav-menu li a.nav-login {
    color: #0f1222;
}

html[data-theme="light"] .has-hero-video .hv-nav-cta {
    color: #ffffff !important;
}

html[data-theme="light"] .has-hero-video .mobile-toggle span {
    background: #0f1222;
}

html[data-theme="light"] .nav-menu li.language-switcher {
    border-left-color: rgba(15, 18, 34, 0.12);
}

/* ---------- Hero ----------
   O vídeo é um fluxo colorido sobre fundo preto: invertido e com o matiz girado
   180°, o fundo vira branco e as cores continuam laranja/roxo/ciano. */
html[data-theme="light"] .hero.hero-video {
    background: #ffffff;
}

html[data-theme="light"] .hero.hero-video .hv-bg {
    filter: invert(1) hue-rotate(180deg) saturate(1.15);
}

html[data-theme="light"] .hero.hero-video .hv-overlay {
    background: rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .hv-title {
    color: #0f1222;
    text-shadow: 0 1px 24px rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .hv-subtitle {
    color: rgba(15, 18, 34, 0.74);
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .hv-reassure {
    color: rgba(15, 18, 34, 0.55);
    text-shadow: none;
}

html[data-theme="light"] .hv-reassure-link {
    color: rgba(15, 18, 34, 0.78);
    text-decoration-color: rgba(15, 18, 34, 0.3);
}

html[data-theme="light"] .hv-proof {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(15, 18, 34, 0.1);
}

html[data-theme="light"] .hv-proof-text {
    color: rgba(15, 18, 34, 0.8);
}

html[data-theme="light"] .hv-proof-text strong {
    color: #0f1222;
}

html[data-theme="light"] .hv-btn-secondary {
    color: #0f1222;
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(15, 18, 34, 0.18);
    box-shadow: 0 6px 24px rgba(15, 18, 34, 0.08);
}

html[data-theme="light"] .hv-btn-secondary svg {
    fill: #0f1222;
    stroke: #0f1222;
}

/* ---------- Faixa de números e showcase ---------- */
html[data-theme="light"] .hv-stats-inner {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(15, 18, 34, 0.08);
    box-shadow: 0 24px 60px rgba(15, 18, 34, 0.1), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .hv-stat-value {
    color: #0f1222;
}

html[data-theme="light"] .hv-stat-value .hv-stat-suffix {
    background: var(--lt-num-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="light"] .hv-showcase-frame {
    background: #ffffff;
    border-color: rgba(15, 18, 34, 0.1);
    box-shadow: 0 30px 80px rgba(15, 18, 34, 0.14), 0 0 80px rgba(147, 51, 234, 0.1);
}

/* ---------- Divisórias de seção ---------- */
html[data-theme="light"] .has-hero-video section:not(.hero):not(.hv-stats-strip):not(.hv-showcase):not(.cta-section)::before {
    background: linear-gradient(90deg, transparent, rgba(15, 18, 34, 0.1), transparent);
}

/* ---------- Cabeçalhos ---------- */
html[data-theme="light"] .has-hero-video .section-tag {
    color: rgba(15, 18, 34, 0.72);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 18, 34, 0.1);
}

html[data-theme="light"] .has-hero-video .section-title,
html[data-theme="light"] .has-hero-video .cta-title,
html[data-theme="light"] .has-hero-video .cta-final-title {
    color: #0f1222;
}

/* ---------- Botões ---------- */
html[data-theme="light"] .has-hero-video .btn-ghost,
html[data-theme="light"] .has-hero-video .btn-ghost:hover {
    color: #0f1222;
    background: rgba(15, 18, 34, 0.04);
    border-color: rgba(15, 18, 34, 0.18);
}

html[data-theme="light"] .hv-btn-whatsapp {
    color: #0f1222;
    background: #ffffff;
    border-color: rgba(15, 18, 34, 0.16);
    box-shadow: 0 6px 20px rgba(15, 18, 34, 0.06);
}

html[data-theme="light"] .hv-btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.55);
}

/* ---------- Cards ---------- */
html[data-theme="light"] .has-hero-video .pain-card,
html[data-theme="light"] .has-hero-video .agent-benefit,
html[data-theme="light"] .has-hero-video .crm-feature,
html[data-theme="light"] .has-hero-video .cap-card,
html[data-theme="light"] .has-hero-video .discovery-card,
html[data-theme="light"] .has-hero-video .result-card,
html[data-theme="light"] .has-hero-video .step-card,
html[data-theme="light"] .has-hero-video .offering-card,
html[data-theme="light"] .has-hero-video .visual-card,
html[data-theme="light"] .rs-plan {
    background: var(--lt-card);
    border-color: var(--border);
    box-shadow: var(--lt-card-shadow);
}

html[data-theme="light"] .has-hero-video .pain-card:hover,
html[data-theme="light"] .has-hero-video .agent-benefit:hover,
html[data-theme="light"] .has-hero-video .crm-feature:hover,
html[data-theme="light"] .has-hero-video .cap-card:hover,
html[data-theme="light"] .has-hero-video .discovery-card:hover,
html[data-theme="light"] .has-hero-video .result-card:hover,
html[data-theme="light"] .has-hero-video .offering-card:hover,
html[data-theme="light"] .has-hero-video .visual-card:hover {
    background: #ffffff;
    border-color: rgba(15, 18, 34, 0.14);
    box-shadow: var(--lt-card-shadow-hover);
}

html[data-theme="light"] .has-hero-video .offering-card-highlight {
    border-color: rgba(249, 115, 22, 0.35);
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%), #ffffff;
    box-shadow: 0 24px 60px rgba(147, 51, 234, 0.1);
}

html[data-theme="light"] .has-hero-video .offering-card h3,
html[data-theme="light"] .has-hero-video .offering-link,
html[data-theme="light"] .has-hero-video .ready-solution-desc strong,
html[data-theme="light"] .has-hero-video .visual-card-footer strong,
html[data-theme="light"] .has-hero-video .step-content strong,
html[data-theme="light"] .has-hero-video .metric-head strong,
html[data-theme="light"] .has-hero-video .agent-pill strong {
    color: #0f1222;
}

html[data-theme="light"] .has-hero-video .offering-index {
    color: rgba(15, 18, 34, 0.4);
}

html[data-theme="light"] .has-hero-video .offering-features li,
html[data-theme="light"] .has-hero-video .ready-solution-list li {
    color: rgba(15, 18, 34, 0.78);
}

html[data-theme="light"] .has-hero-video .ready-solution-list li:hover {
    color: #0f1222;
}

/* Ícones de card */
html[data-theme="light"] .has-hero-video .pain-card-icon,
html[data-theme="light"] .has-hero-video .agent-benefit-icon,
html[data-theme="light"] .has-hero-video .crm-feature-icon,
html[data-theme="light"] .has-hero-video .cap-card-icon,
html[data-theme="light"] .has-hero-video .discovery-icon,
html[data-theme="light"] .has-hero-video .offering-icon,
html[data-theme="light"] .has-hero-video .agent-icon {
    color: var(--lt-icon-color);
    background: var(--lt-icon-bg);
    border-color: var(--lt-icon-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .has-hero-video .pain-card:hover .pain-card-icon,
html[data-theme="light"] .has-hero-video .agent-benefit:hover .agent-benefit-icon,
html[data-theme="light"] .has-hero-video .crm-feature:hover .crm-feature-icon,
html[data-theme="light"] .has-hero-video .cap-card:hover .cap-card-icon,
html[data-theme="light"] .has-hero-video .discovery-card:hover .discovery-icon,
html[data-theme="light"] .has-hero-video .offering-card:hover .offering-icon {
    color: #ffffff;
    background: linear-gradient(140deg, #f97316, #9333ea);
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(147, 51, 234, 0.28);
}

/* Números com gradiente */
html[data-theme="light"] .has-hero-video .result-number,
html[data-theme="light"] .has-hero-video .result-card strong,
html[data-theme="light"] .rs-plan.is-featured .rs-plan-amount {
    background: var(--lt-num-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Chips e blocos internos */
html[data-theme="light"] .has-hero-video .cap-example,
html[data-theme="light"] .has-hero-video .cap-card li,
html[data-theme="light"] .has-hero-video .cap-chip,
html[data-theme="light"] .has-hero-video .assist-example {
    background: var(--lt-chip);
    border-color: var(--border);
    color: rgba(15, 18, 34, 0.8);
}

/* Bloco "Não é / É" do assistente (escuro até no tema claro original do service.css) */
html[data-theme="light"] .assistant-differentiator {
    background: linear-gradient(120deg, #ffffff 0%, #fbf7ff 100%);
    border: 1px solid var(--border);
    box-shadow: var(--lt-card-shadow);
    color: #0f1222;
}

html[data-theme="light"] .assistant-differentiator::before {
    background:
        radial-gradient(ellipse 500px 300px at 80% 50%, rgba(147, 51, 234, 0.08), transparent 60%),
        radial-gradient(ellipse 400px 300px at 20% 50%, rgba(249, 115, 22, 0.05), transparent 60%);
}

html[data-theme="light"] .diff-no .diff-tag {
    background: rgba(15, 18, 34, 0.04);
    color: rgba(15, 18, 34, 0.5);
    border-color: rgba(15, 18, 34, 0.1);
}

html[data-theme="light"] .diff-no h3 {
    color: rgba(15, 18, 34, 0.5);
    text-decoration-color: rgba(15, 18, 34, 0.25);
}

html[data-theme="light"] .diff-yes h3 {
    color: #0f1222;
    background: linear-gradient(135deg, #0f1222 0%, #7e22ce 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="light"] .diff-side p {
    color: rgba(15, 18, 34, 0.6);
}

html[data-theme="light"] .diff-yes p {
    color: rgba(15, 18, 34, 0.78);
}

/* Visual cards (roadmap, métricas, agentes) */
html[data-theme="light"] .has-hero-video .visual-card-badge {
    color: #c2410c;
    background: rgba(249, 115, 22, 0.1);
}

html[data-theme="light"] .has-hero-video .visual-card.visual-dashboard .visual-card-badge,
html[data-theme="light"] .has-hero-video .agent-pill span {
    color: #15803d;
}

html[data-theme="light"] .has-hero-video .roadmap-step.is-current .step-content strong,
html[data-theme="light"] .has-hero-video .metric-delta.positive {
    color: #c2410c;
}

html[data-theme="light"] .has-hero-video .metric-bar {
    background: rgba(15, 18, 34, 0.07);
}

html[data-theme="light"] .has-hero-video .agent-pill {
    background: var(--lt-chip);
}

html[data-theme="light"] .has-hero-video .ready-solution-image {
    box-shadow: 0 30px 70px rgba(15, 18, 34, 0.14);
}

html[data-theme="light"] .has-hero-video .ready-solution-visual::before,
html[data-theme="light"] .has-hero-video .ready-solution-visual::after {
    border-color: rgba(15, 18, 34, 0.2);
}

/* ---------- FAQ ---------- */
html[data-theme="light"] .has-hero-video .faq-item {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 18, 34, 0.04);
}

html[data-theme="light"] .has-hero-video .faq-item:hover,
html[data-theme="light"] .has-hero-video .faq-item:has(.faq-question[aria-expanded="true"]) {
    background: #ffffff;
    border-color: rgba(15, 18, 34, 0.16);
    box-shadow: 0 12px 30px rgba(15, 18, 34, 0.06);
}

html[data-theme="light"] .has-hero-video .faq-question {
    color: #0f1222;
}

html[data-theme="light"] .has-hero-video .faq-question:hover span {
    color: #c2410c;
}

html[data-theme="light"] .has-hero-video .faq-icon-wrap,
html[data-theme="light"] .has-hero-video .faq-item:hover .faq-icon-wrap {
    background: rgba(15, 18, 34, 0.05);
}

html[data-theme="light"] .has-hero-video .faq-icon {
    color: #0f1222;
}

html[data-theme="light"] .has-hero-video .faq-question[aria-expanded="true"] .faq-icon {
    color: #ffffff;
}

/* ---------- CTA final ---------- */
html[data-theme="light"] .has-hero-video .cta-section,
html[data-theme="light"] .has-hero-video .cta-final-section {
    background: #ffffff;
    background-image: linear-gradient(180deg, #ffffff 0%, #f8f3ff 55%, #ffffff 100%);
}

html[data-theme="light"] .has-hero-video .cta-section .cta-mesh,
html[data-theme="light"] .has-hero-video .cta-mesh {
    opacity: 0.55;
}

html[data-theme="light"] .has-hero-video .cta-final-section::before {
    background-image:
        linear-gradient(rgba(15, 18, 34, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 18, 34, 0.04) 1px, transparent 1px);
}

/* ---------- Planos ---------- */
html[data-theme="light"] .rs-plan:hover {
    border-color: rgba(15, 18, 34, 0.18);
}

html[data-theme="light"] .rs-plan.is-featured {
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, #ffffff 0%, #fcf8ff 100%) padding-box,
        linear-gradient(140deg, #f97316, #9333ea) border-box;
    box-shadow: 0 30px 70px rgba(147, 51, 234, 0.16), 0 0 0 1px rgba(249, 115, 22, 0.08);
}

html[data-theme="light"] .rs-plan-btn {
    color: #0f1222;
    background: rgba(15, 18, 34, 0.03);
    border-color: rgba(15, 18, 34, 0.16);
}

html[data-theme="light"] .rs-plan-btn:hover {
    background: rgba(15, 18, 34, 0.06);
    border-color: rgba(15, 18, 34, 0.3);
}

html[data-theme="light"] .rs-plan-app {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.07), rgba(147, 51, 234, 0.08));
}

html[data-theme="light"] .rs-plan-features i,
html[data-theme="light"] .rs-plan-app-icons {
    color: #ea580c;
}

html[data-theme="light"] .rs-plan-app-icons .fa-android {
    color: #9333ea;
}

/* ---------- Diagrama do assistente ---------- */
html[data-theme="light"] .assistant-hub .hub-satellite {
    background: linear-gradient(160deg, #ffffff, #faf7ff);
    border-color: rgba(147, 51, 234, 0.16);
    box-shadow: inset 0 1px 0 #ffffff, 0 12px 28px rgba(15, 18, 34, 0.1);
}

html[data-theme="light"] .assistant-hub .hub-satellite:hover {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 16px 36px rgba(15, 18, 34, 0.14), 0 0 30px rgba(249, 115, 22, 0.14);
}

html[data-theme="light"] .assistant-hub .hub-satellite i {
    background: linear-gradient(135deg, #f97316 0%, #9333ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="light"] .assistant-hub .hub-satellite span {
    color: rgba(15, 18, 34, 0.62);
}

html[data-theme="light"] .assistant-hub .hub-orb {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.35),
        0 0 0 7px rgba(255, 255, 255, 0.95),
        0 0 0 8px rgba(249, 115, 22, 0.35),
        0 24px 60px rgba(147, 51, 234, 0.28),
        0 0 90px rgba(249, 115, 22, 0.14);
}

html[data-theme="light"] .assistant-hub .hub-label {
    color: #0f1222;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 8px 24px rgba(15, 18, 34, 0.1);
}

/* ---------- Janela "Entrar" ---------- */
html[data-theme="light"] .tenant-login {
    background: #ffffff;
    color: #0f1222;
    border-color: rgba(15, 18, 34, 0.1);
    box-shadow: 0 30px 80px rgba(15, 18, 34, 0.2);
}

html[data-theme="light"] .tenant-login::backdrop {
    background: rgba(15, 18, 34, 0.35);
}

html[data-theme="light"] .tenant-login-title,
html[data-theme="light"] .tenant-login-field input,
html[data-theme="light"] .tenant-login-close:hover {
    color: #0f1222;
}

html[data-theme="light"] .tenant-login-desc,
html[data-theme="light"] .tenant-login-signup,
html[data-theme="light"] .tenant-login-close,
html[data-theme="light"] .tenant-login-suffix {
    color: rgba(15, 18, 34, 0.6);
}

html[data-theme="light"] .tenant-login-label {
    color: rgba(15, 18, 34, 0.82);
}

html[data-theme="light"] .tenant-login-close:hover {
    background: rgba(15, 18, 34, 0.06);
}

html[data-theme="light"] .tenant-login-field {
    background: #ffffff;
    border-color: rgba(15, 18, 34, 0.16);
}

html[data-theme="light"] .tenant-login-field input::placeholder {
    color: rgba(15, 18, 34, 0.32);
}

html[data-theme="light"] .tenant-login-error {
    color: #b91c1c;
}

html[data-theme="light"] .tenant-login-signup a {
    color: #c2410c;
}

/* ---------- Menu lateral (mobile) ---------- */
@media (max-width: 1100px) {
    html[data-theme="light"] .nav-menu,
    html[data-theme="light"] .has-hero-video .nav-menu {
        background: #ffffff;
        box-shadow: -20px 0 60px rgba(15, 18, 34, 0.15);
    }

    html[data-theme="light"] .has-hero-video .mobile-toggle.active span {
        background: #0f1222;
    }
}
