Spaces:
Running

File size: 36,101 Bytes
cee4ec4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3293bb1
cee4ec4
 
 
 
3293bb1
5e523a1
 
3293bb1
cee4ec4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3293bb1
 
 
cee4ec4
 
3293bb1
cee4ec4
3293bb1
 
cee4ec4
 
3293bb1
cee4ec4
3293bb1
 
cee4ec4
 
3293bb1
cee4ec4
3293bb1
 
cee4ec4
 
3293bb1
cee4ec4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3293bb1
cee4ec4
3293bb1
 
cee4ec4
 
 
 
3293bb1
cee4ec4
3293bb1
cee4ec4
3293bb1
 
cee4ec4
 
 
 
3293bb1
cee4ec4
3293bb1
cee4ec4
3293bb1
 
cee4ec4
 
 
 
3293bb1
cee4ec4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3293bb1
cee4ec4
 
 
3293bb1
 
 
 
 
 
 
 
 
 
 
 
 
 
cee4ec4
 
3293bb1
 
cee4ec4
3293bb1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cee4ec4
 
 
 
3293bb1
cee4ec4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3293bb1
 
 
 
 
 
 
 
 
 
 
cee4ec4
 
 
 
3293bb1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cee4ec4
3293bb1
 
 
 
 
 
 
 
 
 
cee4ec4
 
3293bb1
 
 
 
 
 
 
 
 
 
 
cee4ec4
 
