import type { Metadata } from "next"
import Link from "next/link"

export function generateMetadata(): Metadata {
  return {
    title: "About",
    description:
      "Parallax is an independent geopolitical intelligence publication. Factual, neutral, visual, systematic.",
    openGraph: {
      type: "website",
      title: "About",
      description:
        "Parallax is an independent geopolitical intelligence publication. Factual, neutral, visual, systematic.",
    },
  }
}

const principles = [
  {
    number: "01",
    title: "Factual",
    body: "We rely on verified data, primary sources, and established research. No speculation presented as fact. No anonymous claims.",
  },
  {
    number: "02",
    title: "Neutral",
    body: "We do not take political sides. We explain what is happening and why — the strategic logic behind every actor's decisions, without moral cheerleading.",
  },
  {
    number: "03",
    title: "Visual",
    body: "Complex geopolitical dynamics are made clear through charts, maps, and data boards. We believe a well-designed graphic often explains more than a thousand words.",
  },
  {
    number: "04",
    title: "Systematic",
    body: "Every report follows a consistent analytical framework: context, actors, interests, leverage, and outcome. Readers always know where they stand in the analysis.",
  },
]

const coverage = [
  "Global Politics",
  "World Economy",
  "Tech & Military",
  "Energy",
  "Middle East",
  "Europe",
  "Asia",
  "Africa & Americas",
]

