/* =============================================================
   HERO STATSBAR V19 — PREMIUM SURREAL EDITION
   
   Social proof panel que faz o visitante decidir se cadastrar.
   
   Componentes:
   - .bs-hero-statsbar       (painel glass premium)
   - .bs-hero-stat           (card interno por métrica com icon + num + label)
   - .bs-hero-stat-live      (indicador LIVE pulsante)
   - .bs-hero-btn.primary    (CTA principal dual-line com shine)
   - .bs-hero-btn.ghost      (CTA secundário glass)
   
   Escopo: home page (visitantes)
   ============================================================= */

/* ======================================================
   STATS BAR — Painel principal
   ====================================================== */
.bs-hero-statsbar {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    margin: 40px auto 32px;
    padding: 18px 12px;
    background:
        linear-gradient(180deg, rgba(12, 20, 36, 0.78) 0%, rgba(6, 12, 22, 0.88) 100%),
        radial-gradient(ellipse 70% 120% at 50% -20%, rgba(0, 212, 255, 0.14) 0%, transparent 70%);
    border: 1px solid rgba(0, 195, 226, 0.22);
    border-radius: 18px;
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    box-shadow:
        0 20px 48px -12px rgba(0, 195, 226, 0.32),
        0 4px 14px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 212, 255, 0.10);
    max-width: 920px;
    width: calc(100% - 32px);
    overflow: hidden;
    isolation: isolate;
}

/* Circuit pattern BG layer */
.bs-hero-statsbar > .bs-hero-statsbar-bg,
.bs-hero-statsbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 195, 226, 0.05) 0%, transparent 40%),
        repeating-linear-gradient(0deg, transparent 0, transparent 28px, rgba(0, 195, 226, 0.025) 29px, transparent 30px),
        repeating-linear-gradient(90deg, transparent 0, transparent 28px, rgba(0, 195, 226, 0.025) 29px, transparent 30px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

/* Top cyan laser line */
.bs-hero-statsbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.85), #7ce7ff, rgba(0, 212, 255, 0.85), transparent);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.75);
    pointer-events: none;
    z-index: 3;
    animation: statsTopLaser 6s ease-in-out infinite;
}
@keyframes statsTopLaser {
    0%, 100% { opacity: 0.55; filter: brightness(1); }
    50%      { opacity: 1;    filter: brightness(1.5); }
}

/* ======================================================
   STAT — Card individual (icon + number + label)
   ====================================================== */
.bs-hero-stat {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 22px;
    min-width: 0;
    text-align: center;
    flex: 1 1 0;
    z-index: 2;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.bs-hero-stat:hover {
    transform: translateY(-3px);
}

/* Icon chip acima do número */
.bs-hero-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 2px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18) 0%, rgba(0, 195, 226, 0.08) 100%);
    border: 1px solid rgba(0, 212, 255, 0.32);
    border-radius: 10px;
    color: #7ce7ff;
    font-size: 14px;
    box-shadow:
        0 4px 12px rgba(0, 195, 226, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all .4s cubic-bezier(.2, .8, .2, 1);
}
.bs-hero-stat:hover .bs-hero-stat-icon {
    transform: scale(1.1) rotate(-5deg);
    color: #fff;
    background: linear-gradient(135deg, #00d4ff 0%, #00c3e2 100%);
    border-color: rgba(124, 231, 255, 0.55);
    box-shadow:
        0 6px 18px rgba(0, 212, 255, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Número grande com gradient cyan */
.bs-hero-stat-num {
    font-family: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.8px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #7ce7ff 55%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.35));
    transition: filter .35s ease, transform .35s ease;
}
.bs-hero-stat:hover .bs-hero-stat-num {
    filter: drop-shadow(0 0 28px rgba(0, 212, 255, 0.72));
    transform: scale(1.04);
}

/* Label abaixo do número */
.bs-hero-stat-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .3s ease, text-shadow .3s ease;
}
.bs-hero-stat:hover .bs-hero-stat-label {
    color: #c9e8ff;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

/* Separator vertical cyan */
.bs-hero-stat-sep {
    position: relative;
    width: 1px;
    min-width: 1px;
    height: 56px;
    align-self: center;
    flex-shrink: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.38) 30%, rgba(0, 212, 255, 0.55) 50%, rgba(0, 212, 255, 0.38) 70%, transparent 100%);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.25);
    z-index: 2;
}
.bs-hero-stat-sep::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.9), 0 0 4px #fff;
    animation: statsSepPulse 3s ease-in-out infinite;
}
@keyframes statsSepPulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.4); }
}

/* ======================================================
   LIVE — Indicador pulsante
   ====================================================== */
.bs-hero-stat-live {
    display: inline-flex;
    flex-direction: row !important;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0.06) 100%);
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(167, 243, 208, 0.95);
    letter-spacing: 0.3px;
    align-self: center;
    flex: 0 0 auto !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 12px rgba(16, 185, 129, 0.18);
    transition: all .35s ease;
}
.bs-hero-stat-live:hover {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}
.bs-hero-stat-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.9), 0 0 4px #34d399;
    animation: statsLivePulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
    position: relative;
}
.bs-hero-stat-live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.7);
    animation: statsLiveRing 1.8s ease-out infinite;
}
@keyframes statsLivePulse {
    0%, 100% { opacity: 1;   transform: scale(1);   box-shadow: 0 0 10px rgba(16, 185, 129, 0.9); }
    50%      { opacity: 0.55; transform: scale(0.85); box-shadow: 0 0 4px rgba(16, 185, 129, 0.4); }
}
@keyframes statsLiveRing {
    0%   { opacity: 0.7; transform: scale(0.8); }
    100% { opacity: 0;   transform: scale(1.8); }
}
.bs-hero-stat-live-text strong {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.2px;
}

