const Why = () => {
  const pains = [
    {
      tag: 'PAIN 01',
      title: '只靠課費，天花板摸得到',
      body: '每個會員每月貢獻有限，開新課、壓低價又怕流失客群。你需要的是一個「不用多請人」就能多一份收入的管道。',
    },
    {
      tag: 'PAIN 02',
      title: '教練賣品牌不信任的東西',
      body: '架上那些代工補給品，連教練自己都不敢喝。小禎代言、實驗室把關的 WEDAR，讓你的專業推薦有背書。',
    },
    {
      tag: 'PAIN 03',
      title: '沒預算做行銷，場館變路人',
      body: '我們派攝影團隊、贊助賽事、做牆面視覺——讓聯盟幫你分擔行銷成本，不再一個人單打獨鬥。',
    },
  ];

  return (
    <section id="why" className="relative bg-wedar-bone py-24 lg:py-32">
      <div className="max-w-[1440px] mx-auto px-6 lg:px-10">
        <div className="grid lg:grid-cols-12 gap-10 mb-16">
          <div className="lg:col-span-5 reveal">
            <SectionLabel>Why Partner</SectionLabel>
            <h2 className="mt-6 font-black-display text-[clamp(40px,5.6vw,88px)] leading-[0.95] text-wedar-primary tracking-hyper">
              你不缺<br/>
              <span className="stroke-hero" style={{WebkitTextStroke: '2px #003B36'}}>客人</span><br/>
              你缺多一條路。
            </h2>
          </div>
          <div className="lg:col-span-6 lg:col-start-7 flex items-end reveal">
            <p className="text-[17px] leading-[1.8] text-wedar-primary/75 max-w-md">
              在競爭激烈的健身市場中，小型場館與工作室除了專業課程，更需要多元化的經營模式來提升競爭力。WEDAR 健身營養聯盟 旨在與您建立平等的夥伴關係，透過專業營養支持與品牌行銷資源，幫助您在不增加營運成本的前提下，提升會員滿意度並創造額外營收。
            </p>
          </div>
        </div>

        {/* Pain cards */}
        <div className="grid md:grid-cols-3 gap-5 reveal">
          {pains.map((p, i) => (
            <div key={i} className="group relative bg-white rounded-[28px] p-8 border border-wedar-primary/10 hover:border-wedar-primary transition-all hover:-translate-y-1 duration-500">
              <div className="flex items-baseline justify-between mb-10">
                <span className="font-black-display text-xs tracking-[0.3em] text-wedar-primary/40">{p.tag}</span>
                <span className="font-black-display text-5xl text-wedar-primary/10 group-hover:text-wedar-green transition-colors">{String(i+1).padStart(2,'0')}</span>
              </div>
              <h3 className="text-xl font-black text-wedar-primary leading-snug mb-4">{p.title}</h3>
              <p className="text-[14px] leading-[1.8] text-wedar-primary/65">{p.body}</p>
              <div className="absolute bottom-6 right-6 h-10 w-10 rounded-full bg-wedar-bone flex items-center justify-center text-wedar-primary/40 group-hover:bg-wedar-primary group-hover:text-wedar-lime transition-colors">
                <svg width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M5 12h14M13 6l6 6-6 6" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round"/></svg>
              </div>
            </div>
          ))}
        </div>
      </div>
    </section>
  );
};

Object.assign(window, { Why });
