import type { Metadata } from "next";
import Link from "next/link";
import { FaqAccordion } from "@/components/FaqAccordion";
import type { Faq } from "@/lib/content";
import { site } from "@/lib/site";

const description = `Questions and answers about how ${site.name} works and what it protects.`;

export const metadata: Metadata = {
  title: "FAQ",
  description,
  openGraph: { title: `FAQ | ${site.name}`, description },
  twitter: { title: `FAQ | ${site.name}`, description },
};

const faqItems: readonly Faq[] = [
  {
    q: `What is ${site.name}?`,
    a: "It is an AI-based antivirus solution that aims to simplify security protection by making it transparent and easy to understand. It provides a combination of security detection, contextualization, and user control.",
  },
  {
    q: `What does ${site.name} leverage AI for?`,
    a: `${site.name} uses AI to interpret security insights and contextualize complex findings to make them understandable. AI assistance makes antivirus protection more intelligent and smarter than ever.`,
  },
  {
    q: `What operating system does ${site.name} support?`,
    a: `${site.name} is tailored for the Windows 11 operating system, with the entire experience based on how users interact with their PCs regularly.`,
  },
  {
    q: `How does ${site.name} treat suspicious files?`,
    a: "Items that are found to be suspicious can be presented along with all relevant security details. The concept of this product also involves quarantining and managing suspicious items.",
  },
  {
    q: `Is ${site.name} gathering my personal data?`,
    a: `Information that is provided by users themselves on the ${site.name} website/app, like the e-mail address entered when filling out forms, is gathered. Information about users' behavior on the website might be gathered using cookies and similar tools. For more details, see the Privacy Policy and Cookie Policy.`,
  },
  {
    q: `Is it possible to review what ${site.name} detects?`,
    a: `Yes. ${site.name} is built in such a way that it can help provide valuable context on security incidents, making it easy for users to review detections rather than showing them technical data without any explanation.`,
  },
  {
    q: `Does ${site.name} run as a background application?`,
    a: `Yes. ${site.name} runs seamlessly with normal Windows operation, so that your security experience remains smooth and free from any distractions.`,
  },
];

export default function FaqPage() {
  return (
    <section className="section" id="faq">
      <div className="container">
        <div className="row g-4 g-lg-5">
          <div className="col-12">
            <div className="sticky-head">
              <p className="kicker">
                <span className="num">01</span>FAQs
              </p>
              <h2>
                Questions, Answered <em>Simply</em>
              </h2>
              <p className="split-lead">
                Got more questions? <Link href="/support">Contact our team</Link>.
              </p>
            </div>
          </div>
          <div className="col-12">
            <FaqAccordion items={faqItems} />
          </div>
        </div>
      </div>
    </section>
  );
}
