/* =========================================================
   ISTA RECUPERA — Design System
   Tokens, componentes base e página institucional
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Cores de marca */
  --ink-900: #04060c;
  --ink-800: #070b14;
  --ink-700: #0a1020;
  --ink-600: #0d1526;
  --ink-500: #121c33;
  --line: rgba(120, 160, 255, 0.14);
  --line-strong: rgba(120, 160, 255, 0.26);

  --blue-electric: #2f6bff;
  --blue-bright: #4b8cff;
  --blue-cyan: #22d3ee;
  --blue-deep: #0b2a6b;
  --blue-glow: rgba(47, 107, 255, 0.45);

  --white: #ffffff;
  --silver-100: #eef3ff;
  --silver-300: #c3cde4;
  --silver-500: #8b98b8;
  --silver-600: #6b779a;

  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;

  /* Tipografia */
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;

  /* Espaço */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --shadow-blue: 0 14px 40px rgba(47, 107, 255, 0.34);

  --header-h: 72px;
  --maxw: 1200px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--ink-900);
  color: var(--silver-100);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-3);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p { margin: 0 0 var(--sp-4); color: var(--silver-300); }

a { color: var(--blue-bright); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--blue-cyan); }

img, svg { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue-electric); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-800); }
::-webkit-scrollbar-thumb {
  background: #1d2b4a;
  border-radius: 20px;
  border: 2px solid var(--ink-800);
}
::-webkit-scrollbar-thumb:hover { background: #2b3f6b; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section { padding-block: var(--sp-8); position: relative; }

.section-head { max-width: 760px; margin: 0 auto var(--sp-7); text-align: center; }
.section-head p { font-size: 1.05rem; color: var(--silver-500); margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(47, 107, 255, 0.1);
  border: 1px solid rgba(47, 107, 255, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--sp-4);
}

.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-cyan);
  box-shadow: 0 0 10px var(--blue-cyan);
}

