Spaces:
Sleeping
Sleeping
v4.0: Landing page — add OCR, Chatbot, Redlining to features + update footer to v4.0
Browse files2 unmodified lines345678911 unmodified lines2122232425262728293031323334353637383940414216 unmodified lines596061626364656667686970717214 unmodified lines878889909192939495969737 unmodified lines13513613713813914014114214314414514614714814961 unmodified lines2112122132142152162172 unmodified linesShieldCheck, ShieldAlert, Scale, Gavel, ScanText, FileCheck,TriangleAlert, ArrowRight, Zap, Eye, Download, ChevronRight,Sparkles, Lock, Globe, Ban, FileX, Stamp, Layers, Tag, AlertTriangle,ClipboardList, Landmark, Building, BookOpen, CheckCircle, Cpu} from "lucide-react";const CLAUSES = [11 unmodified lines{ icon: ClipboardList, name: "Obligations", desc: "Track monetary, compliance, reporting tasks with priority", severity: "medium" },{ icon: Landmark, name: "Compliance", desc: "GDPR, CCPA, SOX, HIPAA, FINRA with negation detection", severity: "high" },{ icon: BookOpen, name: "Compare Contracts", desc: "Semantic similarity with sentence embeddings", severity: "low" },];const STEPS = [{ icon: Download, title: "Upload or paste", desc: "Drop a PDF, DOCX, or paste contract text directly." },{ icon: ScanText, title: "3 AI models analyze", desc: "Legal-BERT classifier + Legal NER + DeBERTa NLI scan your contract." },{ icon: TriangleAlert, title: "Get precise insights", desc: "Risk score, contradictions, obligations, compliance gaps with source indicators." },];const PRICING = [{name: "Free", price: "0", period: "", highlight: false, cta: "Get started",features: ["10 scans per month", "41 clause categories", "Risk scoring", "ML Legal NER", "NLI contradiction detection", "Compliance with negation detection"],},{name: "Pro", price: "999", period: "/mo", highlight: true, cta: "Start free trial",features: ["Unlimited scans", "Upload PDF/DOCX files", "Contract comparison", "AI clause explanations", "Scan history", "PDF report export", "Obligation tracker with priority", "Priority support"],},{name: "Team", price: "3,999", period: "/mo", highlight: false, cta: "Talk to us",16 unmodified lines<div className="max-w-2xl"><div className="inline-flex items-center gap-2 px-3 py-1 rounded-full border border-zinc-200 text-[13px] text-zinc-500 mb-6"><Sparkles className="w-3.5 h-3.5 text-zinc-400" />3 ML models · 41 clause categories · negation-aware compliance</div><h1 className="text-3xl sm:text-[42px] lg:text-5xl font-semibold tracking-tight leading-[1.1]">Know what you are<br className="hidden sm:block" /> agreeing to</h1><p className="mt-5 text-base sm:text-[17px] text-zinc-500 leading-relaxed max-w-lg">ClauseGuard scans contracts, terms of service, and leases using 3 specialized AI models.Get precise clause detection, risk scoring, ML entity extraction, NLI contradiction alerts, and negation-aware compliance checks.</p><div className="mt-8 flex flex-col sm:flex-row gap-3"><Link href="/dashboard-pages/analyze" className="inline-flex items-center justify-center gap-2 bg-zinc-900 text-white px-5 py-2.5 rounded-lg text-sm font-medium hover:bg-zinc-800 transition-colors">14 unmodified lines<ShieldCheck className="w-4 h-4 text-zinc-400" /><p className="text-[13px] font-medium text-zinc-400 uppercase tracking-wider">Detection</p></div><h2 className="text-xl sm:text-2xl font-semibold tracking-tight">14 powerful analysis features</h2><p className="mt-2 text-zinc-500 text-sm sm:text-[15px] max-w-lg">Based on the CUAD taxonomy + CLAUDETTE framework, the same datasets used by EU consumer protection researchers and Stanford NLP.</p><div className="mt-8 sm:mt-10 grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-4 gap-2 sm:gap-3">{CLAUSES.map((c) => (<div key={c.name} className="group border border-zinc-100 rounded-xl p-3 sm:p-4 hover:border-zinc-200 hover:shadow-sm transition-all cursor-default"><div className={`w-7 h-7 sm:w-8 sm:h-8 rounded-lg flex items-center justify-center border ${sevColor[c.severity]}`}>37 unmodified lines<Cpu className="w-4 h-4 text-zinc-400" /><p className="text-[13px] font-medium text-zinc-400 uppercase tracking-wider">Technology</p></div><h2 className="text-xl sm:text-2xl font-semibold tracking-tight">Built on 3 production ML models</h2><div className="mt-8 grid sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4">{[{ name: "Legal-BERT Classifier", icon: Cpu, desc: "LoRA fine-tuned on 41 CUAD categories with sigmoid multi-label classification and per-class thresholds", source: "Mokshith31/legalbert-contract-clause-classification" },{ name: "Legal-BERT NER", icon: Tag, desc: "ML-based named entity recognition for parties, dates, money, jurisdictions with regex augmentation", source: "matterstack/legal-bert-ner" },{ name: "DeBERTa-v3 NLI", icon: AlertTriangle, desc: "Cross-encoder model for semantic contradiction detection between clause pairs", source: "cross-encoder/nli-deberta-v3-base" },{ name: "Compliance Engine", icon: ShieldCheck, desc: "GDPR, CCPA, SOX, HIPAA, FINRA checking with negation detection and context snippets", source: "Negation-aware keyword + semantic" },{ name: "Obligation Tracker", icon: ClipboardList, desc: "Extracts monetary, compliance, reporting, delivery obligations with priority scoring", source: "Context-filtered regex" },{ name: "Comparison Engine", icon: Layers, desc: "Semantic similarity via sentence-transformers with SequenceMatcher fallback", source: "all-MiniLM-L6-v2" },].map((m) => (<div key={m.name} className="border border-zinc-100 rounded-xl p-4 hover:border-zinc-200 hover:shadow-sm transition-all"><div className="flex items-center gap-2 mb-2">61 unmodified lines<div className="max-w-6xl mx-auto px-4 sm:px-6 py-8 flex flex-col sm:flex-row justify-between items-center gap-4"><div className="flex items-center gap-2"><ShieldCheck className="w-4 h-4 text-zinc-300" /><span className="text-[13px] text-zinc-400">ClauseGuard v3.0 — not legal advice</span></div><div className="flex gap-5 text-[13px] text-zinc-400"><Link href="/privacy" className="hover:text-zinc-600">Privacy</Link>2 unmodified lines34567891011 unmodified lines222324252627282930313233343536373839404142434445464716 unmodified lines646566676869707172737475767714 unmodified lines929394959697989910010110237 unmodified lines14014114214314414514614714814915015115215315461 unmodified lines2162172182192202212222 unmodified linesShieldCheck, ShieldAlert, Scale, Gavel, ScanText, FileCheck,TriangleAlert, ArrowRight, Zap, Eye, Download, ChevronRight,Sparkles, Lock, Globe, Ban, FileX, Stamp, Layers, Tag, AlertTriangle,ClipboardList, Landmark, Building, BookOpen, CheckCircle, Cpu,MessageSquare, PenTool, ScanLine} from "lucide-react";const CLAUSES = [11 unmodified lines{ icon: ClipboardList, name: "Obligations", desc: "Track monetary, compliance, reporting tasks with priority", severity: "medium" },{ icon: Landmark, name: "Compliance", desc: "GDPR, CCPA, SOX, HIPAA, FINRA with negation detection", severity: "high" },{ icon: BookOpen, name: "Compare Contracts", desc: "Semantic similarity with sentence embeddings", severity: "low" },{ icon: PenTool, name: "Clause Redlining", desc: "AI suggests safer alternatives with legal citations", severity: "critical" },{ icon: MessageSquare, name: "Q&A Chatbot", desc: "Ask questions about your contract — RAG-powered answers", severity: "medium" },{ icon: ScanLine, name: "OCR for Scanned PDFs", desc: "docTR engine auto-detects and OCRs scanned contracts", severity: "low" },{ icon: Cpu, name: "6 AI Models", desc: "Legal-BERT, NER, NLI, Embeddings, OCR, Qwen2.5-7B LLM", severity: "low" },];const STEPS = [{ icon: Download, title: "Upload or paste", desc: "Drop a PDF (even scanned!), DOCX, or paste contract text directly." },{ icon: ScanText, title: "6 AI models analyze", desc: "Legal-BERT + NER + NLI + OCR + Embeddings + LLM scan your contract." },{ icon: TriangleAlert, title: "Get precise insights", desc: "Risk score, redlining, Q&A chatbot, contradictions, obligations, and compliance." },];const PRICING = [{name: "Free", price: "0", period: "", highlight: false, cta: "Get started",features: ["10 scans per month", "41 clause categories", "Risk scoring", "ML Legal NER", "NLI contradiction detection", "Compliance with negation detection", "Clause redlining suggestions", "OCR for scanned PDFs"],},{name: "Pro", price: "999", period: "/mo", highlight: true, cta: "Start free trial",features: ["Unlimited scans", "Upload PDF/DOCX files", "Contract comparison", "Q&A Chatbot (RAG)", "AI clause explanations", "LLM-refined redlining", "Scan history", "PDF report export", "Obligation tracker with priority", "Priority support"],},{name: "Team", price: "3,999", period: "/mo", highlight: false, cta: "Talk to us",16 unmodified lines<div className="max-w-2xl"><div className="inline-flex items-center gap-2 px-3 py-1 rounded-full border border-zinc-200 text-[13px] text-zinc-500 mb-6"><Sparkles className="w-3.5 h-3.5 text-zinc-400" />6 AI models · 41 clause categories · RAG chatbot · clause redlining · OCR</div><h1 className="text-3xl sm:text-[42px] lg:text-5xl font-semibold tracking-tight leading-[1.1]">Know what you are<br className="hidden sm:block" /> agreeing to</h1><p className="mt-5 text-base sm:text-[17px] text-zinc-500 leading-relaxed max-w-lg">ClauseGuard scans contracts using 6 AI models. Get clause detection, risk scoring,safer alternatives, Q&A chatbot, OCR for scanned PDFs, and compliance checks.</p><div className="mt-8 flex flex-col sm:flex-row gap-3"><Link href="/dashboard-pages/analyze" className="inline-flex items-center justify-center gap-2 bg-zinc-900 text-white px-5 py-2.5 rounded-lg text-sm font-medium hover:bg-zinc-800 transition-colors">14 unmodified lines<ShieldCheck className="w-4 h-4 text-zinc-400" /><p className="text-[13px] font-medium text-zinc-400 uppercase tracking-wider">Detection</p></div><h2 className="text-xl sm:text-2xl font-semibold tracking-tight">18 powerful analysis features</h2><p className="mt-2 text-zinc-500 text-sm sm:text-[15px] max-w-lg">Based on the CUAD taxonomy + CLAUDETTE framework. Now with RAG chatbot, clause redlining, and OCR.</p><div className="mt-8 sm:mt-10 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-2 sm:gap-3">{CLAUSES.map((c) => (<div key={c.name} className="group border border-zinc-100 rounded-xl p-3 sm:p-4 hover:border-zinc-200 hover:shadow-sm transition-all cursor-default"><div className={`w-7 h-7 sm:w-8 sm:h-8 rounded-lg flex items-center justify-center border ${sevColor[c.severity]}`}>37 unmodified lines<Cpu className="w-4 h-4 text-zinc-400" /><p className="text-[13px] font-medium text-zinc-400 uppercase tracking-wider">Technology</p></div><h2 className="text-xl sm:text-2xl font-semibold tracking-tight">Built on 6 production AI models</h2><div className="mt-8 grid sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4">{[{ name: "Legal-BERT Classifier", icon: Cpu, desc: "LoRA fine-tuned on 41 CUAD categories with sigmoid multi-label classification", source: "Mokshith31/legalbert-contract-clause-classification" },{ name: "Legal-BERT NER", icon: Tag, desc: "Named entity recognition for parties, dates, money, jurisdictions", source: "matterstack/legal-bert-ner" },{ name: "DeBERTa-v3 NLI", icon: AlertTriangle, desc: "Semantic contradiction detection between clause pairs", source: "cross-encoder/nli-deberta-v3-base" },{ name: "RAG Chatbot", icon: MessageSquare, desc: "Embedding retrieval + Qwen2.5-7B LLM for contract Q&A", source: "all-MiniLM-L6-v2 + Qwen/Qwen2.5-7B-Instruct" },{ name: "Clause Redlining", icon: PenTool, desc: "18+ legal templates + LLM refinement for safer clause alternatives", source: "FTC/EU/CFPB standards + Qwen2.5-7B" },{ name: "docTR OCR", icon: ScanLine, desc: "Smart PDF router: auto-detects scanned PDFs and extracts text", source: "docTR fast_base + crnn_vgg16_bn" },].map((m) => (<div key={m.name} className="border border-zinc-100 rounded-xl p-4 hover:border-zinc-200 hover:shadow-sm transition-all"><div className="flex items-center gap-2 mb-2">61 unmodified lines<div className="max-w-6xl mx-auto px-4 sm:px-6 py-8 flex flex-col sm:flex-row justify-between items-center gap-4"><div className="flex items-center gap-2"><ShieldCheck className="w-4 h-4 text-zinc-300" /><span className="text-[13px] text-zinc-400">ClauseGuard v4.0 — not legal advice</span></div><div className="flex gap-5 text-[13px] text-zinc-400"><Link href="/privacy" className="hover:text-zinc-600">Privacy</Link>
web/app/page.tsx+25-20