// CTAFooter.jsx — closing CTA + footer
const CTAFooter = () => {
  return (
    <>
      <section style={{
        position: 'relative', overflow: 'hidden',
        padding: '120px 32px',
        borderTop: '1px solid rgba(125,211,252,0.08)',
      }}>
        <div style={{
          position: 'absolute', inset: 0, pointerEvents: 'none',
          backgroundImage: 'linear-gradient(rgba(125,211,252,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(125,211,252,0.06) 1px, transparent 1px)',
          backgroundSize: '32px 32px',
          maskImage: 'radial-gradient(ellipse 70% 90% at 50% 50%, #000 15%, transparent 75%)',
          WebkitMaskImage: 'radial-gradient(ellipse 70% 90% at 50% 50%, #000 15%, transparent 75%)',
        }}/>
        <div style={{
          position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)',
          width: 1000, height: 600,
          background: 'radial-gradient(ellipse at center, rgba(29,168,105,0.18) 0%, rgba(26,143,224,0.10) 40%, transparent 70%)',
          pointerEvents: 'none', filter: 'blur(40px)',
        }} />
        <div style={{ position: 'relative', maxWidth: 900, margin: '0 auto', textAlign: 'center' }}>
          <div style={{
            display: 'inline-flex', alignItems: 'center', gap: 8,
            padding: '5px 12px', borderRadius: 9999, marginBottom: 24,
            fontFamily: 'JetBrains Mono, monospace', fontSize: 11,
            letterSpacing: '0.06em',
            border: '1px solid rgba(46,232,154,0.22)',
            color: '#2ee89a',
            background: 'rgba(10,18,32,0.6)',
          }}>
            <span style={{ width: 6, height: 6, borderRadius: '50%', background: '#2ee89a', boxShadow: '0 0 0 3px rgba(46,232,154,0.2)' }} />
            managed cloud · beta · design partners welcome
          </div>
          <h2 style={{
            fontFamily: 'Inter, sans-serif', fontSize: 'clamp(44px, 6vw, 72px)', fontWeight: 700,
            letterSpacing: '-0.03em', lineHeight: 1.02, margin: 0, marginBottom: 24,
            color: '#e6eef9', textWrap: 'balance',
          }}>
            Give your agents{' '}
            <span style={{ background: 'linear-gradient(90deg,#2ec47a,#1a8fe0)', WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent', fontStyle: 'italic' }}>data autonomy.</span>
          </h2>
          <p style={{
            fontFamily: 'Inter, sans-serif', fontSize: 18, lineHeight: 1.6,
            color: '#8ea3c0', margin: '0 auto 40px', maxWidth: 640,
          }}>
            Production-grade federation, delivered as a managed workspace. Launch in minutes,
            wire every dataset in your stack as an agent-callable verb, and let your team ship
            without babysitting infrastructure.
          </p>
          <div style={{ display: 'flex', gap: 14, justifyContent: 'center', flexWrap: 'wrap' }}>
            <a href="Cloud.html" style={{
              background: 'linear-gradient(90deg,#2ec47a,#1a8fe0)', color: '#fff', textDecoration: 'none',
              padding: '15px 30px', borderRadius: '2rem',
              fontFamily: 'Inter, sans-serif', fontSize: 15, fontWeight: 600,
              transition: 'opacity 150ms',
              display: 'inline-flex', alignItems: 'center',
            }}
              onMouseEnter={e => e.currentTarget.style.opacity = '0.88'}
              onMouseLeave={e => e.currentTarget.style.opacity = '1'}
            >Join Cloud waitlist →</a>
            <a href="Cloud.html" style={{
              background: 'rgba(10,18,32,0.6)',
              border: '1px solid rgba(125,211,252,0.2)',
              color: '#e6eef9', textDecoration: 'none',
              padding: '14px 24px', borderRadius: '2rem',
              fontFamily: 'Inter, sans-serif', fontSize: 15, fontWeight: 500,
              backdropFilter: 'blur(6px)',
              display: 'inline-flex', alignItems: 'center',
            }}>
              Book a demo →
            </a>
            <a href="https://github.com/SkardiLabs/skardi" target="_blank" rel="noopener noreferrer" style={{
              background: 'transparent',
              border: '1px solid rgba(125,211,252,0.15)',
              color: '#c4d2e2', textDecoration: 'none',
              padding: '14px 24px', borderRadius: '2rem',
              fontFamily: 'Inter, sans-serif', fontSize: 15, fontWeight: 500,
              display: 'inline-flex', alignItems: 'center', gap: 10,
            }}>
              <svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>
              Self-host on GitHub
            </a>
          </div>
        </div>
      </section>

      <footer style={{
        padding: '56px 32px 36px',
        background: '#060b14',
        color: '#8ea3c0',
        borderTop: '1px solid rgba(125,211,252,0.06)',
      }}>
        <div style={{ maxWidth: 1200, margin: '0 auto' }}>
          <div style={{ display: 'flex', alignItems: 'center', gap: 10, marginBottom: 16 }}>
            <img src="assets/skardi-mark.png" alt="" style={{ height: 26 }} />
            <span style={{ fontFamily: 'Inter, sans-serif', fontWeight: 700, fontSize: 20, color: '#e6eef9' }}>
              skardi<span style={{color:'#2ee89a'}}>.ai</span>
            </span>
          </div>
          <div style={{ fontFamily: 'Inter, sans-serif', fontSize: 14, lineHeight: 1.65, maxWidth: 380, marginBottom: 20 }}>
            Databricks for AI. A managed data platform that gives agents full data autonomy —
            every dataset in your stack, something an agent can actually use.
          </div>
          <div style={{ fontFamily: 'JetBrains Mono, monospace', fontSize: 11, letterSpacing: '0.06em', color: '#6b7e9a' }}>
            © 2026 SkardiLabs · Skardi Cloud · waitlist open
          </div>
        </div>
      </footer>
    </>
  );
};

window.CTAFooter = CTAFooter;
