/* =========================================================
   Atriuz — landing page
   Fontes: Syne (títulos), Roboto (texto), Inter (botões/UI)
   ========================================================= */

:root {
  --ink: #101012;
  --ink-2: #2A3142;
  --navy: #000218;
  --text: #575E70;
  --muted: #7A8296;
  --brand: #1F5ABB;
  --brand-btn: #005BC0;
  --brand-hi: #4689F7;
  --brand-lo: #376DC4;
  --brand-deep: #163F87;
  --sky: #EFF7FF;
  --sky-2: #E8EEFE;
  --line: #E6EBF4;
  --wa: #25D366;
  --bg: #FFFFFF;

  --f-display: "Syne", system-ui, sans-serif;
  --f-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand-btn);
  color: #fff;
  font-family: var(--f-ui);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid rgba(70, 137, 247, .55);
  outline-offset: 3px;
  border-radius: 8px;
}

.grad-text {
  background: linear-gradient(100deg, var(--brand-hi) 0%, var(--brand) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nowrap { white-space: nowrap; }
.show-sm { display: none; }

.grad-text-light {
  background: linear-gradient(100deg, #9CC2FF 0%, #4689F7 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

.btn-primary {
  background: var(--brand-btn);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 91, 192, .7);
}
.btn-primary:hover { background: #004FA8; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 91, 192, .75); }

.btn-ghost {
  background: transparent;
  color: var(--brand-btn);
}
.btn-ghost:hover { background: var(--sky); }
.btn-ghost svg { transition: transform .25s var(--ease); }
.btn-ghost:hover svg { transform: translateY(3px); }

.btn-white {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5);
}
.btn-white:hover { transform: translateY(-2px); background: #F3F7FF; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16, 40, 100, .35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand svg { width: 40px; height: 24px; }
.brand span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--brand);
  letter-spacing: .01em;
}
.brand-light svg { color: #fff; }
.brand-light span { color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 12px;
}
.nav-links a {
  position: relative;
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-hi);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(31, 90, 187, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 90, 187, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 18%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 18%, #000 20%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: min(1100px, 120vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(70, 137, 247, .22), rgba(70, 137, 247, 0));
  filter: blur(10px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--sky-2);
  box-shadow: 0 6px 18px -12px rgba(31, 90, 187, .5);
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.eyebrow-ico {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-hi), var(--brand));
}
.eyebrow-ico svg { width: 16px; height: 16px; animation: twinkle 3.2s ease-in-out infinite; }

.hero h1 {
  margin: 26px auto 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 7.2vw, 80px);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--ink);
}
.hero h1 .grad-text { font-weight: 600; padding-bottom: .06em; }

.hero-sub {
  max-width: 700px;
  margin: 26px auto 0;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--text);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  max-width: 1120px;
  margin: clamp(48px, 7vw, 80px) auto 0;
  padding-bottom: clamp(56px, 8vw, 96px);
}
.mock {
  position: relative;
  border-radius: clamp(10px, 1.6vw, 18px);
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(31, 90, 187, .1),
    0 2px 4px rgba(16, 16, 18, .04),
    0 50px 90px -30px rgba(16, 40, 100, .35);
}
.mock-svg { width: 100%; height: auto; }

.mk-mover { animation: mk-move 9s var(--ease) infinite; }
.mk-cursor { animation: mk-cursor 9s ease-in-out infinite; }
.mk-ring { opacity: 0; animation: mk-ring 9s ease-out infinite; }
.mk-slot { animation: mk-slot 9s ease-in-out infinite; }

