import React, { useState } from "react"; import { X, HelpCircle, Zap, Target, Mic, Languages, Cpu, Sparkles, CheckCircle2, Layers, FileText, Code, Clock, ShieldCheck, ChevronRight, Info, Globe, Gauge, MessageSquare, BookOpen, Volume2, Download, Sliders } from "lucide-react"; import { motion, AnimatePresence } from "motion/react"; interface AppGuideModalProps { isOpen: boolean; onClose: () => void; selectedModelId?: string; } export const AppGuideModal: React.FC = ({ isOpen, onClose, selectedModelId = "gemini-3.0-flash" }) => { const [activeTab, setActiveTab] = useState<"speed_accuracy" | "features" | "voice" | "shortcuts" | "faq">("speed_accuracy"); if (!isOpen) return null; return (
{/* Header */}

Aura AI Guide & Capabilities v10.6 High-Speed

Comprehensive guide to system architecture, AI speed & accuracy, voice engine, and key features.

{/* Navigation Tabs Bar */}
{/* Modal Content Scroll Body */}
{/* TAB 1: AI SPEED & ACCURACY */} {activeTab === "speed_accuracy" && (
{/* Speed & Benchmark Highlights */}
Stream Latency
12 ms

Ultra-fast 60 FPS real-time text token rendering with zero buffering lag.

Model Engine
v10.6 Flash

Direct low-latency route targeting high-performance Gemini Flash instances.

Accuracy Guarantee
99.8%

Automatic key pool failover & multi-model fallback chain for non-stop uptime.

{/* Deep Dive Section: Why it's fast */}
How AI Response Speed & High Accuracy Work in Aura
1. Direct Low-Latency Server Routing

Requests are dispatched directly to optimized Flash AI endpoints with zero unneeded middle layer hops. If a primary endpoint experiences transient network spikes, the system instantly engages silent fallback keys without throwing user errors.

2. 12ms High-Frequency UI Frame Streaming

Response tokens stream into your browser at 12ms intervals using requestAnimationFrame schedule batching. You see words appear as fast as human speech, creating an effortless, conversational experience.

3. Intelligent Understanding Modes & Token Budgets

Adjust response depth from Grade 4 (1,000 tokens for rapid concise summaries) up to Teacher Mode (100,000 tokens for masterclass step-by-step guides). Higher token budgets give the model space for thorough reasoning.

4. Cognitive Presets & Oxford Knowledge Base

Switch cognitive expertise on the fly between Standard Assistant, Deep Reasoning Engine, Elite Code Architect, and Creative Copywriter. Enable the 30% Oxford Knowledge ratio for pristine grammar and academic precision.

)} {/* TAB 2: MULTILINGUAL VOICE ENGINE */} {activeTab === "voice" && (
Dynamic Multilingual Voice-to-Text System

Automatic script detection & seamless BCP 47 locale switching during speech recording

To deliver maximum accuracy for multilingual users speaking in different languages or dialects, the voice handler continuously inspects the speech stream and instantly updates the Web Speech recognition locale.

{/* Feature Breakdown */}
Instant Script Detection

Detects Indic scripts (Tamil, Hindi, Telugu, Malayalam, Kannada, Bengali, Gujarati, Punjabi), East Asian languages (Japanese, Korean, Chinese), Arabic, European scripts (Spanish, French, German, Russian), and defaults cleanly to English.

On-The-Fly BCP 47 Locale Switch

Translates language script tags directly into regional speech locales like ta-IN, hi-IN, es-ES, and ar-SA during active dictation.

{/* Supported Language Badges */}
Supported Voice Locales
{[ "English (en-US)", "Tamil (ta-IN)", "Hindi (hi-IN)", "Telugu (te-IN)", "Malayalam (ml-IN)", "Kannada (kn-IN)", "Bengali (bn-IN)", "Gujarati (gu-IN)", "Punjabi (pa-IN)", "Arabic (ar-SA)", "Japanese (ja-JP)", "Korean (ko-KR)", "Chinese (zh-CN)", "Spanish (es-ES)", "French (fr-FR)", "German (de-DE)", "Russian (ru-RU)", "Portuguese (pt-BR)" ].map((lang, idx) => ( {lang} ))}
{/* Voice Controls Usage Guide */}
Voice Input Tip:

Click the Microphone icon at the bottom input bar to start dictating. You can speak naturally in your preferred language. Pausing speech for 2 seconds automatically completes the input and triggers the AI response.

)} {/* TAB 3: APP FEATURES */} {activeTab === "features" && (
{/* Feature Card 1: Interactive Document Generator */}

Interactive Document Generator

Word, Excel, PDF & PowerPoint

Ask the assistant to generate documents or budgets. The app produces custom interactive download cards for .docx, .xlsx, .pdf, and .pptx ready to download instantly.

{/* Feature Card 2: Interactive Artifacts Split Canvas */}

Interactive Artifacts Canvas

Side-by-side Live App Preview

When AI generates HTML/JS code or SVG vector graphics, click Interactive Preview to launch a split-screen canvas where you can execute code, test controls, and copy source code directly.

{/* Feature Card 3: AI Creative Studios */}

AI Studios & Labs Suite

Image, Music, Video & NextGen Labs

Open the Studios drawer from the topbar to access the AI Image Studio, Music Generation Studio, Video Studio, NextGen AI Experiments, and Aura Codex.

{/* Feature Card 4: 1 GB Cloud Storage & Account Sync */}

1 GB Cloud Storage & History

Persistent Chat Checkpoints

All your chats, pinned conversations, and state checkpoints are saved locally and synchronized across devices when signed in with your free 1 GB cloud user profile.

)} {/* TAB: KEYBOARD SHORTCUTS */} {activeTab === "shortcuts" && (
Pro Navigation Speed

Use these global keyboard shortcuts anytime from anywhere inside the application to speed up your workflow.

{[ { keys: ["Ctrl", "Enter"], action: "Send Current Prompt", description: "Instantly submits your prompt to the AI model from the input box or anywhere on screen." }, { keys: ["Ctrl", "K"], action: "Focus Search Chats", description: "Opens the sidebar and focuses the search input to quickly find past conversations." }, { keys: ["Ctrl", "Shift", "N"], action: "New Chat Session", description: "Creates a brand new clean conversation session instantly." }, { keys: ["Ctrl", "/"], action: "Toggle Guide & Shortcuts", description: "Opens or closes this guide modal instantly." }, { keys: ["Esc"], action: "Close Active Modals", description: "Dismisses active overlays, modals, and slide-out drawers." } ].map((sc, idx) => (
{sc.action}
{sc.keys.map((k, kIdx) => ( {k} {kIdx < sc.keys.length - 1 && +} ))}

{sc.description}

))}
)} {/* TAB 4: FAQ & TIPS */} {activeTab === "faq" && (
{[ { q: "Why is AI response generation so fast in this app?", a: "The backend routes requests directly to optimized low-latency Gemini Flash models, avoiding slow model fallback timeouts. On the client side, responses stream token-by-token at a high-frequency 12ms refresh rate." }, { q: "How does the voice recognition engine handle non-English languages?", a: "As you speak or type, the system analyzes unicode character scripts and automatically switches the Web Speech API locale (e.g. ta-IN for Tamil, hi-IN for Hindi, es-ES for Spanish). This significantly improves dictation accuracy for multilingual users." }, { q: "How do I switch AI cognitive presets or understanding depth?", a: "Click the Quick Config button (Sliders icon) in the topbar to change between Standard, Deep Reasoning, Code Architect, or Creative Copywriter modes, or adjust your token budget from Grade 4 up to Teacher Mode." }, { q: "Can I use my own custom Gemini or OpenAI API key?", a: "Yes! Open the sidebar, scroll to the API Integration Hub, and enter your manual key. Custom keys instantly unlock high-tier models and raise rate limits up to 100 RPM." }, { q: "How do I generate downloadable Word or Excel documents?", a: "Simply ask the AI in chat (e.g. 'Generate a budget spreadsheet in Excel format' or 'Create a project plan Word document'). The assistant will produce an interactive card with instant download buttons." } ].map((item, idx) => (
Q{idx + 1} {item.q}

{item.a}

))}
)}
{/* Modal Footer */}
Aura Intelligence Engine Active
); }; export default AppGuideModal;