/* ===================================================================
   HOXE — DESIGN SYSTEM & VISUAL TOKENS (HIGH-PERFORMANCE)
   Identidade Dark Futurista: Cyber-Lux / Apple-Linear Standard
   Otimizado para: 60/120 FPS, Zero Layout Shifts (CLS 0) & Core Web Vitals
   =================================================================== */

:root {
  /* Cores Base */
  --bg-primary: #050608;
  --bg-secondary: #0B0E14;
  --bg-card: rgba(17, 22, 30, 0.75);
  --bg-card-hover: rgba(22, 29, 41, 0.9);

  /* Tipografia */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #94A3B8;

  /* Cores de Destaque Neon */
  --accent-cyan: #00F0FF;
  --accent-cyan-rgb: 0, 240, 255;
  --accent-purple: #8B5CF6;
  --accent-purple-rgb: 139, 92, 246;
  --accent-emerald: #10B981;

  /* Gradientes Oficiais */
  --gradient-hoxe: linear-gradient(90deg, #00F0FF 0%, #8B5CF6 100%);
  --gradient-hoxe-alt: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);

  /* Bordas e Brilhos */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);
  --border-glow-purple: rgba(139, 92, 246, 0.35);

  /* Sombras Luminosas */
  --shadow-neon-cyan: 0 0 30px rgba(0, 240, 255, 0.25);
  --shadow-neon-purple: 0 0 30px rgba(139, 92, 246, 0.25);
}

/* ===================================================================
   RESET & ESTILOS GLOBAIS DE ALTA PERFORMANCE
   =================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  color-scheme: dark;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

::selection {
  background-color: var(--accent-cyan);
  color: #050608;
}

/* Fontes Auxiliares com Fallbacks Seguros */
.font-display {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ===================================================================
   CUSTOM SCROLLBAR
   =================================================================== */

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* ===================================================================
   TRATAMENTO VISUAL: LOGO E ÍCONES HOXE
   =================================================================== */

.logo-bright,
.hoxe-logo-bright {
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.35));
  transition: filter 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: filter, transform;
}

.logo-bright:hover,
.hoxe-logo-bright:hover {
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.75));
  transform: scale(1.03);
}

.hoxe-icon-bright {
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.hoxe-icon-bright:hover {
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.8));
}

/* Visibilidade Imediata para o Hero (Zero CLS / Zero FOUC) */
.hero-instant-visible {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
}

.logo-glow-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(11, 14, 20, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.2), inset 0 0 15px rgba(0, 240, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===================================================================
   1. NOISE OVERLAY (OTIMIZADO COM BAIXO IMPACTO DE COMPOSIÇÃO)
   =================================================================== */

.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  transform: translateZ(0);
}

/* ===================================================================
   LENIS SMOOTH SCROLL (PADRÃO 60/120FPS SEM ENGASGOS)
   =================================================================== */

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ===================================================================
   2. HERO CINEMATOGRÁFICO & PARALLAX SUAVE (HOXE)
   =================================================================== */

#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background-color: var(--bg-primary);
  overflow: hidden;
  contain: paint;
}

#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
}

#hero-main-content {
  will-change: transform, opacity;
}

#hero-scroll-caption {
  will-change: transform, opacity;
}

/* Vídeo 2 & Elementos da Seção Experiência */
#experience-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: translateZ(0);
}

.experience-glow-cyan,
.experience-glow-purple {
  will-change: transform;
}

/* Orbes e Feixes de Luz Volumétrica Reativa do Hero */
.hero-glow-cyan {
  position: absolute;
  top: -15%;
  left: -10%;
  width: 700px;
  height: 700px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.16) 0%, rgba(0, 240, 255, 0.03) 50%, transparent 70%);
  filter: blur(130px);
  pointer-events: none;
  z-index: 5;
  will-change: transform;
  transform: translateZ(0);
}

.hero-glow-purple {
  position: absolute;
  top: 25%;
  right: -10%;
  width: 650px;
  height: 650px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 70%);
  filter: blur(140px);
  pointer-events: none;
  z-index: 5;
  will-change: transform;
  transform: translateZ(0);
}

.hero-glow-center {
  position: absolute;
  bottom: 5%;
  left: 20%;
  width: 500px;
  height: 350px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 65%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 5;
}

/* ===================================================================
   3. FLASHLIGHT CARDS (INTERAÇÃO COM MOUSE OTIMIZADA)
   =================================================================== */

.flashlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateZ(0);
}

.flashlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    650px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
    rgba(0, 240, 255, 0.12),
    rgba(139, 92, 246, 0.08),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .flashlight-card:hover::before {
    opacity: 1;
  }

  .flashlight-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(0, 240, 255, 0.18), 0 0 20px rgba(139, 92, 246, 0.12);
  }

  .flashlight-card-purple:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 16px 36px -10px rgba(139, 92, 246, 0.25);
  }
}

/* ===================================================================
   4. BEAM BUTTON (FEIXE DE LUZ ROTATIVO)
   =================================================================== */

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn-beam {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 1.5px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  transform: translateZ(0);
}

.btn-beam::before {
  content: "";
  position: absolute;
  inset: -200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--accent-cyan) 60deg,
    var(--accent-purple) 180deg,
    transparent 360deg
  );
  animation: spin 3.5s linear infinite;
  z-index: 0;
  opacity: 0.9;
  will-change: transform;
}

