// Rotating hero phone
const HERO_SCREENS = [
  "assets/screen-home.png",
  "assets/screen-day.png",
  "assets/screen-week.png",
  "assets/screen-month.png",
];
const HeroPhoneRotator = () => {
  const [i, setI] = React.useState(0);
  React.useEffect(() => {
    const id = setInterval(() => setI(x => (x+1) % HERO_SCREENS.length), 3200);
    return () => clearInterval(id);
  }, []);
  return (
    <div className="phone phone-float">
      <div className="phone-screen">
        {HERO_SCREENS.map((src, idx) => (
          <img key={src} src={src} alt="" style={{
            position:'absolute',inset:0,width:'100%',height:'100%',objectFit:'cover',objectPosition:'top',
            opacity: i===idx ? 1 : 0, transition:'opacity 0.9s ease'
          }}/>
        ))}
      </div>
    </div>
  );
};

// ---------------- COMMERCIAL ----------------
const Commercial = () => {
  const ref = React.useRef(null);
  const [muted, setMuted] = React.useState(true);
  const [playing, setPlaying] = React.useState(true);
  const toggleMute = () => {
    if (!ref.current) return;
    ref.current.muted = !ref.current.muted;
    setMuted(ref.current.muted);
  };
  const togglePlay = () => {
    if (!ref.current) return;
    if (ref.current.paused) { ref.current.play(); setPlaying(true); }
    else { ref.current.pause(); setPlaying(false); }
  };
  return (
    <section id="commercial" style={{padding:'40px 0 80px'}}>
      <div className="wrap">
        <div style={{position:'relative',borderRadius:20,overflow:'hidden',border:'1px solid var(--line-strong)',background:'#000',aspectRatio:'16/9',boxShadow:'0 40px 120px -20px color-mix(in oklch, var(--accent) 25%, transparent)'}}>
          <video
            ref={ref}
            src="assets/commercial.mp4?v=3"
            autoPlay
            muted
            loop
            playsInline
            style={{width:'100%',height:'100%',objectFit:'cover',display:'block'}}
          />
          <div style={{position:'absolute',top:20,left:20,display:'flex',alignItems:'center',gap:10,background:'rgba(0,0,0,0.55)',backdropFilter:'blur(8px)',padding:'8px 14px',borderRadius:999,border:'1px solid rgba(255,255,255,0.15)'}}>
            <span style={{width:6,height:6,borderRadius:'50%',background:'var(--accent)',boxShadow:'0 0 10px var(--accent)',animation:'pulse 2s infinite'}}/>
            <span className="mono" style={{fontSize:10,letterSpacing:'0.2em',color:'#fff',textTransform:'uppercase'}}>Commercial · 2026</span>
          </div>
          <div style={{position:'absolute',bottom:20,right:20,display:'flex',gap:10}}>
            <button onClick={togglePlay} aria-label="play/pause" style={{width:44,height:44,borderRadius:'50%',background:'rgba(0,0,0,0.55)',backdropFilter:'blur(8px)',border:'1px solid rgba(255,255,255,0.2)',color:'#fff',display:'flex',alignItems:'center',justifyContent:'center',cursor:'pointer'}}>
              {playing ? (
                <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><rect x="6" y="5" width="4" height="14" rx="1"/><rect x="14" y="5" width="4" height="14" rx="1"/></svg>
              ) : (
                <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M7 5v14l12-7z"/></svg>
              )}
            </button>
            <button onClick={toggleMute} aria-label="mute" style={{width:44,height:44,borderRadius:'50%',background:'rgba(0,0,0,0.55)',backdropFilter:'blur(8px)',border:'1px solid rgba(255,255,255,0.2)',color:'#fff',display:'flex',alignItems:'center',justifyContent:'center',cursor:'pointer'}}>
              {muted ? (
                <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><line x1="23" y1="9" x2="17" y2="15"/><line x1="17" y1="9" x2="23" y2="15"/></svg>
              ) : (
                <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><path d="M15.54 8.46a5 5 0 0 1 0 7.07"/><path d="M19.07 4.93a10 10 0 0 1 0 14.14"/></svg>
              )}
            </button>
          </div>
        </div>
      </div>
    </section>
  );
};

