/* Validador de Dados — folha de estilo do site. Tokens em DESIGN.md ("Evolução
   visual 5 — Signal"). Escuro é o padrão/primeira classe; claro é a variante
   em [data-theme="light"] — papéis invertidos em relação ao sistema anterior. */

:root {
  --bg: #0A0D12;
  --surface: #141922;
  --surface-2: #1B222C;
  --ink: #F4F6F9;
  --ink-muted: #8C96A6;
  --border: #232B37;
  --border-strong: #303A49;
  --accent: #F2924A;
  --accent-ink: #0A0D12;
  --flow: #45C7E0;
  --valido: #3ED9A0;
  --valido-bg: #142A24;
  --arriscado: #F2924A;
  --arriscado-bg: #2B2112;
  --invalido: #F2555E;
  --invalido-bg: #2B151A;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 48px -12px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg: #F4F2ED;
  --surface: #FFFFFF;
  --surface-2: #EBE7DE;
  --ink: #15181D;
  --ink-muted: #5C6372;
  --border: #DEDAD0;
  --border-strong: #C9C4B8;
  --accent: #C96A2B;
  --accent-ink: #FAF8F4;
  --flow: #1C8CA8;
  --valido: #1F8F68;
  --valido-bg: #E3F3EC;
  --arriscado: #C96A2B;
  --arriscado-bg: #F7E9DC;
  --invalido: #C23A41;
  --invalido-bg: #F7E3E2;
  --shadow: 0 1px 2px rgba(21, 24, 29, 0.05), 0 20px 40px -14px rgba(21, 24, 29, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; display: block; }
.font-serif { font-family: "IBM Plex Serif", serif; } /* disponível, não usada por padrão — ver DESIGN.md "Evolução visual 2" */
.font-mono { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.font-display { font-family: "IBM Plex Mono", monospace; font-weight: 700; letter-spacing: -0.01em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; }

/* ---------- NAV ---------- */
nav.site-nav {
  border-bottom: 1px solid transparent;
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 100%, transparent);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
nav.site-nav.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 8px 24px rgba(0,0,0,0.04);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 6px; position: relative; flex-shrink: 0; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--accent); }
.brand-mark::before { width: 8px; height: 1.5px; top: 8px; left: 5px; }
.brand-mark::after { width: 11px; height: 1.5px; top: 14px; left: 5px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-muted); flex: 1; }
.nav-links a { text-decoration: none; position: relative; padding: 4px 0; transition: color .15s ease; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--accent); transition: right .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.nav-toggle svg { width: 18px; height: 18px; stroke: var(--ink); }
.nav-mobile-panel {
  display: none; flex-direction: column; gap: 2px; padding: 8px 0 20px;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-panel a {
  text-decoration: none; color: var(--ink-muted); font-size: 15px; padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-panel a:last-child { border-bottom: none; }
.nav-mobile-panel.open { display: flex; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; padding: 11px 20px; text-decoration: none; transition: transform .15s ease, opacity .12s ease, border-color .15s ease, box-shadow .15s ease; position: relative; overflow: hidden; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); color: var(--bg); isolation: isolate; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .5s ease;
}
.btn-primary:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 14%, transparent); }
.btn-ghost { background: transparent; color: var(--ink-muted); border: none; padding: 11px 8px; }
.btn-ghost:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-primary::before { transition: none !important; }
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.theme-toggle { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.theme-toggle svg { width: 16px; height: 16px; stroke: var(--ink); }

/* ---------- HERO ---------- */
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -10%; right: -8%; width: 640px; height: 640px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 11%, transparent) 0%, transparent 68%);
  pointer-events: none; z-index: 0; will-change: transform;
}
.hero::after {
  content: ""; position: absolute; left: -6%; bottom: -15%; width: 420px; height: 420px;
  background: radial-gradient(circle, color-mix(in srgb, var(--flow) 6%, transparent) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; opacity: 0; animation: heroIn .6s ease .05s forwards; }
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--accent); }

