import { Helmet } from "react-helmet-async";
import { Link } from "react-router-dom";
import { ArrowRight, CheckCircle2 } from "lucide-react";
import { Layout } from "@/components/layout/Layout";
import { Section } from "@/components/ui/Section";
import { SEOHead } from "@/components/SEOHead";
import { PdfGuideSection } from "@/components/massa-event/PdfGuideSection";
import { useForceLanguage } from "@/hooks/useForceLanguage";
import guideCover from "@/assets/guides/experience-advantage-cover.jpg";

const SV_PATH = "/the-experience-advantage";
const EN_PATH = "/en/the-experience-advantage";
const OG_IMAGE = "/assets/guides/experience-advantage-cover.jpg";

type Lang = "sv" | "en";

const faqSv = [
  {
    q: "Vad handlar The Experience Advantage om?",
    a: "Guiden beskriver hur hologram, AI, XR/VR och interaktiva installationer kan användas på mässor och event för att skapa uppmärksamhet, deltagande och samtal som leder vidare till affär. Den utgår från praktiska erfarenheter från genomförda produktioner och installationer.",
  },
  {
    q: "Är guiden relevant för mindre event och mässmontrar?",
    a: "Ja. Principerna är desamma oavsett storlek: tydligt mål, ett innehåll som är värt att stanna för och en plan för hur samtalet fångas upp. Guiden innehåller exempel som fungerar även på begränsad yta och med mindre budget.",
  },
  {
    q: "Vilken teknik passar bäst för en mässa eller aktivering?",
    a: "Det beror på vilket resultat ni vill uppnå. Hologram används oftast för synlighet och lanseringar, AI och interaktiva installationer för dialog och deltagande, och VR/XR för att förklara komplexa produkter eller låta besökare uppleva miljöer på plats. Guiden innehåller en modell för att välja utifrån mål och målgrupp.",
  },
  {
    q: "Kostar det något att ladda ner guiden?",
    a: "Nej. Guiden är kostnadsfri. Du anger din e-postadress och får den skickad direkt till dig.",
  },
  {
    q: "Behöver jag anmäla mig till ett nyhetsbrev?",
    a: "Nej. Du registreras inte automatiskt för något nyhetsbrev. Vi använder e-postadressen för att skicka guiden och för eventuell uppföljning kopplad till din förfrågan.",
  },
  {
    q: "Kan Suteki Studios hjälpa till efter att jag har läst guiden?",
    a: "Ja. Vi arbetar med hela kedjan – från mål och koncept till innehåll, teknik, installation och drift på plats. Boka gärna ett första samtal så går vi igenom era förutsättningar.",
  },
];

const faqEn = [
  {
    q: "What is The Experience Advantage about?",
    a: "The guide explains how holograms, AI, XR/VR and interactive installations are used at trade shows and events to create attention, participation and conversations that lead to business. It is based on practical experience from delivered productions and installations.",
  },
  {
    q: "Is the guide relevant for smaller events and booths?",
    a: "Yes. The principles are the same at any scale: a clear objective, content worth stopping for, and a plan for capturing the conversation. The guide includes examples that work on limited floor space and with a smaller budget.",
  },
  {
    q: "Which technology works best for a trade show or activation?",
    a: "It depends on the outcome you want. Holograms are mostly used for visibility and launches, AI and interactive installations for dialogue and participation, and VR/XR to explain complex products or let visitors experience environments on site. The guide includes a model for choosing based on objective and audience.",
  },
  {
    q: "Does the guide cost anything?",
    a: "No. The guide is free. Enter your email address and we send it directly to you.",
  },
  {
    q: "Do I have to subscribe to a newsletter?",
    a: "No. You are not automatically subscribed to any newsletter. We use your email address to send the guide and for any follow-up related to your request.",
  },
  {
    q: "Can Suteki Studios help after I have read the guide?",
    a: "Yes. We work across the full chain — from objective and concept to content, technology, installation and on-site operation. Book a first call and we will go through your situation.",
  },
];

