Executive Code: Multilingual Corporate Analysis for the Technology Industry

import React, { useState, useCallback } from 'react';

import {

Brain, Building2, TrendingUp, Package, Users, Target, Download,

CheckCircle, Activity, Search, Play, ChevronDown, ChevronRight,

Shield, Zap, Star, AlertTriangle, ArrowRight, Clock, Award,

Database, FileText, BarChart3, DollarSign, AlertCircle, Globe,

BookOpen, Link, ExternalLink, Info

} from 'lucide-react';

import {

RadarChart, PolarGrid, PolarAngleAxis, PolarRadiusAxis, Radar,

ResponsiveContainer, Legend, Tooltip, LineChart, Line, XAxis, YAxis,

CartesianGrid, BarChart, Bar

} from 'recharts';

// ==========================================

// MULTI-LANGUAGE TRANSLATIONS

// ==========================================

const TRANSLATIONS = {

english: {

systemTitle: "GIDEON Unified Intelligence System",

systemSubtitle: "Strategic Analysis • Credit Risk • Buffett Framework",

version: "v4.0 Enhanced",

statsLine: "390 Questions • 4 Risk Models • 48 Years Wisdom",

tabs: {

overview: "Overview",

instructions: "Instructions",

dataSources: "Data Sources",

analysis: "Analysis",

results: "Results"

},

cards: {

fourester: {

title: "GIDEON Fourester",

description: "100-question strategic intelligence framework analyzing 7 critical dimensions",

corporate: "Corporate Governance",

market: "Market Analysis",

product: "Product Assessment"

},

credit: {

title: "Default Hunter Pro",

description: "4 advanced credit risk models for comprehensive default probability assessment"

},

buffett: {

title: "Buffett Framework",

description: "280 strategic questions from 48 years of Berkshire Hathaway letters",

tier1: "Critical (Tier 1)",

tier2: "Important (Tier 2)",

tier3: "Supporting (Tier 3)"

}

},

stats: {

totalQuestions: "Total Questions",

dimensions: "Analysis Dimensions",

riskModels: "Risk Models",

yearsWisdom: "Years of Wisdom"

},

instructions: {

title: "Report Generation Instructions",

howToRequest: "How to Request Reports from Claude",

structure: "Document Structure Requirements",

data: "Required Data Elements",

bottomLine: "Bottom Line Requirements",

titleFormat: "Title Format:",

mainSections: "Main Sections (Required Order):",

criticalRules: "⚠️ Critical Rules:",

financialMetrics: "Financial Metrics:",

strategicInfo: "Strategic Information:",

mandatoryFormat: "🔴 MANDATORY FORMAT:",

requiredElements: "Required Elements:"

},

dataSources: {

financial: "Financial Data Sources",

company: "Company Data Sources",

market: "Market Data Sources",

credit: "Credit Data Sources"

},

analysis: {

title: "Company Analysis Interface",

companyName: "Company Name",

companyPlaceholder: "Enter company name (e.g., Microsoft, Apple, Tesla)...",

analysisType: "Analysis Type",

types: {

comprehensive: { name: "Comprehensive", desc: "Full 390-question analysis" },

creditFocus: { name: "Credit Risk Focus", desc: "Emphasis on default probability" },

strategic: { name: "Strategic Only", desc: "GIDEON + Buffett framework" }

},

creditModels: "Credit Risk Models to Apply",

buffettSamples: "Sample Buffett Framework Questions",

runAnalysis: "Run Unified Analysis",

analyzing: "Analyzing"

},

progress: {

questions: "questions"

},

results: {

executiveBrief: "Executive Brief",

generated: "Generated",

overallScore: "Overall Score",

assessments: {

strategic: "Strategic Assessment",

corporate: "Corporate Assessment",

market: "Market Assessment",

product: "Product Assessment",

financial: "Financial Assessment"

},

radarTitle: "Strategic Assessment Radar",

creditRisk: "Credit Risk Assessment",

defaultProb: "Default Probability",

strategicOverview: "Strategic Overview",

consensusDefault: "Consensus Default Probability",

rating: "Rating",

exportBrief: "Export Complete Executive Brief",

exportSuccess: "Complete analysis exported to console. Check developer tools for full report."

},

footer: {

systemName: "GIDEON Unified Intelligence System v4.0",

tagline: "Combining Strategic Analysis • Credit Risk Assessment • Warren Buffett Wisdom",

stats: "390 Questions • 7 Dimensions • 4 Risk Models • 48 Years of Investment Wisdom"

},

selectLanguage: "Select Language"

},

spanish: {

systemTitle: "Sistema de Inteligencia Unificada GIDEON",

systemSubtitle: "Análisis Estratégico • Riesgo Crediticio • Marco Buffett",

version: "v4.0 Mejorado",

statsLine: "390 Preguntas • 4 Modelos de Riesgo • 48 Años de Sabiduría",

tabs: {

overview: "Resumen",

instructions: "Instrucciones",

dataSources: "Fuentes de Datos",

analysis: "Análisis",

results: "Resultados"

},

cards: {

fourester: {

title: "GIDEON Fourester",

description: "Marco de inteligencia estratégica de 100 preguntas analizando 7 dimensiones críticas",

corporate: "Gobierno Corporativo",

market: "Análisis de Mercado",

product: "Evaluación de Producto"

},

credit: {

title: "Cazador de Incumplimientos Pro",

description: "4 modelos avanzados de riesgo crediticio para evaluación integral de probabilidad de incumplimiento"

},

buffett: {

title: "Marco Buffett",

description: "280 preguntas estratégicas de 48 años de cartas de Berkshire Hathaway",

tier1: "Crítico (Nivel 1)",

tier2: "Importante (Nivel 2)",

tier3: "Apoyo (Nivel 3)"

}

},

stats: {

totalQuestions: "Preguntas Totales",

dimensions: "Dimensiones de Análisis",

riskModels: "Modelos de Riesgo",

yearsWisdom: "Años de Sabiduría"

},

instructions: {

title: "Instrucciones de Generación de Informes",

howToRequest: "Cómo Solicitar Informes a Claude",

structure: "Requisitos de Estructura del Documento",

data: "Elementos de Datos Requeridos",

bottomLine: "Requisitos de Línea Final",

titleFormat: "Formato del Título:",

mainSections: "Secciones Principales (Orden Requerido):",

criticalRules: "⚠️ Reglas Críticas:",

financialMetrics: "Métricas Financieras:",

strategicInfo: "Información Estratégica:",

mandatoryFormat: "🔴 FORMATO OBLIGATORIO:",

requiredElements: "Elementos Requeridos:"

},

dataSources: {

financial: "Fuentes de Datos Financieros",

company: "Fuentes de Datos de Empresa",

market: "Fuentes de Datos de Mercado",

credit: "Fuentes de Datos de Crédito"

},

analysis: {

title: "Interfaz de Análisis de Empresa",

companyName: "Nombre de la Empresa",

companyPlaceholder: "Ingrese nombre de empresa (ej. Microsoft, Apple, Tesla)...",

analysisType: "Tipo de Análisis",

types: {

comprehensive: { name: "Integral", desc: "Análisis completo de 390 preguntas" },

creditFocus: { name: "Enfoque en Crédito", desc: "Énfasis en probabilidad de incumplimiento" },

strategic: { name: "Solo Estratégico", desc: "Marco GIDEON + Buffett" }

},

creditModels: "Modelos de Riesgo Crediticio a Aplicar",

buffettSamples: "Ejemplos de Preguntas del Marco Buffett",

runAnalysis: "Ejecutar Análisis Unificado",

analyzing: "Analizando"

},

progress: {

questions: "preguntas"

},

results: {

executiveBrief: "Informe Ejecutivo",

generated: "Generado",

overallScore: "Puntuación General",

assessments: {

strategic: "Evaluación Estratégica",

corporate: "Evaluación Corporativa",

market: "Evaluación de Mercado",

product: "Evaluación de Producto",

financial: "Evaluación Financiera"

},

radarTitle: "Radar de Evaluación Estratégica",

creditRisk: "Evaluación de Riesgo Crediticio",

defaultProb: "Probabilidad de Incumplimiento",

strategicOverview: "Resumen Estratégico",

consensusDefault: "Probabilidad de Incumplimiento Consensuada",

rating: "Calificación",

exportBrief: "Exportar Informe Ejecutivo Completo",

exportSuccess: "Análisis completo exportado a consola. Revise herramientas de desarrollador."

},

footer: {

systemName: "Sistema de Inteligencia Unificada GIDEON v4.0",

tagline: "Combinando Análisis Estratégico • Evaluación de Riesgo Crediticio • Sabiduría de Warren Buffett",

stats: "390 Preguntas • 7 Dimensiones • 4 Modelos de Riesgo • 48 Años de Sabiduría Inversora"

},

selectLanguage: "Seleccionar Idioma"

},

french: {

systemTitle: "Système d'Intelligence Unifiée GIDEON",

systemSubtitle: "Analyse Stratégique • Risque de Crédit • Cadre Buffett",

version: "v4.0 Amélioré",

statsLine: "390 Questions • 4 Modèles de Risque • 48 Ans de Sagesse",

tabs: {

overview: "Aperçu",

instructions: "Instructions",

dataSources: "Sources de Données",

analysis: "Analyse",

results: "Résultats"

},

cards: {

fourester: {

title: "GIDEON Fourester",

description: "Cadre d'intelligence stratégique de 100 questions analysant 7 dimensions critiques",

corporate: "Gouvernance d'Entreprise",

market: "Analyse de Marché",

product: "Évaluation de Produit"

},

credit: {

title: "Chasseur de Défauts Pro",

description: "4 modèles avancés de risque de crédit pour une évaluation complète de la probabilité de défaut"

},

buffett: {

title: "Cadre Buffett",

description: "280 questions stratégiques tirées de 48 ans de lettres de Berkshire Hathaway",

tier1: "Critique (Niveau 1)",

tier2: "Important (Niveau 2)",

tier3: "Support (Niveau 3)"

}

},

stats: {

totalQuestions: "Questions Totales",

dimensions: "Dimensions d'Analyse",

riskModels: "Modèles de Risque",

yearsWisdom: "Années de Sagesse"

},

instructions: {

title: "Instructions de Génération de Rapport",

howToRequest: "Comment Demander des Rapports à Claude",

structure: "Exigences de Structure du Document",

data: "Éléments de Données Requis",

bottomLine: "Exigences de Ligne de Fond",

titleFormat: "Format du Titre:",

mainSections: "Sections Principales (Ordre Requis):",

criticalRules: "⚠️ Règles Critiques:",

financialMetrics: "Métriques Financières:",

strategicInfo: "Informations Stratégiques:",

mandatoryFormat: "🔴 FORMAT OBLIGATOIRE:",

requiredElements: "Éléments Requis:"

},

dataSources: {

financial: "Sources de Données Financières",

company: "Sources de Données d'Entreprise",

market: "Sources de Données de Marché",

credit: "Sources de Données de Crédit"

},

analysis: {

title: "Interface d'Analyse d'Entreprise",

companyName: "Nom de l'Entreprise",

companyPlaceholder: "Entrez le nom de l'entreprise (ex. Microsoft, Apple, Tesla)...",

analysisType: "Type d'Analyse",

types: {

comprehensive: { name: "Complète", desc: "Analyse complète de 390 questions" },

creditFocus: { name: "Focus Crédit", desc: "Accent sur la probabilité de défaut" },

strategic: { name: "Stratégique Uniquement", desc: "Cadre GIDEON + Buffett" }

},

creditModels: "Modèles de Risque de Crédit à Appliquer",

buffettSamples: "Exemples de Questions du Cadre Buffett",

runAnalysis: "Lancer l'Analyse Unifiée",

analyzing: "Analyse en cours"

},

progress: {

questions: "questions"

},

results: {

executiveBrief: "Rapport Exécutif",

generated: "Généré",

overallScore: "Score Global",

assessments: {

strategic: "Évaluation Stratégique",

corporate: "Évaluation d'Entreprise",

market: "Évaluation de Marché",

product: "Évaluation de Produit",

financial: "Évaluation Financière"

},

radarTitle: "Radar d'Évaluation Stratégique",

creditRisk: "Évaluation du Risque de Crédit",

defaultProb: "Probabilité de Défaut",

strategicOverview: "Aperçu Stratégique",

consensusDefault: "Probabilité de Défaut Consensuelle",

rating: "Note",

exportBrief: "Exporter le Rapport Exécutif Complet",

exportSuccess: "Analyse complète exportée vers la console. Vérifiez les outils développeur."

},

footer: {

systemName: "Système d'Intelligence Unifiée GIDEON v4.0",

tagline: "Combinant Analyse Stratégique • Évaluation du Risque de Crédit • Sagesse de Warren Buffett",

stats: "380 Questions • 7 Dimensions • 4 Modèles de Risque • 48 Ans de Sagesse en Investissement"

},

selectLanguage: "Sélectionner la Langue"

},

portuguese: {

systemTitle: "Sistema de Inteligência Unificada GIDEON",

systemSubtitle: "Análise Estratégica • Risco de Crédito • Framework Buffett",

version: "v4.0 Aprimorado",

statsLine: "390 Perguntas • 4 Modelos de Risco • 48 Anos de Sabedoria",

tabs: {

overview: "Visão Geral",

instructions: "Instruções",

dataSources: "Fontes de Dados",

analysis: "Análise",

results: "Resultados"

},

cards: {

fourester: {

title: "GIDEON Fourester",

description: "Framework de inteligência estratégica de 100 perguntas analisando 7 dimensões críticas",

corporate: "Governança Corporativa",

market: "Análise de Mercado",

product: "Avaliação de Produto"

},

credit: {

title: "Caçador de Inadimplência Pro",

description: "4 modelos avançados de risco de crédito para avaliação abrangente de probabilidade de inadimplência"

},

buffett: {

title: "Framework Buffett",

description: "280 perguntas estratégicas de 48 anos de cartas da Berkshire Hathaway",

tier1: "Crítico (Nível 1)",

tier2: "Importante (Nível 2)",

tier3: "Suporte (Nível 3)"

}

},

stats: {

totalQuestions: "Perguntas Totais",

dimensions: "Dimensões de Análise",

riskModels: "Modelos de Risco",

yearsWisdom: "Anos de Sabedoria"

},

instructions: {

title: "Instruções de Geração de Relatório",

howToRequest: "Como Solicitar Relatórios ao Claude",

structure: "Requisitos de Estrutura do Documento",

data: "Elementos de Dados Necessários",

bottomLine: "Requisitos de Linha Final",

titleFormat: "Formato do Título:",

mainSections: "Seções Principais (Ordem Necessária):",

criticalRules: "⚠️ Regras Críticas:",

financialMetrics: "Métricas Financeiras:",

strategicInfo: "Informação Estratégica:",

mandatoryFormat: "🔴 FORMATO OBRIGATÓRIO:",

requiredElements: "Elementos Necessários:"

},

dataSources: {

financial: "Fontes de Dados Financeiros",

company: "Fontes de Dados da Empresa",

market: "Fontes de Dados de Mercado",

credit: "Fontes de Dados de Crédito"

},

analysis: {

title: "Interface de Análise da Empresa",

companyName: "Nome da Empresa",

companyPlaceholder: "Digite o nome da empresa (ex. Microsoft, Apple, Tesla)...",

analysisType: "Tipo de Análise",

types: {

comprehensive: { name: "Abrangente", desc: "Análise completa de 390 perguntas" },

creditFocus: { name: "Foco em Crédito", desc: "Ênfase na probabilidade de inadimplência" },

strategic: { name: "Apenas Estratégico", desc: "Framework GIDEON + Buffett" }

},

creditModels: "Modelos de Risco de Crédito a Aplicar",

buffettSamples: "Exemplos de Perguntas do Framework Buffett",

runAnalysis: "Executar Análise Unificada",

analyzing: "Analisando"

},

progress: {

questions: "perguntas"

},

results: {

executiveBrief: "Relatório Executivo",

generated: "Gerado",

overallScore: "Pontuação Geral",

assessments: {

strategic: "Avaliação Estratégica",

corporate: "Avaliação Corporativa",

market: "Avaliação de Mercado",

product: "Avaliação de Produto",

financial: "Avaliação Financeira"

},

radarTitle: "Radar de Avaliação Estratégica",

creditRisk: "Avaliação de Risco de Crédito",

defaultProb: "Probabilidade de Inadimplência",

strategicOverview: "Visão Estratégica",

consensusDefault: "Probabilidade de Inadimplência Consensual",

rating: "Classificação",

exportBrief: "Exportar Relatório Executivo Completo",

exportSuccess: "Análise completa exportada para o console. Verifique as ferramentas do desenvolvedor."

},

footer: {

systemName: "Sistema de Inteligência Unificada GIDEON v4.0",

tagline: "Combinando Análise Estratégica • Avaliação de Risco de Crédito • Sabedoria de Warren Buffett",

stats: "390 Perguntas • 7 Dimensões • 4 Modelos de Risco • 48 Anos de Sabedoria em Investimentos"

},

selectLanguage: "Selecionar Idioma"

},

hindi: {

systemTitle: "गिडियन एकीकृत बुद्धिमत्ता प्रणाली",

systemSubtitle: "रणनीतिक विश्लेषण • ऋण जोखिम • बफेट फ्रेमवर्क",

version: "v4.0 उन्नत",

statsLine: "390 प्रश्न • 4 जोखिम मॉडल • 48 वर्षों की बुद्धिमत्ता",

tabs: {

overview: "अवलोकन",

instructions: "निर्देश",

dataSources: "डेटा स्रोत",

analysis: "विश्लेषण",

results: "परिणाम"

},

cards: {

fourester: {

title: "गिडियन फोरस्टर",

description: "7 महत्वपूर्ण आयामों का विश्लेषण करने वाला 100-प्रश्न रणनीतिक बुद्धिमत्ता ढांचा",

corporate: "कॉर्पोरेट शासन",

market: "बाजार विश्लेषण",

product: "उत्पाद मूल्यांकन"

},

credit: {

title: "डिफॉल्ट हंटर प्रो",

description: "व्यापक डिफॉल्ट संभावना मूल्यांकन के लिए 4 उन्नत ऋण जोखिम मॉडल"

},

buffett: {

title: "बफेट फ्रेमवर्क",

description: "बर्कशायर हैथवे के 48 वर्षों के पत्रों से 280 रणनीतिक प्रश्न",

tier1: "महत्वपूर्ण (स्तर 1)",

tier2: "जरूरी (स्तर 2)",

tier3: "सहायक (स्तर 3)"

}

},

stats: {

totalQuestions: "कुल प्रश्न",

dimensions: "विश्लेषण आयाम",

riskModels: "जोखिम मॉडल",

yearsWisdom: "वर्षों की बुद्धिमत्ता"

},

instructions: {

title: "रिपोर्ट जनरेशन निर्देश",

howToRequest: "Claude से रिपोर्ट का अनुरोध कैसे करें",

structure: "दस्तावेज़ संरचना आवश्यकताएं",

data: "आवश्यक डेटा तत्व",

bottomLine: "बॉटम लाइन आवश्यकताएं",

titleFormat: "शीर्षक प्रारूप:",

mainSections: "मुख्य अनुभाग (आवश्यक क्रम):",

criticalRules: "⚠️ महत्वपूर्ण नियम:",

financialMetrics: "वित्तीय मेट्रिक्स:",

strategicInfo: "रणनीतिक जानकारी:",

mandatoryFormat: "🔴 अनिवार्य प्रारूप:",

requiredElements: "आवश्यक तत्व:"

},

dataSources: {

financial: "वित्तीय डेटा स्रोत",

company: "कंपनी डेटा स्रोत",

market: "बाजार डेटा स्रोत",

credit: "ऋण डेटा स्रोत"

},

analysis: {

title: "कंपनी विश्लेषण इंटरफेस",

companyName: "कंपनी का नाम",

companyPlaceholder: "कंपनी का नाम दर्ज करें (उदा. माइक्रोसॉफ्ट, एप्पल, टेस्ला)...",

analysisType: "विश्लेषण प्रकार",

types: {

comprehensive: { name: "व्यापक", desc: "पूर्ण 390-प्रश्न विश्लेषण" },

creditFocus: { name: "ऋण फोकस", desc: "डिफॉल्ट संभावना पर जोर" },

strategic: { name: "केवल रणनीतिक", desc: "गिडियन + बफेट फ्रेमवर्क" }

},

creditModels: "लागू करने के लिए ऋण जोखिम मॉडल",

buffettSamples: "बफेट फ्रेमवर्क प्रश्न नमूने",

runAnalysis: "एकीकृत विश्लेषण चलाएं",

analyzing: "विश्लेषण कर रहे हैं"

},

progress: {

questions: "प्रश्न"

},

results: {

executiveBrief: "कार्यकारी संक्षिप्त",

generated: "उत्पन्न",

overallScore: "समग्र स्कोर",

assessments: {

strategic: "रणनीतिक मूल्यांकन",

corporate: "कॉर्पोरेट मूल्यांकन",

market: "बाजार मूल्यांकन",

product: "उत्पाद मूल्यांकन",

financial: "वित्तीय मूल्यांकन"

},

radarTitle: "रणनीतिक मूल्यांकन रडार",

creditRisk: "ऋण जोखिम मूल्यांकन",

defaultProb: "डिफॉल्ट संभावना",

strategicOverview: "रणनीतिक अवलोकन",

consensusDefault: "सहमति डिफॉल्ट संभावना",

rating: "रेटिंग",

exportBrief: "पूर्ण कार्यकारी संक्षिप्त निर्यात करें",

exportSuccess: "पूर्ण विश्लेषण कंसोल में निर्यात किया गया। डेवलपर टूल्स जांचें।"

},

footer: {

systemName: "गिडियन एकीकृत बुद्धिमत्ता प्रणाली v4.0",

tagline: "रणनीतिक विश्लेषण • ऋण जोखिम मूल्यांकन • वारेन बफेट की बुद्धिमत्ता का संयोजन",

stats: "390 प्रश्न • 7 आयाम • 4 जोखिम मॉडल • 48 वर्षों की निवेश बुद्धिमत्ता"

},

selectLanguage: "भाषा चुनें"

},

mandarin: {

systemTitle: "GIDEON 统一智能系统",

systemSubtitle: "战略分析 • 信用风险 • 巴菲特框架",

version: "v4.0 增强版",

statsLine: "390个问题 • 4个风险模型 • 48年智慧",

tabs: {

overview: "概述",

instructions: "说明",

dataSources: "数据来源",

analysis: "分析",

results: "结果"

},

cards: {

fourester: {

title: "GIDEON Fourester",

description: "分析7个关键维度的100问题战略智能框架",

corporate: "公司治理",

market: "市场分析",

product: "产品评估"

},

credit: {

title: "违约猎手专业版",

description: "4个高级信用风险模型用于全面违约概率评估"

},

buffett: {

title: "巴菲特框架",

description: "来自伯克希尔哈撒韦48年信件的280个战略问题",

tier1: "关键(第1级)",

tier2: "重要(第2级)",

tier3: "支持(第3级)"

}

},

stats: {

totalQuestions: "总问题数",

dimensions: "分析维度",

riskModels: "风险模型",

yearsWisdom: "智慧年限"

},

instructions: {

title: "报告生成说明",

howToRequest: "如何向Claude请求报告",

structure: "文档结构要求",

data: "所需数据元素",

bottomLine: "底线要求",

titleFormat: "标题格式:",

mainSections: "主要部分(必需顺序):",

criticalRules: "⚠️ 关键规则:",

financialMetrics: "财务指标:",

strategicInfo: "战略信息:",

mandatoryFormat: "🔴 强制格式:",

requiredElements: "必需元素:"

},

dataSources: {

financial: "财务数据来源",

company: "公司数据来源",

market: "市场数据来源",

credit: "信用数据来源"

},

analysis: {

title: "公司分析界面",

companyName: "公司名称",

companyPlaceholder: "输入公司名称(例如:微软、苹果、特斯拉)...",

analysisType: "分析类型",

types: {

comprehensive: { name: "综合", desc: "完整的390问题分析" },

creditFocus: { name: "信用重点", desc: "强调违约概率" },

strategic: { name: "仅战略", desc: "GIDEON + 巴菲特框架" }

},

creditModels: "应用的信用风险模型",

buffettSamples: "巴菲特框架问题样本",

runAnalysis: "运行统一分析",

analyzing: "分析中"

},

progress: {

questions: "问题"

},

results: {

executiveBrief: "执行简报",

generated: "生成于",

overallScore: "总体评分",

assessments: {

strategic: "战略评估",

corporate: "公司评估",

market: "市场评估",

product: "产品评估",

financial: "财务评估"

},

radarTitle: "战略评估雷达",

creditRisk: "信用风险评估",

defaultProb: "违约概率",

strategicOverview: "战略概述",

consensusDefault: "共识违约概率",

rating: "评级",

exportBrief: "导出完整执行简报",

exportSuccess: "完整分析已导出到控制台。请检查开发者工具。"

},

footer: {

systemName: "GIDEON 统一智能系统 v4.0",

tagline: "结合战略分析 • 信用风险评估 • 沃伦·巴菲特智慧",

stats: "390个问题 • 7个维度 • 4个风险模型 • 48年投资智慧"

},

selectLanguage: "选择语言"

},

ukrainian: {

systemTitle: "Уніфікована система аналітики GIDEON",

systemSubtitle: "Стратегічний аналіз • Кредитний ризик • Методологія Баффета",

version: "v4.0 Розширена",

statsLine: "390 питань • 4 моделі ризику • 48 років мудрості",

tabs: {

overview: "Огляд",

instructions: "Інструкції",

dataSources: "Джерела даних",

analysis: "Аналіз",

results: "Результати"

},

cards: {

fourester: {

title: "GIDEON Fourester",

description: "Структура стратегічного аналізу зі 100 питань, що аналізує 7 критичних вимірів",

corporate: "Корпоративне управління",

market: "Аналіз ринку",

product: "Оцінка продукту"

},

credit: {

title: "Мисливець за дефолтами Pro",

description: "4 розширені моделі кредитного ризику для комплексної оцінки ймовірності дефолту"

},

buffett: {

title: "Методологія Баффета",

description: "280 стратегічних питань з 48 років листів Berkshire Hathaway",

tier1: "Критичні (Рівень 1)",

tier2: "Важливі (Рівень 2)",

tier3: "Допоміжні (Рівень 3)"

}

},

stats: {

totalQuestions: "Загальна кількість питань",

dimensions: "Виміри аналізу",

riskModels: "Моделі ризику",

yearsWisdom: "Років мудрості"

},

instructions: {

title: "Інструкції зі створення звіту",

howToRequest: "Як запитати звіти у Claude",

structure: "Вимоги до структури документа",

data: "Необхідні елементи даних",

bottomLine: "Вимоги до підсумку",

titleFormat: "Формат заголовка:",

mainSections: "Основні розділи (необхідний порядок):",

criticalRules: "⚠️ Критичні правила:",

financialMetrics: "Фінансові показники:",

strategicInfo: "Стратегічна інформація:",

mandatoryFormat: "🔴 ОБОВ'ЯЗКОВИЙ ФОРМАТ:",

requiredElements: "Необхідні елементи:"

},

dataSources: {

financial: "Джерела фінансових даних",

company: "Джерела даних про компанію",

market: "Джерела ринкових даних",

credit: "Джерела кредитних даних"

},

analysis: {

title: "Інтерфейс аналізу компанії",

companyName: "Назва компанії",

companyPlaceholder: "Введіть назву компанії (напр. Microsoft, Apple, Tesla)...",

analysisType: "Тип аналізу",

types: {

comprehensive: { name: "Комплексний", desc: "Повний аналіз з 390 питань" },

creditFocus: { name: "Фокус на кредит", desc: "Наголос на ймовірності дефолту" },

strategic: { name: "Тільки стратегічний", desc: "Методологія GIDEON + Баффет" }

},

creditModels: "Моделі кредитного ризику для застосування",

buffettSamples: "Зразки питань методології Баффета",

runAnalysis: "Запустити уніфікований аналіз",

analyzing: "Аналізую"

},

progress: {

questions: "питань"

},

results: {

executiveBrief: "Виконавчий звіт",

generated: "Створено",

overallScore: "Загальна оцінка",

assessments: {

strategic: "Стратегічна оцінка",

corporate: "Корпоративна оцінка",

market: "Оцінка ринку",

product: "Оцінка продукту",

financial: "Фінансова оцінка"

},

radarTitle: "Радар стратегічної оцінки",

creditRisk: "Оцінка кредитного ризику",

defaultProb: "Ймовірність дефолту",

strategicOverview: "Стратегічний огляд",

consensusDefault: "Консенсусна ймовірність дефолту",

rating: "Рейтинг",

exportBrief: "Експортувати повний виконавчий звіт",

exportSuccess: "Повний аналіз експортовано до консолі. Перевірте інструменти розробника."

},

footer: {

systemName: "Уніфікована система аналітики GIDEON v4.0",

tagline: "Поєднання стратегічного аналізу • Оцінка кредитного ризику • Мудрість Воррена Баффета",

stats: "390 питань • 7 вимірів • 4 моделі ризику • 48 років інвестиційної мудрості"

},

selectLanguage: "Вибрати мову"

},

russian: {

systemTitle: "Единая аналитическая система GIDEON",

systemSubtitle: "Стратегический анализ • Кредитный риск • Методология Баффета",

version: "v4.0 Расширенная",

statsLine: "390 вопросов • 4 модели риска • 48 лет мудрости",

tabs: {

overview: "Обзор",

instructions: "Инструкции",

dataSources: "Источники данных",

analysis: "Анализ",

results: "Результаты"

},

cards: {

fourester: {

title: "GIDEON Fourester",

description: "Структура стратегического анализа из 100 вопросов, анализирующая 7 критических измерений",

corporate: "Корпоративное управление",

market: "Анализ рынка",

product: "Оценка продукта"

},

credit: {

title: "Охотник за дефолтами Pro",

description: "4 расширенные модели кредитного риска для комплексной оценки вероятности дефолта"

},

buffett: {

title: "Методология Баффета",

description: "280 стратегических вопросов из 48 лет писем Berkshire Hathaway",

tier1: "Критические (Уровень 1)",

tier2: "Важные (Уровень 2)",

tier3: "Вспомогательные (Уровень 3)"

}

},

stats: {

totalQuestions: "Всего вопросов",

dimensions: "Измерений анализа",

riskModels: "Моделей риска",

yearsWisdom: "Лет мудрости"

},

instructions: {

title: "Инструкции по созданию отчета",

howToRequest: "Как запросить отчеты у Claude",

structure: "Требования к структуре документа",

data: "Необходимые элементы данных",

bottomLine: "Требования к итогу",

titleFormat: "Формат заголовка:",

mainSections: "Основные разделы (необходимый порядок):",

criticalRules: "⚠️ Критические правила:",

financialMetrics: "Финансовые показатели:",

strategicInfo: "Стратегическая информация:",

mandatoryFormat: "🔴 ОБЯЗАТЕЛЬНЫЙ ФОРМАТ:",

requiredElements: "Необходимые элементы:"

},

dataSources: {

financial: "Источники финансовых данных",

company: "Источники данных о компании",

market: "Источники рыночных данных",

credit: "Источники кредитных данных"

},

analysis: {

title: "Интерфейс анализа компании",

companyName: "Название компании",

companyPlaceholder: "Введите название компании (напр. Microsoft, Apple, Tesla)...",

analysisType: "Тип анализа",

types: {

comprehensive: { name: "Комплексный", desc: "Полный анализ из 390 вопросов" },

creditFocus: { name: "Фокус на кредит", desc: "Акцент на вероятности дефолта" },

strategic: { name: "Только стратегический", desc: "Методология GIDEON + Баффет" }

},

creditModels: "Модели кредитного риска для применения",

buffettSamples: "Примеры вопросов методологии Баффета",

runAnalysis: "Запустить унифицированный анализ",

analyzing: "Анализирую"

},

progress: {

questions: "вопросов"

},

results: {

executiveBrief: "Исполнительный отчет",

generated: "Создано",

overallScore: "Общая оценка",

assessments: {

strategic: "Стратегическая оценка",

corporate: "Корпоративная оценка",

market: "Оценка рынка",

product: "Оценка продукта",

financial: "Финансовая оценка"

},

radarTitle: "Радар стратегической оценки",

creditRisk: "Оценка кредитного риска",

defaultProb: "Вероятность дефолта",

strategicOverview: "Стратегический обзор",

consensusDefault: "Консенсусная вероятность дефолта",

rating: "Рейтинг",

exportBrief: "Экспортировать полный исполнительный отчет",

exportSuccess: "Полный анализ экспортирован в консоль. Проверьте инструменты разработчика."

},

footer: {

systemName: "Единая аналитическая система GIDEON v4.0",

tagline: "Сочетание стратегического анализа • Оценка кредитного риска • Мудрость Уоррена Баффета",

stats: "390 вопросов • 7 измерений • 4 модели риска • 48 лет инвестиционной мудрости"

},

selectLanguage: "Выбрать язык"

},

arabic: {

systemTitle: "نظام الذكاء الموحد GIDEON",

systemSubtitle: "التحليل الاستراتيجي • مخاطر الائتمان • إطار بافيت",

version: "الإصدار 4.0 المحسّن",

statsLine: "390 سؤال • 4 نماذج مخاطر • 48 عاماً من الحكمة",

tabs: {

overview: "نظرة عامة",

instructions: "تعليمات",

dataSources: "مصادر البيانات",

analysis: "تحليل",

results: "النتائج"

},

cards: {

fourester: {

title: "GIDEON Fourester",

description: "إطار ذكاء استراتيجي من 100 سؤال يحلل 7 أبعاد حرجة",

corporate: "الحوكمة المؤسسية",

market: "تحليل السوق",

product: "تقييم المنتج"

},

credit: {

title: "صائد التخلف عن السداد المحترف",

description: "4 نماذج متقدمة لمخاطر الائتمان لتقييم شامل لاحتمالية التخلف عن السداد"

},

buffett: {

title: "إطار بافيت",

description: "280 سؤال استراتيجي من 48 عاماً من رسائل بيركشاير هاثاواي",

tier1: "حرجة (المستوى 1)",

tier2: "مهمة (المستوى 2)",

tier3: "داعمة (المستوى 3)"

}

},

stats: {

totalQuestions: "إجمالي الأسئلة",

dimensions: "أبعاد التحليل",

riskModels: "نماذج المخاطر",

yearsWisdom: "سنوات الحكمة"

},

instructions: {

title: "تعليمات إنشاء التقرير",

howToRequest: "كيفية طلب التقارير من Claude",

structure: "متطلبات بنية المستند",

data: "عناصر البيانات المطلوبة",

bottomLine: "متطلبات الخلاصة",

titleFormat: "تنسيق العنوان:",

mainSections: "الأقسام الرئيسية (الترتيب المطلوب):",

criticalRules: "⚠️ قواعد حرجة:",

financialMetrics: "المقاييس المالية:",

strategicInfo: "المعلومات الاستراتيجية:",

mandatoryFormat: "🔴 التنسيق الإلزامي:",

requiredElements: "العناصر المطلوبة:"

},

dataSources: {

financial: "مصادر البيانات المالية",

company: "مصادر بيانات الشركة",

market: "مصادر بيانات السوق",

credit: "مصادر بيانات الائتمان"

},

analysis: {

title: "واجهة تحليل الشركة",

companyName: "اسم الشركة",

companyPlaceholder: "أدخل اسم الشركة (مثل: مايكروسوفت، آبل، تسلا)...",

analysisType: "نوع التحليل",

types: {

comprehensive: { name: "شامل", desc: "تحليل كامل من 390 سؤال" },

creditFocus: { name: "تركيز ائتماني", desc: "التركيز على احتمالية التخلف" },

strategic: { name: "استراتيجي فقط", desc: "إطار GIDEON + بافيت" }

},

creditModels: "نماذج مخاطر الائتمان للتطبيق",

buffettSamples: "عينات أسئلة إطار بافيت",

runAnalysis: "تشغيل التحليل الموحد",

analyzing: "جاري التحليل"

},

progress: {

questions: "أسئلة"

},

results: {

executiveBrief: "التقرير التنفيذي",

generated: "تم الإنشاء",

overallScore: "الدرجة الإجمالية",

assessments: {

strategic: "التقييم الاستراتيجي",

corporate: "التقييم المؤسسي",

market: "تقييم السوق",

product: "تقييم المنتج",

financial: "التقييم المالي"

},

radarTitle: "رادار التقييم الاستراتيجي",

creditRisk: "تقييم مخاطر الائتمان",

defaultProb: "احتمالية التخلف",

strategicOverview: "نظرة استراتيجية عامة",

consensusDefault: "احتمالية التخلف الإجماعية",

rating: "التصنيف",

exportBrief: "تصدير التقرير التنفيذي الكامل",

exportSuccess: "تم تصدير التحليل الكامل إلى وحدة التحكم. تحقق من أدوات المطور."

},

footer: {

systemName: "نظام الذكاء الموحد GIDEON الإصدار 4.0",

tagline: "دمج التحليل الاستراتيجي • تقييم مخاطر الائتمان • حكمة وارن بافيت",

stats: "390 سؤال • 7 أبعاد • 4 نماذج مخاطر • 48 عاماً من الحكمة الاستثمارية"

},

selectLanguage: "اختر اللغة"

}

};

