"use client"; import { useScrollAnimation } from "@/hooks/useScrollAnimation"; import { MessageSquare, Brain, Shield, BarChart3, Bell, Lock, Sparkles, Link, Zap, Check, TrendingUp, } from "lucide-react"; import { GlowingEffect } from "@/components/ui/glowing-effect"; // Feature Card Component with Glowing Effect and Dotted Background interface FeatureCardProps { title: string; description: string; icon: React.ElementType; gradient: string; gridArea: string; children?: React.ReactNode; delay?: number; } function FeatureCard({ title, description, icon: Icon, gradient, gridArea, children, delay = 0, }: FeatureCardProps) { const { ref, isVisible } = useScrollAnimation({ threshold: 0.2, }); return (
  • {/* Glowing Effect */}
    {/* Icon Container */}
    {/* Content */}

    {title}

    {description}

    {/* Animated Content */} {children &&
    {children}
    }
  • ); } // Animated Chat Messages (Compact) function ChatAnimation() { const messages = [ { text: "What's the liability cap?", isUser: true }, { text: "$5M per Section 8.3", isUser: false }, ]; return (
    {messages.map((msg, i) => (
    {msg.text}
    ))}
    ); } // Document Extraction Animation (Compact) function ExtractionAnimation() { const fields = [ { label: "Contract Type", value: "Service", status: "done" }, { label: "Parties", value: "3 found", status: "done" }, { label: "Term", value: "24 mo", status: "processing" }, ]; return (
    {fields.map((field, i) => (
    {field.label}
    {field.value} {field.status === "done" && ( )} {field.status === "processing" && (
    )}
    ))}
    ); } // Blockchain Animation (Compact) function BlockchainAnimation() { return (
    {/* Nodes */} {[0, 1, 2].map((i) => (
    ))} {/* Connection Lines */} {[0, 1].map((i) => ( ))} {/* Transaction Hash */}
    0x7f8a...9b2c ✓
    ); } // Dashboard Mini Preview (Compact) function DashboardPreview() { return (
    {/* Mini Chart */}
    {[30, 50, 40, 70, 55, 80, 65].map((h, i) => (
    ))}
    {/* Stats */}
    +24%
    98.9%
    ); } // Notification Animation (Compact) function NotificationAnimation() { const notifications = [ { icon: Bell, text: "Renewal in 7 days", color: "text-amber-500" }, { icon: Check, text: "Doc verified", color: "text-emerald-500" }, ]; return (
    {notifications.map((notif, i) => (
    {notif.text}
    ))}
    ); } // Security Animation (Compact) function SecurityAnimation() { return (
    {["AES-256", "GDPR", "ISO"].map((badge, i) => ( {badge} ))}
    ); } export function Features() { const { ref: headerRef, isVisible: headerVisible } = useScrollAnimation(); const features = [ { title: "AI-Powered Assistant", description: "Ask questions about your contracts and get instant, precise answers with legal context.", icon: MessageSquare, gradient: "bg-gradient-to-br from-blue-500 to-blue-600", gridArea: "md:[grid-area:1/1/2/3]", content: , }, { title: "Document Extraction", description: "Advanced OCR + AI extracts and structures information from PDFs automatically.", icon: Brain, gradient: "bg-gradient-to-br from-teal-500 to-teal-600", gridArea: "md:[grid-area:1/3/2/4]", content: , }, { title: "Blockchain Proof", description: "Immutable timestamping on Polygon with cryptographic verification.", icon: Shield, gradient: "bg-gradient-to-br from-violet-500 to-purple-600", gridArea: "md:[grid-area:2/3/3/4]", content: , }, { title: "Analytics Dashboard", description: "Visualize contracts, renewals, and analytics in one interface.", icon: BarChart3, gradient: "bg-gradient-to-br from-indigo-500 to-indigo-600", gridArea: "md:[grid-area:2/1/3/3]", content: , }, { title: "Smart Alerts", description: "Automated notifications for renewals, deadlines, and key events.", icon: Bell, gradient: "bg-gradient-to-br from-amber-500 to-orange-600", gridArea: "md:[grid-area:3/3/4/4]", content: , }, { title: "Enterprise Security", description: "AES-256 encryption, GDPR compliant with secure hosting.", icon: Lock, gradient: "bg-gradient-to-br from-emerald-500 to-green-600", gridArea: "md:[grid-area:3/1/4/3]", content: , }, ]; return (
    {/* Background */}
    {/* Section Header */}
    Features

    Everything You Need to{" "} Manage Contracts

    Powerful AI combined with blockchain security.

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