/* global React */
const { useState, useEffect, useRef } = React;
// Count-up hook: tween from 0 -> target when ref enters viewport (or immediately)
function useCountUp(target, { duration = 1400, delay = 0, immediate = true } = {}) {
const [val, setVal] = useState(0);
const ref = useRef(null);
const started = useRef(false);
useEffect(() => {
const start = () => {
if (started.current) return;
started.current = true;
const t0 = performance.now() + delay;
const tick = (now) => {
if (now < t0) { requestAnimationFrame(tick); return; }
const p = Math.min(1, (now - t0) / duration);
// ease-out cubic
const eased = 1 - Math.pow(1 - p, 3);
setVal(target * eased);
if (p < 1) requestAnimationFrame(tick);
else setVal(target);
};
requestAnimationFrame(tick);
};
if (immediate) { start(); return; }
const el = ref.current;
if (!el || !("IntersectionObserver" in window)) { start(); return; }
const io = new IntersectionObserver((entries) => {
if (entries.some(e => e.isIntersecting)) { start(); io.disconnect(); }
}, { threshold: 0.3 });
io.observe(el);
return () => io.disconnect();
}, [target, duration, delay, immediate]);
return [val, ref];
}
function CountStat({ value, suffix = "", prefix = "", delay = 0, decimals = 0 }) {
const [v, ref] = useCountUp(value, { delay, immediate: true });
const rounded = decimals === 0 ? Math.round(v) : v.toFixed(decimals);
return {prefix}{rounded}{suffix};
}
// ============================================================
// ICONS (inline SVG)
// ============================================================
const Icon = {
Shield: (p) => (
),
Trend: (p) => (
),
Truck: (p) => (
),
Headset: (p) => (
),
Beef: (p) => (
),
ShieldSm: (p) => (
),
Drop: (p) => (
),
Flask: (p) => (
),
Doc: (p) => (
),
Tag: (p) => (
),
Award: (p) => (
),
Cap: (p) => (
),
People: (p) => (
),
Factory: (p) => (
),
Discount: (p) => (
),
Chat: (p) => (
),
Cocho: (p) => (
),
ChatBubble: (p) => (
),
Insta: (p) => (
),
Mail: (p) => (
),
Pin: (p) => (
),
WhatsApp: (p) => (
),
};
// ============================================================
// NAV
// ============================================================
function Nav() {
return (
Quero saber mais
Suplementação de alta performance para bovinos de corte e leite. Compre direto do fabricante, receba na fazenda e veja o resultado no cocho e na balança.
A NUTROW é fabricante de suplemento mineral e proteico para bovinos. Vendemos direto da fábrica para o produtor, sem atravessador, com registro MAPA e suporte técnico no WhatsApp.
Porque o boi que come bem, engorda mais. E o produtor que compra direto, paga menos.
Sem revenda, sem atravessador. ATÉ 30% mais barato que o mesmo produto na revenda. Você fala direto com quem fabrica.
Não é promessa. São números medidos em fazendas que já usam o suplemento NUTROW direto do fabricante.
{s.desc}