/* ==================================================================
   NEXAFLOW-IA — FOLHA DE ESTILOS
   Sumário (use Ctrl+F para pular direto à seção):
   1. Reset e variáveis globais (cores, fontes, espaçamentos)
   2. Estilos base (body, tipografia, links)
   3. Utilitários (container, grid, botões, texto gradiente)
   4. Cabeçalho / menu de navegação
   5. Seção Hero
   6. Faixa de segmentos (marquee)
   7. Seções gerais / cards de serviço
   8. Seção "Como Funciona" (processo)
   9. Portfólio
   10. Diferenciais
   11. Depoimentos
   12. Planos / preços
   13. CTA final
   14. Contato / formulário
   15. Rodapé
   16. Botão flutuante do WhatsApp + Voltar ao topo
   17. Animações (reveal on scroll, flutuação, etc.)
   18. Responsividade (tablets e celulares)
================================================================== */


/* ------------------------------------------------------------------
   1. RESET E VARIÁVEIS GLOBAIS
------------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta de cores da marca */
  --bg: #06070d;              /* fundo principal (quase preto, tom "espaço") */
  --bg-alt: #0b0e1a;          /* fundo alternado entre seções */
  --surface: #12162a;         /* cor dos cartões/elementos elevados */
  --surface-2: #191f38;       /* hover / destaque sobre surface */
  --border: rgba(255, 255, 255, 0.08);

  --text: #f2f4fb;            /* texto principal (quase branco) */
  --text-muted: #9aa3bd;      /* texto secundário */
  --text-dim: #6b7290;        /* texto terciário / legendas */

  --cyan: #00e5c7;            /* acento 1 — ciano/verde-água */
  --violet: #7c5cff;          /* acento 2 — violeta */
  --gradient: linear-gradient(120deg, var(--cyan), var(--violet));
  --whatsapp: #25d366;        /* verde oficial do WhatsApp (só no botão flutuante) */

  /* Tipografia */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-w: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-soft: 0 20px 60px -25px rgba(0, 0, 0, 0.6);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* evita que o cabeçalho fixo cubra o destino do link */
}

/* Respeita usuários que pedem menos animação no sistema operacional */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* evita rolagem horizontal por causa das animações */
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Foco visível no teclado (acessibilidade) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Link "pular para o conteúdo" — só aparece quando recebe foco via Tab */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: #06070d;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}


/* ------------------------------------------------------------------
   3. UTILITÁRIOS
------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 12px var(--cyan);
}

/* Grids reutilizáveis para cards */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient);
  color: #06070d;
  box-shadow: 0 12px 30px -10px rgba(0, 229, 199, 0.45);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(124, 92, 255, 0.55);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--header { display: none; } /* some no mobile pra não brigar com o hambúrguer; reaparece no desktop */


