/* ============================================================
   MOTRIX — folha de estilo principal
   Paleta: preto, azul-marinho e prata cromada (tirada da logo).
   ============================================================ */

:root {
  /* Preto */
  --black:      #05070B;
  --black-2:    #080B12;
  --black-3:    #0C111A;

  /* Azul-marinho */
  --navy-deep:  #071429;
  --navy:       #0B1E3D;
  --navy-2:     #10305F;
  --navy-3:     #1A4C8F;
  --navy-glow:  #2E7BD6;

  /* Prata / cromado — amostrado da logo */
  --silver-1:   #F2F4F7;
  --silver-2:   #D5DAE2;
  --silver-3:   #A7B0BE;
  --silver-4:   #6E7887;
  --silver-5:   #454D5C;

  /* Texto */
  --ink:        #EEF1F6;
  --ink-2:      #AEB8C6;
  --ink-3:      #7C8698;
  --ink-4:      #545D6D;

  --line:       rgba(167, 176, 190, .14);
  --line-2:     rgba(167, 176, 190, .08);

  --wa:         #25D366;

  --chrome: linear-gradient(180deg,
              #FFFFFF 0%, #F2F5F9 14%, #CBD4E1 33%,
              #A3AEBF 50%, #CDD6E2 59%, #F0F3F8 78%, #FFFFFF 100%);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(.22, .68, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --maxw: 1240px;
  --nav-h: 74px;

  --f-disp: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-body: "Sora", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--f-disp); font-weight: 800; line-height: 1.06; }
p { margin: 0; }
canvas { display: block; }

:focus-visible {
  outline: 2px solid var(--navy-glow);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed; top: -100px; left: 16px; z-index: 999;
  background: var(--silver-1); color: var(--black);
  padding: 12px 18px; border-radius: var(--r-s); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   TEXTURA DE FUNDO
   Só grão. A estrutura visual vem da malha 3D do hero e dos
   halos de marinho — grade decorativa aqui só somava ruído.
   ============================================================ */
.fx-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   TIPOGRAFIA COMPARTILHADA
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 118, "wght" 600;
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 20px;
}
.eyebrow b {
  font-variation-settings: "wdth" 118, "wght" 700;
  color: var(--navy-glow);
  letter-spacing: .12em;
  position: relative; padding-right: 14px;
}
.eyebrow b::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 6px; height: 1px; background: var(--line);
}

.h2 {
  font-size: clamp(30px, 5vw, 56px);
  font-variation-settings: "wdth" 108, "wght" 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin-top: 22px;
  max-width: 62ch;
  font-size: clamp(15.5px, 1.5vw, 18px);
  color: var(--ink-2);
  font-weight: 300;
  line-height: 1.68;
}

