/* =====================================================================
   Festival Quebramar — "Em breve"
   Fonte-título: Bebas Neue (impacto, cartaz de festival)
   Fonte-corpo: Space Grotesk
   ===================================================================== */

:root {
  --color-night: #060c1c;
  --color-navy: #0b1d3a;
  --color-teal: #06b6d4;
  --color-teal-light: #67e8f9;
  --color-magenta: #ec4899;
  --color-purple: #7c3aed;
  --color-orange: #fb923c;
  --color-gold: #fbbf24;
  --color-text: #f4f7fb;
  --color-text-dim: rgba(244, 247, 251, 0.72);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--color-night);
  color: var(--color-text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ===================== FUNDO ANIMADO ===================== */

.bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.bg__gradient {
  position: absolute;
  inset: -10%;
  background: linear-gradient(
    120deg,
    var(--color-navy) 0%,
    var(--color-night) 22%,
    #0e2a4d 45%,
    var(--color-night) 68%,
    var(--color-navy) 100%
  );
  background-size: 300% 300%;
  animation: gradientDrift 22s ease-in-out infinite;
}

@keyframes gradientDrift {
  0% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}

.bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.bg__glow--1 {
  width: 55vmax;
  height: 55vmax;
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, var(--color-teal) 0%, transparent 70%);
  animation: floatGlow1 18s ease-in-out infinite;
}

.bg__glow--2 {
  width: 60vmax;
  height: 60vmax;
  bottom: -25%;
  right: -15%;
  background: radial-gradient(circle, var(--color-magenta) 0%, transparent 70%);
  animation: floatGlow2 24s ease-in-out infinite;
}

.bg__glow--3 {
  width: 40vmax;
  height: 40vmax;
  top: 30%;
  left: 55%;
  background: radial-gradient(circle, var(--color-purple) 0%, transparent 72%);
  animation: floatGlow3 20s ease-in-out infinite;
}

@keyframes floatGlow1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, 10%) scale(1.15); }
}

@keyframes floatGlow2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10%, -6%) scale(1.1); }
}

@keyframes floatGlow3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14%, 8%) scale(0.9); }
}

.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ===================== PARTÍCULAS ===================== */

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -5%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  opacity: 0;
  animation-name: floatUp;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: var(--particle-opacity, 0.5);
  }
  90% {
    opacity: var(--particle-opacity, 0.5);
  }
  100% {
    transform: translateY(-110vh) translateX(var(--particle-drift, 40px));
    opacity: 0;
  }
}

/* ===================== HERO ===================== */

.hero {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 6vw, 64px);
  position: relative;
  z-index: 1;
}

.hero > * {
  max-width: 100%;
  min-width: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.9s var(--ease-out) forwards;
}

.hero__badge[data-reveal] { animation-delay: 0.1s; }
.hero__title[data-reveal] { animation-delay: 0.25s; }
.hero__subtitle[data-reveal] { animation-delay: 0.55s; }
.hero__notify[data-reveal] { animation-delay: 0.8s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: clamp(20px, 4vw, 32px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.hero__title {
  margin: 0 0 clamp(18px, 4vw, 28px);
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.hero__title-line {
  display: block;
  font-size: clamp(3rem, 13vw, 8.5rem);
  color: var(--color-text);
  text-shadow: 0 0 40px rgba(103, 232, 249, 0.25);
}

.hero__title-line--accent {
  background: linear-gradient(
    90deg,
    var(--color-teal-light),
    var(--color-teal) 25%,
    var(--color-magenta) 55%,
    var(--color-gold) 80%,
    var(--color-teal-light)
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  to { background-position: -250% center; }
}

.hero__subtitle {
  max-width: min(42ch, 100%);
  margin: 0 0 clamp(28px, 5vw, 44px);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-dim);
  font-weight: 400;
  overflow-wrap: break-word;
}

.hero__break {
  display: inline;
}

.hero__notify-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--color-text);
  text-decoration: none;
  text-align: center;
  white-space: normal;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease-out), background-color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
  cursor: default;
}

.hero__notify-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ===================== ONDAS ===================== */

.waves {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(90px, 16vw, 180px);
  line-height: 0;
}

.waves__svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.waves__svg--back path {
  fill: rgba(6, 182, 212, 0.28);
}

.waves__svg--front path {
  fill: rgba(11, 29, 58, 0.9);
}

.waves__svg--back {
  animation: waveMove 14s ease-in-out infinite;
}

.waves__svg--front {
  animation: waveMove 10s ease-in-out infinite reverse;
}

@keyframes waveMove {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-3%) scaleY(1.06); }
}

/* ===================== FOOTER ===================== */

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px 20px;
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  background: rgba(11, 29, 58, 0.9);
  margin-top: -1px;
}

/* ===================== RESPONSIVO / ACESSIBILIDADE ===================== */

@media (max-width: 420px) {
  .hero__break {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
