"use client"; import Link from "next/link"; import { useEffect, useState } from "react"; import { ArrowLeft, ArrowRight, ShieldCheck, SlidersHorizontal, UserCircle2, Lock, Smartphone, KeyRound, MailCheck, LogIn, Layers } from "lucide-react"; import { useLanguage } from "@/components/language-provider"; import { useLoginModal } from "@/components/login-modal-provider"; import { buttonVariants } from "@/components/ui/button"; import { Reveal } from "@/components/ui/reveal"; import { ScrollProgress } from "@/components/ui/scroll-progress"; import { cn } from "@/lib/utils"; export default function Home() { const { t, lang } = useLanguage(); const { open: openLogin } = useLoginModal(); const Arrow = lang === "fa" ? ArrowLeft : ArrowRight; const [heroIn, setHeroIn] = useState(false); useEffect(() => { const t = setTimeout(() => setHeroIn(true), 80); return () => clearTimeout(t); }, []); const CHIPS = [ { icon: ShieldCheck, fa: "احراز هویت امن", en: "Secure auth" }, { icon: MailCheck, fa: "تأیید ایمیل", en: "Email verified" }, { icon: LogIn, fa: "ورود بی‌دردسر", en: "Frictionless login" }, { icon: Layers, fa: "احراز چند مرحله‌ای", en: "Multi-step auth" }, ]; return (
{t.hero.badge}

{t.hero.title}

{t.hero.subtitle}

{t.hero.ctaSecondary}
{CHIPS.map((c) => ( {lang === "fa" ? c.fa : c.en} ))}
{t.benefits.eyebrow}

{t.benefits.title}

{t.benefits.subtitle}

{t.benefits.points.map((p, i) => ( ))}
{t.ecosystem.eyebrow}

{t.ecosystem.title}

{t.ecosystem.subtitle}

{t.capabilities.eyebrow}

{t.capabilities.title}

{t.capabilities.subtitle}

{t.capabilities.items.map((it, idx) => ( ))}
{t.safety.eyebrow}

{t.safety.title}

{t.safety.subtitle}

{t.safety.points.map((p, i) => (
{p.title}
{p.body}
))}
{t.preview.title}
{t.preview.subtitle}
{t.preview.cards.map((c, i) => (
{c.value}
{c.label}
))}
{t.preview.cta}

{t.cta.title}

{t.cta.subtitle}

); } function GoogleCard({ title, body, icon: Icon, color }: { title: string; body: string; icon: any; color: string }) { return (

{title}

{body}

); } function EcosysCard({ name, desc, color, letter, dashed }: { name: string; desc: string; color: string; letter: string; dashed?: boolean }) { return (
{letter}
{name}
{desc}
); }