:root {
  --purple: #621897;
  --purple-deep: #2a0848;
  --purple-dark: #4a148c;
  --purple-mid: #6a1b9a;
  --purple-light: #8e24aa;
  --orange: #ff8f00;
  --bg: #14061f;
  --text: #1a1a2e;
  --muted: #64748b;
  --white: #ffffff;
  --danger: #dc2626;
  --radius: 22px;
  --font: var(--font-family-primary, Manrope, system-ui, sans-serif);
  --form-sticky-top: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: #f7f4fb;
  font-family: var(--font);
}

html { overflow-x: hidden; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a, input, label { cursor: pointer; }
button { font-family: inherit; }

/* ── Atmosphere ── */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(142, 36, 170, .45), transparent 58%),
    radial-gradient(900px 600px at 92% 18%, rgba(255, 143, 0, .18), transparent 52%),
    linear-gradient(165deg, #1a0a2e 0%, #3b0d66 42%, #621897 78%, #2a0848 100%);
}
.scene__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .06), transparent 28%),
    radial-gradient(circle at 70% 70%, rgba(255, 143, 0, .08), transparent 32%);
  filter: blur(8px);
}
.scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.scene__glow--a {
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  left: -12%;
  top: -8%;
  background: rgba(98, 24, 151, .7);
  animation: driftA 18s ease-in-out infinite;
}
.scene__glow--b {
  width: min(46vw, 380px);
  height: min(46vw, 380px);
  right: -10%;
  bottom: 6%;
  background: rgba(255, 143, 0, .28);
  animation: driftB 22s ease-in-out infinite;
}
.scene__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
}
.scene__ring--a { width: 420px; height: 420px; left: 38%; top: -140px; }
.scene__ring--b { width: 260px; height: 260px; right: 8%; bottom: 12%; border-color: rgba(255, 143, 0, .16); }
.scene__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .18;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 75%);
}
.scene__grain {
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

@keyframes driftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, 18px) scale(1.06); }
}
@keyframes driftB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, -22px); }
}

.top, .hero, .foot { position: relative; z-index: 1; }

/* ── Header ── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 0 8px;
}
.top__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.2rem;
}
.top__brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}
.top__aside {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top__hint {
  color: rgba(247, 244, 251, .72);
  font-size: .9rem;
  font-weight: 500;
}
.top__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.top__cta:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 143, 0, .55);
  transform: translateY(-1px);
}
.top__cta:focus-visible,
.cta:focus-visible,
.field input:focus-visible,
.top__brand:focus-visible {
  outline: 3px solid rgba(255, 143, 0, .65);
  outline-offset: 3px;
}

/* ── Hero grid ── */
.hero {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  grid-template-areas:
    "copy panel"
    "benefits panel"
    "device panel";
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: 22px;
  padding: 12px 0 40px;
  align-items: start;
  overflow: visible;
}
@media (min-width: 901px) {
  .hero {
    min-height: calc(100dvh - 7.5rem);
    align-content: center;
  }
}
.hero__copy { grid-area: copy; padding-top: 12px; animation: rise .7s cubic-bezier(.22, 1, .36, 1); }
.hero__device { grid-area: device; }
.benefits { grid-area: benefits; }
.form-wrapper { grid-area: panel; }

.eyebrow {
  margin: 0 0 12px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 4.4vw + .6rem, 4.35rem);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.045em;
}
.accent { color: var(--orange); }

.lead {
  margin: 0;
  max-width: 34rem;
  color: rgba(247, 244, 251, .82);
  font-size: clamp(1rem, .25vw + .92rem, 1.12rem);
  line-height: 1.6;
  font-weight: 500;
}

