/*
 * DataWaveBR — site institucional.
 * Mesma linguagem visual do Prospector e dos Reels: fundo quase preto com grade e
 * brilhos, superfícies de vidro e o verde-água da marca (#3BE3CF) como destaque.
 */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #05080d;
  --bg-2: #080d14;
  --surface: rgb(13 20 31 / 0.72);
  --surface-solid: #0e1622;
  --surface-2: #131d2b;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --text: #eef3f8;
  --text-2: #c3cfdd;
  --muted: #8c9cb3;
  --accent: #3be3cf;
  --accent-ink: #032621;
  --accent-dim: rgb(59 227 207 / 0.12);
  --blue: #4d8dff;
  --violet: #9b87ff;
  --ok: #5be38b;
  --warn: #ff6b6b;
  --amber: #ffc247;
  --radius: 18px;
  --radius-lg: 26px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grade sutil + brilhos ao fundo de tudo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgb(59 227 207 / 0.12), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgb(77 141 255 / 0.1), transparent 60%),
    linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 95%);
}

::selection { background: rgb(59 227 207 / 0.3); }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.ic { width: 1.15em; height: 1.15em; flex: none; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
}
.skip:focus { left: 8px; }

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

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

section { position: relative; padding: clamp(80px, 11vw, 136px) 0; }

/* ---------- Tipografia & utilidades ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgb(59 227 207 / 0.25);
  border-radius: 999px;
  background: rgb(59 227 207 / 0.06);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.h2 {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 18px 0 16px;
  text-wrap: balance;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.65;
  max-width: 660px;
  text-wrap: pretty;
}

.grad {
  background: linear-gradient(100deg, #ffffff 0%, #b8f7ef 35%, #3be3cf 70%, #4d8dff 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head .lead { margin-inline: auto; }
.section-head.left { align-items: flex-start; text-align: left; }
.section-head.left .lead { margin-inline: 0; margin-bottom: 24px; }

.disclaimer { margin-top: 12px; font-size: 12.5px; color: #6f819b; line-height: 1.5; }
.disclaimer.center { text-align: center; margin-top: 18px; }

.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgb(59 227 207 / 0.6);
  animation: ping 1.8s infinite;
  display: inline-block; flex: none;
}
.dot-live.red { background: var(--warn); box-shadow: 0 0 0 0 rgb(255 107 107 / 0.6); }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgb(59 227 207 / 0.55); }
  70% { box-shadow: 0 0 0 8px rgb(59 227 207 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(59 227 207 / 0); }
}

/* Logo como máscara preenchida com o degradê da marca */
.logo-mark {
  display: inline-block; flex: none;
  width: 34px; height: 34px;
  background: linear-gradient(120deg, #ffffff 0%, #c9f7f1 40%, #3be3cf 75%, #4d8dff 110%);
  -webkit-mask: url('../img/logo-mask.png') center / contain no-repeat;
  mask: url('../img/logo-mask.png') center / contain no-repeat;
}

/* ---------- Botões ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, #5ef0dd 0%, #3be3cf 45%, #2fc7d8 100%);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgb(59 227 207 / 0.4), 0 10px 30px -10px rgb(59 227 207 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.4);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgb(59 227 207 / 0.6), 0 16px 40px -10px rgb(59 227 207 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.4);
}
.btn-ghost {
  background: rgb(255 255 255 / 0.04);
  border-color: var(--line-2);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgb(59 227 207 / 0.5); background: rgb(59 227 207 / 0.07); }

/* ---------- Vidro / cards com brilho seguindo o mouse ---------- */
.glass,
.glow-card {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 24px 60px -30px rgb(0 0 0 / 0.8);
}
.glow-card { position: relative; isolation: isolate; overflow: hidden; }
.glow-card::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgb(59 227 207 / 0.13), transparent 45%);
  opacity: 0; transition: opacity 0.35s;
}
.glow-card:hover::before { opacity: 1; }

