/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px);
  background:
    var(--ink); /* foto e degradês ficam no ::before, que se move (movimento.css) */
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, transparent, var(--ink) 40%, transparent);
  mask-image: linear-gradient(180deg, transparent, var(--ink) 40%, transparent);
}
.hero__grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px); align-items: end;
}
/* Título em caixa alta: as palavras sobem uma a uma saindo do desfoque; o fecho vem em dourado,
   com um brilho de folha de ouro passando e uma linha que se desenha embaixo.
   Só anima depois da abertura (.ready); sem JavaScript, aparece pronto. */
.titulo-hero {
  text-wrap: balance; font-family: var(--f-title); font-weight: 700;
  font-size: clamp(1.7rem, 7vw, 3rem); line-height: 1.08; letter-spacing: .015em;
  text-transform: uppercase; color: var(--white);
}
/* o fecho dourado nunca quebra: assim o sublinhado tem a largura exata do texto */
@media (min-width: 1025px) { .titulo-hero { font-size: clamp(2.4rem, 4.2vw, 3rem); } }
.titulo-hero span { display: inline-block; }
.titulo-hero .ouro { white-space: nowrap; }
.js .titulo-hero span { opacity: 0; transform: translateY(.45em); filter: blur(8px); }
.ready .titulo-hero span { animation: sobeTitulo .8s calc(.15s + var(--n) * .09s) var(--ease) forwards; }
.titulo-hero .ouro {
  position: relative; color: transparent; -webkit-background-clip: text; background-clip: text; background-size: 250% 100%;
  background-image: linear-gradient(100deg, var(--gold) 0%, var(--gold) 38%, color-mix(in srgb, var(--gold) 30%, var(--white)) 50%, var(--gold) 62%, var(--gold) 100%);
}
.ready .titulo-hero .ouro { animation: sobeTitulo .8s calc(.15s + var(--n) * .09s) var(--ease) forwards, folha 4.5s 1.6s ease-in-out infinite; }
.titulo-hero .ouro::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.04em; height: .06em; background: var(--gold);
  transform-origin: left;
}
.js .titulo-hero .ouro::after { transform: scaleX(0); }
.ready .titulo-hero .ouro::after { animation: sublinha .7s calc(.6s + var(--n) * .09s) ease-out forwards; }
@keyframes sobeTitulo { to { opacity: 1; transform: none; filter: none; } }
@keyframes folha { 0% { background-position: 100% 0; } 50%, 100% { background-position: 0 0; } }
@keyframes sublinha { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .js .titulo-hero span, .js .titulo-hero .ouro::after { opacity: 1; transform: none; filter: none; }
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__cta .btn { padding-inline: 22px; letter-spacing: .14em; }
.micro {
  margin-top: 20px; font-family: var(--f-thin); font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.micro b { color: var(--gold); font-weight: 400; }

/* ---------- Painel: a avaliação gratuita, passo a passo ---------- */

.panel {
  position: relative; overflow: hidden; background: var(--veil);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-d); box-shadow: 0 40px 90px var(--shadow); font-family: var(--f-mono);
}
.panel::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, var(--glow-soft) 85%, var(--glow));
}
.panel.is-scanning::after { opacity: 1; animation: scan 1.5s linear infinite; }
@keyframes scan { from { transform: translateY(-90px); } to { transform: translateY(520px); } }

.panel__bar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line-d); }
.panel__dots { display: flex; gap: 6px; }
.panel__dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--gold); }
.panel__url { font-size: .72rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel__body { padding: 20px 20px 18px; }
.panel__status { display: flex; align-items: center; gap: 10px; font-size: .72rem; color: var(--mute); margin-bottom: 14px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1s infinite; }
.panel.is-done .pulse { animation: none; }
.panel.is-done .panel__status { color: var(--gold); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.7); } }

.step { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line-w); font-size: .78rem; color: var(--mute); transition: opacity .4s, color .4s; }
.step__box { position: relative; width: 22px; height: 22px; border: 1px solid var(--dim); flex: none; transition: border-color .3s, background .3s; }
.step__box::after {
  content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ease) .1s;
}
.step__txt { flex: 1; }
.step__tag { font-size: .64rem; color: var(--dim); white-space: nowrap; }
.step.on { color: var(--white); }
.step.on .step__box { border-color: var(--gold); background: var(--gold); }
.step.on .step__box::after { transform: rotate(45deg) scale(1); }
.step.on .step__tag { color: var(--gold); }
.js .step:not(.on) { opacity: .35; }

.panel__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-d); }
.panel__total span { font-size: .7rem; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.panel__total b { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; color: var(--gold); font-weight: 800; }
.panel__note { padding: 12px 20px; border-top: 1px solid var(--line-d); font-size: .66rem; color: var(--dim); }

/* ---------- Faixa ---------- */

.ticker { background: var(--gold); color: var(--ink); overflow: hidden; padding: 14px 0 10px; }
.ticker__track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ticker span {
  font-family: var(--f-display); font-weight: 700; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 0 28px; white-space: nowrap; position: relative;
}
.ticker span::after {
  content: ''; position: absolute; right: -4px; top: 50%; width: 7px; height: 7px;
  background: var(--ink); transform: translateY(-50%) rotate(45deg);
}
@keyframes slide { to { transform: translateX(-50%); } }
