/**
 * ThinkSchool Public Website — Dual Web & Mobile Client Component
 * Showcases the responsive Next.js web application and dedicated Flutter mobile app.
 */
function WebMobileExperience() {
  return (
    <section className="py-24 md:py-32 bg-black relative border-t border-white/10 overflow-hidden">
      <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
        <div className="grid grid-cols-1 lg:grid-cols-12 gap-12 items-center">
          {/* Left Text Narrative */}
          <div className="lg:col-span-6 space-y-6">
            <Badge variant="amber" icon={<Icon name="smartphone" size={12} />}>
              Cross-Platform Architecture
            </Badge>

            <h2 className="text-3xl sm:text-5xl font-heading italic text-white leading-tight">
              One unified backend. Built for desktop and mobile workflows.
            </h2>

            <p className="text-base sm:text-lg text-zinc-300 font-body leading-relaxed">
              Administrators and accountants require expansive multi-column desktop tables, while teachers and parents need role-aware mobile access. ThinkSchool supports both through connected web and Flutter clients.
            </p>

            <div className="space-y-4 pt-4">
              <div className="p-5 rounded-2xl bg-zinc-950 border border-white/10 space-y-2">
                <div className="flex items-center gap-2.5 text-amber-400 font-semibold text-sm">
                  <Icon name="zap" size={16} />
                  <span>Responsive Web Portal</span>
                </div>
                <p className="text-xs sm:text-sm text-zinc-400 font-body">
                  Designed for admissions review, detailed fee reconciliation, timetabling, report-card generation, and executive analytics.
                </p>
              </div>

              <div className="p-5 rounded-2xl bg-zinc-950 border border-white/10 space-y-2">
                <div className="flex items-center gap-2.5 text-orange-400 font-semibold text-sm">
                  <Icon name="smartphone" size={16} />
                  <span>Flutter Mobile Client for iOS & Android</span>
                </div>
                <p className="text-xs sm:text-sm text-zinc-400 font-body">
                  Built for role-aware attendance, notices, timetable access, and the mobile workflows enabled for each school community.
                </p>
              </div>
            </div>

            <div className="pt-2 flex items-center gap-4 text-xs font-mono text-zinc-500">
              <span>Fastify v4 REST API</span>
              <span>•</span>
              <span>Role-Aware Access</span>
              <span>•</span>
              <span>Firebase Identity</span>
            </div>
          </div>

          {/* Right Visual Architecture Representation */}
          <div className="lg:col-span-6">
            <div className="relative mx-auto max-w-md p-8 rounded-3xl bg-gradient-to-b from-zinc-900 to-zinc-950 border border-white/15 shadow-2xl">
              <div className="flex items-center justify-between border-b border-white/10 pb-4 mb-6">
                <div className="flex items-center gap-2">
                  <span className="w-2.5 h-2.5 rounded-full bg-amber-500" />
                  <span className="text-xs font-mono text-zinc-300">Fastify /api/v1/ Boundary</span>
                </div>
                <span className="text-[10px] font-mono px-2 py-0.5 rounded bg-amber-500/10 text-amber-400 border border-amber-500/20">
                  Shared Auth
                </span>
              </div>

              <div className="space-y-4">
                <div className="p-4 rounded-xl bg-black/60 border border-white/10 flex items-center justify-between">
                  <div>
                    <div className="text-xs font-semibold text-white">Super Admin & Office</div>
                    <div className="text-[11px] text-zinc-400">Next.js Desktop Web App</div>
                  </div>
                  <span className="text-xs font-mono text-zinc-500">Session Cookie</span>
                </div>

                <div className="p-4 rounded-xl bg-black/60 border border-white/10 flex items-center justify-between">
                  <div>
                    <div className="text-xs font-semibold text-white">Teachers & Staff</div>
                    <div className="text-[11px] text-zinc-400">Flutter Mobile + Web</div>
                  </div>
                  <span className="text-xs font-mono text-zinc-500">Bearer Token</span>
                </div>

                <div className="p-4 rounded-xl bg-black/60 border border-white/10 flex items-center justify-between">
                  <div>
                    <div className="text-xs font-semibold text-white">Parents & Students</div>
                    <div className="text-[11px] text-zinc-400">Flutter mobile client</div>
                  </div>
                  <span className="text-xs font-mono text-zinc-500">Scoped Snapshots</span>
                </div>
              </div>

              <div className="mt-6 pt-4 border-t border-white/5 text-center">
                <p className="text-xs text-zinc-400 font-body">
                  Every request is scoped to the authorized organization, campus, and role.
                </p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}

window.WebMobileExperience = WebMobileExperience;
