/* ==========================================================================
   AltDoc — Landing Page de lançamento
   Tokens · Base · Componentes · Seções · Responsivo · Movimento reduzido
   ========================================================================== */

:root {
  /* Superfícies (Dark Corporate, a partir do navy da marca) */
  --bg: #070b12;
  --bg-2: #0d1523;
  --surface: #0e1522;
  --surface-2: #131c2c;
  --surface-3: #1a2538;
  --line: rgba(148, 163, 184, .12);
  --line-strong: rgba(148, 163, 184, .22);

  /* Texto */
  --text: #f3f5f7;
  --text-2: #c8d0dc;
  --muted: #8b97a8;

  /* Marca */
  --accent: #15b482;            /* verde AltDoc — CTAs e destaques */
  --accent-hi: #2fe0a6;
  --accent-rgb: 21, 180, 130;
  --on-accent: #03140d;
  --hl: #3a80dc;                /* azul — destaques (verde fica só nos CTAs) */
  --hl-hi: #7db4f7;
  --hl-rgb: 58, 128, 220;
  --blue: #3a80dc;
  --blue-hi: #5ea2f0;
  --blue-rgb: 58, 128, 220;
  --warn: #ff5a6a;
  --warn-rgb: 255, 90, 106;

  /* Tipografia */
  --f-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
  --cut: clamp(36px, 6vw, 96px);   /* altura dos cortes diagonais entre seções */
  --radius-sm: 12px;
  --header-h: 72px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .65), 0 0 0 1px var(--line);
  --glow: 0 0 0 1px rgba(var(--accent-rgb), .5), 0 10px 40px -8px rgba(var(--accent-rgb), .55);

  color-scheme: dark;
}

/* Variante do briefing: vermelho neon nos CTAs (?tema=vermelho) */
:root[data-accent="red"] {
  --accent: #ff2d55;
  --accent-hi: #ff6482;
  --accent-rgb: 255, 45, 85;
  --on-accent: #ffffff;
  --warn: #ffb020;
  --warn-rgb: 255, 176, 32;
}

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(var(--hl-rgb), .35); color: #fff; }

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--f-mono); font-feature-settings: "zero"; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 16px; }

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

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* -------------------------------------------------------------------------- */
/* Tipografia                                                                 */
/* -------------------------------------------------------------------------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  word-spacing: .05em;
  text-wrap: balance;
}
.display-md { font-size: clamp(2.1rem, 4vw, 3.5rem); }
.hl {
  background: linear-gradient(100deg, #a9d0ff 0%, var(--hl-hi) 35%, var(--hl) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  word-spacing: .04em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--text-2); max-width: 58ch; }
.subtitle { color: var(--text-2); font-size: 1.05rem; max-width: 60ch; }
.body-lg { color: var(--text-2); font-size: 1.05rem; max-width: 56ch; }
.eyebrow {
  display: inline-block;
  font-size: .95rem; font-weight: 700; letter-spacing: -.01em;
  color: var(--hl-hi);
}
.eyebrow::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 9px; background: currentColor; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.eyebrow .count { color: var(--muted); font-weight: 500; }
.eyebrow .count::before { content: "·"; margin: 0 8px; }
.eyebrow-warn { color: var(--warn); }

/* -------------------------------------------------------------------------- */
/* Botões                                                                     */
/* -------------------------------------------------------------------------- */
.btn {
  --h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border-radius: 12px;
  font-weight: 700; font-size: .92rem; letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: .78rem; }
.btn-lg { --h: 58px; padding: 0 30px; font-size: .95rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 30px -10px rgba(var(--accent-rgb), .8); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }

.btn-outline { color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), .6); }
.btn-outline:hover { background: rgba(var(--accent-rgb), .1); box-shadow: inset 0 0 0 1.5px var(--accent), 0 8px 30px -12px rgba(var(--accent-rgb), .7); transform: translateY(-2px); }

/* -------------------------------------------------------------------------- */
/* Cabeçalho                                                                  */
/* -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 18, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-word { font-weight: 800; font-size: 1.55rem; letter-spacing: -.055em; line-height: 1; }
.brand-word b { color: #15b482; font-weight: 800; }
.header-nav { display: flex; gap: 4px; }
.header-nav a { padding: 8px 14px; border-radius: 10px; font-size: .86rem; font-weight: 500; color: var(--text-2); transition: color .2s, background-color .2s; }
.header-nav a:hover, .header-nav a.is-current { color: var(--text); background: rgba(255, 255, 255, .06); }

/* -------------------------------------------------------------------------- */
/* Fundos e overlays                                                          */
/* -------------------------------------------------------------------------- */
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.glow-a { width: 560px; height: 560px; right: -120px; top: -80px; background: radial-gradient(circle, rgba(var(--blue-rgb), .55), transparent 65%); }
.glow-b { width: 520px; height: 520px; left: -180px; bottom: -220px; background: radial-gradient(circle, rgba(var(--hl-rgb), .45), transparent 65%); }
.glow-c { width: 760px; height: 520px; left: 50%; top: 10%; transform: translateX(-50%); background: radial-gradient(circle, rgba(var(--hl-rgb), .28), transparent 65%); }

