/* =========================================================
   ValDev — Soluções em Tecnologia
   ========================================================= */

/* ---------- Tokens (tema claro) ---------- */
:root {
  /* Cores da marca valdev (manual de marca) */
  --ink: #0a0f1b;          /* tinta: "V" e textos em fundo claro */
  --cyan: #22d3ee;         /* barra "/" em fundo escuro, botões de ação */
  --cyan-hover: #67e8f9;
  --teal: #0e7490;         /* barra "/" em fundo claro, links */
  --whatsapp: #25d366;

  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --text: #0a0f1b;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: var(--teal);
  --primary-hover: #155e75;
  --primary-soft: #e3f7fb;
  --logo-v: var(--ink);
  --logo-slash: var(--teal);
  --chip-bg: var(--ink);   /* quadrado escuro dos ícones (como o ícone da marca) */
  --focus: var(--teal);
  --header-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 1px 2px rgba(10, 15, 27, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 15, 27, 0.08);
  --shadow-lg: 0 25px 50px rgba(10, 15, 27, 0.15);

  --contact-bg: #0a0f1b;
  --footer-bg: #060a12;
  --success: #16a34a;
  --error: #dc2626;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Plus Jakarta Sans', var(--font-body);
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --mask-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
  --mask-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z'/%3E%3C/svg%3E");

  --radius: 14px;
  --radius-lg: 20px;
  --container: 1160px;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Tokens (tema escuro) ---------- */
[data-theme="dark"] {
  --bg: #0a0f1b;
  --bg-alt: #0f1522;
  --surface: #121a29;
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --border: #1f2a3c;
  --primary: var(--cyan);
  --primary-hover: var(--cyan-hover);
  --primary-soft: rgba(34, 211, 238, 0.12);
  --logo-v: #f4f6fa;
  --logo-slash: var(--cyan);
  --chip-bg: #1e293b;
  --focus: var(--cyan);
  --header-bg: rgba(10, 15, 27, 0.85);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.5);
  --contact-bg: #111827;
  --footer-bg: #060a12;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: var(--text);
}

p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 820px; }

.gradient-text { color: var(--primary); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.btn-primary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(14, 116, 144, 0.25);
}
.btn-primary:hover { background: var(--cyan-hover); color: var(--ink); box-shadow: 0 12px 28px rgba(14, 116, 144, 0.32); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--whatsapp); color: var(--text); }
.btn-outline .icon { color: #16a34a; font-size: 1.2em; }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:hover { background: var(--primary-soft); transform: rotate(-8deg); }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo valdev: símbolo V/ (SVG) + nome em minúsculas */
.logo {
  --logo-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-head);
  font-size: var(--logo-size);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--logo-v);
}
.logo:hover { color: var(--logo-v); }
.logo-symbol { width: auto; height: 0.74em; flex-shrink: 0; overflow: visible; }
.logo-symbol path { fill: none; stroke-width: 36; stroke-linecap: round; stroke-linejoin: round; }
.logo-symbol .logo-v { stroke: var(--logo-v); }
.logo-symbol .logo-slash { stroke: var(--logo-slash); }
.logo-word { transform: translateY(-0.04em); }

.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-list a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-list a:hover, .nav-list a.active { color: var(--primary); background: var(--primary-soft); }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -15%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.14), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { content: "// "; }
.eyebrow-light { color: var(--cyan); }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1.6rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; color: var(--text-muted); font-size: 0.92rem; }
.hero-points .icon { color: var(--success); margin-right: 0.35rem; }

/* Ilustração */
.hero-visual { position: relative; }

