/* ==========================================================================
   Tenaz IA — CSS custom
   Base copiada da referência Site-02 (ai-automation-990.aura.build).
   Estrutura dos blocos igual à referência; ajustes Tenaz ficam no fim do arquivo.
   Cores do .shiny-cta iguais às da referência (azul #1d4ed8, brilho #8484ff), para combinar com o fundo fluido azul.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base (referência)
   -------------------------------------------------------------------------- */
:root {
    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
}

/* Fonte do logotipo (referência usa Roboto no nome da marca) */
.font-roboto {
    font-family: 'Roboto', sans-serif !important;
}

/* --------------------------------------------------------------------------
   Scrollbar (referência)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* --------------------------------------------------------------------------
   Botão principal .shiny-cta — borda em gradiente animada (referência)
   -------------------------------------------------------------------------- */
@property --gradient-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-angle-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-percent { syntax: "<percentage>"; initial-value: 20%; inherits: false; }
@property --gradient-shine { syntax: "<color>"; initial-value: #8484ff; inherits: false; }

.shiny-cta {
    --gradient-angle: 0deg;
    --gradient-angle-offset: 0deg;
    --gradient-percent: 20%;
    --gradient-shine: #8484ff;
    --shadow-size: 2px;
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(#000000, #000000) padding-box,
        conic-gradient(from calc(var(--gradient-angle) - var(--gradient-angle-offset)), transparent 0%, #1d4ed8 5%, var(--gradient-shine) 15%, #1d4ed8 30%, transparent 40%, transparent 100%) border-box;
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px #1a1818;
    outline: none;
    transition: --gradient-angle-offset 800ms cubic-bezier(0.25, 1, 0.5, 1), --gradient-percent 800ms cubic-bezier(0.25, 1, 0.5, 1), --gradient-shine 800ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
    cursor: pointer;
    isolation: isolate;
    outline-offset: 4px;
    font-family: 'Inter', sans-serif;
    z-index: 0;
    animation: border-spin 2.5s linear infinite;
}

.shiny-cta:active {
    transform: translateY(1px);
}

.shiny-cta::before {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    --size: calc(100% - 6px);
    --position: 2px;
    --space: 4px;
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle at var(--position) var(--position), white 0.5px, transparent 0) padding-box;
    background-size: var(--space) var(--space);
    background-repeat: space;
    mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
    border-radius: inherit;
    opacity: 0.4;
}

.shiny-cta::after {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(-50deg, transparent, #1d4ed8, transparent);
    mask-image: radial-gradient(circle at bottom, transparent 40%, black);
    opacity: 0.6;
    animation: shimmer 4s linear infinite;
}

.shiny-cta span {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.shiny-cta span::before {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    --size: calc(100% + 1rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px #1d4ed8;
    opacity: 0;
    border-radius: inherit;
    transition: opacity 800ms cubic-bezier(0.25, 1, 0.5, 1);
    animation: breathe 4.5s linear infinite;
}

/* --------------------------------------------------------------------------
   Keyframes (referência)
   -------------------------------------------------------------------------- */
@keyframes border-spin {
    to { --gradient-angle: 360deg; }
}

@keyframes shimmer {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.20); }
}

/* --------------------------------------------------------------------------
   Utilitários (referência)
   -------------------------------------------------------------------------- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.text-gradient {
    background: linear-gradient(to bottom, #ffffff, #a3a3a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Ajustes Tenaz (não existem na referência)
   ========================================================================== */

/* Âncoras não ficam escondidas atrás do header fixo (h-16) */
section[id] {
    scroll-margin-top: 4rem;
}

/* Foco visível para navegação por teclado (acessibilidade) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid #a3e635;
    outline-offset: 4px;
    border-radius: 4px;
}

.shiny-cta:focus-visible {
    outline: 2px solid #a3e635;
    outline-offset: 4px;
    border-radius: 9999px;
}

/* Respeita quem pede menos movimento no sistema */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* .shiny-cta em telas < 640px: menos padding lateral para o texto caber em uma linha */
@media (max-width: 639px) {
    .shiny-cta {
        padding: 0.875rem 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   FAQ (acordeão com <details>/<summary>)
   -------------------------------------------------------------------------- */
.faq-item summary {
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item .faq-icon {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-item summary:focus-visible {
    outline: 2px solid #a3e635;
    outline-offset: 2px;
    border-radius: 0.75rem;
}

/* Formulário de contato: campo com erro */
#form-contato [aria-invalid="true"] {
    border-color: #f87171;
}

/* Aviso de cookies: fundo quase opaco (o .glass-card puro é transparente demais sobre o conteúdo) */
.aviso-cookies {
    background: rgba(10, 10, 10, 0.92);
}
