import React, { useRef, useState } from 'react'; import { Brain, LineChart, Mic, CalendarClock } from 'lucide-react'; import { FeatureItem } from '../types'; const FEATURES: FeatureItem[] = [ { title: "The Performance Co-Pilot", description: "Training-aware guidance. We tell you to eat more carbs on Leg Day and prioritize protein on Rest Days.", icon: Brain, className: "md:col-span-2 md:row-span-2" }, { title: "Day 1 Action Plan", description: "No 'learning phase.' Get an intelligent, customized plan immediately.", icon: CalendarClock, className: "md:col-span-1 md:row-span-1" }, { title: "Purposeful Logging", description: "Log via photo, voice, or text. Inputs act as commands to the Co-Pilot.", icon: Mic, className: "md:col-span-1 md:row-span-1" }, { title: "Forward-Looking Dashboard", description: "See how 92% consistency translates to trend weight changes.", icon: LineChart, className: "md:col-span-3 lg:col-span-2" } ]; const SpotlightCard: React.FC<{ feature: FeatureItem }> = ({ feature }) => { const divRef = useRef(null); const [position, setPosition] = useState({ x: 0, y: 0 }); const [opacity, setOpacity] = useState(0); const handleMouseMove = (e: React.MouseEvent) => { if (!divRef.current) return; const rect = divRef.current.getBoundingClientRect(); setPosition({ x: e.clientX - rect.left, y: e.clientY - rect.top }); }; const handleMouseEnter = () => setOpacity(1); const handleMouseLeave = () => setOpacity(0); return (
{/* Spotlight Gradient */}
{/* Content Container */}

{feature.title}

{feature.description}

); }; export const Features: React.FC = () => { return (

Engineered for Results

A suite of tools designed to minimize friction and maximize adherence.

{FEATURES.map((feature, idx) => ( ))}
); };