/* ============ PULSO — design tokens ============ */
:root {
  --ink: #06070d;
  --surface: #0d1020;
  --surface-2: #131730;
  --line: rgba(155, 140, 255, 0.14);
  --violet: #8b7cff;
  --violet-deep: #5b46e0;
  --coral: #ff6b4a;
  --text: #f2f0ff;
  --muted: #9a97b8;
  --ok: #4ade80;

  --font-display: "Unbounded", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 18px;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--violet); color: var(--ink); }

/* film grain over everything — keeps the dark from feeling flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* cursor-following glow */
#glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(139, 124, 255, 0.10) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; }

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(91, 70, 224, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(91, 70, 224, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(242, 240, 255, 0.18);
}
.btn-ghost:hover { border-color: var(--violet); background: rgba(139, 124, 255, 0.08); }
.btn-coral {
  background: var(--coral);
  color: #1a0c08;
  box-shadow: 0 8px 30px rgba(255, 107, 74, 0.3);
}
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(255, 107, 74, 0.45); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 7, 13, 0.72);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--coral);
  transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: 12px; align-items: center; }

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(255, 107, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0); }
}
/* versão verde, para indicadores de online/ao vivo */
@keyframes pulse-ok {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.field input, .field select {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: rgba(242, 240, 255, 0.04);
  border: 1px solid rgba(242, 240, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input::placeholder { color: rgba(154, 151, 184, 0.55); }

/* select: seta própria + opções legíveis (o popup nativo ignora o tema da página) */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239a97b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select:hover { border-color: rgba(139, 124, 255, 0.4); }
.field select option {
  background-color: #131730;
  color: #f2f0ff;
  padding: 10px;
}
.field select option:disabled { color: #6f6c8c; }
.field input:focus, .field select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.15);
  background: rgba(242, 240, 255, 0.06);
}
.field.error input { border-color: var(--coral); }
.field .hint { font-size: 12px; color: var(--coral); min-height: 16px; }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 120px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 24px;
  font-size: 14px;
  z-index: 500;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.toast.show { transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(74, 222, 128, 0.4); }
.toast.err { border-color: rgba(255, 107, 74, 0.5); }

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