// slides-2.jsx — Slides 7-12

// SLIDE 7 — Axion Story / Foundation
const Slide07 = ({ num, total }) => {
  const milestones = [
    { y: '2023', t: 'Origin', body: 'Built by agency founders & holding company operators tired of the SDR treadmill. Started solving for internal portfolio agencies.' },
    { y: 'Years 1-2', t: 'Refinement', body: 'Worked exclusively with agencies inside our core partner group, amortizing playbooks, talent, and millions in ad spend.' },
    { y: 'Dec 2025', t: 'External Launch', body: 'Began taking on external partners in specific verticals. 4 of the fastest-growing SMB agencies (per Inc) are now Axion partners.' },
  ];
  return (
    <div className="slide white" data-label="Our Story">
      <SlideChrome num={num} total={total} />
      <div style={{ position: 'absolute', inset: 0, padding: '180px 120px 100px', display: 'grid', gridTemplateColumns: '0.85fr 1.15fr', gap: 96 }}>
        <div>
          <SectionHeading
            eyebrow="Our Foundation"
            title={<>The Axion<br />story.</>}
          />
          <p className="reveal" style={{ animationDelay: '450ms', marginTop: 40, fontSize: 22, lineHeight: 1.7, color: 'var(--muted)', maxWidth: 580 }}>
            We consolidated the playbooks, talent, and millions of dollars in ad spend behind some of the fastest-growing agencies in the country, each doing $10M to $80M in revenue. Every partner launch runs on that same infrastructure, funded with our own capital.
          </p>
          <div className="reveal" style={{ animationDelay: '700ms', marginTop: 40, padding: '20px 24px', background: 'rgba(0,116,217,0.06)', borderLeft: '3px solid var(--blue)', borderRadius: 8 }}>
            <p style={{ fontSize: 22, color: 'var(--navy)', fontStyle: 'italic' }}>
              <span style={{ fontWeight: 600 }}>Fun fact:</span> we're currently building out Axion's HQ office in Miami, FL.
            </p>
          </div>
        </div>
        <div style={{ position: 'relative' }}>
          {/* timeline rail */}
          <div className="reveal-fade" style={{ animationDelay: '500ms', position: 'absolute', left: 27, top: 14, bottom: 14, width: 2, background: 'linear-gradient(to bottom,rgba(0,116,217,0.1),var(--blue),rgba(0,116,217,0.1))' }} />
          <div style={{ display: 'flex', flexDirection: 'column', gap: 36 }}>
            {milestones.map((m, i) => (
              <div key={i} className="reveal" style={{ animationDelay: `${600 + i * 200}ms`, display: 'flex', gap: 28 }}>
                <div style={{ flexShrink: 0, width: 56, height: 56, borderRadius: 14, background: '#fff', border: '2px solid var(--blue)', display: 'flex', alignItems: 'center', justifyContent: 'center', position: 'relative', zIndex: 2, animation: i === 2 ? 'pulse 2.4s ease infinite' : 'none' }}>
                  <div style={{ width: 12, height: 12, borderRadius: '50%', background: 'var(--blue)' }} />
                </div>
                <div style={{ flex: 1, padding: '6px 0' }}>
                  <div className="mono" style={{ fontSize: 15, color: 'var(--blue)', letterSpacing: '0.06em', marginBottom: 8 }}>{m.y}</div>
                  <h3 style={{ fontSize: 28, fontWeight: 700, color: 'var(--navy)', marginBottom: 10, letterSpacing: '-0.01em' }}>{m.t}</h3>
                  <p style={{ fontSize: 22, color: 'var(--muted)', lineHeight: 1.6 }}>{m.body}</p>
                </div>
              </div>
            ))}
          </div>
        </div>
      </div>
    </div>
  );
};