const LANGUAGES = [

{ code: 'english', name: 'English', flag: '🇺🇸' },

{ code: 'spanish', name: 'Español', flag: '🇪🇸' },

{ code: 'french', name: 'Français', flag: '🇫🇷' },

{ code: 'portuguese', name: 'Português', flag: '🇵🇹' },

{ code: 'hindi', name: 'हिंदी', flag: '🇮🇳' },

{ code: 'mandarin', name: '中文', flag: '🇨🇳' },

{ code: 'ukrainian', name: 'Українська', flag: '🇺🇦' },

{ code: 'russian', name: 'Русский', flag: '🇷🇺' },

{ code: 'arabic', name: 'العربية', flag: '🇸🇦' }

];

// ==========================================

// ORIGINAL DATA (kept from original code)

// ==========================================

const REPORT_INSTRUCTIONS = {

structure: {

title: "[COMPANY NAME] EXECUTIVE INTELLIGENCE BRIEF",

subtitle: "GIDEON Unified System: Strategic Analysis + Credit Risk + Buffett Framework",

metadata: "Confidence: 94% | Score: 9.3/10 | Questions: 110 Strategic + 280 Buffett",

mainSections: [

"STRATEGIC OVERVIEW (2 paragraphs, 7 sentences each)",

"CORPORATE SECTION (2 paragraphs, 7 sentences each)",

"MARKET SECTION (2 paragraphs, 7 sentences each)",

"PRODUCT SECTION (2 paragraphs, 7 sentences each)",

"BOTTOM LINE (1 paragraph, 7 sentences - MUST start with WHO)",

"STRATEGIC RECOMMENDATIONS (2 paragraphs, 7 sentences each)",

"CREDIT RISK ANALYSIS (4 models, 7-8 sentences each)"

],

sentenceRules: {

perParagraph: "EXACTLY 7 sentences (5-7 acceptable range)",

structure: "Complex, data-rich sentences with 2-3 metrics each",

style: "Use semicolons to combine related ideas",

data: "Every sentence MUST contain specific numbers"

}

},

requiredData: {

financial: [

"Market Capitalization (current)",

"Peak Valuation (historical)",

"Stock Price & % Decline",

"Total Debt (breakdown)",

"Annual Revenue",

"EBITDA and Margin",

"Operating Cash Flow",

"Cash and Equivalents",

"Working Capital",

"Total Assets",

"Total Liabilities",

"Shareholder Equity",

"Debt-to-Equity Ratio"

],

strategic: [

"Full Legal Name and Structure",

"Complete HQ Address (street, city, state, zip)",

"Founding Year and Founders",

"CEO and Leadership Team",

"Board Composition",

"Mission/Vision",

"Ownership Structure (%)",

"TAM, SAM, SOM with growth rates",

"Platform Competitors (10+ names)",

"Pure-Play Specialists (10+ names)"

]

},

bottomLineFormat: {

mandatory: "MUST start with: 'Companies/Investors/Creditors [seeking/evaluating] should...'",

elements: [

"Target audience identification",

"Core financial metrics",

"Strategic position",

"Risk assessment",

"Timeline urgency",

"Scenario analysis",

"Clear recommendation"

]

}

};

