/* ============================================================
   Icons (simple line glyphs) + Content data — real Asia AI content
   ============================================================ */
const I = ({d, size=18, sw=1.7, fill, children, vb=24}) => (
  <svg width={size} height={size} viewBox={`0 0 ${vb} ${vb}`} fill={fill||"none"}
       stroke={fill?"none":"currentColor"} strokeWidth={sw} strokeLinecap="round" strokeLinejoin="round">
    {d ? <path d={d}/> : children}
  </svg>
);
const Icon = {
  arrow:  (p)=><I {...p} d="M5 12h14M13 6l6 6-6 6"/>,
  arrowUR:(p)=><I {...p} d="M7 17L17 7M9 7h8v8"/>,
  search: (p)=><I {...p}><circle cx="11" cy="11" r="7"/><path d="M21 21l-4-4"/></I>,
  calendar:(p)=><I {...p}><rect x="3" y="5" width="18" height="16" rx="2"/><path d="M3 9h18M8 3v4M16 3v4"/></I>,
  pin:    (p)=><I {...p}><path d="M12 21s7-5.5 7-11a7 7 0 10-14 0c0 5.5 7 11 7 11z"/><circle cx="12" cy="10" r="2.5"/></I>,
  clock:  (p)=><I {...p}><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></I>,
  users:  (p)=><I {...p}><circle cx="9" cy="8" r="3.2"/><path d="M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6"/><path d="M16 5.2a3.2 3.2 0 010 5.6M21 20c0-2.6-1.4-4.6-3.5-5.5"/></I>,
  spark:  (p)=><I {...p} d="M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z"/>,
  shield: (p)=><I {...p}><path d="M12 3l7 3v5c0 4.5-3 8-7 10-4-2-7-5.5-7-10V6z"/><path d="M9 12l2 2 4-4"/></I>,
  chart:  (p)=><I {...p}><path d="M4 20V10M10 20V4M16 20v-7M22 20H2"/></I>,
  doc:    (p)=><I {...p}><path d="M14 3H7a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V8z"/><path d="M14 3v5h5M9 13h6M9 17h6"/></I>,
  globe:  (p)=><I {...p}><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3c2.5 2.6 2.5 15.4 0 18M12 3c-2.5 2.6-2.5 15.4 0 18"/></I>,
  health: (p)=><I {...p}><path d="M19 14c-2 3-7 6-7 6s-5-3-7-6c-1.6-2.4-1.3-5.8 1.2-7.2C9 5.7 11 6.5 12 8c1-1.5 3-2.3 4.8-1.2 2.5 1.4 2.8 4.8 1.2 7.2z"/><path d="M8.5 12h2l1-2 1.5 3 1-1h1.5"/></I>,
  bank:   (p)=><I {...p}><path d="M4 10l8-5 8 5M5 10v8M19 10v8M9 10v8M15 10v8M3 21h18"/></I>,
  heart:  (p)=><I {...p} d="M12 20s-7-4.3-7-9.5A4.5 4.5 0 0112 7a4.5 4.5 0 017 3.5C19 15.7 12 20 12 20z"/>,
  gavel:  (p)=><I {...p}><path d="M14 4l6 6-3 3-6-6zM8 10l6 6M3 21h7M5 18l5-5"/></I>,
  send:   (p)=><I {...p} d="M22 2L11 13M22 2l-7 20-4-9-9-4z"/>,
  check:  (p)=><I {...p} d="M5 12l5 5L20 6"/>,
  x:      (p)=><I {...p} d="M6 6l12 12M18 6L6 18"/>,
  play:   (p)=><I {...p} fill="currentColor"><path d="M8 5v14l11-7z"/></I>,
  briefcase:(p)=><I {...p}><rect x="3" y="7" width="18" height="13" rx="2"/><path d="M8 7V5a2 2 0 012-2h4a2 2 0 012 2v2M3 13h18"/></I>,
  qr:     (p)=><I {...p}><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><path d="M14 14h3v3M21 14v7M17 21h4M17 17v0"/></I>,
  badge:  (p)=><I {...p}><circle cx="12" cy="9" r="5"/><path d="M9 13l-1.5 8L12 19l4.5 2L15 13"/></I>,
  book:   (p)=><I {...p}><path d="M4 5a2 2 0 012-2h13v16H6a2 2 0 00-2 2z"/><path d="M4 19a2 2 0 012-2h13"/></I>,
  grad:   (p)=><I {...p}><path d="M22 9L12 4 2 9l10 5 10-5z"/><path d="M6 11v5c0 1 2.7 3 6 3s6-2 6-3v-5"/></I>,
  bolt:   (p)=><I {...p} d="M13 2L4 14h7l-1 8 9-12h-7z"/>,
  bell:   (p)=><I {...p}><path d="M18 8a6 6 0 10-12 0c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.7 21a2 2 0 01-3.4 0"/></I>,
  chat:   (p)=><I {...p} d="M21 12a8 8 0 01-11.5 7.2L3 21l1.8-6.5A8 8 0 1121 12z"/>,
  grid:   (p)=><I {...p}><rect x="3" y="3" width="7" height="7" rx="1.5"/><rect x="14" y="3" width="7" height="7" rx="1.5"/><rect x="3" y="14" width="7" height="7" rx="1.5"/><rect x="14" y="14" width="7" height="7" rx="1.5"/></I>,
  card:   (p)=><I {...p}><rect x="2" y="5" width="20" height="14" rx="2.5"/><path d="M2 10h20M6 15h4"/></I>,
  settings:(p)=><I {...p}><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 11-2.83 2.83l-.06-.06a1.65 1.65 0 00-2.82 1.17V21a2 2 0 01-4 0v-.09A1.65 1.65 0 007.5 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 11-2.83-2.83l.06-.06A1.65 1.65 0 004.6 15a1.65 1.65 0 00-1.51-1H3a2 2 0 010-4h.09A1.65 1.65 0 004.6 8.5a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 112.83-2.83l.06.06A1.65 1.65 0 009 4.6a1.65 1.65 0 001-1.51V3a2 2 0 014 0v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 112.83 2.83l-.06.06A1.65 1.65 0 0019.4 9c.14.31.22.65.22 1z"/></I>,
  logout: (p)=><I {...p}><path d="M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4M16 17l5-5-5-5M21 12H9"/></I>,
  hand:   (p)=><I {...p} d="M18 11V6a2 2 0 00-4 0v5M14 10V4a2 2 0 00-4 0v6M10 10.5V6a2 2 0 00-4 0v8a6 6 0 006 6h1a6 6 0 006-6v-3a2 2 0 00-4 0"/>,
  pen:    (p)=><I {...p} d="M12 20h9M16.5 3.5a2.12 2.12 0 013 3L7 19l-4 1 1-4z"/>,
  filter: (p)=><I {...p} d="M22 3H2l8 9.46V19l4 2v-8.54z"/>,
  link:   (p)=><I {...p}><path d="M10 13a5 5 0 007 0l3-3a5 5 0 00-7-7l-1 1"/><path d="M14 11a5 5 0 00-7 0l-3 3a5 5 0 007 7l1-1"/></I>,
  dollar: (p)=><I {...p} d="M12 1v22M17 5H9.5a3.5 3.5 0 000 7h5a3.5 3.5 0 010 7H6"/>,
  trophy: (p)=><I {...p}><path d="M6 4h12v4a6 6 0 01-12 0zM6 6H3v2a3 3 0 003 3M18 6h3v2a3 3 0 01-3 3M9 18h6M10 18l.5-3M14 18l-.5-3M8 22h8"/></I>,
};

