import '@fontsource-variable/manrope/wght.css';
import React from 'react';
import { createRoot } from 'react-dom/client';
import LaserFlow from './LaserFlow.jsx';

const surface = document.querySelector('#laser');
const logo = document.querySelector('#hy7-art');
import('./logo-scene.js')
  .then(({ mountLogo }) => mountLogo(logo))
  .catch(error => console.warn('HY7 3D unavailable. Using the SVG logo.', error));

createRoot(surface).render(
  <LaserFlow
    color="#ff0000"
    beamPosition={0.72}
    surfaceLevel={1}
    intensity={1.8}
    beamWidth={1.5}
    flare={1.5}
    spread={1.5}
    spill={1}
    fog={0.2}
    dust={1.6}
    streaks={1.5}
    mouseInteraction={false}
    intro={false}
    dpr={1}
  />
);
