/* ============================================================
   Eurekant — Backgrounds, scrollbars & motion utilities
   Opt-in effects layer. NOT imported by styles.css — link this
   file only on surfaces that want the immersive feel (app
   screens, dark tools, hero moments). Pairs with cursor-fx.
   ============================================================ */

/* ---- Dotted brand background (immersive app canvas) ---- */
.ek-bg-dots {
  background-color: var(--surface-page);
  background-image: radial-gradient(circle, rgba(33, 153, 234, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
}
/* Larger, softer variant for hero / section backdrops */
.ek-bg-dots-lg {
  background-color: var(--surface-page);
  background-image: radial-gradient(circle, rgba(33, 153, 234, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
}
/* Aurora glow blobs — drop behind content (position the parent relative) */
.ek-bg-aurora { position: relative; overflow: hidden; }
.ek-bg-aurora::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(60% 80% at 30% 0%, rgba(33, 153, 234, 0.22), transparent 70%),
              radial-gradient(50% 70% at 80% 10%, rgba(6, 161, 228, 0.16), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* ---- Brand scrollbars (thin, picton-tinted) ---- */
.ek-scroll-brand { scrollbar-width: thin; scrollbar-color: rgba(19, 125, 197, 0.5) transparent; }
.ek-scroll-brand::-webkit-scrollbar { width: 5px; height: 5px; }
.ek-scroll-brand::-webkit-scrollbar-track { background: transparent; }
.ek-scroll-brand::-webkit-scrollbar-thumb { background: rgba(19, 125, 197, 0.5); border-radius: 99px; }

/* ============================================================
   Motion — keyframes
   ============================================================ */
@keyframes ek-fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes ek-slide-up  { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ek-pulse     { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes ek-ring-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 0.55; }
  60%  { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.55; }
}

/* ---- Animation utilities ---- */
.ek-animate-fade-in  { animation: ek-fade-in var(--dur-slow, 320ms) var(--ease-out, cubic-bezier(0.16,1,0.3,1)) both; }
.ek-animate-slide-up { animation: ek-slide-up var(--dur-slow, 320ms) var(--ease-out, cubic-bezier(0.16,1,0.3,1)) both; }
.ek-animate-pulse    { animation: ek-pulse 2s ease-in-out infinite; }

/* Stagger helper: set --i on each child to cascade slide-ups */
.ek-stagger > * { animation: ek-slide-up var(--dur-slow, 320ms) var(--ease-out, cubic-bezier(0.16,1,0.3,1)) both; animation-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .ek-animate-fade-in, .ek-animate-slide-up, .ek-animate-pulse, .ek-stagger > * { animation: none !important; }
}
