/* ==========================================================================
   REACT BITS — COMPONENTES DE ANIMAÇÃO PARA O SITE "A CHAMA"
   Identidade: Litúrgica, Calorosa, Minimalista (Apple HIG)
   Paleta: #041527 (Void), #FFB703 (Âmbar Ouro), #FF2A55 (Fogo Sagrado)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. STAR BORDER (React Bits - Orbiting Star Light Trail)
   -------------------------------------------------------------------------- */
.star-border-wrap {
  position: relative !important;
  isolation: isolate !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  -webkit-tap-highlight-color: transparent !important;
  overflow: visible !important;
}

@media (max-width: 639px) {
  .star-border-wrap.w-full {
    display: flex !important;
    width: 100% !important;
  }
}

@media (min-width: 640px) {
  .star-border-wrap.sm\:w-auto,
  .star-border-wrap.w-full {
    display: inline-flex !important;
    width: auto !important;
  }
}

.star-border-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--star-border-thickness, 1.5px) var(--star-border-track, rgba(255, 183, 3, 0.28));
  pointer-events: none;
}

.star-border__canvas {
  position: absolute;
  top: -48px;
  left: -48px;
  z-index: 2;
  width: calc(100% + 96px);
  height: calc(100% + 96px);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   2. GRADIENT TEXT (React Bits - Living Gradient Text Sweep)
   -------------------------------------------------------------------------- */
.text-halftone-glow,
.gradient-text-live {
  background-image: linear-gradient(90deg, #FFE259 0%, #FFB703 25%, #FB8500 50%, #FF2A55 75%, #FFE259 100%) !important;
  background-size: 250% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: rbFlameGradientSweep 7s ease-in-out infinite alternate !important;
  filter: drop-shadow(0 0 16px rgba(255, 183, 3, 0.42)) !important;
  display: inline-block;
}

.light-section .text-halftone-glow,
.light-section .gradient-text-live {
  background-image: linear-gradient(90deg, #B45309 0%, #EA580C 38%, #E11D48 72%, #D97706 100%) !important;
  filter: none !important;
}

@keyframes rbFlameGradientSweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.rb-gradient-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  isolation: isolate;
}

.rb-gradient-text__inner {
  position: relative;
  display: inline-block;
}

.rb-gradient-text__content {
  display: inline-block;
  background-image: var(--gt-gradient, linear-gradient(90deg, #FFE259, #FFB703, #FF5722, #FF2A55, #FFE259));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rb-gradient-text__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--gt-gradient, linear-gradient(90deg, #FFE259, #FFB703, #FF5722, #FF2A55, #FFE259));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(0.35em) saturate(1.4);
  opacity: var(--gt-glow, 0.45);
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   3. SPOTLIGHT CARD (Clean, Subtle Cards without Exaggerated Glow)
   -------------------------------------------------------------------------- */
.spotlight-card {
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

@media (hover: hover) {
  .spotlight-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45) !important;
  }
}

.spotlight-card__light,
.spotlight-card__border {
  display: none !important;
}

/* --------------------------------------------------------------------------
   4. CELESTIAL BACKGROUND (Light Rays + Floating Embers)
   -------------------------------------------------------------------------- */
.hero-celestial-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, rgba(0, 0, 0, 0.5) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 65%, rgba(0, 0, 0, 0.5) 82%, transparent 100%);
}

.hero-celestial-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   5. GLASS SURFACE ENHANCEMENTS (Apple-grade Refraction)
   -------------------------------------------------------------------------- */
.glass-header-enhanced {
  background: rgba(4, 21, 39, 0.78) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset, 0 16px 36px -10px rgba(2, 10, 20, 0.6) !important;
}

/* --------------------------------------------------------------------------
   6. SWARM CURSOR (Desativado para manter estética limpa e sem excesso de brilho)
   -------------------------------------------------------------------------- */
.swarm-cursor-canvas {
  display: none !important;
}

/* --------------------------------------------------------------------------
   7. WAVY TEXT LOOP RIBBON (React Bits - Fita Refinada Apple HIG)
   -------------------------------------------------------------------------- */
.ribbon-wave-section {
  position: relative;
  width: 100%;
  height: 84px;
  overflow: hidden;
  background: linear-gradient(180deg, #041527 0%, #041527 46%, #FAF8F5 54%, #FAF8F5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none !important;
  user-select: none;
}

.ribbon-text-loop-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  display: flex;
  align-items: center;
}

.ribbon-text-loop-wrap:active {
  cursor: grabbing;
}

.ribbon-text-loop-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: none !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   8. APPLE ORGANIC CARD (Superfícies Orgânicas sem Linhas Duras Divisórias)
   -------------------------------------------------------------------------- */
.apple-organic-card {
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 183, 3, 0.04) 0%, rgba(8, 28, 52, 0.65) 60%, rgba(4, 21, 39, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 40px -15px rgba(2, 11, 20, 0.7);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.apple-organic-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 183, 3, 0.12),
    0 25px 50px -12px rgba(2, 11, 20, 0.85);
}

.organic-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  margin: 1.25rem 0;
  border: none;
}

/* --------------------------------------------------------------------------
   9. SOLAR ALABASTER BENTO CARDS & DARK MASCOT STAGE BOX (Contraste AAA)
   -------------------------------------------------------------------------- */
.bento-light-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 14px 36px -14px rgba(15, 23, 42, 0.09);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.bento-light-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 6, 0.28);
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.05),
    0 22px 44px -14px rgba(217, 119, 6, 0.14);
}

.warm-coffee-stage-wrap {
  position: relative;
  background: transparent;
}