// ---------------- NAV ----------------
const Nav = () => (
  <nav className="nav">
    <div className="nav-inner">
      <a href="#top" className="nav-logo">
        <img src="assets/logo.png" alt="I Can" />
        <span>I Can</span>
      </a>
      <div className="nav-links">
        <a href="#how">How it works</a>
        <a href="#coach">AI Coach</a>
        <a href="#dashboard">Dashboard</a>
        <a href="#sports">Sports</a>
        <a href="https://apps.apple.com/gb/app/i-can-performance-tracker/id6760717419" className="nav-cta" target="_blank" rel="noopener">Get the app</a>
      </div>
    </div>
  </nav>
);

// ---------------- APP STORE BADGE ----------------
const AppleGlyph = ({ size = 22 }) => (
  <svg width={size} height={size} viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
    <path d="M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.08zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"/>
  </svg>
);

const AppStoreBadge = () => (
  <a className="appstore-badge" href="https://apps.apple.com/gb/app/i-can-performance-tracker/id6760717419" target="_blank" rel="noopener">
    <AppleGlyph size={26} />
    <div>
      <div className="as-sub">Download on the</div>
      <div className="as-main">App Store</div>
    </div>
  </a>
);

// ---------------- HERO ----------------
const HERO_WORDS = ["TRAIN", "FUEL", "RECOVER", "IMPROVE", "WIN", "EMBRACE"];

const Hero = ({ mantras }) => {
  const [wi, setWi] = React.useState(0);
  React.useEffect(() => {
    const id = setInterval(() => setWi((i) => (i + 1) % mantras.length), 2000);
    return () => clearInterval(id);
  }, [mantras.length]);

  return (
    <section className="hero" id="top">
      <div className="hero-glow" />
      <div className="hero-grid" />
      <div className="wrap hero-inner">
        <div>
          <div className="hero-tag">
            <span className="dot" />
            <span className="mono" style={{fontSize:11,letterSpacing:'0.18em'}}>LIVE ON THE APP STORE · V1.0</span>
          </div>
          <h1>
            I CAN<br/>
            <span className="rot" key={wi}>{mantras[wi]}</span>
          </h1>
          <p className="hero-sub">
            The AI performance tracker built for athletes who want to improve <strong>every single day.</strong> Training, nutrition and sleep — unified into one coaching system that knows your sport, remembers your data, and tells you exactly what to do next.
          </p>
          <div className="hero-ctas">
            <AppStoreBadge />
            <a href="#how" className="btn btn-ghost">See how it works <span className="arr">→</span></a>
          </div>
          <div className="hero-stats">
            <div className="hero-stat"><div className="n">3-in-1</div><div className="l">Training · Nutrition · Sleep</div></div>
            <div className="hero-stat"><div className="n">24/7</div><div className="l">AI Coach on standby</div></div>
            <div className="hero-stat"><div className="n">6</div><div className="l">Sports supported</div></div>
          </div>
        </div>

        <div className="hero-visual">
          <HeroPhoneRotator />
          <div className="float-card fc-1">
            <div className="fc-row">
              <div className="fc-ic" style={{background:'color-mix(in oklch, var(--orange) 20%, transparent)',color:'var(--orange)'}}>🔥</div>
              <div>
                <div className="fc-label">Streak</div>
                <div className="fc-val">19 <span style={{fontSize:12,color:'var(--fg-mute)',fontWeight:500,letterSpacing:0}}>days</span></div>
              </div>
            </div>
          </div>
          <div className="float-card fc-2">
            <div className="fc-row">
              <div className="fc-ic" style={{background:'color-mix(in oklch, var(--accent) 20%, transparent)',color:'var(--accent)'}}>💤</div>
              <div>
                <div className="fc-label">Avg Sleep</div>
                <div className="fc-val">9.5h</div>
              </div>
            </div>
          </div>
          <div className="float-card fc-3">
            <div className="fc-row">
              <div className="fc-ic" style={{background:'color-mix(in oklch, var(--green) 20%, transparent)',color:'var(--green)'}}>▲</div>
              <div>
                <div className="fc-label">Load this week</div>
                <div className="fc-val">+18%</div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <Marquee />
    </section>
  );
};

