// Hero — full-bleed light section with the ASEPTIC wordmark as the visual anchor.
function Hero({ lang, variant }) {
  const h = COPY.hero[variant] || COPY.hero.intelligence;

  return (
    <section id="top" className="apple-section-light"
      style={{padding: '120px 22px 96px', textAlign: 'center', position:'relative', overflow:'hidden'}}>
      <div style={{maxWidth: 980, margin: '0 auto', position:'relative', zIndex: 2}}>
        <div className="apple-t-subheading"
             style={{marginBottom: 18, color: 'var(--apple-text-tertiary-light)',
                     fontSize: 17, letterSpacing: '-0.374px'}}>
          {pick(h.eyebrow, lang)}
        </div>

        {/* The wordmark is the hero "product photograph" */}
        <div style={{marginBottom: 28, display:'flex', justifyContent:'center'}}>
          <img src="assets/aseptic-wordmark-black.png" alt="ASEPTIC"
               style={{height: 88, width: 'auto', maxWidth: '88vw', display:'block'}} />
        </div>

        <h1 className="apple-t-display-hero"
            style={{margin: '0 0 8px', fontSize: 'clamp(40px, 6vw, 64px)', textWrap: 'balance'}}>
          {pick(h.title, lang)}
        </h1>
        <p className="apple-t-subheading"
           style={{margin: '0 0 30px', color: 'var(--apple-near-black)',
                   fontSize: 'clamp(19px, 2.3vw, 24px)', fontWeight: 400, textWrap: 'balance'}}>
          {pick(h.subtitle, lang)}
        </p>

        <div style={{display: 'flex', gap: 14, justifyContent: 'center', flexWrap:'wrap'}}>
          <a href="#solutions" className="apple-btn-primary"
             onClick={(e)=>{e.preventDefault(); document.getElementById('solutions')?.scrollIntoView({behavior:'smooth', block:'start'});}}>
            {pick(h.ctaPrimary, lang)}
          </a>
          <a href="#about" className="apple-pill-link"
             onClick={(e)=>{e.preventDefault(); document.getElementById('about')?.scrollIntoView({behavior:'smooth', block:'start'});}}>
            {pick(h.ctaSecondary, lang)} ›
          </a>
        </div>
      </div>

      {/* Soft radial behind the wordmark — the only allowed "gradient", treated as photographic */}
      <div aria-hidden="true" style={{
        position:'absolute', inset: 0, pointerEvents:'none', zIndex: 1,
        background: 'radial-gradient(ellipse at 50% 32%, rgba(0,113,227,0.06) 0%, transparent 55%)',
      }}/>
    </section>
  );
}

Object.assign(window, { Hero });
