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

:root {
  --blue: #4fc3f7;
  --purple: #9c27b0;
  --orange: #ff9800;
  --cyan: #00e5ff;
  --pink: #e040fb;
  --gold: #ffd740;
  --red: #ff1744;
  --red-deep: #d50000;
  --dark: #04040f;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
}

/* ─── Video Background ─── */
.video-bg-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: #04040f;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.15) contrast(1.05);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(4, 4, 15, 0.45) 0%,
    rgba(4, 4, 15, 0.72) 65%,
    rgba(4, 4, 15, 0.88) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ─── Particle Canvas ─── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ─── Page Layout ─── */
.page {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.5vh, 32px) clamp(16px, 3vw, 40px);
  box-sizing: border-box;
  overflow: hidden;
}

.page-container {
  width: 100%;
  max-width: 1180px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  z-index: 2;
}

.hero-section {
  flex: 1 1 500px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.partners-section {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* ─── Logo ─── */
.logo-wrap {
  position: relative;
  margin-bottom: 10px;
  animation: floatLogo 4s ease-in-out infinite;
}

.logo-wrap img {
  width: clamp(120px, 16vw, 190px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(79, 195, 247, 0.8))
          drop-shadow(0 0 60px rgba(156, 39, 176, 0.5));
  transition: filter 0.3s ease;
}

.logo-wrap:hover img {
  filter: drop-shadow(0 0 40px rgba(79, 195, 247, 1))
          drop-shadow(0 0 80px rgba(255, 152, 0, 0.7));
}

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

/* ─── Headline ─── */
.headline {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  font-weight: 900;
  text-align: center;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 30%, var(--pink) 65%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
  animation: glowPulse 3s ease-in-out infinite;
  margin-bottom: 8px;
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(79,195,247,0.5)); }
  50% { filter: drop-shadow(0 0 30px rgba(224,64,251,0.7)) drop-shadow(0 0 60px rgba(79,195,247,0.3)); }
}

/* ─── Tagline ─── */
.tagline {
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 22px;
  animation: fadeSlideUp 1s ease 0.3s both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Divider ─── */
.divider {
  width: min(100%, clamp(200px, 35vw, 440px));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), var(--orange), transparent);
  margin-bottom: 28px;
  animation: shimmer 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ─── Hero Action Buttons ─── */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
  z-index: 5;
}

/* ─── NovaFuja Hero Button (Destaque em Vermelho) ─── */
.novafuja-hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff1744 0%, #d50000 55%, #8b0000 100%);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(255, 23, 68, 0.65), 0 0 50px rgba(213, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  border: 1.5px solid rgba(255, 120, 140, 0.7);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fadeSlideUp 1s ease 0.6s both, redGlowPulse 2.5s ease-in-out infinite alternate;
  cursor: pointer;
  user-select: none;
}

@keyframes redGlowPulse {
  0% {
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.55), 0 0 45px rgba(213, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 100, 120, 0.6);
  }
  100% {
    box-shadow: 0 0 35px rgba(255, 23, 68, 0.95), 0 0 75px rgba(255, 23, 68, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 200, 210, 0.95);
  }
}

.novafuja-hero-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 45px rgba(255, 23, 68, 1), 0 0 85px rgba(255, 23, 68, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  border-color: #ffffff;
  color: #ffffff;
}

.novafuja-hero-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

/* ─── Hero Discord Button ─── */
.discord-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, #5865F2 0%, #404EED 100%);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fadeSlideUp 1s ease 0.7s both;
}

.discord-hero-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.8), 0 0 15px rgba(0, 229, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.discord-hero-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ─── Bottom credit ─── */
.credit {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}

/* ─── Floating pixels decoration ─── */
.pixel {
  position: fixed;
  border-radius: 2px;
  opacity: 0;
  animation: floatPixel linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes floatPixel {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ─── Corner accents ─── */
.corner {
  position: fixed;
  z-index: 1;
  pointer-events: none;
}

.corner-tl {
  top: 20px; left: 20px;
  width: 60px; height: 60px;
  border-top: 2px solid rgba(79,195,247,0.5);
  border-left: 2px solid rgba(79,195,247,0.5);
  border-radius: 4px 0 0 0;
}

.corner-tr {
  top: 20px; right: 20px;
  width: 60px; height: 60px;
  border-top: 2px solid rgba(224,64,251,0.5);
  border-right: 2px solid rgba(224,64,251,0.5);
  border-radius: 0 4px 0 0;
}

.corner-bl {
  bottom: 20px; left: 20px;
  width: 60px; height: 60px;
  border-bottom: 2px solid rgba(255,152,0,0.5);
  border-left: 2px solid rgba(255,152,0,0.5);
  border-radius: 0 0 0 4px;
}

.corner-br {
  bottom: 20px; right: 20px;
  width: 60px; height: 60px;
  border-bottom: 2px solid rgba(0,229,255,0.5);
  border-right: 2px solid rgba(0,229,255,0.5);
  border-radius: 0 0 4px 0;
}

/* ─── Scan line effect ─── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
}

/* ─── HUD top bar ─── */
.hud-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--orange), var(--pink), var(--cyan));
  background-size: 300% 100%;
  animation: hud-slide 4s linear infinite;
  z-index: 3;
}