/* linha de "prompt" acima do título, estilo terminal */
.hero-prompt {
  font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--ink-muted);
  margin-bottom: 18px; opacity: 0; animation: heroIn .6s ease 0s forwards;
}
.hero-prompt .sinal { color: var(--accent); }
.caret {
  display: inline-block; width: 8px; height: 1.1em; background: var(--accent);
  vertical-align: text-bottom; margin-left: 2px; animation: piscar 1s step-end infinite;
}
@keyframes piscar { 50% { opacity: 0; } }

.hero h1 {
  font-family: "IBM Plex Mono", monospace; font-weight: 700;
  font-size: 50px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 24px;
  opacity: 0; animation: heroIn .7s ease .12s forwards; min-height: 2.3em;
}
.hero h1 em, .hero h1 .acento { font-style: normal; color: var(--accent); }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-muted); max-width: 480px; margin: 0 0 36px; opacity: 0; animation: heroIn .7s ease .2s forwards; }
.hero-ctas { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; opacity: 0; animation: heroIn .7s ease .28s forwards; }
.trust-line { font-size: 13px; color: var(--ink-muted); font-family: "IBM Plex Mono", monospace; opacity: 0; animation: heroIn .7s ease .34s forwards; }
.trust-line .dot { color: var(--border); margin: 0 8px; }
.format-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; opacity: 0; animation: heroIn .7s ease .4s forwards; }
.chip { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .02em; border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; color: var(--ink-muted); }
.chip.chip-muted { opacity: .6; }

/* before/after card */
.data-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 20px 40px -12px rgba(0,0,0,.12);
  overflow: hidden; opacity: 0; transform: translateY(14px) scale(.98);
  animation: heroCardIn .8s cubic-bezier(.16,.8,.3,1) .3s forwards, floatCard 6s ease-in-out 1.2s infinite;
}
.data-card-head { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.data-card-head span { font-size: 13px; font-weight: 600; font-family: "IBM Plex Mono", monospace; }
.data-card-head .tag { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-muted); }
.chrome-dots { display: flex; gap: 6px; flex-shrink: 0; }
.chrome-dots span { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--border); }
.chrome-dots span:nth-child(1) { background: #C44C44; }
.chrome-dots span:nth-child(2) { background: #C7962F; }
.chrome-dots span:nth-child(3) { background: var(--valido); }
[data-theme="light"] .chrome-dots span:nth-child(1) { background: #D9534F; }
[data-theme="light"] .chrome-dots span:nth-child(2) { background: #E0A83C; }
.data-row { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); font-family: "IBM Plex Mono", monospace; font-size: 13.5px; }
.data-row:last-child { border-bottom: none; }
.data-row .before { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--border); text-decoration-thickness: 1.5px; }
.data-row .arrow { color: var(--border); font-size: 14px; }
.data-row .after { color: var(--ink); font-weight: 500; }
.badge { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; justify-self: start; white-space: nowrap; }
.badge-corrigido { background: var(--arriscado-bg); color: var(--arriscado); }
.badge-valido { background: var(--valido-bg); color: var(--valido); }
.badge-invalido { background: var(--invalido-bg); color: var(--invalido); }
.badge-em-breve { background: var(--surface-2); color: var(--ink-muted); }

/* ---------- PROCESS ---------- */
.process { padding: 64px 0; border-top: 1px solid var(--border); }
.process-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.process-row-5 { grid-template-columns: repeat(5, 1fr); gap: 24px; }
.process-row::before { content: ""; position: absolute; top: 15px; left: 8%; right: 8%; height: 1px; background: var(--border); z-index: 0; }
@media (max-width: 1024px) { .process-row-5 { grid-template-columns: repeat(3, 1fr); } }
.process-step { position: relative; z-index: 1; }
.process-num { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--accent); background: var(--bg); display: inline-block; padding-right: 10px; margin-bottom: 18px; }
.process-step h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; }
.process-step p { font-size: 14px; color: var(--ink-muted); line-height: 1.55; margin: 0; }