@keyframes mk-move {
  0%   { transform: translate(0, 0); opacity: 0; }
  5%   { transform: translate(0, 0); opacity: 1; }
  24%  { transform: translate(0, 0); }
  30%  { transform: translate(-2px, -8px); }
  56%  { transform: translate(219px, 176px); }
  90%  { transform: translate(219px, 176px); opacity: 1; }
  96%  { transform: translate(219px, 176px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes mk-cursor {
  0%, 16%  { opacity: 0; transform: translate(14px, 18px); }
  22%, 58% { opacity: 1; transform: translate(0, 0); }
  66%, 100% { opacity: 0; transform: translate(10px, 14px); }
}
@keyframes mk-ring {
  0%, 56% { opacity: 0; }
  60%     { opacity: 1; }
  78%, 100% { opacity: 0; }
}
@keyframes mk-slot {
  0%, 50%  { opacity: 1; }
  56%, 94% { opacity: 0; }
  100%     { opacity: 1; }
}

/* Avisos flutuantes do hero */
.toast {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(31, 90, 187, .12);
  box-shadow: 0 24px 48px -20px rgba(16, 40, 100, .4);
  text-align: left;
}
.t-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  color: #fff;
}
.t-ico svg { width: 22px; height: 22px; }
.t-ai { background: linear-gradient(135deg, var(--brand-hi), var(--brand)); }
.t-wa { background: var(--wa); }
.t-bell { background: #F2A93B; }
.t-body { display: grid; gap: 1px; min-width: 0; }
.t-body strong {
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.t-body > span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.t-bar {
  display: block;
  height: 4px;
  margin-top: 7px;
  border-radius: 4px;
  background: var(--sky-2);
  overflow: hidden;
}
.t-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-hi), var(--brand));
  transform-origin: left;
  transform: scaleX(0);
}
.toast-ai.on .t-bar::after { animation: bar-fill 1.6s .2s var(--ease) forwards; }

.toast-ai    { top: 9%; right: -36px; }
.toast-wa    { top: 52%; left: -40px; }
.toast-renew { bottom: calc(clamp(56px, 8vw, 96px) + 3%); right: -48px; }

/* ---------- Ramos ---------- */
.ramos { padding: 0 0 clamp(64px, 9vw, 104px); }
.ramos-label {
  text-align: center;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ramos-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.ramos-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: transform .25s var(--ease), border-color .25s;
}
.ramos-list li:hover { transform: translateY(-2px); border-color: #C9D8F7; }
.ramos-list svg { width: 22px; height: 22px; color: var(--brand); }
.ramos-list li.is-key { background: var(--sky); border-color: #D6E4FB; color: var(--brand); }

/* ---------- Seções ---------- */
.section { padding: clamp(80px, 11vw, 136px) 0; position: relative; }

.section-head { max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.kicker svg { width: 16px; height: 16px; }

.section h2,
.cta h2 {
  margin-top: 16px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
}
.lead {
  max-width: 660px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
}

/* ---------- Seção IA (escura) ---------- */
.section-dark {
  background:
    radial-gradient(70% 55% at 85% 0%, rgba(70, 137, 247, .28), transparent 65%),
    radial-gradient(55% 45% at 0% 100%, rgba(31, 90, 187, .32), transparent 65%),
    var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.section-dark h2 { color: #fff; }
.section-dark .lead { color: rgba(255, 255, 255, .72); }
.section-dark .kicker { color: #8DB6FF; }

.ai-stage {
  display: grid;
  grid-template-columns: minmax(0, 420px) 112px minmax(0, 580px);
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(48px, 7vw, 80px);
}
.doc-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }

.scan-hit {
  fill: rgba(70, 137, 247, .12);
  stroke: #4689F7;
  stroke-width: 1.2;
  opacity: 0;
  transition: opacity .35s;
}
.scan-hit.on { opacity: 1; }
.scan-beam { opacity: 0; }
.seq-run .scan-beam { animation: beam 4.6s linear forwards; }
@keyframes beam {
  0%   { transform: translateY(40px); opacity: 0; }
  5%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(440px); opacity: 0; }
}

.ai-link {
  position: relative;
  display: grid;
  place-items: center;
  height: 120px;
}
.ai-link-line {
  position: absolute;
  inset: 50% 0 auto 0;
  width: 100%;
  height: 24px;
  transform: translateY(-50%);
  overflow: visible;
}
.ai-link-line path {
  fill: none;
  stroke: #4689F7;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 8;
  animation: dash-flow 1s linear infinite;
}
.ai-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B97FA, var(--brand));
  box-shadow: 0 0 0 8px rgba(70, 137, 247, .14), 0 0 40px rgba(70, 137, 247, .6);
  color: #fff;
}
.ai-orb::before,
.ai-orb::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(141, 182, 255, .55);
  animation: orb-ring 2.6s ease-out infinite;
}
.ai-orb::after { animation-delay: 1.3s; }
.ai-orb svg { width: 20px; height: 20px; margin-bottom: -2px; animation: twinkle 2.4s ease-in-out infinite; }
.ai-orb b { font-family: var(--f-display); font-size: 13px; font-weight: 700; line-height: 1; margin-top: -10px; }

.extract-card {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}
.extract-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.extract-title { display: grid; gap: 8px; justify-items: start; }
.extract-title strong { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.chip-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-hi), var(--brand));
  color: #fff;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
}
.chip-ai svg { width: 14px; height: 14px; }