const Marquee = () => {
  const items = ["SOCCER", "BASKETBALL", "BOXING", "TENNIS", "FOOTBALL", "CRICKET"];
  const all = [...items, ...items];
  return (
    <div className="marquee">
      <div className="marquee-inner">
        {all.map((t,i) => <div className="marquee-item" key={i}>{t}</div>)}
      </div>
    </div>
  );
};

// ---------------- HOW IT WORKS ----------------
const HowItWorks = () => (
  <section id="how">
    <div className="wrap">
      <div className="section-head">
        <div className="eyebrow">01 / The system</div>
        <h2>Three pillars.<br/>One <em>performance log.</em></h2>
        <p>Most apps track workouts only. I Can connects the three things that actually decide whether you improve — and feeds them into an AI that actually coaches you.</p>
      </div>

      <div className="pillars">
        <div className="pillar-card">
          <div className="pc-ic" style={{background:'color-mix(in oklch, var(--orange) 20%, transparent)',color:'var(--orange)'}}>
            <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round"><path d="M6.5 6.5 17.5 17.5"/><path d="M21 21l-1-1"/><path d="M3 3l1 1"/><path d="M18 22l4-4-3-3-4 4 3 3Z"/><path d="M2 18l4 4 3-3-4-4-3 3Z"/></svg>
          </div>
          <div>
            <h3>Training</h3>
            <p>Log every session — matches, gym, cardio, technical work — with sport-specific inputs that matter.</p>
          </div>
          <div className="pc-list">
            <span>Type · Duration · Intensity</span>
            <span>Sport-specific metrics</span>
            <span>Auto load calculation</span>
          </div>
        </div>
        <div className="pillar-card">
          <div className="pc-ic" style={{background:'color-mix(in oklch, var(--green) 20%, transparent)',color:'var(--green)'}}>
            <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round"><path d="M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7Z"/><path d="M12 9v.01"/></svg>
          </div>
          <div>
            <h3>Nutrition</h3>
            <p>Three meals, snacks, drinks — or skip typing and log a plate with a single photo on Premium.</p>
          </div>
          <div className="pc-list">
            <span>Meals + snacks + hydration</span>
            <span>Quality score, not calories</span>
            <span>AI photo logging</span>
          </div>
        </div>
        <div className="pillar-card">
          <div className="pc-ic" style={{background:'color-mix(in oklch, var(--purple) 20%, transparent)',color:'var(--purple)'}}>
            <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z"/></svg>
          </div>
          <div>
            <h3>Sleep</h3>
            <p>Hours, wake time, consistency. The quiet variable that moves everything else on the dashboard.</p>
          </div>
          <div className="pc-list">
            <span>Hours + wake time</span>
            <span>Consistency streak</span>
            <span>Recovery correlation</span>
          </div>
        </div>
      </div>
    </div>
  </section>
);

// ---------------- AI COACH ----------------
const AICoach = () => {
  return (
    <section id="coach" style={{background:'linear-gradient(180deg,transparent 0%, color-mix(in oklch, var(--accent) 3%, transparent) 50%, transparent 100%)'}}>
      <div className="wrap">
        <div className="coach">
          <div>
            <div className="eyebrow" style={{marginBottom:18}}>02 / AI Coach</div>
            <h2 className="display" style={{fontSize:'clamp(42px,6vw,88px)',margin:'0 0 24px'}}>Not generic advice.<br/><em style={{color:'var(--accent)',fontStyle:'normal'}}>Your</em> advice.</h2>
            <p style={{color:'var(--fg-dim)',fontSize:17,lineHeight:1.55,maxWidth:520,marginBottom:32}}>
              Your Elite Coach — always on. It remembers every training session, meal and hour of sleep you've logged, knows your sport, and gives personalised programs that respond to your data. Training, tactics, recovery, mindset, nutrition — one coach, one tap.
            </p>
            <ul style={{listStyle:'none',padding:0,margin:0,display:'flex',flexDirection:'column',gap:14}}>
              {[
                ['Context-aware','Understands the last 30 days of logs, not just today.'],
                ['Sport-specific','A boxer gets round-level advice. A footballer gets match recovery.'],
                ['Personalised programs','Punching power, recovery blocks, nutrition — built for you.'],
                ['Always on','Ask anything, any time. No appointments.'],
              ].map(([t,d]) => (
                <li key={t} style={{display:'flex',gap:14,alignItems:'flex-start'}}>
                  <span style={{marginTop:6,width:8,height:8,background:'var(--accent)',flexShrink:0,borderRadius:2}} />
                  <div>
                    <div style={{fontWeight:700,fontSize:15,letterSpacing:'-0.01em'}}>{t}</div>
                    <div style={{color:'var(--fg-dim)',fontSize:14,marginTop:2}}>{d}</div>
                  </div>
                </li>
              ))}
            </ul>
          </div>
          <div style={{display:'flex',justifyContent:'center',alignItems:'center',minHeight:560}}>
            <Phone src="assets/screen-coach.png" />
          </div>
        </div>
      </div>
    </section>
  );
};

