/* =========================================================
   QUASAR AGENCY — style.css
   ========================================================= */

:root {
  --page-bg: #050f33;
  --main-bg: #02051c;
  --card-bg: #060a2c;
  --section-blue: #0a1040;

  --text-primary: #f3f5ff;
  --text-secondary: #c8ccdf;
  --text-muted: #9298af;

  --accent: #6d5cff;
  --accent-light: #a9b2ff;
  --accent-violet: #9b4dff;
  --accent-blue: #2f7bff;

  /* degradê forte roxo → azul (botões e destaques) */
  --grad: linear-gradient(120deg, #a23bff 0%, #6a4dff 45%, #2d7dff 100%);
  --grad-text: linear-gradient(100deg, #c9a6ff 0%, #9aa8ff 50%, #6fb1ff 100%);

  --border: rgba(130, 145, 255, 0.14);
  --border-strong: rgba(150, 160, 255, 0.28);
  --glow: rgba(90, 70, 255, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shell-max: 1240px;
  --inner-pad: clamp(20px, 5vw, 64px);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font);
  background: var(--main-bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Shell (largura total da tela) ---------- */
.shell {
  width: 100%;
  background: var(--main-bg);
  overflow: hidden;
  position: relative;
}

/* conteúdo centralizado, fundos ocupando a tela inteira */
.container {
  width: 100%;
  max-width: calc(var(--shell-max) + var(--inner-pad) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--inner-pad);
  padding-right: var(--inner-pad);
}

section { position: relative; }

.section { padding: clamp(72px, 10vw, 120px) 0; }

/* ---------- Pill label ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(110, 100, 255, 0.07);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px #8a5cff;
}

/* ---------- Tipografia ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto; }
.section-head .pill { margin-bottom: 22px; }

.h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.h2 .hl,
.hl {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 18px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-secondary);
  font-weight: 300;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 34px -8px rgba(130, 70, 255, 0.75), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 16px 44px -8px rgba(120, 80, 255, 0.9), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn .arrow { font-size: 18px; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { height: 42px; padding: 0 22px; font-size: 12px; }
.btn-lg { height: 60px; padding: 0 38px; font-size: 15px; }

/* ---------- Header ---------- */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding-top: 26px;
  transition: background .3s ease, padding .3s ease;
}
.header.is-fixed {
  position: fixed;
  padding: 14px 0;
  background: rgba(2, 5, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; }
.brand span {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color .2s ease;
}
.nav a:not(.btn):hover { color: #fff; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 1.5px;
  background: #fff;
  transform: translateX(-50%);
  transition: .3s ease;
  content: "";
}
.menu-toggle span { top: 50%; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 150px 0 70px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-color: #0a0d35;
  background-size: cover;
  background-position: center;
  opacity: 0.68;
  transform: scale(1.04);
}
video.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  /* escurecimento sobre a imagem */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2,5,28,.72) 0%, rgba(2,5,28,.42) 40%, rgba(2,5,28,.62) 75%, var(--main-bg) 100%),
    radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(2,5,28,.5) 70%);
}
.hero::after {
  /* glow atmosférico inferior */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: 120%;
  height: 70%;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(closest-side at 50% 50%, rgba(110, 70, 255, .40), rgba(45, 125, 255, .14) 55%, transparent 100%);
  pointer-events: none;
}
.hero-stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-stars i {
  position: absolute;
  width: 3px; height: 3px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255,255,255,.9);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