.extract-status {
  flex: none;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--brand);
}
.extract-status > span { display: inline-flex; align-items: center; gap: 8px; }
.extract-status .st-done { display: none; }
.extract-status.on { background: #E6F4EA; color: #1E7B43; }
.extract-status.on .st-reading { display: none; }
.extract-status.on .st-done { display: inline-flex; animation: pop .4s var(--ease); }
.st-done svg { width: 16px; height: 16px; }
.dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-hi);
  animation: blink 1s ease-in-out infinite;
}

.x-table { display: grid; gap: 4px; }
.x-row {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) .5fr .95fr .95fr;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.x-row:not(.x-th) { background: #F8FAFD; }
.x-th {
  padding-block: 6px;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.x-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); min-width: 0; }
.x-ok {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #E6F4EA;
  color: #1E7B43;
}
.x-ok svg { width: 13px; height: 13px; }
.x-serial { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--muted); }
.x-val { text-align: right; font-weight: 700; white-space: nowrap; }

.extract-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.extract-foot > div { display: grid; }
.extract-foot > div span { font-size: 12px; color: var(--muted); }
.extract-foot strong { font-family: var(--f-ui); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.x-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand-btn);
  color: #fff;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 600;
}
.x-btn svg { width: 16px; height: 16px; }

.ai-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 8vw, 88px);
}
.ai-card {
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.ai-card:hover { background: rgba(255, 255, 255, .07); border-color: rgba(141, 182, 255, .35); transform: translateY(-3px); }
.ai-card-ico {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-hi), var(--brand));
  box-shadow: 0 10px 24px -10px rgba(70, 137, 247, .9);
  color: #fff;
}
.ai-card-ico svg { width: 24px; height: 24px; }
.ai-card h3 {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: #fff;
}
.ai-card p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .68); }

/* ---------- Plataforma ---------- */
.pipeline {
  position: relative;
  margin-top: clamp(48px, 7vw, 72px);
}
.pipe-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.pipe-track {
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.pipe-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--brand-hi), var(--brand));
  transform-origin: left center;
  transform: scaleX(0);
}
.seq-run .pipe-fill { animation: fill-x 5s linear forwards; }

.pipe-step {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.pipe-dot {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: #9AA3B5;
  transition: background .4s, border-color .4s, color .4s, box-shadow .4s, transform .4s var(--ease);
}
.pipe-dot svg { width: 24px; height: 24px; }
.pipe-step.on .pipe-dot {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-hi), var(--brand));
  color: #fff;
  box-shadow: 0 0 0 7px rgba(70, 137, 247, .14), 0 12px 24px -10px rgba(31, 90, 187, .7);
  transform: scale(1.06);
}
.pipe-text { display: grid; gap: 4px; }
.pipe-text strong { font-family: var(--f-ui); font-size: 16px; font-weight: 600; color: var(--ink); }
.pipe-text small { font-size: 14px; color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 8vw, 88px);
}
.feature {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: #D3E0F8;
  box-shadow: 0 24px 44px -28px rgba(16, 40, 100, .35);
}
.f-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--brand);
  transition: background .3s, color .3s;
}
.f-ico svg { width: 24px; height: 24px; }
.feature:hover .f-ico { background: var(--brand); color: #fff; }
.f-ico-wa { background: #E7F9EE; color: #128C4A; }
.feature:hover .f-ico-wa { background: var(--wa); color: #fff; }
.feature h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--ink);
}
.feature p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--text); }

