// mvp-sections.jsx — secciones premium de la landing "MVP" // Reusa F, Magnetic, Parallax, RevealText, RevealWords, GlitchWord, useScrollProgress, // useInView de shared.jsx / final-hooks.jsx / final-sections.jsx. // Pieza nueva de esta landing: MVPTerminal — un panel de "build log" que tipea en vivo, // reforzando velocidad/foco sin repetir la red de partículas 1:1 de otras landings. function MVPTerminal({ lines }) { const [shown, setShown] = React.useState([]); const [typed, setTyped] = React.useState(''); const idxRef = React.useRef(0); const ref = React.useRef(null); const inView = useInView(ref, { threshold: 0.3 }); const startedRef = React.useRef(false); React.useEffect(() => { if (!inView || startedRef.current) return; startedRef.current = true; let cancelled = false; const runLine = (i) => { if (cancelled || i >= lines.length) { if (!cancelled) { setTimeout(() => { if (cancelled) return; setShown([]); setTyped(''); idxRef.current = 0; startedRef.current = false; runLine(0); }, 2400); } return; } const line = lines[i]; let c = 0; const type = () => { if (cancelled) return; c++; setTyped(line.slice(0, c)); if (c < line.length) { setTimeout(type, 16 + Math.random() * 18); } else { setTimeout(() => { if (cancelled) return; setShown(s => [...s, line]); setTyped(''); runLine(i + 1); }, 260); } }; type(); }; runLine(0); return () => { cancelled = true; }; }, [inView, lines]); return (
eurekant — mvp build
{shown.map((l, i) => (
{l}
))} {typed && (
{typed}
)}
); } // ───────────── HERO ───────────── function MHero({ content }) { const heroRef = React.useRef(null); const progress = useScrollProgress(heroRef); const [mouse, setMouse] = React.useState({ x: 0.5, y: 0.5 }); React.useEffect(() => { if (document.getElementById('mvp-hero-styles')) return; const s = document.createElement('style'); s.id = 'mvp-hero-styles'; s.textContent = ` @property --mvpBorderAngle { syntax: ''; inherits: false; initial-value: 0deg; } @keyframes mvpBorderRotate { to { --mvpBorderAngle: 360deg; } } @keyframes mvpBtnShimmer { 0%, 75% { background-position: 200% center; opacity: 0; } 80% { opacity: 1; } 95%, 100% { background-position: -100% center; opacity: 0; } } @keyframes mvpArrow { 0%, 60%, 100% { transform: translateX(0); } 80% { transform: translateX(5px); } } .mvp-cta-wrap { position: relative; display: inline-block; border-radius: 14px; padding: 2px; background: conic-gradient(from var(--mvpBorderAngle), transparent 0%, #2199ea 12%, #63b7f0 22%, #137dc5 32%, transparent 44%, transparent 100%); animation: mvpBorderRotate 2.5s linear infinite; transition: transform 0.3s cubic-bezier(.2,.8,.3,1); } .mvp-cta-wrap:hover { transform: scale(1.04); } .mvp-cta-inner { position: relative; overflow: hidden; padding: 20px 36px; background: linear-gradient(135deg, #2199ea 20%, #137dc5); color: #fff; border: none; border-radius: 12px; font-family: var(--font-heading); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; display: flex; align-items: center; gap: 8px; } .mvp-cta-inner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%); background-size: 200% 100%; animation: mvpBtnShimmer 9s ease-in-out infinite; pointer-events: none; } .mvp-arrow { display: inline-block; animation: mvpArrow 3s ease-in-out infinite; } `; document.head.appendChild(s); }, []); React.useEffect(() => { const onMove = (e) => { const el = heroRef.current; if (!el) return; const r = el.getBoundingClientRect(); setMouse({ x: (e.clientX - r.left) / r.width, y: (e.clientY - r.top) / r.height }); }; const el = heroRef.current; if (!el) return; el.addEventListener('mousemove', onMove); return () => el.removeEventListener('mousemove', onMove); }, []); const px = (mouse.x - 0.5) * 20; const py = (mouse.y - 0.5) * 20; return (
EUREKANT.MVP.FOUNDERS

{content.hero.sub}

●{content.hero.meta}
); } function SectionEyebrowHead({ eyebrow, title, sub, align = 'left', maxTitle = 900 }) { return (
{eyebrow}

{title}

{sub &&

{sub}

}
); } // ───────────── COSTO / RUNWAY ───────────── function MCost({ content }) { const ref = React.useRef(null); const inView = useInView(ref, { threshold: 0.2 }); const progress = useScrollProgress(ref); const burn = Math.max(0.06, 1 - progress * 1.15); return (
01
RUNWAY{Math.round(burn * 100)}%
{content.cost.items.map((c, i) => (
{c.stat}
{c.label}

{c.desc}

))}
); } // ───────────── DOLORES ───────────── function MPains({ content }) { const ref = React.useRef(null); const inView = useInView(ref, { threshold: 0.15 }); return (
{content.pains.items.map((p, i) => (
e.currentTarget.style.borderColor = F.accent} onMouseLeave={(e) => e.currentTarget.style.borderColor = F.line} style={{ background: F.surface, border: `1px solid ${F.line}`, borderRadius: 24, padding: 40, position: 'relative', overflow: 'hidden', opacity: inView ? 1 : 0, transform: inView ? 'none' : 'translateY(28px)', transitionProperty: 'border-color, opacity, transform', transitionDuration: `.35s, .8s, .8s`, transitionDelay: `0s, ${i * 0.12}s, ${i * 0.12}s`, transitionTimingFunction: 'ease, cubic-bezier(.16,.84,.3,1), cubic-bezier(.16,.84,.3,1)' }}>
{p.n}

{p.title}

{p.desc}

))}
); } // ───────────── QUÉ CONSTRUIMOS (sticky scroll) ───────────── function MModules({ content }) { const [active, setActive] = React.useState(0); const ref = React.useRef(null); const progress = useScrollProgress(ref); React.useEffect(() => { if (progress > 0.1 && progress < 0.9) { const idx = Math.min(3, Math.floor(progress * 4)); if (idx !== active) setActive(idx); } }, [progress]); const step = content.modules.steps[active]; return (
02
{content.modules.steps.map((s, i) => (
setActive(i)} onClick={() => setActive(i)} style={{ padding: '32px 0', cursor: 'pointer', borderTop: `1px solid ${active === i ? F.accent : F.line}`, opacity: active === i ? 1 : 0.4, transform: active === i ? 'translateX(8px)' : 'translateX(0)', transition: 'opacity .4s, border-color .4s, transform .4s' }}>
{s.n}

{s.title}

{s.dur}
))}
{step.n}
PILAR {step.n} / 04 · {step.dur.toUpperCase()}

{step.title}

{step.desc}

{content.modules.steps.map((_, i) => (
))}
); } // ───────────── CÓMO TRABAJAMOS ───────────── function MProcess({ content }) { const ref = React.useRef(null); const inView = useInView(ref, { threshold: 0.15 }); return (
03
{content.process.items.map((st, i) => (
0{i + 1}
{st.dur.toUpperCase()}

{st.title}

{st.desc}

))}
); } Object.assign(window, { MVPTerminal, MHero, MCost, MPains, MModules, MProcess });