.hero-curve {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero .pill { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(42px, 7.4vw, 92px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 .hl { display: block; }
.hero p {
  max-width: 560px;
  margin: 26px auto 0;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 300;
  color: var(--text-secondary);
}
.hero .btn { margin-top: 38px; }

/* Como funciona (faixa no hero) */
.how {
  margin-top: clamp(56px, 8vw, 96px);
  width: 100%;
}
.how-label {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}
.how-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(8, 12, 48, .55);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: left;
  font-size: 14px;
  color: var(--text-primary);
}
.ico {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  box-shadow: 0 6px 20px -6px rgba(130, 70, 255, .8);
}
.ico svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-text .pill { margin-bottom: 22px; }
.about-text p {
  margin-top: 20px;
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 16px;
}
.about-text p strong { color: #fff; font-weight: 500; }
.about-quote {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 2px solid transparent;
  border-image: var(--grad) 1;
  background: linear-gradient(90deg, rgba(110,80,255,.10), transparent);
  color: var(--text-primary) !important;
  font-weight: 400 !important;
}
.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  background: var(--section-blue);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2,5,28,.85));
}
.about-badge {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(6, 10, 44, .72);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: float 4.5s ease-in-out infinite;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.about-badge img { width: 36px; height: auto; }
.about-badge b { display: block; font-weight: 500; font-size: 15px; }
.about-badge small { color: var(--text-muted); font-size: 13px; }

/* ---------- Curvas decorativas ---------- */
.curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.section > .container { position: relative; z-index: 1; }

/* ---------- Desenvolvimento (2 painéis) ---------- */
.dev { background: linear-gradient(180deg, var(--main-bg), #040830 60%, var(--main-bg)); }
.dev-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.panel {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel-media {
  position: relative;
  height: 210px;
  background: var(--section-blue);
}
.panel-media img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.panel-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,10,44,.15), var(--card-bg));
}
.panel-head {
  position: absolute;
  left: 28px; bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.panel-head .ico { width: 46px; height: 46px; }
.panel-head .ico svg { width: 22px; height: 22px; }
.panel-head h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.panel-list { padding: 10px 28px 28px; }
.panel-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
}
.panel-list li:last-child { border-bottom: 0; }
.panel-list .dot {
  margin-top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(140, 90, 255, .8);
}
.panel-list h4 { font-size: 16px; font-weight: 500; }
.panel-list p { font-size: 14px; color: var(--text-muted); margin-top: 4px; font-weight: 300; }

/* ---------- Comunidade (3 cards numerados) ---------- */
.cards-3 {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.num-card {
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.num-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.num-card .media {
  height: 190px;
  background: var(--section-blue);
  position: relative;
}
.num-card .media img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.num-card .media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--card-bg));
}
.num-card .body { padding: 6px 26px 28px; }
.num-card .num {
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: -26px;
  position: relative;
  z-index: 2;
}
.num-card h3 { font-size: 18px; font-weight: 500; margin-top: 14px; }
.num-card p { font-size: 14px; color: var(--text-muted); margin-top: 8px; font-weight: 300; }

/* ---------- Modelo (gratuito) ---------- */
.model-box {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 80, 255, .28), transparent 60%),
    var(--section-blue);
  border: 1px solid var(--border-strong);
  padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.model-box .pill { margin-bottom: 22px; }
.model-box .lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.stats {
  margin: 48px auto 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  padding: 28px 18px;
  border-radius: var(--radius-md);
  background: rgba(2, 5, 28, .6);
  border: 1px solid var(--border);
}
.stat b {
  display: block;
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 500;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--text-secondary); }
.model-tag {
  margin-top: 40px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
}

/* ---------- Comunidade: alcance ---------- */
.reach { text-align: center; overflow: hidden; }
.orbit {
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
}
.avatar {
  width: clamp(54px, 7vw, 76px);
  height: clamp(54px, 7vw, 76px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(160, 150, 255, .35);
  background: var(--section-blue);
  flex: 0 0 auto;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: clamp(42px, 5.4vw, 60px); height: clamp(42px, 5.4vw, 60px); opacity: .8; }
.globe {
  width: clamp(96px, 12vw, 130px);
  height: clamp(96px, 12vw, 130px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.22), transparent 45%),
    var(--grad);
  box-shadow: 0 0 0 10px rgba(110, 80, 255, .10), 0 0 60px rgba(120, 80, 255, .6);
  flex: 0 0 auto;
}
.globe img { width: 52%; height: auto; }