.text-gradient {
  background: linear-gradient(100deg, #ffffff 8%, #9fc2ff 52%, var(--blue-electric) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--silver-500); }
.small { font-size: 0.85rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.center { text-align: center; }
.grid { display: grid; gap: var(--sp-5); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Botões ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--silver-100);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--blue-electric), #1b4bd6);
  --btn-fg: #fff;
  --btn-bd: transparent;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { box-shadow: 0 18px 50px rgba(47, 107, 255, 0.52); }

.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { --btn-bg: rgba(47, 107, 255, 0.14); --btn-bd: var(--blue-electric); }

.btn-solid { --btn-bg: #fff; --btn-fg: #05070d; --btn-bd: transparent; }
.btn-solid:hover { --btn-bg: var(--silver-300); }

.btn-sm { padding: 9px 16px; font-size: 0.84rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; width: 40px; height: 40px; border-radius: 12px; }

/* ---------- 5. Cards ---------- */
.card {
  background: linear-gradient(170deg, rgba(18, 28, 51, 0.9), rgba(8, 13, 24, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  position: relative;
  overflow: hidden;
}

.card-interactive { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.card-interactive:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card-glass {
  background: rgba(10, 16, 32, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.divider { height: 1px; background: var(--line); border: 0; margin: var(--sp-5) 0; }

/* ---------- 6. Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.badge-blue { color: #9dbcff; background: rgba(47, 107, 255, 0.14); border-color: rgba(47, 107, 255, 0.34); }
.badge-cyan { color: #7ee7f8; background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.32); }
.badge-ok { color: #86efac; background: rgba(34, 197, 94, 0.13); border-color: rgba(34, 197, 94, 0.32); }
.badge-warn { color: #fcd34d; background: rgba(245, 158, 11, 0.13); border-color: rgba(245, 158, 11, 0.32); }
.badge-danger { color: #fca5a5; background: rgba(239, 68, 68, 0.13); border-color: rgba(239, 68, 68, 0.32); }
.badge-neutral { color: var(--silver-300); background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); }

/* ---------- 7. Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: var(--sp-4); }

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--silver-300);
  letter-spacing: 0.01em;
}

.field .hint { font-size: 0.76rem; color: var(--silver-600); }

.input, .select, .textarea {
  width: 100%;
  background: rgba(4, 8, 16, 0.75);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--white);
  font-size: 0.94rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.textarea { resize: vertical; min-height: 110px; line-height: 1.55; }

.input::placeholder, .textarea::placeholder { color: #5a6580; }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue-electric);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
  background: rgba(4, 8, 16, 0.95);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b98b8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.select option { background: var(--ink-700); color: var(--white); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* Dropzone de anexos */
.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: var(--sp-5);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  background: rgba(4, 8, 16, 0.4);
}
.dropzone:hover, .dropzone.is-over {
  border-color: var(--blue-electric);
  background: rgba(47, 107, 255, 0.07);
}
.dropzone strong { display: block; color: var(--silver-100); margin-bottom: 2px; font-size: 0.9rem; }
.dropzone span { font-size: 0.78rem; color: var(--silver-600); }

.attach-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(47, 107, 255, 0.1);
  border: 1px solid rgba(47, 107, 255, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  margin-top: var(--sp-3);
}

.alerta {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--radius);
  font-size: 0.86rem;
  line-height: 1.5;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--silver-300);
  margin-bottom: var(--sp-4);
}
.alerta strong { color: var(--white); }
.alerta-warn { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.08); }
.alerta-info { border-color: rgba(47, 107, 255, 0.35); background: rgba(47, 107, 255, 0.08); }
.alerta-danger { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); }
.alerta svg { flex: none; margin-top: 2px; }

/* ---------- 8. Header institucional ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 90;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(4, 6, 12, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand:hover { color: var(--white); }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--blue-electric), #0d2f8f);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.45);
  flex: none;
}
.brand-mark svg { width: 21px; height: 21px; }

.brand-text small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--silver-600);
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-main { display: flex; align-items: center; gap: var(--sp-5); }
.nav-main a {
  color: var(--silver-300);
  font-size: 0.89rem;
  font-weight: 500;
}
.nav-main a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px;
  cursor: pointer;
  color: var(--silver-100);
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + var(--sp-8)) 0 var(--sp-8);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-bg::before {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  top: -420px; right: -240px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.3), transparent 62%);
  filter: blur(20px);
}

.hero-bg::after {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  bottom: -420px; left: -220px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 65%);
}

.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(120, 160, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 160, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-7);
  align-items: center;
}

.hero-copy h1 { margin-bottom: var(--sp-4); }
.hero-copy > p {
  font-size: 1.08rem;
  color: var(--silver-300);
  max-width: 540px;
  margin-bottom: var(--sp-5);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.hero-trust div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.hero-trust div span { font-size: 0.78rem; color: var(--silver-600); }

/* Mockup do painel no hero */
.hero-visual { position: relative; }

.app-mock {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(16, 24, 44, 0.96), rgba(6, 10, 20, 0.98));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.app-mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

.app-mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.app-mock-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2b3a5c; display: block;
}
.app-mock-bar i:nth-child(1) { background: #ef4444; }
.app-mock-bar i:nth-child(2) { background: #f59e0b; }
.app-mock-bar i:nth-child(3) { background: #22c55e; }
.app-mock-bar span {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--silver-600);
  font-family: ui-monospace, monospace;
}

.app-mock-body { padding: var(--sp-4); display: grid; gap: var(--sp-3); }

.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi {
  background: rgba(47, 107, 255, 0.08);
  border: 1px solid rgba(47, 107, 255, 0.2);
  border-radius: 10px;
  padding: 10px;
}
.mock-kpi b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.mock-kpi span { font-size: 0.62rem; color: var(--silver-500); text-transform: uppercase; letter-spacing: 0.08em; }

.mock-chart { display: flex; align-items: flex-end; gap: 7px; height: 92px; padding: 10px 12px; background: rgba(4, 8, 16, 0.6); border-radius: 10px; border: 1px solid var(--line); }
.mock-chart i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--blue-bright), rgba(47, 107, 255, 0.2));
  animation: barGrow 1.4s ease both;
}
.mock-chart i:nth-child(2) { animation-delay: 0.08s; }
.mock-chart i:nth-child(3) { animation-delay: 0.16s; }
.mock-chart i:nth-child(4) { animation-delay: 0.24s; }
.mock-chart i:nth-child(5) { animation-delay: 0.32s; }
.mock-chart i:nth-child(6) { animation-delay: 0.4s; }
.mock-chart i:nth-child(7) { animation-delay: 0.48s; }

@keyframes barGrow { from { transform: scaleY(0.05); opacity: 0.3; } to { transform: scaleY(1); opacity: 1; } }

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  font-size: 0.72rem;
}
.mock-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-cyan); flex: none; box-shadow: 0 0 8px var(--blue-cyan); }
.mock-row .grow { flex: 1; color: var(--silver-300); }
.mock-row .tag { font-size: 0.6rem; padding: 2px 8px; border-radius: 99px; background: rgba(34, 197, 94, 0.14); color: #86efac; }

.floating-card {
  position: absolute;
  background: rgba(9, 15, 28, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  animation: floaty 5s ease-in-out infinite;
}
.floating-card b { color: #fff; display: block; font-size: 0.82rem; }
.floating-card small { color: var(--silver-500); font-size: 0.68rem; }

.floating-card.fc-1 { bottom: -18px; left: -26px; animation-delay: 0.4s; }
.floating-card.fc-2 { top: 34px; right: -22px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- 10. Faixa de confiança ---------- */
.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(8, 13, 24, 0.6);
  padding-block: var(--sp-5);
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.trust-strip p { margin: 0; font-size: 0.8rem; color: var(--silver-600); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.trust-items { display: flex; gap: var(--sp-6); flex-wrap: wrap; }
.trust-items div { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--silver-300); font-weight: 500; }
.trust-items svg { color: var(--blue-bright); }

/* ---------- 11. Serviços ---------- */
.services-grid { grid-template-columns: repeat(3, 1fr); }

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--sp-5);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-electric), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(47, 107, 255, 0.22), rgba(47, 107, 255, 0.05));
  border: 1px solid rgba(47, 107, 255, 0.3);
  color: var(--blue-bright);
  margin-bottom: var(--sp-4);
}
.service-icon svg { width: 25px; height: 25px; }

