import React from 'react';
import Link from 'next/link';

export default function ApiWebhooksPage() {
  return (
    <div className="min-h-screen bg-gray-50 flex flex-col font-sans">
      <nav className="bg-gray-900 border-b border-gray-800">
        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
          <div className="flex justify-between h-20 items-center">
            <Link href="/" className="flex items-center gap-3">
              <div className="w-10 h-10 bg-indigo-600 rounded-xl flex items-center justify-center">
                <span className="text-white font-black text-xl tracking-tighter">CQ</span>
              </div>
              <span className="font-extrabold text-2xl tracking-tight text-white">CK-QR</span>
            </Link>
          </div>
        </div>
      </nav>
      <main className="flex-1 max-w-4xl mx-auto w-full px-6 py-16">
        <h1 className="text-5xl font-black text-gray-900 mb-6">API & Webhooks</h1>
        <p className="text-xl text-gray-600 mb-10 leading-relaxed">
          Automate your physical marketing at scale. Build custom integrations with our RESTful API.
        </p>
        <div className="prose prose-lg prose-indigo max-w-none text-gray-700">
          <h2>Developer First</h2>
          <p>
            Whether you need to generate 10,000 unique QR codes for an event ticketing system, or automatically update destinations based on your internal CMS, our API can handle it.
          </p>
          <h2>Capabilities</h2>
          <ul>
            <li><strong>Programmatic Generation:</strong> Create, read, update, and delete dynamic QR codes via secure API endpoints.</li>
            <li><strong>Real-time Webhooks:</strong> Subscribe to scan events. Get a POST request to your server the millisecond someone scans one of your codes.</li>
            <li><strong>Analytics Export:</strong> Pull raw analytics data into your own business intelligence tools like Tableau or PowerBI.</li>
          </ul>
        </div>
      </main>
    </div>
  );
}
