| 432 | } |
| 433 | |
| 434 | export default function HomeClient() { |
| 435 | return ( |
| 436 | <div className="relative"> |
| 437 | {/* ─── Hero + Philosophy: unified section ─── */} |
| 438 | <div className="relative overflow-hidden"> |
| 439 | {/* Shared layered backgrounds */} |
| 440 | <div className="absolute inset-0 bg-gradient-to-b from-dark-forest-green via-black/95 to-black" /> |
| 441 | <div className="absolute inset-0 bg-[radial-gradient(ellipse_80%_50%_at_50%_-10%,rgba(124,255,63,0.12),transparent_50%)]" /> |
| 442 | <div className="absolute inset-0 bg-[radial-gradient(ellipse_60%_40%_at_50%_65%,rgba(124,255,63,0.06),transparent_50%)]" /> |
| 443 | |
| 444 | <HeroGrid /> |
| 445 | <BackgroundBeams /> |
| 446 | |
| 447 | {/* Inline nav overlay */} |
| 448 | <motion.div |
| 449 | initial={{ opacity: 0, y: -10 }} |
| 450 | animate={{ opacity: 1, y: 0 }} |
| 451 | transition={{ duration: 0.5, delay: 0.1 }} |
| 452 | className="absolute top-0 left-0 right-0 z-20 container mx-auto px-4 py-4 flex justify-between items-center" |
| 453 | > |
| 454 | <Link |
| 455 | href="/" |
| 456 | className="flex items-center space-x-2 group transition-all duration-300 hover:translate-x-0.5" |
| 457 | > |
| 458 | <Image |
| 459 | src="/logo-icon.png" |
| 460 | alt="Freebuff" |
| 461 | width={28} |
| 462 | height={28} |
| 463 | className="rounded-sm opacity-60 group-hover:opacity-100 transition-all duration-300 group-hover:brightness-110" |
| 464 | /> |
| 465 | <span className="text-xl tracking-widest font-serif text-zinc-400 group-hover:text-white transition-colors duration-200"> |
| 466 | freebuff |
| 467 | </span> |
| 468 | </Link> |
| 469 | |
| 470 | <nav className="flex items-center space-x-1"> |
| 471 | <Link |
| 472 | href="https://github.com/CodebuffAI/codebuff" |
| 473 | target="_blank" |
| 474 | rel="noopener noreferrer" |
| 475 | className="relative font-medium px-3 py-2 rounded-md transition-all duration-200 text-zinc-400 hover:text-white flex items-center gap-2 text-sm" |
| 476 | onClick={() => |
| 477 | posthog.capture(AnalyticsEvent.FREEBUFF_HOME_GITHUB_CLICKED) |
| 478 | } |
| 479 | > |
| 480 | <Icons.github className="h-4 w-4" /> |
| 481 | <span className="hidden sm:inline">GitHub</span> |
| 482 | </Link> |
| 483 | </nav> |
| 484 | </motion.div> |
| 485 | |
| 486 | {/* Hero content */} |
| 487 | <div className="relative z-10 container mx-auto px-4 pt-32 pb-16 md:pt-40 md:pb-20 text-center min-h-screen flex flex-col items-center justify-center"> |
| 488 | {/* Headline with staggered word animation */} |
| 489 | <motion.h1 |
| 490 | className="hero-heading mb-8" |
| 491 | variants={{ |