import { Language } from './types'

const translations = {
  de: {
    nav: {
      slides: 'Slides',
      fullscreen: 'Vollbild',
      language: 'Sprache',
    },
    slideNames: [
      'Cover',
      'Das Problem',
      'Die Loesung',
      'Produkte',
      'So funktioniert\'s',
      'Markt',
      'Geschaeftsmodell',
      'Traction',
      'Wettbewerb',
      'Team',
      'Technologie',
      'Finanzen',
      'The Ask',
      'KI Q&A',
      'Appendix',
      'Infrastruktur',
      'KI-Stack',
      'RAG Pipeline',
      'Sicherheit',
      'DevOps & CI/CD',
      'Agent Architektur',
      'Rechtsdokumente',
      'Compliance Workflow',
      '5 USPs',
      'Wettbewerbsvergleich',
      'Marktposition',
      'Roadmap 2027',
      'Roadmap 2028',
    ],
    cover: {
      tagline: 'Datensouveraenitaet meets KI-Compliance',
      subtitle: 'Seed  ·  2026-2027',
      cta: 'Pitch starten',
    },
    problem: {
      title: 'Das Problem',
      subtitle: 'Compliance-Komplexitaet ueberfordert den Mittelstand',
      cards: [
        {
          title: 'DSGVO',
          stat: '4.1 Mrd EUR',
          desc: 'Bussgelder seit 2018 in der EU. 83% der KMUs sind nicht vollstaendig konform.',
        },
        {
          title: 'AI Act',
          stat: 'Aug 2025',
          desc: 'Neue EU-Verordnung tritt in Kraft. Unternehmen muessen KI-Systeme klassifizieren und dokumentieren.',
        },
        {
          title: 'NIS2',
          stat: '30.000+',
          desc: 'Unternehmen in Deutschland neu betroffen. Cybersecurity-Anforderungen steigen massiv.',
        },
      ],
      quote: 'Unternehmen brauchen keine weiteren Compliance-Tools — sie brauchen eine KI, die Compliance fuer sie erledigt.',
    },
    solution: {
      title: 'Die Loesung',
      subtitle: 'ComplAI — Compliance auf Autopilot',
      pillars: [
        {
          title: 'Self-Hosted',
          desc: 'Eigene Hardware im Serverraum. Kein Byte verlaesst das Unternehmen. Volle Datensouveraenitaet.',
          icon: 'server',
        },
        {
          title: 'Auto-Compliance',
          desc: 'KI erledigt DSGVO, AI Act und NIS2 automatisch. Dokumentation, Audits und Updates — alles KI-gesteuert.',
          icon: 'shield',
        },
        {
          title: 'KI-Assistent',
          desc: 'Vollautonomer Kundensupport. Beantwortet Fragen, aendert Dokumente, bereitet Audits vor — 24/7.',
          icon: 'bot',
        },
      ],
    },
    product: {
      title: 'Unsere Produkte',
      subtitle: 'Drei Tiers fuer jede Unternehmensgroesse',
      monthly: '/Monat',
      hardware: 'Hardware',
      llm: 'KI-Modell',
      popular: 'Beliebt',
      features: 'Features',
    },
    howItWorks: {
      title: 'So funktioniert\'s',
      subtitle: 'In 4 Schritten zur vollstaendigen Compliance',
      steps: [
        {
          title: 'Hardware aufstellen',
          desc: 'Mac Mini oder Mac Studio im Serverraum anschliessen. Plug & Play — keine Cloud noetig.',
        },
        {
          title: 'KI konfigurieren',
          desc: 'Branche, Groesse und Regularien angeben. Die KI erstellt automatisch alle Compliance-Dokumente.',
        },
        {
          title: 'Compliance automatisieren',
          desc: 'Laufende Ueberwachung, automatische Updates bei Rechtsaenderungen und Audit-Vorbereitung.',
        },
        {
          title: 'Audit bestehen',
          desc: 'Vollstaendige Dokumentation auf Knopfdruck. Behoerdenanfragen werden KI-gestuetzt beantwortet.',
        },
      ],
    },
    market: {
      title: 'Marktchance',
      subtitle: 'Der Compliance-Markt waechst zweistellig',
      tam: 'TAM',
      sam: 'SAM',
      som: 'SOM',
      tamLabel: 'Total Addressable Market',
      samLabel: 'Serviceable Addressable Market',
      somLabel: 'Serviceable Obtainable Market',
      source: 'Quelle',
      growth: 'Wachstum p.a.',
    },
    businessModel: {
      title: 'Geschaeftsmodell',
      subtitle: 'Recurring Revenue mit Hardware-Moat',
      unitEconomics: 'Unit Economics',
      amortization: 'Amortisation',
      margin: 'Marge',
      months: 'Monate',
      recurringRevenue: 'Recurring Revenue',
      hardwareCost: 'Hardware-EK',
      operatingCost: 'Betriebskosten',
    },
    traction: {
      title: 'Traction & Meilensteine',
      subtitle: 'Unser bisheriger Fortschritt',
      completed: 'Abgeschlossen',
      inProgress: 'In Arbeit',
      planned: 'Geplant',
    },
    competition: {
      title: 'Wettbewerb',
      subtitle: 'Was uns differenziert',
      feature: 'Feature',
      selfHosted: 'Self-Hosted',
      integratedAI: 'Integrierte KI',
      autonomousSupport: 'Autonomer Support',
      yes: 'Ja',
      no: 'Nein',
      partial: 'Teilweise',
    },
    team: {
      title: 'Das Team',
      subtitle: 'Gruender mit Domain-Expertise',
      equity: 'Equity',
      expertise: 'Expertise',
    },
    technology: {
      title: 'Technologie-Roadmap',
      subtitle: 'Von MVP zu Full Autonomy — 5-Jahres-Technologieplan',
      timelineTitle: 'Meilensteine 2026-2030',
      stackTitle: 'Tech-Stack',
      phases: [
        {
          year: '2026',
          phase: 'Foundation & MVP',
          techs: ['Self-Hosted LLM (32B)', 'Apple M2 Mini', 'Basic Compliance SDK', 'OCR Pipeline'],
        },
        {
          year: '2027',
          phase: 'Product-Market Fit',
          techs: ['Multi-Model Router', 'RAG 2.0 mit Qdrant', 'Auto Compliance-Scan', 'Echtzeit-Monitoring'],
        },
        {
          year: '2028',
          phase: 'Enterprise Scale',
          techs: ['Federated Learning', 'Cluster-Management', 'API Marketplace', 'Multi-Tenant'],
        },
        {
          year: '2029',
          phase: 'AI Platform',
          techs: ['Custom Fine-Tuned (40B+)', 'Predictive Compliance', 'Auto-Audits', 'Partner-Integrationen'],
        },
        {
          year: '2030',
          phase: 'Full Autonomy',
          techs: ['Agent-Netzwerk', 'Self-Healing', 'Zero-Day Compliance', '1000B Parameter'],
        },
      ],
      layers: [
        { name: 'Application', techs: 'Next.js, React, TailwindCSS, REST/GraphQL API' },
        { name: 'AI/ML', techs: 'Qwen 32B → 1000B, RAG Pipeline, NLP, OCR (PaddleOCR)' },
        { name: 'Infrastructure', techs: 'Apple Silicon (M2/M4 Pro), Docker, Self-Hosted' },
        { name: 'Security', techs: 'BSI-TR-03161, E2E Verschluesselung, Vault' },
        { name: 'Data', techs: 'PostgreSQL + PostGIS, Qdrant (Vektoren), MinIO (S3)' },
      ],
    },
    financials: {
      title: 'Finanzprognose',
      subtitle: 'AI-First Kostenstruktur — skaliert ohne lineares Personalwachstum',
      revenue: 'Umsatz',
      costs: 'Kosten',
      customers: 'Kunden',
      mrr: 'MRR',
      arr: 'ARR',
      burnRate: 'Burn Rate',
      employees: 'Mitarbeiter',
      year: 'Jahr',
      sliderGrowth: 'Wachstumsrate',
      sliderChurn: 'Churn Rate',
      sliderArpu: 'ARPU',
      adjustAssumptions: 'Annahmen anpassen',
    },
    theAsk: {
      title: 'The Ask',
      subtitle: 'Gestaffelte Finanzierung 2026-2027',
      amount: 'Funding',
      instrument: 'Instrument',
      useOfFunds: 'Use of Funds',
      engineering: 'Engineering',
      sales: 'Vertrieb',
      hardware: 'Hardware',
      personnel: 'Personal',
      legal: 'Legal',
      reserve: 'Reserve',
      targetDate: 'Zeitraum',
    },
    aiqa: {
      title: 'Fragen? Die KI antwortet.',
      subtitle: 'Stellen Sie Ihre Investorenfragen — unser AI Agent antwortet mit Echtdaten.',
      placeholder: 'Stellen Sie eine Frage zum Investment...',
      send: 'Senden',
      thinking: 'Denke nach...',
      suggestions: [
        'Wie skaliert das Geschaeftsmodell?',
        'Was ist der unfaire Vorteil?',
        'Wie sieht die Exit-Strategie aus?',
        'Warum Self-Hosting statt Cloud?',
      ],
    },
  },
  en: {
    nav: {
      slides: 'Slides',
      fullscreen: 'Fullscreen',
      language: 'Language',
    },
    slideNames: [
      'Cover',
      'The Problem',
      'The Solution',
      'Products',
      'How It Works',
      'Market',
      'Business Model',
      'Traction',
      'Competition',
      'Team',
      'Technology',
      'Financials',
      'The Ask',
      'AI Q&A',
      'Appendix',
      'Infrastructure',
      'AI Stack',
      'RAG Pipeline',
      'Security',
      'DevOps & CI/CD',
      'Agent Architecture',
      'Legal Documents',
      'Compliance Workflow',
      '5 USPs',
      'Competitor Comparison',
      'Market Position',
      'Roadmap 2027',
      'Roadmap 2028',
    ],
    cover: {
      tagline: 'Data Sovereignty meets AI Compliance',
      subtitle: 'Seed  ·  2026-2027',
      cta: 'Start Pitch',
    },
    problem: {
      title: 'The Problem',
      subtitle: 'Compliance complexity overwhelms SMEs',
      cards: [
        {
          title: 'GDPR',
          stat: 'EUR 4.1B',
          desc: 'in fines since 2018 across the EU. 83% of SMEs are not fully compliant.',
        },
        {
          title: 'AI Act',
          stat: 'Aug 2025',
          desc: 'New EU regulation takes effect. Companies must classify and document AI systems.',
        },
        {
          title: 'NIS2',
          stat: '30,000+',
          desc: 'companies newly affected in Germany. Cybersecurity requirements increase massively.',
        },
      ],
      quote: 'Companies don\'t need more compliance tools — they need an AI that handles compliance for them.',
    },
    solution: {
      title: 'The Solution',
      subtitle: 'ComplAI — Compliance on Autopilot',
      pillars: [
        {
          title: 'Self-Hosted',
          desc: 'Own hardware in your server room. No data leaves the company. Full data sovereignty.',
          icon: 'server',
        },
        {
          title: 'Auto-Compliance',
          desc: 'AI handles GDPR, AI Act and NIS2 automatically. Documentation, audits and updates — all AI-powered.',
          icon: 'shield',
        },
        {
          title: 'AI Assistant',
          desc: 'Fully autonomous customer support. Answers questions, modifies documents, prepares audits — 24/7.',
          icon: 'bot',
        },
      ],
    },
    product: {
      title: 'Our Products',
      subtitle: 'Three tiers for every company size',
      monthly: '/month',
      hardware: 'Hardware',
      llm: 'AI Model',
      popular: 'Popular',
      features: 'Features',
    },
    howItWorks: {
      title: 'How It Works',
      subtitle: 'Full compliance in 4 steps',
      steps: [
        {
          title: 'Set Up Hardware',
          desc: 'Connect Mac Mini or Mac Studio in your server room. Plug & Play — no cloud needed.',
        },
        {
          title: 'Configure AI',
          desc: 'Specify industry, size, and regulations. The AI automatically creates all compliance documents.',
        },
        {
          title: 'Automate Compliance',
          desc: 'Continuous monitoring, automatic updates for regulatory changes and audit preparation.',
        },
        {
          title: 'Pass Audits',
          desc: 'Complete documentation at the push of a button. Authority inquiries answered AI-powered.',
        },
      ],
    },
    market: {
      title: 'Market Opportunity',
      subtitle: 'The compliance market grows double-digit',
      tam: 'TAM',
      sam: 'SAM',
      som: 'SOM',
      tamLabel: 'Total Addressable Market',
      samLabel: 'Serviceable Addressable Market',
      somLabel: 'Serviceable Obtainable Market',
      source: 'Source',
      growth: 'Growth p.a.',
    },
    businessModel: {
      title: 'Business Model',
      subtitle: 'Recurring Revenue with Hardware Moat',
      unitEconomics: 'Unit Economics',
      amortization: 'Amortization',
      margin: 'Margin',
      months: 'months',
      recurringRevenue: 'Recurring Revenue',
      hardwareCost: 'Hardware Cost',
      operatingCost: 'Operating Cost',
    },
    traction: {
      title: 'Traction & Milestones',
      subtitle: 'Our progress so far',
      completed: 'Completed',
      inProgress: 'In Progress',
      planned: 'Planned',
    },
    competition: {
      title: 'Competition',
      subtitle: 'What differentiates us',
      feature: 'Feature',
      selfHosted: 'Self-Hosted',
      integratedAI: 'Integrated AI',
      autonomousSupport: 'Autonomous Support',
      yes: 'Yes',
      no: 'No',
      partial: 'Partial',
    },
    team: {
      title: 'The Team',
      subtitle: 'Founders with domain expertise',
      equity: 'Equity',
      expertise: 'Expertise',
    },
    technology: {
      title: 'Technology Roadmap',
      subtitle: 'From MVP to Full Autonomy — 5-Year Technology Plan',
      timelineTitle: 'Milestones 2026-2030',
      stackTitle: 'Tech Stack',
      phases: [
        {
          year: '2026',
          phase: 'Foundation & MVP',
          techs: ['Self-Hosted LLM (32B)', 'Apple M2 Mini', 'Basic Compliance SDK', 'OCR Pipeline'],
        },
        {
          year: '2027',
          phase: 'Product-Market Fit',
          techs: ['Multi-Model Router', 'RAG 2.0 with Qdrant', 'Auto Compliance Scan', 'Real-time Monitoring'],
        },
        {
          year: '2028',
          phase: 'Enterprise Scale',
          techs: ['Federated Learning', 'Cluster Management', 'API Marketplace', 'Multi-Tenant'],
        },
        {
          year: '2029',
          phase: 'AI Platform',
          techs: ['Custom Fine-Tuned (40B+)', 'Predictive Compliance', 'Auto-Audits', 'Partner Integrations'],
        },
        {
          year: '2030',
          phase: 'Full Autonomy',
          techs: ['Agent Network', 'Self-Healing', 'Zero-Day Compliance', '1000B Parameters'],
        },
      ],
      layers: [
        { name: 'Application', techs: 'Next.js, React, TailwindCSS, REST/GraphQL API' },
        { name: 'AI/ML', techs: 'Qwen 32B → 1000B, RAG Pipeline, NLP, OCR (PaddleOCR)' },
        { name: 'Infrastructure', techs: 'Apple Silicon (M2/M4 Pro), Docker, Self-Hosted' },
        { name: 'Security', techs: 'BSI-TR-03161, E2E Encryption, Vault' },
        { name: 'Data', techs: 'PostgreSQL + PostGIS, Qdrant (Vectors), MinIO (S3)' },
      ],
    },
    financials: {
      title: 'Financial Projections',
      subtitle: 'AI-First cost structure — scales without linear headcount growth',
      revenue: 'Revenue',
      costs: 'Costs',
      customers: 'Customers',
      mrr: 'MRR',
      arr: 'ARR',
      burnRate: 'Burn Rate',
      employees: 'Employees',
      year: 'Year',
      sliderGrowth: 'Growth Rate',
      sliderChurn: 'Churn Rate',
      sliderArpu: 'ARPU',
      adjustAssumptions: 'Adjust Assumptions',
    },
    theAsk: {
      title: 'The Ask',
      subtitle: 'Staged Funding 2026-2027',
      amount: 'Funding',
      instrument: 'Instrument',
      useOfFunds: 'Use of Funds',
      engineering: 'Engineering',
      sales: 'Sales',
      hardware: 'Hardware',
      personnel: 'Personnel',
      legal: 'Legal',
      reserve: 'Reserve',
      targetDate: 'Timeline',
    },
    aiqa: {
      title: 'Questions? The AI answers.',
      subtitle: 'Ask your investor questions — our AI agent responds with real data.',
      placeholder: 'Ask a question about the investment...',
      send: 'Send',
      thinking: 'Thinking...',
      suggestions: [
        'How does the business model scale?',
        'What is the unfair advantage?',
        'What does the exit strategy look like?',
        'Why self-hosting instead of cloud?',
      ],
    },
  },
}

export function t(lang: Language): typeof translations.de {
  return translations[lang]
}

export function formatEur(value: number, lang: Language): string {
  if (value >= 1_000_000_000) {
    const v = (value / 1_000_000_000).toFixed(1)
    return lang === 'de' ? `${v} Mrd. EUR` : `EUR ${v}B`
  }
  if (value >= 1_000_000) {
    const v = (value / 1_000_000).toFixed(1)
    return lang === 'de' ? `${v} Mio. EUR` : `EUR ${v}M`
  }
  if (value >= 1_000) {
    const v = (value / 1_000).toFixed(0)
    return lang === 'de' ? `${v}k EUR` : `EUR ${v}k`
  }
  return lang === 'de' ? `${value} EUR` : `EUR ${value}`
}

export function formatNumber(value: number): string {
  return new Intl.NumberFormat('de-DE').format(value)
}

export default translations
