/* ==========================================
   DAVYZIN — Landing Page
   Estilo: Dark / Urbano / Country Trap
   Abordagem: Mobile First
   ========================================== */

/* ---- Custom Properties ---- */
:root {
  /* Background */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Accent — Gold */
  --accent: #C9A84C;
  --accent-light: #E8D5A3;
  --accent-dark: #8B7332;
  --accent-glow: rgba(201, 168, 76, 0.25);
  --accent-glow-soft: rgba(201, 168, 76, 0.08);

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #999999;
  --text-muted: #555555;

  /* Brand Colors */
  --yt-red: #FF0000;
  --yt-red-hover: #CC0000;
  --spotify-green: #1DB954;
  --spotify-green-hover: #1ED760;
  --ig-pink: #E1306C;
  --apple-red: #FA243C;
  --deezer-purple: #A238FF;

  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

/* ---- Background Effects ---- */
.bg-glow {
  position: fixed;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  animation: glowPulse 8s ease-in-out infinite alternate;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---- Page Layout ---- */
.page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---- Header / Logo ---- */
.header {
  display: flex;
  justify-content: center;
  padding: var(--space-xl) 0 var(--space-lg);
}

/* PNG com fundo transparente — o drop-shadow acompanha o contorno real
   da tipografia e do cavalo, e não mais um retângulo preto.

   O glow é montado em 3 camadas porque um único drop-shadow se dissolve:
   um blur grande espalha a mesma opacidade por uma área muito maior, e o
   resultado some contra o .bg-glow dourado que já existe atrás. As camadas
   curtas (10px/28px) dão o brilho colado na letra, e a longa (65px) faz o
   halo aberto. */
.header__logo {
  width: 240px;
  height: auto;
  filter:
    drop-shadow(0 0 10px rgba(201, 168, 76, 0.60))
    drop-shadow(0 0 28px rgba(201, 168, 76, 0.40))
    drop-shadow(0 0 65px rgba(201, 168, 76, 0.20));
  transition: filter var(--transition-slow);
}

.header__logo:hover {
  filter:
    drop-shadow(0 0 12px rgba(232, 213, 163, 0.75))
    drop-shadow(0 0 36px rgba(201, 168, 76, 0.55))
    drop-shadow(0 0 85px rgba(201, 168, 76, 0.30));
}

/* ---- Hero Section ---- */
.hero {
  text-align: center;
  padding-bottom: var(--space-xs);
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow-soft);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text-primary);
  text-shadow: 0 0 60px var(--accent-glow-soft);
  margin-bottom: var(--space-sm);
}

.hero__cta {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* Quebra só no mobile: no desktop a frase cabe inteira em uma linha, então
   forçar a quebra lá deixaria o texto curto demais para a largura do bloco. */
.br-mobile {
  display: inline;
}

/* ---- Divider ---- */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: var(--space-md) auto;
  opacity: 0.6;
}