/* ---------- WhatsApp ---------- */
.section-sky { background: linear-gradient(180deg, var(--sky) 0%, #F7FBFF 60%, #fff 100%); }
.wa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.wa-copy h2 {
  padding-left: 24px;
  border-left: 5px solid var(--brand);
}
.checklist { display: grid; gap: 14px; margin-top: 32px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  color: var(--ink-2);
}
.checklist svg {
  flex: none;
  width: 28px; height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.phone-wrap {
  position: relative;
  display: grid;
  justify-items: center;
}
.phone-wrap::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 137, 247, .28), transparent);
  filter: blur(20px);
}
.phone {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 320 / 640;
  padding: 11px;
  border-radius: 48px;
  background: #0B1020;
  box-shadow:
    inset 0 0 0 2px #2A3142,
    0 50px 90px -30px rgba(16, 40, 100, .55);
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 3;
  width: 92px; height: 26px;
  border-radius: 14px;
  background: #0B1020;
  transform: translateX(-50%);
}
.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #EFEAE2;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 52px 16px 12px;
  background: #075E54;
  color: #fff;
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-hi);
}
.chat-avatar svg { width: 22px; height: 14px; }
.chat-name { display: grid; line-height: 1.2; }
.chat-name strong { font-family: var(--f-ui); font-size: 15px; font-weight: 600; }
.chat-name small { font-size: 12px; opacity: .8; }

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px;
  overflow: hidden;
  background-image: radial-gradient(rgba(7, 94, 84, .06) 1px, transparent 1.2px);
  background-size: 14px 14px;
  transition: opacity .5s;
}
.chat-day {
  align-self: center;
  margin-bottom: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #fff;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 500;
  color: #54656F;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.bubble {
  display: none;
  max-width: 84%;
  padding: 7px 10px 6px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.38;
  color: #111B21;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}
.bubble.on { display: block; animation: bubble-in .38s var(--ease) both; }
.bubble.out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 4px; }
.bubble.in  { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.bubble em {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 6px 0 -2px 10px;
  font-style: normal;
  font-size: 10.5px;
  color: #667781;
}
.bubble em svg { width: 16px; height: 11px; color: #53BDEB; }
.bubble.file.on { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bubble.file .file-ico { width: 30px; height: 34px; flex: none; }
.bubble.file span { display: grid; line-height: 1.25; }
.bubble.file b { font-weight: 500; font-size: 13px; }
.bubble.file small { font-size: 11px; color: #667781; }
.bubble.file em { margin-left: auto; }
.bubble.typing.on { display: inline-flex; gap: 4px; padding: 11px 13px; }
.bubble.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #8696A0;
  animation: typing 1.1s ease-in-out infinite;
}
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 18px;
}
.chat-input span {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #8696A0;
}
.chat-input i {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #00A884;
}

.phone-badge {
  position: absolute;
  z-index: 4;
  top: 18%;
  left: max(0px, calc(50% - 250px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 36px -16px rgba(16, 40, 100, .4);
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  animation: float 5s ease-in-out infinite;
}
.phone-badge svg {
  width: 30px; height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: #FFF1DC;
  color: #C77A0E;
}

.seq-out .chat { opacity: 0; }

/* ---------- Segmentos ---------- */
.seg-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 7vw, 72px);
}
.seg-card {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.seg-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(16, 40, 100, .4); }
.seg-art { border-bottom: 1px solid var(--line); }
.art-svg { width: 100%; height: auto; }
.seg-body { padding: 28px 30px 32px; }
.seg-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--sky);
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}
.seg-tag svg { width: 18px; height: 18px; }
.seg-body h3 {
  margin-top: 16px;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.seg-body p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--text); }

