/* ============================================================
   Agente ADV — tema compartilhado (landing, /planos, /cadastrar)
   Tokens, botões, cards, formulários e animações.
   ============================================================ */

:root {
  --bg: #080907;
  --bg-soft: #0d1110;
  --panel: #111716;
  --panel-2: #151b1a;
  --line: rgba(226, 232, 240, .11);
  --line-strong: rgba(226, 232, 240, .2);
  --text: #f5f7f5;
  --muted: #a1aaa6;
  --muted-2: #6f7a75;
  --teal: #2de2b1;
  --teal-soft: #9ff2dc;
  --blue: #5b8cff;
  --violet: #8b6cf6;
  --amber: #d7a84e;
  --danger: #e06868;
  --grad-brand: linear-gradient(120deg, #2de2b1 0%, #38b6ff 55%, #8b6cf6 100%);
  --grad-cta: linear-gradient(135deg, #16c79a, #2d6cdf 60%, #7c4dff);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  --glow-teal: 0 16px 48px rgba(45, 226, 177, .22);
  --glow-blue: 0 16px 48px rgba(91, 140, 255, .25);
  --glow-cta: 0 10px 32px rgba(45, 108, 223, .35), 0 2px 8px rgba(45, 226, 177, .25);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease-out), border-color .25s ease, background .25s ease, color .25s ease, box-shadow .25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--glow-cta);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(45, 108, 223, .45), 0 4px 12px rgba(45, 226, 177, .3); }
.btn-secondary {
  border-color: rgba(45, 226, 177, .3);
  background: rgba(45, 226, 177, .07);
  color: var(--teal-soft);
}
.btn-secondary:hover { border-color: rgba(45, 226, 177, .5); background: rgba(45, 226, 177, .12); }
.btn-ghost { color: var(--muted); padding-inline: 10px; }
.btn-ghost:hover { color: #fff; transform: none; }
.btn-block { width: 100%; }

/* ---------- Texto e bordas com gradiente ---------- */
.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glow-teal { box-shadow: var(--glow-teal); }
.glow-blue { box-shadow: var(--glow-blue); }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 23, 22, .76);
  padding: 22px;
  transition: transform .25s var(--ease-out), border-color .25s ease, box-shadow .25s var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 226, 177, .3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4), 0 0 0 1px rgba(45, 226, 177, .1);
}
.card h3 { margin: 0 0 9px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); line-height: 1.58; font-size: 14px; }
.card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #9ec3ff;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, .03);
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.card:hover .card-icon { color: var(--teal); background: rgba(45, 226, 177, .08); border-color: rgba(45, 226, 177, .25); }

/* Borda em gradiente (mockup, demo, preço, card destaque) */
.grad-border {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(17, 23, 22, .97), rgba(10, 14, 13, .97)) padding-box,
    linear-gradient(135deg, rgba(45, 226, 177, .55), rgba(91, 140, 255, .28) 45%, rgba(139, 108, 246, .5)) border-box;
}

/* ---------- Formulários ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: var(--muted-2); }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45, 226, 177, .15); }
input[type="checkbox"] { accent-color: var(--teal); }
.alert-danger {
  border: 1px solid rgba(224, 104, 104, .4);
  background: rgba(224, 104, 104, .1);
  color: #f0a8a8;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
}

/* ---------- Animações ---------- */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  animation: pulseDot 2.4s var(--ease-out) infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(45, 226, 177, .35); }
  60% { box-shadow: 0 0 0 9px rgba(45, 226, 177, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 226, 177, 0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Scroll-reveal (ativado via IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal.in { opacity: 1; transform: none; }

/* Nota de redução de risco sob CTAs */
.risk-note { color: var(--muted-2); font-size: 13px; }

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