/**
 * AAPanelHosting.tsx — dedicated landing page for the aaPanel shared plan.
 */
import {
  HardDrive,
  Zap,
  Terminal,
  Package,
  ShieldCheck,
  Layers,
  Code,
} from "lucide-react";
import HostingPlanDetail, {
  HostingPlanDetailConfig,
} from "./HostingPlanDetail";

const config: HostingPlanDetailConfig = {
  name: "AA Panel Hosting",
  tagline: "Lightweight · open-source",
  heroTitle: "aaPanel Hosting for developers who love control",
  heroDescription:
    "aaPanel is a blazing-fast open-source alternative to cPanel and Plesk. Get root SSH, one-click LNMP/LAMP, Docker, and full stack customisation at a fraction of the cost — perfect for tech-savvy users and startups.",
  accentColor: "#10b981",
  accentColorSoft: "#ecfdf5",
  heroIcon: <HardDrive className="w-7 h-7" />,
  externalUrl: "https://doiteasy.net/aa-panel/",
  tiers: [
    {
      name: "Developer",
      price: "$1.99",
      cadence: "/mo",
      features: [
        "1 website",
        "10 GB NVMe storage",
        "Root SSH access",
        "One-click LNMP / LAMP",
        "Free & open-source",
      ],
      ctaLabel: "Choose Developer",
    },
    {
      name: "Startup",
      price: "$4.49",
      cadence: "/mo",
      highlight: true,
      features: [
        "5 websites",
        "30 GB NVMe storage",
        "NGINX / Apache / OpenLiteSpeed",
        "Docker support",
        "Automated backups",
        "Free SSL",
      ],
      ctaLabel: "Choose Startup",
    },
    {
      name: "Agency",
      price: "$8.49",
      cadence: "/mo",
      features: [
        "Unlimited websites",
        "75 GB NVMe storage",
        "Multi-user panel access",
        "Advanced firewall",
        "Priority support",
        "Dedicated IP",
      ],
      ctaLabel: "Choose Agency",
    },
  ],
  features: [
    {
      icon: <Zap className="w-6 h-6" />,
      title: "Lightweight & Fast",
      desc:
        "aaPanel uses ~80% less RAM than cPanel, leaving more resources for your sites.",
    },
    {
      icon: <Terminal className="w-6 h-6" />,
      title: "Root SSH Access",
      desc:
        "Full root SSH so you can install any package, tweak configs, and run your own scripts.",
    },
    {
      icon: <Layers className="w-6 h-6" />,
      title: "Multi-Stack Support",
      desc:
        "Pick NGINX, Apache, or OpenLiteSpeed; MySQL, MariaDB, or PostgreSQL.",
    },
    {
      icon: <Package className="w-6 h-6" />,
      title: "Docker Ready",
      desc:
        "Native Docker support for containerised apps and microservices.",
    },
    {
      icon: <Code className="w-6 h-6" />,
      title: "Multi-Language Runtimes",
      desc:
        "PHP, Node.js, Python, Go, Java — run whatever stack your project needs.",
    },
    {
      icon: <ShieldCheck className="w-6 h-6" />,
      title: "Built-in Firewall",
      desc:
        "Granular port, IP, and URL firewall rules managed from the aaPanel UI.",
    },
  ],
  faqs: [
    {
      q: "Why aaPanel instead of cPanel?",
      a: "aaPanel is free, open-source, and significantly lighter on system resources. Developers who want more control and lower costs often prefer it over commercial panels.",
    },
    {
      q: "Do I need Linux experience to use aaPanel?",
      a: "Basic familiarity with Linux helps, but aaPanel's web UI covers 95% of day-to-day tasks. Our support team can help you with the rest.",
    },
    {
      q: "Can I run Node.js / Python / Go on aaPanel?",
      a: "Absolutely — aaPanel has one-click installers for Node.js, Python, Go, Java and more, each manageable from the panel UI.",
    },
    {
      q: "Is aaPanel secure?",
      a: "Yes. All aaPanel plans include an auto-updated OS firewall, Fail2Ban, and daily security patches applied by our ops team.",
    },
  ],
};

export default function AAPanelHosting() {
  return <HostingPlanDetail config={config} />;
}