:root {
  --blue: #0080ff;
  --blue-dark: #0066cc;
  --blue-soft: #e3f0ff;
  --navy: #0e2a47;
  --text: #0e2a47;
  --muted: #4f6782;
  --mist: #f1f6fc;
  --line: #d9e4f1;
  --white: #ffffff;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
h1, h2 { font-weight: 300; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; margin-bottom: .5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(0, 128, 255, .45); outline-offset: 3px; border-radius: 4px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--blue);
  background: var(--blue); color: #fff; font: inherit; font-weight: 500; font-size: 1rem;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue-dark); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.link { font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.link:hover { color: var(--blue); }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand-logo { width: 128px; flex-shrink: 0; }
.brand-slogan {
  color: var(--muted); font-size: .85rem; line-height: 1.25;
  padding-left: 14px; border-left: 1px solid var(--line); max-width: 12ch;
}
.menu { display: flex; align-items: center; gap: 32px; }
.menu a:not(.btn) { color: var(--text); text-decoration: none; font-size: .98rem; }
.menu a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.05; margin-bottom: 28px; max-width: 17ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 52ch; }
.lead strong { color: var(--text); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Resposta de IA (elemento de destaque) */
.chat { margin: 0; }
.chat-window {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 1px 0 var(--line), 0 40px 80px -40px rgba(0, 102, 204, .35);
}
.chat-q {
  margin: 0 0 24px auto; max-width: 85%; width: fit-content;
  background: var(--mist); border-radius: 18px 18px 4px 18px; padding: 12px 18px;
}
.chat-a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(from 200deg, #9fb6cf, #dbe6f2, #9fb6cf); }
.chat-body { position: relative; min-height: 210px; }
.a-line { margin: 0 0 14px; }
.a-line strong { font-weight: 600; color: var(--blue-dark); background: var(--blue-soft); padding: 1px 6px; border-radius: 6px; }
.source { margin-bottom: 22px; }
.cite {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--blue-dark);
  border: 1px solid #b9d7fb; border-radius: 999px; padding: 4px 12px 4px 6px;
}
.cite::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--blue); }
.skel { display: grid; gap: 8px; }
.skel b { display: block; height: 10px; border-radius: 6px; background: var(--mist); }
.skel b:last-child { width: 62%; }
.chat figcaption { font-size: .88rem; color: var(--muted); margin-top: 14px; padding-left: 4px; }

.typing { position: absolute; top: 4px; left: 0; display: flex; gap: 5px; opacity: 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb6cf; }

/* Animação de entrada única: digitando… depois a resposta aparece */
@media (prefers-reduced-motion: no-preference) {
  .typing { animation: typing 1.1s ease .3s both; }
  .typing i { animation: blink .9s ease-in-out infinite; }
  .typing i:nth-child(2) { animation-delay: .15s; }
  .typing i:nth-child(3) { animation-delay: .3s; }
  .a-line { animation: answer .5s ease both; animation-delay: calc(1.3s + var(--d) * .22s); }
}
@keyframes typing { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes answer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Clientes */
.clients { padding: clamp(56px, 7vw, 88px) 0; }
.clients .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.clients-title { font-size: .95rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--muted); margin: 0; text-align: center; }
.clients-list {
  list-style: none; margin: 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; max-width: 960px;
}
.clients-list li { display: flex; align-items: center; justify-content: center; min-height: 56px; }
.clients-list img { height: var(--h, 28px); width: auto; }