/* ponto de luz girando em volta da bola central */
.globe {
  position: relative;
  z-index: 2; /* o ponto de luz passa por cima dos avatares, sem ser escondido */
  margin: 0 clamp(8px, 1.6vw, 16px); /* espaço para a órbita não encostar nos avatares */
}
.globe::before,
.globe::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
  animation: orbit 7s linear infinite;
}
.globe::before {
  /* rastro suave do ponto de luz */
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(150, 130, 255, .15) 80%, rgba(210, 200, 255, .75) 99.5%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1.2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1.2px));
}
.globe::after {
  /* o ponto de luz (estrelinha) */
  inset: -15px;
  background: radial-gradient(circle at 50% 5.5px, #fff 0 2px, rgba(225, 215, 255, .9) 3px, rgba(150, 120, 255, .45) 6px, transparent 11px);
}
@keyframes orbit { to { transform: rotate(360deg); } }
.tags {
  margin: 44px auto 0;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.tag {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(110, 100, 255, .06);
  font-size: 14px;
  color: var(--text-primary);
  transition: background .25s ease, border-color .25s ease;
}
.tag:hover { background: rgba(120, 90, 255, .18); border-color: rgba(170,150,255,.5); }

/* ---------- Resumo ---------- */
.summary-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 15px;
}
.check i {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
}
.check i svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- CTA final ---------- */
.cta {
  position: relative;
  width: calc(100% - var(--inner-pad) * 2);
  max-width: var(--shell-max);
  margin: 0 auto clamp(72px, 10vw, 110px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(64px, 9vw, 110px) clamp(22px, 5vw, 60px);
  text-align: center;
  isolation: isolate;
  border: 1px solid var(--border-strong);
}
.cta-bg {
  position: absolute; inset: 0; z-index: -2;
  background-color: var(--section-blue);
  background-size: cover;
  background-position: center;
  opacity: .45;
}
.cta::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(120, 70, 255, .55), transparent 60%),
    linear-gradient(180deg, rgba(2,5,28,.78), rgba(4,8,40,.85));
}
.cta .h2 { font-size: clamp(32px, 5vw, 56px); }
.cta .lead { max-width: 520px; margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 36px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand img { height: 74px; width: auto; }
.footer-brand p { color: var(--text-secondary); font-weight: 300; }
.footer-brand small {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--accent-light); }

/* ---------- Redes sociais (rodapé) ---------- */
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: rgba(110, 100, 255, .06);
  color: var(--text-secondary);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.social a:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}
.social svg { width: 18px; height: 18px; display: block; }
.social .fill { fill: currentColor; }
.social .stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botão WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 15;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2fe07a, #1fb457);
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .65), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float svg { width: 31px; height: 31px; fill: #fff; display: block; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .55);
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float:hover { transform: scale(1.07); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, .8), inset 0 1px 0 rgba(255,255,255,.35); }
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.55); opacity: 0; }
}
.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Carrossel: indicadores ---------- */
.carousel-dots { display: none; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-stars i, .wa-float::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; z-index: 30; }
  /* o header não pode ter backdrop-filter no celular: isso prendia o menu
     (position: fixed) dentro do header ao rolar a página */
  .header.is-fixed {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(2, 5, 28, .94);
  }
  .menu-open .header.is-fixed { background: transparent; border-bottom-color: transparent; }
  .header .brand { position: relative; z-index: 30; }
  .nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 25;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(2, 5, 28, .72);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .nav a:not(.btn) { font-size: 22px; color: #fff; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 5 / 6; }
  .dev-grid { grid-template-columns: 1fr; }
  .cards-3 {
    display: flex;
    gap: 14px;
    margin-left: calc(var(--inner-pad) * -1);
    margin-right: calc(var(--inner-pad) * -1);
    padding: 4px var(--inner-pad) 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--inner-pad);
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cards-3::-webkit-scrollbar { display: none; }
  .cards-3 .num-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  /* sem animações/movimento nos cards do carrossel (evita tremedeira) */
  .cards-3 .num-card,
  .cards-3 .num-card:hover { transform: none; transition: none; opacity: 1; }
  .num-card .media { height: 170px; }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
  }
  .carousel-dots button {
    width: 8px; height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(160, 160, 255, .3);
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
  }
  .carousel-dots button.active { width: 24px; background: var(--grad); }
}

@media (max-width: 640px) {
  .brand img { height: 28px; }
  .brand span { font-size: 15px; letter-spacing: .34em; }
  .hero { padding-top: 130px; }
  .how-grid { grid-template-columns: 1fr; }
  .stats { gap: 8px; }
  .stat { padding: 20px 8px; }
  .stat b { font-size: 38px; }
  .stat span { font-size: 12px; }
  .summary-grid { grid-template-columns: 1fr; }
  .avatar.sm { display: none; }
  .btn-lg { height: 56px; padding: 0 26px; font-size: 13px; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .wa-float { width: 56px; height: 56px; }
  .wa-float svg { width: 29px; height: 29px; }
  .panel-head { left: 20px; }
  .panel-list { padding: 6px 20px 22px; }
}
