"use client"; import { motion, useScroll, useTransform, type Variants } from "framer-motion"; import { Mic, CheckCircle2, ShieldCheck, Zap, Activity } from "lucide-react"; import { useRef } from "react"; export default function AIVoiceSoap() { const containerRef = useRef(null); const { scrollYProgress } = useScroll({ target: containerRef, offset: ["start end", "end start"], }); const y = useTransform(scrollYProgress, [0, 0.4], [50, 0]); const opacity = useTransform(scrollYProgress, [0, 0.25], [0, 1]); const cardVariants: Variants = { hidden: { opacity: 0, y: 30 }, visible: (custom: number) => ({ opacity: 1, y: 0, transition: { delay: 0.12 + custom * 0.14, duration: 0.65, ease: "easeOut", }, }), }; const features = [ { icon: Mic, title: "Natural Voice Capture", desc: "Speak freely — AI transcribes SOAP notes in real time with clinical accuracy.", color: "text-emerald-400", bg: "from-emerald-600/15 to-emerald-800/5", }, { icon: Activity, title: "Context-Aware Intelligence", desc: "Understands medical terminology, patient history context & follow-up questions.", color: "text-cyan-400", bg: "from-cyan-600/15 to-cyan-800/5", }, { icon: Zap, title: "Instant Structuring", desc: "Converts conversation to structured Subjective, Objective, Assessment, Plan format.", color: "text-indigo-400", bg: "from-indigo-600/15 to-indigo-800/5", }, { icon: ShieldCheck, title: "Secure & Compliant", desc: "End-to-end encryption, HIPAA/GDPR compliant voice processing & storage.", color: "text-cyan-400", bg: "from-cyan-600/15 to-cyan-800/5", }, ]; return (
{/* Subtle ambient glows */}
{/* Left – Text + Trust */}
AI-Powered Voice Notes

Document Care
With Your Voice

Speak naturally during consultations. Our AI instantly transcribes, structures, and organizes SOAP notes — saving hours while maintaining clinical precision and full compliance.

{/* Metrics */}
{[ { value: "98.7%", label: "Transcription Accuracy", icon: CheckCircle2 }, { value: "<1s", label: "Real-Time Processing", icon: Zap }, { value: "HIPAA", label: "Compliant", icon: ShieldCheck }, ].map((item, i) => (

{item.value}

{item.label}

))}
{/* Badges */}
{["HIPAA Compliant", "GDPR Ready", "Encrypted Voice", "Audit Logs"].map((badge, i) => (
{badge}
))}
{/* Right – Feature Cards */}
{features.map((feature, i) => (

{feature.title}

{/* Uncomment if you want descriptions back */} {/*

{feature.desc}

*/}
))}
); }