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

@font-face {
  font-family: 'Xtradex';
  src: url('assets/Xtradex.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #7B3FFF;
  --green:  #80FF5E;
  --red:    #FF4D5E;
  --text:   #e8e8e8;
  --font:   'Space Grotesk', system-ui, sans-serif;
  --trans:  0.3s ease;
}

html, body {
  width: 100%; height: 100%;
  background: #000;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

/* ===== PRELOADER ===== */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transition: opacity .5s ease;
}
.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}
.preloader-logo {
  font-family: 'Xtradex', var(--font);
  font-size: clamp(2.5rem, 10vw, 5rem);
  line-height: 0.7;
  text-align: center;
}
.pre-nando   { display: block; color: var(--purple); }
.pre-santana { display: block; color: var(--green); }

.preloader-bar {
  width: 160px; height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px; overflow: hidden;
}
.preloader-fill {
  height: 100%; width: 0%;
  background: linear-gradient(to right, var(--purple), var(--green));
  border-radius: 2px;
  transition: width .3s ease;
}

/* Hero invisível até preloader sair */
.hero { opacity: 0; transition: opacity .4s ease; }
.hero.ready { opacity: 1; }

/* ===== HERO ===== */
.hero {
  width: 100vw;
  height: 100svh;
  position: relative;
  background: #000;
  overflow: hidden;
}

/* --- Badge no topo --- */
.hero-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 32px 24px;
  /* gradiente para o badge respirar sobre o vídeo */
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 100%);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  font-size: .72rem; font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .1em; text-transform: uppercase;
}

/* --- Área do vídeo --- */
.hero-video-wrap {
  position: absolute;
  top: -8%;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Gradiente sutil na base */
.hero-video-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 38%;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Vídeo base (Fundo.mp4) */
.hero-video {
  position: absolute;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Vídeo soco — começa invisível, sobreposto */
.hero-video--soco {
  opacity: 0;
  z-index: 2;
}

/* --- Conteúdo (nome + botões) na base --- */
.hero-content {
  position: absolute;
  bottom: 6%;
  left: 0; right: 0;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  animation: fadeUp .8s ease both;
  pointer-events: none; /* não bloqueia clique no vídeo */
}
.hero-content a { pointer-events: all; }

.hero-title {
  font-family: 'Xtradex', var(--font);
  font-size: clamp(2.8rem, 10vw, 6.5rem);
  font-weight: normal;
  line-height: 0.7;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.name-nando   { color: var(--purple); display: block; }
.name-santana { color: var(--green);  display: block; }

.hero-links {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px;
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-youtube {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 24px rgba(255,77,94,.35);
}
.btn-youtube:hover { box-shadow: 0 6px 32px rgba(255,77,94,.5); }

.btn-instagram {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-instagram:hover { background: rgba(255,255,255,.18); }

/* ===== ANIMATION ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .hero-video-wrap { top: -22%; }

  .hero-title {
    font-size: clamp(2.8rem, 18vw, 4.5rem);
    margin-bottom: 16px;
  }

  .hero-content { bottom: 5%; padding: 0 20px; }

  .hero-top { padding: 24px 20px; }

  .hero-links { flex-direction: column; align-items: center; gap: 10px; }

  .btn {
    width: 240px;
    justify-content: center;
    padding: 13px 20px;
    font-size: .85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-video { display: none; }
}
