'use client' import { useState } from 'react' import { Header } from '@/components/Header' import { Footer } from '@/components/Footer' import { api } from '@/lib/api' import { Mail, MessageSquare, Clock, Send, Loader2, CheckCircle, MapPin, Building, AlertCircle, ArrowRight } from 'lucide-react' import Link from 'next/link' const contactMethods = [ { icon: Mail, title: 'Secure Comms', description: 'Support, partnerships, and product intel.', value: 'hello@pounce.ch', href: 'mailto:hello@pounce.ch', }, { icon: MessageSquare, title: 'Support Desk', description: 'Email support. Mon–Fri, 0900–1800 CET.', value: 'Send ticket', href: 'mailto:hello@pounce.ch?subject=Support', }, { icon: Clock, title: 'Response Time', description: 'Typical response window.', value: '< 24 Hours', href: null, }, ] const faqs = [ { q: 'Forgot credentials?', a: 'Use the "Forgot Password" protocol on the login screen. Reset link dispatched instantly.', }, { q: 'Upgrade mid-cycle?', a: 'Affirmative. Pro-rated charges apply. Features unlock immediately upon transaction.', }, { q: 'Refund policy?', a: '14-day money-back guarantee. No questions asked. Risk-free deployment.', }, ] export default function ContactPage() { const [formState, setFormState] = useState<'idle' | 'loading' | 'success' | 'error'>('idle') const [error, setError] = useState(null) const [formData, setFormData] = useState({ name: '', email: '', subject: '', message: '', }) const handleSubmit = async (e: React.FormEvent) => { e.preventDefault() setFormState('loading') setError(null) try { await api.submitContact( formData.name, formData.email, formData.subject, formData.message ) setFormState('success') // Reset after showing success setTimeout(() => { setFormState('idle') setFormData({ name: '', email: '', subject: '', message: '' }) }, 5000) } catch (err: any) { setFormState('error') setError(err.message || 'Transmission failed. Retry.') } } return (
{/* Background Atmosphere */}
{/* Hero */}
Communication Uplink

Establish Contact.

Support request, bug report, or partnership intel. We'll respond fast.

{/* Contact Methods */}
{contactMethods.map((method) => (

{method.title}

{method.description}

{method.href ? ( {method.value} ) : ( {method.value} )}
))}
{/* Contact Form - Tech Style */}
{/* Tech Corners */}

Transmission Form

{formState === 'success' ? (

Message Received

Your transmission has been logged. Our operators will respond within 4 hours.

) : (
{formState === 'error' && error && (

{error}

)}
setFormData({ ...formData, name: e.target.value })} required className="w-full bg-[#0A0A0A] border border-white/10 px-4 py-3 text-white font-mono text-sm placeholder:text-white/20 focus:outline-none focus:border-accent transition-all rounded-none" placeholder="AGENT SMITH" />
setFormData({ ...formData, email: e.target.value })} required className="w-full bg-[#0A0A0A] border border-white/10 px-4 py-3 text-white font-mono text-sm placeholder:text-white/20 focus:outline-none focus:border-accent transition-all rounded-none" placeholder="NAME@DOMAIN.COM" />