.streams { position: absolute; inset: 0; overflow: hidden; }
.streams i {
  position: absolute; top: -30%; width: 1px; height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(var(--hl-rgb), .7), transparent);
  animation: stream 7s linear infinite;
}
.streams i:nth-child(1) { left: 12%; animation-delay: -1s; }
.streams i:nth-child(2) { left: 31%; animation-delay: -4s; animation-duration: 9s; background: linear-gradient(to bottom, transparent, rgba(var(--blue-rgb), .7), transparent); }
.streams i:nth-child(3) { left: 52%; animation-delay: -2.5s; }
.streams i:nth-child(4) { left: 68%; animation-delay: -6s; animation-duration: 8s; background: linear-gradient(to bottom, transparent, rgba(var(--blue-rgb), .7), transparent); }
.streams i:nth-child(5) { left: 84%; animation-delay: -3.2s; animation-duration: 10s; }
.streams i:nth-child(6) { left: 95%; animation-delay: -5.5s; }
@keyframes stream { to { transform: translateY(460%); } }

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 calc(88px + var(--cut)); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 0%, #0c1424 0%, var(--bg) 60%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }


.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.support-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.support-strip li { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; color: var(--text-2); }
.support-strip .ic { color: var(--hl); }

/* Mockup */
.hero-visual { position: relative; perspective: 1400px; }
.dash {
  position: relative;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(19, 28, 44, .92), rgba(10, 16, 26, .96));
  box-shadow: var(--shadow-lg), 0 0 120px -30px rgba(var(--blue-rgb), .45);
  transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.dash::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 255, 255, .22), transparent 35%, transparent 65%, rgba(var(--hl-rgb), .35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.dash-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--muted); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3548; }
.dash-url { flex: 1; font-family: var(--f-mono); }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--hl-hi); text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--hl); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.dash-body { display: grid; grid-template-columns: 56px 1fr; min-height: 380px; }
.dash-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; border-right: 1px solid var(--line); }
.dash-side span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); }
.dash-side span.is-active { background: rgba(var(--hl-rgb), .14); color: var(--hl-hi); }
.dash-main { padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { position: relative; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi-label { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.03em; }
.kpi-alert .kpi-value { color: var(--warn); }
.kpi-note { font-size: .66rem; color: var(--muted); }
.spark { height: 20px; width: 100%; }
.spark path { fill: none; stroke: var(--hl); stroke-width: 2; vector-effect: non-scaling-stroke; }
.kpi-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 8px; }
.kpi-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--hl)); border-radius: inherit; }

.feed { border-radius: 12px; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; flex: 1; }
.feed-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--line); }
.feed-head .mono { font-weight: 400; letter-spacing: 0; text-transform: none; }
.feed-list { position: relative; height: 230px; overflow: hidden; }
.feed-row {
  display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid rgba(148, 163, 184, .07);
  font-size: .74rem;
  animation: rowIn .7s var(--ease) both;
}
.feed-row .doc { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(var(--blue-rgb), .14); color: var(--blue-hi); font-size: .56rem; font-weight: 800; letter-spacing: .04em; }
.feed-row .who { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.feed-row .who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row .who small { color: var(--muted); font-family: var(--f-mono); font-size: .64rem; }
.feed-row .val { font-family: var(--f-mono); color: var(--text-2); font-size: .7rem; }
.feed-row.is-alert .doc { background: rgba(var(--warn-rgb), .15); color: var(--warn); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-14px); background: rgba(var(--hl-rgb), .12); } to { opacity: 1; transform: none; background: transparent; } }

.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .64rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.st-ok { color: var(--hl-hi); background: rgba(var(--hl-rgb), .16); }
.st-blue { color: var(--text-2); background: rgba(148, 163, 184, .12); }
.st-warn { color: var(--warn); background: rgba(var(--warn-rgb), .14); }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(14, 21, 34, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--line-strong);
  font-size: .76rem; line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.float-chip > .ic { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: rgba(var(--hl-rgb), .16); color: var(--hl-hi); }
