import Link from 'next/link'
import { Button } from '@/components/ui/button'
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
import { PublicLayout } from '@/components/layout/public-layout'
import { Shield, Lock, Eye } from 'lucide-react'

export default function SecurityPage() {
  const products = [
    {
      name: 'Aegis of Akan Shield',
      icon: Shield,
      description: 'Comprehensive security platform',
      features: [
        'Threat protection',
        'DDoS mitigation',
        'Security monitoring',
        'Zero Trust networking',
      ],
    },
    {
      name: 'PhoenixGuard IAM',
      icon: Lock,
      description: 'Identity and access management',
      features: [
        'Multi-factor authentication',
        'Single sign-on (SSO)',
        'Role-based access control',
        'Identity federation',
      ],
    },
    {
      name: 'Nsamankom Sentinel',
      icon: Eye,
      description: 'Security monitoring with ancestral protection',
      features: [
        'Security monitoring',
        'Threat detection',
        'Compliance reporting',
        'Incident response',
      ],
    },
  ]

  return (
    <PublicLayout>
      <div className="min-h-screen bg-studio-black">
        <section className="relative flex min-h-[50vh] flex-col items-center justify-center overflow-hidden px-4">
          <div className="absolute inset-0 bg-gradient-to-br from-phoenix-fire/20 via-transparent to-sankofa-gold/20" />
          
          <div className="relative z-10 max-w-4xl text-center">
            <h1 className="mb-6 text-5xl font-bold tracking-tight text-white md:text-7xl">
              Security Services
            </h1>
            
            <p className="mb-8 text-xl text-gray-300 md:text-2xl">
              Enterprise-grade security for sovereign cloud infrastructure
            </p>
          </div>
        </section>

        <section className="py-24 px-4">
          <div className="mx-auto max-w-7xl">
            <div className="grid gap-8 md:grid-cols-3">
              {products.map((product) => {
                const Icon = product.icon
                return (
                  <Card key={product.name} className="hover:border-phoenix-fire transition-colors">
                    <CardHeader>
                      <Icon className="mb-4 h-12 w-12 text-phoenix-fire" />
                      <CardTitle className="text-xl">{product.name}</CardTitle>
                      <CardDescription className="text-gray-400">
                        {product.description}
                      </CardDescription>
                    </CardHeader>
                    <CardContent>
                      <ul className="space-y-2 text-sm text-gray-300 mb-6">
                        {product.features.map((feature, idx) => (
                          <li key={idx} className="flex items-start gap-2">
                            <span className="text-phoenix-fire mt-1">•</span>
                            <span>{feature}</span>
                          </li>
                        ))}
                      </ul>
                      <Button variant="outline" className="w-full" asChild>
                        <Link href={`/products/${product.name.toLowerCase().replace(/\s+/g, '-')}`}>
                          Learn More
                        </Link>
                      </Button>
                    </CardContent>
                  </Card>
                )
              })}
            </div>
          </div>
        </section>

        <section className="py-24 px-4 bg-studio-dark">
          <div className="mx-auto max-w-4xl text-center">
            <h2 className="mb-6 text-4xl font-bold text-white">
              Ready to Get Started?
            </h2>
            <Button variant="phoenix" size="lg" asChild>
              <Link href="/portal">Get Started</Link>
            </Button>
          </div>
        </section>
      </div>
    </PublicLayout>
  )
}

