/* =========================================================================
   ONE BOOST — effects.css
   Premium micro-interactions: cursor-follow card glow, hero grid overlay,
   floating FPS badge, scroll-parallax hooks.
   ========================================================================= */

/* Cursor-follow glow (motion.js sets --mx / --my per card) */
.glow-card { position: relative; }
.glow-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; z-index: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--red) 16%, transparent), transparent 60%);
  transition: opacity .35s ease;
}
.glow-card:hover::after { opacity: 1; }
.glow-card > * { position: relative; z-index: 1; }

/* Hero background grid (fades toward the mock corner) */
.hero { }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .45;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask: radial-gradient(120% 90% at 75% 12%, #000, transparent 66%);
          mask: radial-gradient(120% 90% at 75% 12%, #000, transparent 66%);
}

/* Floating FPS badge on the hero mock */
.mock-shell { position: relative; }
.fps-badge {
  position: absolute; top: -16px; inset-inline-start: -12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px; direction: ltr;
  background: linear-gradient(180deg, #33d17a, #1f8f42); color: #fff;
  border-radius: 13px; padding: 9px 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 14.5px;
  box-shadow: 0 12px 28px -8px rgba(46, 160, 67, .55), inset 0 1px 0 rgba(255,255,255,.25);
  animation: ob-float 5s ease-in-out infinite;
}
.fps-badge svg { width: 15px; height: 15px; }

/* Parallax layer hook (motion.js translates on scroll) */
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .fps-badge { animation: none !important; }
  .glow-card::after { display: none; }
}