/* ---------- Reveal ao rolar ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgb(5 8 13 / 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-color: var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-name b { color: var(--accent); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a:not(.btn) {
  padding: 8px 12px; border-radius: 999px;
  font-size: 14.5px; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:not(.btn):hover,
.nav-links a.active { color: var(--text); background: rgb(255 255 255 / 0.05); }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-left: auto;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: rgb(255 255 255 / 0.04);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 90px));
  padding-bottom: clamp(56px, 7vw, 88px);
  overflow: hidden;
}
.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60%; pointer-events: none; opacity: 0.9; }
.hero .waves { bottom: 120px; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 22px 0 22px;
  text-wrap: balance;
}
.hero .lead { font-size: clamp(16px, 1.5vw, 19px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--text-2); font-size: 14px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ic { color: var(--accent); }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.orbit {
  position: absolute; inset: 50% auto auto 50%;
  width: 520px; height: 520px; translate: -50% -50%;
  border-radius: 50%;
  border: 1px dashed rgb(59 227 207 / 0.18);
  animation: spin 60s linear infinite;
}
.orbit::before, .orbit::after {
  content: ''; position: absolute; border-radius: 50%;
}
.orbit::before { inset: 60px; border: 1px solid rgb(77 141 255 / 0.12); }
.orbit::after {
  width: 10px; height: 10px; top: -5px; left: 50%;
  background: var(--accent); box-shadow: 0 0 20px 4px rgb(59 227 207 / 0.6);
}
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Telefone / chat ---------- */
.phone {
  position: relative; z-index: 2;
  width: 330px; height: 640px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #1b2533, #0a0f16 40%, #0b1119);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow:
    0 0 0 6px #070b10,
    0 0 0 7px rgb(255 255 255 / 0.08),
    0 50px 100px -30px rgb(0 0 0 / 0.9),
    0 0 120px -30px rgb(59 227 207 / 0.35);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; translate: -50% 0; z-index: 3;
  width: 96px; height: 26px; border-radius: 20px; background: #000;
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 50px 16px 14px;
  background: #0d141d;
  border-radius: 36px 36px 0 0;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #0a1017;
  border: 1.5px solid rgb(59 227 207 / 0.5);
}
.chat-avatar .logo-mark { width: 24px; height: 24px; }
.chat-name { display: block; font-size: 15px; font-weight: 650; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); }
.chat-status .dot-live { width: 6px; height: 6px; }