/* WhatsApp */
.btn-wa { gap: 10px; margin: 8px 0 24px; }
.btn-wa svg { width: 20px; height: 20px; fill: currentColor; }
.contact-alt { margin: 0; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; box-shadow: 0 10px 30px -8px rgba(0, 102, 204, .6);
  transition: background-color .2s, opacity .25s, transform .25s;
}
.wa-float.hidden { opacity: 0; transform: scale(.8); pointer-events: none; }
.wa-float:hover { background: var(--blue-dark); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Blocos */
.block { padding: clamp(72px, 10vw, 128px) 0; }
.block-mist { background: var(--mist); }
.section-lead { font-size: 1.15rem; max-width: 52ch; margin-bottom: 48px; }

/* GEO */
.geo-intro { max-width: 820px; }
.definition { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 300; line-height: 1.4; letter-spacing: -.01em; margin-bottom: 24px; }
.definition strong { font-weight: 500; }
.geo-intro .muted { max-width: 62ch; }

.table-wrap { margin: 56px 0 0; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; text-align: left; min-width: 520px; }
.compare th, .compare td { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 500; font-size: 1.15rem; border-bottom: 1.5px solid var(--text); }
.compare tbody th { font-weight: 400; color: var(--muted); width: 22%; }
.compare td { color: var(--muted); width: 39%; }
.compare th:last-child, .compare td:last-child { background: var(--blue-soft); color: var(--text); }
.compare thead th:last-child { color: var(--blue-dark); border-bottom-color: var(--blue); }

.sub { font-size: 1.35rem; margin: 80px 0 28px; }

/* Por que GEO */
.why .sub { margin-bottom: 12px; }
.why-lead { color: var(--muted); max-width: 60ch; margin-bottom: 40px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; }
.stats > div { border-top: 1.5px solid var(--blue); padding-top: 20px; }
.stats dt { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 300; letter-spacing: -.04em; line-height: 1; color: var(--blue-dark); margin-bottom: 14px; }
.stats dd { margin: 0; color: var(--muted); }
.stats dd a { display: block; margin-top: 10px; font-size: .88rem; color: var(--muted); text-underline-offset: 3px; }
.stats dd a:hover { color: var(--blue-dark); }
.why-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.why-list li { color: var(--muted); }
.why-list strong { display: block; color: var(--text); font-weight: 500; font-size: 1.1rem; margin-bottom: 6px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; border-top: 1.5px solid var(--line); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font-size: .95rem; color: var(--blue); margin-bottom: 10px; }
.steps h4 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }
#como-trabalhamos h2 { margin-bottom: 48px; }

/* Serviços */
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 400; letter-spacing: -.02em; }
.service p { color: var(--muted); margin: 0; max-width: 58ch; }
.service .tags { grid-column: 2; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .88rem; color: var(--muted); border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 4px 12px; }
.service-main {
  background: var(--blue); color: #fff; border: 0; border-radius: 24px;
  padding: clamp(28px, 4vw, 48px); margin-bottom: 24px;
}
.service-main h3 { font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
.service-main p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; margin-bottom: 20px; }
.service-main .link { color: #fff; }
.service-main .link:hover { color: #fff; opacity: .85; }
.service-main + .service { border-top: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.faq-grid h2 { position: sticky; top: 110px; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 22px 44px 22px 0; font-size: 1.12rem; font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::before, summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--blue);
  transition: transform .25s ease;
}
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
summary:hover { color: var(--blue-dark); }
details p { color: var(--muted); padding: 0 44px 24px 0; margin: 0; max-width: 68ch; }

/* Contato */
.contact { background: var(--navy); color: #fff; padding: clamp(72px, 10vw, 128px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-copy p { color: rgba(255, 255, 255, .75); max-width: 40ch; }
.contact-copy a { color: #fff; text-underline-offset: 4px; }
.contact-copy h2 { max-width: 14ch; }

.form { background: var(--white); color: var(--text); border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 16px; }
label { font-size: .92rem; font-weight: 500; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); width: 100%; min-height: 48px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 128, 255, .15); }
.invalid { border-color: #d93036; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); margin: 6px 0 24px; cursor: pointer; }
.consent input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #157a3e; }
.form-status.err { color: #d93036; }

/* Rodapé */
.site-footer { padding: 40px 0; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 110px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--blue); }
.copy { margin: 0; color: var(--muted); font-size: .9rem; }

/* Responsivo */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
}
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 18ch; }
  .chat { max-width: 560px; }
  .faq-grid { gap: 8px; }
  .faq-grid h2 { position: static; }
  .service { grid-template-columns: minmax(0, 1fr); }
  .service .tags { grid-column: 1; }
  .stats, .why-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 780px) {
  .nav { height: 68px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -10px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--text); transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 20px;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu .btn { margin-top: 18px; min-height: 50px; }
  html { scroll-padding-top: 76px; }
  .field-row { flex-direction: column; gap: 0; }
}
@media (max-width: 560px) {
  .brand-logo { width: 104px; }
  .brand { gap: 10px; }
  .brand-slogan { font-size: .75rem; padding-left: 10px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .chat-q { max-width: 92%; }
  .chat-a { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .chat-avatar { width: 22px; height: 22px; }
  .chat-body { min-height: 0; }
  .typing { top: -26px; left: 32px; }
  .compare { min-width: 0; font-size: .95rem; }
  .compare th, .compare td { padding: 14px 10px; }
  .compare tbody th { width: 30%; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .clients-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .clients-list img { height: calc(var(--h, 28px) * .85); }
  .btn-wa { width: 100%; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
