/* ============================================================
   Preparo Generative — global styles
   ============================================================ */

/* Proteção: bloquear seleção e cópia */
* {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

/* Permitir input/textarea */
input, textarea, select {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

:root {
  --brand-500: #B6026E;
  --brand-400: #F04494;
  --brand-800: #60003A;
  --brand-950: #200013;
}

html { scroll-padding-top: 5rem; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ------------------------------------------------------------
   Ambient orbs — gradient blobs behind the content
   ------------------------------------------------------------ */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}
.orb--1 {
  top: -10%; left: -8%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(240,68,148,0.6), transparent 60%);
  animation: drift-1 22s ease-in-out infinite;
}
.orb--2 {
  top: 40%; right: -12%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(182,2,110,0.5), transparent 60%);
  animation: drift-2 28s ease-in-out infinite;
}
.orb--3 {
  bottom: -10%; left: 30%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(96,0,58,0.5), transparent 60%);
  animation: drift-3 32s ease-in-out infinite;
}

@keyframes drift-1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(80px, 60px) scale(1.12); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-100px, -80px) scale(1.08); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(60px, -40px) scale(1.15); }
}

/* ------------------------------------------------------------
   Subtle grid overlay
   ------------------------------------------------------------ */
.grid-lines {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* ------------------------------------------------------------
   Reveal on scroll (used by main.js IntersectionObserver)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   Counter number (monospace tabular)
   ------------------------------------------------------------ */
.counter {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ------------------------------------------------------------
   Reduced motion — respect user preference
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .orb, [class*="animate-"] { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
