/**
 * CPanelHosting.tsx — dedicated landing page for the cPanel shared plan.
 */
import {
  Server,
  Zap,
  ShieldCheck,
  HardDrive,
  Mail,
  Globe,
  Database,
} from "lucide-react";
import HostingPlanDetail, {
  HostingPlanDetailConfig,
} from "./HostingPlanDetail";

const config: HostingPlanDetailConfig = {
  name: "cPanel Hosting",
  tagline: "The world's #1 control panel",
  heroTitle: "Powerful cPanel Hosting, made simple",
  heroDescription:
    "Launch your website on the industry-standard cPanel + WHM stack with LiteSpeed, free SSL, Softaculous 400+ apps, and daily off-site backups. Perfect for agencies, developers, and businesses who want the familiar cPanel experience.",
  accentColor: "#f97316",
  accentColorSoft: "#fff7ed",
  heroIcon: <Server className="w-7 h-7" />,
  externalUrl: "https://doiteasy.net/cpanel-page/",
  tiers: [
    {
      name: "Starter",
      price: "$2.99",
      cadence: "/mo",
      features: [
        "1 website",
        "10 GB NVMe storage",
        "Unlimited bandwidth",
        "10 email accounts",
        "Free SSL certificate",
      ],
      ctaLabel: "Get Starter",
    },
    {
      name: "Business",
      price: "$5.99",
      cadence: "/mo",
      highlight: true,
      features: [
        "Unlimited websites",
        "50 GB NVMe storage",
        "Unlimited bandwidth",
        "Unlimited email accounts",
        "Free domain for 1 year",
        "Daily off-site backups",
      ],
      ctaLabel: "Get Business",
    },
    {
      name: "Pro",
      price: "$9.99",
      cadence: "/mo",
      features: [
        "Unlimited websites",
        "100 GB NVMe storage",
        "Unlimited databases",
        "Priority support",
        "Dedicated IP",
        "Free CDN & malware scan",
      ],
      ctaLabel: "Get Pro",
    },
  ],
  features: [
    {
      icon: <Zap className="w-6 h-6" />,
      title: "LiteSpeed Web Server",
      desc:
        "Up to 9× faster than Apache for PHP workloads, with built-in page caching.",
    },
    {
      icon: <ShieldCheck className="w-6 h-6" />,
      title: "Free SSL & Imunify360",
      desc:
        "Every site gets an auto-renewing SSL and enterprise-grade malware protection.",
    },
    {
      icon: <HardDrive className="w-6 h-6" />,
      title: "Softaculous 400+ Apps",
      desc:
        "One-click install for WordPress, Joomla, Drupal, Magento and more.",
    },
    {
      icon: <Mail className="w-6 h-6" />,
      title: "Unlimited Email",
      desc:
        "Mailboxes on your own domain, with spam filtering and webmail access.",
    },
    {
      icon: <Globe className="w-6 h-6" />,
      title: "Free CDN & DNS",
      desc:
        "Global edge CDN and high-availability DNS to keep your site fast worldwide.",
    },
    {
      icon: <Database className="w-6 h-6" />,
      title: "Daily Backups",
      desc:
        "Off-site snapshots every 24 hours with 1-click restore from cPanel.",
    },
  ],
  faqs: [
    {
      q: "Can I migrate my existing cPanel site for free?",
      a: "Yes. Our support team will migrate any cPanel account (accounts, databases, emails, DNS) to DoItEasy at no cost, usually within 24 hours.",
    },
    {
      q: "Do you offer WHM for resellers?",
      a: "Yes. Our Pro plan and our Reseller add-on both include WHM access so you can create and manage sub-accounts for your own clients.",
    },
    {
      q: "Is there a money-back guarantee?",
      a: "All shared hosting plans come with a 30-day money-back guarantee — no questions asked.",
    },
    {
      q: "What PHP versions are supported?",
      a: "We support PHP 7.4, 8.0, 8.1, 8.2, and 8.3. You can switch versions per-domain directly from cPanel.",
    },
  ],
};

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