import type { Metadata } from "next";
import { PageHero } from "@/components/patterns/PageHero";
import { SectionHeading } from "@/components/patterns/SectionHeading";
import { FaqAccordion } from "@/components/patterns/FaqAccordion";
import { CtaSection } from "@/components/patterns/CtaSection";
import { Card, CardHeader, CardTitle, CardDescription } from "@/components/ui/Card";

export const metadata: Metadata = {
  title: "MSME Funding",
  description:
    "Fundraising advisory and introductions for Udyam-registered micro, small, and medium enterprises seeking working capital or growth capital. ROPTS advises and introduces — it does not lend or invest directly.",
  alternates: { canonical: "/services/sector-funding/msme-funding" },
  openGraph: {
    title: "MSME Funding — ROPTS Venture Capital",
    description:
      "Readiness advisory and introductions to lenders and investors for MSMEs, distinguishing working-capital needs from growth-capital raises.",
    type: "website",
    url: "/services/sector-funding/msme-funding",
  },
};

const jsonLd = {
  "@context": "https://schema.org",
  "@type": "Service",
  serviceType: "MSME Funding Advisory",
  provider: { "@type": "Organization", name: "ROPTS Venture Capital" },
  description:
    "Fundraising readiness advisory and introduction service for micro, small, and medium enterprises, matching working-capital and growth-capital needs to relevant lenders, investors, and schemes.",
  areaServed: "IN",
};

const included = [
  {
    title: "Classification and documentation check",
    description: "Confirming Udyam registration status and the financial documentation lenders and investors will expect before you approach them.",
  },
  {
    title: "Working capital vs. growth capital clarity",
    description: "Identifying which of your funding needs is short-term working capital and which is genuine growth capital — they require different routes and different conversations.",
  },
  {
    title: "Curated introduction",
    description: "Matched to lenders, NBFCs, or investors whose MSME focus fits your sector and scale. The terms of any facility are negotiated directly with them.",
  },
];

const faqs = [
  {
    question: "Do I need to be Udyam-registered to use this service?",
    answer:
      "Udyam registration is the standard way MSME status is established in India, and most lenders and scheme-linked funding routes expect it. If you're not yet registered, we'll flag that as a readiness gap before any introduction is made.",
  },
  {
    question: "What's the difference between working capital and growth capital, and why does it matter here?",
    answer:
      "Working capital covers short-term operating needs — inventory, receivables, payroll cycles — and is typically addressed through credit lines or invoice financing. Growth capital funds expansion — new capacity, new markets, new equipment — and is a different conversation with a different class of lender or investor. We help you identify which one you actually need before matching you to a funding route.",
  },
  {
    question: "Does ROPTS provide the loan or investment itself?",
    answer:
      "No. ROPTS is an advisory and introduction service. We assess your readiness and introduce you to lenders, NBFCs, or investors whose MSME focus fits your profile; the credit or investment decision is theirs to make.",
  },
  {
    question: "Can this service help with scheme-linked funding as well as private capital?",
    answer:
      "Where relevant, we'll flag public scheme eligibility alongside private funding routes as part of the readiness review, and point you to our Government Funding Guidance service for the scheme-specific navigation.",
  },
];

export default function MsmeFundingPage() {
  return (
    <>
      <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }} />

      <PageHero
        breadcrumb={[
          { label: "Home", href: "/" },
          { label: "Services", href: "/services" },
          { label: "Sector Funding", href: "/services/sector-funding" },
          { label: "MSME Funding" },
        ]}
        eyebrow="Sector Funding"
        title="MSME Funding"
        description="Readiness advisory and curated introductions for Udyam-registered micro, small, and medium enterprises — distinguishing working capital from growth capital before matching you to the right lender or investor."
        primaryLabel="Apply to Raise Capital"
        primaryHref="/apply/organization"
        secondaryLabel="See How It Works"
        secondaryHref="/how-it-works"
      />

      <div className="container py-16">
        <div className="max-w-2xl">
          <SectionHeading eyebrow="The Situation" title="MSMEs are underserved by generic fundraising advice" />
          <p className="mt-6 text-body-md text-ink-soft">
            Most fundraising content is written for equity-raising startups, which leaves MSMEs guessing at what
            actually applies to them — Udyam classification thresholds, the difference between a working-capital
            facility and a growth-capital raise, and which lenders or investors even serve enterprises at their scale.
            ROPTS reviews your registration status, financial documentation, and the actual purpose of the funds you
            need, then introduces you to lenders, NBFCs, or investors whose MSME focus genuinely fits.
          </p>
          <p className="mt-4 text-body-md text-ink-soft">
            Our role ends at introduction. The credit terms, equity terms, or facility structure are negotiated
            directly between your enterprise and the lender or investor.
          </p>
        </div>

        <div className="mt-16">
          <SectionHeading eyebrow="What's Included" title="Three parts of the engagement" />
          <div className="mt-8 grid gap-6 sm:grid-cols-3">
            {included.map((item) => (
              <Card key={item.title}>
                <CardHeader>
                  <CardTitle>{item.title}</CardTitle>
                  <CardDescription>{item.description}</CardDescription>
                </CardHeader>
              </Card>
            ))}
          </div>
        </div>

        <div className="mt-20 max-w-2xl">
          <h2 className="mb-6 font-display text-h1 font-normal text-ink">Frequently Asked</h2>
          <FaqAccordion items={faqs} />
        </div>
      </div>

      <CtaSection
        title="Ready to find out if your MSME is funding-ready?"
        primaryLabel="Apply to Raise Capital"
        primaryHref="/apply/organization"
        secondaryLabel="See How It Works"
        secondaryHref="/how-it-works"
      />
    </>
  );
}
