// slides-1.jsx — Slides 1-6
const { useState: uS1, useEffect: uE1, useRef: uR1 } = React;

// SLIDE 1 — Title (Hero)
const Slide01 = ({ num, total }) => {
  const [ref, active] = useSlideActive();
  return (
    <div ref={ref} className="slide dark" data-label="Title" style={{ background: '#080b12' }}>
      <ConstellationBG density={0.55} />
      <div style={{ position: 'absolute', inset: 0, background: 'radial-gradient(ellipse 60% 50% at 30% 30%,rgba(0,116,217,0.10),transparent), radial-gradient(ellipse 40% 40% at 80% 70%,rgba(0,116,217,0.07),transparent)', pointerEvents: 'none' }} />

      {/* Floating stat cards */}
      {[
      { pos: { left: '4%', top: '18%' }, label: 'Avg. attended meetings / mo', value: '45–120+', d: '900ms' },
      { pos: { right: '4%', top: '18%' }, label: 'Per attended meeting', value: '$450 flat', d: '1100ms' },
      { pos: { left: '50%', bottom: '12%', transform: 'translateX(-50%)' }, label: 'Setup fees', value: '$0', d: '1300ms' }].
      map((s, i) =>
      <div key={i} className="reveal" style={{
        position: 'absolute', zIndex: 5, ...s.pos, animationDelay: s.d,
        background: 'rgba(10,15,28,0.82)',
        border: '1px solid rgba(0,116,217,0.22)',
        borderRadius: 16, padding: '20px 28px',
        backdropFilter: 'blur(18px)', borderStyle: "solid", borderColor: "rgba(0, 116, 217, 0.22)", borderImage: "initial", borderWidth: "1px 3.97266px 1px 1px"
      }}>
          <p style={{ fontSize: 22, fontWeight: 500, letterSpacing: '0.1em', textTransform: 'uppercase', color: 'rgba(140,170,210,0.55)', marginBottom: 8 }}>{s.label}</p>
          <p style={{ fontSize: 36, fontWeight: 600, color: '#0074D9', letterSpacing: '-0.03em' }}>{s.value}</p>
        </div>
      )}

      <div style={{ position: 'absolute', inset: 0, display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', textAlign: 'center', padding: '0 120px' }}>
        <div className="reveal" style={{ animationDelay: '300ms', display: 'inline-flex', alignItems: 'center', gap: 10, marginBottom: 36, fontSize: 15, fontWeight: 500, letterSpacing: '0.18em', textTransform: 'uppercase', color: '#2B95E8', background: 'rgba(0,116,217,0.09)', border: '1px solid rgba(0,116,217,0.25)', padding: '10px 24px', borderRadius: 100, whiteSpace: 'nowrap' }}>
          <span style={{ width: 7, height: 7, borderRadius: '50%', background: '#0074D9', animation: 'blink 2.2s ease infinite' }} />
          New Partner Introduction · 2026
        </div>
        <h1 className="h-display reveal" style={{ animationDelay: '500ms', fontSize: 132, color: '#eef1fa', lineHeight: 1.04, marginBottom: 30, maxWidth: 1500 }}>
          Your pipeline should<br />match your <em style={{ fontStyle: 'italic', color: '#0074D9' }}>ambition.</em>
        </h1>
        <p className="reveal" style={{ animationDelay: '700ms', fontSize: 24, color: 'rgba(200,215,240,0.72)', lineHeight: 1.6, maxWidth: 1180, fontWeight: 400 }}>
          We fund it, staff it, and run it with the same campaigns, SDR pods, and playbooks behind our own agencies. Our SDRs qualify and book owners straight onto your sales team's calendars, and rebook anyone who misses. You pay $450 when a qualified owner attends. Nothing else.
        </p>

        {/* Bottom partnership badge */}
        <div className="reveal" style={{ animationDelay: '1500ms', position: 'absolute', bottom: 64, left: '50%', transform: 'translateX(-50%)', display: 'flex', alignItems: 'center', gap: 18 }}>
          <span style={{ fontSize: 22, fontWeight: 500, letterSpacing: '0.16em', textTransform: 'uppercase', color: 'rgba(200,215,240,0.4)' }}>Partnered with</span>
          <span style={{ height: 16, width: 1, background: 'rgba(255,255,255,0.15)' }} />
          <span style={{ fontSize: 22, fontWeight: 600, letterSpacing: '0.04em', color: '#fff' }}>Axion Capital</span>
        </div>
      </div>
      <SlideChrome num={num} total={total} dark showBrandStrip={false} />
    </div>);

};

// SLIDE 2 — Pitch
const Slide02 = ({ num, total }) =>
<div className="slide dark" data-label="Pitch" style={{ background: 'linear-gradient(180deg,#0F1629 0%,#080b12 100%)' }}>
    <DotGrid color="rgba(0,116,217,0.06)" />
    <OrbGlow x="80%" y="30%" size={800} />
    <SlideChrome num={num} total={total} dark />
    <div style={{ position: 'absolute', inset: 0, padding: '180px 120px 100px', display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>
      <div className="eyebrow reveal" style={{ animationDelay: '100ms', marginBottom: 28, color: '#2B95E8' }}>The Pitch</div>
      <h1 className="h-display reveal" style={{ animationDelay: '250ms', fontSize: 104, color: '#fff', lineHeight: 1.05, marginBottom: 56, maxWidth: 1500 }}>
        Qualified meetings. <em style={{ fontStyle: 'italic', color: '#0074D9' }}>Our capital, our teams.</em><br />
        You pay only when they attend.
      </h1>
      <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 80, maxWidth: 1500 }}>
        <div className="reveal" style={{ animationDelay: '450ms' }}>
          <div style={{ fontSize: 22, fontWeight: 600, letterSpacing: '0.1em', textTransform: 'uppercase', color: '#FF851B', marginBottom: 24 }}>Stop</div>
          {[
        'Hiring more SDRs every time you want more pipeline.',
        'Paying retainers for activity instead of results.',
        'Letting no-shows burn your AEs\' calendars.'].
        map((t, i) =>
        <div key={i} style={{ display: 'flex', gap: 14, padding: '14px 0', borderBottom: i < 2 ? '1px solid rgba(255,255,255,0.06)' : 'none' }}>
              <span style={{ color: '#FF851B', fontSize: 22, lineHeight: 1.4 }}>×</span>
              <p style={{ fontSize: 22, lineHeight: 1.5, color: 'rgba(255,255,255,0.7)' }}>{t}</p>
            </div>
        )}
        </div>
        <div className="reveal" style={{ animationDelay: '600ms' }}>
          <div style={{ fontSize: 22, fontWeight: 600, letterSpacing: '0.1em', textTransform: 'uppercase', color: '#0074D9', marginBottom: 24 }}>Start</div>
          {[
        'Growing at the speed you choose.',
        'Working with a partner who only wins when you do.',
        'Adding a second engine that pays for itself.'].
        map((t, i) =>
        <div key={i} style={{ display: 'flex', gap: 14, padding: '14px 0', borderBottom: i < 2 ? '1px solid rgba(255,255,255,0.06)' : 'none' }}>
              <span style={{ color: '#0074D9', fontSize: 22, lineHeight: 1.4 }}>✓</span>
              <p style={{ fontSize: 22, lineHeight: 1.5, color: 'rgba(255,255,255,0.85)' }}>{t}</p>
            </div>
        )}
        </div>
      </div>
      <p className="reveal mono" style={{ animationDelay: '900ms', marginTop: 56, fontSize: 22, color: '#0074D9', letterSpacing: '0.08em', textTransform: 'uppercase' }}>
        You set the target. We fill the calendar. You pay when they show.
      </p>
    </div>
  </div>;


// SLIDE 3 — Old playbook is broken
const Slide03 = ({ num, total }) => {
  const [ref, active] = useSlideActive();
  const stats = [
  { n: 18, suf: '', label: 'Months', sub: 'Average SDR tenure' },
  { n: 5.7, dec: 1, suf: '', label: 'Months', sub: 'Average time to ramp' },
  { n: 8, suf: 'K', pre: '$', label: 'Monthly retainer', sub: 'Agency costs with no guarantees' }];

  return (
    <div ref={ref} className="slide light" data-label="Broken Playbook">
      <SlideChrome num={num} total={total} />
      <div style={{ position: 'absolute', inset: 0, padding: '180px 120px 100px' }}>
        <SectionHeading
          eyebrow="The Problem"
          title={<>The old playbook<br />is <em style={{ fontStyle: 'italic', color: '#FF851B' }}>broken.</em></>}
          sub="A fully loaded SDR costs $117K to $135K a year, takes close to six months to ramp, and stays about eighteen. Every new revenue target means more people to hire, ramp, and manage." />

        <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3,1fr)', gap: 24, marginTop: 80, maxWidth: 1680 }}>
          {stats.map((s, i) =>
          <div key={i} className="reveal" style={{
            animationDelay: `${500 + i * 120}ms`,
            background: '#fff',
            borderRadius: 20,
            padding: '48px 44px',
            border: '1px solid var(--border)',
            boxShadow: '0 1px 3px rgba(27,31,59,0.04)',
            position: 'relative', overflow: 'hidden'
          }}>
              <div style={{ position: 'absolute', top: 0, left: 0, right: 0, height: 3, background: 'linear-gradient(90deg,#FF851B,#FF851B66)' }} />
              <div className="mono" style={{ fontSize: 96, fontWeight: 700, color: 'var(--navy)', letterSpacing: '-0.03em', lineHeight: 1 }}>
                {s.pre || ''}<CountUp to={s.n} suffix={s.suf} decimals={s.dec || 0} active={active} duration={1600} />
              </div>
              <div style={{ marginTop: 20, fontSize: 22, fontWeight: 700, color: 'var(--navy)' }}>{s.label}</div>
              <div style={{ marginTop: 8, fontSize: 21, color: 'var(--muted)' }}>{s.sub}</div>
            </div>
          )}
        </div>
        <p className="reveal" style={{ animationDelay: '1000ms', marginTop: 28, fontSize: 16, color: 'var(--muted)', letterSpacing: '0.02em' }}>Sources: Bridge Group 2025 SDR Metrics Report, Pavilion 2025.</p>
      </div>
    </div>);

};

// SLIDE 4 — What you pay vs what it really costs
const Slide04 = ({ num, total }) => {
  const [ref, active] = useSlideActive();
  return (
    <div ref={ref} className="slide white" data-label="True Cost">
      <SlideChrome num={num} total={total} />
      <div style={{ position: 'absolute', inset: 0, padding: '140px 120px 80px' }}>
        <SectionHeading
          eyebrow="Cost Reality"
          title={<>What you pay <span style={{ color: 'var(--muted-light)' }}>vs.</span><br />what it really costs.</>} />

        <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 32, marginTop: 48, maxWidth: 1680 }}>
          {/* Visible */}
          <div className="reveal" style={{ animationDelay: '500ms', background: 'var(--off-white)', border: '1px solid var(--border)', borderRadius: 20, padding: '36px 44px' }}>
            <div style={{ fontSize: 15, fontWeight: 600, letterSpacing: '0.12em', textTransform: 'uppercase', color: 'var(--muted)', marginBottom: 18 }}>Visible Costs</div>
            {[['$60K base salary', '60'], ['Basic training', '4'], ['Standard equipment', '2']].map(([t, v], i) =>
            <div key={i} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '14px 0', borderBottom: i < 2 ? '1px solid var(--border)' : 'none' }}>
                <span style={{ fontSize: 21, color: 'var(--navy)', fontWeight: 500 }}>{t}</span>
                <span className="mono" style={{ fontSize: 22, color: 'var(--muted)' }}>${v}K</span>
              </div>
            )}
            <div style={{ marginTop: 22, paddingTop: 20, borderTop: '2px solid var(--navy)', display: 'flex', justifyContent: 'space-between' }}>
              <span style={{ fontSize: 22, fontWeight: 700 }}>What you'd budget</span>
              <span className="mono" style={{ fontSize: 28, fontWeight: 700 }}>$66K</span>
            </div>
          </div>
          {/* Hidden */}
          <div className="reveal" style={{ animationDelay: '700ms', background: 'var(--navy-deep)', borderRadius: 20, padding: '36px 44px', color: '#fff', position: 'relative', overflow: 'hidden' }}>
            <div style={{ position: 'absolute', top: 0, left: 0, right: 0, height: 3, background: 'linear-gradient(90deg,#FF851B,transparent)' }} />
            <div style={{ fontSize: 15, fontWeight: 600, letterSpacing: '0.12em', textTransform: 'uppercase', color: '#FF851B', marginBottom: 18 }}>Hidden Costs</div>
            {[['20% benefits', '12'], ['25% recruitment fee', '15'], ['Manager allocation', '24'], ['Tech stack', '9'], ['Turnover replacement', '36']].map(([t, v], i) =>
            <div key={i} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '12px 0', borderBottom: i < 4 ? '1px solid rgba(255,255,255,0.08)' : 'none' }}>
                <span style={{ fontSize: 21, fontWeight: 500 }}>{t}</span>
                <span className="mono" style={{ fontSize: 22, color: '#FF851B' }}>+${v}K</span>
              </div>
            )}
            <div style={{ marginTop: 22, paddingTop: 20, borderTop: '2px solid rgba(255,255,255,0.2)', display: 'flex', justifyContent: 'space-between' }}>
              <span style={{ fontSize: 22, fontWeight: 700 }}>Real total</span>
              <span className="mono" style={{ fontSize: 28, fontWeight: 700, color: '#FF851B' }}>$162K</span>
            </div>
          </div>
        </div>
        <div className="reveal" style={{ animationDelay: '1000ms', marginTop: 36, background: 'linear-gradient(90deg,rgba(255,133,27,0.08),transparent)', borderLeft: '3px solid #FF851B', padding: '20px 32px', borderRadius: 8 }}>
          <p style={{ fontSize: 22, color: 'var(--navy)', lineHeight: 1.55, fontWeight: 500 }}>
            Real cost: <span className="mono" style={{ color: '#FF851B', fontWeight: 700 }}>$162K</span> a year per rep, <span style={{ color: 'var(--muted)' }}>before a single meeting is guaranteed.</span>
          </p>
        </div>
      </div>
    </div>);

};

