/* ==========================================================================
   OrbitSender — Flux Design System
   Copy: OrbitSender · Linguagem visual: FLUX (flux-motion.aura.build)
   Paleta: #0B0C15 (fundo) · laranja (acento) · slate (neutros) · branco
   Tipografia: Inter (sans) + Geist Mono (mono)
   ========================================================================== */

:root {
  --bg: #0B0C15;
  --panel: rgba(255, 255, 255, 0.02);
  --accent: #f97316;   /* orange-500 */
  --accent-soft: #fb923c; /* orange-400 */
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: #E2E8F0;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Tipografia utilitária ---------- */
.font-mono,
.font-geist-mono {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace !important;
}

/* Glow branco sutil no display (FLUX text-glow) */
.text-glow {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Glow âmbar para títulos de destaque */
.text-glow-accent {
  text-shadow: 0 0 40px rgba(249, 115, 22, 0.30), 0 0 80px rgba(249, 115, 22, 0.12);
}

/* ==========================================================================
   FUNDOS
   ========================================================================== */

/* Camada preta de carregamento: cobre o fundo até o efeito WebGL da hero montar.
   Fica acima dos fundos decorativos (z-0), mas abaixo do conteúdo (z-10) e do nav (z-50),
   então o texto da hero continua visível enquanto o efeito carrega por trás. */
#hero-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  z-index: 5;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1s ease;
}
#hero-loader.hero-loader--hidden {
  opacity: 0;
}

/* Grade FLUX: linhas finas com fade radial a partir do topo */
.bg-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 4rem 4rem;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* Aura âmbar superior que desvanece para baixo */
.hero-aura {
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(249, 115, 22, 0.28), rgba(234, 88, 12, 0.10) 45%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  animation: auraPulse 8s ease-in-out infinite;
}
@keyframes auraPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* Estrelas (identidade FLUX/index2) */
.stars {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 50px 160px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(1.5px 1.5px at 90px 40px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 130px 80px, #ffffff, rgba(0, 0, 0, 0));
  background-size: 200px 200px;
  opacity: 0.2;
}

/* ==========================================================================
   BORDA EM GRADIENTE (FLUX shared style)
   ========================================================================== */
[style*="--border-gradient"]::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--border-radius-before, inherit);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  background: var(--border-gradient);
  pointer-events: none;
}

/* Variante simples reutilizável (shimmer diagonal) */
.border-gradient { position: relative; }
.border-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  background: linear-gradient(225deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Cartão "elétrico" — glow âmbar (substitui o indigo original) */
.electric-card {
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.28), inset 0 0 20px rgba(249, 115, 22, 0.10);
}

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA / SCROLL
   ========================================================================== */
@keyframes fadeInUpBlur {
  0%   { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(6px); }
  55%  { filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0);    filter: blur(0); }
}
.animate-entry {
  animation: fadeInUpBlur 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity, filter;
  /* libera a camada de composição após terminar para não pesar a página */
  backface-visibility: hidden;
}
.delay-75  { animation-delay: 75ms; }
.delay-100 { animation-delay: 100ms; }
.delay-150 { animation-delay: 150ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }

/* Respeita usuários que pedem menos movimento */
@media (prefers-reduced-motion: reduce) {
  .animate-entry { animation: none; }
}

@keyframes animationIn {
  0%   { opacity: 0; transform: translateY(30px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0px); }
}
.animate-on-scroll { animation-play-state: paused !important; }
.animate-on-scroll.animate { animation-play-state: running !important; }

/* Linha tracejada animada (conector de preços) */
@keyframes flow { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.animate-flow { animation: flow 1s linear infinite; }

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0B0C15; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
