/* ============================================================
   GRUPO FAJ — GANHADORES DOS BRINDES
   Identidade visual baseada no banner: azul-royal elétrico,
   degradê para roxo, lâmpadas estilo marquise, texto branco.
   ============================================================ */

/* ---------- FONTES LOCAIS (@font-face) ---------- */
@font-face {
  font-family: 'GC Grind';
  src: url('./fonts/GC%20GRIND.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JUST Sans';
  src: url('./fonts/JUSTSans-ExLt.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('./fonts/JUSTSans-Lt.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('./fonts/JUSTSans-Rg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('./fonts/JUSTSans-Md.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('./fonts/JUSTSans-SmBd.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('./fonts/JUSTSans-Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('./fonts/JUSTSans-ExBd.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- TOKENS / IDENTIDADE ---------- */
:root {
  /* Azuis e roxos extraídos do banner */
  --navy-900: #06063a;
  --navy-800: #0c0c5a;
  --blue-700: #1717b8;
  --blue-600: #2424ee;   /* azul-royal elétrico (base do banner) */
  --blue-500: #3b3bff;
  --violet-600: #5a23d6;
  --violet-500: #7c3aed;
  --violet-glow: #8f8fff;

  --white: #ffffff;
  --ink: #0a0a3d;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-soft: rgba(255, 255, 255, 0.55);

  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);
  --card-bg-light: #ffffff;

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;

  --shadow-soft: 0 18px 48px rgba(4, 4, 40, 0.45);
  --shadow-glow: 0 0 0 1px rgba(143, 143, 255, 0.25), 0 18px 60px rgba(36, 36, 238, 0.35);

  --container: 1180px;
  --font-title: 'GC Grind', 'JUST Sans', system-ui, sans-serif;
  --font-body: 'JUST Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  background:
    radial-gradient(1200px 700px at 80% -10%, var(--violet-500) 0%, transparent 55%),
    radial-gradient(1100px 800px at 0% 20%, var(--blue-500) 0%, transparent 50%),
    linear-gradient(160deg, var(--blue-600) 0%, var(--blue-700) 38%, var(--violet-600) 78%, var(--navy-800) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 40px);
}

/* ---------- DECORAÇÃO DE FUNDO (luz.png) ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-luz {
  position: absolute;
  opacity: 0.35;
  filter: blur(2px) saturate(1.3);
  mix-blend-mode: screen;
  animation: float 14s ease-in-out infinite;
}
.bg-luz--1 { width: 460px; top: -80px; right: -120px; animation-delay: 0s; }
.bg-luz--2 { width: 360px; bottom: 12%; left: -120px; opacity: 0.25; animation-delay: -5s; }
.bg-luz--3 { width: 300px; top: 45%; right: 6%; opacity: 0.18; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-26px) rotate(6deg); }
}

main, .topbar, .footer { position: relative; z-index: 1; }

/* ---------- LÂMPADAS MARQUISE (borda do banner) ---------- */
/* Faixa horizontal de lâmpadas reutilizável */
.marquee-lights {
  height: 12px;
  background-image: radial-gradient(circle, #cfd4ff 0 3px, rgba(207, 212, 255, 0.15) 4px, transparent 5px);
  background-size: 26px 12px;
  background-position: center;
  background-repeat: repeat-x;
  filter: drop-shadow(0 0 6px rgba(180, 190, 255, 0.85));
  animation: bulbs 1.4s steps(2) infinite;
}
@keyframes bulbs {
  0%   { opacity: 1; }
  50%  { opacity: 0.55; }
  100% { opacity: 1; }
}

/* ============================================================
   1. SELO NO TOPO
   ============================================================ */
.topbar {
  padding: clamp(26px, 5vw, 48px) 0 8px;
  text-align: center;
}
.topbar__inner { display: flex; justify-content: center; }
.selo {
  width: min(560px, 82vw);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(4, 4, 40, 0.55));
  animation: seloIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes seloIn {
  from { opacity: 0; transform: translateY(-18px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(20px, 4vw, 36px) 0 clamp(60px, 9vw, 110px);
}
.hero__lights {
  position: absolute;
  inset: 10px clamp(14px, 5vw, 60px) auto;
  top: 0;
  height: 12px;
  background-image: radial-gradient(circle, #d6daff 0 3px, transparent 4px);
  background-size: 28px 12px;
  background-repeat: repeat-x;
  background-position: center;
  filter: drop-shadow(0 0 7px rgba(190, 200, 255, 0.9));
  animation: bulbs 1.6s steps(2) infinite;
  opacity: 0.8;
}
.hero__content { position: relative; }

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(0.72rem, 2.4vw, 0.86rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 18px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  margin-bottom: clamp(18px, 4vw, 26px);
}

.hero__title {
  font-family: var(--font-title);
  font-weight: 800;
  margin: 0 0 18px;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero__title-line {
  display: block;
  font-size: clamp(2.6rem, 11vw, 6.6rem);
  text-shadow: 0 6px 26px rgba(4, 4, 40, 0.55);
}
.hero__title-line--accent {
  background: linear-gradient(180deg, #ffffff 0%, #c9d0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 3.4vw, 1.45rem);
  font-weight: 600;
  color: var(--white);
  max-width: 720px;
  margin: 0 auto 16px;
}
.hero__support {
  font-size: clamp(0.95rem, 2.6vw, 1.08rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto clamp(26px, 5vw, 38px);
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: 0 12px 30px rgba(4, 4, 40, 0.35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(4, 4, 40, 0.5); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.16); }

/* ============================================================
   3. AGRADECIMENTO
   ============================================================ */
.thanks { padding: clamp(20px, 4vw, 40px) 0; }
.thanks__card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 56px);
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}
.thanks__badge {
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--white);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.thanks__text {
  font-size: clamp(1.02rem, 2.8vw, 1.3rem);
  font-weight: 400;
  color: var(--white);
  max-width: 760px;
  margin: 0 auto clamp(24px, 5vw, 40px);
  line-height: 1.65;
}
.thanks__text strong { font-weight: 700; }

.thanks__pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.thanks__pillar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.thanks__pillar:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.1); }
.thanks__icon { font-size: 2rem; line-height: 1; }
.thanks__pillar-title { font-weight: 700; font-size: 1.02rem; }
.thanks__pillar-desc { font-size: 0.88rem; color: var(--muted-soft); }

/* ============================================================
   SECTION HEAD (reutilizável)
   ============================================================ */
.section-head { text-align: center; margin-bottom: clamp(30px, 6vw, 52px); }
.section-head__eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-glow);
  margin-bottom: 12px;
}
.section-head__title {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1;
  margin: 0 0 14px;
  text-shadow: 0 6px 24px rgba(4, 4, 40, 0.5);
}
.section-head__desc {
  font-size: clamp(0.98rem, 2.6vw, 1.15rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================================
   4. LISTA DOS GANHADORES
   ============================================================ */
.winners { padding: clamp(46px, 8vw, 90px) 0; }

.winners__count {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 999px;
}

.winners__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.winner-card {
  position: relative;
  background: var(--card-bg-light);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px 22px 24px 70px;
  box-shadow: 0 12px 30px rgba(4, 4, 40, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.winner-card::before {
  /* faixa lateral azul-royal da identidade */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--blue-600), var(--violet-500));
}
.winner-card::after {
  /* ícone do brinde, definido por data-brinde via JS/CSS */
  content: attr(data-icon);
  position: absolute;
  left: 18px;
  top: 22px;
  font-size: 1.7rem;
  line-height: 1;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.15));
}
.winner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.winner-card__name {
  display: block;
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}
.winner-card__prize {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  color: #3a3a66;
  line-height: 1.45;
}

/* ============================================================
   5. VÍDEO DO SORTEIO
   ============================================================ */
.video { padding: clamp(20px, 5vw, 50px) 0 clamp(46px, 8vw, 90px); }

.video__frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(6, 6, 58, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-glow);
}
.video__embed,
.video__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(600px 300px at 50% 30%, rgba(124, 58, 237, 0.45), transparent 70%),
    linear-gradient(160deg, var(--blue-700), var(--navy-800));
}
.video__play {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: var(--blue-700);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(4, 4, 40, 0.5);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 36px rgba(4, 4, 40, 0.5); }
  50%      { transform: scale(1.06); box-shadow: 0 16px 48px rgba(124, 58, 237, 0.6); }
}
.video__placeholder-title {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
}
.video__placeholder-desc {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 460px;
}

/* ============================================================
   6. CHAMADA FINAL
   ============================================================ */
.cta-final { padding: clamp(30px, 6vw, 70px) 0; }
.cta-final__inner {
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 7vw, 72px) clamp(24px, 5vw, 60px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}
.cta-final__title {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(1.9rem, 6.5vw, 3.4rem);
  line-height: 1.02;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #ffffff, #c9d0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-final__text {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto;
}

/* ============================================================
   7. RODAPÉ
   ============================================================ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(28px, 5vw, 44px) 0;
  margin-top: clamp(20px, 5vw, 50px);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer__logo {
  width: auto;
  height: clamp(56px, 12vw, 84px);
  opacity: 0.95;
  filter: drop-shadow(0 6px 18px rgba(4, 4, 40, 0.5));
}
.footer__copy { color: var(--muted); font-size: 0.92rem; margin: 0; }
.footer__note {
  color: var(--muted-soft);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   ANIMAÇÕES DE ENTRADA (reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 620px) {
  .winners__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .winner-card { padding-left: 64px; }
}
