import useInViewAnimation from "./useInViewAnimation";
import DocCard from "./DocCards";
import "./sections.css";
/* Three real Tamga capabilities in the reference "projects" layout.
Each visual is a light grid panel staging 1–2 DocCard mockups —
self-contained CSS, no external media. */
const PROJECTS = [
{
name: "Packet audit",
desc:
"Upload the full declaration packet — invoice, packing list, CMR, certificate — and Tamga cross-checks every shared field across documents, flagging each mismatch with the exact source line it read.",
stage: "audit",
visualLabel:
"Mockup: a packing list and an audit report side by side, the report flagging the net-weight mismatch 4,120 kg versus 4,210 kg with a citation",
cards: [
{ variant: "packing", pos: "back" },
{ variant: "report", pos: "front" },
],
},
{
name: "Ask with citations",
desc:
"Ask anything about your documents and get an answer that cites the passage it came from. If the packet does not contain the answer, Tamga abstains and says so — it never guesses.",
stage: "ask",
visualLabel:
"Mockup: the question “What is the HS code?” answered with 9405 11 00 09 and a citation to the declaration",
cards: [{ variant: "answer", pos: "solo" }],
},
{
name: "Evidence reports",
desc:
"Every audit compiles into a findings report: each check, its verdict, and the cited evidence — ready to hand to a client or keep on file for the inspector.",
stage: "evidence",
visualLabel:
"Mockup: an audit report with cited findings alongside a stamped certificate of origin",
cards: [
{ variant: "report", pos: "front" },
{ variant: "certificate", pos: "back" },
],
},
];
// Each item fades in independently, so the hook lives in a child component.
function ProjectItem({ project }) {
const [ref, inView] = useInViewAnimation();
return (