/* ---------- SECTIONS ---------- */
.section { padding: 72px 0; }
.section.bordered { border-top: 1px solid var(--border); }
.section.tight { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-family: "IBM Plex Mono", monospace; font-size: 28px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.section-head p { font-size: 15px; color: var(--ink-muted); margin: 0; max-width: 460px; }
.section-label { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin-bottom: 10px; }

/* ---------- VALUE PROPS (3 pontos) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.value-card { background: var(--surface); padding: 32px 28px; position: relative; }
.value-card:nth-child(2) { background: color-mix(in srgb, var(--surface) 92%, var(--surface-2)); }
.value-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.16,.8,.3,1);
}
.value-card:hover::before { transform: scaleX(1); }
.value-card .num { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--accent); margin-bottom: 16px; display: inline-block; transition: transform .25s ease; }
.value-card:hover .num { transform: translateX(3px); }
.value-card h3 { font-size: 18px; margin: 0 0 10px; font-weight: 600; }
.value-card p { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* ---------- PANEL / TABLE (relatório) ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); overflow-x: auto; max-width: 100%; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.stat { padding: 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-label { font-size: 12px; color: var(--ink-muted); margin-bottom: 10px; }
.stat-value { font-family: "IBM Plex Mono", monospace; font-size: 28px; font-weight: 500; }
.stat-value .before-val { color: var(--ink-muted); font-size: 17px; }
.stat-value .sep { color: var(--border); margin: 0 6px; font-size: 17px; }
.stat-delta { font-size: 12px; color: var(--valido); margin-top: 6px; font-family: "IBM Plex Mono", monospace; }

table.report { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 13.5px; }
table.report thead th { text-align: left; font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); padding: 14px 24px; border-bottom: 1px solid var(--border); }
table.report td { padding: 14px 24px; border-bottom: 1px solid var(--border); font-family: "IBM Plex Mono", monospace; }
table.report tbody tr:last-child td { border-bottom: none; }
table.report td.field { font-family: "IBM Plex Sans", sans-serif; font-weight: 500; }
table.report td.muted { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--border); }

/* ---------- PRICING ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 6%, transparent);
}
.featured-badge {
  position: absolute; top: -12px; left: 28px; background: var(--accent); color: var(--accent-ink);
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
}
.price-card .plan-name { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); font-family: "IBM Plex Mono", monospace; margin-bottom: 14px; }
.price-card .plan-price { font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 34px; margin-bottom: 4px; }
.price-card .plan-price small { font-family: "IBM Plex Sans", sans-serif; font-size: 14px; color: var(--ink-muted); font-weight: 400; }
.price-card .plan-note { font-size: 13px; color: var(--ink-muted); margin-bottom: 24px; }
.price-card ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.price-card li::before { content: "·"; color: var(--accent); font-weight: 700; }

/* ---------- DOCS ---------- */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.docs-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.docs-nav a { text-decoration: none; color: var(--ink-muted); padding: 5px 0; }
.docs-nav a:hover { color: var(--ink); }
.endpoint { margin-bottom: 56px; }
.endpoint-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.method { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; background: var(--ink); color: var(--bg); padding: 3px 9px; border-radius: 4px; }
.endpoint-path { font-family: "IBM Plex Mono", monospace; font-size: 15px; }
.endpoint p.desc { color: var(--ink-muted); font-size: 14.5px; margin: 0 0 20px; }
/* Sempre com cara de terminal, independente do tema — não inverte com --ink/--bg. */
pre.code-block { background: #080A0E; color: #D7E0EA; border: 1px solid #1C232D; border-radius: 8px; padding: 20px 22px; overflow-x: auto; font-family: "IBM Plex Mono", monospace; font-size: 13px; line-height: 1.6; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 12px 28px -10px rgba(0,0,0,.4); transition: transform .25s ease, box-shadow .25s ease; }
pre.code-block:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.25), 0 20px 36px -10px rgba(0,0,0,.45); }
pre.code-block .tok-key { color: var(--flow); }
pre.code-block .tok-str { color: var(--valido); }
pre.code-block .tok-accent { color: var(--accent); }
.code-label { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); margin-bottom: 8px; }

/* ---------- TYPE / COLOR SPECIMEN (reusado em /sobre ou design interno) ---------- */
.specimen { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.specimen:last-child { border-bottom: none; }
.specimen-label { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-muted); }

