// Bilingual copy for Voltan. EN primary, ZH secondary.
const COPY = {
  nav: {
    capabilities: { en: "Capabilities", zh: "能力栈" },
    technology:   { en: "Technology",   zh: "技术" },
    whyNow:       { en: "Why now",      zh: "时间窗口" },
    about:        { en: "About",        zh: "关于" },
    contact:      { en: "Contact",      zh: "联系" },
    book:         { en: "Book a call",  zh: "预约沟通" },
  },

  hero: {
    eyebrow: {
      en: "Australian-registered · Backed by an AEMO-registered aggregator",
      zh: "澳洲注册 · AEMO 注册聚合商背书",
    },
    h1_en: "The full DER stack,\nfrom hardware to compliance.",
    h1_zh: "从硬件落地到合规接入，\n一站式 DER 技术服务。",
    sub: {
      en: "Voltan delivers end-to-end distributed energy services to inverter OEMs, installers, asset owners and retailers — install, operate, comply with IEEE 2030.5 / CSIP-AUS, and aggregate into VPP markets.",
      zh: "Voltan 为逆变器厂商、安装商、资产持有人与能源零售商提供分布式能源端到端技术服务——覆盖部署安装、运维、IEEE 2030.5 / CSIP-AUS 合规接入与 VPP 聚合交易。",
    },
    ctaPrimary:   { en: "Book a consultation",     zh: "预约咨询" },
    ctaSecondary: { en: "View capabilities →",     zh: "查看能力 →" },
    pillars: {
      install:   { en: "Install",   zh: "安装" },
      operate:   { en: "Operate",   zh: "运维" },
      comply:    { en: "Comply",    zh: "合规" },
      aggregate: { en: "Aggregate", zh: "聚合" },
    },
    countdownLabel: {
      en: "CSIP-AUS v1.2 mandatory",
      zh: "CSIP-AUS v1.2 强制接入",
    },
    countdownUnits: {
      days: { en: "days", zh: "天" },
      hrs:  { en: "hrs",  zh: "小时" },
      min:  { en: "min",  zh: "分" },
      sec:  { en: "sec",  zh: "秒" },
    },
  },

  serve: {
    kicker: { en: "Who we serve", zh: "服务对象" },
    h2: {
      en: "Four segments. One integration partner.",
      zh: "四类客户，一个集成伙伴。",
    },
    sub: {
      en: "Each customer arrives with a different bottleneck. We meet them at the exact layer they're stuck on.",
      zh: "不同客户卡点各异。我们在他们真正卡住的那一层提供对接。",
    },
    cards: [
      {
        tag: "01 / OEM",
        title: { en: "Inverter manufacturers", zh: "逆变器厂商" },
        pain:  { en: "Non-compliant firmware blocks DNSP approval and retail channels.",
                 zh: "固件不合规，DNSP 审批与零售渠道受阻。" },
        offer: { en: "Drop-in CSIP-AUS v1.2 protocol stack, CACTUS test pass-through, firmware integration.",
                 zh: "可集成的 CSIP-AUS v1.2 协议栈、CACTUS 测试通过、固件对接。" },
      },
      {
        tag: "02 / EPC",
        title: { en: "Installers & EPCs", zh: "安装商 / EPC" },
        pain:  { en: "Commissioning stalls on gateway config, mTLS certs, utility onboarding.",
                 zh: "调试卡在网关配置、mTLS 证书与 DNSP 接入。" },
        offer: { en: "Field deployment playbooks, onsite commissioning, DNSP enrollment handled.",
                 zh: "现场部署手册、上门调试，DNSP 入网代办。" },
      },
      {
        tag: "03 / OWNER",
        title: { en: "Asset owners", zh: "资产持有人" },
        pain:  { en: "Batteries deployed but idle — no VPP revenue, no visibility, unclear O&M.",
                 zh: "电池已部署但闲置——无 VPP 收益、缺少监控、运维不清晰。" },
        offer: { en: "Aggregated VPP dispatch, 24/7 monitoring, O&M contracts, performance SLA.",
                 zh: "聚合 VPP 调度、全天候监控、运维合同、性能 SLA。" },
      },
      {
        tag: "04 / RETAILER",
        title: { en: "Energy retailers", zh: "能源零售商" },
        pain:  { en: "Need a compliant DER fleet to launch or scale VPP products without building a platform.",
                 zh: "需要合规 DER 机队以推出或扩展 VPP 产品，但不想自建平台。" },
        offer: { en: "White-label aggregation, AEMO market interface, dispatch API, customer segmentation.",
                 zh: "白标聚合、AEMO 市场接口、调度 API、客户分层。" },
      },
    ],
  },

  stack: {
    kicker: { en: "End-to-end capability stack", zh: "端到端能力栈" },
    h2: {
      en: "Four layers. No handoffs.",
      zh: "四层一体，无需二次对接。",
    },
    sub: {
      en: "Most vendors cover one layer and hand you off for the rest. Voltan owns the whole stack — so compliance, revenue and uptime are a single accountability.",
      zh: "大多数服务商只覆盖其中一层，其余交给你自己去拼。Voltan 自持全栈——合规、收益与可用性归属同一责任方。",
    },
    layers: [
      {
        key: "install",
        step: "L1",
        title: { en: "Install & Commission", zh: "安装与调试" },
        desc: {
          en: "Field deployment, inverter + battery integration, gateway provisioning, DNSP enrollment.",
          zh: "现场部署、逆变器与电池集成、网关配置、DNSP 入网。",
        },
        bullets: {
          en: ["Onsite commissioning crews (VIC/NSW/ACT)", "Gateway + mTLS cert provisioning", "DNSP connection paperwork", "As-built documentation"],
          zh: ["维州 / 新州 / 首都领地现场调试团队", "网关与 mTLS 证书配置", "DNSP 并网文件代办", "竣工文档交付"],
        },
      },
      {
        key: "operate",
        step: "L2",
        title: { en: "Operate & Maintain", zh: "运行与维护" },
        desc: {
          en: "24/7 fleet monitoring, preventive O&M, performance analytics, warranty claim handling.",
          zh: "7×24 机队监控、预防性运维、性能分析、质保索赔处理。",
        },
        bullets: {
          en: ["SCADA-grade telemetry ingest", "Alarm triage + SLA response", "Degradation + SoH modelling", "Warranty + insurance workflows"],
          zh: ["SCADA 级遥测接入", "告警分级与 SLA 响应", "衰减与 SoH 建模", "质保与保险流程"],
        },
      },
      {
        key: "comply",
        step: "L3",
        title: { en: "Comply & Certify", zh: "合规与认证" },
        desc: {
          en: "In-house IEEE 2030.5 / CSIP-AUS protocol stack. CACTUS conformance. v1.2 ready ahead of July 2026.",
          zh: "自研 IEEE 2030.5 / CSIP-AUS 协议栈；通过 CACTUS 一致性测试；早于 2026 年 7 月完成 v1.2。",
        },
        bullets: {
          en: ["mTLS + SEP2 function sets", "CACTUS test harness automation", "v1.2 gap-analysis service"],
          zh: ["mTLS 与 SEP2 功能集", "CACTUS 自动化测试台", "v1.2 差距分析服务"],
        },
      },
      {
        key: "aggregate",
        step: "L4",
        title: { en: "Aggregate & Trade", zh: "聚合与交易" },
        desc: {
          en: "VPP dispatch, AEMO market participation, FCAS + energy arbitrage, revenue optimization.",
          zh: "VPP 调度、AEMO 市场参与、FCAS 与能量套利、收益优化。",
        },
        bullets: {
          en: ["AEMO-registered aggregator", "FCAS contingency + regulation", "Wholesale energy arbitrage", "Revenue share or SaaS models"],
          zh: ["AEMO 注册聚合商", "FCAS 应急 / 调频", "批发能量套利", "分润或 SaaS 合作模式"],
        },
      },
    ],
    footnote: {
      en: "Competitors typically cover L3 or L4 only. Installers cover L1. Voltan covers all four under one contract.",
      zh: "竞品通常只覆盖 L3 或 L4；安装商只做 L1。Voltan 在单一合同下覆盖四层。",
    },
  },

  proof: {
    kicker: { en: "Proof, not promises", zh: "用数据说话" },
    stats: [
      { value: "60+", suffix: " MWh", label: { en: "Residential storage deployed by our investor", zh: "投资人已部署家用储能资产" } },
      { value: "AEMO", suffix: "", label: { en: "Retail electricity licence held by investor", zh: "投资人持有 AEMO 售电公司资质" } },
      { value: "CACTUS", suffix: "", label: { en: "Full conformance suite passed", zh: "完整一致性测试套件通过" } },
      { value: "10", suffix: " yrs", label: { en: "Frontline installation experience", zh: "一线安装经验" } },
    ],
  },

  tech: {
    kicker: { en: "Technology", zh: "技术" },
    h2: {
      en: "Three layers of advantage, all built in-house.",
      zh: "三层技术壁垒，全部自研。",
    },
    sub: {
      en: "No black boxes, no reseller middleware. Protocol engineering, conformance testing, and field deployment under one roof.",
      zh: "无黑盒，无转售中间件。协议工程、一致性测试与现场部署，三位一体。",
    },
    items: [
      { k: { en: "Own gateway implementation", zh: "自研协议网关" },
        v: { en: "In-house IEEE 2030.5 / CSIP-AUS v1.2 gateway implementation. Not wrapped middleware — direct integration into your firmware or platform.",
             zh: "自研 IEEE 2030.5 / CSIP-AUS v1.2 协议网关，非封装中间件，可直接集成至固件或平台。" } },
      { k: { en: "CACTUS-proven", zh: "CACTUS 验证" },
        v: { en: "Full CACTUS conformance suite passed. Not self-certified — independently verified against the DNSP test harness with zero blocking defects at sign-off.",
             zh: "通过完整 CACTUS 一致性测试套件，非自我认证——经 DNSP 测试台独立验证，签署时零阻断缺陷。" } },
    ],
    link: { en: "Read the engineering cookbook →", zh: "阅读工程手册 →", href: "https://csipaus-cookbook.vercel.app/" },
  },

  why: {
    kicker: { en: "Why now", zh: "为什么是现在" },
    h2_en: "The Australian DER window closes in July 2026.",
    h2_zh: "澳洲 DER 窗口期在 2026 年 7 月关闭。",
    body: {
      en: [
        "From July 2026, CSIP-AUS v1.2 compliance becomes mandatory for DER connections across participating DNSPs. Non-compliant inverters will be refused grid enrollment, and non-compliant fleets will be cut from VPP markets.",
        "This is a narrow, enforceable deadline. OEMs who haven't shipped firmware by Q2 2026 will lose channel access. Installers without CSIP-capable stock will lose jobs to competitors. Retailers without an aggregation partner will lose VPP revenue to the ones who moved early.",
        "Voltan is built for this exact moment — an Australian team with the protocol engineering, field ops, and AEMO registration to close the loop before the deadline."
      ],
      zh: [
        "自 2026 年 7 月起，CSIP-AUS v1.2 合规将成为参与 DNSP 的 DER 接入强制要求。不合规逆变器将被拒绝并网，不合规机队将被剔除出 VPP 市场。",
        "这是一条窄、但可执行的时间线。未能在 2026 Q2 前交付固件的 OEM 将失去渠道；缺少 CSIP 可用库存的安装商将流失订单；没有聚合伙伴的零售商则会把 VPP 收益让给更早动手的对手。",
        "Voltan 正是为此刻组建——一支具备协议工程、现场运营与 AEMO 注册资格的澳洲团队，赶在窗口关闭前完成闭环。"
      ],
    },
  },

  about: {
    kicker: { en: "Team", zh: "团队" },
    h2: { en: "Field-proven engineers, from protocol to battery.", zh: "从协议到电池，经过实战检验的工程师。" },
    sub: {
      en: "Australian-registered. Canberra + Melbourne. Complementary strengths across the stack.",
      zh: "澳洲注册，堪培拉 + 墨尔本。技术栈互补。",
    },
    founders: [
      {
        name: "Harrison",
        role: { en: "Co-founder · Protocol & network engineering", zh: "联合创始人 · 协议与网络工程" },
        bio:  { en: "Jupiter project team. Network-layer specialist. Architected production IEEE 2030.5 / CSIP-AUS stacks from the ground up.",
                 zh: "Jupiter 项目组成员，网络编程专家；从零构建量产级 IEEE 2030.5 / CSIP-AUS 协议栈。" },
      },
      {
        name: "Jeff",
        role: { en: "Co-founder · Field installation & asset ops", zh: "联合创始人 · 现场安装与资产运营" },
        bio:  { en: "10 yrs frontline installation across residential, C&I and utility-scale storage. Real sites, real DNSPs, real grid conditions — experience that shapes how we design and deploy.",
                 zh: "10 年家储、工商储与大储一线安装经验，真实现场、真实 DNSP、真实电网——这些经验直接影响我们的设计与部署方式。" },
      },
      {
        name: "Jun",
        role: { en: "Advisor & Investor", zh: "顾问与投资人" },
        bio:  { en: "60–80 MWh of residential storage assets deployed across Australia. Holds AEMO retail electricity company licence. Brings deep market access and asset operations experience to the Voltan ecosystem.",
                 zh: "在澳大利亚部署了 60–80 MWh 家用储能资产，持有 AEMO 售电公司资质，为 Voltan 生态带来深度市场准入与资产运营经验。" },
      },
    ],
  },


  contact: {
    kicker: { en: "Start", zh: "开始合作" },
    h2: {
      en: "Tell us where you're stuck. We'll tell you which layer to start at.",
      zh: "告诉我们你卡在哪。我们告诉你从哪一层介入。",
    },
    segLabel: { en: "I am a…", zh: "我是……" },
    segs: [
      { id: "oem",       label: { en: "Inverter manufacturer", zh: "逆变器厂商" } },
      { id: "installer", label: { en: "Installer / EPC",       zh: "安装商 / EPC" } },
      { id: "owner",     label: { en: "Asset owner",            zh: "资产持有人" } },
      { id: "retailer",  label: { en: "Energy retailer",        zh: "能源零售商" } },
    ],
    email:   { en: "Work email",    zh: "工作邮箱" },
    company: { en: "Company",       zh: "公司" },
    message: { en: "Context — what are you trying to ship, and by when?",
               zh: "简要说明——你在交付什么？期望时间？" },
    submit:  { en: "Request a call", zh: "申请通话" },
    sent:    { en: "Received. We respond within one business day.",
               zh: "已收到。一个工作日内回复。" },
    direct:  { en: "Or email us directly:", zh: "或直接邮件我们：" },
  },

  footer: {
    tagline: { en: "Distributed energy, integrated end-to-end.",
               zh: "分布式能源，端到端一体化。" },
    abn:     "ABN 12 345 678 901",
    addr:    { en: "Canberra · Melbourne, Australia", zh: "澳大利亚 堪培拉 · 墨尔本" },
    rights:  { en: "© 2026 Voltan Pty Ltd. All rights reserved.",
               zh: "© 2026 Voltan Pty Ltd. 版权所有。" },
  },
};

window.COPY = COPY;
const t = (node, lang) => {
  if (!node) return "";
  if (typeof node === "string") return node;
  return node[lang] ?? node.en ?? "";
};
window.t = t;
