File size: 105,531 Bytes
1758edf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e96ab0b
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
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
<!DOCTYPE html>
<html lang="de" class="scroll-smooth">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>REM Showcase | IBM Watson X</title>

    <!-- Tailwind CSS CDN -->
    <script src="https://cdn.tailwindcss.com"></script>

    <!-- Tailwind Configuration — IBM Carbon Emulation -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        ibm: {
                            blue: '#0f62fe',
                            'blue-hover': '#0353e9',
                            'blue-light': '#4589ff',
                            dark: '#161616',
                            surface: '#262626',
                            'surface-light': '#393939',
                            text: '#f4f4f4',
                            'text-secondary': '#c6c6c6',
                            'text-muted': '#525252',
                            success: '#42be65',
                            warning: '#f1c21b',
                            error: '#da1e28',
                        }
                    },
                    fontFamily: {
                        ibm: ['"IBM Plex Sans"', 'system-ui', 'sans-serif'],
                        'ibm-mono': ['"IBM Plex Mono"', 'monospace'],
                    },
                    borderRadius: {
                        DEFAULT: '0',
                    }
                }
            }
        }
    </script>

    <!-- Lucide Icons CDN -->
    <script src="https://unpkg.com/lucide@latest"></script>

    <!-- IBM Plex Fonts -->
    <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=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">

    <style>
        /* ── Beamer & Base Optimizations ── */
        html { font-size: 16px; }
        body {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ── Fade-in-up Animation ── */
        .fade-in-up {
            opacity: 0;
            transform: translateY(24px);
        }
        .fade-in-up.visible {
            animation: fadeInUp 0.7s ease-out forwards;
        }
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ── Delay Variants ── */
        .delay-100 { animation-delay: 100ms; }
        .delay-200 { animation-delay: 200ms; }
        .delay-300 { animation-delay: 300ms; }
        .delay-400 { animation-delay: 400ms; }
        .delay-500 { animation-delay: 500ms; }

        /* ── Typing Indicator (for Phase 2) ── */
        .typing-indicator span {
            animation: blink 1.4s infinite both;
            height: 6px;
            width: 6px;
            background: #c6c6c6;
            border-radius: 50%;
            display: inline-block;
            margin: 0 1px;
        }
        .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
        .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes blink {
            0% { opacity: 0.2; transform: scale(0.8); }
            20% { opacity: 1; transform: scale(1.2); }
            100% { opacity: 0.2; transform: scale(0.8); }
        }

        /* ── Chat message animation (for Phase 2) ── */
        .chat-message {
            animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            opacity: 0;
            transform: scale(0.95);
        }
        @keyframes popIn {
            to { opacity: 1; transform: scale(1); }
        }

        /* ── Scrollbar (for Phase 2 chat) ── */
        .chat-scroll::-webkit-scrollbar { width: 6px; }
        .chat-scroll::-webkit-scrollbar-track { background: transparent; }
        .chat-scroll::-webkit-scrollbar-thumb { background: #525252; }
        .chat-scroll::-webkit-scrollbar-thumb:hover { background: #c6c6c6; }

        /* ── Agent Graph — Fancy Effects ── */
        @keyframes orbit-spin { to { transform: rotate(360deg); } }
        @keyframes radar-sweep { to { transform: rotate(360deg); } }
        @keyframes dash-flow { to { stroke-dashoffset: -20; } }
        @keyframes scan-sweep {
            0% { transform: translateY(-260px); opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { transform: translateY(260px); opacity: 0; }
        }
        @keyframes halo-breathe {
            0%, 100% { opacity: 0.04; transform: scale(1); }
            50% { opacity: 0.14; transform: scale(1.15); }
        }
        @keyframes orch-heartbeat {
            0%, 70%, 100% { transform: scale(1); }
            80% { transform: scale(1.06); }
            90% { transform: scale(0.97); }
        }
        @keyframes ambient-drift {
            0%   { opacity: 0; transform: translate(0, 0); }
            15%  { opacity: 0.5; }
            85%  { opacity: 0.3; }
            100% { opacity: 0; transform: translate(var(--dx, 15px), var(--dy, -40px)); }
        }
        @keyframes ring-tick-pulse {
            0%, 100% { opacity: 0.2; r: 2; }
            50% { opacity: 0.6; r: 3; }
        }
        .orbit-ring-1 { transform-origin: 200px 230px; animation: orbit-spin 80s linear infinite; }
        .orbit-ring-2 { transform-origin: 200px 230px; animation: orbit-spin 55s linear infinite reverse; }
        .orbit-ring-3 { transform-origin: 200px 230px; animation: orbit-spin 110s linear infinite; }
        .radar-sweep-line { transform-origin: 200px 230px; animation: radar-sweep 4s linear infinite; }
        .graph-conn-dash { animation: dash-flow 1.2s linear infinite; }
        .scan-line-fx { animation: scan-sweep 5s ease-in-out infinite; }
        .node-halo { transform-origin: center; animation: halo-breathe 3s ease-in-out infinite; }
        .orch-core-beat { transform-origin: 200px 230px; animation: orch-heartbeat 2.5s ease-in-out infinite; }
        .ambient-dot {
            animation: ambient-drift var(--dur, 6s) ease-in-out infinite;
            animation-delay: var(--delay, 0s);
        }
        .ring-tick { animation: ring-tick-pulse 3s ease-in-out infinite; }

        #mas-graph {
            transition: opacity 1.5s ease;
        }
        #mas-graph path, #mas-graph circle, #mas-graph rect, #mas-graph line {
            transition: fill 0.5s ease, stroke 0.5s ease, stroke-width 0.35s ease, opacity 0.5s ease, filter 0.5s ease;
        }
    </style>
</head>
<body class="bg-ibm-dark text-ibm-text font-ibm">

    <!-- ════════════════════════════════════════════ -->
    <!-- NAVIGATION                                   -->
    <!-- ════════════════════════════════════════════ -->
    <nav class="fixed w-full z-50 bg-ibm-dark/95 backdrop-blur-md border-b border-ibm-surface-light">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between h-16 items-center">
                <!-- Brand -->
                <div class="flex items-center gap-3">
                    <span class="text-lg font-bold text-ibm-text tracking-tight">IBM Watson X</span>
                    <span class="hidden sm:inline text-ibm-surface-light">|</span>
                    <span class="hidden sm:inline text-sm font-medium text-ibm-text-secondary font-ibm-mono">Multi-Agent REM</span>
                </div>

                <!-- Nav Links -->
                <div class="hidden md:flex items-center space-x-8">
                    <a href="#challenge-loesung" class="text-ibm-text-secondary hover:text-ibm-text font-medium text-sm transition-colors duration-200">
                        Challenge & Lösung
                    </a>
                    <a href="#demo" class="text-ibm-text-secondary hover:text-ibm-text font-medium text-sm transition-colors duration-200">
                        Live-Demo
                    </a>
                    <a href="#architektur" class="text-ibm-text-secondary hover:text-ibm-text font-medium text-sm transition-colors duration-200">
                        Architektur
                    </a>
                </div>

                <!-- CTA -->
                <div>
                    <a href="#demo" class="bg-ibm-blue hover:bg-ibm-blue-hover text-white px-5 py-2 text-sm font-semibold transition-colors duration-200 inline-block">
                        Zum Showcase
                    </a>
                </div>
            </div>
        </div>
    </nav>

    <!-- ════════════════════════════════════════════ -->
    <!-- HERO                                         -->
    <!-- ════════════════════════════════════════════ -->
    <section id="hero" class="relative pt-32 pb-20 lg:pt-44 lg:pb-28 overflow-hidden bg-ibm-dark">
        <!-- Abstract Grid Background -->
        <div class="absolute inset-0 z-0 opacity-20">
            <div class="absolute inset-0" style="background-image:
                linear-gradient(rgba(15,98,254,0.15) 1px, transparent 1px),
                linear-gradient(90deg, rgba(15,98,254,0.15) 1px, transparent 1px);
                background-size: 60px 60px;">
            </div>
            <!-- Gradient Overlay -->
            <div class="absolute inset-0 bg-gradient-to-b from-ibm-dark via-ibm-dark/70 to-ibm-surface"></div>
        </div>

        <!-- Content -->
        <div class="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
            <div class="inline-flex items-center gap-2 px-4 py-2 bg-white/5 border border-white/10 text-sm font-medium text-ibm-text-secondary mb-8 fade-in-up">
                <i data-lucide="cpu" class="w-4 h-4 text-ibm-blue"></i>
                IBM Watson X &nbsp;|&nbsp; Multi-Agent System
            </div>

            <h1 class="text-4xl md:text-6xl lg:text-7xl font-bold tracking-tight mb-6 fade-in-up delay-100">
                Requirements Engineering<br class="hidden md:block" />
                mit <span class="text-transparent bg-clip-text bg-gradient-to-r from-ibm-blue to-ibm-blue-light">Agentic AI</span>.
            </h1>

            <p class="text-lg md:text-xl lg:text-2xl text-ibm-text-secondary max-w-3xl mx-auto mb-10 fade-in-up delay-200">
                Von der Meeting-Aufnahme zum priorisierten Epic-Backlog —<br class="hidden sm:block" />
                in Minuten, nicht Tagen.
            </p>

            <div class="flex flex-col sm:flex-row justify-center gap-4 fade-in-up delay-300">
                <a href="#demo" class="bg-ibm-blue hover:bg-ibm-blue-hover text-white px-8 py-4 font-bold text-lg transition-colors duration-200 inline-flex items-center justify-center gap-2">
                    Demo starten
                    <i data-lucide="arrow-down" class="w-5 h-5"></i>
                </a>
            </div>
        </div>
    </section>

    <!-- ════════════════════════════════════════════ -->
    <!-- CHALLENGE & LÖSUNG                           -->
    <!-- ════════════════════════════════════════════ -->
    <section id="challenge-loesung" class="py-24 bg-ibm-dark">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold text-ibm-text mb-4 fade-in-up">
                    Statische Prozesse treffen auf komplexe Anforderungen
                </h2>
                <div class="w-24 h-1 bg-ibm-blue mx-auto mt-6 fade-in-up delay-100"></div>
            </div>

            <div class="grid grid-cols-1 md:grid-cols-2 gap-12 lg:gap-24">
                <!-- ── Challenge (Links) ── -->
                <div class="space-y-6">
                    <div class="flex items-center gap-3 mb-8 fade-in-up">
                        <div class="w-10 h-10 flex items-center justify-center bg-ibm-error/10">
                            <i data-lucide="alert-triangle" class="w-5 h-5 text-ibm-error"></i>
                        </div>
                        <h3 class="text-2xl font-bold text-ibm-text">Die Challenge</h3>
                    </div>

                    <!-- Card 1 -->
                    <div class="bg-ibm-surface p-6 border border-ibm-surface-light fade-in-up delay-100">
                        <div class="flex gap-4">
                            <i data-lucide="file-text" class="w-6 h-6 text-ibm-error mt-1 shrink-0"></i>
                            <div>
                                <h4 class="font-bold text-ibm-text mb-2">Unstrukturierte Meetings</h4>
                                <p class="text-ibm-text-secondary text-sm leading-relaxed">
                                    Anforderungen gehen im Gespräch verloren. Meeting-Notizen sind fragmentiert und unvollständig — wertvolles Wissen versickert.
                                </p>
                            </div>
                        </div>
                    </div>

                    <!-- Card 2 -->
                    <div class="bg-ibm-surface p-6 border border-ibm-surface-light fade-in-up delay-200">
                        <div class="flex gap-4">
                            <i data-lucide="clock" class="w-6 h-6 text-ibm-warning mt-1 shrink-0"></i>
                            <div>
                                <h4 class="font-bold text-ibm-text mb-2">Manueller Breakdown</h4>
                                <p class="text-ibm-text-secondary text-sm leading-relaxed">
                                    Vom Meeting zu Epics und Tasks vergehen Tage. Der Requirements Engineer wird zum Flaschenhals im Projekt.
                                </p>
                            </div>
                        </div>
                    </div>

                    <!-- Card 3 -->
                    <div class="bg-ibm-surface p-6 border border-ibm-surface-light fade-in-up delay-300">
                        <div class="flex gap-4">
                            <i data-lucide="hourglass" class="w-6 h-6 text-ibm-warning mt-1 shrink-0"></i>
                            <div>
                                <h4 class="font-bold text-ibm-text mb-2">Reaktive PoCs</h4>
                                <p class="text-ibm-text-secondary text-sm leading-relaxed">
                                    Bis ein lauffähiger Proof-of-Concept steht, vergehen Wochen. In der Zwischenzeit ändern sich die Anforderungen bereits.
                                </p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- ── Lösung (Rechts) ── -->
                <div class="space-y-6">
                    <div class="flex items-center gap-3 mb-8 fade-in-up">
                        <div class="w-10 h-10 flex items-center justify-center bg-ibm-blue/10">
                            <i data-lucide="check-circle" class="w-5 h-5 text-ibm-blue"></i>
                        </div>
                        <h3 class="text-2xl font-bold text-ibm-text">Die Lösung</h3>
                    </div>

                    <!-- Card 1 -->
                    <div class="bg-[#1a2b4a] p-6 border border-ibm-blue/20 fade-in-up delay-100">
                        <div class="flex gap-4">
                            <i data-lucide="check-circle" class="w-6 h-6 text-ibm-blue mt-1 shrink-0"></i>
                            <div>
                                <h4 class="font-bold text-ibm-text mb-2">100% Vollständigkeit</h4>
                                <p class="text-ibm-text-secondary text-sm leading-relaxed">
                                    Keine Anforderung geht verloren. Das MAS verarbeitet jede Zeile des Transkripts und extrahiert alle relevanten Informationen.
                                </p>
                            </div>
                        </div>
                    </div>

                    <!-- Card 2 -->
                    <div class="bg-[#1a2b4a] p-6 border border-ibm-blue/20 fade-in-up delay-200">
                        <div class="flex gap-4">
                            <i data-lucide="zap" class="w-6 h-6 text-ibm-blue mt-1 shrink-0"></i>
                            <div>
                                <h4 class="font-bold text-ibm-text mb-2">Time-to-Value in Minuten</h4>
                                <p class="text-ibm-text-secondary text-sm leading-relaxed">
                                    Von der Meeting-Aufnahme zum priorisierten Epic-Backlog in Minuten statt Tagen. Parallelisierte Agenten-Arbeit macht's möglich.
                                </p>
                            </div>
                        </div>
                    </div>

                    <!-- Card 3 -->
                    <div class="bg-[#1a2b4a] p-6 border border-ibm-blue/20 fade-in-up delay-300">
                        <div class="flex gap-4">
                            <i data-lucide="rocket" class="w-6 h-6 text-ibm-blue mt-1 shrink-0"></i>
                            <div>
                                <h4 class="font-bold text-ibm-text mb-2">Sofort lauffähige PoCs</h4>
                                <p class="text-ibm-text-secondary text-sm leading-relaxed">
                                    Direkt nach dem Meeting liegt ein strukturierter, priorisierter Epic- und Task-Backlog vor — ready to build.
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- ════════════════════════════════════════════ -->
    <!-- ════════════════════════════════════════════ -->
    <!-- INTERACTIVE DEMO                             -->
    <!-- ════════════════════════════════════════════ -->
    <section id="demo" class="py-24 bg-ibm-surface relative overflow-hidden">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="text-center mb-6">
                <span class="text-ibm-blue font-semibold tracking-wider uppercase text-xs font-ibm-mono fade-in-up">Interaktive Demo</span>
                <h2 class="text-3xl md:text-4xl font-bold mt-2 mb-4 text-ibm-text fade-in-up delay-100">Agenten-Pipeline in Aktion</h2>
                <p class="text-lg text-ibm-text-secondary max-w-2xl mx-auto fade-in-up delay-200">
                    Ein Meeting-Mitschnitt durchläuft das Multi-Agent System — orchestriert auf IBM Watson X.
                </p>
            </div>

            <!-- ═══ AGENT TOPOLOGY GRAPH (centered, standalone) ═══ -->
            <div class="max-w-3xl mx-auto mb-8 relative fade-in-up delay-200" id="graph-standalone-container">
                <div class="relative flex justify-center items-center overflow-hidden" style="height: 320px;">
                    <!-- Layered background effects -->
                    <div class="absolute inset-0 opacity-[0.03]" style="background-image: radial-gradient(circle, #0f62fe 1px, transparent 1px); background-size: 24px 24px;"></div>
                    <div class="absolute inset-0" style="background: radial-gradient(ellipse at 50% 50%, rgba(15,98,254,0.06) 0%, transparent 60%);"></div>
                    <svg viewBox="0 0 400 500" class="h-full w-auto opacity-60" id="mas-graph" style="filter: saturate(1.2);">
                    <defs>
                        <!-- ═══ FILTERS ═══ -->
                        <filter id="glow-blue" x="-80%" y="-80%" width="260%" height="260%">
                            <feGaussianBlur stdDeviation="6" result="blur"/>
                            <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
                        </filter>
                        <filter id="glow-green" x="-80%" y="-80%" width="260%" height="260%">
                            <feGaussianBlur stdDeviation="6" result="blur"/>
                            <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
                        </filter>
                        <filter id="glow-yellow" x="-80%" y="-80%" width="260%" height="260%">
                            <feGaussianBlur stdDeviation="5" result="blur"/>
                            <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
                        </filter>
                        <filter id="glow-soft" x="-100%" y="-100%" width="300%" height="300%">
                            <feGaussianBlur stdDeviation="10" result="blur"/>
                            <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
                        </filter>

                        <!-- ═══ GRADIENTS ═══ -->
                        <radialGradient id="grad-orch" cx="40%" cy="35%">
                            <stop offset="0%" stop-color="#4589ff"/>
                            <stop offset="100%" stop-color="#0f62fe"/>
                        </radialGradient>
                        <radialGradient id="grad-node" cx="40%" cy="35%">
                            <stop offset="0%" stop-color="#525252"/>
                            <stop offset="100%" stop-color="#262626"/>
                        </radialGradient>
                        <radialGradient id="grad-active" cx="40%" cy="35%">
                            <stop offset="0%" stop-color="#78a9ff"/>
                            <stop offset="100%" stop-color="#0f62fe"/>
                        </radialGradient>
                        <radialGradient id="grad-done" cx="40%" cy="35%">
                            <stop offset="0%" stop-color="#6fdc8c"/>
                            <stop offset="100%" stop-color="#42be65"/>
                        </radialGradient>
                        <linearGradient id="sweep-grad" x1="0" y1="1" x2="0" y2="0">
                            <stop offset="0%" stop-color="#0f62fe" stop-opacity="0.7"/>
                            <stop offset="100%" stop-color="#0f62fe" stop-opacity="0"/>
                        </linearGradient>
                        <linearGradient id="scan-grad" x1="0" y1="0" x2="1" y2="0">
                            <stop offset="0%" stop-color="#0f62fe" stop-opacity="0"/>
                            <stop offset="30%" stop-color="#0f62fe" stop-opacity="0.3"/>
                            <stop offset="50%" stop-color="#0f62fe" stop-opacity="0.5"/>
                            <stop offset="70%" stop-color="#0f62fe" stop-opacity="0.3"/>
                            <stop offset="100%" stop-color="#0f62fe" stop-opacity="0"/>
                        </linearGradient>

                        <!-- ═══ MOTION PATHS ═══ -->
                        <path id="mpath-meeting" d="M 200,58 L 200,208" fill="none"/>
                        <path id="mpath-trans" d="M 218,218 C 258,198 296,158 324,128" fill="none"/>
                        <path id="mpath-ctx" d="M 222,238 C 268,248 310,262 336,270" fill="none"/>
                        <path id="mpath-req" d="M 210,250 C 240,305 268,358 280,378" fill="none"/>
                        <path id="mpath-epic" d="M 190,250 C 160,305 132,358 120,378" fill="none"/>
                    </defs>

                    <!-- ═══ SCAN LINE ═══ -->
                    <rect x="0" y="228" width="400" height="4" fill="url(#scan-grad)" class="scan-line-fx" opacity="0.15"/>

                    <!-- ═══ AMBIENT PARTICLES ═══ -->
                    <circle cx="55" cy="90" r="1" fill="#0f62fe" class="ambient-dot" style="--dx:12px;--dy:-35px;--dur:7s;--delay:0s"/>
                    <circle cx="340" cy="100" r="0.8" fill="#0f62fe" class="ambient-dot" style="--dx:-8px;--dy:-28px;--dur:9s;--delay:1.5s"/>
                    <circle cx="80" cy="300" r="1.2" fill="#4589ff" class="ambient-dot" style="--dx:18px;--dy:-45px;--dur:8s;--delay:3s"/>
                    <circle cx="320" cy="380" r="0.7" fill="#0f62fe" class="ambient-dot" style="--dx:-14px;--dy:-50px;--dur:11s;--delay:2s"/>
                    <circle cx="180" cy="150" r="0.9" fill="#4589ff" class="ambient-dot" style="--dx:6px;--dy:-30px;--dur:6s;--delay:4s"/>
                    <circle cx="360" cy="220" r="1" fill="#0f62fe" class="ambient-dot" style="--dx:-10px;--dy:-38px;--dur:10s;--delay:0.8s"/>
                    <circle cx="40" cy="410" r="0.8" fill="#4589ff" class="ambient-dot" style="--dx:20px;--dy:-55px;--dur:12s;--delay:5s"/>
                    <circle cx="250" cy="450" r="1.1" fill="#0f62fe" class="ambient-dot" style="--dx:-5px;--dy:-40px;--dur:7.5s;--delay:2.5s"/>

                    <!-- ═══ ORBITAL RINGS ═══ -->
                    <circle cx="200" cy="230" r="152" fill="none" stroke="#262626" stroke-width="0.5" stroke-dasharray="4,12" class="orbit-ring-1" id="ring-outer"/>
                    <circle cx="200" cy="230" r="115" fill="none" stroke="#262626" stroke-width="0.5" stroke-dasharray="2,8" class="orbit-ring-2" id="ring-inner"/>
                    <circle cx="200" cy="230" r="72" fill="none" stroke="#1e1e3a" stroke-width="0.5" stroke-dasharray="1,6" class="orbit-ring-3"/>

                    <!-- Ring tick marks -->
                    <g class="orbit-ring-1">
                        <circle cx="200" cy="78" r="2" fill="#0f62fe" opacity="0.25" class="ring-tick"/>
                        <circle cx="352" cy="230" r="2" fill="#0f62fe" opacity="0.25" class="ring-tick" style="animation-delay:0.75s"/>
                        <circle cx="200" cy="382" r="2" fill="#0f62fe" opacity="0.25" class="ring-tick" style="animation-delay:1.5s"/>
                        <circle cx="48" cy="230" r="2" fill="#0f62fe" opacity="0.25" class="ring-tick" style="animation-delay:2.25s"/>
                    </g>

                    <!-- ═══ CONNECTION PATHS ═══ -->
                    <path d="M 200,58 L 200,208" stroke="#393939" stroke-width="1" fill="none" class="conn-path" id="conn-meeting"/>
                    <path d="M 218,218 C 258,198 296,158 324,128" stroke="#393939" stroke-width="1" fill="none" stroke-dasharray="5,5" class="conn-path graph-conn-dash" id="conn-transcription"/>
                    <path d="M 222,238 C 268,248 310,262 336,270" stroke="#393939" stroke-width="1" fill="none" stroke-dasharray="5,5" class="conn-path graph-conn-dash" id="conn-context"/>
                    <path d="M 210,250 C 240,305 268,358 280,378" stroke="#393939" stroke-width="1" fill="none" stroke-dasharray="5,5" class="conn-path graph-conn-dash" id="conn-requirements"/>
                    <path d="M 190,250 C 160,305 132,358 120,378" stroke="#393939" stroke-width="1" fill="none" stroke-dasharray="5,5" class="conn-path graph-conn-dash" id="conn-epics"/>
                    <path d="M 200,252 L 200,443" stroke="#393939" stroke-width="1" fill="none" class="conn-path" id="conn-backlog"/>
                    <path d="M 200,467 L 200,482" stroke="#393939" stroke-width="1" fill="none" class="conn-path" id="conn-dev"/>

                    <!-- ═══ DECORATIVE FLOW ═══ -->
                    <circle r="1.5" fill="#0f62fe" opacity="0.1">
                        <animateMotion dur="4s" repeatCount="indefinite"><mpath href="#mpath-trans"/></animateMotion>
                    </circle>
                    <circle r="1.5" fill="#0f62fe" opacity="0.1">
                        <animateMotion dur="5s" repeatCount="indefinite"><mpath href="#mpath-ctx"/></animateMotion>
                    </circle>
                    <circle r="1.5" fill="#0f62fe" opacity="0.1">
                        <animateMotion dur="4.5s" repeatCount="indefinite"><mpath href="#mpath-req"/></animateMotion>
                    </circle>
                    <circle r="1.5" fill="#0f62fe" opacity="0.1">
                        <animateMotion dur="5.5s" repeatCount="indefinite"><mpath href="#mpath-epic"/></animateMotion>
                    </circle>

                    <!-- ═══ ANIMATED FLOW PARTICLES ═══ -->
                    <circle r="3.5" fill="#0f62fe" opacity="0" filter="url(#glow-blue)" id="particle-meeting">
                        <animateMotion dur="1.5s" repeatCount="indefinite"><mpath href="#mpath-meeting"/></animateMotion>
                    </circle>
                    <circle r="3.5" fill="#0f62fe" opacity="0" filter="url(#glow-blue)" id="particle-trans">
                        <animateMotion dur="1.8s" repeatCount="indefinite"><mpath href="#mpath-trans"/></animateMotion>
                    </circle>
                    <circle r="3.5" fill="#0f62fe" opacity="0" filter="url(#glow-blue)" id="particle-ctx">
                        <animateMotion dur="1.8s" repeatCount="indefinite"><mpath href="#mpath-ctx"/></animateMotion>
                    </circle>
                    <circle r="3.5" fill="#0f62fe" opacity="0" filter="url(#glow-blue)" id="particle-req">
                        <animateMotion dur="1.8s" repeatCount="indefinite"><mpath href="#mpath-req"/></animateMotion>
                    </circle>
                    <circle r="3.5" fill="#0f62fe" opacity="0" filter="url(#glow-blue)" id="particle-epic">
                        <animateMotion dur="1.8s" repeatCount="indefinite"><mpath href="#mpath-epic"/></animateMotion>
                    </circle>

                    <!-- ═══ MEETING NODE ═══ -->
                    <circle cx="200" cy="42" r="20" fill="#0f62fe" opacity="0.04" class="node-halo"/>
                    <circle cx="200" cy="42" r="13" fill="#161616" stroke="#393939" stroke-width="1.5" class="agent-node" id="node-meeting"/>
                    <text x="200" y="46" text-anchor="middle" fill="#525252" font-size="7.5" font-family="IBM Plex Sans, sans-serif" font-weight="600" id="label-meeting">MTG</text>
                    <text x="200" y="26" text-anchor="middle" fill="#525252" font-size="6" font-family="IBM Plex Mono, monospace" font-weight="400" opacity="0.5">INPUT</text>

                    <!-- ═══ ORCHESTRATOR ═══ -->
                    <g class="orch-core-beat">
                        <circle cx="200" cy="230" r="42" fill="none" stroke="#0f62fe" stroke-width="1" opacity="0.15" id="orch-pulse-outer">
                            <animate attributeName="r" values="42;52;42" dur="3s" repeatCount="indefinite"/>
                            <animate attributeName="opacity" values="0.15;0.04;0.15" dur="3s" repeatCount="indefinite"/>
                        </circle>
                        <circle cx="200" cy="230" r="30" fill="none" stroke="#0f62fe" stroke-width="1" opacity="0.2" id="orch-pulse-inner">
                            <animate attributeName="r" values="30;37;30" dur="2.5s" repeatCount="indefinite"/>
                            <animate attributeName="opacity" values="0.2;0.06;0.2" dur="2.5s" repeatCount="indefinite"/>
                        </circle>
                        <line x1="200" y1="230" x2="200" y2="188" stroke="url(#sweep-grad)" stroke-width="1.5" stroke-linecap="round" class="radar-sweep-line" opacity="0.5"/>
                        <circle cx="200" cy="230" r="22" fill="url(#grad-orch)" stroke="#0f62fe" stroke-width="2" id="core-orch"/>
                        <text x="200" y="234" text-anchor="middle" fill="#ffffff" font-size="9" font-family="IBM Plex Sans, sans-serif" font-weight="700" id="core-label">ORC</text>
                    </g>

                    <!-- ═══ TRANSCRIPTION ═══ -->
                    <g>
                        <circle cx="335" cy="120" r="22" fill="#0f62fe" opacity="0.04" class="node-halo"/>
                        <path d="M335,96 L354,107 L354,133 L335,144 L316,133 L316,107 Z" fill="none" stroke="#393939" stroke-width="0.6" stroke-dasharray="2,4" class="agent-ring" id="ring-transcription"/>
                        <path d="M335,104 L348.9,112 L348.9,128 L335,136 L321.1,128 L321.1,112 Z" fill="#262626" stroke="#393939" stroke-width="2" class="agent-hex" id="node-transcription"/>
                        <text x="335" y="123" text-anchor="middle" fill="#c6c6c6" font-size="9" font-family="IBM Plex Sans, sans-serif" font-weight="700" id="label-transcription">T</text>
                        <text x="335" y="100" text-anchor="middle" fill="#525252" font-size="8" font-family="IBM Plex Sans, sans-serif" font-weight="500" id="name-transcription">Transkription</text>
                        <text x="335" y="152" text-anchor="middle" fill="#393939" font-size="5.5" font-family="IBM Plex Mono, monospace">MIC</text>
                    </g>

                    <!-- ═══ CONTEXT ═══ -->
                    <g>
                        <circle cx="350" cy="278" r="22" fill="#0f62fe" opacity="0.04" class="node-halo"/>
                        <path d="M350,254 L369,265 L369,291 L350,302 L331,291 L331,265 Z" fill="none" stroke="#393939" stroke-width="0.6" stroke-dasharray="2,4" class="agent-ring" id="ring-context"/>
                        <path d="M350,262 L363.9,270 L363.9,286 L350,294 L336.1,286 L336.1,270 Z" fill="#262626" stroke="#393939" stroke-width="2" class="agent-hex" id="node-context"/>
                        <text x="350" y="281" text-anchor="middle" fill="#c6c6c6" font-size="9" font-family="IBM Plex Sans, sans-serif" font-weight="700" id="label-context">C</text>
                        <text x="350" y="258" text-anchor="middle" fill="#525252" font-size="8" font-family="IBM Plex Sans, sans-serif" font-weight="500" id="name-context">Context</text>
                        <text x="350" y="310" text-anchor="middle" fill="#393939" font-size="5.5" font-family="IBM Plex Mono, monospace">DB</text>
                    </g>

                    <!-- ═══ REQUIREMENTS ═══ -->
                    <g>
                        <circle cx="288" cy="390" r="22" fill="#0f62fe" opacity="0.04" class="node-halo"/>
                        <path d="M288,366 L307,377 L307,403 L288,414 L269,403 L269,377 Z" fill="none" stroke="#393939" stroke-width="0.6" stroke-dasharray="2,4" class="agent-ring" id="ring-requirements"/>
                        <path d="M288,374 L301.9,382 L301.9,398 L288,406 L274.1,398 L274.1,382 Z" fill="#262626" stroke="#393939" stroke-width="2" class="agent-hex" id="node-requirements"/>
                        <text x="288" y="393" text-anchor="middle" fill="#c6c6c6" font-size="9" font-family="IBM Plex Sans, sans-serif" font-weight="700" id="label-requirements">R</text>
                        <text x="288" y="369" text-anchor="middle" fill="#525252" font-size="8" font-family="IBM Plex Sans, sans-serif" font-weight="500" id="name-requirements">Requirements</text>
                        <text x="288" y="422" text-anchor="middle" fill="#393939" font-size="5.5" font-family="IBM Plex Mono, monospace">REQ</text>
                    </g>

                    <!-- ═══ EPICS ═══ -->
                    <g>
                        <circle cx="112" cy="390" r="22" fill="#0f62fe" opacity="0.04" class="node-halo"/>
                        <path d="M112,366 L131,377 L131,403 L112,414 L93,403 L93,377 Z" fill="none" stroke="#393939" stroke-width="0.6" stroke-dasharray="2,4" class="agent-ring" id="ring-epics"/>
                        <path d="M112,374 L125.9,382 L125.9,398 L112,406 L98.1,398 L98.1,382 Z" fill="#262626" stroke="#393939" stroke-width="2" class="agent-hex" id="node-epics"/>
                        <text x="112" y="393" text-anchor="middle" fill="#c6c6c6" font-size="9" font-family="IBM Plex Sans, sans-serif" font-weight="700" id="label-epics">E</text>
                        <text x="112" y="369" text-anchor="middle" fill="#525252" font-size="8" font-family="IBM Plex Sans, sans-serif" font-weight="500" id="name-epics">Epics</text>
                        <text x="112" y="422" text-anchor="middle" fill="#393939" font-size="5.5" font-family="IBM Plex Mono, monospace">GIT</text>
                    </g>

                    <!-- ═══ OUTPUT NODES ═══ -->
                    <rect x="175" y="447" width="50" height="18" rx="9" fill="#161616" stroke="#393939" stroke-width="1.5" class="agent-node" id="node-backlog"/>
                    <text x="200" y="459" text-anchor="middle" fill="#f4f4f4" font-size="7" font-family="IBM Plex Sans, sans-serif" font-weight="600" id="label-backlog">Backlog</text>
                    <rect x="172" y="475" width="56" height="16" rx="8" fill="#161616" stroke="#393939" stroke-width="1.5" class="agent-node" id="node-dev"/>
                    <text x="200" y="486" text-anchor="middle" fill="#f4f4f4" font-size="6.5" font-family="IBM Plex Sans, sans-serif" font-weight="600" id="label-dev">Dev Team</text>
                    <text x="200" y="498" text-anchor="middle" fill="#393939" font-size="5" font-family="IBM Plex Mono, monospace" opacity="0.5">OUTPUT</text>

                    <!-- ═══ ORC CONNECTION DOTS ═══ -->
                    <circle cx="215" cy="218" r="2.5" fill="#393939" class="conn-dot" id="dot-trans"/>
                    <circle cx="220" cy="236" r="2.5" fill="#393939" class="conn-dot" id="dot-ctx"/>
                    <circle cx="208" cy="248" r="2.5" fill="#393939" class="conn-dot" id="dot-req"/>
                    <circle cx="192" cy="248" r="2.5" fill="#393939" class="conn-dot" id="dot-epic"/>
                    </svg>
                    <!-- Status overlay -->
                    <div class="absolute bottom-3 right-4 flex items-center gap-2 opacity-50">
                        <span class="w-1.5 h-1.5 rounded-full bg-ibm-blue/50 animate-pulse"></span>
                        <span class="text-[10px] text-ibm-text-muted font-ibm-mono tracking-wider uppercase" id="graph-status">idle</span>
                    </div>
                </div>
            </div>

            <!-- Progress Stepper -->
            <div class="max-w-5xl mx-auto mb-8 fade-in-up delay-300">
                <div class="flex items-center justify-between" id="progress-stepper">
                    <div class="flex items-center gap-2 stepper-stage" data-stage="0">
                        <div class="w-8 h-8 flex items-center justify-center text-xs font-bold font-ibm-mono border border-ibm-surface-light text-ibm-text-secondary">1</div>
                        <span class="text-xs font-medium text-ibm-text-secondary hidden sm:inline">Transkription</span>
                    </div>
                    <div class="flex-1 h-px bg-ibm-surface-light mx-3 stepper-line"></div>
                    <div class="flex items-center gap-2 stepper-stage" data-stage="1">
                        <div class="w-8 h-8 flex items-center justify-center text-xs font-bold font-ibm-mono border border-ibm-surface-light text-ibm-text-secondary">2</div>
                        <span class="text-xs font-medium text-ibm-text-secondary hidden sm:inline">Context</span>
                    </div>
                    <div class="flex-1 h-px bg-ibm-surface-light mx-3 stepper-line"></div>
                    <div class="flex items-center gap-2 stepper-stage" data-stage="2">
                        <div class="w-8 h-8 flex items-center justify-center text-xs font-bold font-ibm-mono border border-ibm-surface-light text-ibm-text-secondary">3</div>
                        <span class="text-xs font-medium text-ibm-text-secondary hidden sm:inline">Requirements</span>
                    </div>
                    <div class="flex-1 h-px bg-ibm-surface-light mx-3 stepper-line"></div>
                    <div class="flex items-center gap-2 stepper-stage" data-stage="3">
                        <div class="w-8 h-8 flex items-center justify-center text-xs font-bold font-ibm-mono border border-ibm-surface-light text-ibm-text-secondary">4</div>
                        <span class="text-xs font-medium text-ibm-text-secondary hidden sm:inline">Epics</span>
                    </div>
                    <div class="flex-1 h-px bg-ibm-surface-light mx-3 stepper-line"></div>
                    <div class="flex items-center gap-2 stepper-stage" data-stage="4">
                        <div class="w-8 h-8 flex items-center justify-center text-xs font-bold font-ibm-mono border border-ibm-surface-light text-ibm-text-secondary">5</div>
                        <span class="text-xs font-medium text-ibm-text-secondary hidden sm:inline">Backlog</span>
                    </div>
                </div>
            </div>

            <!-- Main Demo Area -->
            <div class="grid grid-cols-1 lg:grid-cols-12 gap-6 items-start max-w-7xl mx-auto">

                <!-- LEFT: Transcript Preview + Controls -->
                <div class="lg:col-span-5 space-y-4">
                    <!-- Transcript -->
                    <div class="bg-ibm-dark border border-ibm-surface-light p-5 fade-in-up delay-100">
                        <div class="flex items-center justify-between mb-3">
                            <h3 class="text-sm font-bold text-ibm-text flex items-center gap-2">
                                <i data-lucide="file-text" class="w-4 h-4 text-ibm-blue"></i>
                                Meeting-Transkript
                            </h3>
                            <span class="text-xs text-ibm-text-muted font-ibm-mono">Q3 Planung · 47:12 min</span>
                        </div>
                        <div class="text-xs text-ibm-text-secondary space-y-2 max-h-56 overflow-y-auto chat-scroll leading-relaxed font-ibm-mono" id="transcript-area">
                            <p><span class="text-ibm-blue">Anna (PO):</span> Okay Leute, Q3-Planung. Danke dass ihr alle da seid. Ich mach's kurz: Wir haben 12 Wochen bis zum Release, und ehrlich gesagt — der Druck aus den Fachbereichen wird langsam ungemütlich. Marco, wie sieht's technisch aus? Basis steht?</p>
                            <p><span class="text-ibm-blue">Marco (TL):</span> Basis steht. Keycloak für Auth ist drin, REST-APIs dokumentiert, CI/CD rennt seit letztem Sprint stabil. Wir haben die letzten zwei Wochen nur Foundation-Arbeit gemacht, das war auch nötig. Aber — ich sag's gleich — das Rollen-Rechte-Konzept wird uns zerlegen, wenn wir das unterschätzen.</p>
                            <p><span class="text-ibm-warning">Dr. Weber:</span> Bevor wir ins Technische gehen — kann ich kurz was loswerden? Ich hab heute Morgen wieder drei Excel-Sheets auf dem Schreibtisch gehabt. Urlaubsanträge. Per E-Mail. Mit CC an fünf Leute, von denen keiner zuständig ist. Wir machen das seit sechs Monaten so. Das ist kein Prozess, das ist Chaos.</p>
                            <p><span class="text-ibm-success">Thomas (HR):</span> Kann ich nur unterschreiben. Ich krieg jeden Tag Anträge, bei denen ich nicht mal weiß, ob der Vorgesetzte schon zugestimmt hat. Letzte Woche hab ich einen Urlaub genehmigt, der war drei Tage später — da war der Kollege schon im Flieger. Wir brauchen Sichtbarkeit.</p>
                            <p><span class="text-ibm-blue">Anna (PO):</span> Warte, Thomas — was genau brauchst du? Nur zur Klarheit.</p>
                            <p><span class="text-ibm-success">Thomas (HR):</span> Ich brauch ein Dashboard. Kein statisches PDF, kein Excel-Export — ein Live-Dashboard. Ich will sehen: wie viele Anträge sind offen, bei wem hängen sie fest, welche überziehen die SLA? Wenn ein Antrag länger als 48 Stunden bei einem Genehmiger liegt, will ich das auf einen Blick sehen. Ohne Dashboard ist der ganze Workflow für HR wertlos.</p>
                            <p><span class="text-ibm-warning">Dr. Weber:</span> Das ist genau der Punkt. Und es geht ja nicht nur um Urlaub. Wir haben Reisekosten, Beschaffungen über 5.000 Euro — da hängt Budget dran. Wenn der CFO nicht freigibt, darf keiner bestellen. Und aktuell erfahre ich das, wenn die Rechnung kommt.</p>
                            <p><span class="text-ibm-blue">Lisa (UX):</span> Darf ich da kurz einhaken? Bevor wir jetzt drei Workflows bauen, die keiner versteht — ich hab noch kein einziges UX-Konzept gesehen. Wer macht das? Wer testet das mit echten Nutzern?</p>
                            <p><span class="text-ibm-blue">Anna (PO):</span> Lisa hat recht. Lisa, was brauchst du?</p>
                            <p><span class="text-ibm-blue">Lisa (UX):</span> Ich brauch zwei Click-Dummies. Variante A: Step-by-Step — Nutzer klickt sich durch den Genehmigungsprozess, jeder Schritt erklärt sich selbst. Variante B: Inline-Genehmigung direkt im Dashboard — keine Popups, kein Kontextwechsel. Die testen wir mit fünf Fachbereichsleitern aus Operations, HR und Finance. Ohne User-Testing bauen wir am Bedarf vorbei. Punkt.</p>
                            <p><span class="text-ibm-blue">Marco (TL):</span> Ja, geb ich dir recht. Aber Lisa — der Workflow hängt am Rollen-Modell. Ich muss wissen, wer was genehmigen darf, bevor ich den Flow baue. Das ist das klassische Huhn-Ei-Problem. Anna, wie siehst du die Abhängigkeiten?</p>
                            <p><span class="text-ibm-blue">Anna (PO):</span> Das ist der Elefant im Raum. Rollen, Workflow, Dashboard — das hängt alles zusammen. Marco, skizzier mal kurz was du technisch brauchst, dann priorisieren wir.</p>
                            <p><span class="text-ibm-blue">Marco (TL):</span> Also: Workflow braucht Rollen. Kein Rollen-Modell — kein Workflow. Dashboard braucht Workflow-Daten, sonst ist's ne leere Tabelle. Und Rollen müssen gegen das Active Directory gespiegelt werden. Wir reden von 400 Usern in 6 Abteilungen mit unterschiedlichen Freigabestufen. Das ist kein simples RBAC, das ist hierarchisch. Abteilungsleiter sieht seine Leute, Bereichsleiter sieht alle, Geschäftsführung sieht alles. Plus Stellvertreter-Regelung — wenn der Dr. Weber im Urlaub ist, muss sein Stellvertreter automatisch seine Pending-List sehen.</p>
                            <p><span class="text-ibm-warning">Dr. Weber:</span> Stellvertreter ist absolut kritisch. Das war der Hauptgrund, warum unser letztes Tool gescheitert ist. Ich war zwei Wochen in Singapur, Vertretung war nicht hinterlegt, 17 Anträge lagen auf Halde. Die Fachbereiche sind fast durchgedreht. Das darf nicht nochmal passieren.</p>
                            <p><span class="text-ibm-blue">Marco (TL):</span> Verstanden. Schreib ich auf. Noch ein Punkt: Thomas, dein Dashboard — du meintest Live. Heißt das Echtzeit? Polling? WebSockets?</p>
                            <p><span class="text-ibm-success">Thomas (HR):</span> Ich will kein F5 drücken, Marco. Wenn ein Genehmiger was freigibt, will ich das in meinem Dashboard sehen. Und ich brauch am Ende des Monats einen automatischen Bericht: Durchlaufzeiten, SLA-Quoten, top 5 Engpässe. Das geht dann an die Geschäftsleitung.</p>
                            <p><span class="text-ibm-blue">Marco (TL):</span> Okay, also Reporting on top. Verarbeitet. Jetzt wird's technisch: Thomas, dein „kein F5 drücken" heißt für mich Event-Stream. Und der hängt wiederum am Audit-Trail.</p>
                            <p><span class="text-ibm-warning">Dr. Weber:</span> Komma, halt — Audit-Trail ist Pflicht. ISO 27001. Jede Genehmigung, jede Ablehnung, jede Änderung muss protokolliert sein. Wer, wann, was, warum. Ohne Audit-Trail kriegen wir kein Zertifikat, und ohne Zertifikat dürfen wir das System nicht produktiv nehmen.</p>
                            <p><span class="text-ibm-blue">Marco (TL):</span> Eben. Audit-Trail heißt Event-Log. Jede Aktion feuert ein Event. Das könnten wir mit einem Outbox-Pattern machen — dann ist der Audit-Trail gleich der Event-Stream fürs Dashboard und die Notifications. Zwei Fliegen, eine Klappe.</p>
                            <p><span class="text-ibm-blue">Anna (PO):</span> Notifications — Lisa, du hattest was dazu?</p>
                            <p><span class="text-ibm-blue">Lisa (UX):</span> Ja. User brauchen Status-Updates. Antrag eingereicht, genehmigt, abgelehnt — jedes Mal eine Notification, idealerweise mit Begründung bei Ablehnung. Ich seh drei Kanäle: In-App Notification-Center, E-Mail für Externe oder Selten-Nutzer, Slack für interne Power-User.</p>
                            <p><span class="text-ibm-success">Thomas (HR):</span> Slack ist nice-to-have für Q3. E-Mail und In-App sind Pflicht. Wir können Slack in Q4 nachziehen.</p>
                            <p><span class="text-ibm-blue">Marco (TL):</span> Okay, Slack=Q4. Notifications brauchen aber den Event-Bus, und der braucht den Audit-Trail, und der braucht den Workflow. Das ist eine Kette. Das können wir nicht parallelisieren — das muss sequenziell.</p>
                            <p><span class="text-ibm-blue">Anna (PO):</span> Verstehe. Also Architektur-Reihenfolge: Rollen → Workflow → Audit-Trail → Notifications. Dashboard und SAP können parallel laufen, oder?</p>
                            <p><span class="text-ibm-blue">Marco (TL):</span> Dashboard ja — das kann ich mit Mock-Daten aufsetzen, solange der Workflow nicht live ist. SAP... da wird's spannend. Thomas, du hattest SAP-Integration erwähnt?</p>
                            <p><span class="text-ibm-success">Thomas (HR):</span> Ja. Die Stammdaten — Kostenstellen, Vorgesetzte, Abteilungszugehörigkeit — müssen aus SAP kommen. Ich hab keine Lust, 400 Mitarbeiter manuell im System zu pflegen. Das muss automatisch synchronisieren.</p>
                            <p><span class="text-ibm-blue">Marco (TL):</span> SAP heißt RFC BAPI. Das ist kein REST. Ich muss einen Adapter bauen, der BAPI-Calls in unsere API-Welt übersetzt. Und SAP ist nicht-idempotent — wenn ein Call fehlschlägt, brauchst du Retry-Logik mit Exponential Backoff. Aufwand: 5-8 Personentage allein für den Adapter.</p>
                            <p><span class="text-ibm-blue">Anna (PO):</span> 5-8 PT — okay, nehmen wir in den Plan. Ist das autark, oder hängt das an was?</p>
                            <p><span class="text-ibm-blue">Marco (TL):</span> SAP-Adapter ist komplett autark. Der kann parallel zu allem laufen, sobald die API-Schicht steht. Und die steht ja schon.</p>
                            <p><span class="text-ibm-blue">Anna (PO):</span> Gut. Was ist mit Mobile? Lisa?</p>
                            <p><span class="text-ibm-blue">Lisa (UX):</span> 70% unserer Genehmiger checken Anträge unterwegs. Die sitzen nicht am Desktop. Ich brauch mindestens ein responsives Layout für Tablet. Mobil completely — das ist Q4. Aber Tablet muss Q3 kommen, sonst verlieren wir die Hälfte der User.</p>
                            <p><span class="text-ibm-blue">Anna (PO):</span> Okay, Tablet als Stretch-Goal für Q3, Mobile Q4. Marco, was fehlt technisch noch?</p>
                            <p><span class="text-ibm-blue">Marco (TL):</span> Zwei Sachen. Erstens: API-Rate-Limiting. Wenn 400 Leute gleichzeitig ihr Dashboard pollen — und wir haben Echtzeit noch nicht — killen die unsere Datenbank. Zweitens: Admin-UI. Wir können nicht für jeden neuen Antragstyp ein Ticket beim Dev-Team aufmachen. Die Fachbereiche müssen neue Antragstypen und Genehmigungsstufen selbst konfigurieren können. Sonst bin ich der Flaschenhals, und das will keiner.</p>
                            <p><span class="text-ibm-warning">Dr. Weber:</span> Admin-UI ist richtig und wichtig. Wenn Operations einen neuen Beschaffungstyp braucht — sagen wir IT-Hardware über 10.000 — dann muss das in fünf Minuten konfiguriert sein, nicht in fünf Tagen.</p>
                            <p><span class="text-ibm-blue">Anna (PO):</span> Admin-UI für Workflows — aufgenommen. Rate-Limiting seh ich als Teil des API-Layers. Thomas, letztes Wort von dir?</p>
                            <p><span class="text-ibm-success">Thomas (HR):</span> Zwei Sachen noch — ich will keinen Perfect-Launch, ich will was das funktioniert. Lieber 3 Workflows die laufen als 10 die haken. Und ich will nach 6 Wochen einen Review — was läuft, was nicht, wo müssen wir nachsteuern?</p>
                            <p><span class="text-ibm-blue">Anna (PO):</span> Fair. Also iterative Delivery, nicht Big Bang. Marco, Aufwandsschätzung bis Freitag?</p>
                            <p><span class="text-ibm-blue">Marco (TL):</span> *seufzt* Anna, das war ein Meeting. Ich hab hier grob gezählt: 12 Requirements in 5 Themen-Clustern. Das sind mindestens 8 Epics. Ich brauch bis Mittwoch. Und Kaffee.</p>
                            <p><span class="text-ibm-blue">Anna (PO):</span> Deal. Kaffee geht auf mich. Nächster Termin Mittwoch 10 Uhr — dann mit Aufwandsschätzung und priorisiertem Backlog.</p>
                            <p class="text-ibm-text-muted italic">... Meetingende 14:49 · 47 Minuten · 6 Teilnehmer · 42 Sprechbeiträge ...</p>
                        </div>
                    </div>

                    <!-- Controls -->
                    <div class="flex flex-wrap gap-3">
                        <button onclick="startSimulation()" id="btn-start" class="flex-1 bg-ibm-blue hover:bg-ibm-blue-hover text-white px-4 py-3 font-bold text-sm transition-colors duration-200 flex items-center justify-center gap-2 disabled:opacity-40 disabled:cursor-not-allowed">
                            <i data-lucide="play" class="w-4 h-4"></i>
                            Pipeline starten
                        </button>
                        <button onclick="advanceManually()" id="btn-next" class="hidden flex-1 bg-ibm-surface-light hover:bg-[#4a4a4a] text-ibm-text px-4 py-3 font-semibold text-sm transition-colors duration-200 flex items-center justify-center gap-2">
                            <i data-lucide="chevron-right" class="w-4 h-4"></i>
                            Nächster Schritt
                        </button>
                        <button onclick="resetSimulation()" id="btn-reset" class="bg-ibm-dark border border-ibm-surface-light text-ibm-text-secondary hover:text-ibm-text px-4 py-3 text-sm font-medium transition-colors duration-200 flex items-center gap-2">
                            <i data-lucide="rotate-ccw" class="w-4 h-4"></i>
                            Reset
                        </button>
                    </div>
                </div>

                <!-- MIDDLE: Agent Chat Window -->
                <div class="lg:col-span-7">
                    <div class="bg-ibm-dark border border-ibm-surface-light overflow-hidden flex flex-col h-[560px] fade-in-up delay-200">
                        <!-- Chat Header -->
                        <div class="bg-ibm-surface px-4 py-3 flex items-center justify-between border-b border-ibm-surface-light shrink-0">
                            <div class="flex items-center gap-2">
                                <div class="flex gap-1.5 mr-3">
                                    <div class="w-2.5 h-2.5 bg-red-400"></div>
                                    <div class="w-2.5 h-2.5 bg-yellow-400"></div>
                                    <div class="w-2.5 h-2.5 bg-green-400"></div>
                                </div>
                                <div class="text-xs text-ibm-text-secondary font-ibm-mono flex items-center gap-2">
                                    <i data-lucide="layers" class="w-3 h-3 text-ibm-blue"></i>
                                    IBM Watson X — Agent Playground
                                </div>
                            </div>
                            <div class="text-xs font-ibm-mono text-ibm-blue flex items-center gap-2 bg-ibm-blue/10 px-2 py-1 border border-ibm-blue/20">
                                <i data-lucide="radio" class="w-3 h-3"></i> Supervisor Active
                            </div>
                        </div>

                        <!-- Chat Messages -->
                        <div class="flex-1 overflow-y-auto p-5 space-y-4 chat-scroll" id="chat-container">
                            <div class="flex justify-center items-center h-full" id="chat-empty">
                                <div class="text-center">
                                    <i data-lucide="cpu" class="w-10 h-10 text-ibm-surface-light mx-auto mb-3"></i>
                                    <p class="text-ibm-text-muted text-sm">Klicken Sie „Pipeline starten", um die Simulation zu beginnen.</p>
                                </div>
                            </div>
                        </div>

                        <!-- Input Bar -->
                        <div class="bg-ibm-surface p-4 border-t border-ibm-surface-light shrink-0">
                            <div class="bg-ibm-dark px-3 py-2 flex items-center gap-3 border border-ibm-surface-light text-ibm-text-muted">
                                <i data-lucide="terminal" class="w-4 h-4"></i>
                                <span class="text-xs font-ibm-mono" id="input-status">Supervisor steht bereit...</span>
                            </div>
                        </div>
                    </div>
                </div>



            </div>
        </div>
    </section>

    <!-- ════════════════════════════════════════════ -->
    <!-- ════════════════════════════════════════════ -->
    <!-- ARCHITEKTUR                                  -->
    <!-- ════════════════════════════════════════════ -->
    <section id="architektur" class="py-24 bg-ibm-dark">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="text-center mb-16">
                <span class="text-ibm-blue font-semibold tracking-wider uppercase text-xs font-ibm-mono fade-in-up">Architektur</span>
                <h2 class="text-3xl md:text-4xl font-bold mt-2 mb-4 text-ibm-text fade-in-up delay-100">
                    Wie arbeitet das Multi-Agent System?
                </h2>
                <p class="text-lg text-ibm-text-secondary max-w-2xl mx-auto fade-in-up delay-200">
                    Spezialisierte Agenten arbeiten parallel und koordiniert — orchestriert durch einen Supervisor auf IBM Watson X.
                </p>
            </div>

            <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-6">
                <!-- Orchestrator -->
                <div class="bg-ibm-surface border border-ibm-blue/30 p-6 group transition-colors duration-300 hover:border-ibm-blue fade-in-up delay-100">
                    <div class="w-10 h-10 bg-ibm-blue/10 flex items-center justify-center mb-4">
                        <i data-lucide="cpu" class="w-5 h-5 text-ibm-blue"></i>
                    </div>
                    <h3 class="text-sm font-bold text-ibm-text mb-1">Orchestrator</h3>
                    <p class="text-xs text-ibm-blue font-ibm-mono mb-3">Supervisor Agent</p>
                    <p class="text-xs text-ibm-text-secondary leading-relaxed">
                        Zerlegt komplexe Anfragen, delegiert an spezialisierte Sub-Agenten und führt Ergebnisse zusammen.
                    </p>
                </div>

                <!-- Transcription -->
                <div class="bg-ibm-surface border border-ibm-surface-light p-6 group transition-colors duration-300 hover:border-ibm-success fade-in-up delay-200">
                    <div class="w-10 h-10 bg-[#1a2e1e] flex items-center justify-center mb-4">
                        <i data-lucide="mic" class="w-5 h-5 text-ibm-success"></i>
                    </div>
                    <h3 class="text-sm font-bold text-ibm-text mb-1">Transkription</h3>
                    <p class="text-xs text-ibm-success font-ibm-mono mb-3">Speech-to-Structure</p>
                    <p class="text-xs text-ibm-text-secondary leading-relaxed">
                        Wandelt Meeting-Aufnahmen in Text um, identifiziert Sprecher und extrahiert thematische Cluster.
                    </p>
                </div>

                <!-- Context -->
                <div class="bg-ibm-surface border border-ibm-surface-light p-6 group transition-colors duration-300 hover:border-ibm-blue-light fade-in-up delay-300">
                    <div class="w-10 h-10 bg-[#1a2740] flex items-center justify-center mb-4">
                        <i data-lucide="database" class="w-5 h-5 text-ibm-blue-light"></i>
                    </div>
                    <h3 class="text-sm font-bold text-ibm-text mb-1">Context Engine</h3>
                    <p class="text-xs text-ibm-blue-light font-ibm-mono mb-3">RAG-basierte Anreicherung</p>
                    <p class="text-xs text-ibm-text-secondary leading-relaxed">
                        Reichert das Transkript mit Firmen-Wissen an: Tech-Stack, Compliance, AD, SAP-Architektur.
                    </p>
                </div>

                <!-- Requirements -->
                <div class="bg-ibm-surface border border-ibm-surface-light p-6 group transition-colors duration-300 hover:border-ibm-warning fade-in-up delay-400">
                    <div class="w-10 h-10 bg-[#2e2a1a] flex items-center justify-center mb-4">
                        <i data-lucide="list-checks" class="w-5 h-5 text-ibm-warning"></i>
                    </div>
                    <h3 class="text-sm font-bold text-ibm-text mb-1">Requirements</h3>
                    <p class="text-xs text-ibm-warning font-ibm-mono mb-3">Extraktion & Validierung</p>
                    <p class="text-xs text-ibm-text-secondary leading-relaxed">
                        Extrahiert atomare, testbare Anforderungen aus dem angereicherten Kontext mit REQ-IDs.
                    </p>
                </div>

                <!-- Epics -->
                <div class="bg-ibm-surface border border-ibm-surface-light p-6 group transition-colors duration-300 hover:border-ibm-error fade-in-up delay-500">
                    <div class="w-10 h-10 bg-[#2e1a1a] flex items-center justify-center mb-4">
                        <i data-lucide="git-branch" class="w-5 h-5 text-ibm-error"></i>
                    </div>
                    <h3 class="text-sm font-bold text-ibm-text mb-1">Epic Engine</h3>
                    <p class="text-xs text-ibm-error font-ibm-mono mb-3">Zerlegung & Priorisierung</p>
                    <p class="text-xs text-ibm-text-secondary leading-relaxed">
                        Gruppiert Requirements in Epics, erstellt Tasks und priorisiert nach Abhängigkeiten.
                    </p>
                </div>
            </div>

            <div class="mt-12 bg-ibm-surface border border-ibm-surface-light p-6 max-w-3xl mx-auto fade-in-up">
                <div class="flex items-center gap-3 mb-3">
                    <i data-lucide="info" class="w-4 h-4 text-ibm-blue"></i>
                    <span class="text-xs font-bold text-ibm-text font-ibm-mono">ARCHITEKTUR-PRINZIP</span>
                </div>
                <p class="text-sm text-ibm-text-secondary leading-relaxed">
                    Alle Agenten arbeiten auf <span class="text-ibm-text">IBM Watson X</span> mit einem zentralen, versionierten Kontext.
                    Der <span class="text-ibm-blue">Orchestrator</span> steuert die Pipeline, delegiert Tasks, validiert Zwischenergebnisse und konsolidiert das finale Backlog.
                    Agenten kommunizieren asynchron — keine Blockierung, maximale Parallelisierung.
                </p>
            </div>
        </div>
    </section>

    <!-- ════════════════════════════════════════════ -->
    <!-- FOOTER                                       -->
    <!-- ════════════════════════════════════════════ -->
    <footer class="py-12 bg-ibm-dark border-t border-ibm-surface-light">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
            <div class="flex flex-col sm:flex-row items-center justify-center gap-2 sm:gap-4 mb-3">
                <span class="text-xl font-bold text-ibm-text">IBM Watson X</span>
                <span class="hidden sm:inline text-ibm-surface-light">|</span>
                <span class="text-ibm-text-secondary font-medium">Multi-Agent Requirements Engineering</span>
            </div>
            <p class="text-sm text-ibm-text-muted">&copy; 2026</p>
        </div>
    </footer>

    <!-- ════════════════════════════════════════════ -->
    <!-- ════════════════════════════════════════════ -->
    <!-- SCRIPTS                                      -->
    <!-- ════════════════════════════════════════════ -->

    <!-- ── Simulation Engine ── -->
    <script>
        'use strict';
        
        // ═══ STATE ═══
        const state = {
            running: false,
            currentStage: -1,       // -1 = idle, 0-3 = pipeline stages, 4 = complete
            autoAdvance: true,
            chatMessages: [],
            stageTimers: []         // for clearing timeouts on reset
        };

        // ═══ DOM REFS ═══
        const chatContainer = document.getElementById('chat-container');
        const chatEmpty = document.getElementById('chat-empty');
        const btnStart = document.getElementById('btn-start');
        const btnNext = document.getElementById('btn-next');
        const btnReset = document.getElementById('btn-reset');
        const inputStatus = document.getElementById('input-status');

        // ═══ AGENT DATA ═══
        const agents = {
            orchestrator: { name: 'Orchestrator', icon: 'cpu', color: '#0f62fe', bgClass: 'bg-ibm-blue/10 border-ibm-blue/20', textClass: 'text-ibm-blue' },
            transcription: { name: 'Transkription', icon: 'mic', color: '#42be65', bgClass: 'bg-[#1a2e1e] border-[#42be65]/20', textClass: 'text-ibm-success' },
            context: { name: 'Context Engine', icon: 'database', color: '#4589ff', bgClass: 'bg-[#1a2740] border-[#4589ff]/20', textClass: 'text-ibm-blue-light' },
            requirements: { name: 'Requirements', icon: 'list-checks', color: '#f1c21b', bgClass: 'bg-[#2e2a1a] border-[#f1c21b]/20', textClass: 'text-ibm-warning' },
            epics: { name: 'Epic Engine', icon: 'git-branch', color: '#da1e28', bgClass: 'bg-[#2e1a1a] border-[#da1e28]/20', textClass: 'text-ibm-error' }
        };

        // ═══ PIPELINE SCRIPT ═══
        const pipeline = [
            // Stage 0: Transcription
            {
                stage: 0,
                stageName: 'Transkription',
                messages: [
                    { from: 'orchestrator', text: 'Meeting-Aufnahme empfangen. <span class="text-ibm-text-muted">Dauer: 47:12 min, 42 Sprechbeiträge, 5 Teilnehmer.</span> Starte Transkription...' },
                    { from: 'transcription', text: '<span class="text-ibm-success font-bold">✓ Transkription abgeschlossen.</span><br><br><span class="text-ibm-text-secondary">Dauer:</span> 47:12 min, 42 Sprechbeiträge<br><span class="text-ibm-text-secondary">Erkannte Teilnehmer:</span> Anna (Product Owner), Marco (Tech Lead), Dr. Weber (Operations), Lisa (UX), Thomas (HR)<br><br><span class="text-ibm-text-secondary">Zentrale Themen-Cluster:</span><br>• Genehmigungs-Workflow & Admin-UI<br>• Rollen-Rechte-Konzept (RBAC, Stellvertreter)<br>• HR-Dashboard & Reporting (Echtzeit, SLA)<br>• SAP-Integration (Stammdaten, BAPI-Adapter)<br>• Notifications (In-App, E-Mail, Slack Q4)<br>• Compliance & Audit-Trail (ISO 27001)<br>• UX-Konzept & User-Testing<br>• API-Rate-Limiting & Infrastruktur' },
                ]
            },
            // Orchestrator between 0-1
            {
                stage: 0.5,
                stageName: 'Orchestrator',
                messages: [
                    { from: 'orchestrator', text: 'Transkript analysiert. <span class="text-ibm-text-secondary">12 potenzielle Anforderungen in 5 Themen-Clustern.</span><br><br>Starte Context-Anreicherung — lade Firmen-Wissen zu Active Directory, SAP, ISO 27001 und Tech-Stack.' },
                ]
            },
            // Stage 1: Context
            {
                stage: 1,
                stageName: 'Context',
                messages: [
                    { from: 'context', text: '<span class="text-ibm-blue-light font-bold">✓ Kontext geladen.</span><br><br><span class="text-ibm-text">Active Directory:</span> <span class="text-ibm-text-secondary">400 User, 6 Abteilungen, Freigabestufen-Hierarchie</span><br><span class="text-ibm-text">SAP:</span> <span class="text-ibm-text-secondary">RFC BAPI für Stammdaten, nicht-idempotent, Retry-Logik nötig</span><br><span class="text-ibm-text">Compliance:</span> <span class="text-ibm-text-secondary">ISO 27001 — Audit-Trail Pflicht für jede Genehmigungsaktion</span><br><span class="text-ibm-text">Tech-Stack:</span> <span class="text-ibm-text-secondary">Keycloak Auth, REST-APIs, CI/CD, Event-Stream für Notifications</span>' },
                ]
            },
            // Orchestrator between 1-2
            {
                stage: 1.5,
                stageName: 'Orchestrator',
                messages: [
                    { from: 'orchestrator', text: 'Kontext angereichert. Extrahiere strukturierte Anforderungen aus dem angereicherten Transkript.' },
                ]
            },
            // Stage 2: Requirements
            {
                stage: 2,
                stageName: 'Requirements',
                messages: [
                    { from: 'requirements', text: '<span class="text-ibm-warning font-bold">✓ 12 Requirements extrahiert.</span><br><br><div class="space-y-1 text-sm"><span class="text-ibm-text-secondary font-ibm-mono">REQ-01</span> Genehmigungs-Workflow (Urlaub, Reisekosten, Beschaffungen >5K)<br><span class="text-ibm-text-secondary font-ibm-mono">REQ-02</span> Rollen-Rechte-Konzept (RBAC, 400 User, 6 Abt.)<br><span class="text-ibm-text-secondary font-ibm-mono">REQ-03</span> HR-Dashboard (offene Anträge, SLA, Filter, Echtzeit)<br><span class="text-ibm-text-secondary font-ibm-mono">REQ-04</span> Audit-Trail (ISO 27001, Event-Log)<br><span class="text-ibm-text-secondary font-ibm-mono">REQ-05</span> SAP-Integration (Stammdaten, BAPI-Adapter)<br><span class="text-ibm-text-secondary font-ibm-mono">REQ-06</span> Notifications (In-App + E-Mail, Slack Q4)<br><span class="text-ibm-text-secondary font-ibm-mono">REQ-07</span> Stellvertreter-Regelung (automatische Delegation)<br><span class="text-ibm-text-secondary font-ibm-mono">REQ-08</span> UX-Click-Dummies + User-Testing<br><span class="text-ibm-text-secondary font-ibm-mono">REQ-09</span> Admin-UI für Workflow-Konfiguration<br><span class="text-ibm-text-secondary font-ibm-mono">REQ-10</span> API-Rate-Limiting (400 concurrent)<br><span class="text-ibm-text-secondary font-ibm-mono">REQ-11</span> Reporting (Durchlaufzeiten, SLA, Engpässe)<br><span class="text-ibm-text-secondary font-ibm-mono">REQ-12</span> Responsive Layout Tablet</div>' },
                ]
            },
            // Orchestrator between 2-3
            {
                stage: 2.5,
                stageName: 'Orchestrator',
                messages: [
                    { from: 'orchestrator', text: '12 Requirements validiert. Gruppiere nach Abhängigkeiten und Fachdomänen. Zerlege in Epics mit Task-Vorschlägen.' },
                ]
            },
            // Stage 3: Epics
            {
                stage: 3,
                stageName: 'Epics',
                messages: [
                    { from: 'epics', text: '<span class="text-ibm-error font-bold">✓ 8 Epics mit Tasks erstellt.</span><br><br><div class="space-y-2 text-sm"><div><span class="text-ibm-error font-bold font-ibm-mono">EPIC-01</span> <span class="text-ibm-text">Rollen & Berechtigungen</span><br><span class="text-ibm-text-secondary">REQ-02, REQ-07 • 6 Tasks • Phase 1</span></div><div><span class="text-ibm-error font-bold font-ibm-mono">EPIC-02</span> <span class="text-ibm-text">Genehmigungs-Workflow</span><br><span class="text-ibm-text-secondary">REQ-01, REQ-09 • 5 Tasks • Phase 2</span></div><div><span class="text-ibm-error font-bold font-ibm-mono">EPIC-03</span> <span class="text-ibm-text">HR-Dashboard & Reporting</span><br><span class="text-ibm-text-secondary">REQ-03, REQ-11 • 4 Tasks • Phase 2</span></div><div><span class="text-ibm-error font-bold font-ibm-mono">EPIC-04</span> <span class="text-ibm-text">Compliance & Audit</span><br><span class="text-ibm-text-secondary">REQ-04 • 3 Tasks • Phase 1</span></div><div><span class="text-ibm-error font-bold font-ibm-mono">EPIC-05</span> <span class="text-ibm-text">Integrationen</span><br><span class="text-ibm-text-secondary">REQ-05 • 3 Tasks • Phase 3</span></div><div><span class="text-ibm-error font-bold font-ibm-mono">EPIC-06</span> <span class="text-ibm-text">Notifications</span><br><span class="text-ibm-text-secondary">REQ-06 • 4 Tasks • Phase 3</span></div><div><span class="text-ibm-error font-bold font-ibm-mono">EPIC-07</span> <span class="text-ibm-text">UX & Testing</span><br><span class="text-ibm-text-secondary">REQ-08, REQ-12 • 3 Tasks • Phase 1</span></div><div><span class="text-ibm-error font-bold font-ibm-mono">EPIC-08</span> <span class="text-ibm-text">Infrastruktur</span><br><span class="text-ibm-text-secondary">REQ-10 • 2 Tasks • Phase 1</span></div></div>' },
                ]
            },
            // Final Orchestrator
            {
                stage: 4,
                stageName: 'Backlog',
                messages: [
                    { from: 'orchestrator', text: '<span class="text-ibm-text font-bold">Pipeline abgeschlossen.</span><br><br><span class="text-ibm-text-secondary">Verarbeitungszeit:</span> <span class="text-ibm-success">2:34 min</span><br><span class="text-ibm-text-secondary">Manueller Vergleich:</span> <span class="text-ibm-text-muted">~3 Arbeitstage</span><br><br><span class="text-ibm-text">✓ 12 Requirements extrahiert</span><br><span class="text-ibm-text">✓ 8 Epics mit 30 Tasks erstellt</span><br><span class="text-ibm-text">✓ 3 Phasen priorisiert</span><br><br><span class="text-ibm-blue">Backlog ready to build.</span>' },
                ]
            }
        ];

        // ═══ HELPERS ═══
        function delay(ms) {
            return new Promise(resolve => {
                const t = setTimeout(resolve, ms);
                state.stageTimers.push(t);
            });
        }

        function clearAllTimers() {
            state.stageTimers.forEach(t => clearTimeout(t));
            state.stageTimers = [];
        }

        function updateProgressStepper(stage) {
            document.querySelectorAll('.stepper-stage').forEach((el, i) => {
                const num = el.querySelector('div');
                const line = document.querySelectorAll('.stepper-line')[i > 0 ? i - 1 : 0];
                if (i < stage) {
                    num.className = 'w-8 h-8 flex items-center justify-center text-xs font-bold font-ibm-mono bg-ibm-success text-ibm-dark';
                    if (i > 0) {
                        const prevLine = document.querySelectorAll('.stepper-line')[i - 1];
                        if (prevLine) prevLine.className = 'flex-1 h-px bg-ibm-success mx-3 stepper-line';
                    }
                } else if (i === stage) {
                    num.className = 'w-8 h-8 flex items-center justify-center text-xs font-bold font-ibm-mono bg-ibm-blue text-white';
                    el.querySelector('span').className = 'text-xs font-medium text-ibm-blue hidden sm:inline';
                }
            });

            // Stage 4 (complete): all green
            if (stage >= 4) {
                document.querySelectorAll('.stepper-stage').forEach((el, i) => {
                    if (i <= 3) {
                        el.querySelector('div').className = 'w-8 h-8 flex items-center justify-center text-xs font-bold font-ibm-mono bg-ibm-success text-ibm-dark';
                    }
                });
                document.querySelectorAll('.stepper-line').forEach(l => {
                    l.className = 'flex-1 h-px bg-ibm-success mx-3 stepper-line';
                });
                document.querySelector('[data-stage="4"] div').className = 'w-8 h-8 flex items-center justify-center text-xs font-bold font-ibm-mono bg-ibm-success text-ibm-dark';
                document.querySelector('[data-stage="4"] span').className = 'text-xs font-medium text-ibm-success hidden sm:inline';
            }
        }

        // ═══ MAS GRAPH ANIMATION — Atomic Structure ═══
        function glowNode(id, color, glowFilter) {
            const el = document.getElementById(id);
            if (!el) return;
            el.setAttribute('fill', color === 'blue' ? 'url(#grad-active)' : color === 'green' ? 'url(#grad-done)' : color === 'yellow' ? '#f1c21b' : '#262626');
            el.setAttribute('stroke', color === 'blue' ? '#0f62fe' : color === 'green' ? '#42be65' : color === 'yellow' ? '#f1c21b' : '#393939');
            el.setAttribute('stroke-width', color === 'idle' ? '1.5' : '2.5');
            el.setAttribute('filter', color === 'blue' ? 'url(#glow-blue)' : color === 'green' ? 'url(#glow-green)' : color === 'yellow' ? 'url(#glow-yellow)' : 'none');
        }

        function glowRing(id, color) {
            const el = document.getElementById(id);
            if (!el) return;
            el.setAttribute('stroke', color === 'blue' ? '#0f62fe' : color === 'green' ? '#42be65' : color === 'yellow' ? '#f1c21b' : '#393939');
            el.setAttribute('stroke-width', color === 'idle' ? '0.5' : '1.5');
        }

        function glowConn(id, color, width) {
            const el = document.getElementById(id);
            if (!el) return;
            el.setAttribute('stroke', color === 'blue' ? '#0f62fe' : color === 'green' ? '#42be65' : color === 'yellow' ? '#f1c21b' : '#393939');
            el.setAttribute('stroke-width', width || (color === 'idle' ? '1' : '2'));
            el.setAttribute('filter', color !== 'idle' ? 'url(#glow-soft)' : 'none');
        }

        function glowParticle(id, show, color) {
            const el = document.getElementById(id);
            if (!el) return;
            el.setAttribute('opacity', show ? '1' : '0');
            if (show) {
                el.setAttribute('fill', color === 'green' ? '#42be65' : '#0f62fe');
                el.setAttribute('filter', color === 'green' ? 'url(#glow-green)' : 'url(#glow-blue)');
            }
        }

        function glowLabel(id, color) {
            const el = document.getElementById(id);
            if (!el) return;
            // Output nodes (backlog, dev) need white text on green bg
            const isOutput = id === 'label-backlog' || id === 'label-dev';
            el.setAttribute('fill', color === 'blue' ? '#ffffff' : color === 'green' ? (isOutput ? '#ffffff' : '#42be65') : color === 'yellow' ? '#f1c21b' : (isOutput ? '#f4f4f4' : '#525252'));
        }

        function glowNameLabel(id, color) {
            const el = document.getElementById(id);
            if (!el) return;
            el.setAttribute('fill', color === 'idle' ? '#525252' : color === 'green' ? '#42be65' : '#f4f4f4');
        }

        function setCoreState(color) {
            const core = document.getElementById('core-orch');
            const label = document.getElementById('core-label');
            const outer = document.getElementById('orch-pulse-outer');
            const inner = document.getElementById('orch-pulse-inner');
            
            if (color === 'idle') {
                if (core) core.setAttribute('fill', 'url(#grad-orch)');
                if (outer) outer.setAttribute('stroke', '#0f62fe');
                if (outer) outer.setAttribute('opacity', '0.3');
                if (inner) inner.setAttribute('stroke', '#0f62fe');
                if (inner) inner.setAttribute('opacity', '0.2');
            } else if (color === 'pulse') {
                if (outer) { outer.setAttribute('stroke', '#4589ff'); outer.setAttribute('opacity', '0.8'); }
                if (inner) { inner.setAttribute('stroke', '#0f62fe'); inner.setAttribute('opacity', '0.6'); }
            } else if (color === 'done') {
                if (core) core.setAttribute('fill', 'url(#grad-done)');
                if (outer) { outer.setAttribute('stroke', '#42be65'); outer.setAttribute('opacity', '0.6'); }
                if (inner) { inner.setAttribute('stroke', '#42be65'); inner.setAttribute('opacity', '0.4'); }
            }
        }

        function updateMASGraph(stage) {
            const graphStatus = document.getElementById('graph-status');
            
            // Reset ALL to idle
            const agents = ['meeting', 'transcription', 'context', 'requirements', 'epics', 'backlog', 'dev'];
            agents.forEach(a => {
                glowNode('node-' + a, 'idle');
                glowLabel('label-' + a, 'idle');
                if (a !== 'meeting' && a !== 'backlog' && a !== 'dev') {
                    glowRing('ring-' + a, 'idle');
                    glowNameLabel('name-' + a, 'idle');
                }
            });
            
            ['conn-meeting', 'conn-transcription', 'conn-context', 'conn-requirements', 'conn-epics', 'conn-backlog', 'conn-dev'].forEach(c => glowConn(c, 'idle'));
            ['particle-meeting', 'particle-trans', 'particle-ctx', 'particle-req', 'particle-epic'].forEach(p => glowParticle(p, false, 'blue'));
            ['dot-trans', 'dot-ctx', 'dot-req', 'dot-epic'].forEach(d => glowConn(d, 'idle', '1'));
            ['ring-outer', 'ring-inner'].forEach(r => {
                const el = document.getElementById(r);
                if (el) el.setAttribute('stroke', '#262626');
            });
            setCoreState('idle');

            // Control background graph opacity
            const masGraph = document.getElementById('mas-graph');
            if (stage < 0) {
                if (masGraph) masGraph.style.opacity = '0.60';
                if (graphStatus) graphStatus.textContent = 'idle';
                return;
            }
            if (masGraph) masGraph.style.opacity = '0.85';

            // ── STAGE 0: Transcription active ──
            if (stage >= 0) {
                glowNode('node-meeting', 'green');
                glowLabel('label-meeting', 'green');
                glowConn('conn-meeting', 'green');
                glowParticle('particle-meeting', true, 'green');
                
                glowNode('node-transcription', 'blue');
                glowLabel('label-transcription', 'blue');
                glowRing('ring-transcription', 'blue');
                glowNameLabel('name-transcription', 'blue');
                glowConn('conn-transcription', 'blue');
                glowParticle('particle-trans', true, 'blue');
                glowConn('dot-trans', 'blue', '2');
                
                setCoreState('pulse');
                if (graphStatus) graphStatus.textContent = 'transcribing';
            }
            
            // ── STAGE 0.5: Orchestrator pulse ──
            if (stage >= 0.5) {
                glowNode('node-transcription', 'green');
                glowLabel('label-transcription', 'green');
                glowRing('ring-transcription', 'green');
                glowNameLabel('name-transcription', 'green');
                glowConn('conn-transcription', 'green');
                glowParticle('particle-trans', true, 'green');
                
                glowNode('node-context', 'yellow');
                glowLabel('label-context', 'yellow');
                glowRing('ring-context', 'yellow');
                glowNameLabel('name-context', 'yellow');
                
                setCoreState('pulse');
                if (graphStatus) graphStatus.textContent = 'enriching';
            }
            
            // ── STAGE 1: Context active ──
            if (stage >= 1) {
                glowNode('node-context', 'blue');
                glowLabel('label-context', 'blue');
                glowRing('ring-context', 'blue');
                glowNameLabel('name-context', 'blue');
                glowConn('conn-context', 'blue');
                glowParticle('particle-ctx', true, 'blue');
                glowConn('dot-ctx', 'blue', '2');
                
                setCoreState('pulse');
                if (graphStatus) graphStatus.textContent = 'context loaded';
            }
            
            // ── STAGE 1.5 ──
            if (stage >= 1.5) {
                glowNode('node-context', 'green');
                glowLabel('label-context', 'green');
                glowRing('ring-context', 'green');
                glowNameLabel('name-context', 'green');
                glowConn('conn-context', 'green');
                
                glowNode('node-requirements', 'yellow');
                glowLabel('label-requirements', 'yellow');
                glowRing('ring-requirements', 'yellow');
                glowNameLabel('name-requirements', 'yellow');
                
                setCoreState('pulse');
                if (graphStatus) graphStatus.textContent = 'extracting';
            }
            
            // ── STAGE 2: Requirements active ──
            if (stage >= 2) {
                glowNode('node-requirements', 'blue');
                glowLabel('label-requirements', 'blue');
                glowRing('ring-requirements', 'blue');
                glowNameLabel('name-requirements', 'blue');
                glowConn('conn-requirements', 'blue');
                glowParticle('particle-req', true, 'blue');
                glowConn('dot-req', 'blue', '2');
                
                setCoreState('pulse');
                if (graphStatus) graphStatus.textContent = 'requirements ready';
            }
            
            // ── STAGE 2.5 ──
            if (stage >= 2.5) {
                glowNode('node-requirements', 'green');
                glowLabel('label-requirements', 'green');
                glowRing('ring-requirements', 'green');
                glowNameLabel('name-requirements', 'green');
                glowConn('conn-requirements', 'green');
                
                glowNode('node-epics', 'yellow');
                glowLabel('label-epics', 'yellow');
                glowRing('ring-epics', 'yellow');
                glowNameLabel('name-epics', 'yellow');
                
                setCoreState('pulse');
                if (graphStatus) graphStatus.textContent = 'decomposing';
            }
            
            // ── STAGE 3: Epics active ──
            if (stage >= 3) {
                glowNode('node-epics', 'blue');
                glowLabel('label-epics', 'blue');
                glowRing('ring-epics', 'blue');
                glowNameLabel('name-epics', 'blue');
                glowConn('conn-epics', 'blue');
                glowParticle('particle-epic', true, 'blue');
                glowConn('dot-epic', 'blue', '2');
                
                setCoreState('pulse');
                if (graphStatus) graphStatus.textContent = 'epics created';
            }
            
            // ── STAGE 4: All done, handoff ──
            if (stage >= 4) {
                // All agent nodes green
                ['meeting', 'transcription', 'context', 'requirements', 'epics'].forEach(a => {
                    glowNode('node-' + a, 'green');
                    glowLabel('label-' + a, 'green');
                    if (a !== 'meeting') {
                        glowRing('ring-' + a, 'green');
                        glowNameLabel('name-' + a, 'green');
                    }
                });
                
                // All connections green
                ['conn-meeting', 'conn-transcription', 'conn-context', 'conn-requirements', 'conn-epics', 'conn-backlog', 'conn-dev'].forEach(c => glowConn(c, 'green'));
                
                // All particles green
                ['particle-meeting', 'particle-trans', 'particle-ctx', 'particle-req', 'particle-epic'].forEach(p => glowParticle(p, true, 'green'));
                
                // All dots green
                ['dot-trans', 'dot-ctx', 'dot-req', 'dot-epic'].forEach(d => glowConn(d, 'green', '2'));
                
                // Backlog + Dev green
                glowNode('node-backlog', 'green');
                glowLabel('label-backlog', 'green');
                glowNode('node-dev', 'green');
                glowLabel('label-dev', 'green');
                
                // Rings glow
                document.getElementById('ring-outer').setAttribute('stroke', '#42be65');
                document.getElementById('ring-inner').setAttribute('stroke', '#42be65');
                
                setCoreState('done');
                if (graphStatus) graphStatus.textContent = 'handoff ✓';
                if (masGraph) masGraph.style.opacity = '1';
            }
        }

        function typingIndicatorHTML(agent) {
            return `
                <div class="flex gap-3" id="typing">
                    <div class="w-7 h-7 flex items-center justify-center shrink-0 ${agent.bgClass}">
                        <i data-lucide="${agent.icon}" class="w-3.5 h-3.5 ${agent.textClass}"></i>
                    </div>
                    <div class="bg-ibm-surface border border-ibm-surface-light p-3 w-20">
                        <div class="typing-indicator"><span></span><span></span><span></span></div>
                    </div>
                </div>`;
        }

        function renderMessage(from, text) {
            const agent = agents[from];
            if (!agent) return;
            const msg = document.createElement('div');
            msg.className = 'flex gap-3 chat-message';
            msg.innerHTML = `
                <div class="w-7 h-7 flex items-center justify-center shrink-0 ${agent.bgClass}">
                    <i data-lucide="${agent.icon}" class="w-3.5 h-3.5 ${agent.textClass}"></i>
                </div>
                <div class="bg-ibm-surface border border-ibm-surface-light p-3 max-w-[85%] text-sm leading-relaxed">
                    <div class="text-xs ${agent.textClass} font-bold font-ibm-mono mb-1">${agent.name}</div>
                    <div class="text-ibm-text">${text}</div>
                </div>
            `;
            chatContainer.appendChild(msg);
            chatContainer.scrollTop = chatContainer.scrollHeight;
            lucide.createIcons();
            state.chatMessages.push({ from, text });
        }

        function updateButtonStates() {
            if (state.running) {
                btnStart.disabled = true;
                btnStart.classList.add('opacity-40', 'cursor-not-allowed');
                btnNext.classList.remove('hidden');
                btnNext.classList.add('flex');
            } else {
                btnStart.disabled = false;
                btnStart.classList.remove('opacity-40', 'cursor-not-allowed');
                btnNext.classList.add('hidden');
                btnNext.classList.remove('flex');
            }
        }

        // ═══ SIMULATION ═══
        async function startSimulation() {
            if (state.running) return;

            // Scroll to demo section
            document.getElementById('demo').scrollIntoView({ behavior: 'smooth', block: 'start' });

            state.running = true;
            state.currentStage = -1;
            state.chatMessages = [];
            state.autoAdvance = true;
            state._skipToNext = false;

            // Clear chat
            if (chatEmpty) chatEmpty.remove();
            const existing = chatContainer.querySelectorAll('.chat-message, .flex');
            existing.forEach(el => { if (el.id !== 'chat-empty') el.remove(); });

            // Reset stepper
            document.querySelectorAll('.stepper-stage').forEach(el => {
                el.querySelector('div').className = 'w-8 h-8 flex items-center justify-center text-xs font-bold font-ibm-mono border border-ibm-surface-light text-ibm-text-secondary';
                el.querySelector('span').className = 'text-xs font-medium text-ibm-text-secondary hidden sm:inline';
            });
            document.querySelectorAll('.stepper-line').forEach(l => {
                l.className = 'flex-1 h-px bg-ibm-surface-light mx-3 stepper-line';
            });

            updateButtonStates();
            inputStatus.textContent = 'Pipeline initialisiert...';

            await runPipeline();
        }

        async function runPipeline() {
            for (const step of pipeline) {
                if (!state.running && !state._skipToNext) break;
                state._skipToNext = false;
                state.running = true;

                for (const msg of step.messages) {
                    if (!state.running) break;

                    // Show typing indicator
                    const agent = agents[msg.from];
                    chatContainer.insertAdjacentHTML('beforeend', typingIndicatorHTML(agent));
                    chatContainer.scrollTop = chatContainer.scrollHeight;
                    lucide.createIcons();

                    await delay(1800);

                    // Remove typing, render message
                    const typingEl = document.getElementById('typing');
                    if (typingEl) typingEl.remove();

                    renderMessage(msg.from, msg.text);
                    await delay(1200);
                }

                // Update stepper for main stages
                if (step.stage === 0) { updateProgressStepper(0); updateMASGraph(0); inputStatus.textContent = 'Transkription abgeschlossen. Starte Context...'; }
                if (step.stage === 0.5) { updateMASGraph(0.5); inputStatus.textContent = 'Starte Kontext-Anreicherung...'; }
                if (step.stage === 1) { updateProgressStepper(1); updateMASGraph(1); inputStatus.textContent = 'Context geladen. Extrahiere Requirements...'; }
                if (step.stage === 1.5) { updateMASGraph(1.5); inputStatus.textContent = 'Starte Requirements-Extraktion...'; }
                if (step.stage === 2) { updateProgressStepper(2); updateMASGraph(2); inputStatus.textContent = 'Requirements extrahiert. Zerlege in Epics...'; }
                if (step.stage === 2.5) { updateMASGraph(2.5); inputStatus.textContent = 'Starte Epic-Zerlegung...'; }
                if (step.stage === 3) { updateProgressStepper(3); updateMASGraph(3); inputStatus.textContent = 'Epics erstellt. Erstelle finales Backlog...'; }
                if (step.stage === 4) { 
                    updateProgressStepper(4); 
                    updateMASGraph(4);
                    inputStatus.textContent = 'Pipeline abgeschlossen ✓'; 
                    btnNext.textContent = '✓ Erledigt';
                    btnNext.classList.add('opacity-40', 'cursor-not-allowed');
                    btnNext.onclick = null;
                }

                await delay(1000);
            }

            // Done
            state.running = false;
            state.currentStage = 4;
            state._skipToNext = false;
            btnStart.disabled = true;
            btnStart.classList.add('opacity-40', 'cursor-not-allowed');
            btnNext.classList.add('hidden');
            btnNext.classList.remove('flex');
            btnNext.classList.add('opacity-40', 'cursor-not-allowed');
            
            // ═══ ZOOM-OUT: Vom Backlog zum Development Team ═══
            await delay(1500);
            inputStatus.textContent = 'Backlog übergeben...';
            await showZoomOut();
        }

        // ═══ ZOOM-OUT: Backlog → Development ═══
        async function showZoomOut() {
            // Add zoom-out message in chat
            const zoomMsg = document.createElement('div');
            zoomMsg.className = 'flex gap-3 chat-message';
            zoomMsg.innerHTML = `
                <div class="w-7 h-7 flex items-center justify-center shrink-0 bg-ibm-blue/10">
                    <i data-lucide="maximize" class="w-3.5 h-3.5 text-ibm-blue"></i>
                </div>
                <div class="bg-ibm-dark border border-ibm-blue/30 p-5 w-full">
                    <div class="text-xs text-ibm-blue font-bold font-ibm-mono mb-3">ZOOM OUT — Der gesamte Prozess</div>
                    <div class="flex flex-col sm:flex-row items-center justify-between gap-4 py-2">
                        <!-- Current: Requirements Engineering -->
                        <div class="text-center flex-1">
                            <div class="w-10 h-10 bg-ibm-surface border border-ibm-surface-light flex items-center justify-center mx-auto mb-2">
                                <span class="text-xs font-ibm-mono text-ibm-text-muted">⏱</span>
                            </div>
                            <div class="text-xs font-bold text-ibm-text mb-1">Requirements Engineering</div>
                            <div class="text-xs text-ibm-text-muted leading-relaxed">
                                Meeting → Backlog<br>
                                <span class="text-ibm-success font-ibm-mono">in 2:34 min</span>
                            </div>
                        </div>
                        <!-- Arrow -->
                        <div class="flex flex-col items-center shrink-0">
                            <i data-lucide="arrow-right" class="w-5 h-5 text-ibm-blue"></i>
                            <span class="text-xs text-ibm-text-muted font-ibm-mono mt-1">HANDOFF</span>
                        </div>
                        <!-- Outlook: Development Team -->
                        <div class="text-center flex-1">
                            <div class="w-10 h-10 bg-ibm-blue/10 border border-ibm-blue/20 flex items-center justify-center mx-auto mb-2">
                                <span class="text-xs font-ibm-mono text-ibm-blue">⚡</span>
                            </div>
                            <div class="text-xs font-bold text-ibm-text mb-1">Development Team</div>
                            <div class="text-xs text-ibm-text-muted leading-relaxed">
                                8 Epics · 30 Tasks<br>
                                <span class="text-ibm-blue font-ibm-mono">ready to build</span>
                            </div>
                        </div>
                    </div>
                    <div class="mt-3 pt-3 border-t border-ibm-surface-light text-center">
                        <span class="text-xs text-ibm-text-secondary">
                            <span class="text-ibm-warning">▲</span> Vorher: <span class="text-ibm-text-muted">~3 Tage</span> manueller Breakdown &nbsp;→&nbsp; 
                            <span class="text-ibm-success">▼</span> Jetzt: <span class="text-ibm-success">2:34 min</span> mit IBM Watson X MAS
                        </span>
                    </div>
                </div>
            `;
            chatContainer.appendChild(zoomMsg);
            chatContainer.scrollTop = chatContainer.scrollHeight;
            lucide.createIcons();

            await delay(2000);
            inputStatus.textContent = '✓ Backlog an Development Team übergeben.';
        }

        function advanceManually() {
            // Fast-forward to completion
            if (!state.running) return;
            clearAllTimers();
            state.running = false;
            state._skipToNext = false;
            setTimeout(() => fastForward(), 50);
        }

        async function fastForward() {
            // Instantly reveal all remaining messages
            clearAllTimers();
            document.querySelectorAll('#typing').forEach(el => el.remove());

            state.running = true;
            state._skipToNext = false;

            for (const step of pipeline) {
                if (step.stage <= state.currentStage && state.currentStage > 0) continue;
                for (const msg of step.messages) {
                    const existingTyping = document.getElementById('typing');
                    if (existingTyping) existingTyping.remove();
                    renderMessage(msg.from, msg.text);
                }
                if (step.stage === 0) updateProgressStepper(0);
                if (step.stage === 1) updateProgressStepper(1);
                if (step.stage === 2) updateProgressStepper(2);
                if (step.stage === 3) updateProgressStepper(3);
                if (step.stage === 4) updateProgressStepper(4);
            }

            updateMASGraph(4);

            state.running = false;
            state.currentStage = 4;
            updateProgressStepper(4);
            btnStart.disabled = true;
            btnStart.classList.add('opacity-40', 'cursor-not-allowed');
            btnNext.classList.add('hidden');
            btnNext.classList.remove('flex');
            btnNext.classList.add('opacity-40', 'cursor-not-allowed');
            
            // Zoom-out
            setTimeout(async () => {
                inputStatus.textContent = 'Backlog übergeben...';
                await showZoomOut();
            }, 600);
        }

        function resetSimulation() {
            clearAllTimers();
            state.running = false;
            state.currentStage = -1;
            state.chatMessages = [];
            state.autoAdvance = true;
            state._skipToNext = false;

            // Clear chat
            chatContainer.innerHTML = `
                <div class="flex justify-center items-center h-full" id="chat-empty">
                    <div class="text-center">
                        <i data-lucide="cpu" class="w-10 h-10 text-ibm-surface-light mx-auto mb-3"></i>
                        <p class="text-ibm-text-muted text-sm">Klicken Sie „Pipeline starten", um die Simulation zu beginnen.</p>
                    </div>
                </div>
            `;

            // Reset stepper
            document.querySelectorAll('.stepper-stage').forEach(el => {
                el.querySelector('div').className = 'w-8 h-8 flex items-center justify-center text-xs font-bold font-ibm-mono border border-ibm-surface-light text-ibm-text-secondary';
                el.querySelector('span').className = 'text-xs font-medium text-ibm-text-secondary hidden sm:inline';
            });
            document.querySelectorAll('.stepper-line').forEach(l => {
                l.className = 'flex-1 h-px bg-ibm-surface-light mx-3 stepper-line';
            });

            btnStart.disabled = false;
            btnStart.classList.remove('opacity-40', 'cursor-not-allowed');
            btnNext.classList.add('hidden');
            btnNext.classList.remove('flex');
            btnNext.classList.remove('opacity-40', 'cursor-not-allowed');
            btnNext.textContent = 'Nächster Schritt';
            btnNext.innerHTML = '<i data-lucide="chevron-right" class="w-4 h-4"></i> Nächster Schritt';
            btnNext.onclick = advanceManually;
            inputStatus.textContent = 'Supervisor steht bereit...';

            updateMASGraph(-1);

            lucide.createIcons();
        }
    </script>

    <!-- ── Fade-in Observer ── -->
    <script>
        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.classList.add('visible');
                }
            });
        }, {
            threshold: 0.15,
            rootMargin: '0px 0px -50px 0px'
        });

        document.querySelectorAll('.fade-in-up').forEach(el => {
            observer.observe(el);
        });

        setTimeout(() => {
            document.querySelectorAll('.fade-in-up').forEach(el => {
                const rect = el.getBoundingClientRect();
                if (rect.top < window.innerHeight) {
                    el.classList.add('visible');
                }
            });
        }, 100);
    </script>

    <!-- ── Lucide Icons Init ── -->
    <script>
        lucide.createIcons();
    </script>

</body>
</html>