'use client'; import { useScrollAnimation } from '@/hooks/useScrollAnimation'; import { MessageSquare, Brain, Shield, BarChart3, Bell, Lock, Sparkles, Link, Zap, Check, TrendingUp } from 'lucide-react'; // Feature Card Component interface FeatureCardProps { title: string; description: string; icon: React.ElementType; gradient: string; size?: 'normal' | 'large' | 'wide'; children?: React.ReactNode; delay?: number; } function FeatureCard({ title, description, icon: Icon, gradient, size = 'normal', children, delay = 0 }: FeatureCardProps) { const { ref, isVisible } = useScrollAnimation({ threshold: 0.2 }); const sizeClasses = { normal: 'md:col-span-1 aspect-square', large: 'md:col-span-2 md:row-span-2', wide: 'md:col-span-2', }; return (
{/* Icon */}
{/* Content */}

{title}

{description}

{/* Custom Content */} {children && (
{children}
)} {/* Hover Glow */}
); } // Animated Chat Messages function ChatAnimation() { const messages = [ { text: "What's the liability cap?", isUser: true }, { text: "The liability cap is $5M per Section 8.3", isUser: false }, { text: "When does this contract expire?", isUser: true }, { text: "December 31, 2024 - 45 days remaining", isUser: false }, ]; return (
{messages.map((msg, i) => (
{msg.text}
))} {/* Typing Indicator */}
); } // Document Extraction Animation function ExtractionAnimation() { const fields = [ { label: 'Contract Type', value: 'Service Agreement', status: 'done' }, { label: 'Parties', value: '3 identified', status: 'done' }, { label: 'Effective Date', value: 'Jan 1, 2024', status: 'done' }, { label: 'Term', value: '24 months', status: 'processing' }, { label: 'Value', value: 'Analyzing...', status: 'pending' }, ]; return (
{fields.map((field, i) => (
{field.label}
{field.value} {field.status === 'done' && } {field.status === 'processing' && (
)} {field.status === 'pending' && (
)}
))}
); } // Blockchain Animation function BlockchainAnimation() { return (
{/* Nodes */} {[0, 1, 2, 3].map((i) => (
))} {/* Connection Lines */} {[0, 1, 2].map((i) => ( ))} {/* Transaction Hash */}
0x7f8a...9b2c ✓
); } // Dashboard Mini Preview function DashboardPreview() { return (
{/* Mini Chart */}
{[30, 50, 40, 70, 55, 80, 65, 90, 75, 85].map((h, i) => (
))}
{/* Stats */}
+24%
98.9%
); } // Notification Animation function NotificationAnimation() { const notifications = [ { icon: Bell, text: 'Contract renewal in 7 days', color: 'text-amber-500' }, { icon: Check, text: 'Document verified', color: 'text-emerald-500' }, { icon: Sparkles, text: 'AI analysis complete', color: 'text-blue-500' }, ]; return (
{notifications.map((notif, i) => (
{notif.text}
))}
); } // Security Animation function SecurityAnimation() { return (
{['AES-256', 'GDPR', 'ISO 27001'].map((badge, i) => ( {badge} ))}
); } export function Features() { const { ref: headerRef, isVisible: headerVisible } = useScrollAnimation(); const features = [ { title: 'AI-Powered Conversational Assistant', description: 'Ask any question about your contracts. Our AI understands legal context and responds in seconds with precise answers.', icon: MessageSquare, gradient: 'card-gradient-blue', size: 'large' as const, content: , }, { title: 'Intelligent Document Extraction', description: 'Advanced OCR + AI automatically extracts and structures all information from your PDF documents.', icon: Brain, gradient: 'card-gradient-teal', content: , }, { title: 'Blockchain Proof of Submission', description: 'Immutable timestamping on Polygon. Cryptographic proof that\'s legally valid and instantly verifiable.', icon: Shield, gradient: 'card-gradient-violet', content: , }, { title: 'Comprehensive Dashboard & Analytics', description: 'Visualize all contracts, renewal alerts, and detailed analytics in one beautiful interface.', icon: BarChart3, gradient: 'from-blue-500/10 via-violet-500/10 to-teal-500/10', size: 'wide' as const, content: , }, { title: 'Smart Notifications', description: 'Automated alerts for renewals, deadlines, and important contract events. Never miss a date.', icon: Bell, gradient: 'card-gradient-amber', content: , }, { title: 'Enterprise Security', description: 'AES-256 encryption, GDPR compliant, secure hosting. Your data is protected at every level.', icon: Lock, gradient: 'card-gradient-emerald', content: , }, ]; return (
{/* Background */}
{/* Section Header */}
Features

Everything You Need to{' '} Manage Contracts

Powerful AI combined with blockchain security. Built for professionals.

{/* Bento Grid */}
{features.map((feature, index) => ( {feature.content} ))}
); }