/* ===================== BASE ===================== */
:root{
  --preto:#07070a;
  --carvao:#0e0f13;
  --ambar:#f3a63b;
  --ambar-claro:#ffc76b;
  --texto:#f2ede6;
  --texto-suave:#a9a49d;
  --borda:rgba(255,255,255,.09);
  --wpp:#25d366;
  --radius:16px;
}

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

html{scroll-behavior:smooth}

body{
  background:var(--preto);
  color:var(--texto);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%;display:block}

::selection{background:var(--ambar);color:#000}

/* ===================== ANIMAÇÕES DE ENTRADA ===================== */
.reveal{
  opacity:0;
  transform:translateY(26px);
  filter:blur(8px);
  transition:opacity .9s cubic-bezier(.22,.61,.36,1),
             transform .9s cubic-bezier(.22,.61,.36,1),
             filter .9s cubic-bezier(.22,.61,.36,1);
  will-change:opacity,transform,filter;
}
.reveal.is-visible{opacity:1;transform:none;filter:blur(0)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;filter:none;transition:none}
  .hero__bg{animation:none !important}
}

/* ===================== DOBRA 1 — HERO =====================
   Mobile: layout em duas faixas — texto em cima, foto embaixo.
   A foto é um elemento no fluxo, então nunca fica atrás do texto. */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  padding:0 0 92px;
  overflow:hidden;
  isolation:isolate;
}

