:root {
  --bg: #050505;
  --surface: #121412;
  --surface-2: #171a17;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f4f6f4;
  --muted: #b3b9b3;
  --faint: #7d847d;
  --green: #1DF300;
  --green-ink: #041a00;
  --green-soft: rgba(29, 243, 0, .12);
  --green-glow: rgba(29, 243, 0, .35);
  --danger: #ff5a5a;
  --radius: 22px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- fundo: grade + brilho verde ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 28%, rgba(29, 243, 0, .10), transparent 70%),
    radial-gradient(ellipse 40% 35% at 50% 55%, rgba(29, 243, 0, .05), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 40%, #000 55%, rgba(0,0,0,.55));
          mask-image: radial-gradient(ellipse 100% 90% at 50% 40%, #000 55%, rgba(0,0,0,.55));
}

/* ---------- views ---------- */
.view { display: none; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.view.is-active { display: flex; animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hl { color: var(--green); }

/* ---------- intro ---------- */
.hero {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(56px, 11vh, 120px) 20px 44px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0 0 30px;
}
.hero-title .hl { text-shadow: 0 0 40px rgba(29, 243, 0, .25); }
.hero-lead, .hero-text { max-width: 600px; margin: 0 0 14px; font-size: clamp(15.5px, 1.25vw, 17px); line-height: 1.7; }
.hero-lead { font-weight: 600; }
.hero-text { color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 24px 0 34px;
  padding: 9px 18px;
  border: 1px solid rgba(29, 243, 0, .35);
  background: rgba(29, 243, 0, .07);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
}
.pill svg { width: 18px; height: 18px; color: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; cursor: pointer;
  border-radius: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
}
.btn svg { width: 20px; height: 20px; stroke-width: 2.4; transition: transform .2s; }
.btn-cta {
  width: min(100%, 450px);
  padding: 20px 24px;
  font-size: clamp(14px, 1.15vw, 15.5px);
  background: var(--green);
  color: var(--green-ink);
  box-shadow: 0 0 0 1px rgba(29,243,0,.6), 0 14px 50px -8px var(--green-glow), 0 0 80px -20px var(--green-glow);
  animation: pulse 2.6s ease-in-out infinite;
}
.btn-cta:hover { transform: translateY(-2px); }
.btn-cta:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:focus-visible, .opt:focus-visible, .back:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(29,243,0,.6), 0 14px 50px -8px var(--green-glow), 0 0 80px -20px var(--green-glow); }
  50%      { box-shadow: 0 0 0 1px rgba(29,243,0,.8), 0 18px 60px -6px rgba(29,243,0,.5), 0 0 110px -10px var(--green-glow); }
}

/* marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(29, 243, 0, .22);
  background: rgba(29, 243, 0, .05);
  padding: 13px 0;
}
.marquee-track {
  display: flex; width: max-content;
  will-change: transform;
  animation: marquee 70s linear infinite;
  font-family: var(--font-head);
  font-size: 16px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}
.marquee-track > span { margin-right: 22px; }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

.foot { text-align: center; padding: 26px 20px 30px; color: var(--muted); font-size: 14.5px; }
.foot p { margin: 0 0 4px; }
.foot small { color: var(--faint); font-size: 13px; }

/* ---------- quiz ---------- */
.quiz-top {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  padding-top: 22px;
  display: grid; grid-template-columns: 1fr auto; row-gap: 14px; align-items: center;
}
.back {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer; padding: 4px 2px;
  font-weight: 700; letter-spacing: .06em; font-size: 15px;
}
.back svg { width: 18px; height: 18px; color: var(--green); stroke-width: 2.6; }
.back[hidden] { visibility: hidden; display: inline-flex; }
.pct { font-family: var(--font-head); font-weight: 600; color: var(--green); font-size: 20px; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: #1d221d; overflow: hidden; }
.bar-fill {
  height: 100%; width: 0; border-radius: inherit;
  background: var(--green);
  box-shadow: 0 0 14px var(--green-glow);
  transition: width .45s cubic-bezier(.2,.8,.2,1);
}

.card {
  width: min(100% - 32px, 680px);
  margin: clamp(28px, 7vh, 90px) auto 0;
  padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 120px -50px rgba(29,243,0,.25);
}
.card.slide-in { animation: slideIn .35s cubic-bezier(.2,.8,.2,1) both; }
.card.slide-back { animation: slideBack .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

.q-title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.22;
  margin: 0 0 8px;
  text-wrap: balance;
}
.q-sub { color: var(--muted); margin: 0 0 26px; font-size: 17px; }
.q-sub:empty { display: none; }
.q-title + .q-sub:empty + #qBody { margin-top: 26px; }

.field {
  width: 100%;
  padding: 20px 22px;
  background: #1a1d1a;
  border: 1.5px solid rgba(29, 243, 0, .55);
  border-radius: 18px;
  outline: none;
  font-size: 19px;
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: #727a72; }
.field:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(29,243,0,.14); }
.field.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255,90,90,.12); }