// SLIDE 8 — How the Machine Works
const Slide08 = ({ num, total }) => {
  const [ref, active] = useSlideActive();
  const steps = [
    { n: '01', t: 'Campaign Creation', body: 'We build omni-channel campaigns across Meta, Google, LinkedIn, email, and direct outreach, using playbooks already proven inside our portfolio.', stat: '$0', sub: 'Build cost to you' },
    { n: '02', t: 'Meeting Booking', body: 'Our trained SDRs qualify and book meetings directly to your sales team\'s calendars.', stat: '45–120+', sub: 'Per month avg.' },
    { n: '03', t: 'We Get Them There', body: 'Confirmations and reminders before every call. If anyone misses, our SDRs rebook them. Your team never chases a no-show.', stat: '$0', sub: 'Billed for no-shows' },
  ];
  return (
    <div ref={ref} className="slide dark" data-label="The Machine" style={{ background: 'var(--navy-deep)' }}>
      <DotGrid color="rgba(0,116,217,0.06)" />
      <SlideChrome num={num} total={total} dark />
      <div style={{ position: 'absolute', inset: 0, padding: '180px 120px 100px' }}>
        <SectionHeading
          eyebrow="The System"
          dark
          title={<>How the machine<br />works.</>}
        />

        {/* Connecting line */}
        <div style={{ position: 'relative', marginTop: 48 }}>
          <svg className="reveal-fade" style={{ animationDelay: '500ms', position: 'absolute', top: 60, left: '12%', right: '12%', height: 4, width: '76%', overflow: 'visible', pointerEvents: 'none' }} viewBox="0 0 1000 4" preserveAspectRatio="none">
            <line x1="0" y1="2" x2="1000" y2="2" stroke="rgba(0,116,217,0.3)" strokeWidth="2" strokeDasharray="6,8" />
            {active && <circle r="6" fill="#0074D9">
              <animate attributeName="cx" from="0" to="1000" dur="3s" repeatCount="indefinite" />
            </circle>}
          </svg>

          <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3,1fr)', gap: 32, position: 'relative' }}>
            {steps.map((s, i) => (
              <div key={i} className="reveal" style={{ animationDelay: `${600 + i * 180}ms`, display: 'flex', flexDirection: 'column', alignItems: 'center', textAlign: 'center' }}>
                <div style={{ width: 120, height: 120, borderRadius: '50%', background: 'var(--navy-card)', border: '2px solid var(--blue)', display: 'flex', alignItems: 'center', justifyContent: 'center', marginBottom: 32, position: 'relative' }}>
                  <span className="mono" style={{ fontSize: 28, color: 'var(--blue)', fontWeight: 700 }}>{s.n}</span>
                </div>
                <h3 style={{ fontSize: 30, fontWeight: 700, color: '#fff', marginBottom: 16, letterSpacing: '-0.01em' }}>{s.t}</h3>
                <p style={{ fontSize: 22, color: 'rgba(255,255,255,0.6)', lineHeight: 1.6, maxWidth: 360, marginBottom: 28 }}>{s.body}</p>
                <div style={{ marginTop: 'auto', padding: '20px 32px', background: 'rgba(0,116,217,0.08)', border: '1px solid rgba(0,116,217,0.25)', borderRadius: 14 }}>
                  <div className="mono" style={{ fontSize: 32, fontWeight: 700, color: 'var(--blue)' }}>{s.stat}</div>
                  <div style={{ fontSize: 15, color: 'rgba(255,255,255,0.5)', marginTop: 4, letterSpacing: '0.04em' }}>{s.sub}</div>
                </div>
              </div>
            ))}
          </div>
        </div>

        <p className="reveal" style={{ animationDelay: '1300ms', marginTop: 40, textAlign: 'center', fontSize: 22, color: 'rgba(255,255,255,0.7)', fontStyle: 'italic' }}>
          Your sales team takes the meetings. You focus on growing your agency.
        </p>
      </div>
    </div>
  );
};

