:root {
    --bg: #06060f;
    --border: rgba(255, 255, 255, 0.08);
    --txt: #c3cbdb;
    --cyan: #22d3ee;
    --violet: #8b5cf6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--txt);
    scroll-behavior: smooth;
}

/* Fundo dark com grid + glow superior (estilo SaaS) */
.bg-premium { background: var(--bg); position: relative; }
.bg-premium::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% -5%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 85% 55% at 50% -5%, #000 30%, transparent 75%);
}
.bg-premium::after {
    content: '';
    position: fixed;
    top: -240px; left: 50%;
    transform: translateX(-50%);
    width: 1000px; height: 600px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.28), transparent 68%);
}

/* Tokens custom redefinidos para o tema escuro */
.text-navy { color: #f1f5f9; }
.bg-navy { background-color: #0b0b18; }
.text-purple { color: #a78bfa; }
.bg-purple { background-color: #7c3aed; }
.bg-whatsapp { background-color: #22c55e; }

.text-gradient {
    background: linear-gradient(100deg, #22d3ee, #8b5cf6 55%, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botão gradiente (CTA principal estilo SaaS) */
.btn-grad {
    background: linear-gradient(100deg, #7c3aed, #6366f1);
    box-shadow: 0 10px 30px -8px rgba(124, 58, 237, 0.55);
    color: #fff;
}
.btn-grad:hover { background: linear-gradient(100deg, #8b5cf6, #818cf8); }

.logo-font-stay { font-weight: 800; letter-spacing: -1px; font-style: italic; }
.logo-font-safe {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4em; margin-left: -4px;
    display: inline-block; transform: translateY(2px);
}
.logo-font-consig {
    font-weight: 500; letter-spacing: 3px;
    text-transform: uppercase; font-size: 0.7rem; opacity: 0.7;
}

.glass {
    background: rgba(8, 8, 18, 0.65);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
}

.btn-hover { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-hover:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 30px -8px rgba(124, 58, 237, 0.45);
}

.card-premium {
    transition: all 0.4s ease;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px -16px rgba(124, 58, 237, 0.35);
    border-color: rgba(139, 92, 246, 0.45);
}

/* ===== Overrides das utilidades claras do Tailwind para o tema escuro ===== */
.bg-white { background-color: rgba(255, 255, 255, 0.035) !important; }
.bg-gray-50 { background-color: rgba(255, 255, 255, 0.022) !important; }
.bg-gray-100, .bg-gray-200 { background-color: rgba(255, 255, 255, 0.06) !important; }
.text-gray-300 { color: #6b7488 !important; }
.text-gray-400 { color: #7e879b !important; }
.text-gray-500 { color: #99a2b5 !important; }
.text-gray-600 { color: #b2bacb !important; }
.border-gray-100 { border-color: rgba(255, 255, 255, 0.07) !important; }
.border-gray-200 { border-color: rgba(255, 255, 255, 0.10) !important; }
.border-white { border-color: rgba(255, 255, 255, 0.10) !important; }
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: rgba(255, 255, 255, 0.07) !important; }

/* Chips de ícone (pastéis) viram tons translúcidos no escuro */
.bg-blue-50 { background-color: rgba(56, 189, 248, 0.12) !important; }
.bg-green-50 { background-color: rgba(34, 197, 94, 0.12) !important; }
.text-blue-600 { color: #38bdf8 !important; }
.text-green-600 { color: #4ade80 !important; }

/* Modais precisam de fundo sólido (não translúcido) */
[id^="modal-"] .bg-white { background-color: #0c0c1a !important; }
[id^="modal-"] .bg-gray-50 { background-color: rgba(255, 255, 255, 0.03) !important; }
[id^="modal-"] .bg-white\/95 { background-color: rgba(12, 12, 26, 0.95) !important; }

.float-anim {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-whatsapp {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 320px;
    margin: auto;
}

.chart-label-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.modal-overlay {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

/* ===================== PREMIUM ENHANCEMENTS ===================== */

/* Scrollbar refinada */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0a0a16; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #22d3ee, #8b5cf6);
    border-radius: 10px;
    border: 2px solid #0a0a16;
}
::-webkit-scrollbar-thumb:hover { background: #8b5cf6; }

/* Seleção de texto */
::selection { background: rgba(139, 92, 246, 0.35); color: #fff; }

/* Textura de grão sutil sobre toda a página */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Gradiente de texto animado (sobrescreve o anterior) */
.text-gradient {
    background: linear-gradient(100deg, #22d3ee, #818cf8, #c084fc, #22d3ee);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 9s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Auroras animadas (fundo do hero) */
.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}
.aurora-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(107,104,214,0.55), transparent 70%);
    top: -140px; right: -90px;
    animation: auroraMove 20s ease-in-out infinite;
}
.aurora-2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(34,211,238,0.30), transparent 70%);
    bottom: -160px; left: -120px;
    animation: auroraMove 26s ease-in-out infinite reverse;
}
.aurora-3 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(139,92,246,0.30), transparent 70%);
    top: 30%; left: 40%;
    animation: auroraMove 30s ease-in-out infinite;
}
@keyframes auroraMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(45px, 35px) scale(1.18); }
}

/* Brilho que varre os botões principais */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0; left: -130%;
    width: 65%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-22deg);
    transition: left 0.7s ease;
    pointer-events: none;
}
.btn-shine:hover::after { left: 150%; }

/* Borda com glow em gradiente nos cards */
.card-glow { position: relative; }
.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(63,61,145,0.55), rgba(107,104,214,0.15), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

/* Sombra premium suave */
.shadow-premium {
    box-shadow: 0 30px 60px -22px rgba(26,27,58,0.20), 0 14px 28px -16px rgba(63,61,145,0.14);
}

/* Reveal on-scroll (progressivo: só esconde quando o JS assume) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s cubic-bezier(0.2,0.7,0.2,1), transform 0.85s cubic-bezier(0.2,0.7,0.2,1);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Faixa de bancos parceiros (marquee infinito) */
.marquee {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Header com sombra ao rolar */
header.scrolled {
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.6);
    background: rgba(6, 6, 15, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .aurora, .text-gradient, .marquee__track { animation: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
