/* Academy Novos Talentos — design system compartilhado */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy-950: #050b1a;
  --navy-900: #0a1530;
  --navy-800: #0f1f45;
  --navy-700: #16295c;
  --royal-600: #1f4fd1;
  --royal-500: #2c63f0;
  --royal-400: #5a86ff;
  --royal-300: #8eaaff;
  --gold-500: #f5b81c;
  --gold-400: #ffcb47;
  --white: #ffffff;
  --ink-100: #e8edf8;
  --ink-300: #aab6d3;
  --ink-500: #6f7fa6;
  --success: #22c58b;
  --danger: #ff5a6e;
  --warning: #ffb547;

  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --grad-royal: linear-gradient(135deg, #2c63f0 0%, #1a3fb0 100%);
  --grad-gold: linear-gradient(135deg, #ffd25e 0%, #f0a500 100%);
  --grad-bg: radial-gradient(1200px 600px at 80% -10%, rgba(44, 99, 240, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(31, 79, 209, 0.18), transparent 60%), var(--navy-950);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 10px 40px rgba(44, 99, 240, 0.35);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-100);
  background: var(--grad-bg);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--royal-300); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; color: var(--white); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Botões */
.btn {
  --bg: var(--grad-royal);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 0.95rem/1 var(--font-body); color: var(--white); background: var(--bg);
  box-shadow: var(--shadow-glow); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-gold, a.btn-gold, button.btn-gold {
  --bg: var(--grad-gold);
  color: #050b1a !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 30px rgba(245, 184, 28, 0.35);
  text-shadow: none !important;
}
.btn-gold:hover, a.btn-gold:hover {
  color: #000000 !important;
  box-shadow: 0 12px 35px rgba(245, 184, 28, 0.5);
}
.btn-gold *, a.btn-gold * {
  color: #050b1a !important;
}
.btn-ghost { --bg: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 0.55em 1em; font-size: 0.85rem; }
.btn-danger { --bg: linear-gradient(135deg, #ff6b7d, #d93a50); box-shadow: none; }

/* Botões Flutuantes (WhatsApp + Voltar ao Topo) */
.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.3s;
  text-decoration: none;
  position: relative;
}
.float-btn:hover {
  transform: translateY(-4px) scale(1.06);
}
.float-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
.float-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}
.float-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: floatPulse 2.4s infinite;
  z-index: -1;
}
@keyframes floatPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}
.float-whatsapp-label {
  position: absolute;
  right: 62px;
  background: rgba(5, 11, 26, 0.92);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.2s ease;
}
.float-whatsapp:hover .float-whatsapp-label {
  opacity: 1;
  transform: translateX(0);
}
.float-top {
  background: rgba(15, 31, 69, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.float-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.float-top:hover {
  background: var(--royal-500);
  border-color: var(--royal-400);
}
.float-top svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}


/* Formulários */
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-300); }
.input, select.input, textarea.input {
  width: 100%; padding: 0.8em 1em; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: rgba(5, 11, 26, 0.55); color: var(--white);
  font: 500 0.95rem var(--font-body); transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: var(--royal-400); box-shadow: 0 0 0 4px rgba(90, 134, 255, 0.2); }
textarea.input { min-height: 100px; resize: vertical; }
select.input option { background: var(--navy-900); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-300); }
.check input { margin-top: 4px; accent-color: var(--royal-500); width: 18px; height: 18px; }

/* Cartões */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 0.3em 0.8em; border-radius: 999px;
  font: 600 0.75rem var(--font-body); letter-spacing: 0.03em; background: var(--surface-2); color: var(--ink-100);
  border: 1px solid var(--border);
}
.badge-gold { background: rgba(245, 184, 28, 0.12); color: var(--gold-400); border-color: rgba(245, 184, 28, 0.3); }
.badge-blue { background: rgba(44, 99, 240, 0.15); color: var(--royal-300); border-color: rgba(90, 134, 255, 0.3); }
.badge-green { background: rgba(34, 197, 139, 0.14); color: #5ee3b1; border-color: rgba(34, 197, 139, 0.3); }
.badge-red { background: rgba(255, 90, 110, 0.14); color: #ff8b9a; border-color: rgba(255, 90, 110, 0.3); }
.badge-amber { background: rgba(255, 181, 71, 0.14); color: #ffc978; border-color: rgba(255, 181, 71, 0.3); }

/* Toast */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: grid; gap: 10px; width: min(420px, 92vw); }
.toast {
  padding: 14px 18px; border-radius: 14px; background: var(--navy-800); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); font-weight: 500; animation: toastIn 0.35s var(--ease);
}
.toast.ok { border-color: rgba(34, 197, 139, 0.5); }
.toast.bad { border-color: rgba(255, 90, 110, 0.6); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Reveal ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