3293bb1
cee4ec4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3293bb1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cee4ec4
 
 
378dff4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AVA: AI Virtual Assistant</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
    <style>
        .gradient-text {
            background: linear-gradient(90deg, #6d28d9 0%, #a855f7 50%, #7c3aed 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .command-input {
            transition: all 0.3s ease;
        }
        .command-input:focus {
            box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
        }
    </style>
</head>
<body class="bg-gray-50">
    <div id="vanta-bg" class="fixed inset-0 z-0"></div>
    
    <div class="relative z-10 min-h-screen flex flex-col">
        <!-- Header -->
        <header class="bg-white/80 backdrop-blur-md shadow-sm">
            <div class="container mx-auto px-4 py-6 flex justify-between items-center">
                <div class="flex items-center space-x-2">
                    <i data-feather="zap" class="text-purple-600 w-8 h-8"></i>
                    <span class="text-2xl font-bold gradient-text">AVA</span>
                </div>
        <nav class="hidden md:flex space-x-6">
                    <a href="#home" class="text-gray-700 hover:text-purple-600 font-medium transition-colors">Home</a>
                    <a href="#features" class="text-gray-700 hover:text-purple-600 font-medium transition-colors">Features</a>
                    <a href="#integrations" class="text-gray-700 hover:text-purple-600 font-medium transition-colors">Integrations</a>
                    <a href="#documentation" class="text-gray-700 hover:text-purple-600 font-medium transition-colors">Documentation</a>
                    <a href="dashboard.html" class="text-gray-700 hover:text-purple-600 font-medium transition-colors">Dashboard</a>
                    <a href="backend.html" class="text-gray-700 hover:text-purple-600 font-medium transition-colors">API</a>
</nav>
<button class="md:hidden" onclick="toggleMobileMenu()">
                    <i data-feather="menu" class="w-6 h-6 text-gray-700"></i>
                </button>
</div>
        </header>

        <!-- Hero Section -->
        <main class="flex-grow flex items-center">
            <div class="container mx-auto px-4 py-16">
                <div class="max-w-4xl mx-auto text-center">
                    <h1 class="text-4xl md:text-6xl font-bold mb-6">
                        <span class="gradient-text">Transform Words</span>
                        <br>
                        <span class="text-gray-800">Into Automated Workflows</span>
                    </h1>
                    <p class="text-xl text-gray-600 mb-10 max-w-2xl mx-auto">
                        AVA understands your natural language commands and executes complex business tasks across Excel, PowerPoint, Email and more.
                    </p>
                    
                    <div class="relative max-w-2xl mx-auto">
                        <div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none">
                            <i data-feather="command" class="text-purple-500"></i>
                        </div>
                        <input 
                            type="text" 
                            id="command-input"
                            class="command-input w-full pl-12 pr-32 py-4 rounded-full border border-gray-200 focus:outline-none focus:border-purple-300 bg-white/90 text-gray-700 placeholder-gray-400 shadow-lg"
                            placeholder="Try: 'Extract sales data from column B to D, filter by revenue > $10K...'"
                        >
                        <div class="absolute inset-y-0 right-0 flex items-center pr-4">
                            <button onclick="executeCommand()" class="bg-purple-600 hover:bg-purple-700 text-white px-6 py-2 rounded-full font-medium transition-colors">
                                Execute
                            </button>
                        </div>
</div>
                <div class="mt-12 grid grid-cols-2 md:grid-cols-4 gap-6">
                        <div class="bg-white/80 p-6 rounded-xl shadow-sm border border-gray-100 backdrop-blur-sm hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showFeatureModal('excel')">
                        <i data-feather="file-text" class="w-8 h-8 text-purple-600 mb-3 group-hover:scale-110 transition-transform"></i>
                        <h3 class="font-semibold text-gray-800">Excel Automation</h3>
                        <p class="text-sm text-gray-600 mt-2">Transform, analyze, and visualize spreadsheet data with natural language commands</p>
                        <div class="mt-3 text-xs text-purple-500 font-medium">Click to learn more</div>
                    </div>
                    <div class="bg-white/80 p-6 rounded-xl shadow-sm border border-gray-100 backdrop-blur-sm hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showFeatureModal('dashboards')">
                        <i data-feather="bar-chart-2" class="w-8 h-8 text-purple-600 mb-3 group-hover:scale-110 transition-transform"></i>
                        <h3 class="font-semibold text-gray-800">Dashboards</h3>
                        <p class="text-sm text-gray-600 mt-2">Create interactive reports and real-time business intelligence dashboards</p>
                        <div class="mt-3 text-xs text-purple-500 font-medium">Click to learn more</div>
                    </div>
                    <div class="bg-white/80 p-6 rounded-xl shadow-sm border border-gray-100 backdrop-blur-sm hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showFeatureModal('email')">
                        <i data-feather="mail" class="w-8 h-8 text-purple-600 mb-3 group-hover:scale-110 transition-transform"></i>
                        <h3 class="font-semibold text-gray-800">Email Workflows</h3>
                        <p class="text-sm text-gray-600 mt-2">Automate email campaigns, responses, and communication workflows</p>
                        <div class="mt-3 text-xs text-purple-500 font-medium">Click to learn more</div>
                    </div>
                    <div class="bg-white/80 p-6 rounded-xl shadow-sm border border-gray-100 backdrop-blur-sm hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showFeatureModal('scheduled')">
                        <i data-feather="refresh-cw" class="w-8 h-8 text-purple-600 mb-3 group-hover:scale-110 transition-transform"></i>
                        <h3 class="font-semibold text-gray-800">Scheduled Tasks</h3>
                        <p class="text-sm text-gray-600 mt-2">Set up recurring automation tasks and monitor performance metrics</p>
                        <div class="mt-3 text-xs text-purple-500 font-medium">Click to learn more</div>
                    </div>
                </div>
</div>
            </div>
        </main>

        <!-- Demo Section -->
        <section class="py-16 bg-white/80 backdrop-blur-sm">
            <div class="container mx-auto px-4">
                <div class="text-center mb-12">
                    <h2 class="text-3xl font-bold text-gray-800 mb-4">See AVA in Action</h2>
                    <p class="text-gray-600 max-w-2xl mx-auto">Watch how natural language commands transform into automated workflows across multiple platforms</p>
</div>
                
                <div class="max-w-5xl mx-auto bg-gray-800 rounded-xl overflow-hidden shadow-xl">
                    <div class="flex items-center px-4 py-3 bg-gray-900 border-b border-gray-700">
                        <div class="flex space-x-2 mr-4">
                            <div class="w-3 h-3 rounded-full bg-red-500"></div>
                            <div class="w-3 h-3 rounded-full bg-yellow-500"></div>
                            <div class="w-3 h-3 rounded-full bg-green-500"></div>
                        </div>
                        <div class="flex-1 bg-gray-800 text-gray-400 text-sm py-1 px-3 rounded">
                            User Command: "Extract Q3 sales data, create pivot table, generate PDF report, and email to sales team with executive summary"
                        </div>
                    </div>
                    <div class="aspect-w-16 aspect-h-9 relative cursor-pointer" onclick="showDemoVideo()">
                        <img src="http://static.photos/technology/1024x576/42" alt="AVA Demo" class="w-full h-full object-cover hover:opacity-90 transition-opacity">
                        <div class="absolute inset-0 flex items-center justify-center">
                            <div class="bg-purple-600 hover:bg-purple-700 text-white p-4 rounded-full shadow-lg transition-all duration-300 transform hover:scale-110">
                            <i data-feather="play" class="w-8 h-8"></i>
                        </div>
                    </div>
</div>
                <div class="mt-12 grid grid-cols-1 md:grid-cols-3 gap-8">
                    <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showInfoModal('modular')">
                        <div class="flex items-center mb-4">
                            <div class="bg-purple-100 p-2 rounded-lg mr-4 group-hover:bg-purple-200 transition-colors">
                                <i data-feather="code" class="w-6 h-6 text-purple-600 group-hover:scale-110 transition-transform"></i>
                            </div>
                            <h3 class="text-lg font-semibold text-gray-800">Modular Workflows</h3>
                        </div>
                        <p class="text-gray-600">Pre-built components for common business operations that can be combined in endless ways. Drag-and-drop interface with 150+ pre-built modules.</p>
                        <div class="mt-3 text-xs text-purple-500 font-medium">Click for details</div>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showInfoModal('ai')">
                        <div class="flex items-center mb-4">
                            <div class="bg-purple-100 p-2 rounded-lg mr-4 group-hover:bg-purple-200 transition-colors">
                                <i data-feather="cpu" class="w-6 h-6 text-purple-600 group-hover:scale-110 transition-transform"></i>
                            </div>
                            <h3 class="text-lg font-semibold text-gray-800">AI-Powered</h3>
                        </div>
                        <p class="text-gray-600">Advanced NLP understands context and intent behind your commands. Learns from your usage patterns to improve accuracy.</p>
                        <div class="mt-3 text-xs text-purple-500 font-medium">Click for details</div>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showInfoModal('enterprise')">
                        <div class="flex items-center mb-4">
                            <div class="bg-purple-100 p-2 rounded-lg mr-4 group-hover:bg-purple-200 transition-colors">
                                <i data-feather="layers" class="w-6 h-6 text-purple-600 group-hover:scale-110 transition-transform"></i>
                            </div>
                            <h3 class="text-lg font-semibold text-gray-800">Enterprise Ready</h3>
                        </div>
                        <p class="text-gray-600">Secure, scalable architecture that integrates with your existing systems. SOC 2 compliant with 99.9% uptime SLA.</p>
                        <div class="mt-3 text-xs text-purple-500 font-medium">Click for details</div>
                    </div>
                </div>
</div>
        </section>

        <!-- CTA Section -->
        <section class="py-16 bg-gradient-to-r from-purple-600 to-indigo-600">
            <div class="container mx-auto px-4 text-center">
                <h2 class="text-3xl font-bold text-white mb-6">Ready to Automate Your Workflows?</h2>
                <p class="text-xl text-purple-100 mb-8 max-w-2xl mx-auto">
                    Join our beta program and experience the power of AI-driven automation.
                </p>
                <div class="flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-4">
                    <button onclick="requestDemo()" class="bg-white text-purple-600 hover:bg-gray-100 px-8 py-4 rounded-full font-semibold text-lg shadow-lg transition-colors transform hover:scale-105">
                        Request Demo
                    </button>
                    <button onclick="showDocumentation()" class="bg-transparent border-2 border-white text-white hover:bg-white/10 px-8 py-4 rounded-full font-semibold text-lg shadow-lg transition-colors transform hover:scale-105">
                        Documentation
                    </button>
                </div>
</div>
        </section>

        <!-- Footer -->
        <footer class="bg-gray-900 text-gray-400 py-12">
            <div class="container mx-auto px-4">
                <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                    <div>
                        <div class="flex items-center space-x-2 mb-4">
                            <i data-feather="zap" class="text-purple-400 w-6 h-6"></i>
                            <span class="text-xl font-bold text-white">AVA</span>
                        </div>
                        <p class="mb-4">The AI Virtual Assistant that transforms your words into automated workflows.</p>
                        <div class="flex space-x-4">
                            <a href="#" class="text-gray-400 hover:text-white transition-colors">
                                <i data-feather="twitter"></i>
                            </a>
                            <a href="#" class="text-gray-400 hover:text-white transition-colors">
                                <i data-feather="github"></i>
                            </a>
                            <a href="#" class="text-gray-400 hover:text-white transition-colors">
                                <i data-feather="linkedin"></i>
                            </a>
                        </div>
                    </div>
                    <div>
                        <h4 class="text-white font-semibold mb-4">Product</h4>
                        <ul class="space-y-2">
                            <li><a href="#" class="hover:text-white transition-colors">Features</a></li>
                            <li><a href="#" class="hover:text-white transition-colors">Integrations</a></li>
                            <li><a href="#" class="hover:text-white transition-colors">Pricing</a></li>
                            <li><a href="#" class="hover:text-white transition-colors">Roadmap</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="text-white font-semibold mb-4">Resources</h4>
                        <ul class="space-y-2">
                            <li><a href="#" class="hover:text-white transition-colors">Documentation</a></li>
                            <li><a href="#" class="hover:text-white transition-colors">Tutorials</a></li>
                            <li><a href="#" class="hover:text-white transition-colors">API Reference</a></li>
                            <li><a href="#" class="hover:text-white transition-colors">Community</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="text-white font-semibold mb-4">Company</h4>
                        <ul class="space-y-2">
                            <li><a href="#" class="hover:text-white transition-colors">About</a></li>
                            <li><a href="#" class="hover:text-white transition-colors">Blog</a></li>
                            <li><a href="#" class="hover:text-white transition-colors">Careers</a></li>
                            <li><a href="#" class="hover:text-white transition-colors">Contact</a></li>
                        </ul>
                    </div>
                </div>
                <div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
                    <p>© 2023 AVA AI. All rights reserved.</p>
                    <div class="flex space-x-6 mt-4 md:mt-0">
                        <a href="#" class="hover:text-white transition-colors">Privacy</a>
                        <a href="#" class="hover:text-white transition-colors">Terms</a>
                        <a href="#" class="hover:text-white transition-colors">Cookies</a>
                    </div>
                </div>
            </div>
        </footer>
    </div>
    <!-- Feature Modal -->
    <div id="featureModal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center hidden">
        <div class="bg-white rounded-xl max-w-2xl w-full mx-4 max-h-[90vh] overflow-y-auto">
            <div class="p-6 border-b border-gray-200">
                <div class="flex justify-between items-center">
                    <h3 class="text-xl font-bold text-gray-800" id="modalTitle">Feature Details</h3>
                    <button onclick="closeModal()" class="text-gray-500 hover:text-gray-700">
            <i data-feather="x" class="w-6 h-6"></i>
        </button>
                </div>
            </div>
            <div class="p-6" id="modalContent">
                    <!-- Modal content will be dynamically inserted here -->
                </div>
        </div>
    </div>

    <script>
        // Initialize Vanta.js background
        VANTA.NET({
            el: "#vanta-bg",
            mouseControls: true,
            touchControls: true,
            gyroControls: false,
            minHeight: 200.00,
            minWidth: 200.00,
            scale: 1.00,
            scaleMobile: 1.00,
            color: 0x7c4dff,
            backgroundColor: 0xf8fafc,
            points: 12.00,
            maxDistance: 24.00,
            spacing: 19.00
        });

        // Function to toggle mobile menu
        function toggleMobileMenu() {
            const nav = document.querySelector('nav');
            nav.classList.toggle('hidden');
            nav.classList.toggle('flex');
            nav.classList.toggle('absolute');
            nav.classList.toggle('top-full');
            nav.classList.toggle('left-0');
            nav.classList.toggle('right-0');
            nav.classList.toggle('bg-white');
            nav.classList.toggle('p-4');
            nav.classList.toggle('shadow-lg');
        }
        // Function to execute command
        function executeCommand() {
            const commandInput = document.getElementById('command-input');
            const command = commandInput.value.trim();
            
            if (command) {
                // Show loading state
                const executeBtn = document.querySelector('button[onclick="executeCommand()"]');
                const originalText = executeBtn.innerHTML;
                executeBtn.innerHTML = '<i data-feather="loader" class="w-5 h-5 animate-spin"></i>';
                feather.replace();
                
                // Process different command types
                let response = '';
                if (command.toLowerCase().includes('excel') || command.toLowerCase().includes('spreadsheet')) {
                    response = `✓ Excel automation initiated: ${command}\n• Data extraction complete\n• Formulas applied successfully\n• Charts generated\n• File saved to cloud storage';
                } else if (command.toLowerCase().includes('dashboard') || command.toLowerCase().includes('report')) {
                    response = `✓ Dashboard creation started: ${command}\n• Data sources connected\n• Visualizations configured\n• Real-time updates enabled\n• Access permissions set`;
                } else if (command.toLowerCase().includes('email') || command.toLowerCase().includes('mail')) {
                    response = `✓ Email workflow activated: ${command}\n• Recipients processed\n• Templates applied\n• Attachments included\n• Delivery scheduled`;
                } else if (command.toLowerCase().includes('schedule') || command.toLowerCase().includes('recurring')) {
                    response = `✓ Scheduled task configured: ${command}\n• Frequency set to daily\n• Notifications enabled\n• Performance tracking active\n• Error handling configured`;
                } else {
                    response = `✓ Command processed: ${command}\n• Natural language parsed\n• Workflow steps identified\n• Resources allocated\n• Execution initiated`;
                }
                
                // Simulate processing
                setTimeout(() => {
                    showNotification(`Command executed successfully!`, 'success');
                    executeBtn.innerHTML = originalText;
                    feather.replace();
                    
                    // Show detailed results in modal
                    const modal = document.getElementById('featureModal');
                    const title = document.getElementById('modalTitle');
                    const content = document.getElementById('modalContent');
                    
                    title.textContent = 'Command Execution Results';
                    content.innerHTML = `
                        <div class="space-y-4">
                            <div class="bg-green-50 border border-green-200 rounded-lg p-4">
                                <h4 class="font-semibold text-green-800 mb-2">Execution Complete</h4>
                        <pre class="text-sm text-green-700 bg-white p-3 rounded border">${response}</pre>
                        <div class="flex space-x-3 mt-4">
                            <button onclick="saveResults()" class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-lg font-medium transition-colors">
                                    Save Results
                                </button>
                                <button onclick="shareWorkflow()" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg font-medium transition-colors">
                                    Share Workflow
                                </button>
                            </div>
                        </div>
                    `;
                    modal.classList.remove('hidden');
                    feather.replace();
                    
                }, 1500);
            } else {
                showNotification('Please enter a command first', 'error');
            }
        }
// Function to show feature modal
        function showFeatureModal(feature) {
            const modal = document.getElementById('featureModal');
            const title = document.getElementById('modalTitle');
            const content = document.getElementById('modalContent');
            
            const featureData = {
                excel: {
                    title: 'Excel Automation',
                    content: `
                        <div class="space-y-4">
                            <p class="text-gray-600">Transform your Excel workflows with natural language commands:</p>
                            <ul class="list-disc list-inside text-gray-600 space-y-2">
                                <li>Data extraction and transformation</li>
                                <li>Advanced formula generation</li>
                                <li>Pivot table creation and analysis</li>
                                <li>Chart and visualization automation</li>
                                <li>Multi-sheet operations</li>
                            </ul>
                            <div class="bg-purple-50 p-4 rounded-lg">
                                <h4 class="font-semibold text-purple-800 mb-2">Example Commands:</h4>
                                <p class="text-sm text-purple-700">"Extract sales data from columns A to F, filter by region 'North America', calculate total revenue, and create a pie chart"</p>
                            </div>
                        </div>
                    `
                },
                dashboards: {
                    title: 'Interactive Dashboards',
                    content: `
                        <div class="space-y-4">
                            <p class="text-gray-600">Create powerful business intelligence dashboards:</p>
                            <ul class="list-disc list-inside text-gray-600 space-y-2">
                                <li>Real-time data visualization</li>
                                <li>Custom KPIs and metrics</li>
                                <li>Interactive filtering and drill-down</li>
                                <li>Automated data refresh</li>
                                <li>Multi-source data integration</li>
                            </ul>
                        </div>
                    `
                },
                email: {
                    title: 'Email Workflow Automation',
                    content: `
                        <div class="space-y-4">
                            <p class="text-gray-600">Streamline your email communication and campaigns:</p>
                            <ul class="list-disc list-inside text-gray-600 space-y-2">
                                <li>Automated email responses</li>
                                <li>Personalized bulk emailing</li>
                                <li>Attachment processing</li>
                                <li>Email analytics and tracking</li>
                            </ul>
                        </div>
                    `
                },
                scheduled: {
                    title: 'Scheduled Tasks',
                    content: `
                        <div class="space-y-4">
                            <p class="text-gray-600">Set up recurring automation tasks:</p>
                            <ul class="list-disc list-inside text-gray-600 space-y-2">
                                <li>Recurring report generation</li>
                                <li>Data backup and synchronization</li>
                                <li>Performance monitoring</li>
                                <li>Alert and notification systems</li>
                            </ul>
                        </div>
                    `
                }
            };
            
            if (featureData[feature]) {
                title.textContent = featureData[feature].title;
                content.innerHTML = featureData[feature].content;
                modal.classList.remove('hidden');
                feather.replace();
            }
        }

        // Function to show info modal
        function showInfoModal(type) {
            const modal = document.getElementById('featureModal');
            const title = document.getElementById('modalTitle');
            const content = document.getElementById('modalContent');
            
            const infoData = {
                modular: {
                    title: 'Modular Workflow System',
                    content: `
                        <div class="space-y-4">
                            <p class="text-gray-600">Our modular approach allows you to build complex workflows from simple building blocks:</p>
                            <div class="grid grid-cols-2 gap-4">
                                <div class="bg-purple-50 p-3 rounded-lg">
                                    <h5 class="font-semibold text-purple-800">150+ Pre-built Modules</h5>
                                    <p class="text-sm text-purple-700">Data processing, API calls, file operations, and more</p>
                                </div>
                                <div class="bg-purple-50 p-3 rounded-lg">
                                    <h5 class="font-semibold text-purple-800">Drag & Drop Interface</h5>
                                    <p class="text-sm text-purple-700">Intuitive visual workflow builder</p>
                                </div>
                            </div>
                        </div>
                    `
                },
                ai: {
                    title: 'AI-Powered Intelligence',
                    content: `
                        <div class="space-y-4">
                            <p class="text-gray-600">Advanced machine learning capabilities:</p>
                            <ul class="list-disc list-inside text-gray-600">
                                <li>Natural Language Processing (NLP)</li>
                                <li>Contextual understanding</li>
                                <li>Predictive workflow suggestions</li>
                                <li>Continuous learning from usage patterns</li>
                            </ul>
                        </div>
                    `
                },
                enterprise: {
                    title: 'Enterprise-Grade Security',
                    content: `
                        <div class="space-y-4">
                            <p class="text-gray-600">Built for security and compliance:</p>
                            <div class="bg-green-50 p-4 rounded-lg">
                                <h4 class="font-semibold text-green-800 mb-2">Certifications & Compliance</h4>
                                <ul class="list-disc list-inside text-green-700 space-y-2">
                                    <li>SOC 2 Type II Certified</li>
                                    <li>GDPR Compliant</li>
                                    <li>HIPAA Ready</li>
                                    <li>99.9% Uptime SLA</li>
                                </ul>
                            </div>
                        </div>
                    `
                }
            };
            
            if (infoData[type]) {
                title.textContent = infoData[type].title;
                content.innerHTML = infoData[type].content;
                modal.classList.remove('hidden');
                feather.replace();
            }
        }

        // Function to close modal
        function closeModal() {
            const modal = document.getElementById('featureModal');
            modal.classList.add('hidden');
        }

        // Function to show demo video
        function showDemoVideo() {
            showNotification('Demo video player would open here with full AVA workflow demonstration', 'info');
        }

        // Function to request demo
        function requestDemo() {
            showNotification('Demo request form would appear here. Our team will contact you within 24 hours!', 'success');
        }

        // Function to show documentation
        function showDocumentation() {
            showNotification('Opening AVA Documentation Center with tutorials, API references, and best practices', 'info');
        }
        // Function to save results
        function saveResults() {
            showNotification('Results saved to your workspace! You can access them from the Dashboard.', 'success');
            closeModal();
        }

        // Function to share workflow
        function shareWorkflow() {
            showNotification('Workflow shared successfully! Team members can now access and collaborate.', 'info');
            closeModal();
        }

        // Function to show notification
        function showNotification(message, type) {
            const notification = document.createElement('div');
            const bgColor = type === 'success' ? 'bg-green-500' : 
                          type === 'error' ? 'bg-red-500' :
                          'bg-blue-500';
            
            notification.className = `fixed top-4 right-4 p-4 rounded-lg shadow-lg z-50 transform transition-all duration-300 ${bgColor} text-white flex items-center space-x-3`;
            
            const icon = type === 'success' ? 'check-circle' : 
                       type === 'error' ? 'alert-circle' : 
                       'info';
            
            notification.innerHTML = `
                <i data-feather="${icon}" class="w-5 h-5"></i>
                <span>${message}</span>
            `;
            
            document.body.appendChild(notification);
            feather.replace();
            
            // Animate in
            anime({
                targets: notification,
                translateX: [100, 0],
                opacity: [0, 1],
                duration: 500,
                easing: 'easeOutExpo'
            });
            
            setTimeout(() => {
                // Animate out
                anime({
                    targets: notification,
                    translateX: 100,
                    opacity: 0,
                    duration: 500,
                    easing: 'easeInExpo',
                    complete: function() {
                        notification.remove();
                    }
                });
            }, 4000);
        }
// Animate command input on load
        document.addEventListener('DOMContentLoaded', function() {
            anime({
                targets: '#command-input',
                translateY: [20, 0],
                opacity: [0, 1],
                duration: 800,
                easing: 'easeOutExpo'
            });
            
            anime({
                targets: '.gradient-text',
                backgroundPosition: ['0% 50%', '100% 50%'],
                duration: 8000,
                easing: 'linear',
                loop: true
            });
            // Add keyboard shortcut for command input
            document.getElementById('command-input').addEventListener('keypress', function(e) {
                if (e.key === 'Enter') {
                    executeCommand();
                }
            });

            // Add click handlers for all interactive elements
            document.querySelectorAll('button').forEach(button => {
                button.addEventListener('click', function() {
                    anime({
                        targets: button,
                        scale: [1, 0.95, 1],
                        duration: 200,
                        easing: 'easeInOutSine'
                    });
                });
            });

            // Add hover effects for all clickable cards
            document.querySelectorAll('[onclick]').forEach(element => {
                element.addEventListener('mouseenter', function() {
                    anime({
                        targets: element,
                        translateY: -5,
                        duration: 200,
                        easing: 'easeOutQuad'
                    });
                });
                element.addEventListener('mouseleave', function() {
                    anime({
                        targets: element,
                        translateY: 0,
                        duration: 200,
                        easing: 'easeOutQuad'
                    });
                });
            });
        });
// Initialize feather icons
        feather.replace();
    </script>
</body>
</html>