.btn-beam:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.45), 0 0 15px rgba(139, 92, 246, 0.3);
}

.btn-beam-inner {
  position: relative;
  z-index: 1;
  background: #0B0E14;
  border-radius: 9999px;
  padding: 0.85rem 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #F8FAFC;
  width: 100%;
  height: 100%;
  transition: background 0.3s ease, color 0.3s ease;
  backdrop-filter: blur(12px);
}

.btn-beam:hover .btn-beam-inner {
  background: #111620;
  color: #FFFFFF;
}

/* ===================================================================
   4.1. BOTÕES MINIMALISTAS PADRÃO APPLE
   =================================================================== */

.apple-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2.2rem;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #050608;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  min-height: 48px;
}

.apple-btn-primary:hover {
  background: #00F0FF;
  color: #050608;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.4);
}

.apple-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
}

.apple-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.4);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
}

.apple-btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 40px;
}

.apple-btn-nav:hover {
  background: #FFFFFF;
  color: #050608;
  border-color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* ===================================================================
   5. TEXT UTILITIES (OUTLINE & GRADIENT)
   =================================================================== */

.text-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  color: transparent;
  transition: -webkit-text-stroke 0.4s ease, color 0.4s ease;
}

.text-outline:hover {
  -webkit-text-stroke: 1px var(--accent-cyan);
  color: rgba(0, 240, 255, 0.05);
}

.text-gradient {
  background: var(--gradient-hoxe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-purple {
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ===================================================================
   6. ANIMAÇÕES DE ENTRADA (REVEAL UP & REVEAL ZOOM)
   =================================================================== */

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.95);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom.active {
  opacity: 1;
  transform: scale(1);
}

/* ===================================================================
   7. MICROINTERAÇÕES E KEYFRAMES ESPECIAIS
   =================================================================== */

@keyframes scroll-line {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.animate-scroll-line {
  animation: scroll-line 1.8s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

.animate-float {
  animation: float 5.5s ease-in-out infinite;
  transform: translateZ(0);
}

@keyframes floatDelayed {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-1.5deg);
  }
}

.animate-float-delayed {
  animation: floatDelayed 6.5s ease-in-out infinite;
  transform: translateZ(0);
}

@keyframes neon-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), 0 0 40px rgba(139, 92, 246, 0.15);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.5), 0 0 70px rgba(139, 92, 246, 0.35);
  }
}

.neon-glow {
  animation: neon-pulse 3s ease-in-out infinite;
}

@keyframes ping-slow {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.animate-ping-slow {
  animation: ping-slow 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.scanline-card {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.scanline-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.8s ease-in-out, opacity 0.3s ease;
  pointer-events: none;
  z-index: 20;
}

.scanline-card:hover::after {
  opacity: 1;
  transform: translateY(320px);
}

.bg-tech-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.12) 0%, transparent 65%);
}

.bg-radial-purple {
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}

/* ===================================================================
   8. ACCORDION DO FAQ
   =================================================================== */

.accordion-item {
  opacity: 1 !important;
  visibility: visible !important;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.accordion-item.is-open .accordion-content,
.accordion-item.accordion-open .accordion-content,
.accordion-item.active .accordion-content {
  opacity: 1;
}

.accordion-item.is-open .accordion-icon,
.accordion-item.accordion-open .accordion-icon,
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.accordion-item.is-open,
.accordion-item.accordion-open,
.accordion-item.active {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(17, 22, 30, 0.95);
  box-shadow: 0 8px 24px -6px rgba(0, 240, 255, 0.15);
}

/* ===================================================================
   9. CONTENT-VISIBILITY & PERFORMANCE BOOST (SEÇÕES SECUNDÁRIAS)
   =================================================================== */

#comparativo, #entregaveis, #bonus, #oferta, #garantia, #sobre, #faq {
  content-visibility: auto;
  contain-intrinsic-size: 0 700px;
}

/* ===================================================================
   10. AJUSTES RESPONSIVOS FINOS, TOUCH TARGETS & ACESSIBILIDADE
   =================================================================== */

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

#mobile-menu {
  animation: mobileMenuSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobileMenuSlide {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* WhatsApp Floating Button Safe Area */
.whatsapp-float-btn {
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
}

@media (max-width: 768px) {
  .hero-glow-cyan,
  .hero-glow-purple,
  .experience-glow-cyan,
  .experience-glow-purple {
    filter: blur(50px) !important;
    opacity: 0.5 !important;
    width: 320px !important;
    height: 320px !important;
  }

  .reveal-up {
    transform: translateY(18px);
    transition-duration: 0.6s;
  }

  .reveal-zoom {
    transform: scale(0.97);
    transition-duration: 0.6s;
  }

  .apple-btn-primary,
  .apple-btn-secondary {
    width: 100%;
    padding: 0.85rem 1.6rem;
    font-size: 0.9rem;
  }

  .text-outline {
    -webkit-text-stroke: 0.75px rgba(255, 255, 255, 0.4);
  }

  .btn-beam-inner {
    padding: 0.75rem 1.4rem;
    font-size: 0.875rem;
  }
}

/* Redução de Movimento (Acessibilidade SO) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn-beam::before {
    animation: none !important;
  }

  .animate-float,
  .animate-float-delayed,
  .animate-ping-slow,
  .neon-glow {
    animation: none !important;
  }
}
