/* ============================================================
   Ethos IA — Estilos Customizados
   Tailwind CSS é o base; aqui ficam apenas os extras que o
   Tailwind não cobre facilmente via classe utilitária.
   ============================================================ */

/* ---- Previne scroll horizontal em qualquer viewport ---- */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ---- Scroll suave nativo já via Tailwind scroll-smooth ---- */

/* ---- Navbar: efeito de vidro ao rolar ---- */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 24px rgba(15, 23, 42, 0.06);
}

/* .text-gradient foi substituído por classes nativas do Tailwind
   (bg-clip-text text-transparent bg-gradient-to-r) diretamente no HTML,
   evitando conflito com transform em elementos pai (.reveal). */

/* ---- Glow sutil nos cards de solução ---- */
.card-glow:hover {
    box-shadow: 0 20px 40px -12px rgba(14, 165, 233, 0.15);
}

/* ---- Linha tracejada conectora (seção Como Funciona) ---- */
.step-connector {
    position: absolute;
    top: 24px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    border-top: 2px dashed #CBD5E1; /* slate-300 */
}

/* ---- Badge pulsante (status da IA no mockup) ---- */
/* Usa brand.emerald (#059669) para transmitir segurança e alívio */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #059669; /* brand.emerald */
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* ---- Animação de digitação no mockup ---- */
.typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94A3B8;
    animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%           { transform: translateY(-6px); }
}

/* ---- Seção Hero: background grid decorativo ---- */
.hero-grid {
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ---- Fade-in via Intersection Observer ---- */
/* Removido o transform: translateY() porque ele cria um contexto de
   composição que quebra bg-clip: text em filhos no Chrome/Safari */
.reveal {
    opacity: 0;
    transition: opacity 0.7s ease-out;
}
.reveal.visible {
    opacity: 1;
}

/* ---- Atraso escalonado para grupos de cards ---- */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   FAQ — Accordion com <details>/<summary>
   ============================================================ */

/* Remove o marcador nativo do <summary> em todos os browsers */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* Item aberto: borda e sombra de destaque */
details.faq-item[open] {
    border-color: #BAE6FD;   /* sky-200 */
    box-shadow: 0 4px 24px -4px rgba(14, 165, 233, 0.10);
}

/* Animação suave do conteúdo ao abrir */
details.faq-item > div {
    animation: faq-open 0.25s ease-out;
}

@keyframes faq-open {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TRUST BAR — Ticker Infinito
   ============================================================ */
.trust-ticker {
    position: relative;
    /* Gradientes laterais para fade de entrada e saída */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

.trust-ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 30s linear infinite;
}

/* Pausa ao passar o mouse — leitura guiada */
.trust-ticker:hover .trust-ticker-track {
    animation-play-state: paused;
}

.trust-ticker-group {
    display: flex;
    align-items: center;
}

.trust-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 32px;
    font-size: 0.7rem;          /* ~text-xs */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;             /* slate-500 */
    white-space: nowrap;
}

.trust-ticker-dot {
    margin-left: 24px;
    color: #CBD5E1;             /* slate-300 */
    font-size: 1.2rem;
    line-height: 1;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* -50% = desloca exatamente 1 grupo */
}