.service-card h3 { margin-bottom: var(--sp-2); }
.service-card > p { font-size: 0.9rem; color: var(--silver-500); }

.service-list { list-style: none; display: grid; gap: 11px; margin-bottom: var(--sp-5); }
.service-list li {
  display: flex;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--silver-300);
  line-height: 1.45;
}
.service-list li::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.16);
  border: 1px solid rgba(47, 107, 255, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%234b8cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.service-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 12. Como funciona ---------- */
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }

.step {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(10, 16, 32, 0.55);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(47, 107, 255, 0.5);
  display: block;
  margin-bottom: var(--sp-3);
  line-height: 1;
}
.step h4 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.86rem; color: var(--silver-500); margin: 0; }

/* ---------- 13. Benefícios ---------- */
.benefits-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-7);
  align-items: center;
}

.benefit-list { display: grid; gap: var(--sp-4); }
.benefit {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.benefit-ico {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(47, 107, 255, 0.12);
  border: 1px solid rgba(47, 107, 255, 0.28);
  color: var(--blue-bright);
}
.benefit h4 { font-size: 0.98rem; margin: 0 0 4px; }
.benefit p { font-size: 0.86rem; color: var(--silver-500); margin: 0; }

.security-panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 80% 0%, rgba(47, 107, 255, 0.2), transparent 55%),
    linear-gradient(170deg, rgba(15, 23, 43, 0.94), rgba(5, 8, 16, 0.97));
  padding: var(--sp-6);
}