/* ---- chapters ---- */
const CHAPTERS = [
  {flag:"🇸🇬", c:"Singapore", role:"Headquarters"},
  {flag:"🇲🇾", c:"Malaysia", role:"Chapter"},
  {flag:"🇮🇩", c:"Indonesia", role:"Chapter"},
  {flag:"🇵🇭", c:"Philippines", role:"Chapter"},
  {flag:"🇹🇭", c:"Thailand", role:"Chapter"},
  {flag:"🇻🇳", c:"Vietnam", role:"Chapter"},
  {flag:"🇮🇳", c:"India", role:"Chapter"},
  {flag:"🇦🇪", c:"UAE", role:"Chapter"},
];

/* ---- partners (real) ---- */
const PARTNERS = [
  {n:"Dacta", role:"WSQ Training", m:"D"},
  {n:"Nexius", role:"AI Training", m:"N"},
  {n:"Neurokokoro", role:"Cognitive AI", m:"N"},
  {n:"SIM", role:"Institutional", m:"S"},
  {n:"NTUC", role:"SME Partner", m:"N"},
  {n:"ASME", role:"Association", m:"A"},
  {n:"Hired1st", role:"Talent", m:"H"},
  {n:"Exelerys", role:"Cyber Security", m:"E"},
  {n:"Pixlr", role:"Generative AI", m:"P"},
  {n:"e27", role:"Community", m:"e"},
];

