/* ==========================================================================
   Vitrin — sistema visual das páginas públicas (landing, login, legais, 404)
   ========================================================================== */
:root {
  --bg: #080B0D;
  --bg-2: #0B1012;
  --bg-3: #111719;
  --surface: #0E1416;
  --surface-2: #131B1E;
  --surface-3: #1A2427;
  --line: rgba(209, 250, 229, 0.07);
  --line-2: rgba(209, 250, 229, 0.12);
  --line-3: rgba(209, 250, 229, 0.2);
  --text: #F8FAFC;
  --text-2: #C8D2D4;
  --muted: #89969A;
  --faint: #5D6A6E;
  --green: #10B981;
  --green-hi: #34D399;
  --mint: #D1FAE5;
  --green-soft: rgba(16, 185, 129, 0.1);
  --green-line: rgba(52, 211, 153, 0.3);
  --on-green: #04130D;
  --amber: #FBBF24;
  --rose: #FB7185;
  --sky: #7DD3FC;
  --violet: #C4B5FD;
  --wa: #25D366;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px var(--green-line), 0 10px 40px -10px rgba(16, 185, 129, 0.45);
  --ease: cubic-bezier(.22, .9, .24, 1);
  --font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1200px;
  /* Apelidos de compatibilidade (nomes usados por auth.html, legal.html e 404.html) */
  --border: var(--line);
  --border-strong: var(--line-2);
  --accent: var(--green);
  --accent-hi: var(--green-hi);
  --accent-soft: var(--green-soft);
  --accent-fg: var(--on-green);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(16, 185, 129, .35); color: #fff; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .container { padding: 0 18px; } }
.mono { font-family: var(--mono); }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografia ---------- */
.display { font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.04; margin: 0; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.6; text-wrap: pretty; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--green-hi); }
.kicker::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--green); box-shadow: 0 0 12px var(--green); }
.grad-text { background: linear-gradient(180deg, #F8FAFC 20%, #9FB3B6 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.green-text { color: var(--green-hi); }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 11px; font-size: 14.5px; font-weight: 550; letter-spacing: -0.01em;
  border: 1px solid transparent; white-space: nowrap; isolation: isolate;
  transition: background .2s var(--ease), border-color .2s, color .2s, transform .12s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 13px; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; }
.btn-primary {
  background: linear-gradient(180deg, #2BD495 0%, var(--green) 55%, #0EA371 100%); color: var(--on-green); font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.15), 0 8px 28px -8px rgba(16,185,129,.65), 0 0 0 1px rgba(16,185,129,.6);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.15), 0 12px 36px -8px rgba(16,185,129,.85), 0 0 0 1px rgba(52,211,153,.9); }
.btn-primary:hover svg { transform: translateX(2px); }
.btn-secondary { background: rgba(209,250,229,.04); border-color: var(--line-2); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.btn-secondary:hover { background: rgba(209,250,229,.08); border-color: var(--line-3); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(209,250,229,.05); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible, summary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(52,211,153,.45); border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Formulários ---------- */
.field { display: block; }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 7px; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; font: inherit; font-size: 15px;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.3);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: rgba(52,211,153,.6); box-shadow: 0 0 0 4px rgba(16,185,129,.14); background: var(--surface-2); }

/* ---------- Superfícies ---------- */
.card {
  position: relative; background: linear-gradient(180deg, rgba(209,250,229,.035), rgba(209,250,229,.012));
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; border: 1px solid var(--line-2); background: rgba(209,250,229,.03); color: var(--text-2); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.eyebrow { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; min-height: 32px; max-width: 100%; padding: 5px 14px 5px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(14,20,22,.7); backdrop-filter: blur(8px); font-size: 13.5px; color: var(--text-2); transition: border-color .2s, background .2s; }
.eyebrow:hover { border-color: var(--green-line); background: rgba(16,185,129,.06); }
.eyebrow b { font-weight: 600; font-size: 11.5px; color: var(--on-green); background: var(--green); padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 560px) { .eyebrow { border-radius: 14px; padding: 8px 12px; font-size: 12.5px; text-align: center; } }

.spinner { width: 16px; height: 16px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marca */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 32px; width: auto; }

/* Revelação ao rolar */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
