// Bilingual copy dictionary for WideWired site
// Product: SaaS mesh VPN. widewired hosts cloud-head + managed-relay.
// UX core: create network in Web UI → get config_code → paste into client → node joins.

const COPY = {
  en: {
    nav: {
      howitworks: "Quick start",
      diff: "Advantages",
      pricing: "Pricing",
      china: "China-Connected",
      signin: "Sign up / Sign in",
    },

    hero: {
      badge: "Cloud-Native SD‑WAN",
      liveBadge: "200+ networks live",
      title1: "5 minutes,",
      title2: "your private network,",
      title3: "up and live.",
      body: "Cloud-native networking — one config code lets any device join.",
      body2: "",
      ctaPrimary: "Start free",
      ctaSecondary: "See it in action",
    },

    flow: {
      kicker: "§ quick start",
      title1: "Three steps,",
      title2: "simplicity at its core.",
      body: "",
      step1Title: "Create a network",
      step1Body: "Name your network, pick a CIDR, done.",
      step2Title: "Generate a config code",
      step2Body: "Name the device, get a config code, done.",
      step3Title: "Paste it into the client",
      step3Body: "Paste it into the device, done.",
      codeLabel: "config_code example",
      codeHelp: "16 chars · single-use per device · revokable",
    },

    diff: {
      kicker: "§ advantages",
      title: "Three differences,",
      subtitle: "category by category.",
      cmpHeader: ["capability", "WideWired", "TS", "ZT"],
      blocks: [
        {
          num: "01",
          kicker: "path engine",
          title: "Three-tier intelligent path, auto-scheduled by cost and performance.",
          desc: "Direct P2P → user-device relay → platform high-speed relay. Your own idle devices can relay packets for others. The healthier your core network, the closer your bill gets to zero.",
          rows: [
            ["Direct P2P", true, true, true],
            ["User-device relay", true, "partial", "partial"],
            ["Platform high-speed relay", "metered", "metered", "metered"],
            ["Automatic path fallback", true, true, true],
          ],
        },
        {
          num: "02",
          kicker: "global backbone",
          title: "Self-operated L2 backbone, upgradable all the way to MPLS-grade SD‑WAN.",
          desc: "An owned global backbone and POPs. Scale from self-hosted relays up to Direct Connect dedicated lines — with SLAs on latency, jitter, reliability and bandwidth to back business continuity at every stage.",
          rows: [
            ["Backbone form", "self-operated L2", "cloud relay", "cloud relay"],
            ["Global POP coverage", "global", "partial", "partial"],
            ["IPSec / Direct Connect", true, "partial", "partial"],
            ["SLA commitments", true, false, false],
          ],
        },
        {
          num: "03",
          kicker: "observability",
          title: "White-box network, every path and every behavior is explainable.",
          desc: "N×N connectivity matrix, health diagnostics, event timeline and audit log show what's happening; L7 routing, NAT and QoS give you real control. Your network is no longer a black box.",
          rows: [
            ["N×N connectivity matrix", true, "partial", "partial"],
            ["Health diagnostics + advice", true, "partial", "partial"],
            ["Event audit + export", true, true, true],
            ["Full-featured admin console", true, true, true],
          ],
        },
      ],
    },

    china: {
      kicker: "§ China-Connected",
      title1: "Connect China and the world,",
      title2: "a licensed IP-VPN operator.",
      body: "",
      pillTitle: "",
      pills: [
        ["Government-sponsored", "Onboarded in China via the Nanjing Municipal Bureau of Commerce, with a local operating entity."],
        ["IP-VPN licensed", "Holds an IP-VPN license issued by China's Ministry of Industry and Information Technology (MIIT)."],
        ["Ecosystem-friendly", "Complementary to domestic carriers — licensed overlay end-to-end."],
      ],
      compareTable: {
        cols: ["capability", "WideWired", "Domestic carrier", "Other SD‑WAN", "DIY + Consumer VPN"],
        rows: [
          ["IP-VPN licensed",      true,    true,     false,   false],
          ["Mainland coverage",    true,    true,     false,   false],
          ["Single global mesh",   true,    false,    "part",  false],
          ["Self-service onboard", true,    false,    false,   false],
          ["Time to live",         "5 min", "months", "weeks", false],
        ],
      },
      punchKicker: "",
      punchBody: "The only cloud-native global SD‑WAN bridging mainland China and the world — on a licensed, compliant path.",
    },

    pricing: {
      kicker: "§ pricing",
      title: "Start easy,",
      subtitle: "upgrade anytime.",
      body: "",
      pickTitle: "",
      pickBody: "",
      tiers: {
        free: { name: "Basic", price: "$0", sub: "Individuals & homelab", cta: "Start now" },
        pro:  { name: "Pro", priceM: "$48", per: "/network/month", sub: "Pros & small teams", cta: "Start trial" },
        ent:  { name: "Enterprise", price: "Custom", sub: "Multinationals & large orgs", cta: "Contact us" },
      },
      cmp: {
        rows: [
          ["Devices per network", "5", "20", "∞"],
          ["Node acceleration via your own devices", true, true, true],
          ["Public internet via your own device", { v: true, tip: "Requires an in-network device that can reach the target internet resource." }, { v: true, tip: "Requires an in-network device that can reach the target internet resource." }, { v: true, tip: "Custom on demand." }],
          ["Node acceleration via high-speed relays", false, { v: true, tip: "Includes 5GB/mo; more available on demand." }, { v: true, tip: "Custom on demand." }],
          ["IPSec bridge to legacy networks", false, false, true],
          ["Direct Connect", false, false, true],
          ["Compression & deduplication", false, false, true],
          ["MagicDNS", true, true, true],
          ["Topology view", true, true, true],
          ["Traffic overview", true, true, true],
          ["Traffic details (NetFlow)", false, true, true],
          ["Traffic details export", false, true, true],
          ["AI-driven ops", false, false, true],
          ["API tokens", false, false, true],
          ["SSO (OIDC / SAML / CAS)", false, false, true],
          ["Audit log", false, false, true],
          ["Dedicated account manager", false, true, true],
        ],
      },
    },

    cta: {
      title1: "Your network,",
      title2: "live before you finish this page.",
      body: "",
      primary: "Start now",
    },

    footer: {
      tagline: "WideWired is a company focused on global SD‑WAN service, headquartered in Singapore, with operating entities and offices in mainland China, Hong Kong, and the United States.",
      cols: [
        ["product", [
          ["Quick start", "#flow"],
          ["Pricing", "#pricing"],
          ["Advantages", "#diff"],
          ["China-Connected", "#china"],
        ]],
        ["legal", [
          ["Privacy policy", "#"],
          ["Terms of service", "#"],
          ["Cookie policy", "#"],
          ["Contact", "#"],
        ]],
      ],
      legal: "Copyright © 2026 WideWired and its affiliates. All Rights Reserved.",
    },
  },

  zh: {
    nav: {
      howitworks: "快速上手",
      pricing: "产品定价",
      diff: "平台优势",
      china: "连接中国",
      signin: "注册 / 登录",
    },

    hero: {
      badge: "云原生组网平台",
      liveBadge: "200+ 网络运行中",
      title1: "5 分钟，",
      title2: "你的私有网络，",
      title3: "已上线运行。",
      body: "云原生组网，一串配置码让任何设备加入。",
      body2: "",
      ctaPrimary: "免费开始",
      ctaSecondary: "查看演示",
    },

    flow: {
      kicker: "§ 快速上手",
      title1: "三步搞定，",
      title2: "极简操作。",
      body: "",
      step1Title: "创建网络",
      step1Body: "给网络起名，选 CIDR，完成。",
      step2Title: "生成配置码",
      step2Body: "给设备起名，拿到配置码，完成。",
      step3Title: "粘贴到客户端",
      step3Body: "粘贴到设备，完成。",
      codeLabel: "配置码示例",
      codeHelp: "16 位 · 每设备单次使用 · 可撤销",
    },

    diff: {
      kicker: "§ 平台优势",
      title: "三点差异，",
      subtitle: "同类对比。",
      cmpHeader: ["能力", "网迅达", "TS", "ZT"],
      blocks: [
        {
          num: "01",
          kicker: "路径引擎",
          title: "三级智能路径，按成本与性能自动调度。",
          desc: "直连 P2P → 用户设备中继 → 平台高速中继。你自己的空闲设备可以为其他设备中继网络数据包。你的基础网络越健康，账单越接近零。",
          rows: [
            ["直连 P2P", true, true, true],
            ["用户设备中继", true, "部分", "部分"],
            ["平台高速中继", "按量", "按量", "按量"],
            ["路径自动降级", true, true, true],
          ],
        },
        {
          num: "02",
          kicker: "全球骨干网",
          title: "自运营 L2 骨干，一路升级到 MPLS 级 SD‑WAN。",
          desc: "遍布全球的自有骨干网和 POP 点。让你可以从自有中继一路升级到专线连接，附带延迟 / 抖动 / 可靠性 / 带宽的 SLA，在不同阶段支撑你的业务连续性指标。",
          rows: [
            ["骨干形态", "自有 L2", "云中继", "云中继"],
            ["全球 POP 覆盖", "全球", "部分", "部分"],
            ["IPSec / 专线连接", true, "部分", "部分"],
            ["SLA 承诺", true, false, false],
          ],
        },
        {
          num: "03",
          kicker: "可观测性",
          title: "白盒网络，每一条路径和网络行为都可解释。",
          desc: "N×N 连通矩阵、健康诊断、事件时间线、审计日志展示你的运行状况；L7 路由、NAT、QoS 赋予你极强的掌控能力。你的网络不再是黑盒。",
          rows: [
            ["N×N 连通矩阵", true, "部分", "部分"],
            ["健康诊断及建议", true, "部分", "部分"],
            ["事件审计及导出", true, true, true],
            ["全功能管理后台", true, true, true],
          ],
        },
      ],
    },

    china: {
      kicker: "§ 连接中国",
      title1: "合规连接中国与全球，",
      title2: "持牌 IP-VPN 服务商。",
      body: "",
      pillTitle: "",
      pills: [
        ["政府引入", "通过南京市商务局合规落地，在中国拥有运营主体。"],
        ["持 IP-VPN 牌照", "持有中国工信部颁发的 IP-VPN 许可。"],
        ["生态共建", "与国内基础运营商资源互补，持牌 overlay 端到端承载。"],
      ],
      compareTable: {
        cols: ["能力", "网迅达", "国内基础运营商", "其他 SD‑WAN", "自建+消费级 VPN"],
        rows: [
          ["IP-VPN 牌照",  true,     true,   false,  false],
          ["中国大陆覆盖", true,     true,   false,  false],
          ["全球一张网",   true,     false,  "部分", false],
          ["自助开通",     true,     false,  false,  false],
          ["上线速度",     "5 分钟", "数月", "数周", false],
        ],
      },
      punchKicker: "",
      punchBody: "我们是唯一在合规持牌路径上，连接中国大陆与全球的云原生全球 SD‑WAN 服务商。",
    },

    pricing: {
      kicker: "§ 产品定价",
      title: "轻松开始，",
      subtitle: "按需升级。",
      body: "",
      pickTitle: "",
      pickBody: "",
      tiers: {
        free: { name: "基础版", price: "¥0", sub: "个人用户与家庭实验室", cta: "立即开始" },
        pro:  { name: "专业版", priceM: "¥384", per: "/网络/月", sub: "专业用户与小型团队", cta: "立即试用" },
        ent:  { name: "企业版", price: "按需定制", sub: "跨国企业与大型机构", cta: "联系我们" },
      },
      cmp: {
        rows: [
          ["每网设备数", "5", "20", "∞"],
          ["使用自有设备加速自有设备之间的访问", true, true, true],
          ["使用自有设备优化公共互联网资源访问", { v: true, tip: "网络中需存在能访问对应互联网资源的设备。" }, { v: true, tip: "网络中需存在能访问对应互联网资源的设备。" }, { v: true, tip: "按需定制。" }],
          ["使用高速中继加速自有设备之间的访问", false, { v: true, tip: "每月含 5GB 免费高速流量，超出流量后可按需增购。" }, { v: true, tip: "按需定制。" }],
          ["使用 IPSec 连接传统网络", false, false, true],
          ["专线连接", false, false, true],
          ["压缩去重", false, false, true],
          ["MagicDNS", true, true, true],
          ["拓扑视图", true, true, true],
          ["流量总览", true, true, true],
          ["流量详情（NetFlow）", false, true, true],
          ["流量详情导出", false, true, true],
          ["AI 驱动的自动运维", false, false, true],
          ["API Token", false, false, true],
          ["SSO (OIDC / SAML / CAS)", false, false, true],
          ["审计日志", false, false, true],
          ["专属客户经理", false, true, true],
        ],
      },
    },

    cta: {
      title1: "你的网络，",
      title2: "读完本页的时间就能上线。",
      body: "",
      primary: "立即开始",
    },

    footer: {
      tagline: "网连网络是专注于全球 SD‑WAN 服务的公司，总部在新加坡，在中国大陆、中国香港、美国设有运营主体和办公室。网迅达是产品的注册商标和中文名称。",
      cols: [
        ["产品", [
          ["快速上手", "#flow"],
          ["产品定价", "#pricing"],
          ["平台优势", "#diff"],
          ["连接中国", "#china"],
        ]],
        ["法务", [
          ["隐私政策", "#"],
          ["服务协议", "#"],
          ["Cookie 政策", "#"],
          ["联系我们", "#"],
        ]],
      ],
      legal: "版权所有 © 2026 网连网络及其关联公司 | 苏ICP备2024148714 | 苏公网安备32011502013203 | 增值电信业务许可证合B1.B2-20250100",
    },
  },
};

window.COPY = COPY;