.chat-body {
  flex: 1;
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgb(59 227 207 / 0.05), transparent 40%),
    #080d13;
  justify-content: flex-end;
  mask-image: linear-gradient(to bottom, transparent 0, black 40px);
}
.chat-input {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0; padding: 12px 16px 18px;
  background: #0d141d;
  border-radius: 0 0 36px 36px;
  border-top: 1px solid var(--line);
  color: #5d6c80; font-size: 13.5px;
}
.chat-input span { flex: 1; padding: 9px 14px; border-radius: 999px; background: #131c27; margin-right: 10px; }
.chat-input .ic { color: var(--accent); }

.msg {
  max-width: 84%;
  padding: 9px 12px 7px;
  border-radius: 16px;
  font-size: 13.5px; line-height: 1.45;
  animation: msgIn 0.4s var(--ease) both;
  position: relative;
  word-wrap: break-word;
}
.msg time { display: block; text-align: right; margin-top: 2px; font-size: 10.5px; color: rgb(255 255 255 / 0.4); }
.msg.in { align-self: flex-start; background: #17212d; border: 1px solid rgb(255 255 255 / 0.06); border-bottom-left-radius: 4px; }
.msg.out {
  align-self: flex-end;
  background: linear-gradient(160deg, rgb(59 227 207 / 0.2), rgb(59 227 207 / 0.1));
  border: 1px solid rgb(59 227 207 / 0.28);
  border-bottom-right-radius: 4px;
}
.msg.out time::after { content: ' ✓✓'; color: var(--accent); }
.msg-file { display: flex; align-items: center; gap: 10px; }
.msg-file .fi { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgb(77 141 255 / 0.18); color: var(--blue); }
.msg-file b { display: block; font-size: 13px; font-weight: 600; }
.msg-file small { font-size: 11px; color: var(--muted); }
.msg-card {
  align-self: flex-end;
  width: 84%;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(160deg, #0f2a2a, #0d1a22);
  border: 1px solid rgb(59 227 207 / 0.35);
  box-shadow: 0 10px 30px -12px rgb(59 227 207 / 0.4);
  animation: msgIn 0.45s var(--ease) both;
  font-size: 12.5px;
}
.msg-card header { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--accent); }
.msg-card header .ic { width: 16px; height: 16px; }
.msg-card li { padding: 5px 0; color: var(--text-2); border-top: 1px dashed rgb(255 255 255 / 0.08); }
.msg-card li:first-child { border-top: 0; }
.msg-sys {
  align-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; color: var(--ok);
  background: rgb(91 227 139 / 0.1);
  border: 1px solid rgb(91 227 139 / 0.25);
  animation: msgIn 0.4s var(--ease) both;
  text-align: center;
}
.msg-sys .ic { width: 14px; height: 14px; }
.typing { align-self: flex-end; display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: rgb(59 227 207 / 0.1); border: 1px solid rgb(59 227 207 / 0.2); animation: msgIn 0.3s both; }
.typing.in { align-self: flex-start; background: #17212d; border-color: rgb(255 255 255 / 0.06); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.typing.in i { background: var(--muted); }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Cards flutuantes do hero ---------- */
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgb(14 22 34 / 0.82);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.9);
  animation: float 6s ease-in-out infinite;
}
.float-card small { display: block; font-size: 11.5px; color: var(--muted); }
.float-card strong { font-size: 17px; font-weight: 700; }
.fc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); }
.fc-icon.ok { background: rgb(91 227 139 / 0.14); color: var(--ok); }
.fc-1 { top: 30%; left: -10%; }
.fc-2 { top: 14%; right: -14%; flex-direction: column; align-items: stretch; gap: 4px; width: 200px; animation-delay: -2s; }
.fc-3 { bottom: 10%; left: -10%; animation-delay: -4s; transition: opacity 0.3s, transform 0.3s; }
.fc-3.pop { animation: pop 0.6s var(--ease), float 6s ease-in-out infinite; }
.fc-row { display: flex; justify-content: space-between; align-items: center; }
.up { color: var(--ok); font-size: 12px; font-weight: 600; }
.spark { width: 100%; height: 32px; margin-top: 4px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgb(59 227 207 / 0.6)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pop { 0% { transform: scale(0.85); opacity: 0.4; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Stats ---------- */
.stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 7vw, 88px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(10 15 22 / 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.stat { padding: 26px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 760; letter-spacing: -0.04em; line-height: 1.1; }
.stat strong { background: linear-gradient(100deg, #fff, #3be3cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgb(8 13 20 / 0.7);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-2); font-size: 14px; white-space: nowrap;
  background: rgb(255 255 255 / 0.02);
}
.marquee-track span .ic { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================
   DORES
   ===================================================== */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pain {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 107 107 / 0.05), transparent 60%), var(--surface);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.pain:hover { transform: translateY(-4px); border-color: rgb(59 227 207 / 0.35); }
.pain-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgb(255 107 107 / 0.12); color: var(--warn); margin-bottom: 6px; }
.pain-ic .ic { width: 22px; height: 22px; }
.pain h3 { font-size: 19px; font-weight: 700; }
.pain p { color: var(--muted); font-size: 15px; flex: 1; }
.pain-fix {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  color: var(--accent); font-size: 14px; font-weight: 600;
}

/* =====================================================
   SOLUÇÕES
   ===================================================== */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sol-card {
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.sol-card:hover { transform: translateY(-5px); border-color: rgb(59 227 207 / 0.35); }
.sol-card.featured {
  background: linear-gradient(160deg, rgb(59 227 207 / 0.14), rgb(77 141 255 / 0.06) 60%), var(--surface);
  border-color: rgb(59 227 207 / 0.3);
}
.sol-ic {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--accent);
  background: linear-gradient(140deg, rgb(59 227 207 / 0.22), rgb(77 141 255 / 0.12));
  border: 1px solid rgb(59 227 207 / 0.3);
  box-shadow: 0 0 30px -10px rgb(59 227 207 / 0.6);
}
.sol-ic .ic { width: 24px; height: 24px; }
.sol-card h3 { font-size: 19px; font-weight: 700; margin-top: 6px; }
.sol-card p { color: var(--muted); font-size: 14.5px; }
.sol-card ul { display: grid; gap: 6px; margin-top: 4px; align-content: start; }
.sol-card .sol-link { margin-top: auto; padding-top: 10px; }
.sol-card li { font-size: 13.5px; color: var(--text-2); padding-left: 18px; position: relative; }
.sol-card li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.sol-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 14px; }
.sol-link .ic { transition: transform 0.25s; }
.sol-link:hover .ic { transform: translateX(4px); }

/* =====================================================
   NICHOS
   ===================================================== */
.niche-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 30px;
}
.niche-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.03);
  color: var(--muted); font-size: 14px; font-weight: 550;
  transition: all 0.25s var(--ease);
}
.niche-tab:hover { color: var(--text); border-color: var(--line-2); }
.niche-tab.active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 26px -8px rgb(59 227 207 / 0.7);
}

.niche-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 400px at 100% 0%, rgb(59 227 207 / 0.08), transparent 60%),
    var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.niche-info { display: flex; flex-direction: column; gap: 20px; }
.niche-info.swap { animation: fadeSwap 0.5s var(--ease); }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.niche-title { display: flex; align-items: center; gap: 16px; }
.niche-ic {
  width: 58px; height: 58px; border-radius: 16px; flex: none;
  display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(140deg, rgb(59 227 207 / 0.22), rgb(77 141 255 / 0.12));
  border: 1px solid rgb(59 227 207 / 0.3);
}
.niche-ic .ic { width: 28px; height: 28px; }
.niche-label { font-family: var(--mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.niche-title h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 740; letter-spacing: -0.03em; margin-top: 4px; text-wrap: balance; }
.niche-pain {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px;
  background: rgb(255 107 107 / 0.06);
  border: 1px solid rgb(255 107 107 / 0.18);
  color: var(--text-2); font-size: 14.5px;
}
.niche-pain .ic { color: var(--warn); margin-top: 2px; }

.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agent {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgb(8 13 20 / 0.6);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  animation: fadeSwap 0.5s var(--ease) both;
}
.agent:hover { border-color: rgb(59 227 207 / 0.35); transform: translateY(-3px); }
.agent-h { display: flex; align-items: center; gap: 10px; }
.agent-h .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: var(--accent); background: var(--accent-dim); }
.agent h4 { font-size: 15.5px; font-weight: 700; }
.agent p { font-size: 13.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.agent .impact {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ok);
  background: rgb(91 227 139 / 0.1); border: 1px solid rgb(91 227 139 / 0.22);
}
.agent .impact .ic { width: 13px; height: 13px; }
.niche-info > .btn { align-self: flex-start; }

