/**
 * EncomendaApp — Landing premium (dark SaaS)
 * @author GESTÃOAPP <https://gestaoapp.ia.br>
 * Camada customizada que complementa o Tailwind (Play CDN): atmosfera de fundo,
 * glassmorphism, gradientes da marca e micro animações.
 */

:root {
  --brand: #7c3aed;
  --brand-2: #8b5cf6;
  --aqua: #22d3ee;
  --mint: #34d399;
  --ink: #0b0b14;
}

* { -webkit-tap-highlight-color: transparent; }

/* Fundo dark imediato (evita flash branco antes de o Tailwind CDN aplicar) */
html { scroll-padding-top: 92px; background-color: #0b0b14; }
body { line-height: 1.6; background-color: #0b0b14; color: #e2e8f0; font-family: Inter, system-ui, sans-serif; }

::selection { background: rgba(124, 58, 237, .4); color: #fff; }

/* ===== Tipografia de display ===== */
.font-display { font-family: "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -0.02em; }

/* Texto com gradiente da marca */
.text-gradient {
  background: linear-gradient(100deg, #c4b5fd 0%, #8b5cf6 38%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-soft {
  background: linear-gradient(100deg, #e9d5ff, #a5b4fc 60%, #67e8f9);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Atmosfera de fundo ===== */
.bg-atmosphere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.aurora {
  position: absolute; border-radius: 9999px; filter: blur(90px); opacity: .55;
  will-change: transform;
}
.aurora--1 {
  width: 46rem; height: 46rem; top: -14rem; left: -10rem;
  background: radial-gradient(circle at 30% 30%, #7c3aed, transparent 65%);
  animation: float-slow 22s ease-in-out infinite;
}
.aurora--2 {
  width: 40rem; height: 40rem; top: 18%; right: -14rem;
  background: radial-gradient(circle at 50% 50%, #22d3ee, transparent 62%);
  opacity: .38; animation: float-slow 26s ease-in-out infinite reverse;
}
.aurora--3 {
  width: 42rem; height: 42rem; bottom: -16rem; left: 30%;
  background: radial-gradient(circle at 50% 50%, #d946ef, transparent 60%);
  opacity: .30; animation: float-slow 30s ease-in-out infinite;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* Grão sutil por cima de tudo */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Glassmorphism ===== */
.glass {
  background: rgba(22, 22, 36, .55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(148, 163, 184, .12);
}
.glass-strong {
  background: rgba(16, 16, 28, .72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(148, 163, 184, .14);
}
/* Borda com brilho em gradiente (truque de máscara) */
.glow-border { position: relative; }
.glow-border::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, rgba(139,92,246,.7), rgba(34,211,238,.35), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; border-radius: 9999px; transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  color: #fff; padding: .9rem 1.6rem;
  background: linear-gradient(100deg, #7c3aed, #8b5cf6 55%, #6d28d9);
  box-shadow: 0 10px 30px -10px rgba(124,58,237,.7), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(124,58,237,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost {
  color: #e2e8f0; padding: .9rem 1.5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.22);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(167,139,250,.5); background: rgba(255,255,255,.07); }

/* ===== Eyebrow / pílula de seção ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #c4b5fd; padding: .4rem .85rem; border-radius: 9999px;
  background: rgba(124,58,237,.12); border: 1px solid rgba(139,92,246,.28);
}

/* ===== Reveal no scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ===== Animações ===== */
@keyframes float-slow { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(2.5rem,-1.8rem,0); } }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.animate-float { animation: float-y 6s ease-in-out infinite; }
.animate-float-delayed { animation: float-y 7s ease-in-out infinite; animation-delay: 1.2s; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.45); }
  70% { box-shadow: 0 0 0 12px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.pulse-dot { animation: pulse-ring 2.2s infinite; }

@keyframes shimmer { 100% { transform: translateX(100%); } }
.shimmer { position: relative; overflow: hidden; }
.shimmer::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  animation: shimmer 2.6s infinite;
}

/* Marquee (logos / depoimentos) */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Linha de fluxo animada (seção integração) */
@keyframes dash-flow { to { stroke-dashoffset: -1000; } }
.flow-line { stroke-dasharray: 8 10; animation: dash-flow 18s linear infinite; }

/* ===== Header ===== */
.site-header { transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; }
.site-header.is-scrolled {
  background: rgba(11,11,20,.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(148,163,184,.12) !important;
}

/* Drawer mobile */
.mobile-drawer { transition: transform .35s cubic-bezier(.4,0,.2,1); }
body.no-scroll { overflow: hidden; }

/* ===== FAQ ===== */
.faq-item .faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.active .faq-answer { max-height: 360px; }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform .35s ease; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0b0b14; }
::-webkit-scrollbar-thumb { background: linear-gradient(#6d28d9, #4c1d95); border-radius: 9999px; border: 3px solid #0b0b14; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#7c3aed, #5b21b6); }

/* ===== Float buttons ===== */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  width: 3.4rem; height: 3.4rem; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; color: #fff; font-size: 1.5rem;
  background: linear-gradient(135deg, #25d366, #128c4a);
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); }
.scrollup {
  position: fixed; right: 1.35rem; bottom: 5.2rem; z-index: 49;
  width: 2.85rem; height: 2.85rem; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; color: #e2e8f0;
  background: rgba(22,22,36,.8); border: 1px solid rgba(148,163,184,.2);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s ease;
}
.scrollup.show-scroll { opacity: 1; visibility: visible; transform: none; }
.scrollup:hover { color: #fff; border-color: rgba(167,139,250,.55); }

/* ===== Cookie consent ===== */
.cookie-consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
  display: none; gap: 1rem; align-items: center; flex-wrap: wrap;
  max-width: 56rem; margin: 0 auto; padding: 1rem 1.25rem; border-radius: 1.25rem;
}
.cookie-consent.is-visible { display: flex; animation: float-up .5s ease; }
@keyframes float-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  .aurora, .animate-float, .animate-float-delayed, .marquee-track, .shimmer::after, .pulse-dot, .flow-line { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
