"use client"; import { useEffect, useState } from "react"; import Link from "next/link"; import { Shield, Zap, Brain, FileText, Radar, GitBranch, Lock, TrendingUp, ArrowRight, CheckCircle2, Sparkles, Eye, Target, BarChart3 } from "lucide-react"; const FEATURES = [ { icon: Brain, title: "AI Risk Translation", desc: "CVE-2024-XXXX means nothing to your board. TrustOS translates every technical finding into plain-English business impact — automatically.", }, { icon: GitBranch, title: "Attack Path Visualization", desc: "See exactly how an attacker chains your weaknesses together. Interactive attack graphs turn abstract risk into an undeniable picture.", }, { icon: Radar, title: "Continuous Asset Scanning", desc: "Every domain, server, and cloud asset monitored around the clock. New exposures surface as findings within minutes, not months.", }, { icon: Eye, title: "Executive Digital Footprint", desc: "Your leadership team is your biggest attack surface. Track credential leaks and public exposure for every executive.", }, { icon: FileText, title: "One-Click Audit Reports", desc: "Board meeting tomorrow? Generate a polished, PDF-ready cyber resilience report in seconds — scores, trends, and top risks included.", }, { icon: Sparkles, title: "AI Security Coach", desc: "Ask any finding anything. Your built-in AI coach explains the threat, the fix, and the priority — in language everyone understands.", }, ]; const STATS = [ { value: "89.2", label: "Avg. cyber health score achieved" }, { value: "< 5 min", label: "From signup to first insight" }, { value: "24/7", label: "Continuous exposure monitoring" }, { value: "100%", label: "Findings translated for the board" }, ]; const STEPS = [ { n: "01", icon: Target, title: "Connect your assets", desc: "Enroll domains, cloud accounts, and executives. Authorized scope only — privacy by design." }, { n: "02", icon: Radar, title: "We scan continuously", desc: "TrustOS maps your exposure, scores every asset, and flags what attackers would exploit first." }, { n: "03", icon: TrendingUp, title: "Watch risk fall", desc: "Fix what matters, track your Cyber Health Score climb, and prove progress with audit-grade reports." }, ]; export default function LandingPage() { const [loggedIn, setLoggedIn] = useState(false); useEffect(() => { setLoggedIn(!!localStorage.getItem("trustos_token")); }, []); const ctaHref = loggedIn ? "/dashboard" : "/login"; const ctaLabel = loggedIn ? "Open Your Vault" : "Get Started Free"; return (
{/* Nav */}
TrustOS
{loggedIn ? "Dashboard" : "Sign In"}
{/* Hero */}
AI-powered cyber resilience — live in minutes

Know your cyber risk.
Prove you're fixing it.

TrustOS is the AI operating system that turns raw vulnerabilities into a single Cyber Health Score your board understands — and a prioritized plan your IT team can execute.

{ctaLabel} Try the Live Demo

Demo access included · No credit card · Authorized assessments only

{/* Score preview card */}
89.2 Health Score

Live from the demo vault

One score. Total clarity.

Every finding, every asset, every executive exposure — distilled into a single number that trends over 90 days. When the score goes up, you have proof. When it dips, you know why first.

+6.8 pts in the last 30 days
{/* Stats bar */}
{STATS.map(s => (

{s.value}

{s.label}

))}
{/* Features */}

The Platform

Everything a security team needs.
Nothing a board can't read.

Six capabilities, one vault. Built for growing companies that need enterprise-grade resilience without an enterprise-grade security team.

{FEATURES.map(({ icon: Icon, title, desc }) => (

{title}

{desc}

))}
{/* How it works */}

How It Works

From blind spot to board-ready in three steps

{STEPS.map(({ n, icon: Icon, title, desc }) => (
{n}

{title}

{desc}

))}
{/* Security / trust */}

Built Trustworthy

Security software that practices what it preaches

Multi-tenant isolation, role-based access, encrypted transport, and authorized-scope-only assessments. Your data never trains anyone else's model, and your assessments never touch anything you haven't explicitly enrolled.

{ctaLabel}
{[ { icon: Lock, label: "JWT auth + bcrypt hashing" }, { icon: Shield, label: "Strict multi-tenant isolation" }, { icon: BarChart3, label: "Role-based dashboards (3 roles)" }, { icon: CheckCircle2, label: "Authorized scope only — always" }, ].map(({ icon: Icon, label }) => (
{label}
))}
{/* Final CTA */}

Your attackers already know your weaknesses.

It's time you did too. Open your vault and see your real exposure in under five minutes.

{ctaLabel}
{/* Footer */}
); }