/* ---------- FORM ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink); font-family: inherit; font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 36px; transition: box-shadow .25s ease, border-color .25s ease; }
.form-card:focus-within { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 7%, transparent); }

/* ---------- ALERTS ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 8px; font-size: 13.5px; }
.alert.success { background: var(--valido-bg); color: var(--valido); }
.alert.warning { background: var(--arriscado-bg); color: var(--arriscado); }
.alert.error { background: var(--invalido-bg); color: var(--invalido); }
.alert + .alert { margin-top: 10px; }

/* ---------- UPLOAD FLOW ---------- */
.steps-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 48px; }
.step-pill { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); }
.step-pill.active { color: var(--ink); border-color: var(--ink); }
.step-pill.done { color: var(--valido); border-color: var(--valido-bg); background: var(--valido-bg); }
.step-sep { flex: 1; height: 1px; background: var(--border); max-width: 40px; }

.dropzone { border: 1.5px dashed var(--border); border-radius: 12px; padding: 56px 32px; text-align: center; background: var(--surface); transition: border-color .15s ease, background .15s ease; }
.dropzone.dragover { border-color: var(--accent); background: var(--surface-2); }
.dropzone h3 { font-size: 18px; margin: 16px 0 6px; font-weight: 600; }
.dropzone p { color: var(--ink-muted); font-size: 14px; margin: 0 0 20px; }
.dropzone-icon { width: 40px; height: 40px; margin: 0 auto; stroke: var(--ink-muted); }

.map-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.map-row:last-child { border-bottom: none; }
.map-col-name { font-family: "IBM Plex Mono", monospace; font-size: 13.5px; }
.map-col-sample { font-size: 11px; color: var(--ink-muted); margin-top: 3px; }

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.htmx-indicator { opacity: 0; transition: opacity .15s ease; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }

/* ---------- FOOTER ---------- */
footer.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); font-family: "IBM Plex Mono", monospace; font-weight: 500; margin: 0 0 14px; }
.footer-col a { display: block; font-size: 13.5px; text-decoration: none; color: var(--ink-muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); }
.footer-col p { font-size: 13.5px; color: var(--ink-muted); line-height: 1.6; max-width: 280px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-muted); border-top: 1px solid var(--border); padding-top: 24px; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .hero-grid, .value-grid, .component-grid, .stat-row, .process-row, .price-grid, .docs-layout, .footer-grid { grid-template-columns: 1fr; }
  .value-grid { background: none; border: none; gap: 16px; }
  .value-card { border: 1px solid var(--border); border-radius: 10px; }
  .value-card:nth-child(2) { background: var(--surface); }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero::before { width: 360px; height: 360px; top: -15%; right: -20%; }
  .hero::after { width: 260px; height: 260px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-entrar-link { display: none; }
  .nav-right { gap: 10px; }
  .navbar { gap: 10px; }
  .process-row::before { display: none; }
  .seguranca-item:hover { background: var(--surface); }
  .docs-nav { position: static; flex-direction: row; overflow-x: auto; }
  .diferenciais-grid, .faq-grid { grid-template-columns: 1fr !important; }
  .diferencial-card:nth-child(2) { margin-top: 0; }
}

/* ---------- HERO KEYFRAMES ---------- */
@keyframes heroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroCardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .eyebrow, .hero h1, .lede, .hero-ctas, .trust-line, .format-chips, .data-card { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- GLOW QUE SEGUE O CURSOR (hero) ---------- */
/* injetado via JS (app.js) como filho do .hero; desligado em touch/reduced-motion */
.hero-cursor-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 72%);
}
.hero-cursor-glow.ativo { opacity: 1; }

/* parallax sutil nos glows estáticos do hero, escalado pelo scroll via --parallax */
.hero::before { transform: translateY(calc(var(--parallax, 0) * 1px)); }
.hero::after { transform: translateY(calc(var(--parallax, 0) * -0.6px)); }

