:root{
  --bg: #070b13;
  --bg2:#0b1220;
  --line: rgba(255,255,255,.10);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.72);

  --brand:#00e5ff;
  --brand2:#7c3aed;
  --ok:#22c55e;

  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --max: 1120px;

  --ring: 0 0 0 6px rgba(0,229,255,.14);
}

/* ===== Base ===== */
*{ box-sizing:border-box; }
html,body{ min-height:100%; }

body{
  margin:0;
  position: relative;
  isolation: isolate; /* garante stacking context pro ::before */
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(1000px 600px at 85% 20%, rgba(0,229,255,.18), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(var(--max), 92%); margin:0 auto; }

:focus{ outline: none; }
:focus-visible{
  box-shadow: var(--ring);
  border-radius: 16px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Topbar ===== */
.topbar{
  position: sticky;
  top:0;
  z-index:50;
  background: rgba(7,11,19,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:12px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand__logo{
  width:40px; height:40px; border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  color:#040712;
  font-weight:900;
}
.brand__text strong{ display:block; font-weight:900; letter-spacing:-.02em; }
.brand__text small{ display:block; color: var(--muted); font-weight:700; font-size:12px; }

.nav{ display:flex; align-items:center; gap:16px; }
.nav a{
  color: rgba(234,240,255,.78);
  font-weight:900; font-size:14px;
  position: relative;
}
.nav a:hover{ color: var(--text); }
.nav a::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-8px;
  height:2px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.55), transparent);
  opacity:0;
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease;
}
.nav a:hover::after{ opacity:1; transform: translateY(0); }

.menu{
  display:none;
  background:transparent;
  border:1px solid transparent;
  padding:10px;
  border-radius: 12px;
  cursor:pointer;
}
.menu:hover{ background: rgba(255,255,255,.03); border-color: var(--line); }
.menu span{
  display:block;
  width:22px; height:2px;
  background: rgba(234,240,255,.75);
  margin:5px 0;
  border-radius: 999px;
}

/* Mobile menu (hidden no JS) */
.mobile{
  border-top: 1px solid var(--line);
}
.mobile[hidden]{ display:none; }
.mobile__inner{
  display:flex; flex-direction:column;
  gap:12px; padding:14px 0 18px;
}
.mobile a{ color: rgba(234,240,255,.80); font-weight:900; }
.mobile a:hover{ color: var(--text); }

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .10s ease, opacity .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  user-select:none;
  will-change: transform;
}
.btn:hover{ box-shadow: 0 10px 35px rgba(0,0,0,.18); }
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  color: #040712;
}
.btn--primary:hover{ opacity:.96; }

.btn--ghost{
  background: rgba(255,255,255,.04);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover{ background: rgba(255,255,255,.06); }

.btn--lg{ padding: 14px 18px; border-radius: 18px; }
.btn--sm{ padding: 9px 12px; border-radius: 14px; font-size: 13px; }

/* ===== Hero ===== */
.hero{ padding: 34px 0 10px; }
.hero__grid{
  display:grid;
  gap:20px;
  grid-template-columns: 1.25fr .95fr;
  align-items: start;
}
.hero__left{ padding: 22px 0; }

.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(234,240,255,.85);
}