// SLIDE 9 — The math that changes everything
const Slide09 = ({ num, total }) => {
  const [ref, active] = useSlideActive();
  return (
    <div ref={ref} className="slide white" data-label="The Math">
      <SlideChrome num={num} total={total} />
      <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 }}>The Economics</div>
        <h1 className="h-display reveal" style={{ animationDelay: '250ms', fontSize: 96, color: 'var(--navy)', lineHeight: 1.05, marginBottom: 56, maxWidth: 1500 }}>
          The math that<br />changes <em style={{ fontStyle: 'italic', color: 'var(--blue)' }}>everything.</em>
        </h1>

        <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 80, alignItems: 'center', marginTop: 24 }}>
          <div className="reveal" style={{ animationDelay: '500ms' }}>
            <p style={{ fontSize: 24, lineHeight: 1.6, color: 'var(--muted)', marginBottom: 32 }}>
              Our partners pay <span style={{ color: 'var(--navy)', fontWeight: 600 }}>63% less</span> per attended meeting than the industry-average in-house SDR.
            </p>
            <p style={{ fontSize: 22, lineHeight: 1.6, color: 'var(--muted)' }}>
              Why? The teams, playbooks, tech, and ad spend already exist across our portfolio. We don't rebuild them from scratch for each partner, so you don't pay for them.
            </p>
          </div>

          {/* Visual comparison bar */}
          <div className="reveal" style={{ animationDelay: '700ms', display: 'flex', flexDirection: 'column', gap: 32 }}>
            <div>
              <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 12 }}>
                <span style={{ fontSize: 22, fontWeight: 600, color: 'var(--muted)' }}>In-house SDR (year one)</span>
                <span className="mono" style={{ fontSize: 24, fontWeight: 700, color: 'var(--muted)' }}>$1,230</span>
              </div>
              <div style={{ height: 56, background: 'var(--off-white)', borderRadius: 12, overflow: 'hidden', border: '1px solid var(--border)' }}>
                <div style={{ height: '100%', width: active ? '100%' : '0%', background: 'linear-gradient(90deg,#9CA3AF,#6B7280)', borderRadius: 12, transition: 'width 1500ms cubic-bezier(0.16,1,0.3,1) 800ms' }} />
              </div>
            </div>
            <div>
              <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 12 }}>
                <span style={{ fontSize: 22, fontWeight: 700, color: 'var(--navy)' }}>Axion partner</span>
                <span className="mono" style={{ fontSize: 28, fontWeight: 700, color: 'var(--blue)' }}>$450 flat</span>
              </div>
              <div style={{ height: 56, background: 'var(--off-white)', borderRadius: 12, overflow: 'hidden', border: '1px solid var(--border)' }}>
                <div style={{ height: '100%', width: active ? '37%' : '0%', background: 'linear-gradient(90deg,#0074D9,#2B95E8)', borderRadius: 12, transition: 'width 1500ms cubic-bezier(0.16,1,0.3,1) 1100ms', boxShadow: '0 0 24px rgba(0,116,217,0.4)' }} />
              </div>
            </div>
            <div className="reveal" style={{ animationDelay: '1800ms', display: 'flex', alignItems: 'baseline', gap: 12, marginTop: 16 }}>
              <span className="mono" style={{ fontSize: 72, fontWeight: 700, color: 'var(--blue)' }}><CountUp to={63} suffix="%" active={active} duration={1400} /></span>
              <span style={{ fontSize: 22, color: 'var(--muted)' }}>less, per attended meeting</span>
            </div>
            <p style={{ fontSize: 16, color: 'var(--muted)', lineHeight: 1.5, marginTop: -8 }}>In-house: $135.5K fully loaded ÷ ~110 held meetings in year one (Bridge Group 2025).</p>
          </div>
        </div>
      </div>
    </div>
  );
};

