import React, { useState, useEffect } from 'react'; import { Shield, Lock, Activity, Globe, CheckCircle, AlertTriangle, Smartphone, Users, Zap, Search, Menu, X, Check, Server } from 'lucide-react'; // --- Components --- const Button = ({ children, variant = 'primary', onClick, className = '' }) => { const baseStyle = "px-6 py-3 rounded-lg font-bold transition-all duration-300 transform hover:scale-105 active:scale-95"; const styles = { primary: "bg-cyan-500 hover:bg-cyan-400 text-slate-900 shadow-lg shadow-cyan-500/50", secondary: "bg-slate-700 hover:bg-slate-600 text-white border border-slate-600", outline: "border-2 border-cyan-500 text-cyan-500 hover:bg-cyan-500/10", danger: "bg-red-500 hover:bg-red-400 text-white shadow-lg shadow-red-500/50" }; return ( ); }; const Card = ({ title, children, className = '' }) => (
{title &&

{title}

} {children}
); // --- Main Application Component --- export default function SafeGuardApp() { const [view, setView] = useState('landing'); // 'landing' or 'app' const [isMenuOpen, setIsMenuOpen] = useState(false); // App Simulation State const [scanStatus, setScanStatus] = useState('idle'); // idle, scanning, secure, risk const [urlInput, setUrlInput] = useState(''); const [activeTab, setActiveTab] = useState('dashboard'); const handleScan = () => { if (!urlInput) return; setScanStatus('scanning'); setTimeout(() => { // Mock logic: if url contains "danger", "hack", or "scam", it's bad. if (urlInput.toLowerCase().includes('scam') || urlInput.toLowerCase().includes('hack')) { setScanStatus('risk'); } else { setScanStatus('secure'); } }, 1500); }; // --- Views --- const LandingPage = () => (
{/* Navbar */} {/* Hero Section */}
AI-Powered Protection Live

Security that keeps up with
the speed of life.

We grew up online. Security shouldn't be complicated. SafeGuard uses AI to predict threats before they happen, and we take full accountability if they do.

{/* Problem/Solution Strip */}

The Threat

Hackers are using AI to target everyone, from teens to grandparents.

The Solution

AI combating AI. Predictive blocking rather than reactive fixing.

The Promise

If our system fails, we pay. Full accountability.

{/* Features Grid */}

Complete Protection Platform

One subscription covers your digital life.

Our AI engine learns from global cyberattack trends in real-time to block new scams before they load.

Whether you are on your phone, laptop, or tablet, your protection travels with you seamlessly.

Shop online with a private encrypted tunnel that hides your financial data from prying eyes.

We scan the dark web 24/7. If your email or password leaks, you'll know instantly.

Not sure about a link? Our instant scanner checks for malicious code before you click.

Simple enough for grandparents, powerful enough for techies. One plan protects the whole house.

{/* The Accountability Difference (USP) */}

We don't just protect you.
We insure you.

Most security companies hide behind fine print when things go wrong. SafeGuard is different. If a failure occurs within our system, we accept the responsibility, not you. This builds the one thing missing in cybersecurity: Trust.

{/* Pricing */}

Transparent Pricing

{/* Standard */}

Standard

$14.99/mo

Essential protection for individuals.

  • Real-time AI Protection
  • Safe Browsing VPN
  • 1 Device
{/* Partially Insured (Highlight) */}
Most Popular

Partially Insured

$34.99/mo

Enhanced coverage with financial backing.

  • All Standard Features
  • Multi-Device (Up to 5)
  • Partial Loss Reimbursement
  • Priority Support
{/* Fully Insured */}

Fully Insured

$64.99/mo

Total peace of mind for families & businesses.

  • Enterprise-Grade Security
  • Unlimited Devices
  • Full Loss Coverage
  • 24/7 Dedicated Agent
{/* Footer */}
); // --- Mock Dashboard App --- const Dashboard = () => (
{/* Sidebar */}
SafeGuard

Plan: Partially Insured

Coverage: Active

{/* Main Content */}
{/* Mobile Header */}
SafeGuard Dashboard
{activeTab === 'dashboard' && (

System Overview

{/* Status Hero */}

System Secured

AI Engine is monitoring 4 devices. No threats detected.

VPN Active

IP: Hidden location

Encrypted

Passwords

124 Monitored

0 Breaches found

AI Assistant

Learning Patterns...

Updated 2m ago

Recent Activity

Malicious ad blocked
2 mins ago
Bank of America site verified safe
1 hour ago
Daily System Scan completed
4 hours ago
)} {activeTab === 'scan' && (

AI Website Scanner

Enter a URL to check for malicious code, phishing scams, or weak security.

{ setUrlInput(e.target.value); setScanStatus('idle'); }} />
{/* Results Area */}
{scanStatus === 'idle' && (

Waiting for input...

Try typing "scam" to see a threat warning.

)} {scanStatus === 'scanning' && (

Analyzing Code Structure...

Checking global blacklists...

)} {scanStatus === 'secure' && (

Website is Safe

No threats detected. SSL Valid.

)} {scanStatus === 'risk' && (

DANGER DETECTED

Phishing Attempt Identified.

Connection blocked by SafeGuard.

)}
)}
); return view === 'landing' ? : ; }