/* Cursor, rastro, grade de pontos e aviso de cópia (efeitos globais). */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.cursor[data-visible="true"] { opacity: 1; }
.cursor__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 12px color-mix(in srgb, var(--sun) 60%, transparent);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  animation: cursor-breathe 2.6s ease-in-out infinite;
}
@keyframes cursor-breathe { 50% { transform: translate(-50%, -50%) scale(1.15); } }
.cursor[data-state="link"] .cursor__dot {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1.5px solid var(--sun);
  animation: none;
}
.cursor.is-down .cursor__dot { width: 7px; height: 7px; }
.cursor-trail { position: fixed; inset: 0; z-index: 2400; width: 100%; height: 100%; pointer-events: none; }

.bg-dots {
  --mx: -999px;
  --my: -999px;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--sage) 70%, transparent) 0.9px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx) var(--my), var(--ink) 0%, color-mix(in srgb, var(--ink) 50%, transparent) 45%, transparent 100%);
  mask-image: radial-gradient(circle 240px at var(--mx) var(--my), var(--ink) 0%, color-mix(in srgb, var(--ink) 50%, transparent) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
.bg-dots.is-on { opacity: 0.6; }

.copy-toast {
  position: fixed;
  z-index: 2600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--warm);
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -140%);
}
.copy-toast.is-on { animation: toast 1.6s var(--ease-out) forwards; }
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, -100%); }
  15%, 80% { opacity: 1; transform: translate(-50%, -160%); }
  100% { opacity: 0; transform: translate(-50%, -180%); }
}