.seg-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.seg-mini {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .3s var(--ease), border-color .3s;
}
.seg-mini:hover { transform: translateY(-3px); border-color: #D3E0F8; }
.seg-mini h3 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.seg-mini p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--text); }

/* Animações das ilustrações */
.wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin-back 1.6s linear infinite;
}
.wheel-front { animation-duration: 1s; }
.tractor-body { animation: rumble .35s ease-in-out infinite alternate; }
.field-rows path { animation: field 1.1s linear infinite; }
.smoke {
  transform-box: fill-box;
  transform-origin: center;
  animation: smoke 2.2s ease-out infinite;
}
.smoke.s2 { animation-delay: 1.1s; }
.clouds { animation: drift 18s ease-in-out infinite alternate; }
.sun-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: sun 4s ease-in-out infinite;
}

.boom {
  transform-box: view-box;
  transform-origin: 204px 132px;
  animation: boom 4.8s ease-in-out infinite;
}
.stick {
  transform-box: view-box;
  transform-origin: 305px 67px;
  animation: stick 4.8s ease-in-out infinite;
}
.hook { animation: hook 6s ease-in-out infinite; }

@keyframes spin-back { to { transform: rotate(-360deg); } }
@keyframes rumble { to { transform: translateY(-1.5px); } }
@keyframes field { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -46; } }
@keyframes smoke {
  0%   { transform: translate(0, 0) scale(.6); opacity: 0; }
  20%  { opacity: .9; }
  100% { transform: translate(14px, -34px) scale(1.8); opacity: 0; }
}
@keyframes drift { to { transform: translateX(40px); } }
@keyframes sun { 50% { transform: scale(1.15); opacity: .4; } }
@keyframes boom {
  0%, 100% { transform: rotate(0deg); }
  45%      { transform: rotate(-11deg); }
  60%      { transform: rotate(-11deg); }
}
@keyframes stick {
  0%, 100% { transform: rotate(0deg); }
  45%      { transform: rotate(14deg); }
  60%      { transform: rotate(14deg); }
}
@keyframes hook { 50% { transform: translateY(14px); } }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(80px, 10vw, 120px); }
.cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: clamp(24px, 3vw, 36px);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(70, 137, 247, .55), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(31, 90, 187, .6), transparent 60%),
    linear-gradient(135deg, #0B2C6E 0%, var(--navy) 100%);
}
.cta-mark {
  position: absolute;
  z-index: -1;
  right: -60px;
  bottom: -50px;
  width: 360px;
  height: 214px;
  color: rgba(255, 255, 255, .05);
}
.cta-rings {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  pointer-events: none;
}
.cta-rings i {
  position: absolute;
  left: 0; top: 0;
  width: 380px; height: 380px;
  margin: -190px 0 0 -190px;
  border-radius: 50%;
  border: 1px solid rgba(141, 182, 255, .22);
  opacity: 0;
  animation: ring-out 6s ease-out infinite;
}
.cta-rings i:nth-child(2) { animation-delay: 2s; }
.cta-rings i:nth-child(3) { animation-delay: 4s; }

.kicker-light { color: #9CC2FF; }
.cta h2 {
  max-width: 14ch;
  margin-inline: auto;
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 64px);
  letter-spacing: -.045em;
  color: #fff;
}
.cta-text {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .78);
}
.cta-actions {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 36px;
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--brand);
  color: rgba(255, 255, 255, .7);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding: 64px 0 48px;
}
.footer-brand p { margin-top: 14px; font-size: 15px; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 96px); flex-wrap: wrap; }
.footer-cols div { display: grid; align-content: start; gap: 12px; }
.footer-cols h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
}
.footer-cols a {
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: color .2s;
}
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(18, 140, 74, .65);
  opacity: 0;
  transform: translateY(24px) scale(.85);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.06); }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: orb-ring 2.4s ease-out infinite;
}