.float-chip span { display: flex; flex-direction: column; }
.float-chip small { color: var(--muted); }
.chip-a { left: -36px; bottom: -22px; }
.chip-b { right: -22px; top: -52px; animation-delay: -3s; }
.chip-b > .ic { background: rgba(var(--blue-rgb), .18); color: var(--blue-hi); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* -------------------------------------------------------------------------- */
/* Seções genéricas                                                           */
/* -------------------------------------------------------------------------- */
.section { position: relative; padding: calc(clamp(72px, 10vw, 128px) + var(--cut)) 0 clamp(72px, 10vw, 128px); margin-top: calc(var(--cut) * -1); }

/* Cortes diagonais entre seções — o mesmo ângulo dos triângulos do ícone */
.cut-a { clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-b { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.cut-peak { clip-path: polygon(0 var(--cut), 47% 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-a::after, .cut-b::after, .cut-peak::after {
  content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: calc(var(--cut) + 2px); pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--hl-rgb), 0), rgba(var(--hl-rgb), .9) 55%, rgba(var(--hl-rgb), .15));
}
.cut-a::after { clip-path: polygon(0 0, 100% var(--cut), 100% calc(var(--cut) + 2px), 0 2px); }
.cut-b::after { clip-path: polygon(0 var(--cut), 100% 0, 100% 2px, 0 calc(var(--cut) + 2px)); background: linear-gradient(90deg, rgba(var(--hl-rgb), .15), rgba(var(--hl-rgb), .9) 45%, rgba(var(--hl-rgb), 0)); }
.cut-peak::after { clip-path: polygon(0 var(--cut), 47% 0, 100% var(--cut), 100% calc(var(--cut) + 2px), 47% 2px, 0 calc(var(--cut) + 2px)); background: linear-gradient(90deg, rgba(var(--hl-rgb), 0), rgba(var(--hl-rgb), .9) 47%, rgba(var(--hl-rgb), 0)); }

/* Triângulos decorativos inspirados no ícone */
.tri { position: absolute; pointer-events: none; }
.tri-peak { clip-path: polygon(0 100%, 47% 0, 100% 100%); background: linear-gradient(180deg, rgba(var(--hl-rgb), .13), rgba(var(--hl-rgb), 0) 85%); }
.tri-right { clip-path: polygon(100% 0, 100% 100%, 0 100%); background: linear-gradient(135deg, rgba(var(--hl-rgb), 0) 30%, rgba(var(--hl-rgb), .16)); }
.hero .tri-peak { width: min(62vw, 820px); aspect-ratio: 1.15; right: -6%; bottom: 0; }
.hero .tri-right { width: min(26vw, 340px); aspect-ratio: 1; left: -2%; bottom: 0; }
.security .tri-right { width: min(40vw, 520px); aspect-ratio: 1; right: 0; bottom: 0; }
.final .tri-peak { width: min(70vw, 900px); aspect-ratio: 1.2; left: -12%; bottom: 0; opacity: .8; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin: 0 auto clamp(40px, 6vw, 64px); max-width: 880px; }
.section-head.left { align-items: flex-start; text-align: left; margin: 0 0 28px; }
.section-cta { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }

.card {
  position: relative; isolation: isolate;
  padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.025em; margin: 20px 0 10px; }
.card p { color: var(--text-2); font-size: .97rem; }
.card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -30px rgba(0, 0, 0, .8); }

/* Spotlight que segue o cursor */
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--hl-rgb), .12), transparent 45%);
  transition: opacity .4s;
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--hl-rgb), .7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .4s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

.icon-tile { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(var(--hl-rgb), .12); color: var(--hl-hi); box-shadow: inset 0 0 0 1px rgba(var(--hl-rgb), .3); transition: transform .5s var(--ease); }
.icon-tile .ic { width: 24px; height: 24px; }
.icon-tile.warn { background: rgba(var(--warn-rgb), .1); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(var(--warn-rgb), .3); }
.icon-tile.blue { background: rgba(var(--blue-rgb), .14); color: var(--blue-hi); box-shadow: inset 0 0 0 1px rgba(var(--blue-rgb), .35); }
.card:hover .icon-tile { transform: translateY(-3px) rotate(-4deg); }

/* -------------------------------------------------------------------------- */
/* 2. Dor                                                                     */
/* -------------------------------------------------------------------------- */
.pain { background: var(--bg-2); }
.pain-card .card-num { position: absolute; top: 22px; right: 26px; font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.05em; line-height: 1; color: rgba(255, 255, 255, .05); transition: color .4s; }
.pain-card:hover .card-num { color: rgba(var(--warn-rgb), .18); }
.pain .spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--warn-rgb), .09), transparent 45%); }
.pain .spot::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--warn-rgb), .55), transparent 60%); }

