/* OpenHero source by Cristian Olivera Chávez. MIT License Copyright (c) 2026 Cristian Olivera Chávez Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ "use client"; import { useEffect, useRef } from "react"; import { Icon } from "@iconify/react"; export default function Page() { const cursorRef = useRef(null); useEffect(() => { const cursor = cursorRef.current; const interactiveElements = document.querySelectorAll( ".interactive, a, button" ); const moveCursor = (e: MouseEvent) => { if (!cursor) return; cursor.style.transform = `translate(${e.clientX}px, ${e.clientY}px)`; }; window.addEventListener("mousemove", moveCursor); interactiveElements.forEach((el) => { el.addEventListener("mouseenter", () => cursor?.classList.add("hovering")); el.addEventListener("mouseleave", () => cursor?.classList.remove("hovering") ); }); document.querySelectorAll(".magnetic-btn").forEach((btn) => { btn.addEventListener("mousemove", (e: Event) => { const ev = e as MouseEvent; const rect = (btn as HTMLElement).getBoundingClientRect(); const x = ev.clientX - rect.left; const y = ev.clientY - rect.top; (btn as HTMLElement).style.setProperty("--x", `${x}px`); (btn as HTMLElement).style.setProperty("--y", `${y}px`); const centerX = rect.width / 2; const centerY = rect.height / 2; const deltaX = (x - centerX) * 0.1; const deltaY = (y - centerY) * 0.1; (btn as HTMLElement).style.transform = `translate(${deltaX}px, ${deltaY}px)`; }); btn.addEventListener("mouseleave", () => { (btn as HTMLElement).style.transform = "translate(0px, 0px)"; }); }); document.querySelectorAll(".spotlight-card").forEach((card) => { card.addEventListener("mousemove", (e: Event) => { const ev = e as MouseEvent; const rect = (card as HTMLElement).getBoundingClientRect(); const x = ev.clientX - rect.left; const y = ev.clientY - rect.top; (card as HTMLElement).style.setProperty("--mouse-x", `${x}px`); (card as HTMLElement).style.setProperty("--mouse-y", `${y}px`); }); }); const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { entry.target.classList.add("active"); } }); }, { root: null, rootMargin: "0px 0px -10% 0px", threshold: 0.1, } ); document.querySelectorAll(".reveal").forEach((el) => observer.observe(el)); return () => { window.removeEventListener("mousemove", moveCursor); observer.disconnect(); }; }, []); const marqueeItems = [ "Genotype Sequencing", "C4 Pathway Optimization", "Photoreceptor Modulation", "Subcellular Structuring", "Genotype Sequencing", "C4 Pathway Optimization", "Photoreceptor Modulation", "Subcellular Structuring", ]; return ( <>

Anthocyanin Hyper-pigmentation

Rebalancing the planet with photosynthesis

We engineer circadian rhythm optimization to unlock the latent potential of botanical life. Bridging the gap between high-tech precision and raw spectral vitality to reverse atmospheric decay.

{marqueeItems.map((item, index) => ( {item} ))}

Spectral
Irradiance

The structural geometry of our synthetic flora adapts in real-time, responding to atmospheric carbon density.

Liquid Synthesis

Harnessing specific wavelengths to accelerate chlorophyll production. The UI mirrors this bioluminescent radiation.

SYS_READY

Phenotypic Plasticity

Flora engineered to adapt its structural geometry in real-time, responding to atmospheric carbon density and light.

ACT_VAR_01

Atmospheric Sync

Deploying bio-engineered canopies that act as high-efficiency carbon sinks, wrapping molecular structures seamlessly.

DATA_STREAM

Genomic Architecture

Advanced bento-grid visualization of real-time cellular data and engineered chromosomal adaptations.

Cellular Growth

3.4x

Increased carbon sequestration per leaf surface area.

Photon Yield

Optimal at 450nm

Sequence Align

Global Impact

Monitoring live canopy deployments across 4 biomes. The neural root network stabilizes soil integrity.

); }