// ---------------- DASHBOARD ----------------
const Dashboard = () => {
  const [tab, setTab] = React.useState(1);
  const screens = [
    { label:'Day', src:'assets/screen-day.png', note:'Daily score, training, nutrition and sleep — at a glance.' },
    { label:'Week', src:'assets/screen-week.png', note:'Load, nutrition quality and sleep hours across the week.' },
    { label:'Month', src:'assets/screen-month.png', note:'Monthly performance, trend line and consistency calendar.' },
  ];
  return (
    <section id="dashboard">
      <div className="wrap">
        <div className="section-head">
          <div className="eyebrow">03 / Dashboard</div>
          <h2>See the pattern.<br/>Move the <em>needle.</em></h2>
          <p>Daily overview, weekly trends, monthly breakdowns. Every log turns into a signal — training load, nutrition quality, sleep consistency, streaks, improvements.</p>
        </div>

        <div className="dash-showcase">
          <div style={{display:'flex',justifyContent:'center',alignItems:'center',minHeight:620,position:'relative'}}>
            <div className="phone">
              <div className="phone-screen">
                {screens.map((s, idx) => (
                  <img key={s.src} src={s.src} alt={s.label} style={{
                    position:'absolute',inset:0,width:'100%',height:'100%',objectFit:'cover',objectPosition:'top',
                    opacity: tab===idx ? 1 : 0, transition:'opacity .5s ease'
                  }}/>
                ))}
              </div>
            </div>
          </div>

          <div>
            <div className="tabs" style={{display:'inline-flex',marginBottom:24}}>
              {screens.map((s,i) => (
                <span key={s.label} className={tab===i?'on':''} onClick={()=>setTab(i)} style={{cursor:'pointer',userSelect:'none',padding:'8px 16px',fontSize:12}}>{s.label}</span>
              ))}
            </div>
            <h3 style={{fontFamily:'Archivo,sans-serif',fontWeight:900,fontSize:36,letterSpacing:'-0.03em',lineHeight:0.95,textTransform:'uppercase',margin:'0 0 12px'}}>
              {screens[tab].label}{tab===0?'ly':tab===1?'ly':'ly'} view
            </h3>
            <p style={{color:'var(--fg-dim)',fontSize:16,lineHeight:1.55,margin:'0 0 28px',maxWidth:480}}>{screens[tab].note}</p>

            <ul style={{listStyle:'none',padding:0,margin:0,display:'flex',flexDirection:'column',gap:18}}>
              {[
                { t:'Daily log', d:'Training + nutrition + sleep, logged in under 60 seconds.', n:'01'},
                { t:'Weekly trends', d:'Load, recovery, fuel quality — all scored, all charted.', n:'02'},
                { t:'Monthly breakdowns', d:'Long-term performance trends that reveal the real you.', n:'03'},
                { t:'Streaks + reports', d:'Consistency is king. We\'ll keep you honest.', n:'04'},
              ].map(it => (
                <li key={it.n} style={{display:'flex',gap:20,paddingBottom:18,borderBottom:'1px solid var(--line)'}}>
                  <div style={{fontFamily:'JetBrains Mono,monospace',fontSize:12,color:'var(--fg-mute)',minWidth:30,paddingTop:4}}>{it.n}</div>
                  <div>
                    <div style={{fontWeight:800,fontSize:18,letterSpacing:'-0.02em'}}>{it.t}</div>
                    <div style={{color:'var(--fg-dim)',fontSize:14,marginTop:4,lineHeight:1.55}}>{it.d}</div>
                  </div>
                </li>
              ))}
            </ul>
          </div>
        </div>
      </div>
    </section>
  );
};