/* -------------------------------------------------------------------------- */
/* 3. Pilares                                                                 */
/* -------------------------------------------------------------------------- */
.pillars { background: var(--bg); }
.pillar { padding: 18px 18px 30px; display: flex; flex-direction: column; }
.pillar > h3, .pillar > p, .pillar > .pillar-tag { padding: 0 12px; }
.pillar-tag { margin-top: 24px; font-size: .82rem; font-weight: 700; color: var(--hl-hi); }
.pillar h3 { margin-top: 8px; font-size: 1.35rem; }
.pillar-visual {
  position: relative; height: 180px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, rgba(var(--blue-rgb), .14), transparent 70%), rgba(255, 255, 255, .02);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Radar */
.vis-capture { display: grid; place-items: center; }
.radar { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; transform: translate(-50%, -50%); }
.radar i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(var(--hl-rgb), .22); }
.radar i:nth-child(1) { width: 70px; height: 70px; }
.radar i:nth-child(2) { width: 140px; height: 140px; }
.radar i:nth-child(3) { width: 210px; height: 210px; }
.sweep { position: absolute; inset: 5px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(var(--hl-rgb), .45), transparent 70deg); animation: spin 4s linear infinite; -webkit-mask: radial-gradient(circle, #000 70%, transparent 71%); mask: radial-gradient(circle, #000 70%, transparent 71%); }
@keyframes spin { to { transform: rotate(360deg); } }
.nsu-ticker { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 16px; border-radius: 12px; background: rgba(7, 11, 18, .85); box-shadow: inset 0 0 0 1px var(--line-strong); }
.nsu-ticker small { font-size: .62rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nsu-ticker b { font-size: 1.05rem; color: var(--hl-hi); font-weight: 500; }

/* Lote */
.vis-batch { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px 22px; }
.batch { display: flex; flex-direction: column; gap: 8px; }
.batch li { display: flex; align-items: center; gap: 10px; }
.batch i { position: relative; width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color .3s, box-shadow .3s; }
.batch i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.batch span { flex: 1; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.batch li:nth-child(2) span { flex: .8; } .batch li:nth-child(3) span { flex: .9; } .batch li:nth-child(4) span { flex: .7; }
.batch em { font-style: normal; font-size: .62rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.batch li.on i { background: var(--hl); box-shadow: none; }
.batch li.on i::after { transform: rotate(45deg) scale(1); }
.batch-pill { align-self: flex-start; font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--hl-hi); background: rgba(var(--hl-rgb), .14); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.vis-batch.done .batch-pill { opacity: 1; transform: none; }

/* Fila */
.vis-queue { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 18px 22px; }
.q-lane { display: flex; align-items: center; gap: 12px; }
.q-lane span { width: 34px; font-size: .62rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.q-track { position: relative; flex: 1; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.q-track i { position: absolute; top: 6px; left: -20px; width: 14px; height: 14px; border-radius: 4px; background: var(--blue); animation: lane 3.2s linear infinite; }
.q-busy i { background: var(--hl); }
.q-busy i:nth-child(2) { animation-delay: -1.06s; }
.q-busy i:nth-child(3) { animation-delay: -2.13s; }
@keyframes lane { to { left: 100%; } }
.q-workers { display: flex; gap: 8px; padding-left: 46px; }
.q-workers b { flex: 1; height: 30px; border-radius: 8px; background: rgba(var(--hl-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--hl-rgb), .3); position: relative; overflow: hidden; }
.q-workers b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(var(--hl-rgb), .45), transparent); transform: translateX(-100%); animation: work 2.4s var(--ease) infinite; }
.q-workers b:nth-child(2)::after { animation-delay: .3s; } .q-workers b:nth-child(3)::after { animation-delay: .6s; } .q-workers b:nth-child(4)::after { animation-delay: .9s; }
@keyframes work { to { transform: translateX(100%); } }

/* -------------------------------------------------------------------------- */
/* 4. Infográfico interativo                                                  */
/* -------------------------------------------------------------------------- */
.flow { background: radial-gradient(80% 60% at 50% 0%, rgba(var(--blue-rgb), .08), transparent 70%), var(--bg-2); }
.flow-shell { border-radius: 24px; padding: clamp(20px, 3.5vw, 40px); background: linear-gradient(180deg, rgba(19, 28, 44, .7), rgba(10, 16, 26, .7)); box-shadow: var(--shadow-lg); }

.flow-track { position: relative; margin-bottom: clamp(24px, 4vw, 40px); }
.flow-rail { position: absolute; left: 12.5%; right: 12.5%; top: 31px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.flow-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--blue), var(--hl)); border-radius: inherit; box-shadow: 0 0 14px rgba(var(--hl-rgb), .7); transition: width .8s var(--ease); }
.flow-token {
  position: absolute; top: 50%; left: 0; z-index: 2;
  display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 8px;
  background: var(--hl); color: #fff; box-shadow: 0 0 0 6px rgba(var(--hl-rgb), .15), 0 0 24px rgba(var(--hl-rgb), .8);
  transition: left .8s var(--ease);
  opacity: 0;
}
.flow-token .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.flow-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px 14px; text-align: center; color: var(--muted); }
.node {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; margin-bottom: 10px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color .4s, box-shadow .4s, color .4s, transform .5s var(--ease);
}
.node .ic { width: 24px; height: 24px; }
.flow-step:hover .node { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(var(--hl-rgb), .55); color: var(--text); }
.flow-step.is-done .node { color: var(--hl-hi); box-shadow: inset 0 0 0 1px rgba(var(--hl-rgb), .45); }
.flow-step.is-active .node { background: rgba(var(--hl-rgb), .14); color: var(--hl-hi); box-shadow: inset 0 0 0 1.5px var(--hl), 0 0 0 8px rgba(var(--hl-rgb), .08), 0 12px 40px -8px rgba(var(--hl-rgb), .6); transform: scale(1.06); }
.step-n { font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.step-t { font-weight: 700; font-size: 1rem; color: var(--text-2); transition: color .3s; }
.flow-step.is-active .step-t { color: var(--text); }
.flow-step.is-active .step-n { color: var(--hl); }
.step-timer { position: absolute; left: 50%; bottom: 0; width: 44px; height: 3px; margin-left: -22px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; opacity: 0; transition: opacity .3s; }
.step-timer i { display: block; height: 100%; width: 0; background: var(--hl); }
.flow-shell.is-playing .flow-step.is-active .step-timer { opacity: 1; }
.flow-shell.is-playing .flow-step.is-active .step-timer i { animation: timer var(--flow-ms, 5200ms) linear forwards; }
@keyframes timer { to { width: 100%; } }

.flow-panels { position: relative; }
.flow-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: 300px; }
.flow-panel.is-active { animation: panelIn .6s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel-copy { display: flex; flex-direction: column; gap: 14px; }
.panel-n { font-size: .85rem; font-weight: 700; color: var(--hl-hi); font-variant-numeric: tabular-nums; }
.panel-copy h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.035em; }
.panel-copy > p { font-size: 1.1rem; color: var(--text-2); }
.note { font-size: .92rem; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: rgba(var(--blue-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--blue-rgb), .25); }

.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: .97rem; }
.ticks .ic { margin-top: 3px; color: var(--hl); padding: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(var(--hl-rgb), .14); stroke-width: 3; }

