'use client'; import React, { useRef, useEffect } from 'react'; import Image from 'next/image'; function useMagnetic(strength = 12) { const ref = useRef(null); useEffect(() => { const el = ref.current; if (!el) return; const onMove = (e: MouseEvent) => { const rect = el.getBoundingClientRect(); const x = ((e.clientX - rect.left) / rect.width - 0.5) * strength * 2; const y = ((e.clientY - rect.top) / rect.height - 0.5) * strength * 2; el.style.transform = `translate(${x}px, ${y}px)`; }; const onLeave = () => { el.style.transform = 'translate(0,0)'; }; el.addEventListener('mousemove', onMove); el.addEventListener('mouseleave', onLeave); return () => { el.removeEventListener('mousemove', onMove); el.removeEventListener('mouseleave', onLeave); }; }, [strength]); return ref; } export default function HeroSection() { const magSecondary = useMagnetic(8); return (
{/* Background photo */}
{/* Ambient orbs + grid */}
{/* Text column */}

Earn LYTs. Lit Yourself.

Every purchase unlocks more than points. Earn LYTs, discover experiences, and make every shopping trip count.

Shop nearby, collect LYTs, unlock exclusive drops, and become part of a living ecosystem designed around you.

{/* LYT Quick Facts */}
{[ { val: '10+ Ways', label: 'To earn Lyts' }, { val: 'Instant Spend', label: 'No delay at checkout' }, { val: '10,000+', label: 'Partner brands' } ].map((item, idx) => (
{item.val} {item.label}
))}
{/* Trust row */}
{['#f4be28', '#4ade80', '#a855f7', '#3b82f6'].map((c, i) => (
0 ? -9 : 0, opacity: 0.9 }} /> ))}
50,000+ Lytians earning and living more, every day
{/* Scroll hint */}
Scroll
); }