.mock-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.mock-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.mock-bar > span:nth-child(2) { background: #fbbf24; }
.mock-bar > span:nth-child(3) { background: #34d399; }
.mock-url {
  flex: 1;
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.mock-body { display: flex; min-height: 300px; }
.mock-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px;
  background: var(--chip-bg);
  color: var(--cyan);
}
.mock-main { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 18px; }

.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
}
.mock-card small { display: block; color: var(--text-muted); font-size: 0.72rem; }
.mock-card b { font-family: var(--font-head); font-size: 1.15rem; }

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-alt);
}
.mock-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: var(--primary);
  opacity: 0.85;
  animation: grow 1.2s var(--ease) both;
}
.mock-chart span:nth-child(odd) { opacity: 0.55; }
@keyframes grow { from { height: 0; } }

.mock-lines { display: grid; gap: 8px; }
.mock-lines span { height: 9px; border-radius: 6px; background: var(--border); }
.mock-lines span:nth-child(2) { width: 80%; }
.mock-lines span:nth-child(3) { width: 55%; }

.floating-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 5s ease-in-out infinite;
}
.floating-badge .icon { color: var(--primary); }
.badge-1 { left: -24px; bottom: 40px; }
.badge-2 { right: -16px; top: -18px; animation-delay: -2.5s; }
.badge-2 .icon { color: var(--success); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  background: var(--chip-bg);
  color: var(--cyan);
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
}
.card-link .icon { transition: transform 0.2s var(--ease); }
.card-link:hover .icon { transform: translateX(4px); }

.check-list { display: grid; gap: 0.45rem; font-size: 0.92rem; color: var(--text-muted); }
.check-list li { position: relative; padding-left: 1.6rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 0.85em;
  height: 0.85em;
  background: var(--primary);
  -webkit-mask: var(--mask-check) no-repeat center / contain;
  mask: var(--mask-check) no-repeat center / contain;
}

/* Segmentos */
.segment-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.2rem;
  border-radius: 18px;
  font-size: 1.6rem;
  background: var(--primary-soft);
  color: var(--primary);
}

.segment-more {
  margin: 40px auto 0;
  text-align: center;
  color: var(--text-muted);
}
.segment-more .icon { color: var(--primary); margin-right: 0.4rem; }
.segment-more a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Como trabalhamos */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--cyan);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--bg);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Diferenciais */
.feature {
  display: flex;
  gap: 1rem;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.feature-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.15rem;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.tech { margin-top: 56px; text-align: center; }
.tech > p { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.tech-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.tech-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}
.tech-list .icon { color: var(--primary); }

/* Dúvidas (FAQ) */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq details[open] { border-color: var(--primary); box-shadow: var(--shadow-md); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--primary);
  -webkit-mask: var(--mask-plus) no-repeat center / contain;
  mask: var(--mask-plus) no-repeat center / contain;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text-muted); }