/* Efeito cromado no texto */
.chrome { color: var(--silver-2); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .chrome {
    background: var(--chrome);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 14px rgba(46,123,214,.30));
  }
}
.sheen { background-size: 220% 100%; animation: sheen 7s var(--ease) infinite; }
@keyframes sheen {
  0%, 62%  { background-position: 160% 0; }
  100%     { background-position: -60% 0; }
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 100, "wght" 650;
  font-size: 14.5px; letter-spacing: .01em;
  padding: 15px 26px;
  border: 0; border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn-ico { display: inline-flex; }
.btn-arrow { transition: transform .35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  color: #04070C;
  background: linear-gradient(180deg, #FFFFFF, #DDE3EB 46%, #A7B0BE 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 -1px 0 rgba(0,0,0,.25) inset,
    0 10px 30px -12px rgba(46,123,214,.55),
    0 2px 10px rgba(0,0,0,.5);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #FFFFFF, #EAEFF5 46%, #C2CAD6 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 -1px 0 rgba(0,0,0,.22) inset,
    0 16px 44px -14px rgba(46,123,214,.8),
    0 2px 12px rgba(0,0,0,.55);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(167,176,190,.05);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover {
  background: rgba(167,176,190,.1);
  box-shadow: inset 0 0 0 1px rgba(167,176,190,.3);
}

.btn-sm { padding: 11px 18px; font-size: 13px; }
.btn-lg { padding: 18px 32px; font-size: 15.5px; }
.btn-xl { padding: 22px 42px; font-size: 17px; }
.btn-block { width: 100%; }

/* ============================================================
   CABEÇALHO
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav.stuck {
  background: rgba(5, 7, 11, .72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line-2), 0 12px 40px -24px #000;
}
.nav-in {
  height: 100%;
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 28px;
}
.nav-logo img { width: 128px; height: auto; }
.nav-logo { display: block; transition: opacity .3s var(--ease); }
.nav-logo:hover { opacity: .8; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
  font-size: 14px;
}
.nav-links a {
  position: relative;
  padding: 9px 14px; border-radius: 999px;
  color: var(--ink-2);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--navy-glow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  width: 42px; height: 42px; padding: 0;
  background: rgba(167,176,190,.06);
  box-shadow: inset 0 0 0 1px var(--line);
  border: 0; border-radius: 12px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span {
  display: block; width: 17px; height: 1.5px; background: var(--ink);
  border-radius: 2px; transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: rgba(5, 7, 11, .96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 24px 28px 40px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 17px 4px;
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 104, "wght" 600;
  font-size: 20px; letter-spacing: -0.02em;
  box-shadow: inset 0 -1px 0 var(--line-2);
}
.mobile-menu nav a span {
  font-size: 11px; letter-spacing: .2em; color: var(--navy-glow);
  font-variation-settings: "wdth" 118, "wght" 600;
}
.mobile-menu .btn { margin-top: 22px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 60px) 0 90px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,7,11,.9) 0%, rgba(5,7,11,.5) 7%, transparent 15%),
    radial-gradient(ellipse 62% 46% at 66% 44%, rgba(26,76,143,.30), transparent 68%),
    radial-gradient(ellipse 48% 40% at 18% 78%, rgba(11,30,61,.55), transparent 70%),
    linear-gradient(90deg, rgba(5,7,11,.94) 0%, rgba(5,7,11,.80) 30%, rgba(5,7,11,.30) 52%, transparent 68%),
    linear-gradient(180deg, transparent 55%, var(--black) 100%);
}
.hero-in {
  position: relative;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
}
.hero-title {
  font-size: clamp(38px, 6.6vw, 82px);
  font-variation-settings: "wdth" 110, "wght" 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  max-width: 15ch;
  text-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 46px; }


.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 3;
}
.hero-scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, var(--silver-4));
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ""; position: absolute; left: 0; width: 1px; height: 14px;
  background: var(--navy-glow);
  animation: scrollDot 2.4s var(--ease) infinite;
}
@keyframes scrollDot { 0% { top: -14px; } 100% { top: 46px; } }
.hero-scroll-txt {
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 118, "wght" 500;
  font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--ink-4);
}

/* ============================================================
   SEÇÕES
   ============================================================ */
.sec { position: relative; z-index: 2; padding: clamp(80px, 11vw, 150px) 0; }
.sec-alt { background: linear-gradient(180deg, transparent, var(--black-2) 14%, var(--black-2) 86%, transparent); }
.sec-head { margin-bottom: 58px; }

.wrap-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 86px); align-items: center;
}
.wrap-split-rev .split-vis { order: -1; }
.split-txt .ticks { margin: 30px 0 34px; display: grid; gap: 13px; }
.ticks li {
  position: relative; padding-left: 32px;
  color: var(--ink-2); font-weight: 300; font-size: 15.5px;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(46,123,214,.14);
  box-shadow: inset 0 0 0 1px rgba(46,123,214,.4);
}
.ticks li::after {
  content: ""; position: absolute; left: 5.5px; top: 13px;
  width: 5px; height: 8px;
  border-right: 1.6px solid var(--navy-glow);
  border-bottom: 1.6px solid var(--navy-glow);
  transform: rotate(42deg);
}

.vis-cap {
  margin-top: 22px; text-align: center;
  font-size: 12.5px; color: var(--ink-4);
}

/* ============================================================
   01 · FLUXO DE AUTOMAÇÃO
   ============================================================ */
.flow {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(11,30,61,.42), rgba(8,11,18,.86));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    inset 0 0 0 1px var(--line-2),
    0 26px 54px -40px #000;
  padding: 26px;
  overflow: hidden;
}
.flow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(46,123,214,.14), transparent 70%);
}
.flow-head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  margin-bottom: 26px;
}
.flow-live {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 112, "wght" 600;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3);
}
.flow-live i, .dash-live i {
  position: relative;
  width: 7px; height: 7px; border-radius: 50%; background: var(--wa);
}
.flow-live i::after, .dash-live i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa);
  animation: livePulse 2.2s var(--ease) infinite;
}
/* Só transform e opacity: fica no compositor, não repinta. */
@keyframes livePulse {
  0%        { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(3.4); opacity: 0; }
}
.flow-counter { font-size: 13px; color: var(--ink-3); }
.flow-counter b {
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 104, "wght" 700;
  font-size: 19px; color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-right: 5px;
}