.sec-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.26);
  margin-bottom: var(--sp-5);
}
.sec-status i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulseRing 2s infinite;
  flex: none;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.sec-status div b { display: block; font-size: 0.88rem; color: #fff; }
.sec-status div small { font-size: 0.74rem; color: var(--silver-500); }

.sec-bar { margin-bottom: var(--sp-4); }
.sec-bar-head { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 7px; }
.sec-bar-head span:last-child { color: var(--blue-bright); font-weight: 700; font-family: ui-monospace, monospace; }
.sec-track { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.sec-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue-electric), var(--blue-cyan));
  box-shadow: 0 0 14px rgba(47, 107, 255, 0.6);
}

/* ---------- 14. Contato ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--sp-7);
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-5);
}
.contact-info-item .benefit-ico { width: 40px; height: 40px; }
.contact-info-item b { display: block; font-size: 0.9rem; color: #fff; margin-bottom: 2px; }
.contact-info-item span { font-size: 0.85rem; color: var(--silver-500); }

.form-card {
  background: linear-gradient(170deg, rgba(18, 28, 51, 0.92), rgba(7, 11, 20, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
}

/* ---------- 15. CTA final ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  border: 1px solid rgba(47, 107, 255, 0.35);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(47, 107, 255, 0.35), transparent 65%),
    linear-gradient(160deg, #0a1428, #04060c);
}
.cta-band h2 { max-width: 720px; margin-inline: auto; }
.cta-band p { max-width: 560px; margin-inline: auto; color: var(--silver-500); }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- 16. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-800);
  padding-top: var(--sp-7);
  margin-top: var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
}
.footer-grid h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--silver-600);
  margin-bottom: var(--sp-3);
}
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid ul a { font-size: 0.86rem; color: var(--silver-500); }
.footer-grid ul a:hover { color: #fff; }
.footer-brand p { font-size: 0.85rem; color: var(--silver-600); max-width: 300px; margin-top: var(--sp-3); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-4);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--silver-600);
}
.footer-bottom .legal-note { max-width: 620px; }

/* ---------- 17. Página de autenticação ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--ink-900);
}

.auth-aside {
  position: relative;
  padding: var(--sp-7) var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(47, 107, 255, 0.28), transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(34, 211, 238, 0.14), transparent 55%),
    linear-gradient(160deg, #060b18, #04060c);
  border-right: 1px solid var(--line);
}

.auth-aside::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(120, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 75%);
  pointer-events: none;
}

.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { max-width: 420px; }
.auth-aside p { max-width: 400px; color: var(--silver-500); }

.auth-highlights { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
.auth-highlights div { display: flex; gap: 12px; align-items: flex-start; font-size: 0.87rem; color: var(--silver-300); }
.auth-highlights svg { color: var(--blue-bright); flex: none; margin-top: 3px; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6) var(--sp-5);
}

.auth-box { width: 100%; max-width: 420px; }
.auth-box .brand { margin-bottom: var(--sp-6); }
.auth-box h1 { font-size: 1.65rem; margin-bottom: 6px; }
.auth-box > p { font-size: 0.9rem; color: var(--silver-500); margin-bottom: var(--sp-5); }

.auth-switch {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(4, 8, 16, 0.7);
  border: 1px solid var(--line-strong);
  margin-bottom: var(--sp-5);
}
.auth-switch button {
  flex: 1;
  padding: 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--silver-500);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.auth-switch button.is-active {
  background: linear-gradient(135deg, var(--blue-electric), #1b4bd6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(47, 107, 255, 0.4);
}

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 46px; }
.password-wrap button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--silver-600);
  cursor: pointer;
  padding: 8px;
  display: grid;
  place-items: center;
}
.password-wrap button:hover { color: var(--silver-100); }

.auth-foot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--silver-600);
  text-align: center;
}
.auth-foot a { font-weight: 600; }

/* ---------- 18. Toasts ---------- */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  display: grid;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
}