.niche-demo { display: flex; flex-direction: column; align-items: center; }
.phone-sm { width: 320px; height: 600px; }
.replay { margin-top: 18px; }
.niche-demo .disclaimer { text-align: center; max-width: 300px; }

/* =====================================================
   DEMOS (janela de navegador)
   ===================================================== */
.demo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.demo-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgb(255 255 255 / 0.03);
  color: var(--muted); font-weight: 600; font-size: 14.5px;
  transition: all 0.25s var(--ease);
}
.demo-tab:hover { color: var(--text); border-color: var(--line-2); }
.demo-tab.active { color: var(--text); border-color: rgb(59 227 207 / 0.55); background: rgb(59 227 207 / 0.1); box-shadow: 0 0 0 4px rgb(59 227 207 / 0.06); }
.demo-tab.active .ic { color: var(--accent); }

.browser {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: #070b11;
  overflow: hidden;
  box-shadow: 0 60px 120px -40px rgb(0 0 0 / 0.9), 0 0 100px -40px rgb(59 227 207 / 0.3);
}
.browser-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  background: #0c121a;
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3442; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.url {
  flex: 1; max-width: 440px; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 14px; border-radius: 10px;
  background: #121a24; color: var(--muted); font-size: 13px; font-family: var(--mono);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.url .ic { color: var(--ok); width: 14px; height: 14px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--accent); }

.demo-pane { display: none; padding: clamp(18px, 2.6vw, 30px); min-height: 520px; }
.demo-pane.active { display: block; animation: fadeSwap 0.5s var(--ease); }

.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-top h4 { font-size: 19px; font-weight: 700; }
.dash-top small { color: var(--muted); font-size: 13px; }

.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: #0f1620; border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.seg button.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; border-radius: 14px; background: #0c131c; border: 1px solid var(--line); }
.kpi small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.kpi strong { font-size: clamp(19px, 2vw, 26px); display: block; line-height: 1.2; }
.delta { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; font-family: var(--mono); }
.delta.up { color: var(--ok); }
.delta.down { color: var(--warn); }

.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.panel { padding: 18px; border-radius: 14px; background: #0c131c; border: 1px solid var(--line); min-width: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 12px; flex-wrap: wrap; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.legend i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.lg-a { background: var(--accent); }
.lg-b { background: #5d6c80; }

.line-chart { width: 100%; height: 280px; overflow: visible; }
.line-chart .grid-l { stroke: rgb(255 255 255 / 0.05); stroke-width: 1; }
.line-chart .area { fill: url(#areaGrad); opacity: 0; transition: opacity 0.8s 0.4s; }
.line-chart.drawn .area { opacity: 1; }
.line-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgb(59 227 207 / 0.5)); }
.line-chart .goal { fill: none; stroke: #5d6c80; stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.line-chart .lbl { fill: #5d6c80; font-size: 11px; font-family: var(--mono); }

.bars { display: grid; gap: 14px; margin-bottom: 18px; }
.bar-row { display: grid; gap: 6px; font-size: 13px; }
.bar-row div:first-child { display: flex; justify-content: space-between; color: var(--text-2); }
.bar-row b { font-family: var(--mono); font-weight: 500; }
.bar { height: 8px; border-radius: 6px; background: rgb(255 255 255 / 0.05); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--accent)); transition: width 1s var(--ease); }
.alerts { display: grid; gap: 8px; }
.alert-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.alert-item.ok { background: rgb(91 227 139 / 0.08); color: #a6f0c0; }
.alert-item.warn { background: rgb(255 194 71 / 0.08); color: #ffd98a; }

/* ---------- Automação ---------- */
.flow {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin: 10px 0 22px;
}
.flow::before {
  content: '';
  position: absolute; left: 10%; right: 10%; top: 38px; height: 2px;
  background: linear-gradient(90deg, rgb(59 227 207 / 0.15), rgb(77 141 255 / 0.15));
}
.flow-node {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 0 4px;
}
.flow-node .ic {
  width: 76px; height: 76px; padding: 22px;
  border-radius: 22px;
  background: #0c131c; border: 1px solid var(--line-2);
  color: var(--muted);
  margin-bottom: 8px;
  transition: all 0.4s var(--ease);
}
.flow-node b { font-size: 14px; }
.flow-node small { font-size: 12px; color: var(--muted); }
.flow-node.on .ic {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgb(59 227 207 / 0.12), 0 0 40px rgb(59 227 207 / 0.6);
  transform: scale(1.06);
}
.flow-node.done .ic { color: var(--accent); border-color: rgb(59 227 207 / 0.5); background: rgb(59 227 207 / 0.08); }
.flow-packet {
  position: absolute; top: 31px; left: 10%; z-index: 2;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(59 227 207 / 0.4), 0 0 24px 6px rgb(59 227 207 / 0.8);
  opacity: 0;
  transition: left 0.9s var(--ease), opacity 0.3s;
}
.flow-bottom { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.terminal {
  height: 210px; overflow: hidden;
  padding: 14px 16px; border-radius: 14px;
  background: #04070b; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.t-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: msgIn 0.3s both; color: var(--text-2); }
.t-line .t-time { color: #5d6c80; margin-right: 8px; }
.t-line .t-ok { color: var(--ok); }
.t-line .t-acc { color: var(--accent); }
.t-muted { color: #5d6c80; }
.flow-stats { display: grid; gap: 10px; }
.flow-stats > div { padding: 14px 16px; border-radius: 14px; background: #0c131c; border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.flow-stats small { color: var(--muted); font-size: 13px; }
.flow-stats strong { font-size: 19px; }
.ok-t { color: var(--ok); }
.warn-t { color: var(--warn); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- Sistema (kanban) ---------- */
.app { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: calc(clamp(18px, 2.6vw, 30px) * -1); min-height: 520px; }
.app-side { padding: 20px 14px; border-right: 1px solid var(--line); background: #090e15; display: flex; flex-direction: column; gap: 4px; }
.app-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 4px 10px 18px; }
.app-logo .logo-mark { width: 24px; height: 24px; }
.app-side a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.app-side a.on { background: var(--accent-dim); color: var(--accent); }
.app-main { padding: clamp(18px, 2.6vw, 30px); position: relative; min-width: 0; }
.app-search { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: #0f1620; border: 1px solid var(--line); color: #5d6c80; font-size: 13px; min-width: 220px; }
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.col { background: #0a1018; border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 340px; min-width: 0; }
.col h5 { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.col h5 span { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgb(255 255 255 / 0.06); color: var(--muted); }
.col[data-col='3'] h5 span { background: rgb(91 227 139 / 0.12); color: var(--ok); }
.col-body { display: flex; flex-direction: column; gap: 8px; }
.kcard {
  padding: 11px 12px; border-radius: 11px;
  background: #111a25; border: 1px solid var(--line);
  font-size: 12.5px;
  animation: msgIn 0.45s var(--ease) both;
}
.kcard b { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 3px; }
.kcard b span { font-family: var(--mono); font-weight: 500; color: var(--muted); font-size: 11.5px; }
.kcard small { color: var(--muted); display: block; }
.kcard .tag { display: inline-block; margin-top: 7px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--accent-dim); color: var(--accent); }
.kcard.moved { border-color: rgb(59 227 207 / 0.6); box-shadow: 0 0 24px -6px rgb(59 227 207 / 0.6); }
.toast {
  position: absolute; right: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 48px);
  padding: 12px 16px; border-radius: 14px;
  background: rgb(14 22 34 / 0.95); border: 1px solid rgb(91 227 139 / 0.35);
  box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.8);
  font-size: 13px; color: var(--text-2);
  opacity: 0; transform: translateY(12px);
  transition: all 0.4s var(--ease);
}
.toast .ic { color: var(--ok); }
.toast.show { opacity: 1; transform: none; }

/* ---------- Documentos ---------- */
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc-paper {
  position: relative; overflow: hidden;
  border-radius: 14px;
  background: #f4f6f9; color: #1d2733;
  padding: 26px 28px;
  min-height: 400px;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9);
  font-size: 12.5px;
}
.doc-content h6 { font-size: 15px; margin: 0 0 4px; letter-spacing: 0; }
.doc-content .muted { color: #6b7684; font-size: 11.5px; }
.doc-content .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #e1e5ea; }
.doc-content .blk { margin-top: 16px; }
.doc-content .tot { font-weight: 700; font-size: 14px; border-bottom: 0; padding-top: 12px; }
.doc-content .hl { transition: background 0.4s, box-shadow 0.4s; border-radius: 4px; }
.doc-content .hl.on { background: rgb(59 227 207 / 0.28); box-shadow: 0 0 0 3px rgb(59 227 207 / 0.28); }
.scanline {
  position: absolute; left: 0; right: 0; height: 70px; top: -70px; z-index: 2;
  background: linear-gradient(180deg, transparent, rgb(59 227 207 / 0.25) 70%, rgb(59 227 207 / 0.9) 98%, transparent);
  pointer-events: none;
}
.doc-paper.scanning .scanline { animation: scan 2.2s var(--ease) forwards; }
@keyframes scan { from { top: -70px; } to { top: 100%; } }
.doc-fields { display: flex; flex-direction: column; gap: 10px; }
.doc-status { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; font-size: 14px; }
.doc-status.done { color: var(--ok); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(59 227 207 / 0.25); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.doc-status.done .spinner { display: none; }
#docFields { display: grid; gap: 8px; }
.field-out {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  padding: 11px 14px; border-radius: 12px;
  background: #0c131c; border: 1px solid var(--line);
  animation: msgIn 0.4s var(--ease) both;
}
.field-out small { color: var(--muted); font-size: 12px; }
.field-out b { font-size: 14.5px; font-weight: 600; grid-column: 1; }
.field-out .conf { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--mono); font-size: 11.5px; color: var(--ok); padding: 3px 8px; border-radius: 6px; background: rgb(91 227 139 / 0.1); }
.doc-action {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 12px;
  background: rgb(59 227 207 / 0.1); border: 1px solid rgb(59 227 207 / 0.35);
  color: var(--accent); font-weight: 600; font-size: 14px;
  opacity: 0; transform: translateY(8px); transition: all 0.4s var(--ease);
}
.doc-action.show { opacity: 1; transform: none; }

/* ---------- Visão computacional ---------- */
.cv-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: start; }
.cv-cam { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #03060a; }
.cv-cam canvas { width: 100%; height: auto; aspect-ratio: 720 / 440; }
.cv-tag, .cv-rec {
  position: absolute; top: 12px;
  padding: 4px 10px; border-radius: 6px;
  background: rgb(0 0 0 / 0.6);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
}
.cv-tag { left: 12px; }
.cv-rec { right: 12px; display: flex; align-items: center; gap: 6px; color: var(--warn); }
.cv-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: #0c131c;
  font-size: 13.5px; color: var(--text-2); cursor: pointer;
}
.cv-toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.cv-stats { display: grid; gap: 10px; align-content: start; }
.cv-alert {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: 12px;
  background: rgb(255 194 71 / 0.1); border: 1px solid rgb(255 194 71 / 0.35);
  color: #ffd98a; font-size: 13px;
  max-height: 0; padding-block: 0; opacity: 0; overflow: hidden; border-width: 0;
  transition: all 0.4s var(--ease);
}
.cv-alert.show { max-height: 80px; padding-block: 12px; opacity: 1; border-width: 1px; }

/* =====================================================
   ANTES × DEPOIS
   ===================================================== */
.compare {
  --pos: 50%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  user-select: none;
  min-height: 420px;
}
.cmp-side { padding: clamp(28px, 4vw, 48px); min-height: 420px; }
/* Cada lado mostra o conteúdo na sua metade; o divisor revela um ou outro */
.cmp-before {
  padding-right: calc(50% + 32px);
  background: linear-gradient(140deg, rgb(255 107 107 / 0.09), transparent 60%), #0b0f15;
}
.cmp-after {
  position: absolute; inset: 0;
  padding-left: calc(50% + 40px);
  background: linear-gradient(220deg, rgb(59 227 207 / 0.16), rgb(77 141 255 / 0.06) 60%), #08121a;
  clip-path: inset(0 0 0 var(--pos));
}
.cmp-tag { display: inline-flex; padding: 6px 14px; border-radius: 999px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px; }
.cmp-tag.bad { background: rgb(255 107 107 / 0.12); color: var(--warn); border: 1px solid rgb(255 107 107 / 0.3); }
.cmp-tag.good { background: rgb(59 227 207 / 0.12); color: var(--accent); border: 1px solid rgb(59 227 207 / 0.35); }
.cmp-side ul { display: grid; gap: 14px; max-width: 760px; }
.cmp-side li { display: flex; gap: 18px; align-items: baseline; font-size: clamp(15px, 1.7vw, 19px); }
.cmp-side time { font-family: var(--mono); font-size: 13px; color: var(--muted); flex: none; width: 48px; }
.cmp-before li span { color: #e8b4b4; }
.cmp-before li span::before { content: '✕ '; color: var(--warn); }
.cmp-after li span { color: var(--text); }
.cmp-after li span::before { content: '✓ '; color: var(--accent); }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0;
  background: var(--accent);
  box-shadow: 0 0 20px rgb(59 227 207 / 0.8);
  pointer-events: none;
}
.cmp-handle span {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 6px rgb(59 227 207 / 0.2), 0 10px 30px rgb(0 0 0 / 0.6);
}
.cmp-handle span::before { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: ring 2s infinite; border: 2px solid var(--accent); }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }
.cmp-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
  -webkit-appearance: none; appearance: none;
}

/* =====================================================
   SIMULADOR
   ===================================================== */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.calc-inputs {
  display: grid; gap: 26px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.range { display: grid; gap: 12px; }
.range > span { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--text-2); }
.range b { font-family: var(--mono); font-weight: 500; color: var(--accent); white-space: nowrap; }
input[type='range'] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), rgb(255 255 255 / 0.08) var(--fill, 50%));
  outline-offset: 6px;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent);
  box-shadow: 0 0 0 4px rgb(59 227 207 / 0.2), 0 0 20px rgb(59 227 207 / 0.6);
  cursor: grab;
}
input[type='range']::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent);
  box-shadow: 0 0 0 4px rgb(59 227 207 / 0.2), 0 0 20px rgb(59 227 207 / 0.6);
  cursor: grab;
}
.calc-result {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(160deg, rgb(59 227 207 / 0.12), rgb(77 141 255 / 0.06) 70%), var(--surface);
  border-color: rgb(59 227 207 / 0.3);
}
.calc-result > small { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--mono); }
.calc-big { font-size: clamp(40px, 5.6vw, 66px); line-height: 1; letter-spacing: -0.04em; }
.calc-big { background: linear-gradient(100deg, #fff, #3be3cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 10px; }
.calc-row > div { padding: 14px 16px; border-radius: 14px; background: rgb(5 8 13 / 0.5); border: 1px solid var(--line); }
.calc-row b { display: block; font-size: 24px; }
.calc-row span { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; margin-top: 4px; }

/* =====================================================
   PROCESSO & DIFERENCIAIS
   ===================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; counter-reset: s; }
.steps::before {
  content: '';
  position: absolute; top: 34px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--violet));
  opacity: 0.35;
}
.step { position: relative; padding: 0 8px; }
.step-n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 20px;
  margin-bottom: 22px;
  font-family: var(--mono); font-size: 20px; color: var(--accent);
  background: #0a1018; border: 1px solid rgb(59 227 207 / 0.35);
  box-shadow: 0 0 40px -10px rgb(59 227 207 / 0.6), inset 0 0 20px rgb(59 227 207 / 0.08);
}
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(56px, 8vw, 96px); }
.diff {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.diff > .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: var(--accent); background: var(--accent-dim); }
.diff h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.diff p { color: var(--muted); font-size: 14.5px; }

/* =====================================================
   FAQ
   ===================================================== */
.faq-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--nav-h) + 30px); margin-bottom: 0; }
.faq-list { display: grid; gap: 10px; }
details {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.3s, background 0.3s;
}
details[open] { border-color: rgb(59 227 207 / 0.35); background: linear-gradient(160deg, rgb(59 227 207 / 0.06), transparent 50%), var(--surface); }
summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px;
  font-weight: 650; font-size: 16px;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 400;
  color: var(--accent); background: var(--accent-dim);
  transition: transform 0.3s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* =====================================================
   CONTATO
   ===================================================== */