.panel-visual { border-radius: 16px; background: rgba(7, 11, 18, .75); box-shadow: inset 0 0 0 1px var(--line-strong); overflow: hidden; }

/* Terminal */
.term-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .7rem; color: var(--muted); }
.term-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: .78rem; min-height: 210px; }
.term-body p { opacity: 0; transform: translateX(-6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-panel.is-active .term-body p { animation: lineIn .4s var(--ease) forwards; }
.flow-panel.is-active .term-body p:nth-child(2) { animation-delay: .25s; }
.flow-panel.is-active .term-body p:nth-child(3) { animation-delay: .5s; }
.flow-panel.is-active .term-body p:nth-child(4) { animation-delay: .7s; }
.flow-panel.is-active .term-body p:nth-child(5) { animation-delay: .95s; }
.flow-panel.is-active .term-body p:nth-child(6) { animation-delay: 1.2s; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.t-dim { color: #5d6b80; } .t-blue { color: var(--blue-hi); } .t-ok { color: var(--hl-hi); }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 6px; vertical-align: -2px; background: var(--hl); animation: blink 1s steps(2) infinite; }

/* Planilha de ciência */
.sheet { font-size: .8rem; }
.sheet-head, .sheet-row, .sheet-foot { display: grid; grid-template-columns: 1.4fr .7fr .8fr; align-items: center; gap: 10px; padding: 10px 16px; }
.sheet-head { font-size: .64rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--line); }
.sheet-row { border-bottom: 1px solid rgba(148, 163, 184, .07); }
.sheet-row .mono { color: var(--muted); font-size: .74rem; }
.sheet-row .st { opacity: 0; transform: scale(.8); justify-self: start; }
.flow-panel.is-active .sheet-row .st { animation: pop .4s var(--ease) forwards; }
.flow-panel.is-active .sheet-row:nth-of-type(3) .st { animation-delay: .15s; }
.flow-panel.is-active .sheet-row:nth-of-type(4) .st { animation-delay: .3s; }
.flow-panel.is-active .sheet-row:nth-of-type(5) .st { animation-delay: .45s; }
.flow-panel.is-active .sheet-row:nth-of-type(6) .st { animation-delay: .6s; }
.flow-panel.is-active .sheet-row:nth-of-type(7) .st { animation-delay: .75s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.sheet-foot { grid-template-columns: 1fr auto; background: rgba(255, 255, 255, .02); color: var(--muted); font-size: .74rem; }

/* Parser */
.parse { display: grid; grid-template-columns: 1fr auto 1.15fr; align-items: center; gap: 12px; padding: 16px; }
.xml { margin: 0; font-size: .7rem; line-height: 1.7; color: var(--text-2); white-space: pre; overflow: hidden; }
.parse-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(var(--hl-rgb), .14); color: var(--hl-hi); }
.flow-panel.is-active .parse-arrow { animation: nudge 1.4s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.items { display: flex; flex-direction: column; gap: 2px; font-size: .74rem; }
.items-row { display: grid; grid-template-columns: 1.6fr .5fr .8fr; gap: 8px; padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .025); }
.items-row span:not(:first-child) { text-align: right; font-family: var(--f-mono); font-size: .7rem; }
.items-h { background: none; font-size: .62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.flow-panel.is-active .items-row:not(.items-h) { animation: lineIn .45s var(--ease) both; }
.flow-panel.is-active .items-row:nth-child(3) { animation-delay: .15s; }
.flow-panel.is-active .items-row:nth-child(4) { animation-delay: .3s; }
.danfe { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px; border-radius: 8px; font-size: .7rem; font-weight: 700; color: var(--blue-hi); background: rgba(var(--blue-rgb), .14); }

/* Distribuição */
.seg { display: inline-flex; align-self: flex-start; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-strong); }
.seg button { padding: 8px 16px; border-radius: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); transition: background-color .3s, color .3s; }
.seg button:hover { color: var(--text); }
.seg button.is-on { background: var(--hl); color: #fff; }
.dest { position: relative; min-height: 236px; }
.dest-view { position: absolute; inset: 0; padding: 16px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.dest-view.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dest-view[data-dest-view="erp"] { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.erp-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.erp-card div { display: flex; flex-direction: column; line-height: 1.3; font-size: .86rem; }
.erp-card small { color: var(--muted); font-size: .74rem; }
.erp-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(var(--hl-rgb), .12); color: var(--hl-hi); }
.json { margin: 0; font-size: .76rem; line-height: 1.7; color: var(--text-2); white-space: pre; overflow: auto; }

.flow-controls { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.flow-play { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .2s, box-shadow .2s; }
.flow-play:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(var(--hl-rgb), .6); }
.flow-play .ic { width: 15px; height: 15px; }
.flow-play .ic-play { display: none; fill: currentColor; }
.flow-shell:not(.is-playing) .flow-play .ic-pause { display: none; }
.flow-shell:not(.is-playing) .flow-play .ic-play { display: block; }

/* -------------------------------------------------------------------------- */
/* 5. Segurança                                                               */
/* -------------------------------------------------------------------------- */
.security { overflow: hidden; background: var(--bg); }
.rack-overlay {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='36' viewBox='0 0 120 36'%3E%3Crect x='4' y='4' width='112' height='28' rx='3' fill='none' stroke='%2394a3b8' stroke-opacity='.08'/%3E%3Ccircle cx='14' cy='18' r='1.6' fill='%2315b482' fill-opacity='.35'/%3E%3Ccircle cx='21' cy='18' r='1.6' fill='%233a80dc' fill-opacity='.3'/%3E%3Cpath d='M40 13h60M40 18h60M40 23h60' stroke='%2394a3b8' stroke-opacity='.06'/%3E%3C/svg%3E");
  background-size: 120px 36px;
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 85% 45%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 50% 70% at 85% 45%, #000, transparent 75%);
}
.security-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.security-copy { display: flex; flex-direction: column; gap: 18px; }
.security-copy .btn { margin-top: 10px; }

.security-visual { position: relative; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.vault { position: relative; width: min(100%, 420px); aspect-ratio: 1.25; display: grid; place-items: center; }
.vault-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(var(--hl-rgb), .3); }
.vault-ring.r1 { width: 62%; aspect-ratio: 1; animation: spin 40s linear infinite; }
.vault-ring.r2 { width: 88%; aspect-ratio: 1; border-style: solid; border-color: rgba(var(--blue-rgb), .18); animation: spin 60s linear infinite reverse; }
.vault-ring.r2::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 12px var(--blue-hi); }
.vault-core { position: relative; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 30px; background: linear-gradient(160deg, var(--surface-3), var(--surface)); box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 60px -10px rgba(var(--hl-rgb), .6); color: var(--hl-hi); }
.vault-core .ic { width: 44px; height: 44px; stroke-width: 1.6; }
.cert, .cert-alert { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 14px; background: rgba(14, 21, 34, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .8), inset 0 0 0 1px var(--line-strong); font-size: .8rem; line-height: 1.3; transition: transform .5s var(--ease); }
.cert div, .cert-alert div { display: flex; flex-direction: column; }
.cert small, .cert-alert small { color: var(--muted); font-size: .72rem; }
.cert { left: 0; top: 10%; animation: float 7s ease-in-out infinite; }
.cert b { font-weight: 500; font-size: .78rem; }
.cert-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(var(--blue-rgb), .16); color: var(--blue-hi); }
.cert-alert { right: 0; bottom: 8%; animation: float 7s ease-in-out -3.5s infinite; }
.cert-alert > .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 176, 32, .14); color: #ffb020; }
.security-visual:hover .cert { transform: translateX(-6px); }

.tenants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 420px); }
.tenant { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; font-size: .78rem; font-weight: 600; color: var(--text-2); background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); position: relative; transition: box-shadow .3s, color .3s; }
.tenant .ic { color: var(--blue-hi); }
.tenant:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(var(--blue-rgb), .55); }
.tenant + .tenant::before { content: ""; position: absolute; left: -6px; top: 20%; bottom: 20%; width: 2px; border-radius: 2px; background: repeating-linear-gradient(to bottom, rgba(var(--hl-rgb), .6) 0 3px, transparent 3px 6px); }

.stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: clamp(48px, 7vw, 80px) 0 0; }
.stat { position: relative; isolation: isolate; margin: 0; padding: 28px 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease); }
.stat:hover { transform: translateY(-4px); }
.stat dd { margin: 0; }
.stat-v { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1.05; letter-spacing: -.045em; background: linear-gradient(180deg, #fff, #9fb0c6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat:nth-child(2) .stat-v { background-image: linear-gradient(180deg, var(--blue-hi), var(--blue)); }
.stat:nth-child(3) .stat-v { background-image: linear-gradient(180deg, #cfe3ff, var(--hl-hi)); }
.stat-l { margin-top: 6px; color: var(--text-2); font-size: .95rem; }

/* -------------------------------------------------------------------------- */
/* 6. Modelos                                                                 */
/* -------------------------------------------------------------------------- */
.models { background: var(--bg-2); }
.model { display: flex; flex-direction: column; padding: 34px; }
.model h3 { font-size: 1.5rem; margin: 22px 0 18px; }
.model .ticks { flex: 1; margin-bottom: 28px; }
.model-featured { background: linear-gradient(180deg, rgba(var(--hl-rgb), .1), var(--surface) 60%); box-shadow: inset 0 0 0 1px rgba(var(--hl-rgb), .35); }
.model-featured:hover { box-shadow: inset 0 0 0 1px rgba(var(--hl-rgb), .6), 0 30px 70px -30px rgba(var(--hl-rgb), .45); }
.model-flag { position: absolute; top: 30px; right: 30px; font-size: .82rem; font-weight: 700; color: var(--hl-hi); }
.flag-blue { color: var(--muted); }

/* -------------------------------------------------------------------------- */
/* 7. CTA final + formulário                                                  */
/* -------------------------------------------------------------------------- */
.final { overflow: hidden; background: linear-gradient(180deg, #0a1730 0%, var(--bg) 75%); }
.final-bg { position: absolute; inset: 0; pointer-events: none; }
.final-bg .grid-lines { -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 20%, transparent 75%); }
.final-inner { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.final-copy { display: flex; flex-direction: column; gap: 22px; }
.next-steps { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; counter-reset: s; }
.next-steps li { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 0; color: var(--text-2); font-weight: 500; }
.next-steps li + li { border-top: 1px solid var(--line); }
.next-steps .num { font-weight: 800; font-variant-numeric: tabular-nums; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; font-size: .74rem; color: var(--hl-hi); background: rgba(var(--hl-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--hl-rgb), .3); }

.form-card { position: relative; border-radius: 24px; padding: clamp(24px, 3.5vw, 36px); background: linear-gradient(180deg, rgba(26, 37, 56, .9), rgba(14, 21, 34, .95)); box-shadow: var(--shadow-lg), 0 0 100px -40px rgba(var(--hl-rgb), .55); }
.form-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(var(--hl-rgb), .55), transparent 40%, transparent 70%, rgba(var(--blue-rgb), .45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.form-head { margin-bottom: 22px; }
.form-head h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: .78rem; font-weight: 600; color: var(--text-2); }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 0;
  background: rgba(7, 11, 18, .7); color: var(--text); font-size: 16px; /* evita zoom no iOS */
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #5d6b80; }
.field input:hover, .field select:hover { box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .35); }
.field input:focus, .field select:focus { outline: none; background: rgba(7, 11, 18, .95); box-shadow: inset 0 0 0 1.5px var(--hl), 0 0 0 4px rgba(var(--hl-rgb), .15); }
.field.has-error input, .field.has-error select { box-shadow: inset 0 0 0 1.5px var(--warn); }
.field-err { min-height: 0; font-size: .72rem; color: var(--warn); }
.field-err:empty { display: none; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.select select:invalid { color: #5d6b80; }
.select option { background: var(--surface); color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-form > .btn { margin-top: 22px; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.is-loading .spinner { display: block; }
.is-loading .ic { display: none; }
.is-loading { pointer-events: none; opacity: .85; }
.micro { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: .74rem; color: var(--muted); line-height: 1.5; }
.micro .ic { margin-top: 2px; width: 14px; height: 14px; color: var(--hl); }
.form-status { font-size: .8rem; color: var(--warn); margin-top: 8px; }
.form-status:empty { display: none; }

.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 40px 10px; animation: panelIn .6s var(--ease) both; }
.form-success:focus { outline: none; }
.form-success h3 { font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1.1; letter-spacing: -.035em; }
.form-success p { color: var(--text-2); max-width: 38ch; }
.success-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--hl); color: #fff; box-shadow: 0 0 0 10px rgba(var(--hl-rgb), .12), 0 0 50px rgba(var(--hl-rgb), .6); }
.success-ic .ic { width: 32px; height: 32px; stroke-width: 3; }

/* -------------------------------------------------------------------------- */
/* Rodapé + CTA fixo                                                          */
/* -------------------------------------------------------------------------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-inner .brand-word { font-size: 1.3rem; }

.sticky-cta { display: none; }

/* -------------------------------------------------------------------------- */
/* Revelação no scroll                                                        */
/* -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Cards revelados mantêm o hover fluido */
.js .card.reveal.is-in { transition: opacity .9s var(--ease) var(--d, 0s), transform .5s var(--ease), box-shadow .5s var(--ease); }

/* -------------------------------------------------------------------------- */
/* Responsivo                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .header-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-visual { max-width: 640px; width: 100%; margin: 12px auto 0; }
  .chip-a { left: -8px; } .chip-b { right: -8px; }
  .security-inner, .final-inner { grid-template-columns: minmax(0, 1fr); }
  .final-inner { max-width: 640px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .cards-3, .cards-2, .stats { grid-template-columns: 1fr; }
  .cards-3 { max-width: 560px; margin: 0 auto; }
  .flow-panel { grid-template-columns: 1fr; min-height: 0; }
  .parse { grid-template-columns: 1fr; }
  .parse-arrow { transform: rotate(90deg); justify-self: center; }
  .flow-panel.is-active .parse-arrow { animation: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .site-header .btn { display: none; }
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 64px; }
  .hero-actions .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 10px 18px; font-size: .8rem; letter-spacing: .03em; }
  .btn-lg { font-size: .84rem; }
  .eyebrow { font-size: .88rem; }
  .form-card { padding: 22px 18px; }
  .support-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .support-strip li { font-size: .8rem; }
  .dash { transform: none !important; }
  .dash-body { grid-template-columns: 1fr; min-height: 0; }
  .dash-side { display: none; }
  .kpi { padding: 10px; }
  .kpi-value { font-size: 1.55rem; }
  .kpi-label { font-size: .56rem; letter-spacing: .04em; }
  .feed-list { height: 200px; }
  .feed-row { grid-template-columns: 28px 1fr auto; }
  .feed-row .val { display: none; }
  .float-chip { display: none; }

  .card { padding: 24px; }
  .pillar { padding: 14px 14px 24px; }
  .flow-shell { padding: 18px 14px; border-radius: 20px; }
  .node { width: 48px; height: 48px; border-radius: 14px; }
  .node .ic { width: 20px; height: 20px; }
  .flow-rail { top: 23px; }
  .step-t { font-size: .74rem; }
  .step-n { font-size: .7rem; }
  .flow-controls .small { font-size: .76rem; }
  .sheet-head, .sheet-row, .sheet-foot { padding: 9px 12px; font-size: .74rem; }
  .model { padding: 26px; }
  .model-flag { top: 22px; right: 22px; }
  .fields { grid-template-columns: 1fr; }
  .vault { aspect-ratio: 1.05; }
  .cert, .cert-alert { font-size: .74rem; padding: 10px 12px 10px 10px; }
  .tenant span { font-size: .72rem; }
  .tenant .ic { display: none; }

  /* CTA fixo na zona do polegar */
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(7, 11, 18, .96) 60%, rgba(7, 11, 18, 0));
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .sticky-cta.is-visible { transform: none; }
  .site-footer { padding-bottom: 110px; }
}

/* -------------------------------------------------------------------------- */
/* Movimento reduzido                                                         */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .streams, .sweep { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .dash { transform: none; }
}
