/* eslint-disable */
/* global React, ReactDOM, useLang, LangProvider, NavBar, Footer */
/* docs.jsx — Documentation page. Self-contained copy + components. */

/* ─────────────────────────────────────────────────────────────────
   COPY — ES (rioplatense) + EN.
   ───────────────────────────────────────────────────────────────── */

const DOCS = {
  es: {
    heroEyebrow: 'Documentación',
    heroH1: 'Documentación de Teramot.',
    heroSub: 'Cómo se conecta Teramot a tus datos, cómo construyen los agentes tus pipelines, y cómo consultás todo desde Claude, ChatGPT u otra IA vía MCP.',

    toc: [
      'Qué es Teramot',
      'Cómo funciona',
      'Conceptos clave',
      'Fuentes soportadas',
      'Cómo usar Teramot',
      'Precios',
      'Seguridad',
      'Preguntas frecuentes'
    ],

    s1: {
      lede: 'Teramot es una plataforma de infraestructura de datos potenciada por IA. Se conecta directamente a tus bases de datos, data warehouses, ERPs, CRMs y APIs, y usa un sistema de agentes especializados para construir pipelines de datos productivos — sin data engineers ni meses de implementación.',
      body: [
        'En vez de escribir SQL a mano o esperar al equipo de ingeniería, vos describís lo que necesitás en lenguaje natural. Los agentes de Teramot analizan tu esquema, detectan problemas de calidad, proponen transformaciones y generan SQL transparente y auditable que podés revisar antes de desplegarlo.',
        'El resultado es una capa de datos productiva — la llamamos Gold Table — consultable inmediatamente desde cualquier asistente de IA (Claude, ChatGPT), herramienta de BI o aplicación, vía MCP (Model Context Protocol).'
      ],
      designedForLabel: 'Teramot está pensado para:',
      designedFor: [
        'CEOs y líderes de negocio que quieren que la IA entienda realmente su empresa',
        'Líderes de Innovación que necesitan escalar el uso de IA en toda la organización',
        'Gerentes y directores que toman decisiones y necesitan datos confiables al instante',
        'Analistas de datos y equipos de BI que necesitan datasets limpios y pipelines productivos sin esperar a ingeniería',
        'Equipos de IA que necesitan datos estructurados y confiables para alimentar aplicaciones con LLMs'
      ],
      callout: 'Teramot es <strong>read-only</strong> — nunca escribe en tus sistemas fuente. Está certificado <strong>SOC 2 Type II</strong> y puede desplegarse on-premise para organizaciones con requisitos estrictos de residencia de datos.'
    },

    s2: {
      lede: 'Teramot opera en cinco etapas:',
      steps: [
        { title: 'Conectás tus fuentes',
          body: 'Conectás Teramot directamente a tu warehouse o bases de datos. Sin migración. Sin abstracciones. Teramot trabaja sobre tus datos reales y en vivo. Lee tu esquema automáticamente y cataloga tablas y relaciones.',
          listLabel: 'Tipos de fuente soportadas:',
          list: ['Bases relacionales (PostgreSQL, MySQL, SQL Server, Oracle)', 'Warehouses cloud (BigQuery, Snowflake, Redshift)', 'Aplicaciones de negocio (Salesforce, SAP HANA)', 'Planillas (CSV, Google Sheets, Excel)']
        },
        { title: 'Conectás el MCP de Teramot a tu IA de elección',
          body: 'Teramot se integra vía MCP (Model Context Protocol) con Claude, Claude Code, ChatGPT, Codex, Cursor, Gemini y cualquier IA que soporte el estándar. La conexión es segura y vos controlás exactamente a qué tiene acceso.',
          extra: 'Una vez conectada, tu IA usa Teramot para entender cómo funciona tu negocio: qué tablas existen, cómo se relacionan, qué significan. Con ese conocimiento, genera tablas con cálculos complejos, construye métricas de negocio reales y produce capas de datos listas para análisis — todo trabajando sobre tus datos reales, no sobre supuestos.' },
        { title: 'Planteás tus objetivos',
          body: 'Le decís a tu IA lo que querés lograr, con el lenguaje con el que pensás el negocio. No hace falta SQL ni especificaciones técnicas. Por ejemplo: <em>"Quiero entender por qué bajó la retención en el último trimestre"</em> o <em>"Necesito saber qué productos tienen mayor margen real después de logística."</em>',
          extra: 'La IA, conectada a tus datos vía MCP, analiza tu esquema real y los objetivos planteados para armar el plan de transformación.' },
        { title: '50+ agentes especializados arman el pipeline',
          body: 'El sistema multi-agente patentado toma el control. Los agentes trabajan en tres capas:',
          list: [
            '<strong>Bronze:</strong> ingesta cruda — los datos llegan tal como están en tu sistema fuente',
            '<strong>Silver:</strong> limpieza y estandarización — deduplicación, casteo, manejo de nulos, resolución de joins',
            '<strong>Gold:</strong> lógica de negocio — agregaciones, cálculos, KPIs, tablas listas para análisis'
          ],
          extra: 'Los agentes generan SQL legible y transparente en cada paso. Podés inspeccionar cada query antes de que corra.' },
        { title: 'Revisás y desplegás',
          body: 'Revisás el SQL generado y el modelo de datos. Una vez aprobado, Teramot despliega pipelines permanentes, reutilizables y refrescados de forma incremental directamente en tu arquitectura.',
          extra: 'Las Gold Tables desplegadas quedan disponibles inmediatamente vía MCP para consultar desde Claude, ChatGPT o cualquier asistente — y se pueden conectar a herramientas de BI como Metabase, Looker o Power BI.' }
      ],
      compareLabel: 'Comparación de tiempos',
      compareLines: [
        ['Enfoque tradicional', 'Necesidad → exploración → escritura de SQL → iteraciones → creación de tabla → dashboard. <strong>Semanas.</strong>'],
        ['Con Teramot', 'Necesidad → planteo de objetivos → los agentes construyen → capas en producción. <strong>Minutos.</strong>']
      ]
    },

    s3: {
      lede: 'El vocabulario que usamos en toda la plataforma.',
      concepts: [
        { title: 'Gold Tables',
          body: 'La salida final, lista para el negocio, del pipeline de Teramot. Contienen datos transformados, agregados y calculados — listos para análisis sin procesamiento adicional. Ejemplos: <code>customer_360</code>, <code>monthly_revenue_by_channel</code>, <code>sales_summary_with_margins</code>. Cada Gold Table es un activo permanente y refrescado de forma incremental.' },
        { title: 'Data Sources',
          body: 'Cualquier tabla o dataset crudo al que Teramot se conecta desde tus sistemas fuente: bases de datos, ERPs, CRMs, planillas o APIs. Cada tabla conectada cuenta como un data source.' },
        { title: 'Capas Bronze / Silver / Gold',
          body: 'Teramot estructura la transformación en tres capas siguiendo arquitectura Lakehouse moderna. <strong>Bronze:</strong> réplica exacta de la fuente. <strong>Silver:</strong> datos limpios, estandarizados y unidos. <strong>Gold:</strong> tablas agregadas y calculadas, listas para el negocio.' },
        { title: 'MCP (Model Context Protocol)',
          body: 'Estándar abierto que integra asistentes de IA con fuentes de datos estructuradas en tiempo real. Teramot se conecta vía MCP con Claude, ChatGPT o cualquier IA compatible — no para hacer búsquedas simples, sino para que la IA construya pipelines, calcule métricas y razone sobre los datos reales del negocio, sin alucinar ni inventar.' },
        { title: 'Prompt Generator',
          body: 'Asistente de IA dentro de Teramot que te ayuda a describir tus necesidades de datos en lenguaje natural. Sugiere transformaciones, identifica problemas de calidad y genera las instrucciones que manejan los pipelines automatizados.' },
        { title: 'Teramot Agent',
          body: 'La interfaz de Teramot para trabajar con tu infraestructura de datos. Te permite explorar datos, generar insights, construir y modificar pipelines planteando objetivos en lenguaje natural — directo dentro de Teramot.' }
      ]
    },

    s4: {
      lede: 'Teramot se conecta a estos tipos de fuentes:',
      groups: [
        { label: 'Bases relacionales', items: ['PostgreSQL', 'MySQL', 'Microsoft SQL Server', 'Oracle Database'] },
        { label: 'Data warehouses cloud', items: ['Google BigQuery', 'Snowflake', 'Amazon Redshift'] },
        { label: 'Aplicaciones de negocio', items: ['Salesforce', 'SAP HANA'] },
        { label: 'Archivos y planillas', items: ['CSV', 'Google Sheets', 'Excel (.xlsx)'] }
      ],
      footer: 'Si tu fuente no figura, escribinos a <a href="mailto:hello@teramot.com">hello@teramot.com</a> — agregamos conectores nuevos regularmente.'
    },

    s5: {
      lede: 'Para empezar con Teramot hacen falta tres pasos: crear un proyecto, conectar tus fuentes y generar tu primera Gold Table — vía MCP (recomendado) o de forma manual. Cuando las Gold Tables están en producción, las consultás desde Claude, ChatGPT o cualquier asistente MCP-compatible.',

      t1Title: 'Tutorial 1 — Crear un proyecto nuevo',
      t1: [
        { title: 'Crear el proyecto',
          body: 'Tocá <strong>"Create Project"</strong> en la pantalla de inicio de Teramot. Se abre un formulario de configuración.',
          listLabel: 'Completá los detalles del proyecto:',
          list: ['<strong>Nombre:</strong> dale un nombre claro y descriptivo', '<strong>Imagen (opcional):</strong> tocá "Upload new image" para asociarle una identidad visual', '<strong>Descripción (opcional):</strong> agregá una descripción breve para documentar de qué se trata', '<strong>Idioma:</strong> elegí español o inglés — define el idioma de las instrucciones SQL generadas y la interfaz']
        },
        { title: 'Sumar miembros del equipo (opcional)',
          body: 'Tocá <strong>"Add"</strong> para invitar colaboradores. Ingresá el email y confirmá. Podés agregar varios. Cuando termines, tocá <strong>"Save changes"</strong> para finalizar la configuración.' },
        { title: 'Conectar tu primera fuente',
          body: 'Al guardar, Teramot te pide agregar una fuente. Podés sumar hasta 10 por proyecto.',
          extra: 'Ingresá el nombre y, opcionalmente, una descripción. Después elegí el tipo:',
          options: [
            { tag: 'Opción A', title: 'Subida de archivo (CSV, XLSX, Parquet o link a bucket cloud)',
              list: ['Elegí <strong>"Spreadsheet"</strong> como tipo de fuente', 'Subí el archivo desde tu equipo con "Upload file", o pegá el link al bucket', 'Tocá "Next" para previsualizar', 'Expandí la tabla para ver columnas. Seleccioná las que querés incluir o "Select all columns"', 'Tocá "Next" para confirmar'] },
            { tag: 'Opción B', title: 'Conexión a base de datos',
              list: ['Elegí <strong>"Database"</strong> como tipo de fuente', 'Abrí el desplegable y seleccioná el motor (PostgreSQL, MySQL, BigQuery, Snowflake, SQL Server, Oracle, Salesforce, SAP HANA, etc.)', 'Completá los campos de conexión (host, puerto, base, credenciales)', 'Tocá "Next" para probar la conexión'] }
          ]
        },
        { title: 'Finalizar la fuente',
          body: 'Tocá <strong>"Create Data Source"</strong> para agregar los datos seleccionados al proyecto. Monitoreás el estado de la conexión tocando sobre la fuente — Teramot muestra el estado actual de sincronización.',
          extra: 'Cuando todas tus fuentes están conectadas, ya podés generar Gold Tables. Recomendamos el método MCP que sigue.' }
      ],

      t2Title: 'Tutorial 2 — Generar Gold Tables vía MCP (recomendado)',
      t2Lede: 'Esta es la forma principal de usar Teramot. Vía MCP, conectás tu asistente de IA directamente a Teramot y le pedís que construya tus capas de datos en lenguaje natural.',
      t2A: { tag: 'Parte A', title: 'Conseguir tus credenciales MCP',
        list: ['Dentro de tu proyecto Teramot, abrí la sección <strong>MCP</strong> en el sidebar', 'Copiá la <strong>URL MCP</strong> con el botón "Copy"', 'Tocá <strong>"Create connection"</strong> para generar un token de autenticación', 'Copiá el token. Podés regenerarlo cuando quieras si hace falta'] },
      t2B: { tag: 'Parte B', title: 'Conectar a Claude (claude.ai)',
        list: ['En Claude, andá a <strong>Settings</strong> y tocá <strong>"Add"</strong> para crear un nuevo connector', 'Elegí <strong>"Add custom connector"</strong>', 'Pegá la URL MCP de Teramot', 'Tocá "Add" para finalizar el connector', 'Seleccioná el nuevo connector de Teramot y tocá <strong>"Connect"</strong> para activar la integración', 'Listo. Pedile a Claude que liste tus fuentes, explore tablas o arme una Gold Table'] },
      t2BAlt: { tag: 'Parte B alt.', title: 'Conectar a Claude Desktop (modo developer)',
        list: ['Abrí el menú de perfil en la esquina inferior izquierda de Claude Desktop', 'Andá a <strong>Settings → Applications → Advanced Settings</strong>', 'Activá <strong>Developer Mode</strong> para desbloquear connectors custom', 'Tocá <strong>"Create application"</strong>', 'Dale un nombre y poné la URL: <code>https://api.teramot.com/mcp</code>', 'Marcá el checkbox de consentimiento y tocá "Create"', 'Volvé a la sección MCP de tu proyecto, tocá "Create connection" y copiá el token', 'Pegalo en Claude Desktop para autenticar. Ya estás conectado'] },
      t2C: { tag: 'Parte C', title: 'Qué podés hacer una vez conectado',
        list: ['Listar todas tus fuentes — pedile a tu IA: <em>"¿Qué tablas tengo en Teramot?"</em>', 'Crear capas de datos permanentes y reutilizables — pedile cualquier Gold Table en lenguaje natural', 'Revisar el SQL generado — Teramot te muestra exactamente lo que construyó', 'Previsualizar la data — primeras filas antes de desplegar', 'Conectar a herramientas de BI — pedile credenciales a soporte para conectar Gold Tables a Metabase, Looker, Power BI u otras'] },

      t3Title: 'Tutorial 3 — Generar tablas manualmente (modo clásico)',
      t3Lede: 'Si preferís construir Gold Tables sin MCP, Teramot también soporta un flujo manual basado en formulario. Útil para usuarios que todavía no usan asistentes de IA o que quieren más control directo.',
      t3: [
        { title: 'Abrir la sección de tablas',
          body: 'Andá a <strong>Tables</strong> (o <strong>Reports</strong>) en tu proyecto para crear o ver tablas existentes.' },
        { title: 'Nombrar tu tabla',
          body: 'Ingresá el nombre de la nueva tabla y tocá <strong>"Next"</strong>.' },
        { title: 'Seleccionar columnas fuente',
          body: 'Vas a ver todas las tablas disponibles de tus fuentes conectadas.',
          list: ['Expandí una tabla para ver sus columnas', 'Seleccioná columnas específicas o tocá "Select all" para todo', 'Podés seleccionar columnas de varias tablas fuente para crear una tabla joineada', 'Tocá "Next" cuando termines'] },
        { title: 'Escribir tus instrucciones',
          body: 'Acá le decís a Teramot qué hacer con tus datos. Escribí una instrucción en lenguaje natural explicando cómo se debe construir la tabla — por ejemplo:',
          quote: '"Calculá el ingreso mensual por categoría de producto, incluyendo unidades vendidas totales, valor promedio de orden y crecimiento mes contra mes."',
          extra: 'Este paso es opcional en esta etapa — podés agregar o modificar instrucciones después. Tocá "Confirm" para guardar la instrucción, después "Next" para generar la tabla.' },
        { title: 'Monitorear y revisar',
          body: 'Seleccioná tu nueva tabla para ver su estado. Una vez generada:',
          list: ['<strong>Basic Info:</strong> tablas y columnas fuente usadas', '<strong>SQL Query:</strong> el SQL exacto que generó Teramot. Lo podés copiar para usar en otras herramientas. "Regenerate Query" reconstruye el SQL desde cero si hiciste cambios grandes a las instrucciones', '<strong>Instructions:</strong> ver, agregar, modificar o eliminar las instrucciones que definen la tabla. Cada instrucción refina el resultado', '<strong>Preview:</strong> primeras filas de datos para validar el resultado'] },
        { title: 'Iterar con instrucciones',
          body: 'Podés agregar instrucciones nuevas en cualquier momento para refinar. Por ejemplo:',
          quote: '"Agregá una columna con el promedio móvil de ingreso de los últimos 3 meses."',
          extra: 'Tocá <strong>"Save and Run"</strong> para aplicar los cambios y regenerar la tabla.' },
        { title: 'Exportar o conectar',
          body: 'Descargá las primeras 100 filas como CSV o XLSX directamente desde Preview. Para exportar todo o conectar la tabla a una herramienta de BI, contactá al equipo de soporte. También podés duplicar cualquier tabla como punto de partida para una nueva.' }
      ]
    },

    s6: {
      lede: 'Teramot tiene precios mensuales simples y predecibles. Todos los planes incluyen:',
      includes: ['Generación de SQL con IA', 'Pipelines automáticos Bronze → Silver → Gold', 'Conexiones MCP', 'Sesión de onboarding', 'Infraestructura SOC 2 certificada'],
      plans: [
        { name: 'Free', price: '$0 / mes', sub: 'Para analistas individuales y proyectos chicos.' },
        { name: 'Starter', price: '$399 / mes', sub: 'Para equipos de analytics y departamentos.' },
        { name: 'Professional', price: '$1.999 / mes', sub: 'Para equipos grandes y operaciones de alto volumen.' },
        { name: 'Enterprise', price: 'Custom', sub: 'Infraestructura analítica a nivel organización.' }
      ],
      limitsTitle: 'Entender los límites',
      limits: [
        '<strong>Gold Tables:</strong> cada Gold Table es un dataset listo para negocio producido por los agentes. Tu plan define cuántos datasets activos podés mantener.',
        '<strong>Almacenamiento:</strong> volumen total guardado en tu Data Lakehouse administrado, incluyendo datos crudos ingeridos y Gold Tables transformadas.',
        '<strong>Procesamiento:</strong> volumen de datos transformados y consultados cada mes, incluyendo corridas de pipelines ETL, transformaciones entre capas y ejecución de queries.',
        '<strong>Gold Tables adicionales:</strong> disponibles como add-on en todos los planes — contactanos para precios.'
      ],
      crosslinkText: 'Ver pricing completo y comparativa.',
      crosslinkSub: 'Tabla detallada de capacidades, soporte y seguridad por plan.',
      crosslinkBtn: 'Ir a precios'
    },

    s7: {
      lede: 'Teramot está certificado SOC 2 Type II, demostrando nuestro compromiso con los estándares más altos de seguridad, disponibilidad y privacidad de datos. La certificación se mantiene con auditorías anuales de terceros.',
      propsLabel: 'Propiedades clave de seguridad:',
      props: [
        'Teramot es <strong>read-only</strong> — nunca escribe en tus sistemas fuente',
        'Todos los datos cifrados en reposo y en tránsito',
        'Controles de acceso y registro de auditoría sobre todas las operaciones',
        'Monitoreo continuo de seguridad 24/7',
        'Despliegue on-premise disponible para organizaciones con requisitos estrictos de residencia',
        'En la configuración por defecto, tus datos nunca salen de tu infraestructura'
      ],
      onPremTitle: 'Despliegue on-premise',
      onPremBody: 'Para organizaciones que no pueden enviar datos a servicios cloud externos, Teramot se despliega completamente on-premise — dentro de tu propio AWS, GCP o Azure, o en servidores bare-metal. Contactanos para discutir opciones de despliegue.'
    },

    s8: {
      faqs: [
        { q: '¿Qué es Teramot?',
          a: 'Una plataforma de infraestructura de datos potenciada por IA que se conecta a tus bases de datos y construye automáticamente pipelines SQL productivos. Usa un sistema multi-agente para transformar datos crudos en Gold Tables listas para el negocio, consultables desde asistentes de IA vía MCP o conectables a herramientas de BI.' },
        { q: '¿Qué es MCP?',
          a: 'MCP (Model Context Protocol) es un estándar abierto que conecta asistentes de IA con fuentes de datos estructuradas en tiempo real. A través de MCP, tu IA se integra directamente con Teramot para construir pipelines, calcular métricas y razonar sobre los datos reales de tu negocio.' },
        { q: '¿Quién debería usar Teramot?',
          a: 'CEOs, líderes de innovación y directores que necesitan que la IA entienda el negocio real. Y los equipos que hacen posible eso: analistas de datos, analytics engineers, equipos de IA y de BI que necesitan pipelines productivos y datos confiables sin depender de un equipo de data engineering.' },
        { q: '¿En qué se diferencia de dbt, Fivetran o herramientas ETL tradicionales?',
          a: 'Las herramientas tradicionales requieren escribir SQL y configurar pipelines a mano. Teramot usa agentes de IA para hacer ese trabajo — vos describís lo que necesitás en lenguaje natural y Teramot genera, prueba y despliega el pipeline. Además suma capa semántica y conectividad MCP de fábrica.' },
        { q: '¿Funciona sobre mis datos reales y en vivo?',
          a: 'Sí. Teramot se conecta directamente a tus bases y warehouses existentes. No hace falta copiar, migrar ni stagear datos en otro lado.' },
        { q: '¿Puedo ver el SQL que genera Teramot?',
          a: 'Sí. Cada query generada por los agentes es transparente y auditable. Vos revisás el SQL antes de que se despliegue.' },
        { q: '¿Tengo que mover mis datos?',
          a: 'No. Teramot se conecta a tus fuentes existentes en su lugar. No hace falta mover datos a una plataforma nueva.' },
        { q: '¿Teramot escribe en mis sistemas?',
          a: 'No. Teramot es estrictamente read-only. Lee desde tus sistemas fuente para construir pipelines, pero nunca escribe sobre ellos.' },
        { q: '¿A qué bases de datos se conecta?',
          a: 'PostgreSQL, MySQL, Microsoft SQL Server, Oracle, Google BigQuery, Snowflake, Amazon Redshift, Salesforce, SAP HANA, CSV, Google Sheets y Excel. Sumamos conectores regularmente.' },
        { q: '¿Reemplaza a los analistas de datos?',
          a: 'No. Teramot hace a los analistas significativamente más productivos eliminando el trabajo manual y repetitivo de escribir SQL y armar pipelines. Los analistas se enfocan en definir lógica de negocio e interpretar resultados — Teramot maneja la implementación.' },
        { q: '¿Cuánto tarda conectar una fuente?',
          a: 'La mayoría de las fuentes se conectan y producen una primera Gold Table en pocas horas. Entornos complejos con muchas fuentes pueden tardar más.' },
        { q: '¿Qué problemas resuelve Teramot?',
          a: 'Construir pipelines ETL sin un equipo de data engineering. Crear datasets listos para BI. Alimentar asistentes de IA con datos estructurados y precisos vía MCP. Estandarizar datos entre múltiples sistemas fuente. Reducir tiempo-a-insight de semanas a horas.' },
        { q: '¿Para qué NO está pensado Teramot?',
          a: 'No es una herramienta de BI ni de visualización — no produce dashboards ni gráficos directamente. No es una plataforma de streaming en tiempo real. No reemplaza bases operacionales. Es la capa de infraestructura de datos que alimenta esas herramientas.' }
      ]
    },

    finalCrosslink: {
      text: '¿Listo para conectar tu primera fuente?',
      sub: 'Sin tarjeta. En menos de una hora.',
      btn: 'Empezar gratis'
    }
  },

  en: {
    heroEyebrow: 'Documentation',
    heroH1: 'Teramot Documentation.',
    heroSub: 'How Teramot connects to your data, how the agents build your pipelines, and how you query everything from Claude, ChatGPT, or any AI via MCP.',

    toc: [
      'What is Teramot',
      'How it works',
      'Key concepts',
      'Supported sources',
      'How to use Teramot',
      'Pricing',
      'Security',
      'FAQ'
    ],

    s1: {
      lede: 'Teramot is an AI-powered data infrastructure platform. It connects directly to your existing databases, data warehouses, ERPs, CRMs, and APIs, and uses a system of specialized AI agents to automatically build production-ready data pipelines — without requiring data engineers or months of implementation.',
      body: [
        'Instead of writing SQL manually or waiting for an engineering team, you describe what you need in plain language. Teramot\'s agents analyze your schema, detect data quality issues, propose transformations, and generate transparent, auditable SQL that you can review before deploying.',
        'The result is a structured, production-ready data layer — called a Gold Table — that is immediately queryable from any AI assistant (like Claude or ChatGPT), BI tool, or application via MCP (Model Context Protocol).'
      ],
      designedForLabel: 'Teramot is designed for:',
      designedFor: [
        'CEOs and business leaders who want AI to truly understand their company',
        'Innovation leaders who need to scale AI adoption across the organization',
        'Directors and managers who make decisions and need reliable data instantly',
        'Data analysts and BI teams who need clean datasets and production pipelines without waiting for engineering',
        'AI teams that need accurate structured data to feed LLM-powered applications'
      ],
      callout: 'Teramot is <strong>read-only</strong> — it never writes to your source systems. It is <strong>SOC 2 Type II</strong> certified and can be deployed on-premise for organizations with strict data residency requirements.'
    },

    s2: {
      lede: 'Teramot operates in five stages:',
      steps: [
        { title: 'Connect your sources',
          body: 'You connect Teramot directly to your data warehouse or databases. No data migration required. No abstractions. Teramot works on your real, live data. It reads your schema automatically and catalogs your tables and relationships.',
          listLabel: 'Supported source types:',
          list: ['Relational databases (PostgreSQL, MySQL, SQL Server, Oracle)', 'Cloud warehouses (BigQuery, Snowflake, Redshift)', 'Business applications (Salesforce, SAP HANA)', 'Spreadsheets (CSV, Google Sheets, Excel)']
        },
        { title: 'Connect Teramot\'s MCP to your AI of choice',
          body: 'Teramot integrates via MCP (Model Context Protocol) with Claude, Claude Code, ChatGPT, Codex, Cursor, Gemini, and any AI that supports the standard. The connection is secure and you control exactly what it can access.',
          extra: 'Once connected, your AI uses Teramot to understand how your business actually works: what tables exist, how they relate, what they mean. With that knowledge, it generates tables with complex calculations, builds real business metrics, and produces analysis-ready data layers — all working on your real data, not assumptions.' },
        { title: 'Set your objectives',
          body: 'Tell your AI what you want to achieve, in the language you use to think about your business. No SQL or technical specs required. For example: <em>"I want to understand why retention dropped last quarter"</em> or <em>"I need to know which products have the highest real margin after logistics."</em>',
          extra: 'The AI, connected to your data via MCP, analyzes your actual schema and stated objectives to put together the transformation plan.' },
        { title: '50+ specialized agents build your pipeline',
          body: 'Teramot\'s patented multi-agent system takes over. Agents work across three layers:',
          list: [
            '<strong>Bronze layer:</strong> raw ingestion — data lands exactly as it exists in your source systems',
            '<strong>Silver layer:</strong> cleaning and standardization — deduplication, type casting, null handling, join resolution',
            '<strong>Gold layer:</strong> business logic — aggregations, calculations, KPIs, business-ready tables'
          ],
          extra: 'The agents generate transparent, readable SQL at every step. You can inspect every query before it runs.' },
        { title: 'You review and deploy',
          body: 'You review the generated SQL and data model. Once approved, Teramot deploys permanent, reusable, incrementally-refreshed pipelines directly into your data architecture.',
          extra: 'The deployed Gold Tables are available immediately via MCP for querying from Claude, ChatGPT, or any AI assistant — and can be connected to BI tools like Metabase, Looker, or Power BI.' }
      ],
      compareLabel: 'Time comparison',
      compareLines: [
        ['Traditional approach', 'Need → data exploration → SQL writing → iterations → table creation → dashboard. <strong>Weeks.</strong>'],
        ['With Teramot', 'Need → objective setting → agents build → data layers in production. <strong>Minutes.</strong>']
      ]
    },

    s3: {
      lede: 'The vocabulary used across the platform.',
      concepts: [
        { title: 'Gold Tables',
          body: 'The final, business-ready output of Teramot\'s pipeline. They contain transformed, aggregated, and calculated data — ready for analysis without further processing. Examples: <code>customer_360</code>, <code>monthly_revenue_by_channel</code>, <code>sales_summary_with_margins</code>. Each Gold Table is a permanent, incrementally-refreshed asset in your data architecture.' },
        { title: 'Data Sources',
          body: 'Any raw table or dataset that Teramot connects to from your source systems. This includes tables from databases, ERPs, CRMs, spreadsheets, or APIs. Each connected table counts as one data source.' },
        { title: 'Bronze / Silver / Gold Layers',
          body: 'Teramot structures data transformation in three layers following modern Lakehouse architecture. <strong>Bronze:</strong> exact replica of source data, ingested as-is. <strong>Silver:</strong> cleaned, standardized, and joined data. <strong>Gold:</strong> aggregated, calculated, business-ready tables.' },
        { title: 'MCP (Model Context Protocol)',
          body: 'An open standard that integrates AI assistants with structured data sources in real time. Teramot connects via MCP with Claude, ChatGPT, or any compatible AI — not for simple lookups, but so the AI can build pipelines, calculate metrics, and reason over your real business data, without hallucinating or making assumptions.' },
        { title: 'Prompt Generator',
          body: 'An AI-powered assistant inside Teramot that helps you describe your data needs in plain English. It suggests transformations, identifies data quality issues, and generates the instructions that drive your automated pipelines.' },
        { title: 'The Teramot Agent',
          body: 'The Teramot interface for working with your data infrastructure. It lets you explore data, generate insights, and build or modify pipelines by setting objectives in natural language — directly inside Teramot.' }
      ]
    },

    s4: {
      lede: 'Teramot connects to the following types of data sources:',
      groups: [
        { label: 'Relational databases', items: ['PostgreSQL', 'MySQL', 'Microsoft SQL Server', 'Oracle Database'] },
        { label: 'Cloud data warehouses', items: ['Google BigQuery', 'Snowflake', 'Amazon Redshift'] },
        { label: 'Business applications', items: ['Salesforce', 'SAP HANA'] },
        { label: 'Files & spreadsheets', items: ['CSV files', 'Google Sheets', 'Excel (.xlsx)'] }
      ],
      footer: 'If your data source isn\'t listed, contact us at <a href="mailto:hello@teramot.com">hello@teramot.com</a> — we add new connectors regularly.'
    },

    s5: {
      lede: 'Getting started with Teramot takes three steps: create a project, connect your data sources, and generate your first Gold Table — either via MCP (recommended) or manually. Once your Gold Tables are live, you can query them from Claude, ChatGPT, or any MCP-compatible AI assistant.',

      t1Title: 'Tutorial 1 — Create a new project',
      t1: [
        { title: 'Create the project',
          body: 'Click <strong>"Create Project"</strong> from the Teramot home screen. A configuration form will open.',
          listLabel: 'Fill in the project details:',
          list: ['<strong>Name:</strong> give your project a clear, descriptive name', '<strong>Image (optional):</strong> click "Upload new image" to associate a visual identity', '<strong>Description (optional):</strong> add a brief description to document what this project covers', '<strong>Language:</strong> choose Spanish or English — sets the language for generated SQL instructions and the interface']
        },
        { title: 'Add team members (optional)',
          body: 'Click <strong>"Add"</strong> to invite collaborators. Enter their email and confirm. You can add multiple members. When you\'re done, click <strong>"Save changes"</strong> to finalize the project.' },
        { title: 'Connect your first data source',
          body: 'After saving, Teramot will prompt you to add a data source. You can add up to 10 per project.',
          extra: 'Enter the name and, optionally, a description. Then choose the type:',
          options: [
            { tag: 'Option A', title: 'File upload (CSV, XLSX, Parquet, or cloud bucket link)',
              list: ['Choose <strong>"Spreadsheet"</strong> as the source type', 'Upload your file with "Upload file", or paste a link to your cloud storage bucket', 'Click "Next" to preview', 'Expand the table to see columns. Select the ones you want or click "Select all columns"', 'Click "Next" to confirm'] },
            { tag: 'Option B', title: 'Database connection',
              list: ['Choose <strong>"Database"</strong> as the source type', 'Open the dropdown and select your engine (PostgreSQL, MySQL, BigQuery, Snowflake, SQL Server, Oracle, Salesforce, SAP HANA, etc.)', 'Complete the required connection fields (host, port, database name, credentials)', 'Click "Next" to test the connection'] }
          ]
        },
        { title: 'Finalize the data source',
          body: 'Click <strong>"Create Data Source"</strong> to add the selected data to your project. Monitor the connection status by clicking on the source — Teramot will show its current sync state.',
          extra: 'Once all sources are connected, you\'re ready to generate Gold Tables. We recommend the MCP method below.' }
      ],

      t2Title: 'Tutorial 2 — Generate Gold Tables via MCP (recommended)',
      t2Lede: 'This is the primary way to use Teramot. Using MCP, you connect your AI assistant directly to Teramot and ask it to build your data layers through natural language.',
      t2A: { tag: 'Part A', title: 'Get your MCP connection details',
        list: ['Inside your Teramot project, open the <strong>MCP</strong> section in the left sidebar', 'Copy the <strong>MCP URL</strong> using the "Copy" button', 'Click <strong>"Create connection"</strong> to generate an authentication token', 'Copy the token. You can regenerate it at any time if needed'] },
      t2B: { tag: 'Part B', title: 'Connect to Claude (claude.ai)',
        list: ['In Claude, go to your <strong>Settings</strong> and click <strong>"Add"</strong> to create a new connector', 'Choose <strong>"Add custom connector"</strong>', 'Paste the Teramot MCP URL', 'Click "Add" to finalize the connector', 'Select your newly added Teramot connector and click <strong>"Connect"</strong> to activate', 'You\'re ready. Ask Claude to list your data sources, explore tables, or build a Gold Table'] },
      t2BAlt: { tag: 'Part B alt.', title: 'Connect to Claude Desktop (developer mode)',
        list: ['Open the profile menu in the bottom-left sidebar of Claude Desktop', 'Go to <strong>Settings → Applications → Advanced Settings</strong>', 'Enable <strong>Developer Mode</strong> to unlock custom connectors', 'Click <strong>"Create application"</strong>', 'Give the application a name and enter the URL: <code>https://api.teramot.com/mcp</code>', 'Check the consent box and click "Create"', 'Back in the MCP section, click "Create connection" and copy the token', 'Paste the token into Claude Desktop to authenticate. You\'re connected'] },
      t2C: { tag: 'Part C', title: 'What you can do once connected',
        list: ['List all your data sources — ask: <em>"What tables do I have in Teramot?"</em>', 'Create permanent, reusable data layers — ask for any Gold Table in plain English', 'Review the generated SQL query — Teramot shows you exactly what it built', 'Preview the data — see the first rows before deploying', 'Connect to your BI tools — contact support for credentials to connect Gold Tables to Metabase, Looker, Power BI, or others'] },

      t3Title: 'Tutorial 3 — Generate tables manually (classic mode)',
      t3Lede: 'If you prefer to build Gold Tables without using MCP, Teramot also supports a manual, form-based workflow. Useful for users not yet using an AI assistant or who want more direct control.',
      t3: [
        { title: 'Open the Tables section',
          body: 'Go to the <strong>Tables</strong> (or <strong>Reports</strong>) section of your project to create or view existing tables.' },
        { title: 'Name your table',
          body: 'Enter the name of your new table and click <strong>"Next"</strong>.' },
        { title: 'Select your source columns',
          body: 'You\'ll see all available tables from your connected data sources.',
          list: ['Expand a table to view its columns', 'Select specific columns, or click "Select all" to include all fields', 'You can select columns from multiple source tables to create a joined table', 'Click "Next" when your selection is complete'] },
        { title: 'Write your instructions',
          body: 'This is where you tell Teramot what to do with your data. Write a plain-language instruction explaining how the table should be built — for example:',
          quote: '"Calculate monthly revenue by product category, including total units sold, average order value, and month-over-month growth."',
          extra: 'This step is optional at this stage — you can add or modify instructions after the table is generated. Click "Confirm" to save the instruction, then "Next" to generate the table.' },
        { title: 'Monitor and review',
          body: 'Select your newly created table to see its status. Once generated:',
          list: ['<strong>Basic Info:</strong> source tables and columns used', '<strong>SQL Query:</strong> the exact SQL Teramot generated. Copy it for use in other tools. "Regenerate Query" rebuilds the SQL from scratch if you\'ve made significant changes to the instructions', '<strong>Instructions:</strong> view, add, modify, or delete the instructions that define this table. Each instruction refines the output', '<strong>Preview:</strong> first rows of data to validate the result'] },
        { title: 'Iterate with instructions',
          body: 'Add new instructions any time to refine the table. For example:',
          quote: '"Add a column with the rolling 3-month average revenue."',
          extra: 'Click <strong>"Save and Run"</strong> to apply the changes and regenerate the table.' },
        { title: 'Export or connect',
          body: 'Download the first 100 rows as CSV or XLSX directly from Preview. For full data export or to connect the table to a BI tool, contact the Teramot support team. You can also duplicate any table as a starting point for a new one.' }
      ]
    },

    s6: {
      lede: 'Teramot offers simple, predictable monthly pricing. All plans include:',
      includes: ['AI-powered SQL generation', 'Automated Bronze → Silver → Gold pipelines', 'MCP connections', 'Onboarding session', 'SOC 2 certified infrastructure'],
      plans: [
        { name: 'Free', price: '$0 / mo', sub: 'For individual analysts and small projects.' },
        { name: 'Starter', price: '$399 / mo', sub: 'For analytics teams and departments.' },
        { name: 'Professional', price: '$1,999 / mo', sub: 'For large teams and high-volume operations.' },
        { name: 'Enterprise', price: 'Custom', sub: 'Organization-wide analytics infrastructure.' }
      ],
      limitsTitle: 'Understanding the limits',
      limits: [
        '<strong>Gold Tables:</strong> each Gold Table is a business-ready dataset produced by the agents. Your plan determines how many active production-ready datasets you can maintain.',
        '<strong>Storage:</strong> total volume of data stored in your managed Data Lakehouse, including raw ingested data and transformed Gold Tables.',
        '<strong>Processing:</strong> volume of data transformed and queried each month, including ETL pipeline runs, transformations across layers, and query execution.',
        '<strong>Additional Gold Tables:</strong> available as add-ons across all plans — contact us for pricing.'
      ],
      crosslinkText: 'See full pricing and comparison.',
      crosslinkSub: 'Detailed table of capacity, support, and security per plan.',
      crosslinkBtn: 'Go to pricing'
    },

    s7: {
      lede: 'Teramot is SOC 2 Type II certified, demonstrating our commitment to the highest standards of data security, availability, and privacy. Our certification is maintained through annual third-party audits.',
      propsLabel: 'Key security properties:',
      props: [
        'Teramot is <strong>read-only</strong> — it never writes to your source systems',
        'All data is encrypted at rest and in transit',
        'Access controls and audit logging on all operations',
        'Continuous security monitoring 24/7',
        'On-premise deployment available for organizations with strict data residency requirements',
        'Your data never leaves your infrastructure in the default configuration'
      ],
      onPremTitle: 'On-premise deployment',
      onPremBody: 'For organizations that cannot send data to external cloud services, Teramot can be deployed fully on-premise — within your own AWS, GCP, or Azure environment, or on bare-metal servers. Contact us to discuss on-premise deployment options.'
    },

    s8: {
      faqs: [
        { q: 'What is Teramot?',
          a: 'Teramot is an AI-powered data infrastructure platform that connects to your databases and automatically builds production-ready SQL pipelines. It uses a multi-agent system to transform raw data into business-ready Gold Tables, which can be queried by AI assistants via MCP or connected to BI tools.' },
        { q: 'What is MCP?',
          a: 'MCP (Model Context Protocol) is an open standard that connects AI assistants with structured data sources in real time. Through MCP, your AI integrates directly with Teramot to build pipelines, calculate metrics, and reason over your real business data.' },
        { q: 'Who should use Teramot?',
          a: 'CEOs, innovation leaders, and executives who need AI to truly understand their business — and the teams that make it happen: data analysts, analytics engineers, AI teams, and BI teams who need reliable pipelines without depending on a separate data engineering team.' },
        { q: 'How is Teramot different from dbt, Fivetran, or traditional ETL tools?',
          a: 'Traditional tools require you to write SQL and configure pipelines manually. Teramot uses AI agents to do that work for you — you describe what you need in plain language, and Teramot generates, tests, and deploys the pipeline. It also adds a semantic layer and MCP connectivity out of the box.' },
        { q: 'Does Teramot work on my real, live data?',
          a: 'Yes. Teramot connects directly to your existing databases and warehouses. There is no need to copy, migrate, or stage your data elsewhere before using Teramot.' },
        { q: 'Can I see the SQL that Teramot generates?',
          a: 'Yes. Every query generated by Teramot\'s agents is transparent and auditable. You review the SQL before it is deployed.' },
        { q: 'Do I need to move my data?',
          a: 'No. Teramot connects to your existing data sources in place. You do not need to move data to a new platform.' },
        { q: 'Does Teramot write into my systems?',
          a: 'No. Teramot is strictly read-only. It reads from your source systems to build pipelines, but never writes back to them.' },
        { q: 'What databases can Teramot connect to?',
          a: 'PostgreSQL, MySQL, Microsoft SQL Server, Oracle, Google BigQuery, Snowflake, Amazon Redshift, Salesforce, SAP HANA, CSV files, Google Sheets, and Excel. More connectors are added regularly.' },
        { q: 'Does Teramot replace data analysts?',
          a: 'No. Teramot makes data analysts significantly more productive by eliminating the manual, repetitive work of writing SQL and building pipelines. Analysts focus on defining business logic and interpreting results — Teramot handles the implementation.' },
        { q: 'How long does it take to connect a data source?',
          a: 'Most data sources can be connected and producing a first Gold Table within a few hours. Complex environments with many sources may take longer.' },
        { q: 'What problems can Teramot solve?',
          a: 'Building ETL pipelines without a data engineering team. Creating analysis-ready datasets for BI tools. Feeding AI assistants with accurate, structured business data via MCP. Standardizing data across multiple source systems. Reducing time-to-insight from weeks to hours.' },
        { q: 'What is Teramot NOT designed for?',
          a: 'Teramot is not a BI or visualization tool — it does not produce charts or dashboards directly. It is not a real-time streaming platform. It is not designed to replace operational databases. It is the data infrastructure layer that feeds those tools.' }
      ]
    },

    finalCrosslink: {
      text: 'Ready to connect your first source?',
      sub: 'No credit card. Under an hour.',
      btn: 'Start free'
    }
  }
};

Object.assign(window, { DOCS });