// ---------------- WALKTHROUGH ----------------
const Walkthrough = () => {
  const screens = [
    { src:'assets/screen-journal.png', num:'01', t:'Journal', d:'Every log stored in a structured journal. Review past days, track consistency, reflect on performance — with a private Note of the Day only you see.' },
    { src:'assets/screen-reports.png', num:'02', t:'Reports', d:'Weekly, monthly and yearly reports unlock as you log. Earn them through consistency — not just time spent in the app.' },
    { src:'assets/screen-friends.png', num:'03', t:'Friends', d:'Add teammates, stay accountable, share streaks. The social layer that keeps athletes consistent — opt-in, never noisy.' },
  ];
  return (
    <section id="walkthrough" style={{background:'color-mix(in oklch, var(--bg) 94%, #fff)'}}>
      <div className="wrap">
        <div className="section-head">
          <div className="eyebrow">04 / Walkthrough</div>
          <h2>Built like a <em>system.</em><br/>Not a checklist.</h2>
          <p>Every tab reinforces the next. Log once. See it reflected in your journal, reports, coach and friends feed — instantly.</p>
        </div>

        <div style={{display:'flex',flexDirection:'column',gap:100}}>
          {screens.map((s,i) => (
            <div key={s.num} style={{
              display:'grid',
              gridTemplateColumns: i%2===0 ? '1fr 1.2fr' : '1.2fr 1fr',
              gap:60,
              alignItems:'center'
            }} className="walk-row">
              {i%2===0 ? (
                <>
                  <div style={{display:'flex',justifyContent:'center',minHeight:620}}>
                    <Phone src={s.src} />
                  </div>
                  <div>
                    <div style={{fontFamily:'JetBrains Mono,monospace',fontSize:12,letterSpacing:'0.2em',color:'var(--fg-mute)',marginBottom:14}}>{s.num} / FEATURE</div>
                    <h3 style={{fontFamily:'Archivo,sans-serif',fontWeight:900,fontSize:'clamp(36px,5vw,64px)',lineHeight:0.95,letterSpacing:'-0.04em',textTransform:'uppercase',margin:'0 0 20px'}}>{s.t}</h3>
                    <p style={{color:'var(--fg-dim)',fontSize:17,lineHeight:1.55,maxWidth:480,margin:0}}>{s.d}</p>
                  </div>
                </>
              ) : (
                <>
                  <div>
                    <div style={{fontFamily:'JetBrains Mono,monospace',fontSize:12,letterSpacing:'0.2em',color:'var(--fg-mute)',marginBottom:14}}>{s.num} / FEATURE</div>
                    <h3 style={{fontFamily:'Archivo,sans-serif',fontWeight:900,fontSize:'clamp(36px,5vw,64px)',lineHeight:0.95,letterSpacing:'-0.04em',textTransform:'uppercase',margin:'0 0 20px'}}>{s.t}</h3>
                    <p style={{color:'var(--fg-dim)',fontSize:17,lineHeight:1.55,maxWidth:480,margin:0}}>{s.d}</p>
                  </div>
                  <div style={{display:'flex',justifyContent:'center',minHeight:620}}>
                    <Phone src={s.src} />
                  </div>
                </>
              )}
            </div>
          ))}
        </div>
      </div>
      <style>{`@media (max-width:900px){ .walk-row{grid-template-columns:1fr !important} }`}</style>
    </section>
  );
};

// ---------------- SPORTS ----------------
const Sports = () => {
  const sports = [
    { n:'Soccer', d:'Matches · Tactics', ic:'⚽'},
    { n:'Basketball', d:'Games · Drills', ic:'🏀'},
    { n:'Boxing', d:'Rounds · Sparring', ic:'🥊'},
    { n:'Tennis', d:'Matches · Volume', ic:'🎾'},
    { n:'Football', d:'Games · Plays', ic:'🏈'},
    { n:'Cricket', d:'Overs · Batting', ic:'🏏'},
  ];
  return (
    <section id="sports">
      <div className="wrap">
        <div className="section-head">
          <div className="eyebrow">04 / Sport-specific</div>
          <h2>Your sport.<br/>Your <em>metrics.</em></h2>
          <p>I Can isn't a generic fitness app. Every sport gets custom inputs, relevant metrics, and AI coaching tuned to the demands of what you actually play.</p>
        </div>
        <div className="sports">
          {sports.map(s => (
            <div className="sport" key={s.n}>
              <div className="s-ic">{s.ic}</div>
              <div>
                <div className="s-name">{s.n}</div>
                <div className="s-desc">{s.d}</div>
              </div>
            </div>
          ))}
        </div>
      </div>
    </section>
  );
};