/* varredura — reforça o motivo "terminal escaneando" no card de dado do hero */
.data-card::after {
  content: ""; position: absolute; top: 0; left: -35%; width: 35%; height: 100%; z-index: 2;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 7%, transparent), transparent);
  pointer-events: none; animation: scanSweep 8s ease-in-out 2s infinite;
}
@keyframes scanSweep { 0%, 100% { left: -35%; } 50% { left: 110%; } }

/* botões primários "magnéticos" — JS empurra via transform inline; aqui só a base suave */
.btn-primary { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hero-cursor-glow, .data-card::after { display: none !important; }
  .hero::before, .hero::after { transform: none !important; }
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .6s cubic-bezier(.16,.8,.3,1), transform .6s cubic-bezier(.16,.8,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-1 { transition-delay: .08s; }
.reveal-2 { transition-delay: .16s; }
.reveal-3 { transition-delay: .24s; }
.reveal-4 { transition-delay: .32s; }
.reveal-5 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

/* ---------- HOVER DEPTH ---------- */
.value-card, .price-card, .diferencial-card, .faq-item, .data-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value-card:hover, .diferencial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); position: relative; z-index: 1; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.data-card:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(0,0,0,0.08), 0 24px 48px -8px rgba(0,0,0,0.14); animation-play-state: paused; }

/* ---------- DEMO AO VIVO ---------- */
.demo-widget { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 36px; transition: box-shadow .25s ease, border-color .25s ease; }
.demo-widget:focus-within { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 7%, transparent); }
.demo-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.demo-tab { font-family: "IBM Plex Mono", monospace; font-size: 12px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--ink-muted); cursor: pointer; transition: all .15s ease; }
.demo-tab.ativo { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.demo-form { display: flex; gap: 10px; margin-bottom: 20px; }
.demo-form input { flex: 1; padding: 13px 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 14px; }
.demo-form input:focus { outline: none; border-color: var(--accent); }
.demo-resultado-vazio { font-size: 13px; color: var(--ink-muted); font-family: "IBM Plex Mono", monospace; padding: 8px 0; }
.demo-examples { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.demo-example { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: var(--ink-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.demo-example:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- DIFERENCIAIS ---------- */
.diferenciais-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.diferencial-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 28px; position: relative; }
.diferencial-card:nth-child(2) { margin-top: 18px; }
@media (max-width: 860px) { .diferencial-card:nth-child(2) { margin-top: 0; } }
.diferencial-card .vs { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); margin-bottom: 12px; }
.diferencial-card h3 { font-size: 16px; margin: 0 0 10px; }
.diferencial-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 8px 0; border-top: 1px solid var(--border); }
.diferencial-row:first-of-type { border-top: none; }
.diferencial-row .tag-eles { color: var(--ink-muted); min-width: 90px; font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.diferencial-row .tag-nos { color: var(--accent); min-width: 90px; font-family: "IBM Plex Mono", monospace; font-size: 11px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-item { background: var(--surface); }
.faq-item summary { padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: "IBM Plex Mono", monospace; color: var(--accent); font-size: 18px; flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 24px 22px; font-size: 14px; color: var(--ink-muted); line-height: 1.6; margin: 0; }

/* ---------- SEGURANÇA / LGPD ---------- */
.seguranca-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seguranca-item { background: var(--surface); padding: 24px 22px; transition: background .2s ease; }
.seguranca-item:hover { background: var(--surface-2); }
.seguranca-item .glifo { font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 20px; color: var(--accent); margin-bottom: 10px; transition: transform .25s cubic-bezier(.16,.8,.3,1); display: inline-block; }
.seguranca-item:hover .glifo { transform: translateY(-2px) scale(1.08); }
.seguranca-item h4 { font-size: 13.5px; margin: 0 0 6px; }
.seguranca-item p { font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; margin: 0; }
@media (max-width: 860px) { .seguranca-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA FINAL ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 620px; height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 72%);
  pointer-events: none;
}
.cta-final > .wrap { position: relative; z-index: 1; }

/* ---------- COUNT-UP ---------- */
.count-up { font-variant-numeric: tabular-nums; }

/* ---------- STATUS "ANALISANDO" (estado transitório, só na tabela viva) ---------- */
.badge-analisando { background: color-mix(in srgb, var(--flow) 15%, transparent); color: var(--flow); animation: pulsarAnalise 1.1s ease-in-out infinite; }
@keyframes pulsarAnalise { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .badge-analisando { animation: none; } }

/* ---------- TABELA VIVA DO HERO (simulação — rotulada no HTML, não é o motor de verdade) ---------- */
.live-table .data-row { transition: background .3s ease; }
.live-table .data-row.ciclo-corrigido .after,
.live-table .data-row.ciclo-valido .after { color: var(--ink); }
.live-table .sim-tag { font-family: "IBM Plex Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }

/* ---------- DIAGRAMA DE FLUXO (dado bruto → dado limpo) ---------- */
.flow-diagram { display: flex; align-items: center; gap: 0; margin: 0 auto; max-width: 980px; flex-wrap: wrap; justify-content: center; }
.flow-node {
  display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; position: relative; z-index: 1;
}
.flow-dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong);
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.flow-diagram.is-visible .flow-node .flow-dot { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); transition-delay: .1s; }
.flow-diagram.is-visible .flow-node:nth-child(3) .flow-dot { transition-delay: .35s; }
.flow-diagram.is-visible .flow-node:nth-child(5) .flow-dot { transition-delay: .6s; }
.flow-diagram.is-visible .flow-node:nth-child(7) .flow-dot { transition-delay: .85s; }
.flow-diagram.is-visible .flow-node:nth-child(9) .flow-dot { transition-delay: 1.1s; }
.flow-node:last-child .flow-dot { background: var(--valido); border-color: var(--valido) !important; box-shadow: none !important; }
.flow-label { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); white-space: nowrap; }
.flow-node:last-child .flow-label { color: var(--valido); }
.flow-line { flex: 1; min-width: 32px; height: 1px; background: var(--border); position: relative; overflow: hidden; margin: 0 -2px; top: -12px; }
.flow-line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .8s cubic-bezier(.16,.8,.3,1);
}
.flow-diagram.is-visible .flow-line:nth-of-type(1)::after { transition-delay: .15s; }
.flow-diagram.is-visible .flow-line:nth-of-type(2)::after { transition-delay: .4s; }
.flow-diagram.is-visible .flow-line:nth-of-type(3)::after { transition-delay: .65s; }
.flow-diagram.is-visible .flow-line:nth-of-type(4)::after { transition-delay: .9s; }
.flow-diagram.is-visible .flow-line::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .flow-diagram { flex-direction: column; align-items: flex-start; gap: 20px; }
  .flow-line { width: 1px; height: 28px; min-width: 0; flex: none; margin: 0 0 0 6px; top: 0; }
  .flow-line::after { transform: scaleY(0); }
  .flow-diagram.is-visible .flow-line::after { transform: scaleY(1); }
}

