'use client' import { motion } from 'framer-motion' import { useState, useEffect, useMemo } from 'react' import { Bell, ArrowDown } from 'lucide-react' function resolveHsl(cssVar: string): string { if (typeof window === 'undefined') return 'transparent' const value = getComputedStyle(document.documentElement).getPropertyValue(cssVar).trim() return value ? `hsl(${value})` : 'transparent' } export function CompetitorDemoVisual() { const [phase, setPhase] = useState(0) const [colors, setColors] = useState({ burgundy: '#993350', border: '#27272a' }) useEffect(() => { setColors({ burgundy: resolveHsl('--burgundy'), border: resolveHsl('--border'), }) }, []) useEffect(() => { const interval = setInterval(() => { setPhase(p => (p + 1) % 2) }, 3000) return () => clearInterval(interval) }, []) return (