/* ── Benefits ── */
.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.benefits li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .2s ease, background .2s ease;
}
.benefits li:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); }
.benefits__ico {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.benefits__ico--purple { background: rgba(142, 36, 170, .35); color: #f3e8ff; }
.benefits__ico--orange { background: rgba(255, 143, 0, .22); color: var(--orange); }
.benefits__ico--mix { background: linear-gradient(145deg, rgba(98, 24, 151, .5), rgba(255, 143, 0, .28)); color: #fff; }
.benefits strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.benefits span { color: rgba(247, 244, 251, .72); font-size: .84rem; line-height: 1.45; }

/* ── Phone ── */
.hero__device {
  position: relative;
  min-height: 280px;
  display: flex;
  justify-content: flex-start;
  padding: 8px 0 12px;
}
.phone {
  width: min(220px, 46vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(160deg, #2a0848, #120418);
  box-shadow:
    0 30px 50px rgba(10, 0, 20, .45),
    0 0 0 1px rgba(255, 255, 255, .12);
  position: relative;
  transform: rotate(-6deg);
  animation: fadePhone .9s .12s both cubic-bezier(.22, 1, .36, 1);
}
@keyframes fadePhone {
  from { opacity: 0; }
  to { opacity: 1; }
}
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 38%;
  height: 10px;
  transform: translateX(-50%);
  background: #0b0612;
  border-radius: 999px;
  z-index: 2;
}
.phone__screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
}
.float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: .75rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(20, 6, 31, .28);
}
.float svg { color: var(--purple); }
.float--a { left: 170px; top: 36px; animation: bob 5.5s ease-in-out infinite; }
.float--b { left: 186px; bottom: 54px; color: var(--text); animation: bob 6.5s .4s ease-in-out infinite; }
.float--b svg { color: var(--orange); }
.float--c {
  left: 12px;
  bottom: 28px;
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  background: var(--orange);
  color: #fff;
}
.float--c svg { color: #fff; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ── Form card ──
   Sticky no wrapper (sem transform/animation) para o card acompanhar
   a rolagem do desktop sem sair da seção .hero. */
.form-wrapper {
  align-self: start;
  position: sticky;
  top: var(--form-sticky-top);
  width: 100%;
  z-index: 2;
}
.panel {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow:
    0 24px 60px rgba(12, 4, 24, .35),
    0 0 0 1px rgba(255, 255, 255, .4);
  animation: rise .75s .08s backwards cubic-bezier(.22, 1, .36, 1);
}
.panel__badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--purple) 0%, var(--purple-light) 70%, var(--orange) 160%);
  margin-bottom: 14px;
  box-shadow: 0 10px 22px rgba(98, 24, 151, .28);
}
.panel h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  letter-spacing: -.03em;
  font-weight: 800;
}
.panel__sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span:first-child {
  font-size: .78rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .01em;
}
.field__box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(98, 24, 151, .16);
  border-radius: 12px;
  background: #fbfafd;
  color: var(--purple);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field__box:focus-within {
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(98, 24, 151, .14);
}
.field input {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  min-height: 52px;
  font: 600 1rem/1.3 var(--font);
  color: var(--text);
  outline: none;
  cursor: text;
}
.field input::placeholder { color: #94a3b8; font-weight: 500; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 16px;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--text);
  position: relative;
}
.consent input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
}
.consent__box {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid rgba(98, 24, 151, .35);
  background: #fff;
  position: relative;
}
.consent input:focus-visible + .consent__box {
  outline: 3px solid rgba(255, 143, 0, .55);
  outline-offset: 2px;
}
.consent input:checked + .consent__box {
  background: var(--purple);
  border-color: var(--purple);
}
.consent input:checked + .consent__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.erro {
  color: var(--danger);
  font-size: .88rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.cta {
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: #fff;
  font: 800 1rem/1 var(--font);
  box-shadow: 0 10px 24px rgba(98, 24, 151, .32);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(98, 24, 151, .4); }
.cta:disabled { opacity: .72; cursor: wait; transform: none; }
.cta.ghost {
  background: transparent;
  color: var(--purple);
  box-shadow: none;
  border: 1px solid rgba(98, 24, 151, .22);
  margin-top: 8px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: flex-start;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
.trust svg { margin-top: 1px; color: var(--purple); flex: 0 0 auto; }
.trust a {
  color: var(--purple);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Success ── */
.ok { text-align: center; }
.ok h2 { margin: 8px 0 10px; font-size: 1.5rem; }
.ok p { color: var(--muted); line-height: 1.55; margin: 0 0 10px; }
.ok__mail {
  margin: 8px 0 18px;
  padding: 12px;
  border-radius: 14px;
  background: #f6f1fb;
}
.ok__mail span {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ok__mail strong {
  color: var(--purple);
  font-size: .98rem;
  word-break: break-all;
}
.check-wrap { display: grid; place-items: center; margin: 8px auto 6px; }
.check { width: 84px; height: 84px; }
.ring {
  fill: none;
  stroke: var(--purple);
  stroke-width: 3;
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
  animation: draw .7s ease forwards;
}
.tick {
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: draw .45s .45s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Footer ── */
.foot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(8, 2, 16, .28);
  padding: 22px 0 max(20px, env(safe-area-inset-bottom));
}
.foot__inner {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.foot__brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.foot__brand img { width: 36px; height: 36px; border-radius: 10px; }
.foot__brand strong { display: block; font-size: .95rem; }
.foot__brand span { display: block; color: rgba(247, 244, 251, .65); font-size: .8rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot__nav a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(247, 244, 251, .82);
}
.foot__nav a:hover { color: var(--orange); }
.foot__copy {
  width: min(100% - 32px, 1280px);
  margin: 14px auto 0;
  color: rgba(247, 244, 251, .5);
  font-size: .78rem;
}

/* ── Tablet ── */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .92fr);
  }
  .phone { width: min(190px, 40vw); }
  .float--a, .float--b { left: auto; right: 0; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "device"
      "panel"
      "benefits";
    padding-bottom: 28px;
  }
  .form-wrapper { position: static; top: auto; }
  .panel { width: 100%; }
  .hero__copy { padding-top: 4px; }
  h1 { font-size: clamp(2.1rem, 8vw, 3rem); }
  .hero__device {
    min-height: 0;
    justify-content: center;
    padding: 4px 0 8px;
    overflow: hidden;
  }
  .phone { width: min(168px, 46vw); }
  .float--a { right: 6%; left: auto; top: 18px; }
  .float--b { right: 4%; left: auto; bottom: 28px; }
  .float--c { left: 12%; }
}

@media (max-width: 640px) {
  .top { width: min(100% - 32px, 1280px); }
  .top__hint { display: none; }
  .top__brand span { font-size: 1.05rem; }
  .top__brand img { width: 42px; height: 42px; }
  .hero, .foot__inner, .foot__copy { width: min(100% - 32px, 1280px); }
  .panel { padding: 20px 16px 22px; border-radius: 20px; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
  .float--b { display: none; }
}

@media (max-width: 380px) {
  .hero { width: min(100% - 32px, 1280px); }
  .top__cta { padding: 0 12px; font-size: .82rem; }
  .phone { width: min(148px, 52vw); }
  .float--a { display: none; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { grid-template-columns: 1fr 1fr; grid-template-areas: "copy panel" "benefits panel"; }
  .hero__device { display: none; }
  .form-wrapper { position: static; top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .scene__glow, .card, .panel, .phone, .float, .ring, .tick, .cta, .hero__copy, .benefits li {
    animation: none !important;
    transition: none !important;
  }
  .ring, .tick { stroke-dashoffset: 0; }
  .phone { transform: none; }
}
