/* =============================================================
   Black BIM Coder 2026 — lista de espera (seção única)
   Formato da captura da Black 2025: copy + formulário à esquerda,
   foto à direita. Paleta: preto profundo + dourado do logo.
   ============================================================= */

:root {
  --bg: #07070a;
  --surface: #111116;
  --surface-2: #17171e;
  --line: #26262f;
  --text: #f4f4f5;
  --muted: #a1a1ab;
  --gold-1: #f0b429;
  --gold-2: #c27c0e;
  --gold: #e3a21a;
  --red: #ef4444;
  --green: #22c55e;
  --radius: 14px;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(194, 124, 14, .14), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(194, 124, 14, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-1); }

.container { width: min(1360px, 100% - 32px); margin-inline: auto; }

.gold {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Seção única ───────────────────────────────────────────── */
.hero { flex: 1; display: flex; align-items: center; padding: 48px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.brand-lockup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  width: 100%;
  margin-bottom: 28px;
}
.logo { width: 100%; mix-blend-mode: screen; }
.infinite-brand { display: block; width: 100%; height: auto; overflow: visible; }
.infinite-trail { pointer-events: none; }
.infinite-base { display: none; }
@media (prefers-reduced-motion: reduce) {
  .infinite-trail { display: none; }
  .infinite-base { display: inline; }
}
.infinite-label {
  fill: url(#infinite-text-gold);
  filter: url(#infinite-text-glow);
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 900;
  letter-spacing: 8px;
}
.infinite-metal-sweep {
  animation: infinite-metal-sweep 8s ease-in-out infinite;
}
@keyframes infinite-metal-sweep {
  0%, 12% { transform: translateX(0); opacity: 0; }
  20% { opacity: .7; }
  55% { transform: translateX(1030px); opacity: .7; }
  64%, 100% { transform: translateX(1030px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .infinite-metal-sweep { animation: none; transform: translateX(430px); opacity: .25; }
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  max-width: none;
}
.headline-ending { white-space: nowrap; }
h1 .gold { white-space: nowrap; }

.date { font-size: 19px; margin-bottom: 4px; }
.date strong { color: var(--gold-1); }
.sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }

/* ── Formulário ────────────────────────────────────────────── */
.lead-form { display: grid; gap: 14px; width: 100%; }
.lead-form label { display: grid; gap: 6px; }
.lead-form label span { font-size: 14px; font-weight: 700; }
.lead-form label b { color: var(--red); font-weight: 700; }
.lead-form small { font-size: 12px; color: #71717a; }
.lead-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.lead-form input::placeholder { color: #5f5f6a; }
.lead-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 162, 26, .2); }
.lead-form input[aria-invalid="true"] { border-color: var(--red); }

.btn {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 16px 20px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #0b0b0b;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(227, 162, 26, .25);
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* CTA do formulário: reflexo dourado que atravessa o botão + brilho pulsando
   no mesmo ritmo do infinito (1 por segundo). No hover acende forte. */
.lead-form .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: cta-glow 2s ease-in-out infinite;
}
.lead-form .btn::after {
  content: '';
  position: absolute;
  inset: -20% auto -20% 0;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 250, 225, .85) 50%, transparent);
  transform: translateX(-160%) skewX(-22deg);
  animation: cta-shine 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes cta-shine {
  0%, 55% { transform: translateX(-160%) skewX(-22deg); }
  85%, 100% { transform: translateX(380%) skewX(-22deg); }
}
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 10px 30px rgba(227, 162, 26, .25), 0 0 0 0 rgba(240, 180, 41, 0); }
  50% { box-shadow: 0 10px 36px rgba(227, 162, 26, .45), 0 0 22px 2px rgba(240, 180, 41, .35); }
}
.lead-form .btn:hover {
  filter: brightness(1.15) saturate(1.1);
  transform: translateY(-2px) scale(1.015);
  animation: cta-glow-hover 1s ease-in-out infinite;
}
.lead-form .btn:hover::after { animation-duration: 1.1s; }
@keyframes cta-glow-hover {
  0%, 100% { box-shadow: 0 12px 34px rgba(227, 162, 26, .5), 0 0 18px 2px rgba(255, 214, 102, .45); }
  50% { box-shadow: 0 14px 44px rgba(227, 162, 26, .7), 0 0 34px 6px rgba(255, 214, 102, .7); }
}
.lead-form .btn:disabled, .lead-form .btn:disabled::after { animation: none; }
.btn-whats { background: var(--green); color: #fff; box-shadow: none; }

.form-msg { font-size: 14px; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: #fca5a5; }
.consent { font-size: 12px; color: #71717a; line-height: 1.45; }

.success { display: grid; gap: 14px; text-align: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.success-step { font-family: var(--font-display); font-weight: 800; color: var(--gold-1); letter-spacing: .06em; font-size: 13px; text-transform: uppercase; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 80%; background: linear-gradient(90deg, var(--gold-2), var(--gold-1)); }
.success strong { font-family: var(--font-display); font-size: 22px; }
.success p { color: #d4d4d8; font-size: 15px; }

/* ── Fellipe mostrando os módulos ──────────────────────────── */
.hero-visual {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(760px, 100%);
  aspect-ratio: .94;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, .65) 82%, transparent 100%),
    linear-gradient(to right, transparent, #000 4%, #000 86%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, .65) 82%, transparent 100%),
    linear-gradient(to right, transparent, #000 4%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 35% 44% at 78% 48%, rgba(240, 180, 41, .22), transparent 85%),
    radial-gradient(ellipse 64% 44% at 35% 65%, rgba(194, 124, 14, .14), transparent 80%);
  filter: blur(18px);
  z-index: 0;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 2% 16% 14% 1%;
  border-radius: 45%;
  background: linear-gradient(135deg, rgba(240, 180, 41, .09), transparent 55%);
  filter: blur(24px);
  z-index: 0;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg), rgba(7, 7, 10, .12) 20%, transparent 38%),
    linear-gradient(to left, rgba(7, 7, 10, .45), transparent 12%),
    radial-gradient(ellipse at 58% 42%, transparent 52%, rgba(7, 7, 10, .24) 100%);
  pointer-events: none;
  z-index: 3;
}
.module-wall {
  position: absolute;
  inset: 4% auto auto 2%;
  width: 80%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  transform: perspective(1000px) rotateY(5deg) rotateZ(-3deg);
  transform-origin: top left;
  z-index: 1;
}
.module-wall img {
  width: 100%;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  border-radius: 7px;
  filter: brightness(.86) saturate(.82) contrast(1.05);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(240, 180, 41, .1);
}
.presenter {
  position: absolute;
  z-index: 2;
  width: 74%;
  max-width: none;
  right: 0;
  bottom: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 78%, transparent 100%);
  filter:
    brightness(.97) saturate(.9) sepia(.04)
    drop-shadow(-1px 0 1px rgba(240, 180, 41, .3))
    drop-shadow(-8px 8px 14px rgba(0, 0, 0, .38));
}

.tool {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 12px;
  background: rgba(17, 17, 22, .88);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  animation: float 6s ease-in-out infinite;
}
.tool img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
.t1 { top: 8%;  left: -14%; }
.t2 { top: 30%; right: -12%; animation-delay: -1.5s; }
.t3 { top: 55%; left: -10%; animation-delay: -3s; }
.t4 { top: 74%; right: -8%; animation-delay: -4.5s; }

.tag {
  position: absolute; z-index: 2;
  padding: 6px 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #0b0b0b;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tag-a { top: -12px; right: 14%; }
.tag-b { bottom: 18%; left: 38%; }

@keyframes float { 50% { transform: translateY(-8px); } }

.footer { padding: 24px 16px 32px; color: #71717a; font-size: 13px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .tool { animation: none; }
  .btn { transition: none; }
  .lead-form .btn, .lead-form .btn::after { animation: none; }
}

/* ── Responsivo ────────────────────────────────────────────── */
@media (min-width: 961px) {
  .hero { padding: 20px 0; }
  .brand-lockup {
    --brand-height: clamp(92px, 14.5svh, 142px);
    width: min(100%, calc(var(--brand-height) * 3.6667 + 24px));
    margin-bottom: 14px;
  }
  h1 {
    font-size: clamp(24px, min(2.2vw, 3.6svh), 32px);
    line-height: 1.12;
    margin-bottom: 12px;
  }
  .date { font-size: 17px; }
  .sub { font-size: 14px; margin-bottom: 14px; }
  .lead-form { gap: 10px; }
  .lead-form label {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
  }
  .lead-form label span { grid-column: 1; grid-row: 1; font-size: 13px; }
  .lead-form small { grid-column: 2; grid-row: 1; align-self: center; text-align: right; font-size: 11px; }
  .lead-form input { grid-column: 1 / -1; grid-row: 2; padding: 9px 12px; }
  .btn { padding: 12px 18px; margin-top: 2px; }
  .consent { font-size: 11px; }
  .hero-visual { width: min(760px, 100%, calc((100svh - 100px) * .94)); }
  /* centro ótico: a foto some num degradê à direita (~16% da largura), então o bloco
     parecia puxado pra esquerda. Desloca o conjunto metade dessa sobra.
     (left, não translate: transform cria stacking context e quebra o mix-blend do logo) */
  .hero-grid { position: relative; left: min(56px, 2.8vw, max(0px, (100vw - 1376px) / 2)); }
  .footer { padding: 10px 16px 14px; font-size: 11px; }
}
@media (max-width: 960px) {
  .hero { padding: 32px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .lead-form { width: 100%; text-align: left; }
  .hero-visual { width: min(720px, 100%); }
}

@media (max-width: 520px) {
  .hero-visual { width: calc(100% + 32px); max-width: none; }
  .brand-lockup { gap: 16px; margin-bottom: 20px; }
  .date { font-size: 17px; }
  .tool { font-size: 12px; padding: 6px 10px 6px 6px; }
  .tool img { width: 24px; height: 24px; }
  .t1, .t3 { left: -8%; }
  .t2, .t4 { right: -8%; }
}