.contact-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  border: 1px solid rgb(59 227 207 / 0.25);
  background:
    radial-gradient(700px 400px at 0% 0%, rgb(59 227 207 / 0.16), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgb(77 141 255 / 0.14), transparent 60%),
    #070c12;
}
.contact-card .waves { height: 50%; opacity: 0.6; }
.contact-copy, .form { position: relative; z-index: 1; }
.contact-copy .h2 { margin-top: 18px; }
.contact-ways { display: grid; gap: 10px; margin-top: 30px; }
.way {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: rgb(5 8 13 / 0.5);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.way:hover { border-color: rgb(59 227 207 / 0.45); transform: translateX(4px); }
.way small { display: block; color: var(--muted); font-size: 12.5px; }
.way b { font-size: 16px; font-weight: 650; }
.way-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgb(255 255 255 / 0.06); color: var(--text); }
.way-ic.wa { background: rgb(37 211 102 / 0.15); color: #25d366; }
.way-ic.ig { background: linear-gradient(135deg, rgb(253 89 73 / 0.2), rgb(214 36 159 / 0.2), rgb(40 90 235 / 0.2)); color: #f77fbe; }
.way-ic .ic { width: 22px; height: 22px; }

.form {
  display: grid; gap: 16px; align-content: start;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 24px;
  background: rgb(10 15 22 / 0.8);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.form h3 { font-size: 20px; font-weight: 700; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 13.5px; color: var(--text-2); font-weight: 550; padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 8px; }
.opt { color: #6f819b; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #0b1219;
  color: var(--text);
  font: inherit; font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: #0e1622; }
.field input::placeholder, .field textarea::placeholder { color: #56657a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(59 227 207 / 0.15); }
.field input.invalid { border-color: var(--warn); box-shadow: 0 0 0 4px rgb(255 107 107 / 0.15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #0b1219;
  font-size: 13.5px; color: var(--text-2);
  transition: all 0.2s;
}
.chips input:checked + span { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: rgb(5 8 13 / 0.8); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin-bottom: 6px; font-family: var(--mono); font-weight: 500; }
.footer-col a, .footer-loc { color: var(--muted); font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: #6f819b; font-size: 13.5px; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 30px -6px rgb(37 211 102 / 0.6);
  transition: transform 0.3s var(--ease);
  opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.9);
}
.wa-float.show { opacity: 1; pointer-events: auto; transform: none; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.2s infinite; }
.wa-tip {
  position: absolute; right: 72px; top: 50%; translate: 0 -50%;
  padding: 8px 14px; border-radius: 10px;
  background: #fff; color: #0b1219; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.6);
  opacity: 0; transform: translateX(8px); transition: all 0.3s var(--ease); pointer-events: none;
}
.wa-float:hover .wa-tip, .wa-float.hint .wa-tip { opacity: 1; transform: none; }

/* =====================================================
   RESPONSIVO
   ===================================================== */
@media (max-width: 1100px) {
  .nav-links a:not(.btn) { padding: 8px 9px; font-size: 14px; }
  .sol-grid, .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-2 { right: -2%; }
  .fc-3 { left: -4%; }
}

@media (max-width: 980px) {
  :root { --nav-h: 64px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 24px;
    background: rgb(5 8 13 / 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: all 0.3s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 14px 12px; font-size: 16px; border-radius: 12px; }
  .nav-cta-mobile { display: inline-flex; margin-top: 10px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero .lead { margin-inline: auto; }
  .hero-ctas, .hero-trust { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .niche-panel { grid-template-columns: 1fr; }
  .niche-demo { order: -1; }
  .dash-grid, .flow-bottom, .doc-grid, .cv-grid, .calc { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .kanban { grid-template-columns: repeat(4, minmax(170px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .diffs { grid-template-columns: repeat(2, 1fr); }
  .faq-inner { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cv-stats { grid-template-columns: repeat(2, 1fr); }
  .cv-alert { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .btn-lg { --h: 52px; padding: 0 22px; font-size: 15.5px; }
  .hero-ctas { width: 100%; flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .orbit { width: 380px; height: 380px; }
  .phone { width: 290px; height: 560px; }
  .phone-sm { width: 100%; max-width: 320px; height: 560px; }
  .float-card { padding: 10px 12px; }
  .float-card strong { font-size: 15px; }
  .fc-1 { left: 0; top: 2%; }
  .fc-2 { right: 0; width: 160px; top: 40%; }
  .fc-3 { left: 0; bottom: 4%; }
  .stat { padding: 20px; }
  .pain-grid, .sol-grid, .agent-grid, .diffs, .steps { grid-template-columns: 1fr; }
  .niche-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .niche-tabs::-webkit-scrollbar { display: none; }
  .niche-tab { flex: none; }
  .niche-info > .btn { align-self: stretch; white-space: normal; height: auto; min-height: 50px; padding-block: 12px; text-align: center; }
  .demo-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: -16px; padding-inline: 16px; padding-bottom: 8px; scrollbar-width: none; }
  .demo-tab { flex: none; }
  .browser-bar .live-pill { display: none; }
  .demo-pane { min-height: 0; }
  .hero .eyebrow { font-size: 10.5px; letter-spacing: 0.05em; padding: 6px 12px; }
  .line-chart { height: 200px; }
  .flow { grid-template-columns: 1fr; gap: 8px; }
  .flow::before { display: none; }
  .flow-node { flex-direction: row; text-align: left; gap: 12px; }
  .flow-node .ic { width: 60px; height: 60px; padding: 17px; margin: 0; border-radius: 18px; }
  .flow-node small { margin-left: auto; text-align: right; }
  .flow-packet { display: none; }
  .terminal { height: 170px; font-size: 11.5px; }
  .app-search { display: none; }
  .doc-paper { min-height: 0; padding: 20px; }
  .calc-row { grid-template-columns: 1fr; }
  /* No celular: dois cards empilhados, sem divisor */
  .compare { min-height: 0; display: grid; gap: 14px; border: 0; border-radius: 0; overflow: visible; }
  .cmp-side { min-height: 0; padding: 24px 20px; border-radius: 20px; border: 1px solid var(--line-2); }
  .cmp-before { padding-right: 20px; }
  .cmp-after { position: static; padding-left: 20px; clip-path: none; }
  .cmp-handle, .cmp-range, .cmp-hint { display: none; }
  .cmp-side li { gap: 12px; font-size: 15px; }
  .cmp-tag { margin-bottom: 16px; }
  .contact-card { border-radius: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

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