// ---------------- BIG MANTRA ----------------
const BigMantra = () => (
  <div className="mantra-row">
    <div className="stripe"/>
    <div className="wrap" style={{position:'relative'}}>
      <div className="eyebrow" style={{marginBottom:18,display:'inline-flex',alignItems:'center',gap:10}}>
        <span style={{width:28,height:1,background:'var(--accent)'}}/>
        The mantra
      </div>
      <h2>Embrace<br/>The <span className="b">Challenge.</span></h2>
    </div>
  </div>
);

// ---------------- FINAL CTA ----------------
const FinalCTA = () => (
  <section className="cta-final">
    <div className="wrap">
      <div className="eyebrow" style={{marginBottom:24}}>LIVE NOW · iPhone</div>
      <h2>Improve.<br/><em>Every single day.</em></h2>
      <p>The system is built. The app is live. Your next 1% is one download away.</p>
      <div className="btns">
        <AppStoreBadge/>
        <a href="#how" className="btn btn-ghost">Learn more</a>
      </div>
    </div>
  </section>
);

// ---------------- FOOTER ----------------
const Footer = () => (
  <footer>
    <div className="wrap">
      <div className="foot-grid">
        <div className="foot-brand">
          <div className="nav-logo">
            <img src="assets/logo.png" alt="I Can"/>
            <span>I Can</span>
          </div>
          <p>The AI performance tracker for athletes. Training, nutrition, sleep — one system, daily coaching, every sport.</p>
          <div style={{marginTop:6}}>
            <AppStoreBadge/>
          </div>
        </div>
        <div className="foot-col">
          <h4>Product</h4>
          <a href="#how">How it works</a>
          <a href="#coach">AI Coach</a>
          <a href="#dashboard">Dashboard</a>
          <a href="#sports">Sports</a>
        </div>
        <div className="foot-col">
          <h4>Company</h4>
          <a href="mailto:contact@alsancar.co.uk">Contact</a>
          <a href="mailto:contact@alsancar.co.uk">Investors</a>
          <a href="#">Press kit</a>
        </div>
        <div className="foot-col">
          <h4>Legal</h4>
          <a href="privacy.html">Privacy</a>
          <a href="terms.html">Terms</a>
        </div>
      </div>
      <div className="foot-bot">
        <div className="cp">© 2026 ALSANCAR LTD · ALL RIGHTS RESERVED</div>
        <div className="foot-social">
          <a href="https://www.instagram.com/ican_app" target="_blank" rel="noopener" aria-label="Instagram">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><rect x="2" y="2" width="20" height="20" rx="5"/><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"/><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"/></svg>
          </a>
          <a href="https://www.tiktok.com/@.icanofficial" target="_blank" rel="noopener" aria-label="TikTok">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5.8 20.1a6.34 6.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1.84-.1z"/></svg>
          </a>
          <a href="https://www.linkedin.com/company/icanathlete/" target="_blank" rel="noopener" aria-label="LinkedIn">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M20.45 20.45h-3.55v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.13 1.45-2.13 2.94v5.67H9.37V9h3.41v1.56h.05a3.73 3.73 0 0 1 3.36-1.85c3.6 0 4.26 2.37 4.26 5.45v6.29zM5.34 7.43a2.06 2.06 0 1 1 0-4.12 2.06 2.06 0 0 1 0 4.12zm1.78 13.02H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.72v20.56C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.72V1.72C24 .77 23.2 0 22.22 0z"/></svg>
          </a>
        </div>
      </div>
    </div>
  </footer>
);

Object.assign(window, { Nav, Hero, Commercial, HowItWorks, AICoach, Dashboard, Walkthrough, Sports, BigMantra, FinalCTA, Footer, AppStoreBadge });