.btn-next {
  width: 100%; margin-top: 16px; padding: 22px;
  font-size: 18px;
  background: var(--green); color: var(--green-ink);
  box-shadow: 0 12px 40px -12px var(--green-glow);
}
.btn-next:disabled { background: #1f3a1b; color: #6e8a68; box-shadow: none; cursor: not-allowed; }
.btn-next:not(:disabled):hover { transform: translateY(-1px); }

.opts { display: grid; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 16px;
  width: 100%; text-align: left;
  padding: 19px 22px;
  background: #151815;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  cursor: pointer;
  font-size: 18px; font-weight: 600; line-height: 1.35;
  transition: border-color .15s, background .15s, transform .15s;
}
.opt .dot {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #2b332b; background: #0e110e;
  display: grid; place-items: center;
  transition: border-color .15s, background .15s;
}
.opt .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green-ink); transform: scale(0); transition: transform .15s; }
.opt .lbl { flex: 1; }
.opt .chev { width: 18px; height: 18px; color: var(--faint); flex: none; transition: transform .15s, color .15s; }
.opt:hover { border-color: rgba(29,243,0,.55); background: #171c16; }
.opt:hover .chev { color: var(--green); transform: translateX(3px); }
.opt.is-selected { border-color: var(--green); background: rgba(29,243,0,.08); }
.opt.is-selected .dot { border-color: var(--green); background: var(--green); }
.opt.is-selected .dot::after { transform: scale(1); }

.q-error { color: var(--danger); font-weight: 600; font-size: 15px; margin: 10px 2px 0; min-height: 0; }
.q-error:empty { display: none; }

.lock {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted); text-align: center;
}
.lock svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.foot-min { margin-top: auto; }

/* loading */
.sending { display: grid; place-items: center; gap: 18px; padding: 30px 0 10px; color: var(--muted); }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #1f3a1b; border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- obrigado ---------- */
.done-card { text-align: center; margin-top: clamp(60px, 14vh, 140px); }
.check {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: var(--green-ink);
  box-shadow: 0 0 60px -6px var(--green-glow);
  animation: pop .5s cubic-bezier(.2,1.4,.4,1) both;
}
.check svg { width: 38px; height: 38px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-card .q-sub { margin-bottom: 16px; }
.done-tip { margin: 0; color: var(--green); font-weight: 600; font-size: 15.5px; }

/* ---------- responsivo ---------- */
@media (max-width: 720px) {
  .br-desk { display: none; }
  body { font-size: 16px; }
  .hero { padding-top: 56px; }
  .hero-title { margin-bottom: 26px; text-wrap: balance; }
  .btn-cta { padding: 19px 16px; font-size: 13.5px; letter-spacing: .02em; gap: 8px; }
  .marquee-track { font-size: 14px; animation-duration: 50s; }
  /* formulário no celular: tamanhos próximos da referência */
  .quiz-top { padding-top: 16px; row-gap: 10px; }
  .back { font-size: 14px; }
  .back svg { width: 16px; height: 16px; }
  .pct { font-size: 17px; }
  .bar { height: 6px; }
  .card { border-radius: 20px; padding: 24px 20px 20px; margin-top: clamp(20px, 5vh, 60px); }
  .q-title { font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
  .q-sub { font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
  .q-title + .q-sub:empty + #qBody { margin-top: 18px; }
  .field { font-size: 16px; padding: 14px 16px; border-radius: 14px; }
  .btn-next { font-size: 15.5px; padding: 15px; margin-top: 12px; border-radius: 14px; }
  .btn-next svg { width: 18px; height: 18px; }
  .opts { gap: 9px; }
  .opt { padding: 13px 14px; font-size: 15px; gap: 12px; border-radius: 13px; }
  .opt .dot { width: 20px; height: 20px; }
  .opt .dot::after { width: 8px; height: 8px; }
  .opt .chev { width: 16px; height: 16px; }
  .q-error { font-size: 13.5px; }
  .lock { display: block; font-size: 12px; margin-top: 20px; padding-top: 16px; line-height: 1.5; }
  .lock svg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
  .foot-min { font-size: 12.5px; padding: 20px 16px 24px; }
  .done-card .check { width: 62px; height: 62px; }
  .done-tip { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.marquee-track), *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-track { animation-duration: 90s !important; }
}
.nw { white-space: nowrap; }
