export type AILabMetric = {
  value: string;
  label: string;
  detail: string;
};

export type AILabExample = {
  industry: string;
  title: string;
  prompt: string;
  outcome: string;
};

export type AILabWorkflowStep = {
  step: string;
  title: string;
  summary: string;
};

export type AILabApiExample = {
  title: string;
  endpoint: string;
  request: string;
  response: string;
};

export const aiLabHero = {
  eyebrow: "Section 08 / AI Lab",
  title: "Private corpora, cited answers, and European infrastructure dressed like a cover story.",
  lede:
    "The AI Lab is not a pitch deck about intelligence in the abstract. It is a source-backed product desk built around CorpusAI, Blue Note Logic services, and the practical mechanics of turning company knowledge into something searchable, citable, and ultimately ownable.",
  note:
    "All product details below are paraphrased from official Blue Note Logic and CorpusAI pages. The visuals are newly made for this site.",
};

export const aiLabMetrics: AILabMetric[] = [
  {
    value: "1,100+",
    label: "Do Better Norge demo docs",
    detail:
      "The public demo corpus is described as a Norwegian legal intelligence stack with ECHR case law, Norwegian statutes, EU regulations, and more.",
  },
  {
    value: "4,754",
    label: "Family law corpus docs",
    detail:
      "The free Norwegian Family Law corpus is presented as 4,754 documents, including 773 court decisions plus statutes and ECHR material.",
  },
  {
    value: "3",
    label: "Dedicated EU servers",
    detail:
      "The official infrastructure page describes three dedicated cloud servers in Hetzner locations across Helsinki and Nuremberg.",
  },
  {
    value: "72B",
    label: "Flagship reasoning model",
    detail:
      "The platform lists a 72B tier for reasoning and legal analysis, alongside 32B, 27B, and 768d embedding layers.",
  },
];

export const aiLabExamples: AILabExample[] = [
  {
    industry: "Law Firms & Advocacy",
    title: "Legal answers with citations, not vibes",
    prompt:
      "What precedent exists for Article 8 violations in Norwegian child welfare cases?",
    outcome:
      "The official site frames this as a cited answer returned in seconds from dozens of relevant legal documents rather than hours of manual research.",
  },
  {
    industry: "Construction & Trades",
    title: "On-site code lookup",
    prompt:
      "What's the minimum fire separation between residential units in TEK17?",
    outcome:
      "Blue Note Logic uses this as a construction example: building codes, safety regulations, manuals, and project specs become searchable from the field.",
  },
  {
    industry: "Healthcare & Clinics",
    title: "Protocols without hallway bottlenecks",
    prompt:
      "What's our protocol for patients presenting with chest pain after hours?",
    outcome:
      "The healthcare example positions CorpusAI as a way to retrieve patient-facing and compliance guidance without interrupting senior staff every time.",
  },
  {
    industry: "Accounting & Finance",
    title: "Junior staff with better footing",
    prompt:
      "What's the depreciation schedule for commercial vehicles under Norwegian tax law?",
    outcome:
      "The finance example is framed as expert-level answers during tax season, grounded in Skatteloven references, templates, and internal procedures.",
  },
];

export const aiLabWorkflow: AILabWorkflowStep[] = [
  {
    step: "01",
    title: "Upload the document reality",
    summary:
      "PDFs, Word files, internal policies, contracts, manuals, FAQs, and web pages go in first. The product language is clear: drag, drop, done.",
  },
  {
    step: "02",
    title: "Index the knowledge, not just the files",
    summary:
      "Blue Note Logic describes ingesting, cleaning, chunking, embedding, and in some cases scraping documents so the corpus stays current rather than fossilized.",
  },
  {
    step: "03",
    title: "Ask plain-language questions",
    summary:
      "The answer layer is grounded in your documents and returns with citations, which is the core difference between a corpus system and generic AI theatre.",
  },
  {
    step: "04",
    title: "Integrate into the workflow",
    summary:
      "The official site explicitly mentions website widgets, Slack, internal portals, and API access as ways to make the system operational instead of ornamental.",
  },
];

export const aiLabApiExamples: AILabApiExample[] = [
  {
    title: "Chat endpoint",
    endpoint: "POST /api/v2/chat.php",
    request: `{
  "message": "What is our return policy?",
  "use_corpus": true
}`,
    response: `{
  "answer": "Your return policy states...",
  "model": "qwen2.5:72b",
  "sources": ["returns-policy.pdf", "faq.html"],
  "response_time_ms": 1840
}`,
  },
  {
    title: "Search endpoint",
    endpoint: "POST /api/v2/search.php",
    request: `{
  "query": "fire safety regulations",
  "top_k": 5
}`,
    response: `{
  "results": [
    { "title": "TEK17 Chapter 11", "score": 0.94 },
    { "title": "Fire Safety Manual", "score": 0.87 }
  ]
}`,
  },
];

export const aiLabInfraNotes = [
  "100 percent EU and EEA hosting",
  "No third-party API calls in the official infrastructure pitch",
  "WireGuard-encrypted mesh between nodes",
  "Tenant isolation framed as cryptographic ownership of the corpus",
];

export const aiLabVisuals = {
  hero: "/images/ai-lab/hero-lab.svg",
  corpus: "/images/ai-lab/corpus-grid.svg",
  api: "/images/ai-lab/api-flow.svg",
};

export const aiLabDetailedSources = [
  {
    label: "CorpusAI homepage",
    href: "https://ai.bluenotelogic.com/",
    note:
      "Used for the live demo corpus, real-use-case examples, infrastructure notes, and REST API examples.",
  },
  {
    label: "Blue Note Logic / Corporate Memory Extraction",
    href: "https://bluenotelogic.com/service.php?slug=corporate-memory-extraction",
    note:
      "Used for the sovereign model trajectory, isolated telemetry, and the service framing around owned corporate memory.",
  },
  {
    label: "Blue Note Logic / Document Intelligence Consulting",
    href: "https://bluenotelogic.com/service.php?slug=document-intelligence-consulting",
    note:
      "Used for the consulting and implementation layer around private document intelligence.",
  },
];