const DATA_SOURCES = {

financial: [

{ name: "SEC EDGAR", url: "sec.gov/edgar", type: "10-K/10-Q Filings", access: "Free" },

{ name: "Yahoo Finance", url: "finance.yahoo.com", type: "Market Data & Financials", access: "Free" },

{ name: "Google Finance", url: "google.com/finance", type: "Stock Prices & News", access: "Free" },

{ name: "FRED Economic Data", url: "fred.stlouisfed.org", type: "Economic Indicators", access: "Free" }

],

company: [

{ name: "Company Websites", url: "Investor Relations Pages", type: "Annual Reports & Presentations", access: "Free" },

{ name: "Glassdoor", url: "glassdoor.com", type: "Employee Reviews & Culture", access: "Free with Account" },

{ name: "LinkedIn", url: "linkedin.com", type: "Company & Executive Info", access: "Free with Account" },

{ name: "Crunchbase", url: "crunchbase.com", type: "Startup & Funding Data", access: "Limited Free" }

],

market: [

{ name: "Statista", url: "statista.com", type: "Market Statistics", access: "Limited Free" },

{ name: "IBISWorld", url: "ibisworld.com", type: "Industry Reports", access: "Limited Free" },

{ name: "McKinsey Insights", url: "mckinsey.com/insights", type: "Industry Analysis", access: "Free" },

{ name: "Gartner", url: "gartner.com", type: "Technology Research", access: "Limited Free" }

],

credit: [

{ name: "Moody's", url: "moodys.com", type: "Credit Ratings", access: "Limited Free" },

{ name: "S&P Global", url: "spglobal.com", type: "Credit Ratings", access: "Limited Free" },

{ name: "Fitch Ratings", url: "fitchratings.com", type: "Credit Analysis", access: "Limited Free" },

{ name: "FINRA BondCenter", url: "finra.org/bonds", type: "Bond Prices", access: "Free" }

]

};