export default function AboutPage() {
  return (
    <main className="min-h-screen bg-[var(--color-bg)]">
      <section className="mx-auto max-w-[860px] px-6 pb-16 pt-32">
        <p className="text-[11px] font-semibold uppercase tracking-widest text-[var(--color-accent)]">
          ABOUT PARALLAX
        </p>
        <h1 className="mt-3 font-serif text-[clamp(2.2rem,5vw,3.5rem)] font-normal leading-[1.2] text-[var(--color-text-primary)]">
          Geopolitics, without the noise.
        </h1>
        <div className="mt-6 space-y-6 text-base leading-[1.9] text-[var(--color-text-secondary)]">
          <p>
            Parallax is an independent geopolitical intelligence publication. We
            produce in-depth reports on global politics, economics, military
            affairs, and the forces that shape the world — without the noise,
            opinion, and agenda of mainstream media.
          </p>
          <p>
            Our name reflects our method. Parallax is the apparent shift in an
            object&apos;s position when viewed from different vantage points. We
            believe that understanding the world requires exactly that —
            stepping back, changing the angle, and seeing the full picture.
          </p>
          <p>
            Every report on Parallax is factual, visual, systematic, and
            politically neutral. We explain the mechanics of geopolitics — not
            the drama.
          </p>
        </div>
      </section>

      <section className="mx-auto max-w-[860px] border-t border-[var(--color-border)] px-6 pb-16 pt-4">
        <p className="mb-2 text-[11px] font-semibold uppercase tracking-widest text-[var(--color-accent)]">
          OUR PRINCIPLES
        </p>
        <h2 className="mb-10 font-serif text-3xl font-normal text-[var(--color-text-primary)]">
          How we work.
        </h2>
        <div className="grid gap-6 md:grid-cols-2">
          {principles.map((principle) => (
            <article
              key={principle.number}
              className="rounded-lg border border-[var(--color-border)] bg-[var(--color-surface)] p-6"
            >
              <p className="mb-3 text-[11px] font-semibold tracking-widest text-[var(--color-accent)]">
                {principle.number}
              </p>
              <h3 className="font-serif text-[19px] text-[var(--color-text-primary)]">
                {principle.title}
              </h3>
              <p className="mt-2 text-sm leading-[1.7] text-[var(--color-text-secondary)]">
                {principle.body}
              </p>
            </article>
          ))}
        </div>
      </section>

      <section className="mx-auto max-w-[860px] border-t border-[var(--color-border)] px-6 pb-16 pt-4">
        <p className="mb-2 text-[11px] font-semibold uppercase tracking-widest text-[var(--color-accent)]">
          COVERAGE
        </p>
        <h2 className="mb-6 font-serif text-3xl font-normal text-[var(--color-text-primary)]">
          What Parallax covers.
        </h2>
        <div className="grid gap-8 md:grid-cols-2">
          <div className="space-y-5 text-[15px] leading-[1.8] text-[var(--color-text-secondary)]">
            <p>
              Our reports span eight regions and five thematic domains: Global
              Politics, World Economy, Technology and Military Affairs, Energy,
              and International Relations.
            </p>
            <p>
              We cover ongoing conflicts, alliance structures, trade disputes,
              military capabilities, resource competition, and the domestic
              politics that drive foreign policy.
            </p>
            <p>
              Parallax Pro members receive weekly reports on current events —
              applied geopolitical analysis of what just happened and why it
              matters in the long run.
            </p>
          </div>
          <div>
            {coverage.map((item, index) => (
              <div
                key={item}
                className={[
                  "flex items-center gap-2 py-1.5 text-sm text-[var(--color-text-primary)]",
                  index === coverage.length - 1
                    ? ""
                    : "border-b border-[var(--color-border)]",
                ].join(" ")}
              >
                <span className="h-2 w-2 rounded-full bg-[var(--color-accent)]" />
                {item}
              </div>
            ))}
          </div>
        </div>
      </section>

      <section className="mx-auto max-w-[860px] border-t border-[var(--color-border)] px-6 pb-16 pt-4">
        <div className="rounded-xl bg-[var(--color-surface)] p-8 text-center">
          <p className="text-[11px] font-semibold uppercase tracking-widest text-[#7c3aed]">
            PARALLAX PRO
          </p>
          <h2 className="mt-3 font-serif text-3xl font-normal text-[var(--color-text-primary)]">
            Go deeper.
          </h2>
          <p className="mx-auto mt-3 max-w-[480px] text-[15px] leading-7 text-[var(--color-text-secondary)]">
            Pro members get weekly event analysis, interactive Data Boards,
            long-form Guides, and community access. Cancel anytime.
          </p>
          <div className="mt-6 flex flex-col items-center justify-center gap-3 sm:flex-row">
            <Link
              href="/pro"
              className="rounded bg-[var(--color-accent)] px-6 py-3 text-sm font-medium text-white transition hover:bg-[var(--color-accent-hover)]"
            >
              Explore Pro
            </Link>
            <Link
              href="/directory"
              className="rounded border border-[var(--color-border)] px-6 py-3 text-sm font-medium text-[var(--color-text-primary)] transition hover:border-[var(--color-accent)]"
            >
              Read a free report
            </Link>
          </div>
        </div>
      </section>

      <section className="mx-auto max-w-[860px] border-t border-[var(--color-border)] px-6 pb-20 pt-4">
        <p className="mb-2 text-[11px] font-semibold uppercase tracking-widest text-[var(--color-accent)]">
          CORRECTIONS
        </p>
        <h2 className="mb-6 font-serif text-3xl font-normal text-[var(--color-text-primary)]">
          Our corrections policy.
        </h2>
        <div className="space-y-5 text-[15px] leading-[1.8] text-[var(--color-text-secondary)]">
          <p>
            Parallax is committed to accuracy. If we publish an error —
            factual, statistical, or contextual — we correct it promptly and
            transparently. Corrections are noted at the top of the relevant
            report with the date of amendment.
          </p>
          <p>
            If you believe something we have published is inaccurate, please
            contact us. We investigate every credible correction request and
            respond within 72 hours.
          </p>
        </div>
        <p className="mt-5 text-sm text-[var(--color-text-secondary)]">
          Report an error:{" "}
          <a
            href="mailto:corrections@parallax.com"
            className="text-[var(--color-accent)] hover:underline"
          >
            corrections@parallax.com
          </a>
        </p>
        <Link
          href="/corrections"
          className="mt-3 inline-block text-sm text-[var(--color-accent)] hover:underline"
        >
          View corrections log →
        </Link>
      </section>
    </main>
  )
}