/* ---- pillars ---- */
const PILLARS = [
  {n:"01", icon:"bolt", title:"Enterprise AI Solutions", desc:"Development, integration and optimisation for enterprises — enhancing efficiency, innovation and decision-making through AI consultancy."},
  {n:"02", icon:"users", title:"Networking & Collaboration", desc:"Connect a diverse community of AI professionals, academics and enthusiasts for collaborative research, knowledge sharing and events."},
  {n:"03", icon:"shield", title:"Industry & Ethical Insights", desc:"Stay updated on AI trends, technologies and best practices while engaging in discussions about applications and ethics."},
];

/* ---- AI tools (real) ---- */
const AITOOLS = [
  {tag:"AI Agent", name:"AI Policy Advisor", icon:"gavel", grad:"linear-gradient(135deg,#1ba5fe,#0f70d7)",
   desc:"Real-time AI regulation tracking across 8 jurisdictions — Singapore, China, Japan, Korea, India, ASEAN, EU & Global — scanned weekly.", live:true},
  {tag:"Audit", name:"AI Ethics Auditor", icon:"shield", grad:"linear-gradient(135deg,#22b367,#179a55)",
   desc:"Upload a model card or policy and get a compliance score, ethical-risk summary, and concrete recommendations."},
  {tag:"Research", name:"Research Synthesizer", icon:"chart", grad:"linear-gradient(135deg,#7a5cf5,#5a3ee0)",
   desc:"Auto-summaries of the latest AI research and events, with smart tagging that makes the Knowledge Hub instantly searchable."},
  {tag:"Coach", name:"AI Skills Coach", icon:"grad", grad:"linear-gradient(135deg,#f0902b,#d97515)",
   desc:"Personalised learning paths and weekly nudges that keep you progressing across the AI & Human Intelligence curriculum."},
];

const EVENTS = [
  {d:"24", m:"Jun", title:"Asia AI Summit 2026", type:"Conference", typeColor:"#0f70d7",
   place:"Marina Bay Sands · Singapore", time:"09:00 – 18:00 SGT", live:true,
   att:"+820 attending", avs:["#0f70d7","#2f7d8f","#1ba5fe"]},
  {d:"02", m:"Jul", title:"AI Ethics & Governance Webinar", type:"Webinar", typeColor:"#2f7d8f",
   place:"Online · Zoom", time:"15:00 – 16:30 SGT", live:false,
   att:"+340 attending", avs:["#2f7d8f","#0f70d7"]},
  {d:"15", m:"Jul", title:"University AI Hackathon — KL", type:"Hackathon", typeColor:"#c4623f",
   place:"Universiti Malaya · Kuala Lumpur", time:"All day · MYT", live:false,
   att:"+120 attending", avs:["#c4623f","#0f70d7","#2f7d8f"]},
];

const GROUPS = [
  {name:"Responsible AI", icon:"shield", color:"#0f70d7", desc:"Frameworks for fairness, transparency and accountability in deployed systems.", members:"1,240", posts:"38", leads:"Kenneth Tan +2"},
  {name:"AI in Healthcare", icon:"health", color:"#2f7d8f", desc:"Clinical AI, diagnostics and patient-data ethics across Asian health systems.", members:"890", posts:"24", leads:"Nick Luo +3"},
  {name:"AI in Finance", icon:"bank", color:"#3a6ea5", desc:"Risk modelling, fraud detection and regulatory-grade model governance.", members:"760", posts:"19", leads:"Peter Ong +2"},
  {name:"AI for Social Good", icon:"heart", color:"#c4623f", desc:"Climate, education and humanitarian applications for the public interest.", members:"1,510", posts:"42", leads:"Elle Quan +4"},
  {name:"AI Policy & Governance", icon:"gavel", color:"#6b5ca5", desc:"Pan-Asia policy alignment, standards and cross-border AI regulation.", members:"640", posts:"15", leads:"Jesus Escolar +1"},
  {name:"Frontier & Research", icon:"spark", color:"#1ba5fe", desc:"Foundation models, multimodal systems and emerging research summaries.", members:"2,030", posts:"57", leads:"Imran Chng +5"},
];

const INSIGHTS = [
  {feature:true, tag:"Policy Report", title:"Asia AI Regulation Digest — what 8 jurisdictions changed this month",
   desc:"Our AI research agents scan Singapore, China, Japan, Korea, India, ASEAN, EU and Global every Monday. This month's digest flags 3 enforcement deadlines members must act on.",
   read:"12 min read", date:"Jun 2026", prog:42},
  {tag:"Certification", alt:false, title:"AI Academy: new Agentic AI certification pathway is live", read:"4 min", date:"Jun 10", prog:0},
  {tag:"Guidelines", alt:true, title:"AI Ethics Auditor v3 — now with EU-AI-Act mapping", read:"5 min", date:"Jun 06", prog:0},
  {tag:"Industry", alt:false, title:"Featured on e27 AI Pulse: human-centred AI across the region", read:"6 min", date:"May 29", prog:0},
  {tag:"Webinar", alt:true, title:"Recording — Governance in the age of agentic AI", read:"58 min", date:"May 22", prog:0},
];