/* ======================================================
   Responsivo
   ====================================================== */
@media (max-width: 760px) {
    .bs-hero-statsbar {
        flex-wrap: wrap;
        padding: 14px 10px;
        gap: 0;
        margin: 32px auto 24px;
    }
    .bs-hero-stat { padding: 8px 12px; flex: 1 1 40%; }
    .bs-hero-stat-num { font-size: 22px; }
    .bs-hero-stat-label { font-size: 9.5px; letter-spacing: 1px; }
    .bs-hero-stat-sep { height: 40px; }
    .bs-hero-stat-live {
        flex-basis: 100% !important;
        justify-content: center;
        margin-top: 10px;
        padding: 8px 14px;
    }
}
@media (max-width: 480px) {
    .bs-hero-stat-sep:nth-of-type(2) { display: none; } /* remove separator no wrap */
    .bs-hero-stat { flex-basis: 50%; }
    .bs-hero-stat-icon { width: 30px; height: 30px; font-size: 12px; }
}

/* ======================================================
   CTAs REMAKE
   ====================================================== */
.bs-hero-ctas { gap: 14px !important; align-items: stretch !important; }

/* Primary CTA com dual-line + shine animado */
.bs-hero-btn.primary {
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 15px 32px !important;
    background: linear-gradient(135deg, #00d4ff 0%, #00c3e2 40%, #0095c8 100%) !important;
    border: 0 !important;
    border-radius: 100px !important;
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all .35s cubic-bezier(.2, .8, .2, 1) !important;
    box-shadow:
        0 14px 36px -8px rgba(0, 195, 226, 0.65),
        0 0 0 2px rgba(0, 212, 255, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 -3px 6px rgba(0, 0, 0, 0.20) !important;
    isolation: isolate;
}
.bs-hero-btn.primary::before {
    content: "" !important;
    position: absolute !important;
    inset: -8px !important;
    border-radius: 100px !important;
    background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.6) 0%, transparent 70%);
    filter: blur(14px);
    z-index: -1;
    opacity: 0.75;
    animation: heroCtaGlow 2.6s ease-in-out infinite;
}
@keyframes heroCtaGlow {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.08); }
}
.bs-hero-btn-shine {
    position: absolute !important;
    top: 0;
    left: -120% !important;
    width: 60%;
    height: 100% !important;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.48) 50%, transparent 70%) !important;
    transform: skewX(-20deg) !important;
    transition: left .9s cubic-bezier(.2, .8, .2, 1) !important;
    pointer-events: none !important;
    z-index: 1;
}
.bs-hero-btn.primary > * { position: relative; z-index: 2; }
.bs-hero-btn.primary > i { font-size: 17px !important; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.bs-hero-btn-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    line-height: 1 !important;
}
.bs-hero-btn-label strong {
    font-size: 15.5px !important;
    font-weight: 900 !important;
    letter-spacing: 0.2px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}
.bs-hero-btn-label small {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.9px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-transform: uppercase !important;
    opacity: 0.97;
}
.bs-hero-btn.primary .arr {
    font-size: 18px !important;
    font-weight: 800 !important;
    transition: transform .3s ease !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.bs-hero-btn.primary:hover {
    transform: translateY(-3px) !important;
    background: linear-gradient(135deg, #7ce7ff 0%, #00d4ff 40%, #00a8d6 100%) !important;
    box-shadow:
        0 22px 48px -8px rgba(0, 195, 226, 0.82),
        0 0 0 2px rgba(0, 212, 255, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 6px rgba(0, 0, 0, 0.18) !important;
}
.bs-hero-btn.primary:hover .bs-hero-btn-shine { left: 140% !important; }
.bs-hero-btn.primary:hover .arr { transform: translateX(6px) !important; }
.bs-hero-btn.primary:active { transform: translateY(-1px) !important; }

/* Ghost CTA refinado */
.bs-hero-btn.ghost {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 15px 26px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(0, 195, 226, 0.30) !important;
    border-radius: 100px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all .3s cubic-bezier(.2, .8, .2, 1) !important;
}
.bs-hero-btn.ghost i { font-size: 13px !important; color: #00d4ff !important; }
.bs-hero-btn.ghost:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, rgba(0, 195, 226, 0.16), rgba(0, 195, 226, 0.05)) !important;
    border-color: rgba(0, 212, 255, 0.65) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px -8px rgba(0, 195, 226, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Mobile stack CTAs */
@media (max-width: 560px) {
    .bs-hero-ctas {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 10px !important;
    }
    .bs-hero-btn.primary,
    .bs-hero-btn.ghost { width: 100% !important; justify-content: center !important; }
    .bs-hero-btn.primary { padding: 14px 22px !important; }
}

/* ======================================================
   ENTRANCE ANIMATION (aparece suavemente quando a home abre)
   ====================================================== */
@keyframes statsbarReveal {
    0%   { opacity: 0; transform: translateY(20px) scale(0.97); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0) scale(1);       filter: blur(0); }
}
.bs-hero-statsbar {
    animation: statsbarReveal 0.9s cubic-bezier(.2, .8, .2, 1) 0.15s backwards;
}
