/* =========================================================
   SYS PLUS — estilos
   ========================================================= */
:root {
  --bg: #070B14;
  --bg-2: #0A1020;
  --surface: #0E1528;
  --surface-2: #131C33;
  --border: rgba(148, 163, 184, .12);
  --border-strong: rgba(148, 163, 184, .22);
  --text: #E8ECF4;
  --muted: #8B95A8;
  --blue: #3B82F6;
  --cyan: #22D3EE;
  --grad: linear-gradient(120deg, var(--blue), var(--cyan));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--muted); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(34, 211, 238, .3); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); color: #04101F; box-shadow: 0 10px 30px -10px rgba(34, 211, 238, .55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34, 211, 238, .7); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .06); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(7, 11, 20, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 34px; height: 34px; }
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; }
.logo__text .grad { margin-left: 4px; }
.logo--sm .logo__mark { width: 28px; height: 28px; }
.logo--sm .logo__text { font-size: 1.1rem; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--muted); font-size: .94rem; font-weight: 500; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }

.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, top .3s; }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 80px) 0 110px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow--a { width: 520px; height: 520px; background: #1D4ED8; top: -160px; left: -120px; animation: float 14s ease-in-out infinite; }
.glow--b { width: 440px; height: 440px; background: #0891B2; bottom: -180px; right: -80px; opacity: .4; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 30px); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: rgba(14, 21, 40, .6); font-size: .82rem; color: var(--muted); font-weight: 500; margin-bottom: 26px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); }
.lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero__checks li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.hero__checks svg { width: 16px; height: 16px; color: var(--cyan); stroke-width: 2.4; }

/* Hero visual */
.hero__visual { position: relative; min-height: 420px; }
.panel {
  position: absolute; background: linear-gradient(180deg, rgba(19, 28, 51, .92), rgba(14, 21, 40, .92));
  border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.panel--dash { top: 0; right: 0; width: 92%; padding: 0 0 20px; animation: rise .9s .1s both; }
.panel__bar { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.panel__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 163, 184, .25); }
.panel__bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.dash { padding: 18px 18px 0; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: rgba(7, 11, 20, .55); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.kpi small { display: block; font-size: .7rem; color: var(--muted); }
.kpi b { display: block; font-family: var(--font-head); font-size: 1.35rem; margin: 2px 0; }
.kpi em { font-style: normal; font-size: .7rem; }
.kpi .up { color: #34D399; }
.dash__chart { height: 120px; background: rgba(7, 11, 20, .4); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 0 0; overflow: hidden; }
.dash__chart svg { width: 100%; height: 100%; }
.chart-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.panel--chat { left: 0; bottom: 0; width: 64%; padding: 16px; animation: rise .9s .35s both; }
.mini-chat__head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.mini-chat__head small { color: var(--muted); font-weight: 400; }
.status { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.mini-chat__msg { font-size: .86rem; padding: 9px 13px; border-radius: 14px; margin-bottom: 8px; max-width: 88%; line-height: 1.45; }
.mini-chat__msg--user { margin-left: auto; background: var(--surface-2); border: 1px solid var(--border); border-bottom-right-radius: 4px; }
.mini-chat__msg--bot { background: linear-gradient(120deg, rgba(59, 130, 246, .22), rgba(34, 211, 238, .16)); border: 1px solid rgba(34, 211, 238, .25); border-bottom-left-radius: 4px; }
.mini-chat__typing { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(7, 11, 20, .5); }
.mini-chat__typing i, .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.mini-chat__typing i:nth-child(2), .typing i:nth-child(2) { animation-delay: .2s; }
.mini-chat__typing i:nth-child(3), .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Faixa ---------- */
.strip { border-block: 1px solid var(--border); background: var(--bg-2); }
.strip__inner { padding: 26px 24px; text-align: center; }
.strip p { margin: 0; font-size: 1.05rem; }
.strip strong { color: var(--text); }

/* ---------- Seções ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section__head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section__head p { font-size: 1.08rem; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(14, 21, 40, .4));
  border: 1px solid var(--border); transition: transform .3s, border-color .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { transform: translateY(-4px); }
.card:hover::before { opacity: .7; }
.card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .2), rgba(34, 211, 238, .12));
  border: 1px solid rgba(34, 211, 238, .25); color: var(--cyan);
}
.card__icon svg { width: 24px; height: 24px; }
.card p { margin: 0; font-size: .96rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split__copy p { font-size: 1.06rem; }
.split__list { display: grid; gap: 16px; }
.feature { display: flex; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature__num { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; line-height: 1; padding-top: 3px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; font-size: .95rem; }
.feature em { color: var(--text); font-style: normal; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__n {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 22px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--cyan);
  background: var(--bg); border: 1px solid rgba(34, 211, 238, .4); box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgba(34, 211, 238, .5);
}
.step p { font-size: .95rem; margin: 0; }

/* ---------- Demo ---------- */
.section--demo { background: radial-gradient(ellipse 60% 60% at 75% 50%, rgba(29, 78, 216, .18), transparent 70%), var(--bg-2); border-block: 1px solid var(--border); }
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.demo__copy p { font-size: 1.06rem; }
.scenarios { display: grid; gap: 10px; margin: 28px 0 20px; }
.scenario {
  text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-family: inherit; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.scenario b { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.scenario small { color: var(--muted); font-size: .85rem; }
.scenario:hover { border-color: var(--border-strong); }
.scenario.is-active { border-color: rgba(34, 211, 238, .6); background: linear-gradient(120deg, rgba(59, 130, 246, .14), rgba(34, 211, 238, .06)); }
.demo__note { font-size: .82rem !important; opacity: .8; }

.chat {
  display: flex; flex-direction: column; height: 600px; border-radius: 22px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow), 0 0 0 1px rgba(34, 211, 238, .05);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); background: rgba(7, 11, 20, .35); }
.chat__head strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.chat__head small { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; }
.chat__avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #04101F; }
.chat__avatar svg { width: 22px; height: 22px; stroke-width: 2; }
.chat__reset { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: color .2s, border-color .2s; }
.chat__reset:hover { color: var(--text); border-color: var(--border-strong); }
.chat__reset svg { width: 17px; height: 17px; }

.chat__body { flex: 1; overflow-y: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat__body::-webkit-scrollbar { width: 6px; }
.chat__body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: .94rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; animation: pop .25s ease-out; }
.msg--user { align-self: flex-end; background: var(--grad); color: #04101F; border-bottom-right-radius: 5px; font-weight: 500; }
.msg--bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--text); }
.msg--system { align-self: center; font-size: .78rem; color: var(--muted); background: none; padding: 4px 10px; border: 1px dashed var(--border-strong); border-radius: 999px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

.chat__chips { display: flex; gap: 8px; padding: 0 18px 12px; overflow-x: auto; scrollbar-width: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 13px; border-radius: 999px; font-size: .82rem; background: transparent; color: var(--text); border: 1px solid var(--border-strong); cursor: pointer; font-family: inherit; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .08); }

.chat__form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: rgba(7, 11, 20, .35); }
.chat__form input {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: .95rem; outline: none; transition: border-color .2s;
}
.chat__form input:focus { border-color: var(--cyan); }
.chat__form button { width: 48px; border-radius: 12px; border: 0; background: var(--grad); color: #04101F; cursor: pointer; display: grid; place-items: center; transition: opacity .2s; }
.chat__form button:disabled { opacity: .5; cursor: default; }
.chat__form button svg { width: 20px; height: 20px; stroke-width: 2; }

/* ---------- CTA / contato ---------- */
.cta {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding: 56px;
  border-radius: 28px; border: 1px solid var(--border-strong); position: relative; overflow: hidden;
  background: radial-gradient(ellipse 70% 90% at 0% 0%, rgba(59, 130, 246, .2), transparent 60%), radial-gradient(ellipse 60% 80% at 100% 100%, rgba(34, 211, 238, .14), transparent 60%), var(--surface);
}
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.contact-list svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.contact-list a:hover { color: var(--text); }
.cta__form { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); background: rgba(7, 11, 20, .6); border: 1px solid var(--border); }
.cta__form label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.cta__form input, .cta__form select {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg);
  color: var(--text); font: inherit; font-size: .95rem; outline: none; transition: border-color .2s;
}
.cta__form input:focus, .cta__form select:focus { border-color: var(--cyan); }
.cta__form .btn { margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer p { margin: 0; font-size: .9rem; }
.footer__copy { font-size: .82rem !important; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; stroke-width: 1.8; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .hero__inner, .split, .demo, .cta { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin: 10px auto 0; width: 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .split { gap: 40px; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px; background: rgba(7, 11, 20, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav__cta { margin-top: 16px; }
  .header.menu-open { background: rgba(7, 11, 20, .97); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: calc(var(--header-h) + 48px) 0 80px; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { min-height: 380px; }
  .panel--dash { width: 100%; }
  .panel--chat { width: 82%; }
  .dash__kpis { gap: 6px; }
  .kpi { padding: 9px; }
  .kpi b { font-size: 1.1rem; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .chat { height: 540px; }
  .msg { max-width: 90%; }
  .cta { padding: 28px 18px; border-radius: 22px; }
  .cta__form { padding: 20px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