// SLIDE 5 — Why everything else fails
const Slide05 = ({ num, total }) => {
  const items = [
  { title: '"Growth Agencies"', body: 'Pay first, hope later. All risk on you.', icon: '%' },
  { title: 'SDR Teams', body: 'Hire, train, manage, replace, repeat.', icon: '↻' },
  { title: 'Outreach Tools', body: 'You still do all the work.', icon: '☓' }];

  return (
    <div className="slide light" data-label="Why They Fail">
      <SlideChrome num={num} total={total} />
      <div style={{ position: 'absolute', inset: 0, padding: '180px 120px 100px' }}>
        <SectionHeading
          eyebrow="Status Quo"
          title={<>Why everything else<br />fails you.</>}
          sub="Every existing solution puts the risk on you. None of them guarantee outcomes." />

        <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3,1fr)', gap: 32, marginTop: 80, maxWidth: 1680 }}>
          {items.map((it, i) =>
          <div key={i} className="reveal" style={{
            animationDelay: `${500 + i * 140}ms`,
            background: '#fff',
            border: '1px solid var(--border)',
            borderRadius: 20,
            padding: '48px 44px',
            position: 'relative', overflow: 'hidden'
          }}>
              <div style={{ position: 'absolute', right: -40, top: -40, fontSize: 240, fontWeight: 800, color: 'rgba(255,133,27,0.05)', lineHeight: 1, fontFamily: 'JetBrains Mono' }}>{it.icon}</div>
              <div style={{ position: 'relative', zIndex: 1 }}>
                <div style={{ fontSize: 22, fontWeight: 600, letterSpacing: '0.12em', textTransform: 'uppercase', color: '#FF851B', marginBottom: 16 }}>{String(i + 1).padStart(2, '0')}</div>
                <h3 style={{ fontSize: 32, fontWeight: 700, color: 'var(--navy)', marginBottom: 16, letterSpacing: '-0.01em' }}>{it.title}</h3>
                <p style={{ fontSize: 22, color: 'var(--muted)', lineHeight: 1.55 }}>{it.body}</p>
              </div>
            </div>
          )}
        </div>
      </div>
    </div>);

};