@keyframes hud-slide {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* =======================================================
   ESTILOS DO COMPONENTE REELS PARCEIROS (Ao Lado)
   ======================================================= */
.widget-parceiros-reels {
  width: clamp(250px, 21vw, 300px);
  max-width: min(300px, calc((100vh - 140px) * (9 / 16)));
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  box-sizing: border-box;
  animation: fadeSlideUp 1s ease 0.4s both;
}

.widget-parceiros-reels * {
  box-sizing: border-box;
}

/* Cabeçalho "Parceiros" */
.reels-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.reels-widget-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reels-widget-header .header-icon {
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.6));
}

.reels-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 20px;
  padding: 2.5px 8px;
  font-family: 'Orbitron', sans-serif;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulseDot 1.4s ease-in-out infinite alternate;
}

@keyframes pulseDot {
  from { opacity: 0.4; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.2); box-shadow: 0 0 12px var(--cyan); }
}

/* Moldura vertical do player (formato 9:16) */
.reels-chassis {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85),
              0 0 35px rgba(79, 195, 247, 0.18),
              inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(79, 195, 247, 0.4);
  transition: all 0.35s ease;
}

.reels-chassis:hover {
  border-color: rgba(0, 229, 255, 0.75);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9),
              0 0 45px rgba(0, 229, 255, 0.35),
              inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Stage dos vídeos */
.reels-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
}

.reel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

.reel-item.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.reel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Barras de progresso estilo Instagram Stories */
.reels-progress-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  gap: 5px;
  pointer-events: none;
}

.progress-track {
  flex: 1;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  transition: width 0.08s linear;
}

.progress-track.done .progress-fill {
  width: 100% !important;
}

/* Zonas de toque (Esquerda volta, Direita avança) */
.tap-zone {
  position: absolute;
  top: 32px;
  bottom: 80px;
  z-index: 8;
  cursor: pointer;
  display: flex;
  align-items: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tap-zone.prev {
  left: 0;
  width: 40%;
  justify-content: flex-start;
  padding-left: 8px;
}

.tap-zone.next {
  right: 0;
  width: 60%;
  justify-content: flex-end;
  padding-right: 8px;
}

.tap-hint {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.reels-chassis:hover .tap-hint {
  opacity: 0.65;
}

.tap-zone:hover .tap-hint {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(0, 229, 255, 0.35);
  border-color: rgba(0, 229, 255, 0.7);
}

/* Barra inferior com nome, link e botão de áudio */
.reels-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  padding: 30px 12px 12px;
  background: linear-gradient(to top, rgba(4, 4, 15, 0.95) 0%, rgba(4, 4, 15, 0.55) 65%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: auto;
}

.partner-info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.partner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0d1018;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.partner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partner-avatar img.pixel-icon {
  object-fit: contain;
  padding: 4px;
  image-rendering: pixelated;
}

.partner-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.partner-meta .partner-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  font-family: 'Outfit', sans-serif;
}

.partner-meta .partner-link {
  font-size: 0.76rem;
  color: var(--cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s, text-shadow 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.partner-meta .partner-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--cyan);
  text-decoration: underline;
}

/* Botão de áudio */
.btn-sound-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(4, 4, 15, 0.7);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.btn-sound-toggle:hover {
  transform: scale(1.1);
  background: rgba(0, 229, 255, 0.25);
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.btn-sound-toggle:active {
  transform: scale(0.95);
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .page {
    height: auto;
    min-height: 100vh;
    padding: 40px 16px 80px;
    overflow-y: visible;
    justify-content: flex-start;
  }

  .page-container {
    flex-direction: column;
    gap: 36px;
  }

  .hero-section {
    max-width: 100%;
    flex: none;
  }

  .partners-section {
    width: 100%;
  }

  .widget-parceiros-reels {
    max-width: 300px;
  }

  .credit {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 32px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .corner { display: none; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 290px;
    gap: 10px;
  }

  .novafuja-hero-btn,
  .discord-hero-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.82rem;
  }
}