export default function ExperienceAdvantage({ lang = "sv" }: { lang?: Lang }) {
  useForceLanguage(lang);
  const isSv = lang === "sv";
  const faq = isSv ? faqSv : faqEn;
  const url = `https://sutekistudios.com${isSv ? SV_PATH : EN_PATH}`;

  const jsonLd = {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "WebPage",
        "@id": `${url}#webpage`,
        url,
        name: isSv
          ? "The Experience Advantage – guide till hologram, AI och XR för mässor och event"
          : "The Experience Advantage – field guide to holograms, AI and XR for trade shows and events",
        description: isSv
          ? "Kostnadsfri guide om hur hologram, AI, XR och interaktiv teknik kan skapa uppmärksamhet, deltagande och mätbara resultat på mässor och event."
          : "Free guide on how holograms, AI, XR and interactive technology create attention, participation and measurable results at trade shows and events.",
        inLanguage: isSv ? "sv-SE" : "en-US",
        primaryImageOfPage: `https://sutekistudios.com${OG_IMAGE}`,
        publisher: { "@id": "https://sutekistudios.com/#organization" },
      },
      {
        "@type": "Organization",
        "@id": "https://sutekistudios.com/#organization",
        name: "Suteki Studios Inc.",
        url: "https://sutekistudios.com",
        email: "hello@sutekistudios.com",
      },
      {
        "@type": "FAQPage",
        "@id": `${url}#faq`,
        mainEntity: faq.map((item) => ({
          "@type": "Question",
          name: item.q,
          acceptedAnswer: { "@type": "Answer", text: item.a },
        })),
      },
    ],
  };

  const inside = isSv
    ? [
        [
          "Hologram som drar uppmärksamhet i en mässmiljö",
          "Hur fysiska hologramformat fungerar i praktiken, vilka som syns på avstånd, vad de kräver av ljus och yta, och vilket innehåll som håller när besökaren står nära.",
        ],
        [
          "AI och interaktiva installationer som skapar deltagande",
          "När en interaktiv station eller ett AI-drivet gränssnitt får besökaren att agera i stället för att titta passivt – och när det bara blir en kö framför en skärm.",
        ],
        [
          "VR och XR för komplexa produkter, utbildning och miljöer",
          "Hur VR och XR används för att förklara maskiner, processer, anläggningar och utbildningsmoment som inte går att ta med till montern.",
        ],
        [
          "Från publikintresse till samtal, lead och uppföljning",
          "Hur ni bemannar, kvalificerar och fångar kontaktuppgifter utan att bryta upplevelsen, och hur uppföljningen planeras redan innan mässan.",
        ],
        [
          "En praktisk modell för att välja rätt teknik",
          "Ett arbetssätt där ni utgår från mål, målgrupp, yta och budget och landar i rätt kombination av teknik, innehåll och aktivering.",
        ],
      ]
    : [
        [
          "Holograms that earn attention on a busy show floor",
          "How physical hologram formats work in practice, which ones read from a distance, what they require in terms of light and floor space, and which content holds up when a visitor is standing close.",
        ],
        [
          "AI and interactive installations that create participation",
          "When an interactive station or an AI-driven interface makes a visitor act instead of watch — and when it just becomes a queue in front of a screen.",
        ],
        [
          "VR and XR for complex products, training and environments",
          "How VR and XR are used to explain machines, processes, facilities and training scenarios that cannot be brought into the booth.",
        ],
        [
          "From audience interest to conversation, lead and follow-up",
          "How to staff, qualify and capture contact details without breaking the experience, and how follow-up is planned before the show even opens.",
        ],
        [
          "A practical model for choosing the right technology",
          "A method that starts from objective, audience, floor space and budget and lands on the right combination of technology, content and activation.",
        ],
      ];

  return (
    <Layout>
      <SEOHead
        title={
          isSv
            ? "The Experience Advantage | Hologram, AI och XR för mässor & event | Suteki Studios"
            : "The Experience Advantage | Holograms, AI & XR for Trade Shows | Suteki Studios"
        }
        description={
          isSv
            ? "Ladda ner The Experience Advantage – en kostnadsfri guide om hur hologram, AI, XR och interaktiv teknik kan skapa uppmärksamhet, deltagande och mätbara resultat på mässor och event."
            : "Download The Experience Advantage – a free field guide on how holograms, AI, XR and interactive technology create attention, participation and measurable results at trade shows and events."
        }
        ogTitle={
          isSv
            ? "The Experience Advantage – guide till hologram, AI och XR"
            : "The Experience Advantage – field guide to holograms, AI and XR"
        }
        ogDescription={
          isSv
            ? "Praktiska insikter för varumärken, mässor och event."
            : "Practical insight for brands, trade shows and events."
        }
        ogImage={OG_IMAGE}
        ogImageAlt={
          isSv
            ? "Omslaget till fältguiden The Experience Advantage från Suteki Studios"
            : "Cover of the Suteki Studios field guide The Experience Advantage"
        }
        ogLocale={isSv ? "sv_SE" : "en_US"}
        forceLang={lang}
        hreflangOverrides={{ sv: SV_PATH, en: EN_PATH, xDefault: SV_PATH }}
      />
      <Helmet>
        <script type="application/ld+json">{JSON.stringify(jsonLd)}</script>
      </Helmet>

      {/* Hero */}
      <Section className="pt-32 md:pt-40">
        <div className="grid lg:grid-cols-12 gap-10 lg:gap-14 xl:gap-16 items-center">
          <div className="lg:col-span-7">
            <p className="section-label mb-5 text-accent tracking-[0.14em] text-xs sm:text-sm font-semibold">
              {isSv ? "KOSTNADSFRI FIELD GUIDE · 22 SIDOR" : "COMPLIMENTARY FIELD GUIDE · 22 PAGES"}
            </p>
            <h1 className="text-3xl sm:text-4xl md:text-[2.5rem] lg:text-[2.75rem] font-semibold text-foreground text-balance mb-6 leading-[1.28] tracking-tight max-w-[22ch]">
              {isSv
                ? "The Experience Advantage – guide till hologram, AI och XR för mässor och event"
                : "The Experience Advantage – field guide to holograms, AI and XR for trade shows and events"}
            </h1>
            <p className="text-lg text-muted-foreground leading-relaxed mb-8 max-w-xl">
              {isSv
                ? "En researchbaserad guide för dig som vill använda teknik för att skapa uppmärksamhet, engagemang och verkliga affärsmöjligheter på mässor och event."
                : "A research-backed guide for teams who want to use technology to create attention, engagement and real business opportunities at trade shows and events."}
            </p>
            <div id="ladda-ner" className="scroll-mt-28 rounded-2xl border border-border bg-background p-6 sm:p-8">
              <PdfGuideSection lang={lang} variant="bare" />
            </div>
          </div>
          <div className="order-first lg:order-last lg:col-span-5">
            <img
              src={guideCover}
              alt={
                isSv
                  ? "Omslaget till fältguiden The Experience Advantage från Suteki Studios"
                  : "Cover of the Suteki Studios field guide The Experience Advantage"
              }
              width={1200}
              height={912}
              className="w-full h-auto rounded-2xl"
            />
          </div>
        </div>
      </Section>

      {/* Why */}
      <Section className="section-beige">
        <div className="max-w-3xl">
          <h2 className="text-2xl sm:text-3xl md:text-4xl font-semibold text-foreground mb-6">
            {isSv
              ? "Varför upplevelseteknik spelar roll på mässor och event"
              : "Why experiential technology matters at trade shows and events"}
          </h2>
          <div className="space-y-5 text-base sm:text-lg text-muted-foreground leading-relaxed">
            {isSv ? (
              <>
                <p>
                  På en mässa konkurrerar ni sällan med era konkurrenters produkter först. Ni konkurrerar med
                  tid och uppmärksamhet. Besökaren har ett schema, ett antal möten och ett par timmar kvar i
                  benen. Det som avgör om ni får ett samtal är om något får personen att stanna, förstå värdet
                  snabbt och vilja veta mer.
                </p>
                <p>
                  Upplevelseteknik löser inte det problemet i sig. Ett hologram som visar en generisk
                  varumärkesfilm drar blickar i tio sekunder och sedan går besökaren vidare. Det som fungerar
                  är när tekniken bär ett innehåll som är relevant för just den publiken: en produkt som är
                  svår att ta med till mässan, ett förlopp som är omöjligt att visa i verkligheten, eller en
                  fråga som besökaren själv får ställa och få svar på.
                </p>
                <p>
                  Vi ser hologram, interaktiva installationer, AI och VR/XR som olika verktyg med olika
                  styrkor. Hologram och stora visuella format skapar stoppkraft på håll. Interaktiva
                  installationer och AI-drivna gränssnitt gör besökaren till deltagare i stället för åskådare.
                  VR och XR förklarar det som annars kräver en fabriksvisning, en operationssal eller en
                  färdig byggnad.
                </p>
                <p>
                  Måttstocken bör vara densamma oavsett teknik: hur många stannade, hur många deltog, hur
                  många samtal blev till en kvalificerad kontakt och hur många av dem gick vidare efter
                  mässan. Guiden är skriven utifrån den kedjan.
                </p>
              </>
            ) : (
              <>
                <p>
                  At a trade show you rarely compete with your competitors' products first. You compete for
                  time and attention. The visitor has a schedule, a set of meetings and a couple of hours left
                  in their legs. What decides whether you get a conversation is whether something makes them
                  stop, understand the value quickly and want to know more.
                </p>
                <p>
                  Experiential technology does not solve that problem on its own. A hologram showing a generic
                  brand film draws eyes for ten seconds and then the visitor moves on. What works is when the
                  technology carries content that is relevant to that specific audience: a product that is hard
                  to bring to the show, a process that is impossible to show in reality, or a question the
                  visitor gets to ask and have answered.
                </p>
                <p>
                  We treat holograms, interactive installations, AI and VR/XR as different tools with different
                  strengths. Holograms and large visual formats create stopping power from a distance.
                  Interactive installations and AI-driven interfaces turn the visitor into a participant rather
                  than a spectator. VR and XR explain what would otherwise require a factory tour, an operating
                  room or a finished building.
                </p>
                <p>
                  The measure should be the same regardless of technology: how many stopped, how many took
                  part, how many conversations became a qualified contact and how many of those moved forward
                  after the show. The guide is written around that chain.
                </p>
              </>
            )}
          </div>
        </div>
      </Section>

      {/* What's inside */}
      <Section>
        <div className="max-w-3xl">
          <h2 className="text-2xl sm:text-3xl md:text-4xl font-semibold text-foreground mb-8">
            {isSv ? "Det här får du i guiden" : "What you get in the guide"}
          </h2>
          <ul className="space-y-6">
            {inside.map(([title, body]) => (
              <li key={title} className="flex gap-4">
                <CheckCircle2 className="h-5 w-5 shrink-0 mt-1 text-accent" aria-hidden="true" />
                <div>
                  <h3 className="text-lg font-semibold text-foreground mb-1">{title}</h3>
                  <p className="text-base text-muted-foreground leading-relaxed">{body}</p>
                </div>
              </li>
            ))}
          </ul>
        </div>
      </Section>

      {/* When */}
      <Section className="section-beige">
        <div className="max-w-3xl">
          <h2 className="text-2xl sm:text-3xl md:text-4xl font-semibold text-foreground mb-6">
            {isSv ? "När passar hologram, AI, VR och XR?" : "When do holograms, AI, VR and XR fit?"}
          </h2>
          <p className="text-base sm:text-lg text-muted-foreground leading-relaxed mb-8">
            {isSv
              ? "Rätt val börjar alltid med det resultat ni vill ha, inte med tekniken. Först när målet är tydligt går det att avgöra vilket format som bär innehållet bäst."
              : "The right choice always starts with the outcome you want, not with the technology. Only once the objective is clear can you decide which format carries the content best."}
          </p>

          <div className="space-y-8">
            <div>
              <h3 className="text-xl font-semibold text-foreground mb-2">
                {isSv
                  ? "Hologram för synlighet, lanseringar och uppmärksamhet"
                  : "Holograms for visibility, launches and attention"}
              </h3>
              <p className="text-base text-muted-foreground leading-relaxed">
                {isSv ? (
                  <>
                    Hologramformat fungerar bäst när ni behöver synas i en rörig miljö eller visa en produkt
                    som inte finns på plats – en ny modell, en maskin, en byggnad eller ett koncept. Läs mer om
                    våra{" "}
                    <Link to="/hologramlosningar" className="underline underline-offset-4 hover:text-accent">
                      hologramlösningar
                    </Link>{" "}
                    och möjligheten att{" "}
                    <Link to="/hyr-hologram" className="underline underline-offset-4 hover:text-accent">
                      hyra hologram till ett event
                    </Link>
                    .
                  </>
                ) : (
                  <>
                    Hologram formats work best when you need to stand out in a crowded environment or show a
                    product that is not physically present — a new model, a machine, a building or a concept.
                    Read more about our{" "}
                    <Link to="/hologram" className="underline underline-offset-4 hover:text-accent">
                      hologram solutions
                    </Link>{" "}
                    and the option to{" "}
                    <Link to="/en/rent-hologram" className="underline underline-offset-4 hover:text-accent">
                      rent a hologram for an event
                    </Link>
                    .
                  </>
                )}
              </p>
            </div>
            <div>
              <h3 className="text-xl font-semibold text-foreground mb-2">
                {isSv
                  ? "AI och interaktiva installationer för dialog och deltagande"
                  : "AI and interactive installations for dialogue and participation"}
              </h3>
              <p className="text-base text-muted-foreground leading-relaxed">
                {isSv ? (
                  <>
                    AI-drivna gränssnitt kan svara på besökarens egna frågor, guida till rätt produkt och
                    avlasta montervärdarna när trycket är högt. Se våra{" "}
                    <Link to="/ai-losningar" className="underline underline-offset-4 hover:text-accent">
                      AI-lösningar
                    </Link>{" "}
                    för hur det ser ut i praktiken.
                  </>
                ) : (
                  <>
                    AI-driven interfaces answer the visitor's own questions, guide them to the right product and
                    take pressure off booth staff at peak hours. See our{" "}
                    <Link to="/ai" className="underline underline-offset-4 hover:text-accent">
                      AI solutions
                    </Link>{" "}
                    for what that looks like in practice.
                  </>
                )}
              </p>
            </div>
            <div>
              <h3 className="text-xl font-semibold text-foreground mb-2">
                {isSv
                  ? "VR och XR för produktförståelse, träning och visualisering"
                  : "VR and XR for product understanding, training and visualisation"}
              </h3>
              <p className="text-base text-muted-foreground leading-relaxed">
                {isSv ? (
                  <>
                    VR passar när något ska förstås genom att upplevas: en process, en miljö, ett riskmoment
                    eller ett arbetsflöde. Läs mer om{" "}
                    <Link to="/vr-utbildning" className="underline underline-offset-4 hover:text-accent">
                      VR-utbildning
                    </Link>{" "}
                    och{" "}
                    <Link to="/massa-event" className="underline underline-offset-4 hover:text-accent">
                      vårt arbete med mässor och event
                    </Link>
                    .
                  </>
                ) : (
                  <>
                    VR fits when something has to be understood by being experienced: a process, an environment,
                    a risk scenario or a workflow. Read more about{" "}
                    <Link to="/vr" className="underline underline-offset-4 hover:text-accent">
                      VR training
                    </Link>{" "}
                    and{" "}
                    <Link to="/en/trade-show-events" className="underline underline-offset-4 hover:text-accent">
                      our work with trade shows and events
                    </Link>
                    .
                  </>
                )}
              </p>
            </div>
          </div>

          <div className="mt-10 border-t border-border pt-6 max-w-2xl">
            <p className="text-base text-muted-foreground">
              {isSv
                ? "Vill du diskutera en upplevelse för ert nästa event?"
                : "Want to discuss an experience for your next event?"}{" "}
              <Link
                to={isSv ? "/kontakt" : "/en/contact"}
                className="font-medium text-foreground underline underline-offset-4 hover:text-accent transition-colors"
              >
                {isSv ? "Boka ett första samtal →" : "Book an intro call →"}
              </Link>
            </p>
          </div>
        </div>
      </Section>

      {/* Audience */}
      <Section>
        <div className="max-w-3xl">
          <h2 className="text-2xl sm:text-3xl md:text-4xl font-semibold text-foreground mb-6">
            {isSv ? "För vem är guiden?" : "Who is the guide for?"}
          </h2>
          <div className="space-y-5 text-base sm:text-lg text-muted-foreground leading-relaxed">
            {isSv ? (
              <>
                <p>
                  Guiden är skriven för marknads- och eventansvariga, varumärkesteam, byråer och beslutsfattare
                  som ansvarar för hur företaget syns och möter kunder fysiskt. Den är också relevant för
                  verksamheter med komplexa produkter som är svåra att förklara med en broschyr eller en film.
                </p>
                <p>
                  Du har nytta av den oavsett om du planerar en mässmonter, ett kundevent, en produktlansering,
                  ett permanent showroom eller en utbildningsinsats där deltagarna behöver träna i en säker
                  miljö. Innehållet förutsätter ingen teknisk förkunskap.
                </p>
              </>
            ) : (
              <>
                <p>
                  The guide is written for marketing and event leads, brand teams, agencies and decision makers
                  responsible for how the company shows up and meets customers in physical settings. It is also
                  relevant for organisations with complex products that are hard to explain with a brochure or a
                  film.
                </p>
                <p>
                  It is useful whether you are planning a trade show booth, a customer event, a product launch, a
                  permanent showroom or a training programme where participants need to practise in a safe
                  environment. No technical background is required.
                </p>
              </>
            )}
          </div>
        </div>
      </Section>

      {/* From attention to business */}
      <Section className="section-beige">
        <div className="max-w-3xl">
          <h2 className="text-2xl sm:text-3xl md:text-4xl font-semibold text-foreground mb-6">
            {isSv ? "Från uppmärksamhet till affär" : "From attention to business"}
          </h2>
          <div className="space-y-5 text-base sm:text-lg text-muted-foreground leading-relaxed">
            {isSv ? (
              <>
                <p>
                  En aktivering som fungerar är planerad som en helhet. Målet styr publiken, publiken styr
                  innehållet, innehållet styr tekniken – och först därefter kommer plats, ljus, ljud och
                  montermaterial. Lika viktigt är det som händer runt installationen: hur många som bemannar,
                  vad de säger i de första tio sekunderna, hur kontaktuppgifter fångas och vem som följer upp
                  vilken dag.
                </p>
                <p>
                  Suteki Studios arbetar med hela den kedjan. Vi hjälper till med strategi och koncept, tar
                  fram innehållet, väljer och bygger tekniken, sköter installation på plats och finns med under
                  eventet. Efteråt går vi igenom utfallet tillsammans med er.
                </p>
              </>
            ) : (
              <>
                <p>
                  An activation that works is planned as a whole. The objective drives the audience, the audience
                  drives the content, the content drives the technology — and only then come location, light,
                  sound and booth build. What happens around the installation matters just as much: how many
                  people staff it, what they say in the first ten seconds, how contact details are captured and
                  who follows up on which day.
                </p>
                <p>
                  Suteki Studios works across that entire chain. We help with strategy and concept, produce the
                  content, select and build the technology, handle on-site installation and stay present during
                  the event. Afterwards we review the outcome together with you.
                </p>
              </>
            )}
          </div>
          <Link
            to={isSv ? "/kontakt" : "/contact"}
            className="mt-8 inline-flex items-center gap-2 rounded-full bg-accent px-7 py-4 text-base font-semibold text-accent-foreground transition-all duration-300 hover:-translate-y-0.5 hover:bg-accent/90"
          >
            {isSv
              ? "Boka ett första samtal om er nästa upplevelse"
              : "Book a first call about your next experience"}
            <ArrowRight className="h-4 w-4" aria-hidden="true" />
          </Link>
        </div>
      </Section>

      {/* FAQ */}
      <Section>
        <div className="max-w-3xl">
          <h2 className="text-2xl sm:text-3xl md:text-4xl font-semibold text-foreground mb-8">
            {isSv ? "Vanliga frågor" : "Frequently asked questions"}
          </h2>
          <dl className="space-y-8">
            {faq.map((item) => (
              <div key={item.q}>
                <dt className="text-lg font-semibold text-foreground mb-2">{item.q}</dt>
                <dd className="text-base text-muted-foreground leading-relaxed">{item.a}</dd>
              </div>
            ))}
          </dl>
          <p className="mt-10 text-base text-muted-foreground">
            <a href="#ladda-ner" className="font-medium text-accent underline underline-offset-4">
              {isSv
                ? "Hämta The Experience Advantage kostnadsfritt →"
                : "Get The Experience Advantage for free →"}
            </a>
          </p>
        </div>
      </Section>
    </Layout>
  );
}