/* ---- Video Section ---- */
.video-section {
  padding-bottom: var(--space-md);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 80px var(--accent-glow-soft);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Aviso de autoplay mudo — navegadores só permitem autoplay sem som.
   Cor em --text-secondary (#999) e não --text-muted (#555): sobre o fundo
   #050505 o muted dava ~2.4:1 de contraste, abaixo do mínimo legível.

   O tamanho é fluido (2.85vw) para caber em UMA linha no mobile. Medido:
   a frase inteira ocupa ~326px em telas de 390px, que têm 342px úteis.
   Em telas menores que ~350px a fonte trava no piso de 0.65rem e a frase
   quebra — por isso a segunda oração vive dentro de .video-hint__second. */
.video-hint {
  text-align: center;
  font-size: clamp(0.65rem, 2.85vw, 0.88rem);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-top: var(--space-sm);
}

/* inline-block faz a oração migrar inteira para a segunda linha em vez de
   quebrar no meio ("Toque no player para" / "ouvir."). */
.video-hint__second {
  display: inline-block;
}

/* ---- Subscribe Button ---- */
.subscribe-section {
  display: flex;
  justify-content: center;
  padding-bottom: var(--space-xs);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--youtube {
  background: var(--yt-red);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.25);
  width: 100%;
  max-width: 360px;
}

.btn--youtube:hover {
  background: var(--yt-red-hover);
  box-shadow: 0 6px 30px rgba(255, 0, 0, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.btn--youtube:active {
  transform: translateY(0) scale(0.98);
}

.btn__icon {
  flex-shrink: 0;
}

/* ---- Section Title ---- */
.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-md);
}

.section-title__icon {
  color: var(--spotify-green);
  flex-shrink: 0;
}

/* ---- Streaming Section ---- */
.streaming-section {
  padding-bottom: var(--space-xs);
}

/* Player da faixa no Spotify (embed oficial) */
.spotify-embed {
  margin-bottom: var(--space-lg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.spotify-embed iframe {
  display: block;
  border: 0;
}

/* Grade de plataformas: 1 coluna no mobile, 3 a partir do tablet */
.streaming-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.stream-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition-base);
}

.stream-btn__icon {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.stream-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.stream-btn:active {
  transform: translateY(0);
}

/* Cores de marca no hover */
.stream-btn--spotify:hover {
  border-color: var(--spotify-green);
  box-shadow: 0 0 24px rgba(29, 185, 84, 0.18);
}

.stream-btn--spotify:hover .stream-btn__icon {
  color: var(--spotify-green);
}

.stream-btn--apple:hover {
  border-color: var(--apple-red);
  box-shadow: 0 0 24px rgba(250, 36, 60, 0.18);
}

.stream-btn--apple:hover .stream-btn__icon {
  color: var(--apple-red);
}

.stream-btn--deezer:hover {
  border-color: var(--deezer-purple);
  box-shadow: 0 0 24px rgba(162, 56, 255, 0.18);
}

.stream-btn--deezer:hover .stream-btn__icon {
  color: var(--deezer-purple);
}

/* Botão "Seguir no Spotify" */
.follow-wrapper {
  display: flex;
  justify-content: center;
}

.btn--spotify {
  background: var(--spotify-green);
  color: #000000;
  box-shadow: 0 4px 20px rgba(29, 185, 84, 0.25);
  width: 100%;
  max-width: 360px;
}

.btn--spotify:hover {
  background: var(--spotify-green-hover);
  box-shadow: 0 6px 30px rgba(29, 185, 84, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.btn--spotify:active {
  transform: translateY(0) scale(0.98);
}

/* ---- Social Section ---- */
.social-section {
  text-align: center;
  padding-bottom: var(--space-xl);
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-base);
}

.social-link__icon {
  flex-shrink: 0;
  transition: color var(--transition-base);
}

.social-link--instagram:hover {
  border-color: var(--ig-pink);
  box-shadow: 0 0 25px rgba(225, 48, 108, 0.2), 0 0 50px rgba(225, 48, 108, 0.08);
  background: rgba(225, 48, 108, 0.06);
}

.social-link--instagram:hover .social-link__icon {
  color: var(--ig-pink);
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.footer__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---- Animations ---- */

/* Background glow pulse */
@keyframes glowPulse {
  0% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
  }
}

/* Play button pulse */
@keyframes playPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

/* ---- Load Animations ---- */
.anim-load {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.anim-load.anim-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive: Tablet ---- */
@media (min-width: 600px) {
  .header {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .header__logo {
    width: 300px;
  }

  .hero__badge {
    font-size: 0.85rem;
    padding: 8px 24px;
  }

  /* A frase do CTA cabe em uma linha só a partir daqui */
  .br-mobile {
    display: none;
  }

  .video-hint {
    font-size: 0.88rem;
  }

  .streaming-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .stream-btn {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 22px 12px;
    text-align: center;
  }

  .btn--youtube,
  .btn--spotify {
    width: auto;
    padding: 18px 48px;
    font-size: 1.1rem;
  }
}

/* ---- Responsive: Desktop ---- */
@media (min-width: 900px) {
  .bg-glow {
    width: 700px;
    height: 700px;
    top: -300px;
  }

  .page {
    max-width: 860px;
    padding: 0 var(--space-lg);
  }

  .header {
    padding: var(--space-2xl) 0;
  }

  .header__logo {
    width: 340px;
  }

  .hero {
    padding-bottom: var(--space-sm);
  }

  .divider {
    margin: var(--space-lg) auto;
  }

  .video-wrapper {
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.5), 0 0 100px var(--accent-glow-soft);
  }

  .social-link {
    padding: 16px 32px;
    font-size: 1rem;
  }
}
