/* ============================================================
   TEMA ESCURO (service.html, treinamentos.html)
   Mesmo sistema visual do hero do index: ink + vidro + laranja→roxo.
   Estratégia: remapear as variáveis de cor do service.css/futuristic.css
   sob body.has-hero-video e corrigir os poucos hardcodes.
   Carregar DEPOIS de service.css / training.css / futuristic.css,
   junto com hero-video.css e home-v2.css.
   ============================================================ */

.has-hero-video {
    /* service.css */
    --bg-primary: #070a14;
    --bg-secondary: #0b0f1c;
    --bg-elevated: #10152a;
    --bg-card: rgba(255, 255, 255, 0.045);
    --bg-dark: #05070f;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.66);
    --text-muted: rgba(255, 255, 255, 0.46);
    --accent: #fb923c;
    --accent-light: #fdba74;
    --accent-ultra-light: rgba(249, 115, 22, 0.12);
    --accent-glow: rgba(249, 115, 22, 0.2);
    --accent-warm: #9333ea;
    --accent-rose: #c084fc;
    --gradient-primary: linear-gradient(135deg, #f97316 0%, #9333ea 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #fdba74 100%);
    --border: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.55);
    /* futuristic.css */
    --fx-ink: #070a14;
    --fx-ink-2: #0b0f1c;
    --fx-cyan: #fdba74;
    --fx-blue: #f97316;
    --fx-violet: #9333ea;
}

.has-hero-video .grain-overlay {
    mix-blend-mode: screen;
}

/* ---------- Cards com fundo branco hardcoded no futuristic.css ---------- */
.has-hero-video .pain-card,
.has-hero-video .agent-benefit,
.has-hero-video .crm-feature,
.has-hero-video .cap-card,
.has-hero-video .discovery-card,
.has-hero-video .result-card,
.has-hero-video .step-card,
.has-hero-video .tr-hub-card,
.has-hero-video .tr-other,
.has-hero-video .tr-audience-card,
.has-hero-video .tr-method-card,
.has-hero-video .tr-highlight-card,
.has-hero-video .tr-panel-card,
.has-hero-video .tr-logistics-card,
.has-hero-video .tr-module {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.025) 100%);
    border-color: var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.has-hero-video .pain-card:hover,
.has-hero-video .agent-benefit:hover,
.has-hero-video .crm-feature:hover,
.has-hero-video .cap-card:hover,
.has-hero-video .discovery-card:hover,
.has-hero-video .result-card:hover,
.has-hero-video .tr-hub-card:hover,
.has-hero-video .tr-audience-card:hover,
.has-hero-video .tr-method-card:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.035) 100%);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(249, 115, 22, 0.15);
}