h1{
  margin: 16px 0 10px;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.u{
  background: linear-gradient(90deg, var(--brand), #fff);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.lead{
  margin:0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
}
.hero__cta{ display:flex; gap:12px; margin-top: 18px; flex-wrap:wrap; }

.stats{
  margin-top: 18px;
  display:grid;
  gap:10px;
  grid-template-columns: repeat(3, 1fr);
}
.stat{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 12px;
  transition: transform .15s ease, background .15s ease;
}
.stat:hover{ transform: translateY(-2px); background: rgba(255,255,255,.04); }
.stat strong{ display:block; font-weight: 900; }
.stat span{ display:block; color: var(--muted); font-size: 12px; margin-top: 4px; font-weight: 700; }

.trustline{
  margin-top: 14px;
  display:flex; flex-wrap:wrap; gap:10px;
  color: rgba(234,240,255,.80);
  font-weight: 900;
  font-size: 12px;
}

/* ===== Panel ===== */
.panel{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel__head strong{ display:block; font-weight: 900; }
.panel__head span{ display:block; margin-top: 4px; color: var(--muted); font-weight: 700; font-size: 13px; }

.steps{ margin: 14px 0 14px; display:grid; gap:12px; }
.step{
  display:flex; gap:10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  transition: transform .15s ease, background .15s ease;
}
.step:hover{ transform: translateY(-2px); background: rgba(255,255,255,.04); }
.step__dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--ok);
  margin-top: 5px;
  box-shadow: 0 0 0 6px rgba(34,197,94,.12);
}
.step strong{ font-weight: 900; }
.step p{ margin: 4px 0 0; color: var(--muted); font-weight: 700; font-size: 13px; line-height: 1.4; }

/* ===== Sections ===== */
.section{
  position: relative;
  padding: 64px 0;
}
.section::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
.section--alt{
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.section__head{ margin-bottom: 18px; }
.section__head h2{
  margin:0;
  font-size: clamp(22px, 2.3vw, 34px);
  letter-spacing: -0.02em;
}
.section__head p{
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 75ch;
  line-height: 1.55;
  font-weight: 700;
}

/* ===== Cards ===== */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 24px;
  padding: 18px;
  transition: transform .15s ease, background .15s ease;
}
.card:hover{ transform: translateY(-2px); background: rgba(255,255,255,.04); }
.card h3{ margin:0; font-weight: 900; letter-spacing: -0.01em; }
.card p{ margin: 8px 0 0; color: var(--muted); font-weight: 700; line-height: 1.5; }
.card ul{
  margin: 12px 0 0;
  padding-left: 16px;
  color: rgba(234,240,255,.85);
  font-weight: 800;
}
.card li{ margin: 8px 0; }
.card .link{
  display:inline-block;
  margin-top: 12px;
  font-weight: 900;
  color: rgba(0,229,255,.95);
}
.card .link:hover{ opacity: .9; text-decoration: underline; text-underline-offset: 3px; }
.card--featured{
  background: linear-gradient(180deg, rgba(124,58,237,.18), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.badge{
  position:absolute;
  top:14px;
  right:14px;
  background: rgba(0,229,255,.18);
  border: 1px solid rgba(0,229,255,.35);
  color: rgba(234,240,255,.95);
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

/* ===== Cases ===== */
.casegrid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.case{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 24px;
  padding: 18px;
  transition: transform .15s ease, background .15s ease;
}
.case:hover{ transform: translateY(-2px); background: rgba(255,255,255,.04); }
.case__top{ display:flex; justify-content:space-between; align-items:center; gap: 10px; }
.pill{
  display:inline-flex; align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,229,255,.35);
  background: rgba(0,229,255,.12);
  font-weight: 900;
  font-size: 12px;
  color: rgba(234,240,255,.92);
}
.case__desc{
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}
.case__nums{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.case__nums > div{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7,11,19,.35);
  padding: 10px;
  text-align:center;
}
.case__nums b{ display:block; font-size: 16px; letter-spacing: -0.02em; }
.case__nums span{
  display:block; margin-top: 4px;
  font-size: 12px; color: rgba(234,240,255,.65);
  font-weight: 800;
}
.case__cta{
  display:inline-block;
  margin-top: 14px;
  font-weight: 900;
  color: rgba(0,229,255,.95);
}
.case__cta:hover{ opacity: .9; text-decoration: underline; text-underline-offset: 3px; }

.hint{ margin-top: 14px; }
.hint__box{
  border: 1px dashed rgba(234,240,255,.18);
  border-radius: 24px;
  padding: 14px;
  background: rgba(255,255,255,.02);
}
.hint__box p{
  margin: 8px 0 12px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

/* ===== Trabalhos ===== */
.workgrid{ display:grid; grid-template-columns: 1fr; gap: 14px; }
.work{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.work__top{
  display:flex; align-items:flex-start; justify-content:space-between; gap: 12px;
}
.work__title{ display:block; font-weight: 1000; letter-spacing: -0.01em; }
.work__sub{ margin: 6px 0 0; color: rgba(234,240,255,.70); font-weight: 800; font-size: 13px; }
.work__desc{
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}
.work__tags{ margin-top: 12px; display:flex; flex-wrap:wrap; gap: 8px; }
.tag{
  border: 1px solid var(--line);
  background: rgba(7,11,19,.35);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(234,240,255,.85);
}
.work__actions{ margin-top: 14px; display:flex; gap: 10px; flex-wrap: wrap; }

/* ===== Timeline ===== */
.timeline{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tl{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 24px;
  padding: 18px;
  display:flex;
  gap: 12px;
}
.tl__n{
  width:32px; height:32px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  font-weight: 900;
}
.tl strong{ font-weight: 900; }
.tl p{ margin: 6px 0 0; color: var(--muted); font-weight: 700; line-height: 1.5; font-size: 14px; }

/* ===== CTA / Form ===== */
.section--cta{ background: rgba(255,255,255,.03); }
.cta{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: start;
}
.cta__left h2{ margin:0; font-size: clamp(22px, 2.3vw, 34px); letter-spacing: -0.02em; }
.cta__left p{ margin: 10px 0 0; color: var(--muted); font-weight: 700; line-height: 1.6; }
.cta__bullets{ margin-top: 14px; display:flex; flex-wrap:wrap; gap: 10px; color: rgba(234,240,255,.88); font-weight: 900; font-size: 13px; }
.cta__note{
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.88);
  font-weight: 800;
  line-height: 1.5;
}

.form{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}
label{ display:block; margin-top: 12px; font-weight: 900; font-size: 13px; color: rgba(234,240,255,.92); }
input, select{
  width:100%;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(7,11,19,.45);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  font-weight: 800;
}
input::placeholder{ color: rgba(234,240,255,.40); font-weight: 800; }
input:focus, select:focus{ border-color: rgba(0,229,255,.45); box-shadow: var(--ring); }

.check{ display:flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.check input{ width:auto; margin-top: 3px; }
.check span{ color: var(--muted); font-weight: 800; line-height: 1.4; font-size: 13px; }

.fine{
  margin: 12px 0 0;
  color: rgba(234,240,255,.60);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.45;
}

/* ===== FAQ ===== */
.faq{ display:grid; gap: 10px; }
.faq__q{
  width:100%;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  text-align:left;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.92);
  font-weight: 900;
  cursor:pointer;
  transition: background .15s ease, transform .10s ease;
}
.faq__q:hover{ background: rgba(255,255,255,.04); }
.faq__q:active{ transform: translateY(1px); }
.faq__q span{ opacity:.8; transition: transform .18s ease; }
.faq__q[aria-expanded="true"] span{ transform: rotate(45deg); }

.faq__a{
  padding: 0 16px 14px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}
.faq__a[hidden]{ display:none; }

/* ===== WhatsApp float ===== */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 1000;
  background: linear-gradient(135deg, #25D366, #0ea84c);
  color: #041108;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.22);
  display:flex;
  align-items:center;
  gap: 10px;
  transform: translateZ(0);
}
.wa-float:hover{ opacity: .96; }
.wa-float::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius: 999px;
  border: 2px solid rgba(37,211,102,.35);
  opacity: .85;
  animation: waPulse 1.6s ease-out infinite;
  pointer-events:none;
}
@keyframes waPulse{
  0%   { transform: scale(1); opacity:.75; }
  70%  { transform: scale(1.18); opacity:0; }
  100% { transform: scale(1.18); opacity:0; }
}
.wa-float.wa-float--icon{
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.wa-float.wa-float--icon .wa-float__icon{
  display: grid;
  place-items: center;
}

/* ===== Bottom bar (mobile) ===== */
.bottom-bar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  padding: 10px 12px;
  background: rgba(7,11,19,.78);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display:none;
}
.bottom-bar__btn{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  padding: 14px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #25D366, #0ea84c);
  color: #041108;
  font-weight: 1000;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255,255,255,.20);
}

/* ===== Footer (refeito) ===== */
.footer{
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: rgba(7,11,19,.46);
}
.footer__inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr .9fr;
  gap: 18px;
  align-items:start;
}
.footer__brand strong{
  display:block;
  font-weight: 1000;
  letter-spacing:-.01em;
  font-size: 16px;
}
.footer__brand p{
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}
.footer__brand small{
  display:block;
  margin-top: 10px;
  color: rgba(234,240,255,.55);
  font-weight: 700;
}

.footer__links{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.footer__links strong{
  font-weight: 1000;
  font-size: 13px;
  color: rgba(234,240,255,.92);
}
.footer__links a{
  color: rgba(234,240,255,.78);
  font-weight: 900;
}
.footer__links a:hover{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__cta{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 20px;
  padding: 14px;
}
.footer__cta strong{
  display:block;
  font-weight: 1000;
  font-size: 13px;
  color: rgba(234,240,255,.95);
}
.footer__cta p{
  margin: 8px 0 12px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .casegrid{ grid-template-columns: 1fr; }
  .timeline{ grid-template-columns: 1fr; }
  .cta{ grid-template-columns: 1fr; }

  .nav{ display:none; }
  .menu{ display:inline-block; }
  .bottom-bar{ display:block; }

  /* espaço pra bottom-bar */
  body{ padding-bottom: 74px; }

  /* sobe o WhatsApp por causa da bottom bar */
  .wa-float.wa-float--icon{
    width: 58px;
    height: 58px;
    right: 14px;
    bottom: 86px;
  }

  /* footer em colunas no mobile */
  .footer__inner{
    grid-template-columns: 1fr;
  }
}

/* ================================
   FUNDO MOBILE 100% ESTÁVEL
   (resolve “desregulado” definitivo)
   ================================ */
@media (max-width: 980px){
  /* remove o fundo do body no mobile */
  body{
    background: transparent !important;
    background-attachment: scroll !important;
    overflow-x: hidden;
  }

  /* layer fixo na viewport */
  body::before{
    content:"";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(900px 520px at 12% 12%, rgba(124,58,237,.22), transparent 60%),
      radial-gradient(780px 480px at 88% 18%, rgba(0,229,255,.18), transparent 55%),
      linear-gradient(180deg, var(--bg), var(--bg2));
    transform: translate3d(0,0,0);
    will-change: transform;
  }
}