// SLIDE 10 — There is no comparison
const Slide10 = ({ num, total }) => (
  <div className="slide light" data-label="No Comparison">
    <SlideChrome num={num} total={total} />
    <div style={{ position: 'absolute', inset: 0, padding: '160px 120px 100px' }}>
      <SectionHeading
        eyebrow="Side By Side"
        title={<>There is no <em style={{ fontStyle: 'italic', color: 'var(--blue)' }}>comparison.</em></>}
        align="center"
        maxWidth={1680}
      />
      <div style={{ display: 'grid', gridTemplateColumns: '1fr 80px 1fr', gap: 0, marginTop: 64, maxWidth: 1680, alignItems: 'stretch' }}>
        {/* Traditional */}
        <div className="reveal" style={{ animationDelay: '500ms', background: '#fff', border: '1px solid var(--border)', borderRadius: 20, padding: '40px 44px', position: 'relative' }}>
          <div style={{ fontSize: 15, fontWeight: 600, letterSpacing: '0.12em', textTransform: 'uppercase', color: 'var(--muted)', marginBottom: 12 }}>Traditional Approach</div>
          <h3 style={{ fontSize: 30, fontWeight: 700, color: 'var(--navy)', marginBottom: 32, letterSpacing: '-0.01em' }}>Complex & Risky</h3>
          {[
            ['High Upfront Costs', 'Expensive SDR teams, high turnover, management overhead.'],
            ['Cost per attended meeting', 'About $1,230 per held meeting in year one, before turnover.'],
            ['Challenge', 'Complex scaling, churn, and quality concerns.'],
          ].map(([k, v], i) => (
            <div key={i} style={{ padding: '18px 0', borderBottom: i < 2 ? '1px solid var(--border)' : 'none', display: 'flex', gap: 16 }}>
              <span style={{ color: '#FF851B', fontSize: 20 }}>×</span>
              <div>
                <div style={{ fontSize: 22, fontWeight: 700, color: 'var(--navy)', marginBottom: 4 }}>{k}</div>
                <div style={{ fontSize: 22, color: 'var(--muted)', lineHeight: 1.5 }}>{v}</div>
              </div>
            </div>
          ))}
        </div>
        {/* VS divider */}
        <div className="reveal-scale" style={{ animationDelay: '600ms', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
          <div className="mono" style={{ fontSize: 24, fontWeight: 700, color: 'var(--muted-light)', background: 'var(--off-white)', width: 64, height: 64, borderRadius: '50%', display: 'flex', alignItems: 'center', justifyContent: 'center', border: '2px solid var(--border)' }}>vs</div>
        </div>
        {/* Axion */}
        <div className="reveal" style={{ animationDelay: '700ms', background: 'var(--navy-deep)', borderRadius: 20, padding: '40px 44px', color: '#fff', position: 'relative', overflow: 'hidden' }}>
          <div style={{ position: 'absolute', top: 0, left: 0, right: 0, height: 3, background: 'linear-gradient(90deg,var(--blue),transparent)' }} />
          <div style={{ fontSize: 15, fontWeight: 600, letterSpacing: '0.12em', textTransform: 'uppercase', color: 'var(--blue)', marginBottom: 12 }}>The Axion Way</div>
          <h3 style={{ fontSize: 30, fontWeight: 700, color: '#fff', marginBottom: 32, letterSpacing: '-0.01em' }}>Simple, Scalable & Guaranteed</h3>
          {[
            ['Performance-Based', 'Pay only for attended meetings. Zero upfront risk.'],
            ['Cost per attended meeting', '$450 flat. No-shows rebooked by our SDRs and never billed.'],
            ['Solution', 'Axion handles complexity, you focus on growth.'],
          ].map(([k, v], i) => (
            <div key={i} style={{ padding: '18px 0', borderBottom: i < 2 ? '1px solid rgba(255,255,255,0.08)' : 'none', display: 'flex', gap: 16 }}>
              <span style={{ color: 'var(--blue)', fontSize: 20 }}>✓</span>
              <div>
                <div style={{ fontSize: 22, fontWeight: 700, color: '#fff', marginBottom: 4 }}>{k}</div>
                <div style={{ fontSize: 22, color: 'rgba(255,255,255,0.6)', lineHeight: 1.5 }}>{v}</div>
              </div>
            </div>
          ))}
        </div>
      </div>
      <p className="reveal" style={{ animationDelay: '1100ms', marginTop: 48, textAlign: 'center', fontSize: 22, color: 'var(--navy)', fontWeight: 500, fontStyle: 'italic' }}>
        We take all the risk. You get all the upside. <span style={{ color: 'var(--blue)' }}>We only win when you do.</span>
      </p>
    </div>
  </div>
);

// SLIDE 11 — Average partner results
const Slide11 = ({ num, total }) => {
  const [ref, active] = useSlideActive();
  return (
    <div ref={ref} className="slide dark" data-label="Partner Results" style={{ background: 'var(--navy-deep)' }}>
      <ConstellationBG density={0.35} opacity={0.4} />
      <SlideChrome num={num} total={total} dark />
      <div style={{ position: 'absolute', inset: 0, padding: '180px 120px 100px' }}>
        <SectionHeading
          eyebrow="Partner Performance"
          dark
          title={<>Average partner<br />results.</>}
          sub="Real numbers across our active partner base."
        />

        <div style={{ marginTop: 72, display: 'grid', gridTemplateColumns: 'repeat(3,1fr)', gap: 24 }}>
          {/* Block 1: High Volume */}
          <div className="reveal" style={{ animationDelay: '500ms', background: 'rgba(255,255,255,0.03)', border: '1px solid rgba(255,255,255,0.08)', borderRadius: 20, padding: '40px 36px' }}>
            <div style={{ fontSize: 15, fontWeight: 600, letterSpacing: '0.12em', textTransform: 'uppercase', color: 'var(--blue)', marginBottom: 24 }}>High Volume</div>
            <div style={{ marginBottom: 28 }}>
              <div className="mono" style={{ fontSize: 64, fontWeight: 700, color: '#fff', letterSpacing: '-0.03em', lineHeight: 1 }}>
                <CountUp to={45} active={active} duration={1400} />–<CountUp to={120} active={active} duration={1700} />+
              </div>
              <div style={{ marginTop: 8, fontSize: 22, color: 'rgba(255,255,255,0.5)' }}>Avg. monthly attended meetings</div>
            </div>
            <div>
              <div className="mono" style={{ fontSize: 40, fontWeight: 700, color: 'var(--blue)', letterSpacing: '-0.02em' }}>
                $450 flat
              </div>
              <div style={{ marginTop: 4, fontSize: 22, color: 'rgba(255,255,255,0.5)' }}>Avg. cost per meeting</div>
            </div>
          </div>
          {/* Block 2: Conversion */}
          <div className="reveal" style={{ animationDelay: '650ms', background: 'rgba(255,255,255,0.03)', border: '1px solid rgba(255,255,255,0.08)', borderRadius: 20, padding: '40px 36px' }}>
            <div style={{ fontSize: 15, fontWeight: 600, letterSpacing: '0.12em', textTransform: 'uppercase', color: 'var(--blue)', marginBottom: 24 }}>Conversion</div>
            {[
              { l: 'Meeting → Opportunity', v: 44 },
              { l: 'Attended Meeting → Closed Won', v: 19 },
            ].map((r, i) => (
              <div key={i} style={{ marginBottom: 18 }}>
                <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 8 }}>
                  <span style={{ fontSize: 15, color: 'rgba(255,255,255,0.7)' }}>{r.l}</span>
                  <span className="mono" style={{ fontSize: 22, fontWeight: 700, color: '#fff' }}>
                    <CountUp to={r.v} suffix="%" active={active} duration={1400} />
                  </span>
                </div>
                <div style={{ height: 6, background: 'rgba(255,255,255,0.06)', borderRadius: 999, overflow: 'hidden' }}>
                  <div style={{ height: '100%', width: active ? `${r.v * 2.2}%` : '0%', background: 'linear-gradient(90deg,var(--blue),#2B95E8)', borderRadius: 999, transition: `width 1400ms cubic-bezier(0.16,1,0.3,1) ${700 + i * 150}ms` }} />
                </div>
              </div>
            ))}
          </div>
          {/* Block 3: Growth & ROI */}
          <div className="reveal" style={{ animationDelay: '800ms', background: 'linear-gradient(135deg,rgba(0,116,217,0.18),rgba(0,116,217,0.04))', border: '1px solid rgba(0,116,217,0.3)', borderRadius: 20, padding: '40px 36px', position: 'relative', overflow: 'hidden' }}>
            <div style={{ fontSize: 15, fontWeight: 600, letterSpacing: '0.12em', textTransform: 'uppercase', color: 'var(--blue)', marginBottom: 24 }}>Growth & ROI</div>
            <div style={{ marginBottom: 28 }}>
              <div className="mono" style={{ fontSize: 44, fontWeight: 700, color: '#fff', letterSpacing: '-0.02em', lineHeight: 1.05 }}>
                $<CountUp to={150} active={active} duration={1500} />K–$<CountUp to={750} active={active} duration={1700} />K+
              </div>
              <div style={{ marginTop: 8, fontSize: 15, color: 'rgba(255,255,255,0.55)' }}>Avg. monthly ARR growth</div>
            </div>
            <div style={{ marginBottom: 24, paddingBottom: 24, borderBottom: '1px solid rgba(255,255,255,0.08)' }}>
              <div className="mono" style={{ fontSize: 28, fontWeight: 700, color: 'rgba(255,255,255,0.85)' }}>
                $<CountUp to={20} active={active} duration={1400} />K–$<CountUp to={54} active={active} duration={1500} />K
              </div>
              <div style={{ marginTop: 4, fontSize: 22, color: 'rgba(255,255,255,0.5)' }}>Avg. monthly Axion spend</div>
            </div>
            <div>
              <div className="mono" style={{ fontSize: 56, fontWeight: 700, color: 'var(--blue)', letterSpacing: '-0.03em', lineHeight: 1 }}>
                <CountUp to={8} active={active} duration={1500} />x–<CountUp to={14} active={active} duration={1600} />x+
              </div>
              <div style={{ marginTop: 8, fontSize: 15, color: 'rgba(255,255,255,0.55)' }}>Average ROI</div>
            </div>
          </div>
        </div>
        <p className="reveal" style={{ animationDelay: '1400ms', marginTop: 32, fontSize: 22, color: 'rgba(255,255,255,0.4)', fontStyle: 'italic' }}>
          *Heavily dependent on ACV. Current partners range $18K–$33K ACV on average.
        </p>
      </div>
    </div>
  );
};

Object.assign(window, { Slide07, Slide08, Slide09, Slide10, Slide11 });