/* Ícones de card: vidro com gradiente e branco no hover */
.has-hero-video .pain-card-icon,
.has-hero-video .agent-benefit-icon,
.has-hero-video .crm-feature-icon,
.has-hero-video .cap-card-icon,
.has-hero-video .discovery-icon,
.has-hero-video .tr-audience-icon,
.has-hero-video .tr-method-icon,
.has-hero-video .tr-fact-icon {
    color: #ffffff;
    background: linear-gradient(140deg, rgba(249, 115, 22, 0.22), rgba(147, 51, 234, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.has-hero-video .pain-card:hover .pain-card-icon,
.has-hero-video .agent-benefit:hover .agent-benefit-icon,
.has-hero-video .crm-feature:hover .crm-feature-icon,
.has-hero-video .cap-card:hover .cap-card-icon,
.has-hero-video .discovery-card:hover .discovery-icon {
    background: linear-gradient(140deg, #f97316, #9333ea);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(147, 51, 234, 0.4);
}

/* Números de resultado com o gradiente da marca */
.has-hero-video .result-number,
.has-hero-video .result-card strong,
.has-hero-video .tr-outcome-num,
.has-hero-video .tr-layer-num,
.has-hero-video .tr-module-num {
    background: linear-gradient(90deg, #fb923c, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Chips de exemplo do assistente e blocos claros */
.has-hero-video .cap-example,
.has-hero-video .cap-card li,
.has-hero-video .cap-chip,
.has-hero-video .assist-example,
.has-hero-video .tr-hub-fact,
.has-hero-video .tr-fact,
.has-hero-video .tr-schedule-row,
.has-hero-video .tr-compare-row,
.has-hero-video .tr-deliverable {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: rgba(255, 255, 255, 0.82);
}

/* Botão "voltar ao topo" / elementos secundários */
.has-hero-video .section-subtitle,
.has-hero-video .pain-card p,
.has-hero-video .agent-benefit p,
.has-hero-video .crm-feature p,
.has-hero-video .cap-card p,
.has-hero-video .discovery-card p {
    color: var(--text-secondary);
}

/* ---------- Faixa de números estática (24/7, <15s, 300%) ---------- */
.hv-stats-strip.is-static .hv-stat-value {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
}

/* ---------- Showcase do produto abaixo do hero ---------- */
.hv-showcase {
    position: relative;
    z-index: 15;
    background: var(--bg-primary);
    padding: 40px clamp(20px, 4vw, 60px) 0;
}

.hv-showcase-frame {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 80px rgba(147, 51, 234, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: #0b0f1c;
}

.hv-showcase-frame video {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Seção CTA (service/treinamentos) ---------- */
.has-hero-video .cta-section {
    position: relative;
    padding: 140px 0;
    background: var(--bg-primary);
    background-image: linear-gradient(180deg, #070a14 0%, #0d0a1f 55%, #070a14 100%);
    isolation: isolate;
    overflow: hidden;
}

.has-hero-video .cta-section .cta-mesh {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 55% 55% at 35% 45%, rgba(249, 115, 22, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 55% 60% at 70% 55%, rgba(147, 51, 234, 0.26) 0%, transparent 60%);
    filter: blur(10px);
}

.has-hero-video .cta-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.has-hero-video .cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin-bottom: 22px;
    text-wrap: balance;
}

.has-hero-video .cta-title em {
    font-family: var(--hv-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.08em;
    letter-spacing: -0.01em;
    padding-right: 0.04em;
}

.has-hero-video .cta-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.has-hero-video .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.has-hero-video .cta-section .btn-primary {
    height: 56px;
    padding: 0 34px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #ffffff;
    background: var(--hv-gradient);
    background-size: 200% 200%;
    animation: hv-gradient-shift 4s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.4), 0 2px 8px rgba(249, 115, 22, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.has-hero-video .cta-section .btn-primary::before {
    display: none;
}

.has-hero-video .cta-section .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 60%;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
    transform: translateX(-160%) skewX(-12deg);
    animation: hv-light-sweep 3s ease-in-out infinite;
    pointer-events: none;
}

.has-hero-video .cta-section .btn-primary:hover {
    background: var(--hv-gradient);
    background-size: 200% 200%;
    color: #ffffff;
    box-shadow: 0 16px 50px rgba(147, 51, 234, 0.5), 0 4px 12px rgba(249, 115, 22, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.has-hero-video .cta-section .btn-primary svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.has-hero-video .cta-section .btn-primary span {
    position: relative;
    z-index: 1;
}

/* ---------- Seções em geral: linha divisória e glow ---------- */
.has-hero-video section:not(.hero):not(.hv-stats-strip):not(.hv-showcase):not(.cta-section) {
    position: relative;
    isolation: isolate;
}

.has-hero-video section:not(.hero):not(.hv-stats-strip):not(.hv-showcase):not(.cta-section)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    pointer-events: none;
}

/* ---------- Footer ---------- */
.has-hero-video footer {
    background: #05070f;
    border-top: 1px solid var(--border);
}

/* ---------- Responsivo ---------- */
@media (max-width: 768px) {
    .has-hero-video .cta-section {
        padding: 96px 0;
    }

    .has-hero-video .cta-buttons {
        flex-direction: column;
    }

    .has-hero-video .cta-section .btn-primary,
    .has-hero-video .cta-section .hv-btn-whatsapp {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }

    .hv-showcase {
        padding-top: 28px;
    }

    .hv-showcase-frame {
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .has-hero-video .cta-section .btn-primary,
    .has-hero-video .cta-section .btn-primary::after {
        animation: none;
    }
}

/* Tag dentro do card de treinamento não deve esticar na largura do card */
.has-hero-video .tr-hub-card .section-tag,
.has-hero-video .tr-other .section-tag {
    width: max-content;
    max-width: 100%;
}