.hero__bg{
  order:2;
  flex:1 1 auto;
  min-height:50svh;
  /* usa a arte de 1920px também no mobile: a versão mobile tem só 400px
     de largura e ficaria borrada em telas de alta densidade */
  background-image:url('bg-desktop.webp');
  background-size:auto 132%;
  background-position:70% 0;
  background-repeat:no-repeat;
  /* dissolve o topo da foto no preto do bloco de texto, em degradê longo
     para não haver corte seco acima da cabeça */
  -webkit-mask-image:linear-gradient(to bottom,
    transparent 0%,rgba(0,0,0,.18) 8%,rgba(0,0,0,.45) 20%,
    rgba(0,0,0,.75) 34%,#000 52%);
  mask-image:linear-gradient(to bottom,
    transparent 0%,rgba(0,0,0,.18) 8%,rgba(0,0,0,.45) 20%,
    rgba(0,0,0,.75) 34%,#000 52%);
  animation:heroIn 1.6s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes heroIn{
  from{opacity:0;transform:scale(1.05);filter:blur(16px)}
  to{opacity:1;transform:scale(1);filter:blur(0)}
}

/* Véu sobre a faixa da foto: suaviza o topo e funde a base com a dobra 2 */
.hero__veil{
  position:absolute;
  left:0;right:0;bottom:0;
  height:62%;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(to bottom,
      transparent 0%,
      rgba(7,7,10,.06) 40%,
      rgba(7,7,10,.3) 72%,
      rgba(7,7,10,.82) 92%,
      var(--preto) 100%),
    radial-gradient(90% 60% at 60% 45%,rgba(243,166,59,.13),transparent 62%);
}

/* Transição suave entre a dobra 1 e a dobra 2 */
.hero::after{
  content:'';
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:180px;
  z-index:1;
  background:linear-gradient(to bottom,transparent,rgba(7,7,10,.75) 55%,var(--preto));
  pointer-events:none;
}

.hero__inner{
  order:1;
  position:relative;
  z-index:2;
  width:100%;
  max-width:1160px;
  margin:0 auto;
  padding:52px 24px 28px;
}

.eyebrow{
  display:inline-block;
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--ambar);
  padding:8px 16px;
  border:1px solid rgba(243,166,59,.32);
  border-radius:999px;
  background:rgba(243,166,59,.07);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  margin-bottom:22px;
}

.hero__title{
  font-family:'Sora',sans-serif;
  font-weight:700;
  font-size:clamp(2.5rem,9vw,5.4rem);
  line-height:1.02;
  letter-spacing:-.03em;
  margin-bottom:22px;
}
.hero__title .accent{
  background:linear-gradient(100deg,var(--ambar-claro),var(--ambar) 55%,#c97f22);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero__text{
  max-width:52ch;
  color:var(--texto-suave);
  font-size:clamp(1rem,2.6vw,1.15rem);
  font-weight:300;
  margin-bottom:36px;
}

.hero__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:18px 24px;
}
.hero__note{
  font-size:.9rem;
  color:var(--texto-suave);
}
.hero__note strong{color:var(--texto);font-weight:600}

/* Botões */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:'Sora',sans-serif;
  font-weight:600;
  font-size:1rem;
  padding:16px 34px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  text-decoration:none;
  transition:transform .25s ease,box-shadow .25s ease,filter .25s ease;
}
.btn--primary{
  background:linear-gradient(100deg,var(--ambar-claro),var(--ambar));
  color:#170d00;
  box-shadow:0 12px 34px -12px rgba(243,166,59,.7);
}
.btn--primary:hover{transform:translateY(-2px);filter:brightness(1.06);box-shadow:0 18px 44px -12px rgba(243,166,59,.8)}
.btn--primary:active{transform:translateY(0)}
.btn--block{width:100%;margin-top:8px}
.btn:focus-visible{outline:2px solid var(--ambar-claro);outline-offset:3px}

/* Indicador de scroll */
.scroll-cue{
  display:none; /* no mobile o próprio botão conduz ao formulário */
  order:3;
  position:relative;
  z-index:2;
  margin:24px auto 0;
  width:22px;height:44px;
  border:1px solid var(--borda);
  border-radius:999px;
  justify-content:center;
  padding-top:8px;
}
.scroll-cue__line{
  width:2px;height:8px;border-radius:2px;
  background:var(--ambar);
  animation:cue 1.9s ease-in-out infinite;
}
@keyframes cue{0%{opacity:0;transform:translateY(0)}35%{opacity:1}100%{opacity:0;transform:translateY(16px)}}

/* ===================== DOBRA 2 — FORMULÁRIO ===================== */
.form-section{
  position:relative;
  margin-top:-90px;
  padding:118px 24px 40px;
  border-top:1px solid rgba(255,255,255,.07);
  border-radius:44px 44px 0 0;
  background:linear-gradient(180deg,#101116,var(--carvao) 40%,var(--preto));
  box-shadow:0 -40px 80px -30px rgba(0,0,0,.9);
  overflow:hidden;
  z-index:2;
}
/* Filete luminoso no topo da dobra 2 */
.form-section::before{
  content:'';
  position:absolute;
  top:-1px;left:12%;right:12%;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(243,166,59,.85),transparent);
  pointer-events:none;
}
.form-section__glow{
  position:absolute;
  top:-140px;left:50%;
  transform:translateX(-50%);
  width:820px;height:400px;
  background:radial-gradient(circle,rgba(243,166,59,.22),transparent 62%);
  filter:blur(50px);
  pointer-events:none;
}

.form-shell{
  position:relative;
  max-width:760px;
  margin:0 auto;
  padding:44px 32px;
  border:1px solid var(--borda);
  border-radius:26px;
  background:rgba(255,255,255,.035);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 40px 90px -50px rgba(0,0,0,.9);
}

.form-head{text-align:center;margin-bottom:34px}
.form-head h2{
  font-family:'Sora',sans-serif;
  font-weight:700;
  font-size:clamp(1.8rem,5vw,2.6rem);
  letter-spacing:-.02em;
  margin-bottom:12px;
}
.form-head p{color:var(--texto-suave);font-weight:300;max-width:52ch;margin:0 auto}

.ticket-badge{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-top:20px !important;
  padding:9px 18px;
  border-radius:999px;
  border:1px solid rgba(243,166,59,.32);
  background:rgba(243,166,59,.08);
  color:var(--ambar-claro) !important;
  font-size:.86rem;
  font-weight:500 !important;
}
.ticket-badge span{
  width:7px;height:7px;border-radius:50%;
  background:var(--ambar);
  box-shadow:0 0 0 4px rgba(243,166,59,.18);
}

/* Campos */
.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  margin-bottom:26px;
}
.field--full{grid-column:1/-1}

.field label{
  display:block;
  font-size:.82rem;
  font-weight:500;
  letter-spacing:.02em;
  margin-bottom:8px;
  color:var(--texto);
}
.field label i{color:var(--ambar);font-style:normal}
.field label em{color:var(--texto-suave);font-style:normal;font-weight:300}

.field input,
.field select,
.field textarea{
  width:100%;
  font-family:inherit;
  font-size:.98rem;
  color:var(--texto);
  background:rgba(0,0,0,.35);
  border:1px solid var(--borda);
  border-radius:var(--radius);
  padding:15px 16px;
  transition:border-color .25s ease,background .25s ease,box-shadow .25s ease;
}
.field textarea{resize:vertical;min-height:112px}
.field input::placeholder,
.field textarea::placeholder{color:#6d6862}

.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:rgba(243,166,59,.6);
  background:rgba(0,0,0,.5);
  box-shadow:0 0 0 4px rgba(243,166,59,.12);
}