/* ---- membership tiers (real) ---- */
const TIERS = [
  {name:"Free", price:"$0", per:"/ yr", desc:"For newcomers exploring what AI can do.",
   featured:false, cta:"Join free", btn:"btn-ghost",
   feats:[["All public Asia AI events",1],["Monthly AI newsletter",1],["Selected event recordings",1],["Members Portal access",0]]},
  {name:"Basic", price:"$99", per:"/ yr", desc:"Full portal access and AI-powered tools.",
   featured:false, cta:"Get Basic", btn:"btn-ghost",
   feats:[["Everything in Free",1],["Members Portal & AI agents",1],["Event RSVP + community forum",1],["AI Policy weekly digest",0]]},
  {name:"Standard", price:"$199", per:"/ yr", desc:"For active AI practitioners shaping the field.",
   featured:true, cta:"Get Standard", btn:"btn-primary",
   feats:[["Everything in Basic",1],["Research Synthesizer reports",1],["AI Policy weekly digest",1],["Priority event registration",1],["Volunteer Matcher access",1]]},
  {name:"Premium", price:"$399", per:"/ yr", desc:"For leaders setting Asia's AI direction.",
   featured:false, cta:"Get Premium", btn:"btn-dark",
   feats:[["Everything in Standard",1],["AI Skills Coach + nudges",1],["Grant & partnership intros",1],["AI Ethics Auditor tool",1],["AI & HI learning courses",1]]},
];

const CORP_TIERS = [
  {t:"🥉 Bronze", seats:"2 seats", price:"$2,000", per:"/ yr", seat:"$1,000 / seat"},
  {t:"🥈 Silver", seats:"5 seats", price:"$5,000", per:"/ yr", seat:"$1,000 / seat"},
  {t:"🥇 Gold", seats:"10 seats · best value", price:"$8,000", per:"/ yr", seat:"$800 / seat"},
];

/* ---- team / committee (real) ---- */
const TEAM = [
  {n:"Teddy Lee", r:"Founder & President", c:"#0f70d7", i:"TL"},
  {n:"Kenneth Tan", r:"EVP · Chief AI Officer", c:"#2f7d8f", i:"KT"},
  {n:"Jesus Escolar", r:"AI Principal Advisor", c:"#6b5ca5", i:"JE"},
  {n:"Nick Luo", r:"VP · Data Science Lead", c:"#c4623f", i:"NL"},
  {n:"Gerra Chong", r:"AI Branding Strategist", c:"#3a6ea5", i:"GC"},
  {n:"Imran Chng", r:"AI Development Director", c:"#1ba5fe", i:"IC"},
  {n:"Elle Quan", r:"UAE & Philippines President", c:"#d9904b", i:"EQ"},
  {n:"Adrian Tong", r:"AI Events & Marketing", c:"#2f7d8f", i:"AT"},
];

const FAQ = [
  {q:"What are the benefits of membership?", a:"Membership includes access to AI research, networking opportunities, exclusive events, discounts on AI certifications, and career support focused on AI advancements across Asia."},
  {q:"Do you offer educational programs or courses?", a:"Yes — our AI Academy and partner institutions deliver certification programmes that enhance AI knowledge and skills, including an Agentic AI pathway."},
  {q:"How can I become a partner?", a:"Reach out to our partnership division to discuss collaboration opportunities that align with our mission of advancing AI across Asia."},
  {q:"What networking opportunities are available?", a:"Webinars, conferences, special-interest groups, hackathons and regional meetups across all eight chapters — all focused on AI and community building."},
  {q:"How can I volunteer or get involved?", a:"Use the Volunteer Matcher in the Members Portal, email us your interest and skills, or approach our committee members at any Asia AI event."},
  {q:"What is the Association's stance on ethical AI?", a:"We are committed to ethical AI — advocating responsible development and application of AI technologies that benefit society across Asia and beyond."},
];

Object.assign(window, { Icon, CHAPTERS, PARTNERS, PILLARS, AITOOLS, EVENTS, GROUPS, INSIGHTS, TIERS, CORP_TIERS, TEAM, FAQ });
