/* Denny.ia — página de captura.
   Estrutura herdada da referência (Ultron): dobra única em duas colunas no
   desktop, empilhada no mobile, letreiro correndo e rodapé.
   Paleta trocada de dourado para o vermelho das imagens do Denny, que é a
   mesma identidade do painel admin. Tipografia mantida: Inter Tight. */

:root {
  --preto: #000;
  --carvao: #0c0c0e;
  --grafite: #17171b;
  --borda: #2a2a31;

  --vermelho: #e11414;
  --vermelho-claro: #ff3b3b;
  --vermelho-escuro: #a50d0d;

  --texto: #f2f2f4;
  --texto-suave: #a8a8b0;
  --texto-fraco: #6c6c76;

  --raio: 12px;
  --gutter: clamp(20px, 5vw, 56px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--preto);
  color: var(--texto);
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--vermelho); color: #fff; }

.hl { color: var(--vermelho-claro); }

/* ───────────────────────────── HERO ───────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
}

/* a arte entra como camada de fundo: no desktop ocupa a direita,
   no mobile vira o topo com o texto correndo por baixo */
.hero__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/assets/hero-desktop.webp");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

/* véu que garante contraste do texto sobre a imagem */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.94) 24%, rgba(0,0,0,.78) 38%, rgba(0,0,0,.42) 52%, rgba(0,0,0,.1) 66%, rgba(0,0,0,0) 78%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 28%);
}

.hero__inner {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(26px, 4vh, 48px) var(--gutter);
}

.hero__col { max-width: 560px; }

@media (min-width: 1500px) {
  .hero__col { max-width: 640px; }
}

.lockup {
  width: clamp(188px, 21vw, 248px);
  margin-bottom: 2px;
}

/* tarja da data — reproduz a que existia dentro da arte, agora editável */
.data {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
}

.data__quando {
  padding: 7px 14px;
  border-radius: 8px;
  background: #101014;
  box-shadow: inset 0 0 0 1px var(--borda);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--texto-suave);
  white-space: nowrap;
}
.data__quando b { color: var(--texto); font-weight: 700; }

.data__alerta {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border-radius: 8px;
  background: var(--vermelho);
  color: #fff;
}

.hero__kicker {
  margin: 0 0 16px;
  max-width: 44ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--texto-suave);
}
.hero__kicker strong { color: var(--texto); font-weight: 600; }

/* pílulas */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--vermelho);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--ghost {
  background: transparent;
  color: var(--vermelho-claro);
  box-shadow: inset 0 0 0 1.5px var(--vermelho);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(25px, 2.9vw, 35px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__sub {
  margin: 0 0 20px;
  max-width: 48ch;
  font-size: 15px;
  color: var(--texto-suave);
}

.hero__cta-label {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--texto);
}

/* ───────────────────────────── FORMULÁRIO ───────────────────────────── */

.form { max-width: 520px; }

.field {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 9px;
  border: 1.5px solid var(--borda);
  border-radius: var(--raio);
  background: var(--grafite);
  color: var(--texto);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field::placeholder { color: var(--texto-fraco); }

.field:focus {
  outline: none;
  border-color: var(--vermelho);
  box-shadow: 0 0 0 3px rgba(225, 20, 20, .18);
}

.field[aria-invalid="true"] { border-color: var(--vermelho-claro); }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form__row .field { margin-bottom: 10px; }

.btn {
  display: inline-block;
  width: 100%;
  padding: 15px 24px;
  border: 0;
  border-radius: var(--raio);
  background: linear-gradient(180deg, var(--vermelho-claro), var(--vermelho));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, filter .15s ease;
}

.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }

.form__msg {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13.5px;
}
.form__msg.ok { color: #35c759; }
.form__msg.erro { color: var(--vermelho-claro); }

.form__legal {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--texto-fraco);
}

/* ───────────────────────────── LETREIRO ───────────────────────────── */

.marquee {
  overflow: hidden;
  padding: 14px 0;
  background: var(--vermelho);
  border-block: 1px solid var(--vermelho-escuro);
  user-select: none;
}

/* A trilha é montada pelo JS: o grupo base é clonado até passar da largura
   da tela e depois o conjunto inteiro é duplicado. Com duas metades idênticas,
   deslocar exatamente -50% recomeça no mesmo ponto — sem emenda e sem fim. */
.marquee__track {
  display: flex;
  width: max-content;
  animation: correr var(--marquee-dur, 30s) linear infinite;
}

.marquee__grupo {
  display: flex;
  flex: none;
  align-items: center;
}

.marquee__grupo em {
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}

.marquee__grupo em::after {
  content: "•";
  padding: 0 22px;
  opacity: .55;
}

@keyframes correr {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───────────────────────────── RODAPÉ ───────────────────────────── */

.foot {
  max-width: 820px;
  margin-inline: auto;
  padding: 56px var(--gutter) 64px;
  text-align: center;
  color: var(--texto-fraco);
  font-size: 12.5px;
  line-height: 1.65;
}

.foot p { margin: 0 0 14px; }

.foot__brand {
  margin-bottom: 20px !important;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--texto);
}

.foot__lead { color: var(--texto-suave); font-size: 13.5px; }
.foot__lead strong { color: var(--texto); }

.foot a { color: var(--vermelho-claro); }

.foot__small {
  margin-top: 26px !important;
  padding-top: 20px;
  border-top: 1px solid var(--borda);
  font-size: 11.5px;
  color: #55555e;
}

/* ───────────────────────────── MOBILE ───────────────────────────── */

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: clamp(240px, 52vw, 380px); /* espaço para a arte no topo */
  }

  .hero__art {
    background-image: url("/assets/hero-mobile.webp");
    background-position: top center;
    background-size: 100% auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.25) 34%, rgba(0,0,0,.92) 48%, #000 60%);
  }

  .hero__inner { padding-top: 0; }
  .hero__col { max-width: none; text-align: center; }

  .lockup { margin-inline: auto; }
  .hero__kicker { margin-inline: auto; }
  .pills { justify-content: center; }
  .hero__sub { margin-inline: auto; }
  .form { margin-inline: auto; }
  .form__msg, .form__legal { text-align: center; }
}

@media (max-width: 430px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ─────────────── telas baixas (laptop 768/800px de altura) ───────────────
   O botão precisa caber na primeira dobra: numa página de captura, CTA
   abaixo da linha d'água custa conversão. Comprime o ritmo vertical sem
   mexer no desktop alto. */

@media (min-width: 861px) and (max-height: 850px) {
  .hero__inner { padding-block: 20px; }
  .lockup { width: clamp(158px, 17vw, 202px); }

  .hero__kicker { margin-bottom: 12px; font-size: 13px; }
  .pills { margin-bottom: 12px; }
  .pill { padding: 7px 15px; font-size: 11px; }

  h1 { font-size: clamp(23px, 2.4vw, 30px); margin-bottom: 10px; }
  .hero__sub { margin-bottom: 14px; font-size: 14px; }
  .hero__cta-label { margin-bottom: 8px; font-size: 14px; }

  .field { padding: 10px 14px; margin-bottom: 8px; font-size: 14.5px; }
  .form__row { gap: 8px; }
  .form__row .field { margin-bottom: 8px; }
  .btn { padding: 13px 24px; font-size: 15.5px; }

  .form__msg { min-height: 16px; margin-top: 8px; }
  .form__legal { margin-top: 8px; }
}

/* ───────────────────── acessibilidade / preferências ───────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  * { transition-duration: .01ms !important; }
}
