/* ===================================================================
   BGP Sites — design system
   =================================================================== */

:root {
  --purple: #6547F8;
  --purple-dark: #4C36D6;
  --bg: #0B1020;
  --card: #151A30;
  --white: #FFFFFF;
  --muted: #B8C0D4;
  --accent: #22C55E;
  --accent-ink: #06210F;

  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --muted-dim: rgba(184, 192, 212, 0.45);

  --container: 1152px;
  --section-y: 96px;
  --radius: 16px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: rgba(101, 71, 248, 0.4); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ===== Layout ===== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--card); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }

h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.6vw, 38px); }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

.lead { color: var(--muted); font-size: 17px; margin-top: 16px; }
.text-muted { color: var(--muted); }

/* ===== Grids ===== */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Cards ===== */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.section--alt .card { background: rgba(255, 255, 255, 0.03); }

.card--hover:hover {
  transform: translateY(-4px);
  border-color: rgba(101, 71, 248, 0.5);
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

/* Ícone quadrado roxo dos cards de serviço */
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(101, 71, 248, 0.25), rgba(76, 54, 214, 0.15));
  color: #A996FF;
  margin-bottom: 16px;
}

/* ===== Botões ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #1BAE52; transform: translateY(-2px); }

.btn--ghost { border: 1px solid var(--line-strong); color: var(--white); }
.btn--ghost:hover { border-color: var(--purple); transform: translateY(-2px); }

.btn--purple { background: var(--purple); color: var(--white); }
.btn--purple:hover { background: var(--purple-dark); transform: translateY(-2px); }

.btn--sm { padding: 10px 18px; font-size: 13px; }

/* ===== Navbar ===== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.logo__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.logo__text { line-height: 1.05; font-size: 14px; }
.logo__text span { display: block; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; }

.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--white); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */

.hero {
  position: relative;
  padding: 160px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(101, 71, 248, 0.35), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero__tag i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

/* Mockup de navegador do hero */
.browser {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.browser__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.browser__url {
  margin-left: 10px;
  font-size: 11px;
  color: var(--muted-dim);
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 4px 10px;
  flex: 1;
}
/* Vitrine de projetos reais dentro do mockup */
.browser__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg);
}
.shot {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.shot.is-active { opacity: 1; }
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(to top, rgba(11, 16, 32, 0.92), transparent);
}
.browser__url { transition: opacity 0.3s ease; }

/* ===== Selos de prova ===== */

.proof { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proof__item { display: flex; align-items: center; gap: 12px; }
.proof__item strong { display: block; font-size: 14px; font-weight: 700; }
.proof__item span { font-size: 12px; color: var(--muted); }
.proof__icon { color: var(--accent); flex-shrink: 0; }

/* ===== Problema / solução ===== */

.compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.compare__col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.compare__col--bad { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.2); }
.compare__col--good { background: rgba(34, 197, 94, 0.06); border-color: rgba(34, 197, 94, 0.22); }
.compare__col h3 { margin-bottom: 20px; font-size: 15px; }
.compare__col li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.compare__col li + li { margin-top: 12px; }
.compare__col li svg { flex-shrink: 0; margin-top: 2px; }
.compare__col--bad li svg { color: #F87171; }
.compare__col--good li svg { color: var(--accent); }

/* ===== Pílulas de diferencial / benefício ===== */

.pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.25s, transform 0.25s;
}
.pill:hover { border-color: rgba(101, 71, 248, 0.5); transform: translateY(-3px); }
.pill svg { color: var(--purple); flex-shrink: 0; }
.section--alt .pill { background: rgba(255, 255, 255, 0.04); }

/* ===== Portfólio ===== */

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}
.project + .project { margin-top: 24px; }
.project__media { position: relative; background: linear-gradient(135deg, rgba(101,71,248,0.2), rgba(76,54,214,0.1)); }
/* Centralizado na horizontal: as capturas trazem a pessoa à direita do
   quadro, e ancorar à esquerda jogava todo o corte justamente ali. */
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project__body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.project__tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(101, 71, 248, 0.14);
  color: #A996FF;
}
.project__meta { display: grid; gap: 10px; margin-bottom: 24px; }
.project__meta p { font-size: 14px; color: var(--muted); }
.project__meta strong { color: var(--white); font-weight: 600; }
.project__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.badge-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

/* Selo de credencial: mesma família do .badge-live, sem o ponto pulsante.
   O pulso comunica "está no ar agora"; aqui a informação é permanente. */
.badge-cred {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid rgba(101, 71, 248, 0.35);
  background: rgba(101, 71, 248, 0.08);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}
.badge-cred svg { flex-shrink: 0; }

.segment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
}
.segment svg { color: #A996FF; flex-shrink: 0; }

/* ===== Passos ===== */

.step { display: flex; gap: 16px; }
.step__num {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.step h3 { margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--muted); }

/* ===== FAQ ===== */

.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
}
.faq__q:hover { color: var(--purple); }
.faq__q svg { flex-shrink: 0; transition: transform 0.3s ease; color: var(--purple); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.faq__a p { color: var(--muted); font-size: 14.5px; padding-bottom: 22px; }

/* ===== CTA final ===== */

.cta {
  position: relative;
  border-radius: 24px;
  padding: 72px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  overflow: hidden;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta p { color: rgba(255, 255, 255, 0.9); margin-top: 14px; }
.cta .btn--primary { margin-top: 32px; background: var(--white); color: var(--purple-dark); }
.cta .btn--primary:hover { background: #F1EEFF; }
.cta__phone { display: block; margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.85); }

/* ===== Rodapé ===== */

.footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer li + li { margin-top: 10px; }
.footer li a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer li a:hover { color: var(--white); }
.footer__tag { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer__social a:hover { color: var(--white); border-color: var(--purple); transform: translateY(-2px); }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--muted-dim);
}

/* ===== WhatsApp flutuante ===== */

.whatsapp-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(34, 197, 94, 0.6);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== Animações ===== */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* O estado oculto só é aplicado quando o JS está ativo, para que o conteúdo
   continue visível caso o script falhe ou esteja desabilitado. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ===== Responsivo ===== */

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 130px; }
  .project { grid-template-columns: 1fr; }
  .project__media { height: 260px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-y: 72px; }

  .nav__links {
    position: fixed;
    inset: 64px 16px auto 16px;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(17, 23, 44, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line-strong);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 10px 8px; font-size: 15px; }
  .nav__toggle { display: flex; }
  .nav__actions .btn { display: none; }

  .grid--3, .grid--2, .compare { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .project__body { padding: 28px 24px; }
  .cta { padding: 56px 24px; }
}

@media (max-width: 520px) {
  .grid--4, .proof__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions .btn, .project__actions .btn { width: auto; flex: 1 1 auto; }
}