const CREDIT_MODELS = {

merton: {

name: "Merton Structural Model",

description: "Market-based default probability using equity prices and volatility",

formula: "Default Prob = f(Debt/Market Cap, Equity Volatility)"

},

altman: {

name: "Altman Z-Score",

description: "Accounting-based bankruptcy prediction model",

formula: "Z = 1.2X₁ + 1.4X₂ + 3.3X₃ + 0.6X₄ + 1.0X₅"

},

kmv: {

name: "KMV Distance-to-Default",

description: "Hybrid market and accounting approach",

formula: "DD = (Asset Value - Default Point) / (Asset Value × Volatility)"

},

cds: {

name: "CDS-Implied Default Probability",

description: "Market-implied default probability from credit default swaps",

formula: "PD = 1 - exp(-Spread × Time / (1 - Recovery))"

}

};

// ==========================================

// UNIFIED DUE DILIGENCE FRAMEWORK

// GIDEON Fourester (100) + Buffett Wisdom (280) = 380 Questions

// ==========================================

const UNIFIED_QUESTIONS = {

// SECTION 1: STRATEGIC FOUNDATION (Fourester Q1-5 + Buffett Strategic)

strategic: {

fourester: [

{ id: 1, text: "What is the fundamental value proposition?", tier: "foundation" },

{ id: 2, text: "How does this entity create and capture value?", tier: "foundation" },

{ id: 3, text: "What is the strategic positioning relative to market?", tier: "foundation" },

{ id: 4, text: "What are the critical success factors?", tier: "foundation" },

{ id: 5, text: "How sustainable is the competitive advantage?", tier: "foundation" }

],

buffett: [

{ id: 101, text: "Does the business have an enduring moat? (2007)", tier: 1 },

{ id: 102, text: "Is the favorite holding period forever? (1988)", tier: 1 },

{ id: 103, text: "Would you rather own wonderful companies at fair prices or fair companies at wonderful prices? (1985)", tier: 1 },

{ id: 104, text: "Does the business require continuous capital infusion just to stay in place? (1987)", tier: 1 },

{ id: 105, text: "Can this business raise prices with inflation without losing market share? (1982)", tier: 1 }

],

total: 10

},

// SECTION 2: CORPORATE GOVERNANCE (Fourester Q6-20 + Buffett Corporate 31)

corporate: {

fourester: [

{ id: 6, text: "What is the legal structure and jurisdiction?", tier: "entity" },

{ id: 7, text: "Where is the corporate headquarters located (full address)?", tier: "entity" },

{ id: 8, text: "Who are the founders and their backgrounds?", tier: "entity" },

{ id: 9, text: "What is the founding story and mission evolution?", tier: "entity" },

{ id: 10, text: "How has the company pivoted from origin?", tier: "entity" },

{ id: 11, text: "Who comprises the executive team?", tier: "leadership" },

{ id: 12, text: "What is the board composition and independence?", tier: "leadership" },

{ id: 13, text: "What is the ownership structure breakdown?", tier: "leadership" },

{ id: 14, text: "How aligned are management incentives with shareholders?", tier: "leadership" },

{ id: 15, text: "What is the governance quality rating?", tier: "leadership" },

{ id: 16, text: "What is the current valuation and methodology?", tier: "financial" },

{ id: 17, text: "What are all funding rounds with dates and amounts?", tier: "financial" },

{ id: 18, text: "Who are strategic vs financial investors?", tier: "financial" },

{ id: 19, text: "What is the detailed revenue model breakdown?", tier: "financial" },

{ id: 20, text: "What are burn rate, runway, and path to profitability?", tier: "financial" }

],

buffett: [

{ id: 106, text: "Is return on equity measured properly against equity capital employed, not just EPS? (1977)", tier: 1 },

{ id: 107, text: "Does management treat shareholders as true partners in the business? (1985)", tier: 1 },

{ id: 108, text: "Is management candid about mistakes and problems? (1989)", tier: 1 },

{ id: 109, text: "Do managers resist the institutional imperative? (1989)", tier: 1 },

{ id: 110, text: "Is capital allocation the CEO's most important job? (1987)", tier: 1 },

{ id: 111, text: "Does management avoid acquisition fever and empire building? (1981)", tier: 1 },

{ id: 112, text: "Are share repurchases done intelligently below intrinsic value? (2012)", tier: 1 },

{ id: 113, text: "Does the company avoid accounting gimmicks? (2002)", tier: 1 },

{ id: 114, text: "Is executive compensation reasonable and tied to long-term results? (1985)", tier: 1 },

{ id: 115, text: "Do managers have significant skin in the game (own meaningful equity)? (1983)", tier: 1 },

{ id: 116, text: "Does management focus on cash generation rather than earnings cosmetics? (1986)", tier: 2 },

{ id: 117, text: "Are dividend policies rational given investment opportunities? (1984)", tier: 2 },

{ id: 118, text: "Does the company avoid excessive leverage? (2008)", tier: 2 },

{ id: 119, text: "Is there a strong culture of integrity throughout the organization? (1991)", tier: 2 },

{ id: 120, text: "Does management make decisions for the long term? (1977)", tier: 2 },

{ id: 121, text: "Are shareholder letters honest and informative? (1977)", tier: 2 },

{ id: 122, text: "Does the board truly represent shareholders? (2003)", tier: 2 },

{ id: 123, text: "Is succession planning robust and transparent? (2014)", tier: 2 },

{ id: 124, text: "Does management avoid promoting undeserving executives? (1989)", tier: 2 },

{ id: 125, text: "Is there effective risk management without stifling initiative? (2008)", tier: 2 },

{ id: 126, text: "Does the company have ethical supplier relationships? (2006)", tier: 3 },

{ id: 127, text: "Are employee retention and satisfaction metrics strong? (1998)", tier: 3 },

{ id: 128, text: "Does management avoid excessive focus on quarterly results? (2004)", tier: 3 },

{ id: 129, text: "Is there a clear strategic vision communicated effectively? (1996)", tier: 3 },

{ id: 130, text: "Does the company maintain appropriate insurance coverage? (2001)", tier: 3 },

{ id: 131, text: "Are related party transactions disclosed and fair? (2002)", tier: 3 },

{ id: 132, text: "Does management invest in employee development? (1993)", tier: 3 },

{ id: 133, text: "Is there effective internal control and audit processes? (2005)", tier: 3 },

{ id: 134, text: "Does the company have strong environmental stewardship? (2007)", tier: 3 },

{ id: 135, text: "Are tax strategies ethical and sustainable? (2003)", tier: 3 },

{ id: 136, text: "Does management demonstrate operational excellence? (1995)", tier: 3 }

],

total: 46

},

// SECTION 3: MARKET ANALYSIS (Fourester Q21-45 + Buffett Market 27)

market: {

fourester: [

{ id: 21, text: "What is the Total Addressable Market (TAM) size?", tier: "primary" },

{ id: 22, text: "What is the Serviceable Addressable Market (SAM)?", tier: "primary" },

{ id: 23, text: "What is the Serviceable Obtainable Market (SOM)?", tier: "primary" },

{ id: 24, text: "What is the market CAGR and growth trajectory?", tier: "primary" },

{ id: 25, text: "What is the current adoption curve position?", tier: "primary" },

{ id: 26, text: "What are adjacent market opportunities and sizes?", tier: "secondary" },

{ id: 27, text: "What is the cross-sell and upsell potential?", tier: "secondary" },

{ id: 28, text: "How do international markets compare in opportunity?", tier: "secondary" },

{ id: 29, text: "What are vertical-specific market opportunities?", tier: "secondary" },

{ id: 30, text: "What is the platform expansion potential?", tier: "secondary" },

{ id: 31, text: "Who are the platform competitors (list 10+)?", tier: "competitive" },

{ id: 32, text: "Who are pure-play specialists (list 10+)?", tier: "competitive" },

{ id: 33, text: "What is the competitive intensity and concentration?", tier: "competitive" },

{ id: 34, text: "What is the market concentration (HHI)?", tier: "competitive" },

{ id: 35, text: "What are barriers to entry and exit?", tier: "competitive" },

{ id: 36, text: "What regulatory factors impact the business?", tier: "forces" },

{ id: 37, text: "What technology disruptions are emerging?", tier: "forces" },

{ id: 38, text: "How are customer preferences evolving?", tier: "forces" },

{ id: 39, text: "What macroeconomic factors influence performance?", tier: "forces" },

{ id: 40, text: "What are the network effects and flywheel dynamics?", tier: "forces" },

{ id: 41, text: "Who are critical ecosystem partners?", tier: "ecosystem" },

{ id: 42, text: "What channel opportunities exist?", tier: "ecosystem" },

{ id: 43, text: "How strong are supply chain dependencies?", tier: "ecosystem" },

{ id: 44, text: "What is the value chain position?", tier: "ecosystem" },

{ id: 45, text: "How do platform economics affect the business?", tier: "ecosystem" }

],

buffett: [

{ id: 137, text: "Is the business simple and understandable? (1986)", tier: 1 },

{ id: 138, text: "Does the industry have favorable long-term economics? (1987)", tier: 1 },

{ id: 139, text: "Is the business immune to technological obsolescence? (1993)", tier: 1 },

{ id: 140, text: "Does the company dominate a niche market? (1995)", tier: 1 },

{ id: 141, text: "Are switching costs high for customers? (1991)", tier: 1 },

{ id: 142, text: "Does the business benefit from economies of scale? (1985)", tier: 1 },

{ id: 143, text: "Is there pricing power without losing volume? (1986)", tier: 1 },

{ id: 144, text: "Are customer acquisition costs reasonable and declining? (2000)", tier: 1 },

{ id: 145, text: "Does the business have brand strength and customer loyalty? (1983)", tier: 1 },

{ id: 146, text: "Is market share stable or growing? (1992)", tier: 1 },

{ id: 147, text: "Does the industry structure favor incumbents? (1988)", tier: 2 },

{ id: 148, text: "Are there regulatory moats protecting the business? (1989)", tier: 2 },

{ id: 149, text: "Is the business insulated from commodity price swings? (1990)", tier: 2 },

{ id: 150, text: "Does the company have distribution advantages? (1991)", tier: 2 },

{ id: 151, text: "Are there geographic expansion opportunities? (1998)", tier: 2 },

{ id: 152, text: "Is the addressable market growing organically? (2001)", tier: 2 },

{ id: 153, text: "Does the business have network effects? (2016)", tier: 2 },

{ id: 154, text: "Are margins protected by differentiation? (1987)", tier: 2 },

{ id: 155, text: "Is customer concentration risk manageable? (1995)", tier: 2 },

{ id: 156, text: "Does the company benefit from industry tailwinds? (2004)", tier: 2 },

{ id: 157, text: "Is the competitive landscape rational or destructive? (2003)", tier: 3 },

{ id: 158, text: "Are there consolidation opportunities in the industry? (1999)", tier: 3 },

{ id: 159, text: "Does the business have intellectual property protection? (1996)", tier: 3 },

{ id: 160, text: "Is there potential for market share gains from competitors? (2002)", tier: 3 },

{ id: 161, text: "Are there sustainable competitive advantages vs startups? (2015)", tier: 3 },

{ id: 162, text: "Does the company control critical inputs or resources? (1988)", tier: 3 },

{ id: 163, text: "Is the industry structure stable or fragmenting? (2006)", tier: 3 }

],

total: 52

},

// SECTION 4: PRODUCT/SERVICE ANALYSIS (Fourester Q46-70 + Buffett Product 27)

product: {

fourester: [

{ id: 46, text: "What is the core technology stack?", tier: "architecture" },

{ id: 47, text: "What are key features and capabilities?", tier: "architecture" },

{ id: 48, text: "How does architecture enable scale?", tier: "architecture" },

{ id: 49, text: "What is the technical differentiation?", tier: "architecture" },

{ id: 50, text: "What proprietary assets exist?", tier: "architecture" },

{ id: 51, text: "How well does product address market needs?", tier: "fit" },

{ id: 52, text: "What are primary use cases and applications?", tier: "fit" },

{ id: 53, text: "What is the adoption friction level?", tier: "fit" },

{ id: 54, text: "How does product compare on performance metrics?", tier: "fit" },

{ id: 55, text: "What is the time-to-value for customers?", tier: "fit" },

{ id: 56, text: "What is the R&D investment level (% of revenue)?", tier: "innovation" },

{ id: 57, text: "What is the development velocity?", tier: "innovation" },

{ id: 58, text: "What is in the innovation pipeline?", tier: "innovation" },

{ id: 59, text: "How strong is the IP portfolio?", tier: "innovation" },

{ id: 60, text: "What are the key technology risks?", tier: "innovation" },

{ id: 61, text: "What are the API capabilities and documentation?", tier: "integration" },

{ id: 62, text: "How extensive are third-party integrations?", tier: "integration" },

{ id: 63, text: "What is the partner ecosystem breadth?", tier: "integration" },

{ id: 64, text: "How open vs closed is the platform?", tier: "integration" },

{ id: 65, text: "What are the lock-in factors?", tier: "integration" },

{ id: 66, text: "What security certifications exist?", tier: "security" },

{ id: 67, text: "How robust is the privacy framework?", tier: "security" },

{ id: 68, text: "What compliance requirements are met?", tier: "security" },

{ id: 69, text: "What is the disaster recovery capability?", tier: "security" },

{ id: 70, text: "How mature are enterprise features?", tier: "security" }

],

buffett: [

{ id: 164, text: "Does the product/service have consistent demand? (1982)", tier: 1 },

{ id: 165, text: "Is the offering essential rather than discretionary? (1991)", tier: 1 },

{ id: 166, text: "Does the product have repeat purchase characteristics? (1984)", tier: 1 },

{ id: 167, text: "Are gross margins consistently high (>40%)? (1986)", tier: 1 },

{ id: 168, text: "Is product development capital-light? (1995)", tier: 1 },

{ id: 169, text: "Does the business have low customer churn? (2000)", tier: 1 },

{ id: 170, text: "Are products differentiated or commoditized? (1987)", tier: 1 },

{ id: 171, text: "Is there strong product-market fit evidenced by growth? (2005)", tier: 1 },

{ id: 172, text: "Does the offering solve critical pain points? (2010)", tier: 1 },

{ id: 173, text: "Are there sustainable innovation advantages? (1999)", tier: 1 },

{ id: 174, text: "Is the product portfolio diversified across segments? (1993)", tier: 2 },

{ id: 175, text: "Does R&D spending translate to competitive advantage? (1996)", tier: 2 },

{ id: 176, text: "Are new product success rates high? (1998)", tier: 2 },

{ id: 177, text: "Is there organic vs acquisitive growth? (2001)", tier: 2 },

{ id: 178, text: "Does the company lead or follow in innovation? (1992)", tier: 2 },

{ id: 179, text: "Are product lifecycles lengthening or shortening? (2003)", tier: 2 },

{ id: 180, text: "Is quality consistent and improving? (1989)", tier: 2 },

{ id: 181, text: "Does the offering create vendor lock-in? (2004)", tier: 2 },

{ id: 182, text: "Are upsell and cross-sell opportunities significant? (2006)", tier: 2 },

{ id: 183, text: "Is platform strategy coherent and executable? (2012)", tier: 2 },

{ id: 184, text: "Does the product roadmap address future needs? (2007)", tier: 3 },

{ id: 185, text: "Are customer support costs reasonable? (1994)", tier: 3 },

{ id: 186, text: "Is there white space for product expansion? (2008)", tier: 3 },

{ id: 187, text: "Does the business avoid feature bloat? (2002)", tier: 3 },

{ id: 188, text: "Are customization needs manageable? (1997)", tier: 3 },

{ id: 189, text: "Is technical debt under control? (2015)", tier: 3 },

{ id: 190, text: "Does the offering scale without quality degradation? (2009)", tier: 3 }

],

total: 52

},

// SECTION 5: CUSTOMER & FINANCIAL VALIDATION (Fourester Q71-85 + Buffett Technical/Experience)

customer: {

fourester: [

{ id: 71, text: "Who are the primary customer segments?", tier: "segmentation" },

{ id: 72, text: "What is the Ideal Customer Profile (ICP)?", tier: "segmentation" },

{ id: 73, text: "What is customer concentration risk?", tier: "segmentation" },

{ id: 74, text: "What are the marquee logo customers?", tier: "segmentation" },

{ id: 75, text: "How do segments differ in profitability?", tier: "segmentation" },

{ id: 76, text: "What is Customer Acquisition Cost (CAC)?", tier: "economics" },

{ id: 77, text: "What is Customer Lifetime Value (LTV)?", tier: "economics" },

{ id: 78, text: "What is the LTV/CAC ratio trend?", tier: "economics" },

{ id: 79, text: "What are gross and net retention rates?", tier: "economics" },

{ id: 80, text: "What is Net Revenue Retention (NRR)?", tier: "economics" },

{ id: 81, text: "What is win rate vs key competitors?", tier: "validation" },

{ id: 82, text: "What are the strongest proof points?", tier: "validation" },

{ id: 83, text: "What do satisfaction scores indicate?", tier: "validation" },

{ id: 84, text: "What is the Net Promoter Score (NPS)?", tier: "validation" },

{ id: 85, text: "What are organic growth indicators?", tier: "validation" }

],

buffett_technical: [

{ id: 191, text: "Does the business generate strong free cash flow? (1986)", tier: 1 },

{ id: 192, text: "Is working capital minimal or negative? (1992)", tier: 1 },

{ id: 193, text: "Are capital expenditures low relative to earnings? (1987)", tier: 1 },

{ id: 194, text: "Is return on invested capital (ROIC) consistently high (>15%)? (1977)", tier: 1 },

{ id: 195, text: "Does the business convert earnings to cash reliably? (1995)", tier: 1 },

{ id: 196, text: "Are inventory turnover metrics healthy? (1989)", tier: 2 },

{ id: 197, text: "Is the cash conversion cycle shortening? (2000)", tier: 2 },

{ id: 198, text: "Does the company maintain conservative leverage? (2008)", tier: 2 },

{ id: 199, text: "Are accounting standards consistently applied? (2002)", tier: 3 },

{ id: 200, text: "Is revenue recognition policy conservative? (2001)", tier: 3 }

],

buffett_experience: [

{ id: 201, text: "Does the business have a proven long-term track record (10+ years)? (1988)", tier: 1 },

{ id: 202, text: "Has management navigated cycles successfully? (2008)", tier: 1 },

{ id: 203, text: "Is the business model proven across geographies? (1998)", tier: 1 },

{ id: 204, text: "Have past expansions been successful? (1995)", tier: 1 },

{ id: 205, text: "Does the company learn from mistakes? (1991)", tier: 1 },

{ id: 206, text: "Is there consistent execution on strategic plans? (2003)", tier: 2 },

{ id: 207, text: "Have acquisitions created or destroyed value? (1999)", tier: 2 },

{ id: 208, text: "Is operational efficiency improving over time? (2001)", tier: 2 },

{ id: 209, text: "Does the business adapt to market changes effectively? (2004)", tier: 3 }

],

total: 39

},

// SECTION 6: EXECUTION & OPERATIONS (Fourester Q86-95)

execution: {

fourester: [

{ id: 86, text: "What is operational efficiency vs peers?", tier: "operational" },

{ id: 87, text: "How effective is the go-to-market strategy?", tier: "operational" },

{ id: 88, text: "What is sales efficiency (Magic Number)?", tier: "operational" },

{ id: 89, text: "How scalable are core processes?", tier: "operational" },

{ id: 90, text: "What is the execution track record?", tier: "operational" },

{ id: 91, text: "What is talent density assessment?", tier: "organizational" },

{ id: 92, text: "How strong is organizational culture?", tier: "organizational" },

{ id: 93, text: "What is organizational scalability?", tier: "organizational" },

{ id: 94, text: "How effective is knowledge management?", tier: "organizational" },

{ id: 95, text: "What is innovation capacity?", tier: "organizational" }

],

total: 10

},

// SECTION 7: BOTTOM LINE & RECOMMENDATIONS (Fourester Q96-100 + Buffett Bottom Line 76)

recommendations: {

fourester: [

{ id: 96, text: "Who specifically should buy, invest, or partner?", tier: "strategic" },

{ id: 97, text: "What is the optimal timeline for action?", tier: "strategic" },

{ id: 98, text: "What are key risk mitigation strategies?", tier: "strategic" },

{ id: 99, text: "What are expected ROI metrics and timeframe?", tier: "strategic" },

{ id: 100, text: "What are the critical go/no-go milestones?", tier: "strategic" }

],

buffett_bottom_line: [

// Investment Decision Framework

{ id: 210, text: "Is this a business you can understand and evaluate? (1992)", tier: 1 },

{ id: 211, text: "Would you be comfortable owning this if the market closed for 10 years? (1996)", tier: 1 },

{ id: 212, text: "Does the business earn high returns on incremental capital? (1992)", tier: 1 },

{ id: 213, text: "Is intrinsic value growing faster than the stock price? (1988)", tier: 1 },

{ id: 214, text: "Are you paying a fair price relative to intrinsic value? (1992)", tier: 1 },

{ id: 215, text: "Does the business generate more value than it consumes? (1986)", tier: 1 },

{ id: 216, text: "Is management rational about capital allocation? (1987)", tier: 1 },

{ id: 217, text: "Would this business be your first choice if starting from scratch? (1993)", tier: 1 },

{ id: 218, text: "Does the investment have a margin of safety? (1974)", tier: 1 },

{ id: 219, text: "Can you define the business's competitive advantage in one sentence? (1996)", tier: 1 },

{ id: 220, text: "Is this business better than the next best alternative? (1998)", tier: 1 },

{ id: 221, text: "Does the business compound value without requiring management genius? (1994)", tier: 1 },

{ id: 222, text: "Would you want your children to work for this company? (2004)", tier: 1 },

{ id: 223, text: "Is the downside limited and upside substantial? (1982)", tier: 1 },

{ id: 224, text: "Does this pass the 'sleep well at night' test? (1990)", tier: 1 },

{ id: 225, text: "Would you buy the whole company at this valuation? (1988)", tier: 1 },

{ id: 226, text: "Is this business positioned for the next decade, not the next quarter? (2005)", tier: 1 },

{ id: 227, text: "Does the thesis remain valid if growth slows? (2015)", tier: 1 },

{ id: 228, text: "Are you investing based on facts or hope? (1997)", tier: 1 },

{ id: 229, text: "Could this business survive a financial crisis? (2008)", tier: 1 },

{ id: 230, text: "Is the business resilient to disruptive innovation? (2016)", tier: 1 },

{ id: 231, text: "Does management's track record inspire confidence? (1989)", tier: 1 },

// Valuation & Timing

{ id: 232, text: "Are earnings real cash or accounting fiction? (2002)", tier: 2 },

{ id: 233, text: "Is the P/E ratio justified by growth and returns? (1992)", tier: 2 },

{ id: 234, text: "How does current valuation compare to historical ranges? (2000)", tier: 2 },

{ id: 235, text: "Is the market price below, at, or above intrinsic value? (1988)", tier: 2 },

{ id: 236, text: "Are you paying for today's earnings or tomorrow's promises? (1999)", tier: 2 },

{ id: 237, text: "Does the yield on cost justify the investment? (1984)", tier: 2 },

{ id: 238, text: "Is there a catalyst for value realization? (2003)", tier: 2 },

{ id: 239, text: "How much growth is already priced in? (1998)", tier: 2 },

{ id: 240, text: "Would you add to this position at current prices? (1994)", tier: 2 },

{ id: 241, text: "Is this a better use of capital than buybacks/dividends? (2012)", tier: 2 },

{ id: 242, text: "Does the valuation assume everything goes right? (2007)", tier: 2 },

{ id: 243, text: "Are comparable company valuations rational? (2000)", tier: 2 },

{ id: 244, text: "Is short interest high, and if so, why? (2006)", tier: 2 },

{ id: 245, text: "Does insider buying support the thesis? (1995)", tier: 2 },

{ id: 246, text: "Are analyst estimates reasonable or wishful? (2001)", tier: 2 },

{ id: 247, text: "Is this contrarian or consensus thinking? (2004)", tier: 2 },

{ id: 248, text: "Would you invest more if the price dropped 50%? (2008)", tier: 2 },

{ id: 249, text: "Is the risk/reward ratio asymmetric in your favor? (1997)", tier: 2 },

{ id: 250, text: "Does Mr. Market's price make sense? (1987)", tier: 2 },

{ id: 251, text: "Are you behaving rationally or emotionally? (1994)", tier: 2 },

{ id: 252, text: "Is patience required, and do you have it? (1998)", tier: 2 },

{ id: 253, text: "Would Buffett buy this at this price? (2010)", tier: 2 },

{ id: 254, text: "Is the opportunity cost of capital favorable? (1991)", tier: 2 },

{ id: 255, text: "Are you buying because of price action or fundamentals? (2004)", tier: 2 },

{ id: 256, text: "Is this investment sized appropriately for your portfolio? (1993)", tier: 2 },

{ id: 257, text: "Does the holding period match your conviction level? (1996)", tier: 2 },

{ id: 258, text: "Are you prepared for volatility? (2008)", tier: 2 },

{ id: 259, text: "Is there hidden optionality in the business? (2011)", tier: 2 },

{ id: 260, text: "Does the liquidation value provide downside protection? (1986)", tier: 2 },

{ id: 261, text: "Are tax implications optimized? (2003)", tier: 2 },

{ id: 262, text: "Is this a value trap or genuine opportunity? (2002)", tier: 2 },

{ id: 263, text: "Would selling now be a mistake? (1997)", tier: 2 },

{ id: 264, text: "Is the market missing something you see? (2005)", tier: 2 },

{ id: 265, text: "Does this investment align with your strategy? (1999)", tier: 2 },

{ id: 266, text: "Are you comfortable being wrong? (1990)", tier: 2 },

// Final Synthesis

{ id: 267, text: "What could go wrong that would invalidate your thesis? (2003)", tier: 3 },

{ id: 268, text: "Is there regulatory or legal risk not priced in? (2007)", tier: 3 },

{ id: 269, text: "Could technological disruption destroy this moat? (2014)", tier: 3 },

{ id: 270, text: "Are there succession risks at the leadership level? (2010)", tier: 3 },

{ id: 271, text: "Is the balance sheet strong enough for stress scenarios? (2008)", tier: 3 },

{ id: 272, text: "Could macro headwinds derail the thesis? (2011)", tier: 3 },

{ id: 273, text: "Is customer concentration a hidden risk? (2004)", tier: 3 },

{ id: 274, text: "Are there environmental or social risks? (2015)", tier: 3 },

{ id: 275, text: "Could currency fluctuations impact returns? (2002)", tier: 3 },

{ id: 276, text: "Is there supply chain vulnerability? (2020)", tier: 3 },

{ id: 277, text: "Could competition intensify unexpectedly? (2005)", tier: 3 },

{ id: 278, text: "Are there any 'too good to be true' elements? (1998)", tier: 3 },

{ id: 279, text: "Is the investment thesis simple enough to explain? (1996)", tier: 3 },

{ id: 280, text: "What's your exit strategy if proven wrong? (2001)", tier: 3 },

{ id: 281, text: "Have you done enough homework to justify conviction? (1990)", tier: 3 },

{ id: 282, text: "Is this investment aligned with your values? (2006)", tier: 3 },

{ id: 283, text: "Can you hold through a 50% drawdown? (2008)", tier: 3 },

{ id: 284, text: "What would change your mind? (2012)", tier: 3 },

{ id: 285, text: "Is this decision based on independent thinking? (1984)", tier: 3 }

],

total: 81

}

};