.select-wrap{position:relative}
.select-wrap::after{
  content:'';
  position:absolute;
  right:18px;top:50%;
  width:8px;height:8px;
  border-right:2px solid var(--ambar);
  border-bottom:2px solid var(--ambar);
  transform:translateY(-70%) rotate(45deg);
  pointer-events:none;
}
.field select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:44px}
.field select option{background:#15161b;color:var(--texto)}
.field select:invalid{color:#6d6862}

.field.has-error input,
.field.has-error select{border-color:#e0574f;box-shadow:0 0 0 4px rgba(224,87,79,.12)}
.error{display:block;color:#ef7a72;font-size:.78rem;margin-top:6px;min-height:0}

.privacy{
  text-align:center;
  font-size:.78rem;
  color:#7d7871;
  margin-top:16px;
}

/* Sucesso */
.form-success{text-align:center;padding:26px 0}
.form-success .check{
  width:62px;height:62px;
  margin:0 auto 18px;
  border-radius:50%;
  display:grid;place-items:center;
  font-size:1.7rem;
  color:#0d0900;
  background:linear-gradient(100deg,var(--ambar-claro),var(--ambar));
  animation:pop .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes pop{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
.form-success h3{font-family:'Sora',sans-serif;font-size:1.5rem;margin-bottom:10px}
.form-success p{color:var(--texto-suave);font-weight:300}
.form-success a{color:var(--ambar)}

.foot{
  text-align:center;
  padding:44px 0 8px;
  font-size:.78rem;
  color:#5f5b56;
}

/* ===================== WHATSAPP FLUTUANTE ===================== */
.wpp{
  position:fixed;
  right:20px;bottom:20px;
  width:58px;height:58px;
  border-radius:50%;
  display:grid;place-items:center;
  background:var(--wpp);
  box-shadow:0 10px 28px -8px rgba(37,211,102,.7);
  z-index:60;
  transition:transform .25s ease,box-shadow .25s ease;
  animation:wppIn .6s cubic-bezier(.34,1.56,.64,1) 1.1s both;
}
.wpp svg{width:32px;height:32px;fill:#fff}
.wpp:hover{transform:scale(1.08);box-shadow:0 14px 34px -8px rgba(37,211,102,.85)}
.wpp::before{
  content:'';
  position:absolute;inset:0;
  border-radius:50%;
  border:2px solid rgba(37,211,102,.55);
  animation:pulse 2.6s ease-out infinite;
}
@keyframes wppIn{from{transform:scale(0) rotate(-25deg);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes pulse{0%{transform:scale(1);opacity:.7}70%{transform:scale(1.5);opacity:0}100%{opacity:0}}

/* ===================== RESPONSIVO ===================== */
@media (min-width:640px){
  .grid{grid-template-columns:1fr 1fr}
  .form-shell{padding:52px 48px}
}

@media (min-width:900px){
  /* Desktop: volta ao layout sobreposto (texto sobre a foto) */
  .hero{
    justify-content:center;
    padding:140px 0 150px;
  }
  .hero__inner{padding:0 48px}
  .hero__bg{
    position:absolute;
    inset:0;
    min-height:0;
    background-size:cover;
    background-position:center 30%;
    -webkit-mask-image:none;
    mask-image:none;
  }
  .hero__veil{
    top:0;
    height:auto;
    background:
      linear-gradient(to right,
        rgba(7,7,10,.96) 0%,
        rgba(7,7,10,.9) 28%,
        rgba(7,7,10,.5) 48%,
        rgba(7,7,10,.12) 66%,
        rgba(7,7,10,0) 100%),
      linear-gradient(to top,var(--preto) 0%,rgba(7,7,10,.45) 22%,transparent 50%),
      radial-gradient(70% 80% at 78% 45%,rgba(255,190,110,.12),transparent 65%);
  }
  .hero__inner{max-width:1160px}
  .hero__text{max-width:44ch}
  .scroll-cue{display:flex;margin-top:64px}
  .form-section{padding:150px 48px 40px;border-radius:64px 64px 0 0;margin-top:-110px}
  .wpp{right:32px;bottom:32px;width:62px;height:62px}
}
