File size: 29,463 Bytes
7270c96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Auto-Guardian - دليل الإعداد الشامل</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
    <style>
        :root {
            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --bg-tertiary: #334155;
            --text-primary: #f1f5f9;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --border-color: #334155;
            --accent-blue: #3b82f6;
            --accent-purple: #8b5cf6;
            --accent-cyan: #06b6d4;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Noto Sans Arabic', -apple-system, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.8;
            overflow-x: hidden;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
            padding: 80px 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
            margin: 0 auto;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(59, 130, 246, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.3);
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 14px;
            color: var(--accent-blue);
            margin-bottom: 24px;
        }

        .hero-title {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 16px;
            background: linear-gradient(135deg, var(--text-primary), var(--accent-blue));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-subtitle {
            font-size: 18px;
            color: var(--text-muted);
            margin-bottom: 40px;
        }

        .hero-actions {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 28px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            font-family: inherit;
            text-decoration: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }

        .btn-secondary {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }

        .btn-secondary:hover {
            background: var(--bg-secondary);
            border-color: var(--accent-blue);
        }

        /* Progress Section */
        .progress-section {
            background: var(--bg-secondary);
            padding: 60px 40px;
        }

        .section-header {
            text-align: center;
            margin-bottom: 48px;
        }

        .section-title {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .section-subtitle {
            font-size: 16px;
            color: var(--text-muted);
        }

        .steps-container {
            max-width: 900px;
            margin: 0 auto;
        }

        .step {
            display: flex;
            gap: 24px;
            margin-bottom: 32px;
            padding: 24px;
            background: var(--bg-primary);
            border-radius: 16px;
            border: 1px solid var(--border-color);
            transition: var(--transition);
            opacity: 0.5;
        }

        .step.active {
            opacity: 1;
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .step.completed {
            opacity: 1;
            border-color: var(--success);
        }

        .step-number {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--bg-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 700;
            flex-shrink: 0;
            transition: var(--transition);
        }

        .step.active .step-number {
            background: var(--accent-blue);
            color: white;
        }

        .step.completed .step-number {
            background: var(--success);
            color: white;
        }

        .step-content {
            flex: 1;
        }

        .step-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .step-description {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 16px;
        }

        .step-code {
            background: var(--bg-secondary);
            border-radius: 8px;
            padding: 16px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            overflow-x: auto;
            border: 1px solid var(--border-color);
        }

        .step-files {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }

        .file-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: var(--bg-tertiary);
            border-radius: 6px;
            font-size: 12px;
            font-family: 'JetBrains Mono', monospace;
        }

        .step-checklist {
            list-style: none;
            margin-top: 12px;
        }

        .step-checklist li {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 0;
            font-size: 14px;
        }

        .check-icon {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        .step.completed .check-icon {
            background: var(--success);
            border-color: var(--success);
            color: white;
        }

        /* Files Structure */
        .structure-section {
            padding: 60px 40px;
        }

        .tree-container {
            max-width: 700px;
            margin: 0 auto;
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 24px;
            border: 1px solid var(--border-color);
        }

        .tree {
            font-family: 'JetBrains Mono', monospace;
            font-size: 14px;
            line-height: 2;
        }

        .tree-line {
            display: flex;
            align-items: center;
            gap: 8px;
            padding-right: 20px;
        }

        .tree-folder {
            color: var(--warning);
        }

        .tree-file {
            color: var(--accent-cyan);
        }

        .tree-badge {
            background: var(--accent-purple);
            color: white;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 10px;
            margin-right: auto;
        }

        /* Feature Cards */
        .features-section {
            background: var(--bg-secondary);
            padding: 60px 40px;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .feature-card {
            background: var(--bg-primary);
            border-radius: 16px;
            padding: 32px;
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }

        .feature-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent-blue);
        }

        .feature-icon {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            margin-bottom: 20px;
        }

        .feature-icon.security { background: rgba(239, 68, 68, 0.2); }
        .feature-icon.auto { background: rgba(59, 130, 246, 0.2); }
        .feature-icon.dashboard { background: rgba(16, 185, 129, 0.2); }
        .feature-icon.multi { background: rgba(139, 92, 246, 0.2); }

        .feature-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .feature-description {
            font-size: 14px;
            color: var(--text-muted);
        }

        /* FAQ Section */
        .faq-section {
            padding: 60px 40px;
        }

        .faq-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .faq-item {
            background: var(--bg-secondary);
            border-radius: 12px;
            margin-bottom: 16px;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .faq-question {
            padding: 20px 24px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition);
        }

        .faq-question:hover {
            background: var(--bg-tertiary);
        }

        .faq-answer {
            padding: 0 24px 20px;
            font-size: 14px;
            color: var(--text-muted);
            display: none;
        }

        .faq-item.open .faq-answer {
            display: block;
        }

        .faq-toggle {
            transition: var(--transition);
        }

        .faq-item.open .faq-toggle {
            transform: rotate(180deg);
        }

        /* Footer */
        .footer {
            background: var(--bg-secondary);
            padding: 40px;
            text-align: center;
            border-top: 1px solid var(--border-color);
        }

        .footer-text {
            font-size: 14px;
            color: var(--text-muted);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero {
                padding: 40px 20px;
            }

            .hero-title {
                font-size: 32px;
            }

            .step {
                flex-direction: column;
            }

            .hero-actions {
                flex-direction: column;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .step {
            animation: fadeIn 0.5s ease forwards;
        }

        .step:nth-child(1) { animation-delay: 0.1s; }
        .step:nth-child(2) { animation-delay: 0.2s; }
        .step:nth-child(3) { animation-delay: 0.3s; }
        .step:nth-child(4) { animation-delay: 0.4s; }
        .step:nth-child(5) { animation-delay: 0.5s; }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero">
        <div class="hero-content">
            <div class="hero-badge">
                <span>🚀</span>
                <span>دليل الإعداد الشامل</span>
            </div>
            <h1 class="hero-title">ابدأ مع Auto-Guardian</h1>
            <p class="hero-subtitle">
                نظام الفحص الأمني التلقائي للكود. اتبع الخطوات أدناه لتفعيل النظام بالكامل والحصول على لوحة تحكم تفاعلية تعرض حالة أمان مستودعك.
            </p>
            <div class="hero-actions">
                <button class="btn btn-primary" onclick="scrollToSection('steps')">
                    <span>📋</span>
                    <span>بدء الإعداد</span>
                </button>
                <a href="index.html" class="btn btn-secondary">
                    <span>🎨</span>
                    <span>معاينة لوحة التحكم</span>
                </a>
            </div>
        </div>
    </section>

    <!-- Steps Section -->
    <section class="progress-section" id="steps">
        <div class="section-header">
            <h2 class="section-title">خطوات الإعداد</h2>
            <p class="section-subtitle">اتبع هذه الخطوات بالترتيب لتفعيل النظام على مستودعك</p>
        </div>

        <div class="steps-container">
            <!-- Step 1 -->
            <div class="step active" id="step1">
                <div class="step-number">1</div>
                <div class="step-content">
                    <h3 class="step-title">إنشاء المستودع أو نسخ القالب</h3>
                    <p class="step-description">
                        أولاً، تحتاج إلى إنشاء مستودع جديد. يمكنك استخدام هذا المشروع كقالب لإنشاء مستودع جديد، أو نسخ الملفات يدوياً إلى مستودع موجود.
                    </p>
                    <div class="step-checklist">
                        <li>
                            <span class="check-icon"></span>
                            <span>اذهب إلى <strong>GitHub</strong وسجل الدخول</span>
                        </li>
                        <li>
                            <span class="check-icon"></span>
                            <span>زر <strong>Use this template</strong> لإنشاء مستودع جديد</span>
                        </li>
                        <li>
                            <span class="check-icon"></span>
                            <span>أو انسخ الملفات يدوياً إذا كان لديك مستودع موجود</span>
                        </li>
                    </div>
                </div>
            </div>

            <!-- Step 2 -->
            <div class="step" id="step2">
                <div class="step-number">2</div>
                <div class="step-content">
                    <h3 class="step-title">رفع الملفات</h3>
                    <p class="step-description">
                        بعد إنشاء المستودع، تحتاج إلى رفع جميع الملفات. الهيكل التالي يجب أن يكون موجوداً في مستودعك:
                    </p>
                    <div class="step-files">
                        <span class="file-tag">📁 .github/workflows/scan-and-deploy.yml</span>
                        <span class="file-tag">📁 scripts/aggregate_results.py</span>
                        <span class="file-tag">📁 scripts/generate_report.py</span>
                        <span class="file-tag">📁 dashboard/public/data/latest.json</span>
                        <span class="file-tag">📁 dashboard/index.html</span>
                        <span class="file-tag">📄 README.md</span>
                    </div>
                </div>
            </div>

            <!-- Step 3 -->
            <div class="step" id="step3">
                <div class="step-number">3</div>
                <div class="step-content">
                    <h3 class="step-title">تفعيل GitHub Pages</h3>
                    <p class="step-description">
                        الآن تحتاج إلى تفعيل GitHub Pages للسماح بنشر لوحة التحكم. اتبع الخطوات التالية:
                    </p>
                    <div class="step-checklist">
                        <li>
                            <span class="check-icon"></span>
                            <span>اذهب إلى <strong>Settings</strong> في مستودعك</span>
                        </li>
                        <li>
                            <span class="check-icon"></span>
                            <span>انقر على <strong>Pages</strong> في القائمة الجانبية</span>
                        </li>
                        <li>
                            <span class="check-icon"></span>
                            <span>في قسم <strong>Build and deployment</strong>:</span>
                        </li>
                        <li>
                            <span class="check-icon"></span>
                            <span><strong>Source:</strong> اختر <mark>GitHub Actions</mark></span>
                        </li>
                    </div>
                    <div class="step-code">
┌─────────────────────────────────────────────┐
│  Build and deployment                        │
│                                              │
│  Source › GitHub Actions                     │
└─────────────────────────────────────────────┘
                    </div>
                </div>
            </div>

            <!-- Step 4 -->
            <div class="step" id="step4">
                <div class="step-number">4</div>
                <div class="step-content">
                    <h3 class="step-title">تفعيل GitHub Actions</h3>
                    <p class="step-description">
                        الآن دعنا نتحقق من أن GitHub Actions يعمل. سير العمل سيبدأ تلقائياً عند دفع أي تغيير.
                    </p>
                    <div class="step-checklist">
                        <li>
                            <span class="check-icon"></span>
                            <span>اذهب إلى تبويب <strong>Actions</strong> في المستودع</span>
                        </li>
                        <li>
                            <span class="check-icon"></span>
                            <span>ابحث عن <strong>Auto-Guardian Scan & Deploy</strong></span>
                        </li>
                        <li>
                            <span class="check-icon"></span>
                            <span>انقر على <strong>Enable workflow</strong> إذا كان معطلاً</span>
                        </li>
                    </div>
                </div>
            </div>

            <!-- Step 5 -->
            <div class="step" id="step5">
                <div class="step-number">5</div>
                <div class="step-content">
                    <h3 class="step-title">اختبار النظام</h3>
                    <p class="step-description">
                        للاختبار، قم بدفع أي تغيير بسيط إلى المستودع. سير العمل سيبدأ تلقائياً وسيتم نشر لوحة التحكم بعد اكتمال الفحص.
                    </p>
                    <div class="step-checklist">
                        <li>
                            <span class="check-icon"></span>
                            <span>أنشئ ملفاً جديداً أو عدل ملفاً موجوداً</span>
                        </li>
                        <li>
                            <span class="check-icon"></span>
                            <span>ادفع التغييرات: <code>git add . && git commit -m "test" && git push</code></span>
                        </li>
                        <li>
                            <span class="check-icon"></span>
                            <span>تحقق من تبويب <strong>Actions</strong> لرؤية تقدم الفحص</span>
                        </li>
                        <li>
                            <span class="check-icon"></span>
                            <span>بعد اكتمال الفحص، اذهب إلى <strong>Settings > Pages</strong> للحصول على الرابط</span>
                        </li>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- File Structure Section -->
    <section class="structure-section">
        <div class="section-header">
            <h2 class="section-title">هيكل الملفات</h2>
            <p class="section-subtitle">تأكد من أن جميع الملفات موجودة في الأماكن الصحيحة</p>
        </div>

        <div class="tree-container">
            <pre class="tree">
<span class="tree-line"><span class="tree-folder">📁</span> auto-guardian/
  <span class="tree-line">  📁 <span class="tree-folder">.github/</span>
    <span class="tree-line">    📁 workflows/
  <span class="tree-badge">NEW</span>      📄 scan-and-deploy.yml</span>
  <span class="tree-line">  📁 <span class="tree-folder">dashboard/</span>
  <span class="tree-line">    📄 index.html</span>
  <span class="tree-line">    📁 <span class="tree-folder">public/</span>
  <span class="tree-line">      📁 <span class="tree-folder">data/</span>
  <span class="tree-line">        📄 latest.json</span>
  <span class="tree-line">  📁 <span class="tree-folder">scripts/</span>
  <span class="tree-badge">NEW</span>  📄 aggregate_results.py
  <span class="tree-line">      📄 generate_report.py</span>
  <span class="tree-line">  📄 README.md</span></pre>
        </div>
    </section>

    <!-- Features Section -->
    <section class="features-section">
        <div class="section-header">
            <h2 class="section-title">مميزات النظام</h2>
            <p class="section-subtitle">كل ما يقدمه لك نظام Auto-Guardian</p>
        </div>

        <div class="features-grid">
            <div class="feature-card">
                <div class="feature-icon security">🛡️</div>
                <h3 class="feature-title">فحص أمني شامل</h3>
                <p class="feature-description">
                    يكتشف الثغرات الأمنية والأخطاء البرمجية باستخدام أدوات متخصصة لكل لغة برمجية.
                </p>
            </div>

            <div class="feature-card">
                <div class="feature-icon auto"></div>
                <h3 class="feature-title">فحص تلقائي</h3>
                <p class="feature-description">
                    يبدأ الفحص تلقائياً عند كل دفع للكود، ولا تحتاج لأي تدخل يدوي.
                </p>
            </div>

            <div class="feature-card">
                <div class="feature-icon dashboard">📊</div>
                <h3 class="feature-title">لوحة تحكم تفاعلية</h3>
                <p class="feature-description">
                    واجهة جميلة وسهلة الاستخدام تعرض حالة الأمان بشكل واضح ومباشر.
                </p>
            </div>

            <div class="feature-card">
                <div class="feature-icon multi">🌐</div>
                <h3 class="feature-title">دعم لغات متعددة</h3>
                <p class="feature-description">
                    يدعم Python وJavaScript وTypeScript وGo وRust وغيرها من اللغات.
                </p>
            </div>
        </div>
    </section>

    <!-- FAQ Section -->
    <section class="faq-section">
        <div class="section-header">
            <h2 class="section-title">الأسئلة الشائعة</h2>
            <p class="section-subtitle">إجابات على الأسئلة المتكررة</p>
        </div>

        <div class="faq-container">
            <div class="faq-item" onclick="toggleFaq(this)">
                <div class="faq-question">
                    <span>كم يستغرق الفحص؟</span>
                    <span class="faq-toggle"></span>
                </div>
                <div class="faq-answer">
                    يعتمد وقت الفحص على حجم المشروع. للمشاريع الصغيرة (أقل من 100 ملف) يستغرق عادة من 2 إلى 5 دقائق. للمشاريع الكبيرة قد يستغرق حتى 15 دقيقة.
                </div>
            </div>

            <div class="faq-item" onclick="toggleFaq(this)">
                <div class="faq-question">
                    <span>هل يمكنني استخدام النظام في مستودع خاص؟</span>
                    <span class="faq-toggle"></span>
                </div>
                <div class="faq-answer">
                    نعم، يمكنك استخدام النظام في المستودعات الخاصة. لكن إذا كنت تريد GitHub Pages عام، ستحتاج إلى خطة GitHub مدفوعة.
                </div>
            </div>

            <div class="faq-item" onclick="toggleFaq(this)">
                <div class="faq-question">
                    <span>ماذا يعني درجة الأمان؟</span>
                    <span class="faq-toggle"></span>
                </div>
                <div class="faq-answer">
                    درجة الأمان هي رقم من 0 إلى 100. الدرجة A (90-100) تعني مستوى ممتاز، بينما F (أقل من 60) تعني وجود مشاكل حرجة تحتاج اهتماماً فورياً.
                </div>
            </div>

            <div class="faq-item" onclick="toggleFaq(this)">
                <div class="faq-question">
                    <span>هل يمكنني تخصيص أدوات الفحص؟</span>
                    <span class="faq-toggle"></span>
                </div>
                <div class="faq-answer">
                    نعم، يمكنك تعديل ملف سير العمل لإضافة أو إزالة أدوات الفحص، أو تخصيص إعدادات كل أداة من خلال ملفات الإعدادات الخاصة بها.
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="footer">
        <p class="footer-text">
            صنع بـ ❤️ بواسطة Auto-Guardian Team | 
            <a href="#" style="color: var(--accent-blue);">التوثيق</a> | 
            <a href="#" style="color: var(--accent-blue);">الإبلاغ عن مشكلة</a>
        </p>
    </footer>

    <script>
        // FAQ Toggle
        function toggleFaq(element) {
            element.classList.toggle('open');
        }

        // Scroll to section
        function scrollToSection(sectionId) {
            document.getElementById(sectionId).scrollIntoView({
                behavior: 'smooth'
            });
        }

        // Animate steps on scroll
        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.style.opacity = '1';
                }
            });
        }, { threshold: 0.1 });

        document.querySelectorAll('.step').forEach(step => {
            observer.observe(step);
        });

        // Welcome message
        console.log('%c مرحباً بك في Auto-Guardian! 🎉', 'font-size: 20px; font-weight: bold; color: #3b82f6;');
        console.log('%c نظام الفحص الأمني التلقائي للكود', 'font-size: 14px; color: #64748b;');
    </script>
</body>
</html>