// SLIDE 6 — What if a full pipeline was guaranteed
const Slide06 = ({ num, total }) => {
  const items = [
  { title: 'Omni-channel campaigns', body: 'Paid ads across Meta, Google, and LinkedIn, plus email and direct outreach, run by the marketing teams behind our portfolio agencies.', n: '01' },
  { title: 'Dedicated SDR pod', body: 'Trained SDRs on our payroll, fully managed by us. They qualify every owner, book the meeting, confirm it, and rebook every no-show.', n: '02' },
  { title: 'Qualified meetings', body: 'Showing up directly on your AEs\' calendars, ready to close.', n: '03' }];

  return (
    <div className="slide dark" data-label="What If" style={{ background: 'var(--navy-deep)' }}>
      <ConstellationBG density={0.4} opacity={0.5} />
      <SlideChrome num={num} total={total} dark />
      <div style={{ position: 'absolute', inset: 0, padding: '180px 120px 100px' }}>
        <SectionHeading
          eyebrow="The Possibility"
          dark
          title={<>What if the pipeline<br />came <em style={{ fontStyle: 'italic', color: '#0074D9' }}>first</em>...</>}
          sub="...and the invoice came after?" />

        <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3,1fr)', gap: 24, marginTop: 80, maxWidth: 1680 }}>
          {items.map((it, i) =>
          <div key={i} className="reveal" style={{
            animationDelay: `${500 + i * 160}ms`,
            background: 'rgba(255,255,255,0.03)',
            border: '1px solid rgba(255,255,255,0.08)',
            backdropFilter: 'blur(12px)',
            borderRadius: 20,
            padding: '48px 44px'
          }}>
              <div className="mono" style={{ fontSize: 15, color: '#2B95E8', letterSpacing: '0.1em', marginBottom: 28 }}>{it.n}</div>
              <h3 style={{ fontSize: 30, fontWeight: 700, color: '#fff', marginBottom: 16, letterSpacing: '-0.01em' }}>{it.title}</h3>
              <p style={{ fontSize: 21, color: 'rgba(255,255,255,0.6)', lineHeight: 1.6 }}>{it.body}</p>
            </div>
          )}
        </div>
        <p className="reveal" style={{ animationDelay: '1200ms', marginTop: 64, fontSize: 22, color: 'rgba(255,255,255,0.7)', fontStyle: 'italic', maxWidth: 900 }}>
          You pay nothing until qualified prospects show up for your sales team to close.
        </p>
      </div>
    </div>);

};

Object.assign(window, { Slide01, Slide02, Slide03, Slide04, Slide05, Slide06 });
