/* =========================================================
   camilloparente.com.br — base compartilhada por todas as páginas
   Paleta "motion": preto profundo + violeta, rosa, ciano e lima neon.
   Para trocar as cores do site inteiro, mude só as variáveis abaixo.
   ========================================================= */

@property --a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #07060b;
  --surface: #100e19;
  --text: #f5f3ff;
  --muted: #a7a2bd;
  --line: rgba(255, 255, 255, 0.08);

  --violet: #8b5cf6;
  --pink: #ff3ea5;
  --cyan: #2ee6ff;
  --lime: #c8ff3d;
  --orange: #ff8a3d;

  --font-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 12px;
}

/* ---------- Fundo animado (fixo atrás de tudo) ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  animation: drift 20s ease-in-out infinite alternate;
}
.bg-blob.b1 { top: -42vmax; left: -30vmax; background: radial-gradient(circle, rgba(139, 92, 246, 0.34), transparent 62%); }
.bg-blob.b2 { top: 18vh; right: -46vmax; background: radial-gradient(circle, rgba(255, 62, 165, 0.2), transparent 62%); animation-duration: 24s; }
.bg-blob.b3 { bottom: -50vmax; left: -20vmax; background: radial-gradient(circle, rgba(46, 230, 255, 0.14), transparent 62%); animation-duration: 28s; }

@keyframes drift {
  to { transform: translate(7vmax, 5vmax) scale(1.12); }
}

/* chão em perspectiva, estilo palco de motion */
.bg-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: 0;
  height: 42vh;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.28) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(320px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  opacity: 0.55;
  animation: floor 2.6s linear infinite;
}
@keyframes floor { to { background-position: 0 52px, 0 0; } }

.bg-spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 18%), rgba(139, 92, 246, 0.14), transparent 60%);
  transition: background-position 0.2s;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Entrada dos elementos ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
}
.js.is-ready .reveal {
  animation: rise 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
@keyframes rise {
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Componentes comuns ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.pill svg { width: 18px; height: 18px; flex: none; }
.pill:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.pill:active { transform: scale(0.97); }

.site-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: rgba(167, 162, 189, 0.7);
  letter-spacing: 0.02em;
}

.grad-text {
  background: linear-gradient(90deg, var(--pink), var(--violet) 50%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Página "em breve" (provisória para as LPs) ---------- */
.soon {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 16px;
  text-align: center;
}
.soon-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #d9d2ff;
}
.soon h1 {
  max-width: 560px;
  font: 700 clamp(28px, 8vw, 46px) / 1.08 var(--font-display);
  letter-spacing: -0.02em;
}
.soon p { max-width: 380px; color: var(--muted); }
.soon .pill { margin-top: 10px; }

/* ---------- Acessibilidade: menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  #particles { display: none; }
}