.flow-stage { position: relative; }
.flow-wires {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 0;
}
.flow-wires path.wire {
  /* Cor sólida, não gradiente: um gradiente em objectBoundingBox não
     renderiza quando a caixa do elemento tem lado zero — e toda linha
     reta tem. Era por isso que os fios verticais do celular sumiam. */
  fill: none; stroke: #5E9BE0; stroke-width: 1.9;
  stroke-dasharray: 5 6; opacity: .95;
  animation: wireFlow 1.05s linear infinite;
}
@keyframes wireFlow { to { stroke-dashoffset: -11; } }
.flow-wires circle.packet {
  fill: #F2F7FF;
  filter: drop-shadow(0 0 5px #EAF2FF) drop-shadow(0 0 14px rgba(46,123,214,1));
}

.flow-track {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px;
}
.station {
  position: relative;
  padding: 20px 18px 22px;
  border-radius: var(--r-m);
  background: linear-gradient(180deg, rgba(20,28,42,.92), rgba(9,13,20,.95));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 0 0 1px var(--line-2),
    0 12px 30px -20px #000;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease-out), background-color .5s var(--ease);
}
.station.hot {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(26,60,110,.95), rgba(10,18,32,.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 0 0 1px rgba(46,123,214,.55),
    0 0 34px -6px rgba(46,123,214,.5),
    0 14px 34px -20px #000;
}
.station-ix {
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 118, "wght" 600;
  font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-4);
  display: block; margin-bottom: 14px;
  transition: color .4s var(--ease);
}
.station.hot .station-ix { color: var(--navy-glow); }
.station-ico {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(167,176,190,.06);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--silver-3);
  margin-bottom: 16px;
  transition: color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.station-ico svg { width: 21px; height: 21px; }
.station.hot .station-ico {
  color: #DCE9FF;
  background: rgba(46,123,214,.2);
  box-shadow: inset 0 0 0 1px rgba(46,123,214,.5);
}
.station h3 {
  font-size: 15.5px;
  font-variation-settings: "wdth" 100, "wght" 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.station p { font-size: 12.5px; color: var(--ink-3); font-weight: 300; line-height: 1.5; }

.flow-log {
  position: relative;
  margin-top: 26px;
  border-radius: var(--r-m);
  background: rgba(3,5,9,.7);
  box-shadow: inset 0 0 0 1px var(--line-2);
  overflow: hidden;
}
.flow-log-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  box-shadow: inset 0 -1px 0 var(--line-2);
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 112, "wght" 500;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-4);
}
.flow-log-bar span {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(167,176,190,.2);
}
.flow-log-bar span:last-of-type { margin-right: 8px; }
.flow-log ul {
  height: 132px; overflow: hidden;
  padding: 0 14px 12px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px; line-height: 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.flow-log li { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-log li .t { color: var(--ink-4); margin-right: 10px; }
.flow-log li .ok { color: var(--wa); }
.flow-log li .hl { color: #9CC6FF; }
.flow-log li.new { animation: logIn .45s var(--ease-out) both; }
@keyframes logIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.cta-inline {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  margin-top: 46px;
  padding: 26px 30px;
  border-radius: var(--r-l);
  background: linear-gradient(100deg, rgba(11,30,61,.5), rgba(8,11,18,.3));
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.cta-inline p { color: var(--ink-2); font-size: 16px; font-weight: 300; }

/* ============================================================
   02 · PAINEL
   ============================================================ */
.dash-scene {
  position: relative;
  perspective: 1600px;
  padding: 10px 0 60px;
}
.dash {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -9deg));
  transition: transform .3s var(--ease-out);
  border-radius: var(--r-l);
  background: linear-gradient(180deg, #0E1524, #070A11);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 0 0 1px var(--line-2),
    0 34px 60px -44px #000,
    0 0 54px -34px rgba(46,123,214,.45);
  overflow: hidden;
}
.dash-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  background: rgba(167,176,190,.03);
  box-shadow: inset 0 -1px 0 var(--line-2);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(167,176,190,.2); display: block; }
.dash-title { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.dash-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4);
}


.dash-body { padding: 22px; display: grid; gap: 18px; }

.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
  padding: 16px 18px; border-radius: var(--r-m);
  background: linear-gradient(180deg, rgba(167,176,190,.055), rgba(167,176,190,.015));
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.kpi-lab { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.kpi-num {
  display: block; margin: 8px 0 4px;
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 100, "wght" 750;
  font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.kpi-delta { font-size: 11.5px; font-weight: 500; }
.kpi-delta.up { color: var(--wa); }
.kpi-delta.down { color: #7FB4F5; }

.dash-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; }
.dash-chart, .dash-side {
  border-radius: var(--r-m);
  background: rgba(167,176,190,.03);
  box-shadow: inset 0 0 0 1px var(--line-2);
  padding: 16px 18px;
}
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dash-chart-head span { font-size: 12.5px; color: var(--ink-2); }
.dash-tag {
  font-size: 10.5px !important; color: var(--ink-4) !important;
  padding: 3px 9px; border-radius: 999px; background: rgba(167,176,190,.07);
}
#dash-canvas { width: 100%; height: 148px; }

.dash-side-head { font-size: 12.5px; color: var(--ink-2); margin-bottom: 12px; }
.dash-list { display: grid; gap: 2px; }
.dash-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 12.5px; color: var(--ink-2);
  box-shadow: inset 0 -1px 0 var(--line-2);
}
.dash-list li:last-child { box-shadow: none; }
.dash-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-list li em {
  margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.st { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; transition: background-color .6s var(--ease), box-shadow .6s var(--ease); }
.st.ok   { background: var(--wa); }
.st.warn { background: #F5A524; }
.st.late { background: #F5544C; box-shadow: 0 0 10px rgba(245,84,76,.6); }

.dash-kanban {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding: 16px; border-radius: var(--r-m);
  background: rgba(167,176,190,.03);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.kb-col { display: flex; flex-direction: column; gap: 10px; }
.kb-h {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4);
  padding-bottom: 9px; box-shadow: inset 0 -1px 0 var(--line-2);
}
.kb-h b { color: var(--ink-2); font-weight: 600; }
.kb-slot { min-height: 46px; border-radius: var(--r-s); background: rgba(167,176,190,.03); }
.kb-card {
  position: absolute;
  width: 118px; padding: 10px 12px; border-radius: var(--r-s);
  background: linear-gradient(180deg, rgba(30,66,120,.96), rgba(12,22,40,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 0 0 1px rgba(46,123,214,.5),
    0 10px 26px -12px rgba(0,0,0,.9),
    0 0 24px -8px rgba(46,123,214,.6);
  transition: transform .9s var(--ease-out);
  will-change: transform;
}
.kb-card b { display: block; font-size: 11.5px; font-family: var(--f-disp); font-variation-settings: "wght" 700; }
.kb-card span { font-size: 10.5px; color: var(--ink-3); }

.dash-float {
  position: absolute; z-index: 4;
  padding: 14px 18px; border-radius: var(--r-m);
  background: rgba(10,14,22,.94);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 0 0 1px var(--line),
    0 16px 32px -20px #000;
  animation: floaty 7s ease-in-out infinite;
}
.dash-float-a { top: -22px; right: -34px; animation-delay: -1s; }
.dash-float-b { bottom: -18px; left: -38px; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}
.ff-lab {
  display: block; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--navy-glow); margin-bottom: 5px;
}
.dash-float b { display: block; font-size: 14px; font-family: var(--f-disp); font-variation-settings: "wght" 700; letter-spacing: -0.015em; }
.ff-sub { font-size: 11.5px; color: var(--ink-4); }

/* ============================================================
   03 · ÓRBITA DE INTEGRAÇÕES
   ============================================================ */
.orbit {
  position: relative;
  height: 430px;
  perspective: 900px;
}
.orbit-3d {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(-19deg);
}
.orbit-halo {
  position: absolute; top: 50%; left: 50%;
  margin: -170px 0 0 -170px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,123,214,.22), transparent 66%);
  filter: blur(14px);
  pointer-events: none;
}
.orbit-core {
  position: absolute; top: 50%; left: 50%;
  margin: -66px 0 0 -66px;
  transform: rotateX(19deg) translateZ(1px);
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #1B3A69, #060A12 72%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 0 0 1px rgba(167,176,190,.22),
    0 0 60px -10px rgba(46,123,214,.7);
}
.orbit-core img { width: 62px; height: 62px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.7)); }
.orbit-3d .chip {
  position: absolute; top: 50%; left: 50%;
  margin: -16px 0 0 -56px;
  width: 112px; height: 32px;
  display: grid; place-items: center;
  border-radius: 999px;
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: 11.5px; letter-spacing: .04em;
  color: var(--silver-2);
  background: linear-gradient(180deg, rgba(28,38,56,.94), rgba(9,13,20,.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 0 0 1px var(--line),
    0 10px 26px -14px #000;
  white-space: nowrap;
}

/* ============================================================
   04 · REDE NEURAL
   ============================================================ */
.neural {
  width: 100%; height: 400px;
  border-radius: var(--r-l);
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(11,30,61,.55), rgba(5,7,11,.2));
  box-shadow: inset 0 0 0 1px var(--line-2);
}

/* ============================================================
   05 · PILARES
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  position: relative;
  padding: 34px 30px 34px;
  border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(167,176,190,.055), rgba(167,176,190,.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px var(--line-2);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
  overflow: hidden;
}
.pillar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(46,123,214,.2), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(167,176,190,.2), 0 30px 60px -40px #000; }
.pillar:hover::after { opacity: 1; }
.pillar-ico {
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 18px;
  background: rgba(46,123,214,.1);
  box-shadow: inset 0 0 0 1px rgba(46,123,214,.28);
  color: #A9CBF5;
  margin-bottom: 24px;
}
.pillar-ico svg { width: 30px; height: 30px; }
.pillar h3 {
  font-size: 20px; font-variation-settings: "wdth" 102, "wght" 750;
  letter-spacing: -0.022em; margin-bottom: 12px;
}
.pillar p { color: var(--ink-2); font-size: 14.5px; font-weight: 300; line-height: 1.65; }

.dash-anim { stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); }
.reveal.in .dash-anim { animation: drawIn 1.3s var(--ease-out) forwards; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }

/* ============================================================
   06 · CASE
   ============================================================ */
.case {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px); align-items: center;
}
.case-frame {
  position: relative;
  border-radius: var(--r-l);
  padding: 12px;
  background: linear-gradient(150deg, #C7CDD6, #4A5261 26%, #10141D 52%, #4A5261 78%, #C7CDD6);
  box-shadow: 0 28px 54px -40px #000, 0 0 44px -30px rgba(46,123,214,.5);
}
.case-frame iframe {
  display: block; width: 100%; height: 700px;
  border: 0; border-radius: 16px; background: #0A0D14;
}
.case-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 13.5px; color: var(--ink-3);
  transition: color .3s var(--ease);
}
.case-link:hover { color: var(--ink); }

.case-feats { display: grid; gap: 4px; margin-bottom: 34px; }
.case-feats li {
  padding: 17px 0;
  box-shadow: inset 0 -1px 0 var(--line-2);
}
.case-feats li:last-child { box-shadow: none; }
.case-feats b {
  display: block;
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 100, "wght" 700;
  font-size: 16px; letter-spacing: -0.015em; margin-bottom: 4px;
}
.case-feats span { font-size: 14px; color: var(--ink-3); font-weight: 300; line-height: 1.55; }

/* ============================================================
   07 · PASSOS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step {
  position: relative;
  padding: 34px 26px 34px 0;
  box-shadow: inset 1px 0 0 var(--line-2);
  padding-left: 26px;
}
.step:first-child { box-shadow: none; padding-left: 0; }
.step::before {
  content: ""; position: absolute; left: 0; top: 34px;
  width: 1px; height: 40px; background: var(--navy-glow);
  opacity: 0; transition: opacity .6s var(--ease);
}
.step:first-child::before { display: none; }
.step.in::before { opacity: 1; }
.step-n {
  display: block;
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 118, "wght" 700;
  font-size: 12px; letter-spacing: .22em;
  color: var(--navy-glow); margin-bottom: 18px;
}
.step h3 {
  font-size: 20px; font-variation-settings: "wdth" 102, "wght" 750;
  letter-spacing: -0.022em; margin-bottom: 10px;
}
.step p { font-size: 14.5px; color: var(--ink-2); font-weight: 300; line-height: 1.62; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.final {
  position: relative; z-index: 2;
  padding: clamp(90px, 13vw, 170px) 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(11,30,61,.36) 45%, transparent);
}
.final-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.final-in { position: relative; }
.final .eyebrow { justify-content: center; }
.final-title {
  font-size: clamp(34px, 6.6vw, 76px);
  font-variation-settings: "wdth" 110, "wght" 800;
  letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 26px;
}
.final-sub {
  max-width: 50ch; margin: 0 auto 42px;
  font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2); font-weight: 300; line-height: 1.66;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.foot { position: relative; z-index: 2; padding: 70px 0 34px; box-shadow: inset 0 1px 0 var(--line-2); }
.foot-in {
  display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
  gap: 44px; padding-bottom: 44px;
}
.foot-brand img { width: 140px; margin-bottom: 20px; opacity: .95; }
.foot-brand p { font-size: 14px; color: var(--ink-3); font-weight: 300; max-width: 40ch; }
.foot-nav { display: flex; flex-direction: column; gap: 12px; }
.foot-h {
  font-family: var(--f-disp);
  font-variation-settings: "wdth" 118, "wght" 600;
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 4px;
}
.foot-nav a { font-size: 14px; color: var(--ink-2); transition: color .3s var(--ease); }
@media (max-width: 720px) {
  /* 22px de altura não é alvo de dedo. */
  .foot-nav a { padding: 9px 0; }
  .case-link { padding: 9px 0; }
}
.foot-nav a:hover { color: var(--ink); }
.foot-bot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 26px;
  box-shadow: inset 0 1px 0 var(--line-2);
  font-size: 12.5px; color: var(--ink-4);
}

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #2FE476, #16A34A);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 10px 30px -8px rgba(22,163,74,.7),
    0 4px 14px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.85);
  transition: opacity .45s var(--ease), transform .45s var(--ease-out), visibility .45s;
}
.wa-float.show { opacity: 1; visibility: visible; transform: none; }
.wa-float:hover { transform: scale(1.07); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(47,228,118,.4);
  animation: waPulse 2.6s var(--ease) infinite;
  z-index: -1;
}
@keyframes waPulse {
  0%        { transform: scale(1); opacity: .45; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

/* ============================================================
   REVELAÇÃO NO SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }
.reveal:nth-child(5) { transition-delay: .24s; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-in { gap: 16px; }
  .nav-actions { margin-left: auto; }

  .flow-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .flow-track .station:last-child { grid-column: span 2; }

  .dash-main { grid-template-columns: 1fr; }
  .dash-float { display: none; }

  .case { grid-template-columns: 1fr; }
  .case-frame iframe { height: 640px; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { box-shadow: none; padding-left: 0; }
  .step:nth-child(3)::before { display: none; }

  .pillars { grid-template-columns: 1fr; }

  .wrap-split { grid-template-columns: 1fr; }
  .wrap-split-rev .split-vis { order: 0; }

  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}

@media (max-width: 720px) {
  .wrap, .nav-in, .hero-in { padding-left: 20px; padding-right: 20px; }
  .hero { min-height: auto; padding: calc(var(--nav-h) + 48px) 0 84px; }
  .hero-scroll { display: none; }
  /* Menores e do tamanho do próprio texto — esticados na largura toda
     eles dominavam a primeira tela. */
  .hero-cta { gap: 10px; margin-top: 38px; }
  .hero-cta .btn-lg { padding: 14px 22px; font-size: 14px; }
  /* Sem as quebras fixas: em 350px elas jogavam "seu processo em" na borda. */
  .hero-title br { display: none; }
  .hero-title { font-size: clamp(36px, 11vw, 52px); max-width: 100%; }
  /* WhatsApp do topo vira só o ícone — o rótulo espremia a logo. */
  .nav-actions .btn-sm { padding: 11px; }
  .nav-actions .btn-sm .btn-txt { display: none; }
  .nav-logo img { width: 108px; }

  .flow { padding: 16px; }
  /* Gap generoso de propósito: é o espaço onde o fio e o pacote aparecem. */
  .flow-track { grid-template-columns: 1fr; gap: 30px; }
  .flow-track .station:last-child { grid-column: auto; }
  .station { padding: 15px 16px 17px; }
  .station-ico { width: 36px; height: 36px; margin-bottom: 12px; }
  .station-ico svg { width: 18px; height: 18px; }
  .flow-head { margin-bottom: 20px; }
  /* 12px monoespaçado não cabe em 322px — as linhas vinham com reticências. */
  .flow-log ul { height: 120px; padding: 0 11px 10px; font-size: 10.5px; }
  .flow-log li { line-height: 20px; }
  .flow-log li .t { margin-right: 7px; }

  .dash-scene { perspective: none; }
  .dash { transform: none !important; }
  .dash-body { padding: 14px; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  /* Duas colunas viram duas linhas: sem row-gap o card sobrepunha o
     cabeçalho "Revisão" da linha de baixo. */
  .dash-kanban { grid-template-columns: repeat(2, 1fr); row-gap: 22px; padding: 14px; }
  .kb-card { width: calc(50% - 21px); }
  .dash-float { display: none; }
  .dash-chart, .dash-side { padding: 14px; }
  #dash-canvas { height: 120px; }

  .orbit { height: 268px; }
  .orbit-3d .chip {
    width: 94px; height: 28px; margin: -14px 0 0 -47px;
    font-size: 10.5px;
  }
  .orbit-core { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
  .orbit-core img { width: 48px; height: 48px; }
  .orbit-halo { width: 250px; height: 250px; margin: -125px 0 0 -125px; }
  .neural { height: 300px; }

  .case-frame iframe { height: 560px; }
  .case-frame { padding: 8px; }

  .steps { grid-template-columns: 1fr; }
  .step { padding-left: 0 !important; box-shadow: inset 0 -1px 0 var(--line-2) !important; }
  .step::before { display: none !important; }

  .cta-inline { padding: 22px; }
  .cta-inline .btn { width: 100%; }

  .foot-in { grid-template-columns: 1fr; gap: 30px; }
  .foot-brand { grid-column: auto; }
  .foot-bot { flex-direction: column; gap: 6px; }

  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ============================================================
   MOVIMENTO REDUZIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .dash-anim { stroke-dashoffset: 0; }
  .dash { transform: none !important; }
}
