/* Sharpline — app root. Waits for the Aave bundle + sections, then renders. */
function SharplineApp() {
  React.useEffect(() => {
    if (window.lucide) window.lucide.createIcons({ attrs: { 'stroke-width': 1.5 } });
  });
  const { Nav, Hero, Process, Ladder, Pricing, Faq, FinalCta, Footer } = window;
  return (
    <div>
      <Nav />
      <Hero />
      <Process />
      <Pricing />
      <Ladder />
      <Faq />
      <FinalCta />
      <Footer />
    </div>
  );
}

(function mount() {
  const ready = window.AaveDesignSystem_b9d957 && window.React && window.ReactDOM && window.Hero;
  if (!ready) { setTimeout(mount, 30); return; }
  ReactDOM.createRoot(document.getElementById('root')).render(<SharplineApp />);
  // re-run lucide after first paint so all icons hydrate
  setTimeout(() => window.lucide && window.lucide.createIcons({ attrs: { 'stroke-width': 1.5 } }), 60);
})();