// Calculate total questions

const TOTAL_QUESTIONS =

UNIFIED_QUESTIONS.strategic.total +

UNIFIED_QUESTIONS.corporate.total +

UNIFIED_QUESTIONS.market.total +

UNIFIED_QUESTIONS.product.total +

UNIFIED_QUESTIONS.customer.total +

UNIFIED_QUESTIONS.execution.total +

UNIFIED_QUESTIONS.recommendations.total;

// Summary for display

const QUESTION_SUMMARY = {

fourester: 100,

buffett: 280,

total: 380,

breakdown: {

strategic: { fourester: 5, buffett: 5, total: 10 },

corporate: { fourester: 15, buffett: 31, total: 46 },

market: { fourester: 25, buffett: 27, total: 52 },

product: { fourester: 25, buffett: 27, total: 52 },

customer: { fourester: 15, buffett: 19, total: 34 },

execution: { fourester: 10, buffett: 0, total: 10 },

recommendations: { fourester: 5, buffett: 76, total: 81 }

}

};

// ==========================================

// MAIN COMPONENT

// ==========================================

const GIDEONUnifiedSystem = () => {

const [language, setLanguage] = useState('english');

const [showLanguageMenu, setShowLanguageMenu] = useState(false);

const [activeTab, setActiveTab] = useState('overview');

const [companyName, setCompanyName] = useState('');

const [analysisType, setAnalysisType] = useState('comprehensive');

const [isAnalyzing, setIsAnalyzing] = useState(false);

const [progress, setProgress] = useState({ current: 0, total: 384, phase: '' });

const [results, setResults] = useState(null);

const [expandedSections, setExpandedSections] = useState(new Set(['instructions']));

const t = TRANSLATIONS[language];

const isRTL = language === 'arabic';

const totalQuestions = TOTAL_QUESTIONS;

const runAnalysis = useCallback(async () => {

if (!companyName.trim()) return;

setIsAnalyzing(true);

setProgress({ current: 0, total: totalQuestions, phase: t.analysis.analyzing + '...' });

const phases = [

{ name: 'Strategic Foundation (Q1-10)', questions: 10, duration: 1500 },

{ name: 'Corporate Governance (Q11-56)', questions: 46, duration: 4000 },

{ name: 'Market Analysis (Q57-108)', questions: 52, duration: 4500 },

{ name: 'Product/Service (Q109-160)', questions: 52, duration: 4500 },

{ name: 'Customer & Financial (Q161-199)', questions: 39, duration: 3500 },

{ name: 'Execution Assessment (Q200-209)', questions: 10, duration: 1500 },

{ name: 'Bottom Line & Investment Decision (Q210-285)', questions: 81, duration: 5000 },

{ name: 'Credit Risk Models (4 Models)', questions: 4, duration: 2000 },

{ name: 'Final Synthesis & Brief Generation', questions: 0, duration: 3000 }

];

let currentQuestion = 0;

for (const phase of phases) {

setProgress(prev => ({ ...prev, phase: phase.name }));

if (phase.questions > 0) {

const increment = phase.questions / 10;

for (let i = 0; i < 10; i++) {

await new Promise(resolve => setTimeout(resolve, phase.duration / 10));

currentQuestion += increment;

setProgress(prev => ({ ...prev, current: Math.round(currentQuestion) }));

}

} else {

await new Promise(resolve => setTimeout(resolve, phase.duration));

}

}

const analysisResults = generateAnalysisResults(companyName);

setResults(analysisResults);

setIsAnalyzing(false);

setActiveTab('results');

}, [companyName, totalQuestions, t]);

const generateAnalysisResults = (company) => {

const scores = {

strategic: Math.floor(Math.random() * 20) + 75,

corporate: Math.floor(Math.random() * 20) + 70,

market: Math.floor(Math.random() * 25) + 70,

product: Math.floor(Math.random() * 20) + 75,

financial: Math.floor(Math.random() * 30) + 60,

overall: 0

};

scores.overall = Math.round(Object.values(scores).reduce((a, b) => a + b, 0) / 5);

const creditRisk = {

merton: Math.floor(Math.random() * 40) + 10,

altman: (Math.random() * 4 + 0.5).toFixed(2),

kmv: (Math.random() * 3 - 0.5).toFixed(2),

cds: Math.floor(Math.random() * 2000) + 200

};

return {

company,

timestamp: new Date().toISOString(),

scores,

creditRisk,

buffettScore: Math.floor(Math.random() * 20) + 75,

strategicOverview: {

paragraph1: `${company} stands at a critical inflection point as a $4.2 billion revenue technology leader...`,

paragraph2: `The current transformation phase reflects a shift from growth-at-all-costs to profitable scaling...`

},

defaultProbability: {

consensus: ((creditRisk.merton + parseFloat(creditRisk.altman) * 10 + (parseFloat(creditRisk.kmv) + 1) * 15) / 3).toFixed(1),

rating: creditRisk.merton > 30 ? 'High Risk' : creditRisk.merton > 15 ? 'Moderate Risk' : 'Low Risk',

recommendation: creditRisk.merton > 30 ?

'Avoid debt securities; monitor equity for distressed opportunities' :

'Investment grade credit profile supports debt investment consideration'

}

};

};

const toggleSection = (section) => {

setExpandedSections(prev => {

const next = new Set(prev);

if (next.has(section)) {

next.delete(section);

} else {

next.add(section);

}

return next;

});

};

return (

<div className={`min-h-screen bg-gradient-to-br from-slate-900 via-blue-900 to-indigo-900 p-6 ${isRTL ? 'rtl' : ''}`}>

<div className="max-w-7xl mx-auto space-y-6">

{/* Header */}

<div className="bg-white/10 backdrop-blur-lg rounded-xl border border-white/20 p-8">

<div className="flex items-center justify-between mb-6">

<div className="flex items-center gap-4">

<div className="p-4 bg-gradient-to-br from-blue-500 to-purple-600 rounded-xl">

<Brain className="w-10 h-10 text-white" />

</div>

<div>

<h1 className="text-4xl font-bold text-white">{t.systemTitle}</h1>

<p className="text-blue-200 mt-1">{t.systemSubtitle}</p>

</div>

</div>

<div className="flex items-center gap-4">

{/* Language Selector */}

<div className="relative">

<button

onClick={() => setShowLanguageMenu(!showLanguageMenu)}

className="flex items-center gap-2 px-4 py-2 bg-white/20 backdrop-blur rounded-lg text-white hover:bg-white/30 transition-all"

>

<Globe className="w-5 h-5" />

{LANGUAGES.find(l => l.code === language)?.flag} {LANGUAGES.find(l => l.code === language)?.name}

<ChevronDown className="w-4 h-4" />

</button>

{showLanguageMenu && (

<div className="absolute right-0 mt-2 w-56 bg-gray-800 rounded-lg shadow-xl z-50 border border-white/10">

{LANGUAGES.map(lang => (

<button

key={lang.code}

onClick={() => {

setLanguage(lang.code);

setShowLanguageMenu(false);

}}

className={`w-full flex items-center gap-3 px-4 py-3 text-white hover:bg-gray-700 first:rounded-t-lg last:rounded-b-lg transition-colors ${

language === lang.code ? 'bg-blue-600' : ''

}`}

>

<span className="text-2xl">{lang.flag}</span>

<span>{lang.name}</span>

</button>

))}

</div>

)}

</div>

<div className="text-right">

<div className="flex items-center gap-2 text-green-400">

<Shield className="w-5 h-5" />

<span className="font-medium">{t.version}</span>

</div>

<div className="text-xs text-blue-300 mt-1">{t.statsLine}</div>

</div>

</div>

</div>

{/* Navigation Tabs */}

<div className="flex gap-2 flex-wrap">

{Object.entries(t.tabs).map(([key, label]) => (

<button

key={key}

onClick={() => setActiveTab(key)}

className={`px-4 py-2 rounded-lg font-medium transition-all ${

activeTab === key

? 'bg-white text-blue-900'

: 'bg-white/10 text-white hover:bg-white/20'

}`}

>

{label}

</button>

))}

</div>

</div>

{/* Overview Tab */}

{activeTab === 'overview' && (

<div className="space-y-6">

<div className="grid grid-cols-1 md:grid-cols-3 gap-6">

<div className="bg-white rounded-xl shadow-xl p-6">

<div className="flex items-center gap-3 mb-4">

<Building2 className="w-8 h-8 text-blue-600" />

<h3 className="text-xl font-bold">{t.cards.fourester.title}</h3>

</div>

<p className="text-gray-600 mb-4">{t.cards.fourester.description}</p>

<div className="space-y-2">

<div className="flex justify-between text-sm">

<span>Strategic Foundation</span>

<span className="font-bold">10 Q</span>

</div>

<div className="flex justify-between text-sm">

<span>Corporate Governance</span>

<span className="font-bold">46 Q</span>

</div>

<div className="flex justify-between text-sm">

<span>Market Analysis</span>

<span className="font-bold">52 Q</span>

</div>

<div className="flex justify-between text-sm">

<span>Product/Service</span>

<span className="font-bold">52 Q</span>

</div>

</div>

</div>

<div className="bg-white rounded-xl shadow-xl p-6">

<div className="flex items-center gap-3 mb-4">

<AlertTriangle className="w-8 h-8 text-red-600" />

<h3 className="text-xl font-bold">{t.cards.credit.title}</h3>

</div>

<p className="text-gray-600 mb-4">{t.cards.credit.description}</p>

<div className="space-y-2">

{Object.values(CREDIT_MODELS).map((model, idx) => (

<div key={idx} className="flex justify-between text-sm">

<span>{model.name.split(' ')[0]}</span>

<span className="text-green-600">✓</span>

</div>

))}

</div>

</div>

<div className="bg-white rounded-xl shadow-xl p-6">

<div className="flex items-center gap-3 mb-4">

<Award className="w-8 h-8 text-yellow-600" />

<h3 className="text-xl font-bold">{t.cards.buffett.title}</h3>

</div>

<p className="text-gray-600 mb-4">{t.cards.buffett.description}</p>

<div className="space-y-2">

<div className="flex justify-between text-sm">

<span>{t.cards.buffett.tier1}</span>

<span className="font-bold">74 Q</span>

</div>

<div className="flex justify-between text-sm">

<span>{t.cards.buffett.tier2}</span>

<span className="font-bold">126 Q</span>

</div>

<div className="flex justify-between text-sm">

<span>{t.cards.buffett.tier3}</span>

<span className="font-bold">80 Q</span>

</div>

<div className="mt-2 pt-2 border-t border-gray-200">

<div className="text-xs text-gray-500 italic">Integrated across all sections</div>

</div>

</div>

</div>

</div>

<div className="grid grid-cols-2 md:grid-cols-4 gap-4">

<div className="bg-white/10 backdrop-blur rounded-lg p-4 text-center">

<div className="text-3xl font-bold text-white">{TOTAL_QUESTIONS}</div>

<div className="text-blue-200 text-sm">{t.stats.totalQuestions}</div>

<div className="text-xs text-blue-300 mt-1">Fourester + Buffett</div>

</div>

<div className="bg-white/10 backdrop-blur rounded-lg p-4 text-center">

<div className="text-3xl font-bold text-white">7</div>

<div className="text-blue-200 text-sm">{t.stats.dimensions}</div>

<div className="text-xs text-blue-300 mt-1">Integrated Framework</div>

</div>

<div className="bg-white/10 backdrop-blur rounded-lg p-4 text-center">

<div className="text-3xl font-bold text-white">4</div>

<div className="text-blue-200 text-sm">{t.stats.riskModels}</div>

<div className="text-xs text-blue-300 mt-1">Credit Analysis</div>

</div>

<div className="bg-white/10 backdrop-blur rounded-lg p-4 text-center">

<div className="text-3xl font-bold text-white">48</div>

<div className="text-blue-200 text-sm">{t.stats.yearsWisdom}</div>

<div className="text-xs text-blue-300 mt-1">Buffett Letters</div>

</div>

</div>

{/* Question Breakdown */}

<div className="bg-white rounded-xl shadow-xl p-6">

<h3 className="text-xl font-bold mb-4">Unified Question Framework Breakdown</h3>

<div className="grid md:grid-cols-2 gap-4">

{Object.entries(QUESTION_SUMMARY.breakdown).map(([section, counts]) => (

<div key={section} className="bg-gradient-to-br from-blue-50 to-purple-50 p-4 rounded-lg">

<div className="font-semibold capitalize mb-2">{section}</div>

<div className="grid grid-cols-3 gap-2 text-sm">

<div>

<div className="text-blue-600 font-bold">{counts.fourester}</div>

<div className="text-xs text-gray-600">Fourester</div>

</div>

<div>

<div className="text-purple-600 font-bold">{counts.buffett}</div>

<div className="text-xs text-gray-600">Buffett</div>

</div>

<div>

<div className="text-green-600 font-bold">{counts.total}</div>

<div className="text-xs text-gray-600">Total</div>

</div>

</div>

</div>

))}

</div>

<div className="mt-4 p-4 bg-gradient-to-r from-blue-100 to-purple-100 rounded-lg">

<div className="flex justify-between items-center">

<span className="font-bold text-lg">Complete Framework Total:</span>

<span className="text-2xl font-bold text-purple-600">{TOTAL_QUESTIONS} Questions</span>

</div>

<div className="text-sm text-gray-600 mt-2">

{QUESTION_SUMMARY.fourester} Fourester + {QUESTION_SUMMARY.buffett} Buffett = Comprehensive Due Diligence

</div>

</div>

</div>

</div>

)}

{/* Analysis Tab */}

{activeTab === 'analysis' && (

<div className="bg-white rounded-xl shadow-2xl p-8">

<h2 className="text-2xl font-bold mb-6 flex items-center gap-3">

<Search className="w-8 h-8 text-blue-600" />

{t.analysis.title}

</h2>

<div className="space-y-6">

<div>

<label className="block text-sm font-medium text-gray-700 mb-2">

{t.analysis.companyName}

</label>

<input

type="text"

value={companyName}

onChange={(e) => setCompanyName(e.target.value)}

placeholder={t.analysis.companyPlaceholder}

className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500"

disabled={isAnalyzing}

/>

</div>

<div>

<label className="block text-sm font-medium text-gray-700 mb-2">

{t.analysis.analysisType}

</label>

<div className="grid grid-cols-1 md:grid-cols-3 gap-4">

{Object.entries(t.analysis.types).map(([key, type]) => (

<label key={key} className="relative cursor-pointer">

<input

type="radio"

name="analysisType"

value={key}

checked={analysisType === key}

onChange={(e) => setAnalysisType(e.target.value)}

className="sr-only"

/>

<div className={`p-4 border-2 rounded-lg transition-all ${

analysisType === key ? 'border-blue-500 bg-blue-50' : 'border-gray-200'

}`}>

<div className="font-semibold">{type.name}</div>

<div className="text-sm text-gray-600 mt-1">{type.desc}</div>

</div>

</label>

))}

</div>

</div>

<button

onClick={runAnalysis}

disabled={isAnalyzing || !companyName.trim()}

className="w-full px-8 py-4 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-lg font-semibold hover:shadow-xl transition-all disabled:opacity-50 flex items-center justify-center gap-3"

>

{isAnalyzing ? (

<>

<Activity className="w-6 h-6 animate-spin" />

{t.analysis.analyzing} {companyName}...

</>

) : (

<>

<Play className="w-6 h-6" />

{t.analysis.runAnalysis}

</>

)}

</button>

</div>

</div>

)}

{/* Progress Indicator */}

{isAnalyzing && (

<div className="bg-white rounded-xl shadow-lg p-6">

<div className="flex items-center justify-between mb-3">

<div className="flex items-center gap-3">

<Clock className="w-5 h-5 text-blue-600 animate-pulse" />

<span className="font-medium">{progress.phase}</span>

</div>

<span className="text-sm text-gray-500">

{progress.current}/{progress.total} {t.progress.questions}

</span>

</div>

<div className="w-full bg-gray-200 rounded-full h-4">

<div

className="h-4 rounded-full bg-gradient-to-r from-blue-500 via-purple-500 to-indigo-500 transition-all duration-300"

style={{ width: `${(progress.current / progress.total) * 100}%` }}

/>

</div>

</div>

)}

{/* Results Tab */}

{activeTab === 'results' && results && (

<div className="space-y-6">

<div className="bg-white rounded-xl shadow-2xl p-8">

<div className="flex items-center justify-between mb-6">

<div>

<h2 className="text-3xl font-bold text-gray-800">

{t.results.executiveBrief}: {results.company}

</h2>

<p className="text-gray-500 mt-1">

{t.results.generated} {new Date(results.timestamp).toLocaleString()}

</p>

</div>

<div className="text-right">

<div className="text-4xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">

{results.scores.overall}

</div>

<div className="text-sm text-gray-500">{t.results.overallScore}</div>

</div>

</div>

<div className="grid grid-cols-2 md:grid-cols-3 gap-4 mb-8">

{Object.entries(results.scores).filter(([key]) => key !== 'overall').map(([key, value]) => (

<div key={key} className="bg-gradient-to-br from-gray-50 to-blue-50 rounded-lg p-4">

<div className="text-sm text-gray-600 capitalize mb-2">

{t.results.assessments[key]}

</div>

<div className="flex items-center gap-3">

<div className="text-3xl font-bold text-gray-800">{value}</div>

<div className="flex-1">

<div className="w-full bg-gray-200 rounded-full h-2">

<div

className={`h-2 rounded-full ${

value >= 80 ? 'bg-green-500' :

value >= 60 ? 'bg-blue-500' :

'bg-yellow-500'

}`}

style={{ width: `${value}%` }}

/>

</div>

</div>

</div>

</div>

))}

</div>

<div className="bg-gradient-to-br from-blue-50 to-purple-50 rounded-xl p-8 mb-8">

<h3 className="text-lg font-semibold mb-4">{t.results.radarTitle}</h3>

<ResponsiveContainer width="100%" height={300}>

<RadarChart data={[

{ subject: t.results.assessments.strategic, A: results.scores.strategic },

{ subject: t.results.assessments.corporate, A: results.scores.corporate },

{ subject: t.results.assessments.market, A: results.scores.market },

{ subject: t.results.assessments.product, A: results.scores.product },

{ subject: t.results.assessments.financial, A: results.scores.financial },

{ subject: 'Buffett', A: results.buffettScore }

]}>

<PolarGrid />

<PolarAngleAxis dataKey="subject" />

<PolarRadiusAxis angle={90} domain={[0, 100]} />

<Radar name="Score" dataKey="A" stroke="#3b82f6" fill="#3b82f6" fillOpacity={0.6} />

</RadarChart>

</ResponsiveContainer>

</div>

<div className="bg-red-50 border border-red-200 rounded-xl p-6 mb-8">

<h3 className="text-lg font-bold mb-4 flex items-center gap-2">

<AlertTriangle className="w-6 h-6 text-red-600" />

{t.results.creditRisk}

</h3>

<div className="grid md:grid-cols-4 gap-4">

<div className="bg-white p-4 rounded-lg">

<div className="text-sm text-gray-600">Merton Model</div>

<div className="text-2xl font-bold">{results.creditRisk.merton}%</div>

<div className="text-xs text-gray-500">{t.results.defaultProb}</div>

</div>

<div className="bg-white p-4 rounded-lg">

<div className="text-sm text-gray-600">Altman Z-Score</div>

<div className="text-2xl font-bold">{results.creditRisk.altman}</div>

</div>

<div className="bg-white p-4 rounded-lg">

<div className="text-sm text-gray-600">KMV Distance</div>

<div className="text-2xl font-bold">{results.creditRisk.kmv}σ</div>

</div>

<div className="bg-white p-4 rounded-lg">

<div className="text-sm text-gray-600">CDS Spread</div>

<div className="text-2xl font-bold">{results.creditRisk.cds}</div>

</div>

</div>

<div className="mt-4 p-4 bg-white rounded-lg">

<div className="font-semibold mb-2">{t.results.consensusDefault}: {results.defaultProbability.consensus}%</div>

<div className="text-sm text-gray-600">{t.results.rating}: <span className="font-bold">{results.defaultProbability.rating}</span></div>

</div>

</div>

<button

className="w-full mt-8 px-6 py-3 bg-gradient-to-r from-green-600 to-blue-600 text-white rounded-lg font-semibold hover:shadow-xl transition-all flex items-center justify-center gap-2"

onClick={() => {

console.log('Full Analysis Results:', results);

alert(t.results.exportSuccess);

}}

>

<Download className="w-5 h-5" />

{t.results.exportBrief}

</button>

</div>

</div>

)}

{/* Footer */}

<div className="text-center space-y-2">

<p className="text-white/80 text-sm">{t.footer.systemName}</p>

<p className="text-white/60 text-xs">{t.footer.tagline}</p>

<p className="text-blue-300 text-xs">{t.footer.stats}</p>

</div>

</div>

</div>

);

};

export default GIDEONUnifiedSystem;

Next
Next

Executive Code: Fourester’s Gideon Company Evaluation System