/* ---------- Contato ---------- */
.section-contact {
  position: relative;
  overflow: hidden;
  background: var(--contact-bg);
  color: #cbd5e1;
}
.section-contact::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 65%);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.contact-info h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.contact-info > p { color: #94a3b8; font-size: 1.05rem; }

.contact-list { display: grid; gap: 14px; margin-top: 2rem; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  word-break: break-word;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.contact-list a:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(4px); color: #fff; }
.contact-list .icon { font-size: 1.5rem; color: var(--cyan); }
.contact-list li:first-child .icon { color: var(--whatsapp); }
.contact-list small { display: block; color: #94a3b8; font-weight: 500; font-size: 0.78rem; }

.contact-form {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-status { margin: 0.9rem 0 0; min-height: 1.4em; font-size: 0.92rem; font-weight: 500; text-align: center; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }
.form-status.info { color: var(--text-muted); }

/* ---------- Rodapé ---------- */
.footer { background: var(--footer-bg); color: #94a3b8; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 32px;
}
.footer .logo { --logo-size: 1.45rem; --logo-v: #f4f6fa; --logo-slash: var(--cyan); }
.footer-slogan { color: #cbd5e1; font-weight: 500; }
.footer-brand p { margin: 0.5rem 0 0; font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-links a { color: #cbd5e1; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  transition: background 0.2s var(--ease);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.copyright {
  margin: 0;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  font-size: 1.9rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s var(--ease);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: 0.24s; }

/* =========================================================
   Responsividade
   ========================================================= */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }

  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 16px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-list.open { transform: none; opacity: 1; visibility: visible; }
  .nav-list a { padding: 0.8rem 1rem; border-radius: 12px; font-size: 1rem; }
  .nav-cta-mobile { display: block; margin-top: 0.5rem; }
  .nav-cta-mobile .btn { display: flex; width: 100%; color: var(--ink); background: var(--cyan); }

  .hero { padding: 48px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-points { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .mock-window { transform: none; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .container { padding: 0 16px; }

  .hero-buttons .btn { width: 100%; }
  .badge-1 { left: 8px; bottom: -18px; }
  .badge-2 { right: 8px; top: -18px; }
  .mock-body { min-height: 240px; }
  .mock-side { padding: 18px 12px; }
  .mock-main { padding: 14px; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

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

/* ---------- Aviso de privacidade no formulário ---------- */
.form-privacy { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.form-privacy .icon { margin-right: 0.3rem; color: var(--success); }
.form-privacy a { text-decoration: underline; text-underline-offset: 2px; }
.copyright a { color: #cbd5e1; text-decoration: underline; text-underline-offset: 2px; }
.copyright a:hover { color: #fff; }

/* ---------- Página de Política de Privacidade ---------- */
.legal { padding-top: 56px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal strong { color: var(--text); }
.legal .check-list { margin-bottom: 1rem; font-size: 1rem; }
.legal-updated { font-size: 0.9rem; }
.legal-back { margin-top: 2.5rem; }
.legal .header-inner .btn { font-size: 0.85rem; }

/* =========================================================
   Melhorias de experiência
   ========================================================= */

/* Ícone dos diferenciais */
.feature-icon { display: grid; place-items: center; }

/* Formulário: anti-spam, erros por campo */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { display: block; min-height: 0; margin-top: 0.3rem; font-size: 0.8rem; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }
.field .invalid { border-color: var(--error); }
.field .invalid:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15); border-color: var(--error); }
[data-theme="dark"] { --error: #f87171; --success: #4ade80; }

/* Confirmação de envio */
.form-success {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: pop 0.4s var(--ease);
}
.form-success:focus { outline: none; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--text-muted); }
.form-success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  font-size: 2rem;
}
.btn-whatsapp { background: #16a34a; color: #fff; white-space: normal; }
.btn-whatsapp:hover { background: #15803d; color: #fff; }
.btn-text {
  display: block;
  margin: 1rem auto 0;
  padding: 0.4rem;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

/* Botões flutuantes */
.whatsapp-float { transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0.25s; }
.whatsapp-float.is-hidden { opacity: 0; visibility: hidden; transform: scale(0.6); }

.back-to-top {
  position: fixed;
  right: 27px;
  bottom: 92px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s, bottom 0.25s var(--ease);
}
.back-to-top:hover { color: var(--primary); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
/* Sem o botão do WhatsApp, o "voltar ao topo" desce para o canto */
.back-to-top.is-low { bottom: 24px; }

/* Menu mobile aberto: trava a rolagem da página */
body.menu-open { overflow: hidden; }

@media (max-width: 640px) {
  .copyright { padding-bottom: 96px; }
  .form-success { padding: 32px 22px; }
}

/* Página 404 */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 0;
  text-align: center;
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(14, 116, 144, 0.12), transparent 45%),
    var(--bg);
}
.not-found .logo { --logo-size: 1.9rem; }
.not-found .not-found-code {
  margin: 1.5rem 0 0;
  font-family: var(--font-head);
  font-size: clamp(6rem, 22vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--primary);
}
.not-found h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.not-found p { color: var(--text-muted); max-width: 480px; margin-left: auto; margin-right: auto; }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.8rem; }

/* Aproxima o ponto final do "ê" nos títulos (ajuste de espaçamento da fonte) */
.kern-dot { margin-left: -0.06em; }