.toast {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(12, 19, 35, 0.97);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  color: var(--silver-100);
  animation: toastIn 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.toast.is-out { animation: toastOut 0.22s ease forwards; }
.toast-ok { border-color: rgba(34, 197, 94, 0.45); }
.toast-err { border-color: rgba(239, 68, 68, 0.45); }
.toast-warn { border-color: rgba(245, 158, 11, 0.45); }
.toast-ico { flex: none; margin-top: 1px; }
.toast-ok .toast-ico { color: var(--ok); }
.toast-err .toast-ico { color: var(--danger); }
.toast-warn .toast-ico { color: var(--warn); }
.toast-info .toast-ico { color: var(--blue-bright); }

@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* ---------- 19. Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(2, 4, 9, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  animation: fadeIn 0.18s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(170deg, #0d1729, #060a13);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.24s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.modal-lg { max-width: 760px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-5) 0;
}
.modal-head h3 { margin: 0; font-size: 1.15rem; }
.modal-head p { margin: 4px 0 0; font-size: 0.84rem; color: var(--silver-500); }
.modal-body { padding: var(--sp-5); }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: 0 var(--sp-5) var(--sp-5);
  flex-wrap: wrap;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  color: var(--silver-500);
  cursor: pointer;
  flex: none;
}
.modal-close:hover { color: #fff; border-color: var(--danger); }

/* ---------- 20. Estados vazios / loader ---------- */
.empty-state {
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  color: var(--silver-500);
}
.empty-state .ico {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto var(--sp-4);
  background: rgba(47, 107, 255, 0.1);
  border: 1px solid rgba(47, 107, 255, 0.26);
  color: var(--blue-bright);
}
.empty-state h4 { color: var(--silver-100); font-size: 1rem; margin-bottom: 6px; }
.empty-state p { font-size: 0.86rem; margin-bottom: var(--sp-4); max-width: 380px; margin-inline: auto; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--sp-7);
  color: var(--silver-500);
  font-size: 0.88rem;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 37%, rgba(255, 255, 255, 0.04) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- 21. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- 22. Responsivo ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .app-mock { transform: none; max-width: 560px; }
  .floating-card.fc-1 { left: 6px; }
  .floating-card.fc-2 { right: 6px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefits-layout, .contact-layout { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

@media (max-width: 760px) {
  :root { --sp-8: 52px; --sp-7: 36px; }

  .container { padding-inline: var(--sp-4); }

  .nav-main {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 10, 18, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-4) var(--sp-5);
    transform: translateY(-140%);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-main.is-open { transform: none; }
  .nav-main a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .nav-main .btn { margin-top: var(--sp-4); border-bottom: 0; }

  .nav-toggle { display: grid; place-items: center; }
  .header-actions .btn-ghost { display: none; }

  .hero { padding-top: calc(var(--header-h) + var(--sp-6)); }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { gap: var(--sp-4); }
  .hero-trust div strong { font-size: 1.25rem; }

  .floating-card { display: none; }
  .mock-kpis { gap: 7px; }
  .mock-kpi { padding: 8px; }
  .mock-kpi b { font-size: 1rem; }

  .trust-strip .container { flex-direction: column; align-items: flex-start; }
  .trust-items { gap: var(--sp-4); }

  .services-grid, .steps { grid-template-columns: 1fr; }
  .section-head { margin-bottom: var(--sp-5); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .footer-bottom { flex-direction: column; }

  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: var(--sp-5) var(--sp-4); }
  .cta-band { padding: var(--sp-6) var(--sp-4); }
  .cta-band .btn { flex: 1 1 100%; }

  .brand { font-size: 0.94rem; }
  .brand-text small { font-size: 0.54rem; }

  .toast-stack { left: 16px; right: 16px; bottom: 16px; max-width: none; }

  .auth-main { padding: var(--sp-5) var(--sp-4); align-items: flex-start; padding-top: var(--sp-7); }
  .modal-foot .btn { flex: 1 1 100%; }
}