/* ---------- Animações de entrada / sequências ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-seq] [data-at]:not(.seq-flag):not(.bubble):not(.scan-hit) {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.js [data-seq] [data-at].on:not(.seq-flag):not(.bubble):not(.scan-hit) { opacity: 1; transform: none; }
.js [data-seq] .toast[data-at] { transform: translateY(14px) scale(.96); }
.js [data-seq].seq-out [data-at].on:not(.seq-flag):not(.bubble) { opacity: 0; }
.seq-out .pipe-fill { opacity: 0; transition: opacity .5s; }
.x-row.on { animation: row-flash 1.2s ease-out; }

@keyframes twinkle { 50% { transform: scale(.82) rotate(12deg); opacity: .8; } }
@keyframes bar-fill { to { transform: scaleX(1); } }
@keyframes dash-flow { to { stroke-dashoffset: -20; } }
@keyframes orb-ring {
  0%   { transform: scale(.9); opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes ring-out {
  0%   { transform: scale(.4); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes blink { 50% { opacity: .3; } }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
@keyframes fill-x { to { transform: scaleX(1); } }
@keyframes fill-y { to { transform: scaleY(1); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes row-flash { from { background: #E3EDFF; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1240px) {
  .toast-ai    { right: 12px; }
  .toast-renew { right: 12px; }
  .toast-wa    { left: 12px; }
}

@media (max-width: 1080px) {
  .ai-stage {
    grid-template-columns: minmax(0, 560px);
    gap: 0;
  }
  .ai-doc { width: min(100%, 400px); margin-inline: auto; }
  .ai-link { height: 112px; }
  .ai-link-line { transform: translateY(-50%) rotate(90deg); width: 112px; left: calc(50% - 56px); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-cards { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .wa-grid { grid-template-columns: minmax(0, 1fr); }
  .seg-main { grid-template-columns: minmax(0, 1fr); }
  .seg-more { grid-template-columns: minmax(0, 1fr); }
  .toast-renew { display: none; }
}

@media (max-width: 760px) {
  .pipe-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .pipe-track {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .pipe-fill { transform-origin: center top; transform: scaleY(0); }
  .seq-run .pipe-fill { animation-name: fill-y; }
  .pipe-step {
    grid-template-columns: 56px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 18px;
    text-align: left;
  }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 24px; }
}

@media (max-width: 640px) {
  .nav { height: 64px; }
  .brand svg { width: 34px; height: 20px; }
  .brand span { font-size: 21px; }
  .hero-ctas .btn { width: 100%; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .btn-lg { height: 52px; padding: 0 20px; font-size: 15px; }
  .toast { padding: 8px 12px 8px 8px; gap: 8px; border-radius: 12px; }
  .t-ico { width: 30px; height: 30px; border-radius: 9px; }
  .t-ico svg { width: 17px; height: 17px; }
  .t-body strong { font-size: 12px; }
  .t-body > span { font-size: 11px; }
  .toast-ai { top: auto; bottom: calc(100% - 22px); right: 8px; }
  .toast-wa { top: auto; left: 8px; bottom: 26px; }
  .extract-card { padding: 16px; border-radius: 18px; }
  .x-row { grid-template-columns: minmax(0, 1.6fr) .55fr .95fr; font-size: 13px; padding: 10px; gap: 8px; }
  .x-serial { display: none; }
  .x-name { gap: 8px; }
  .extract-foot .x-btn { width: 100%; justify-content: center; }
  .wa-copy h2 { padding-left: 18px; border-left-width: 4px; }
  .phone-badge { position: relative; top: auto; left: auto; margin-bottom: 18px; font-size: 13px; }
  .lead { font-size: 17px; }
  .cta-actions .btn { width: 100%; white-space: normal; text-align: center; height: auto; min-height: 52px; padding-block: 12px; }
  .footer-top { padding-top: 48px; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .mk-slot, .mk-cursor, .mk-ring, .scan-beam, .cta-rings { opacity: 0; }
  .pipe-fill { transform: none; }
}