/* ------------------------------------------------------------------
   4. CABEÇALHO / MENU
------------------------------------------------------------------ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Classe adicionada via JS quando o usuário rola a página (ver script.js) */
.header.is-scrolled {
  background: rgba(6, 7, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo__mark { border-radius: 8px; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.logo__ia { color: var(--violet); }

.nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__link {
  font-size: 0.94rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--gradient);
  transition: width 0.25s ease;
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Botão hambúrguer (mobile) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 120;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Quando o menu está aberto (classe adicionada via JS), vira um "X" */
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ------------------------------------------------------------------
   5. HERO
------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero__flow-lines { width: 100%; height: 100%; }
.flow-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 14 10;
  animation: dashFlow 18s linear infinite;
}
.flow-line--1 { stroke: var(--cyan); opacity: 0.5; }
.flow-line--2 { stroke: var(--violet); opacity: 0.35; animation-duration: 24s; animation-direction: reverse; }
.flow-line--3 { stroke: var(--cyan); opacity: 0.25; animation-duration: 30s; }

@keyframes dashFlow {
  to { stroke-dashoffset: -400; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
}

.hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 46px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
}
.hero__stats span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Ilustração do navegador */
.hero__art {
  position: relative;
}
.browser-svg { width: 100%; height: auto; overflow: visible; }
.browser-window {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
}
.browser-topbar { fill: var(--surface-2); }
.browser-dot { fill: #3a4066; }
.browser-dot--1 { fill: #ff6470; }
.browser-dot--2 { fill: #ffd166; }
.browser-dot--3 { fill: #4fd18b; }
.browser-bar { fill: #232a4d; }

.skeleton { fill: #232a4d; }
.skeleton--title { fill: #2c3457; }
.skeleton--btn { fill: url(#gradLine); opacity: 0.85; }
.skeleton--panel { fill: #1c2240; stroke: var(--border); stroke-width: 1; }

/* Traço que "desenha" a interface, como se a IA estivesse construindo o site */
.draw-path {
  fill: none;
  stroke: url(#gradLine);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawSite 5s ease-in-out infinite;
}
@keyframes drawSite {
  0% { stroke-dashoffset: 1400; opacity: 0; }
  8% { opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  85% { opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Nós flutuantes decorativos ao redor do navegador (sensação de IA/rede) */
.floating-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 18px rgba(0, 229, 199, 0.6);
  animation: floatNode 6s ease-in-out infinite;
}
.floating-node--1 { top: 6%; right: 8%; animation-delay: 0s; }
.floating-node--2 { bottom: 14%; left: -2%; animation-delay: 1.2s; width: 10px; height: 10px; }
.floating-node--3 { top: 46%; right: -3%; animation-delay: 2.4s; width: 8px; height: 8px; }

@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}


/* ------------------------------------------------------------------
   6. FAIXA DE SEGMENTOS ATENDIDOS (marquee simples)
------------------------------------------------------------------ */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
  background: var(--bg-alt);
}
.marquee__label {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}
.marquee__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  color: var(--text-muted);
  font-weight: 500;
}


/* ------------------------------------------------------------------
   7. SEÇÕES GERAIS
------------------------------------------------------------------ */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head--left { margin: 0 0 40px; text-align: left; }

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}
.section__subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Cartões de serviço */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 199, 0.35);
  box-shadow: var(--shadow-soft);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,229,199,0.16), rgba(124,92,255,0.16));
  color: var(--cyan);
  margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }


/* ------------------------------------------------------------------
   8. PROCESSO ("Como Funciona")
------------------------------------------------------------------ */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 28px;
  counter-reset: step;
}
.process__step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.process__number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 14px;
  opacity: 0.9;
}
.process__step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process__step p { color: var(--text-muted); font-size: 0.93rem; }


/* ------------------------------------------------------------------
   9. PORTFÓLIO
------------------------------------------------------------------ */
.portfolio-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.portfolio-card__thumb {
  height: 190px;
  position: relative;
  overflow: hidden;
}
.portfolio-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 40%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 26px);
}
.portfolio-card__thumb--1 { background: linear-gradient(135deg, #0b3d3a, #00e5c7); }
.portfolio-card__thumb--2 { background: linear-gradient(135deg, #2a1c58, #7c5cff); }
.portfolio-card__thumb--3 { background: linear-gradient(135deg, #12203f, #3a7bd5); }
.portfolio-card__info { padding: 20px 22px 24px; }
.portfolio-card__info h3 { font-size: 1.05rem; margin-bottom: 6px; }
.portfolio-card__info p { color: var(--text-muted); font-size: 0.9rem; }


/* ------------------------------------------------------------------
   10. DIFERENCIAIS
------------------------------------------------------------------ */
.diferenciais {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.diferenciais__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 26px;
}
.diferenciais__list li {
  padding-left: 20px;
  border-left: 2px solid transparent;
  border-image: var(--gradient) 1;
}
.diferenciais__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 6px;
}
.diferenciais__list span {
  color: var(--text-muted);
  font-size: 0.92rem;
}


/* ------------------------------------------------------------------
   11. DEPOIMENTOS
------------------------------------------------------------------ */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.testimonial p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--text);
}
.testimonial footer {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.testimonial footer span { display: block; font-size: 0.78rem; opacity: 0.7; }


/* ------------------------------------------------------------------
   12. PLANOS / PREÇOS
------------------------------------------------------------------ */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.price-card--highlight {
  border-color: rgba(0, 229, 199, 0.5);
  background: linear-gradient(180deg, rgba(0,229,199,0.06), var(--surface) 40%);
  transform: scale(1.03);
}
.price-card__tag {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--gradient);
  color: #06070d;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-card h3 { font-size: 1.3rem; }
.price-card__desc { color: var(--text-muted); font-size: 0.92rem; }
.price-card ul { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}
.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}


/* ------------------------------------------------------------------
   13. CTA FINAL
------------------------------------------------------------------ */
.cta {
  padding: 90px 0;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(124,92,255,0.14), transparent 60%), var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta p { color: var(--text-muted); margin-bottom: 30px; }


/* ------------------------------------------------------------------
   14. CONTATO / FORMULÁRIO
------------------------------------------------------------------ */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact__info { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.contact__info li { display: flex; align-items: center; gap: 12px; }
.contact__info svg { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; }
.contact__info a { font-size: 0.98rem; transition: color 0.2s ease; }
.contact__info a:hover { color: var(--cyan); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; color: var(--text-muted); }
.form-row input,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--cyan);
  outline: none;
}
.form-feedback {
  font-size: 0.88rem;
  color: var(--cyan);
  min-height: 1.2em;
}


/* ------------------------------------------------------------------
   15. RODAPÉ
------------------------------------------------------------------ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 70px 0 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 50px;
}
.footer__brand p {
  color: var(--text-dim);
  margin-top: 14px;
  max-width: 32ch;
  font-size: 0.9rem;
}
.footer__links {
  display: flex;
  gap: 70px;
  flex-wrap: wrap;
}
.footer__links h4 {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer__links a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--cyan); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}


/* ------------------------------------------------------------------
   16. BOTÃO FLUTUANTE DO WHATSAPP + VOLTAR AO TOPO
------------------------------------------------------------------ */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.55);
  z-index: 90;
  animation: pulseWhats 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); }

@keyframes pulseWhats {
  0%, 100% { box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.55); }
  50% { box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.9), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 89;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Classe adicionada via JS quando o usuário já rolou a página o suficiente */
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top svg { width: 18px; height: 18px; }


/* ------------------------------------------------------------------
   17. ANIMAÇÕES — "REVEAL ON SCROLL"
   Os elementos com a classe .reveal começam levemente invisíveis e
   deslocados; o script.js adiciona .is-visible quando entram na tela.
------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ------------------------------------------------------------------
   18. RESPONSIVIDADE
   Do tablet (1024px) até celulares pequenos (360px)
------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 480px; margin: 0 auto; }
  .diferenciais { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  /* Menu vira painel lateral no mobile */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(9, 11, 22, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border);
    padding: 110px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 110;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .nav__link { font-size: 1.05rem; }

  .menu-toggle { display: flex; }

  /* Fundo escurecido atrás do menu mobile aberto */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 105;
  }
  .nav-overlay.is-open { opacity: 1; pointer-events: auto; }
}

@media (min-width: 861px) {
  .btn--header { display: inline-flex; }
  .menu-toggle { display: none; }
}

@media (max-width: 720px) {
  .grid--3 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .diferenciais__list { grid-template-columns: 1fr; }
  .price-card--highlight { transform: none; }
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 70px; }
  .footer__inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: 2rem; }
  .hero__stats { gap: 26px; }
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .back-to-top { right: 16px; bottom: 82px; width: 40px; height: 40px; }
  .contact__form { padding: 24px 20px; }
}
