Spaces:
Sleeping
Sleeping
v3.0: Update landing page — reflect 3 ML models, negation-aware compliance, semantic comparison, source indicators
Browse files- web/app/page.tsx +1 -239
web/app/page.tsx
CHANGED
|
@@ -1,239 +1 @@
|
|
| 1 |
-
|
| 2 |
-
import {
|
| 3 |
-
ShieldCheck, ShieldAlert, Scale, Gavel, ScrollText, Handshake,
|
| 4 |
-
ScanText, FileCheck, TriangleAlert, ArrowRight, Zap, Eye, Download,
|
| 5 |
-
ChevronRight, Sparkles, Lock, Globe, Ban, FileX, Stamp, Layers,
|
| 6 |
-
Tag, AlertTriangle, ClipboardList, Landmark, Building, DollarSign,
|
| 7 |
-
MapPin, Hash, BookOpen, CheckCircle
|
| 8 |
-
} from "lucide-react";
|
| 9 |
-
|
| 10 |
-
const CLAUSES = [
|
| 11 |
-
{ icon: Scale, name: "Arbitration", desc: "Waives your right to sue in court", severity: "critical" },
|
| 12 |
-
{ icon: ShieldAlert, name: "Liability limits", desc: "Company avoids responsibility for damages", severity: "critical" },
|
| 13 |
-
{ icon: Ban, name: "Unilateral termination", desc: "They can close your account without reason", severity: "critical" },
|
| 14 |
-
{ icon: FileX, name: "Unilateral change", desc: "Terms can change without your consent", severity: "high" },
|
| 15 |
-
{ icon: Eye, name: "Content removal", desc: "Your content deleted without notice", severity: "high" },
|
| 16 |
-
{ icon: Globe, name: "Jurisdiction", desc: "Disputes handled in their preferred court", severity: "medium" },
|
| 17 |
-
{ icon: Gavel, name: "Choice of law", desc: "Foreign law overrides your local protections", severity: "medium" },
|
| 18 |
-
{ icon: Lock, name: "IP Ownership", desc: "Intellectual property transferred entirely", severity: "critical" },
|
| 19 |
-
{ icon: Layers, name: "41 CUAD Categories", desc: "Full taxonomy: NDA, MSA, SLA, and more", severity: "low" },
|
| 20 |
-
{ icon: Tag, name: "Legal NER", desc: "Extract parties, dates, money, jurisdictions", severity: "low" },
|
| 21 |
-
{ icon: AlertTriangle, name: "Contradictions", desc: "Detect conflicting clauses automatically", severity: "high" },
|
| 22 |
-
{ icon: ClipboardList, name: "Obligations", desc: "Track monetary, compliance, reporting tasks", severity: "medium" },
|
| 23 |
-
{ icon: Landmark, name: "Compliance", desc: "GDPR, CCPA, SOX, HIPAA, FINRA checks", severity: "high" },
|
| 24 |
-
{ icon: BookOpen, name: "Compare Contracts", desc: "Side-by-side diff with alignment scoring", severity: "low" },
|
| 25 |
-
];
|
| 26 |
-
|
| 27 |
-
const STEPS = [
|
| 28 |
-
{ icon: Download, title: "Upload or paste", desc: "Drop a PDF, DOCX, or paste contract text directly." },
|
| 29 |
-
{ icon: ScanText, title: "AI scans 41 categories", desc: "Legal-BERT + CUAD detects clauses, risks, entities." },
|
| 30 |
-
{ icon: TriangleAlert, title: "Get actionable insights", desc: "Risk score, contradictions, obligations, compliance gaps." },
|
| 31 |
-
];
|
| 32 |
-
|
| 33 |
-
const PRICING = [
|
| 34 |
-
{
|
| 35 |
-
name: "Free", price: "₹0", period: "", highlight: false, cta: "Get started",
|
| 36 |
-
features: ["10 scans per month", "41 clause categories", "Risk scoring", "Legal NER", "Contradiction detection", "Compliance checks"],
|
| 37 |
-
},
|
| 38 |
-
{
|
| 39 |
-
name: "Pro", price: "₹999", period: "/mo", highlight: true, cta: "Start free trial",
|
| 40 |
-
features: ["Unlimited scans", "Upload PDF/DOCX files", "Contract comparison", "AI clause explanations", "Scan history", "PDF report export", "Obligation tracker", "Priority support"],
|
| 41 |
-
},
|
| 42 |
-
{
|
| 43 |
-
name: "Team", price: "₹3,999", period: "/mo", highlight: false, cta: "Talk to us",
|
| 44 |
-
features: ["Everything in Pro", "5 team seats", "10,000 API calls", "Shared dashboard", "Slack support", "Custom clause rules", "Enterprise compliance"],
|
| 45 |
-
},
|
| 46 |
-
];
|
| 47 |
-
|
| 48 |
-
const sevColor: Record<string, string> = {
|
| 49 |
-
critical: "text-red-500 bg-red-50 border-red-200",
|
| 50 |
-
high: "text-amber-500 bg-amber-50 border-amber-200",
|
| 51 |
-
medium: "text-blue-500 bg-blue-50 border-blue-200",
|
| 52 |
-
low: "text-emerald-500 bg-emerald-50 border-emerald-200",
|
| 53 |
-
};
|
| 54 |
-
|
| 55 |
-
export default function Home() {
|
| 56 |
-
return (
|
| 57 |
-
<main className="min-h-screen bg-white text-zinc-900">
|
| 58 |
-
{/* Hero */}
|
| 59 |
-
<section className="max-w-6xl mx-auto px-5 pt-24 pb-20">
|
| 60 |
-
<div className="max-w-2xl">
|
| 61 |
-
<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">
|
| 62 |
-
<Sparkles className="w-3.5 h-3.5 text-zinc-400" />
|
| 63 |
-
Trained on 13,000+ legal clauses across 41 categories
|
| 64 |
-
</div>
|
| 65 |
-
<h1 className="text-[42px] sm:text-5xl font-semibold tracking-tight leading-[1.1]">
|
| 66 |
-
Know what you are<br />agreeing to
|
| 67 |
-
</h1>
|
| 68 |
-
<p className="mt-5 text-[17px] text-zinc-500 leading-relaxed max-w-lg">
|
| 69 |
-
ClauseGuard scans contracts, terms of service, and leases using AI trained on legal data.
|
| 70 |
-
Get clause detection, risk scoring, entity extraction, contradiction alerts, and compliance checks.
|
| 71 |
-
</p>
|
| 72 |
-
<div className="mt-8 flex flex-wrap gap-3">
|
| 73 |
-
<Link href="/dashboard-pages/analyze" className="inline-flex items-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">
|
| 74 |
-
<ScanText className="w-4 h-4" />
|
| 75 |
-
Try the scanner
|
| 76 |
-
</Link>
|
| 77 |
-
<Link href="/dashboard-pages/compare" className="inline-flex items-center gap-2 border border-zinc-200 px-5 py-2.5 rounded-lg text-sm font-medium hover:bg-zinc-50 transition-colors">
|
| 78 |
-
Compare contracts
|
| 79 |
-
<ArrowRight className="w-4 h-4" />
|
| 80 |
-
</Link>
|
| 81 |
-
</div>
|
| 82 |
-
<p className="mt-4 text-xs text-zinc-400">No account needed for free tier · 10 scans/month</p>
|
| 83 |
-
</div>
|
| 84 |
-
</section>
|
| 85 |
-
|
| 86 |
-
{/* What it detects */}
|
| 87 |
-
<section id="features" className="border-t border-zinc-100">
|
| 88 |
-
<div className="max-w-6xl mx-auto px-5 py-20">
|
| 89 |
-
<div className="flex items-center gap-2 mb-2">
|
| 90 |
-
<ShieldCheck className="w-4 h-4 text-zinc-400" />
|
| 91 |
-
<p className="text-[13px] font-medium text-zinc-400 uppercase tracking-wider">Detection</p>
|
| 92 |
-
</div>
|
| 93 |
-
<h2 className="text-2xl font-semibold tracking-tight">14 powerful analysis features</h2>
|
| 94 |
-
<p className="mt-2 text-zinc-500 text-[15px] max-w-lg">
|
| 95 |
-
Based on the CUAD taxonomy + CLAUDETTE framework — the same datasets used by EU consumer protection researchers and Stanford NLP.
|
| 96 |
-
</p>
|
| 97 |
-
|
| 98 |
-
<div className="mt-10 grid sm:grid-cols-2 lg:grid-cols-4 gap-3">
|
| 99 |
-
{CLAUSES.map((c) => (
|
| 100 |
-
<div key={c.name} className="group border border-zinc-100 rounded-xl p-4 hover:border-zinc-200 hover:shadow-sm transition-all cursor-default">
|
| 101 |
-
<div className={`w-8 h-8 rounded-lg flex items-center justify-center border ${sevColor[c.severity]}`}>
|
| 102 |
-
<c.icon className="w-4 h-4" />
|
| 103 |
-
</div>
|
| 104 |
-
<p className="mt-3 text-sm font-medium">{c.name}</p>
|
| 105 |
-
<p className="mt-1 text-[13px] text-zinc-500 leading-relaxed">{c.desc}</p>
|
| 106 |
-
</div>
|
| 107 |
-
))}
|
| 108 |
-
</div>
|
| 109 |
-
</div>
|
| 110 |
-
</section>
|
| 111 |
-
|
| 112 |
-
{/* How it works */}
|
| 113 |
-
<section className="border-t border-zinc-100 bg-zinc-50/50">
|
| 114 |
-
<div className="max-w-6xl mx-auto px-5 py-20">
|
| 115 |
-
<div className="flex items-center gap-2 mb-2">
|
| 116 |
-
<Zap className="w-4 h-4 text-zinc-400" />
|
| 117 |
-
<p className="text-[13px] font-medium text-zinc-400 uppercase tracking-wider">How it works</p>
|
| 118 |
-
</div>
|
| 119 |
-
<h2 className="text-2xl font-semibold tracking-tight">Three steps, under 30 seconds</h2>
|
| 120 |
-
|
| 121 |
-
<div className="mt-10 grid sm:grid-cols-3 gap-8">
|
| 122 |
-
{STEPS.map((s, i) => (
|
| 123 |
-
<div key={s.title} className="relative">
|
| 124 |
-
<div className="w-10 h-10 rounded-xl bg-white border border-zinc-200 flex items-center justify-center shadow-sm">
|
| 125 |
-
<s.icon className="w-5 h-5 text-zinc-600" />
|
| 126 |
-
</div>
|
| 127 |
-
<h3 className="mt-4 text-[15px] font-medium">{s.title}</h3>
|
| 128 |
-
<p className="mt-1.5 text-[13px] text-zinc-500 leading-relaxed">{s.desc}</p>
|
| 129 |
-
{i < 2 && (
|
| 130 |
-
<ChevronRight className="hidden sm:block absolute top-4 -right-5 w-4 h-4 text-zinc-300" />
|
| 131 |
-
)}
|
| 132 |
-
</div>
|
| 133 |
-
))}
|
| 134 |
-
</div>
|
| 135 |
-
</div>
|
| 136 |
-
</section>
|
| 137 |
-
|
| 138 |
-
{/* Models */}
|
| 139 |
-
<section className="border-t border-zinc-100">
|
| 140 |
-
<div className="max-w-6xl mx-auto px-5 py-20">
|
| 141 |
-
<div className="flex items-center gap-2 mb-2">
|
| 142 |
-
<CheckCircle className="w-4 h-4 text-zinc-400" />
|
| 143 |
-
<p className="text-[13px] font-medium text-zinc-400 uppercase tracking-wider">Technology</p>
|
| 144 |
-
</div>
|
| 145 |
-
<h2 className="text-2xl font-semibold tracking-tight">Built on production-grade models</h2>
|
| 146 |
-
<div className="mt-8 grid sm:grid-cols-2 lg:grid-cols-3 gap-4">
|
| 147 |
-
{[
|
| 148 |
-
{ name: "Legal-BERT + CUAD", desc: "41 clause categories fine-tuned on 510 contracts, 13K annotations", source: "Mokshith31/legalbert-contract-clause-classification" },
|
| 149 |
-
{ name: "Legal NER Engine", desc: "Regex + pattern-based extraction for parties, dates, money, jurisdictions, defined terms", source: "Custom" },
|
| 150 |
-
{ name: "NLI Detection", desc: "Heuristic contradiction detection: liability caps, governing law conflicts, IP ownership", source: "Custom" },
|
| 151 |
-
{ name: "Compliance Engine", desc: "GDPR, CCPA, SOX, HIPAA, FINRA keyword matching with severity scoring", source: "Custom" },
|
| 152 |
-
{ name: "Obligation Tracker", desc: "Extracts monetary, compliance, reporting, delivery, and termination obligations", source: "Custom" },
|
| 153 |
-
{ name: "Comparison Engine", desc: "SequenceMatcher-based clause alignment with risk delta analysis", source: "Custom" },
|
| 154 |
-
].map((m) => (
|
| 155 |
-
<div key={m.name} className="border border-zinc-100 rounded-xl p-4 hover:border-zinc-200 transition-all">
|
| 156 |
-
<p className="text-sm font-medium text-zinc-900">{m.name}</p>
|
| 157 |
-
<p className="text-[13px] text-zinc-500 mt-1 leading-relaxed">{m.desc}</p>
|
| 158 |
-
<p className="text-[11px] text-zinc-400 mt-2">{m.source}</p>
|
| 159 |
-
</div>
|
| 160 |
-
))}
|
| 161 |
-
</div>
|
| 162 |
-
</div>
|
| 163 |
-
</section>
|
| 164 |
-
|
| 165 |
-
{/* Pricing */}
|
| 166 |
-
<section id="pricing" className="border-t border-zinc-100">
|
| 167 |
-
<div className="max-w-6xl mx-auto px-5 py-20">
|
| 168 |
-
<h2 className="text-2xl font-semibold tracking-tight">Pricing</h2>
|
| 169 |
-
<p className="mt-2 text-zinc-500 text-[15px]">Free forever. Upgrade when you need more.</p>
|
| 170 |
-
|
| 171 |
-
<div className="mt-10 grid sm:grid-cols-3 gap-5 max-w-4xl">
|
| 172 |
-
{PRICING.map((plan) => (
|
| 173 |
-
<div key={plan.name}
|
| 174 |
-
className={`rounded-xl p-6 transition-shadow ${
|
| 175 |
-
plan.highlight ? "border-2 border-zinc-900 shadow-sm" : "border border-zinc-200"
|
| 176 |
-
}`}>
|
| 177 |
-
<p className="text-[13px] font-medium text-zinc-400">{plan.name}</p>
|
| 178 |
-
<p className="mt-2 flex items-baseline gap-1">
|
| 179 |
-
<span className="text-3xl font-semibold tracking-tight">{plan.price}</span>
|
| 180 |
-
<span className="text-sm text-zinc-400">{plan.period}</span>
|
| 181 |
-
</p>
|
| 182 |
-
<ul className="mt-5 space-y-2.5">
|
| 183 |
-
{plan.features.map((f) => (
|
| 184 |
-
<li key={f} className="flex items-start gap-2.5 text-[13px] text-zinc-600">
|
| 185 |
-
<FileCheck className="w-3.5 h-3.5 text-zinc-300 mt-0.5 shrink-0" />
|
| 186 |
-
{f}
|
| 187 |
-
</li>
|
| 188 |
-
))}
|
| 189 |
-
</ul>
|
| 190 |
-
<Link href={plan.name === "Free" ? "/auth/signup" : plan.name === "Team" ? "mailto:hello@clauseguardweb.netlify.app" : "/auth/signup"}
|
| 191 |
-
className={`mt-6 block w-full py-2.5 rounded-lg text-[13px] font-medium text-center transition-colors ${
|
| 192 |
-
plan.highlight ? "bg-zinc-900 text-white hover:bg-zinc-800" : "border border-zinc-200 text-zinc-700 hover:bg-zinc-50"
|
| 193 |
-
}`}>
|
| 194 |
-
{plan.cta}
|
| 195 |
-
</Link>
|
| 196 |
-
</div>
|
| 197 |
-
))}
|
| 198 |
-
</div>
|
| 199 |
-
</div>
|
| 200 |
-
</section>
|
| 201 |
-
|
| 202 |
-
{/* CTA */}
|
| 203 |
-
<section className="border-t border-zinc-100 bg-zinc-50/50">
|
| 204 |
-
<div className="max-w-6xl mx-auto px-5 py-16 text-center">
|
| 205 |
-
<Lock className="w-6 h-6 text-zinc-300 mx-auto mb-4" />
|
| 206 |
-
<h2 className="text-2xl font-semibold tracking-tight">Read the fine print without reading it</h2>
|
| 207 |
-
<p className="mt-2 text-[15px] text-zinc-500 max-w-md mx-auto">
|
| 208 |
-
Join thousands protecting themselves before clicking accept.
|
| 209 |
-
</p>
|
| 210 |
-
<div className="mt-6 flex gap-3 justify-center">
|
| 211 |
-
<Link href="/auth/signup" className="inline-flex items-center gap-2 bg-zinc-900 text-white px-6 py-3 rounded-lg text-sm font-medium hover:bg-zinc-800 transition-colors">
|
| 212 |
-
<ScanText className="w-4 h-4" />
|
| 213 |
-
Get started free
|
| 214 |
-
</Link>
|
| 215 |
-
<Link href="/dashboard-pages/compare" className="inline-flex items-center gap-2 border border-zinc-200 px-6 py-3 rounded-lg text-sm font-medium hover:bg-zinc-50 transition-colors">
|
| 216 |
-
<ArrowRight className="w-4 h-4" />
|
| 217 |
-
Compare contracts
|
| 218 |
-
</Link>
|
| 219 |
-
</div>
|
| 220 |
-
</div>
|
| 221 |
-
</section>
|
| 222 |
-
|
| 223 |
-
{/* Footer */}
|
| 224 |
-
<footer className="border-t border-zinc-100">
|
| 225 |
-
<div className="max-w-6xl mx-auto px-5 py-8 flex flex-col sm:flex-row justify-between items-center gap-4">
|
| 226 |
-
<div className="flex items-center gap-2">
|
| 227 |
-
<ShieldCheck className="w-4 h-4 text-zinc-300" />
|
| 228 |
-
<span className="text-[13px] text-zinc-400">ClauseGuard — not legal advice</span>
|
| 229 |
-
</div>
|
| 230 |
-
<div className="flex gap-5 text-[13px] text-zinc-400">
|
| 231 |
-
<Link href="/privacy" className="hover:text-zinc-600">Privacy</Link>
|
| 232 |
-
<Link href="/terms" className="hover:text-zinc-600">Terms</Link>
|
| 233 |
-
<a href="mailto:hello@clauseguardweb.netlify.app" className="hover:text-zinc-600">Contact</a>
|
| 234 |
-
</div>
|
| 235 |
-
</div>
|
| 236 |
-
</footer>
|
| 237 |
-
</main>
|
| 238 |
-
);
|
| 239 |
-
}
|
|
|
|
| 1 |
+
/app/web/page.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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