/* 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" const metrics = [ { label: "Energy State", value: "98%" }, { label: "Reactive Nodes", value: "240" }, ] const bars = [ { label: "Forest Sync", value: "96%", width: "w-[96%]", tone: "bg-[#61DAFB]" }, { label: "Energy Flow", value: "82%", width: "w-[82%]", tone: "bg-[oklch(82%_0.22_150)]" }, { label: "Virtual Ecology", value: "91%", width: "w-[91%]", tone: "bg-white" }, ] export default function Page() { const heroVideoRef = useRef(null) useEffect(() => { document.documentElement.classList.add("dark", "scroll-smooth") }, []) useEffect(() => { const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { entry.target.classList.add("active") observer.unobserve(entry.target) } }) }, { threshold: 0.14 } ) document.querySelectorAll(".bloom").forEach((element) => observer.observe(element)) return () => observer.disconnect() }, []) useEffect(() => { const video = heroVideoRef.current if (!video) return let ticking = false const update = () => { const scrolled = window.scrollY const scale = 1.25 + scrolled * 0.00008 const translate = scrolled * 0.06 video.style.transform = `scale(${scale}) translateY(${translate}px)` } const onScroll = () => { if (ticking) return ticking = true window.requestAnimationFrame(() => { update() ticking = false }) } update() window.addEventListener("scroll", onScroll, { passive: true }) return () => window.removeEventListener("scroll", onScroll) }, []) useEffect(() => { const buttons = document.querySelectorAll("button") const supportsViewTransition = typeof document.startViewTransition === "function" const onClick = () => { if (!supportsViewTransition) return document.startViewTransition(() => {}) } buttons.forEach((button) => button.addEventListener("click", onClick)) return () => buttons.forEach((button) => button.removeEventListener("click", onClick)) }, []) return (
Terraform OS
Reactive Forest Intelligence
Biophilic Data Binding Active

Reactive
Forest Logic

A React-native operating system for regenerative estates. State-driven architecture powering geothermal villas, photovoltaic envelopes, and intelligent forest equilibrium.

{metrics.map((metric) => (
{metric.label}
{metric.value}
))}
Virtual Ecosystem

Reactivity designed like a living biome.

Component Modularity

Dynamic villa systems powered by reactive state.

Every villa node synchronizes lighting, geothermal balance, and photovoltaic consumption through a unified component architecture.

Hydration Metrics
{bars.map((bar) => (
{bar.label} {bar.value}
))}
) }