/* ---------- BENEFÍCIOS (composição assimétrica) ---------- */
.beneficios-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.beneficio { background: var(--surface); padding: 32px 30px; position: relative; }
.beneficio.destaque { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; background: var(--surface-2); }
.beneficio .beneficio-label { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 12px; }
.beneficio h3 { font-size: 19px; margin: 0 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.beneficio.destaque h3 { font-size: 23px; }
.beneficio p { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0; }
@media (max-width: 860px) { .beneficios-grid { grid-template-columns: 1fr; } .beneficio.destaque { grid-row: auto; } }

/* ---------- SELO DE DADO DEMONSTRATIVO ---------- */
.demo-tag {
  display: inline-flex; align-items: center; gap: 6px; font-family: "IBM Plex Mono", monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); background: var(--surface-2);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px;
}
.demo-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--flow); }

/* ---------- MÉTRICAS DE CONFIANÇA ---------- */
.confianca-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.confianca-item { background: var(--surface); padding: 28px 24px; text-align: center; }
.confianca-valor { font-family: "IBM Plex Mono", monospace; font-size: 32px; font-weight: 700; color: var(--ink); }
.confianca-label { font-size: 12.5px; color: var(--ink-muted); margin-top: 6px; }
@media (max-width: 860px) { .confianca-grid { grid-template-columns: 1fr 1fr; } }
