oxo-call 0.11.0

Model-intelligent orchestration for CLI bioinformatics — call any tool with LLM intelligence
Documentation
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
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>oxo-call — Model-intelligent orchestration for CLI bioinformatics</title>
  <meta name="description" content="Describe your bioinformatics task in plain language. oxo-call fetches tool documentation, grounds it with a built-in skill, and asks your LLM backend to generate the exact flags you need." />
  <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=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet" />
  <style>
    :root {
      --bg:        #0d1117;
      --surface:   #161b22;
      --border:    #30363d;
      --accent:    #58a6ff;
      --accent2:   #3fb950;
      --accent3:   #f78166;
      --accent4:   #d2a8ff;
      --muted:     #8b949e;
      --text:      #e6edf3;
      --text-dim:  #c9d1d9;
      --header-h:  56px;
    }

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

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 15px;
      line-height: 1.6;
      min-height: 100vh;
    }

    /* ── Nav ───────────────────────────────────────────────────────────── */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      height: var(--header-h);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2rem;
      background: rgba(13, 17, 23, 0.85);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      font-family: 'JetBrains Mono', monospace;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--accent);
      text-decoration: none;
      letter-spacing: -0.5px;
    }
    .nav-logo span { color: var(--accent2); }

    .nav-links {
      display: flex;
      gap: 1.5rem;
      list-style: none;
      align-items: center;
    }
    .nav-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.875rem;
      transition: color 0.15s;
    }
    .nav-links a:hover { color: var(--text); }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.45rem 1rem;
      border-radius: 6px;
      font-size: 0.85rem;
      font-weight: 500;
      text-decoration: none;
      transition: opacity 0.15s, transform 0.1s;
      cursor: pointer;
      border: none;
    }
    .btn:hover { opacity: 0.85; transform: translateY(-1px); }
    .btn-primary  { background: var(--accent);  color: #0d1117; }
    .btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
    .btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }

    /* ── Hero ──────────────────────────────────────────────────────────── */
    .hero {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
      padding: 5rem 2rem 4rem;
    }

    .hero-text h1 {
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -0.5px;
      margin-bottom: 1.25rem;
    }
    .hero-text h1 em {
      font-style: normal;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero-text p {
      color: var(--text-dim);
      font-size: 1.05rem;
      margin-bottom: 2rem;
      max-width: 480px;
    }
    .hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

    /* ── Terminal Window ───────────────────────────────────────────────── */
    .term-window {
      background: #010409;
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.8rem;
    }
    .term-titlebar {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 0.6rem 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .dot { width: 12px; height: 12px; border-radius: 50%; }
    .dot-r { background: #ff5f57; }
    .dot-y { background: #febc2e; }
    .dot-g { background: #28c840; }
    .term-title {
      flex: 1;
      text-align: center;
      color: var(--muted);
      font-size: 0.75rem;
    }
    .term-body {
      padding: 1.2rem 1.4rem;
      min-height: 280px;
      line-height: 1.7;
    }

    .term-line { display: block; }
    .prompt  { color: var(--accent2); }
    .cmd     { color: var(--text); }
    .output  { color: var(--muted); }
    .flag    { color: var(--accent4); }
    .tool    { color: var(--accent); }
    .success { color: var(--accent2); }
    .warn    { color: #e3b341; }
    .cursor  {
      display: inline-block;
      width: 8px;
      height: 1.1em;
      background: var(--accent);
      vertical-align: text-bottom;
      animation: blink 1s step-end infinite;
    }

    @keyframes blink { 50% { opacity: 0; } }

    /* ── Badges ────────────────────────────────────────────────────────── */
    .badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.2rem 0.6rem;
      border-radius: 20px;
      font-size: 0.72rem;
      font-family: 'JetBrains Mono', monospace;
      border: 1px solid var(--border);
      color: var(--muted);
    }

    /* ── Section wrapper ───────────────────────────────────────────────── */
    section {
      max-width: 1200px;
      margin: 0 auto;
      padding: 4rem 2rem;
    }
    .section-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.75rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.75rem;
    }
    .section-title {
      font-size: clamp(1.4rem, 3vw, 2rem);
      font-weight: 700;
      margin-bottom: 1rem;
    }
    .section-body {
      color: var(--text-dim);
      max-width: 560px;
      margin-bottom: 2.5rem;
    }
    hr.divider {
      border: none;
      border-top: 1px solid var(--border);
      margin: 0;
    }

    /* ── Features grid ─────────────────────────────────────────────────── */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.25rem;
    }
    .feature-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.4rem;
      transition: border-color 0.2s, transform 0.15s;
    }
    .feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
    .feature-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
    .feature-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
    .feature-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

    /* ── Tools grid ─────────────────────────────────────────────────────── */
    .tools-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      grid-template-rows: repeat(2, auto);
      gap: 1rem;
      max-height: 340px;
      overflow: hidden;
      overflow: hidden;
      perspective: 1000px;
      position: relative;
    }
    .tools-grid::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 80px;
      background: linear-gradient(to bottom, transparent, var(--bg));
      pointer-events: none;
      z-index: 5;
    }
    .tool-card {
      background: linear-gradient(135deg, var(--surface) 0%, rgba(88,166,255,0.03) 100%);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.2rem 1rem;
      font-family: 'JetBrains Mono', monospace;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transform-style: preserve-3d;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      animation: 
        toolFloat 6s ease-in-out infinite,
        toolGlow 4s ease-in-out infinite,
        toolPulse 8s ease-in-out infinite;
    }
    .tool-card::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(88,166,255,0.03) 50%,
        transparent 70%
      );
      animation: shimmer 6s linear infinite;
      pointer-events: none;
    }
    .tool-card::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 12px;
      padding: 1px;
      background: linear-gradient(135deg, rgba(88,166,255,0), rgba(88,166,255,0.3), rgba(63,185,80,0));
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      opacity: 0;
      transition: opacity 0.3s;
      animation: borderRotate 4s linear infinite;
    }
    /* Staggered animation delays for wave effect */
    .tool-card:nth-child(1)  { animation-delay: 0s, 0s, 0s; }
    .tool-card:nth-child(2)  { animation-delay: 0.15s, 0.5s, 0.3s; }
    .tool-card:nth-child(3)  { animation-delay: 0.3s, 1s, 0.6s; }
    .tool-card:nth-child(4)  { animation-delay: 0.45s, 1.5s, 0.9s; }
    .tool-card:nth-child(5)  { animation-delay: 0.6s, 2s, 1.2s; }
    .tool-card:nth-child(6)  { animation-delay: 0.75s, 2.5s, 1.5s; }
    .tool-card:nth-child(7)  { animation-delay: 0.9s, 3s, 1.8s; }
    .tool-card:nth-child(8)  { animation-delay: 1.05s, 0s, 2.1s; }
    .tool-card:nth-child(9)  { animation-delay: 1.2s, 0.5s, 2.4s; }
    .tool-card:nth-child(10) { animation-delay: 1.35s, 1s, 2.7s; }
    .tool-card:nth-child(11) { animation-delay: 1.5s, 1.5s, 0s; }
    .tool-card:nth-child(12) { animation-delay: 1.65s, 2s, 0.3s; }
    .tool-card:nth-child(13) { animation-delay: 1.8s, 2.5s, 0.6s; }
    .tool-card:nth-child(14) { animation-delay: 1.95s, 3s, 0.9s; }
    .tool-card:nth-child(15) { animation-delay: 2.1s, 0s, 1.2s; }
    .tool-card:nth-child(16) { animation-delay: 2.25s, 0.5s, 1.5s; }
    .tool-card:nth-child(17) { animation-delay: 2.4s, 1s, 1.8s; }
    .tool-card:nth-child(18) { animation-delay: 2.55s, 1.5s, 2.1s; }
    .tool-card:nth-child(19) { animation-delay: 2.7s, 2s, 2.4s; }
    .tool-card:nth-child(20) { animation-delay: 2.85s, 2.5s, 2.7s; }
    .tool-card:nth-child(21) { animation-delay: 3s, 3s, 0s; }
    .tool-card:nth-child(22) { animation-delay: 3.15s, 0s, 0.3s; }
    .tool-card:nth-child(23) { animation-delay: 3.3s, 0.5s, 0.6s; }
    .tool-card:nth-child(24) { animation-delay: 3.45s, 1s, 0.9s; }
    .tool-card:nth-child(25) { animation-delay: 3.6s, 1.5s, 1.2s; }
    .tool-card:nth-child(26) { animation-delay: 3.75s, 2s, 1.5s; }
    .tool-card:nth-child(27) { animation-delay: 3.9s, 2.5s, 1.8s; }
    .tool-card:nth-child(28) { animation-delay: 4.05s, 3s, 2.1s; }
    
    @keyframes toolFloat {
      0%, 100% { transform: translateY(0) rotateX(0deg); }
      25% { transform: translateY(-6px) rotateX(2deg); }
      50% { transform: translateY(-3px) rotateX(0deg); }
      75% { transform: translateY(-8px) rotateX(-2deg); }
    }
    @keyframes toolGlow {
      0%, 100% { 
        box-shadow: 0 2px 8px rgba(88,166,255,0), inset 0 1px 0 rgba(255,255,255,0.02);
        border-color: var(--border);
      }
      50% { 
        box-shadow: 0 4px 20px rgba(88,166,255,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
        border-color: rgba(88,166,255,0.4);
      }
    }
    @keyframes toolPulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.85; }
    }
    @keyframes shimmer {
      0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
      100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    }
    @keyframes borderRotate {
      0% { background: linear-gradient(0deg, rgba(88,166,255,0), rgba(88,166,255,0.3), rgba(63,185,80,0)); }
      25% { background: linear-gradient(90deg, rgba(88,166,255,0), rgba(88,166,255,0.3), rgba(63,185,80,0)); }
      50% { background: linear-gradient(180deg, rgba(88,166,255,0), rgba(88,166,255,0.3), rgba(63,185,80,0)); }
      75% { background: linear-gradient(270deg, rgba(88,166,255,0), rgba(88,166,255,0.3), rgba(63,185,80,0)); }
      100% { background: linear-gradient(360deg, rgba(88,166,255,0), rgba(88,166,255,0.3), rgba(63,185,80,0)); }
    }
    .tool-card:hover {
      transform: translateY(-12px) scale(1.05) rotateX(5deg);
      border-color: var(--accent);
      background: linear-gradient(135deg, rgba(88,166,255,0.15) 0%, var(--surface) 100%);
      box-shadow: 
        0 20px 40px rgba(88,166,255,0.2),
        0 0 30px rgba(88,166,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
      z-index: 10;
      animation-play-state: paused;
    }
    .tool-card:hover::after {
      opacity: 1;
    }
    .tool-card:hover::before {
      animation-duration: 2s;
    }
    .tool-name { 
      font-size: 0.95rem; 
      font-weight: 700; 
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 0.4rem;
      position: relative;
      z-index: 1;
    }
    .tool-desc { 
      font-size: 0.75rem; 
      color: var(--muted); 
      font-family: 'Inter', sans-serif;
      position: relative;
      z-index: 1;
    }
    .tool-icon {
      font-size: 1.8rem;
      margin-bottom: 0.5rem;
      opacity: 0.9;
      filter: drop-shadow(0 2px 8px rgba(88,166,255,0.25));
      animation: iconPulse 3s ease-in-out infinite;
      display: inline-block;
    }
    @keyframes iconPulse {
      0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 8px rgba(88,166,255,0.25)); }
      50% { transform: scale(1.1); filter: drop-shadow(0 4px 12px rgba(88,166,255,0.4)); }
    }
    .tool-card:nth-child(2n) .tool-icon { animation-delay: 0.5s; }
    .tool-card:nth-child(3n) .tool-icon { animation-delay: 1s; }
    .tool-card:nth-child(5n) .tool-icon { animation-delay: 1.5s; }
    .tool-card:nth-child(7n) .tool-icon { animation-delay: 2s; }

    /* ── Interactive Demo ──────────────────────────────────────────────── */
    .demo-wrapper {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 1.5rem;
      align-items: start;
    }
    .demo-sidebar {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }
    .demo-sidebar-title {
      padding: 0.75rem 1rem;
      font-size: 0.75rem;
      font-family: 'JetBrains Mono', monospace;
      color: var(--muted);
      border-bottom: 1px solid var(--border);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .demo-example {
      padding: 0.8rem 1rem;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      transition: background 0.15s;
    }
    .demo-example:last-child { border-bottom: none; }
    .demo-example:hover { background: rgba(88,166,255,0.05); }
    .demo-example.active { background: rgba(88,166,255,0.1); border-left: 2px solid var(--accent); }
    .demo-ex-tool { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: var(--accent); font-weight: 600; }
    .demo-ex-task { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }

    .demo-terminal {
      background: #010409;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }
    .demo-term-body {
      padding: 1.25rem 1.5rem;
      min-height: 320px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.8rem;
      line-height: 1.8;
    }

    /* ── Install / Quick start ─────────────────────────────────────────── */
    .code-block {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 1rem;
    }
    .code-block-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.5rem 1rem;
      border-bottom: 1px solid var(--border);
      font-size: 0.75rem;
      color: var(--muted);
    }
    pre {
      margin: 0;
      padding: 1rem 1.25rem;
      overflow-x: auto;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.82rem;
      line-height: 1.7;
      color: var(--text-dim);
    }
    pre .c { color: var(--muted); font-style: italic; }
    pre .k { color: var(--accent4); }
    pre .s { color: var(--accent2); }

    /* ── Footer ────────────────────────────────────────────────────────── */
    footer {
      border-top: 1px solid var(--border);
      padding: 2rem;
      text-align: center;
      color: var(--muted);
      font-size: 0.82rem;
    }
    footer a { color: var(--accent); text-decoration: none; }
    footer a:hover { text-decoration: underline; }

    /* ── Copy button ────────────────────────────────────────────────────── */
    .copy-btn {
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--muted);
      cursor: pointer;
      padding: 0.2rem 0.5rem;
      font-size: 0.72rem;
      font-family: 'JetBrains Mono', monospace;
      transition: border-color 0.15s, color 0.15s;
    }
    .copy-btn:hover { border-color: var(--accent); color: var(--accent); }
    .copy-btn.copied { border-color: var(--accent2); color: var(--accent2); }

    /* ── Responsive ─────────────────────────────────────────────────────── */
    @media (max-width: 900px) {
      .hero { grid-template-columns: 1fr; gap: 2rem; }
      .demo-wrapper { grid-template-columns: 1fr; }
      .demo-sidebar { display: none; }
    }
    @media (max-width: 600px) {
      nav { padding: 0 1rem; }
      section { padding: 2.5rem 1rem; }
      .hero { padding: 3rem 1rem 2rem; }
      .nav-links { display: none; }
    }

    /* ── Community banner ────────────────────────────────────────────────── */
    .community-banner {
      background: linear-gradient(135deg, rgba(88,166,255,0.08), rgba(63,185,80,0.06));
      border: 1px solid rgba(88,166,255,0.25);
      border-radius: 12px;
      padding: 2.5rem 2rem;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 2rem;
      align-items: center;
    }
    .community-banner h2 {
      font-size: clamp(1.2rem, 2.5vw, 1.6rem);
      font-weight: 700;
      margin-bottom: 0.5rem;
    }
    .community-banner p {
      color: var(--text-dim);
      font-size: 0.9rem;
      max-width: 560px;
      margin-bottom: 1.25rem;
    }
    .community-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
    }
    .community-links {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.6rem;
      min-width: 240px;
    }
    .community-link {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.55rem 0.9rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      text-decoration: none;
      font-size: 0.82rem;
      color: var(--text-dim);
      transition: border-color 0.15s, color 0.15s;
      white-space: nowrap;
    }
    .community-link:hover { border-color: var(--accent); color: var(--accent); }
    .community-link .emoji { font-size: 1rem; }
    @media (max-width: 800px) {
      .community-banner { grid-template-columns: 1fr; }
      .community-links { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 500px) {
      .community-links { grid-template-columns: 1fr; }
    }

    /* ── Wasm note ──────────────────────────────────────────────────────── */
    .wasm-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.2rem 0.7rem;
      background: rgba(88,166,255,0.1);
      border: 1px solid rgba(88,166,255,0.3);
      border-radius: 20px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.72rem;
      color: var(--accent);
      margin-bottom: 1rem;
    }
    .pulse {
      width: 6px; height: 6px;
      background: var(--accent2);
      border-radius: 50%;
      animation: pulse 2s ease-in-out infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50%       { opacity: 0.4; transform: scale(0.7); }
    }

    /* ── Arch diagram ───────────────────────────────────────────────────── */
    .arch-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 0;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }
    .arch-step {
      padding: 1.25rem;
      text-align: center;
      border-right: 1px solid var(--border);
    }
    .arch-step:last-child { border-right: none; }
    .arch-step-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
    .arch-step-title { font-size: 0.78rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
    .arch-step-desc  { font-size: 0.7rem; color: var(--muted); }
    @media (max-width: 800px) {
      .arch-grid { grid-template-columns: 1fr 1fr; }
      .arch-step { border-right: none; border-bottom: 1px solid var(--border); }
      .arch-step:last-child { border-bottom: none; }
    }
    /* ── Benchmark tables ───────────────────────────────────────────────── */
    .bench-tabs {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }
    .bench-tab {
      padding: 0.4rem 1rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-family: 'JetBrains Mono', monospace;
      border: 1px solid var(--border);
      color: var(--muted);
      background: transparent;
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s, background 0.15s;
    }
    .bench-tab:hover { border-color: var(--accent); color: var(--accent); }
    .bench-tab.active {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(88,166,255,0.1);
    }
    .bench-panel { display: none; }
    .bench-panel.active { display: block; }
    .bench-table-wrap {
      overflow-x: auto;
      border: 1px solid var(--border);
      border-radius: 8px;
    }
    .bench-table {
      width: 100%;
      border-collapse: collapse;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.8rem;
    }
    .bench-table thead tr {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
    }
    .bench-table th {
      padding: 0.6rem 1rem;
      text-align: left;
      color: var(--accent);
      font-weight: 600;
      white-space: nowrap;
    }
    .bench-table td {
      padding: 0.55rem 1rem;
      color: var(--text-dim);
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
    }
    .bench-table tbody tr:last-child td { border-bottom: none; }
    .bench-table tbody tr:hover { background: rgba(88,166,255,0.04); }
    .bench-num { color: var(--text); text-align: right; }
    .bench-ok  { color: var(--accent2); }
    .bench-badge-assay {
      display: inline-block;
      padding: 0.15rem 0.5rem;
      border-radius: 12px;
      font-size: 0.72rem;
      border: 1px solid var(--border);
      color: var(--muted);
    }
    .bench-cat {
      display: inline-block;
      padding: 0.15rem 0.5rem;
      border-radius: 12px;
      font-size: 0.72rem;
      border: 1px solid var(--border);
      color: var(--accent4);
    }
    #eval-table {
      width: 100%;
    }
    #eval-table colgroup col:nth-child(1) {
      width: 12%;
    }
    #eval-table colgroup col:nth-child(2) {
      width: 10%;
    }
    #eval-table colgroup col:nth-child(3) {
      width: 48%;
    }
    #eval-table colgroup col:nth-child(4) {
      width: 30%;
    }
    #eval-table th {
      vertical-align: middle;
      padding: 0.6rem 0.8rem;
      white-space: nowrap;
    }
    #eval-table td {
      vertical-align: top;
      padding: 0.6rem 0.8rem;
    }
    #eval-table td:nth-child(3) {
      word-break: break-word;
      line-height: 1.5;
    }
    #eval-table td:nth-child(4) {
      word-break: break-word;
      line-height: 1.4;
      color: var(--muted);
    }
    .bench-note {
      font-size: 0.78rem;
      color: var(--muted);
      margin-top: 1rem;
      font-family: 'Inter', sans-serif;
    }
    .bench-note code {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.76rem;
      background: var(--surface);
      padding: 0.1rem 0.3rem;
      border-radius: 3px;
      border: 1px solid var(--border);
    }
    .bench-loading { color: var(--muted); font-size: 0.85rem; padding: 1.5rem 0; }

    /* ── PayPal Payment Section ─────────────────────────────────────────── */
    .paypal-section {
      margin-top: 2rem;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }
    .paypal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 1.25rem;
      background: var(--surface);
      cursor: pointer;
      transition: background 0.15s;
    }
    .paypal-header:hover {
      background: rgba(88, 166, 255, 0.05);
    }
    .paypal-title {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 600;
      color: var(--text);
    }
    .paypal-icon {
      font-size: 1.25rem;
    }
    .paypal-toggle {
      color: var(--muted);
      font-size: 0.9rem;
      transition: transform 0.2s;
    }
    .paypal-section.open .paypal-toggle {
      transform: rotate(180deg);
    }
    .paypal-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-out;
    }
    .paypal-section.open .paypal-content {
      max-height: 500px;
    }
    .paypal-inner {
      padding: 1.5rem;
      display: grid;
      grid-template-columns: 200px 1fr;
      gap: 2rem;
      align-items: start;
    }
    .paypal-qr {
      text-align: center;
    }
    .paypal-qr img {
      width: 180px;
      height: 180px;
      border-radius: 8px;
      border: 1px solid var(--border);
    }
    .paypal-info h4 {
      margin: 0 0 0.75rem 0;
      color: var(--accent);
      font-size: 0.95rem;
    }
    .paypal-info p {
      margin: 0 0 0.5rem 0;
      color: var(--text-dim);
      font-size: 0.85rem;
      line-height: 1.6;
    }
    .paypal-info .price {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--accent2);
      margin: 0.5rem 0;
    }
    .paypal-note {
      margin-top: 1rem;
      padding: 0.75rem 1rem;
      background: rgba(243, 166, 88, 0.1);
      border-left: 3px solid var(--accent3);
      border-radius: 0 4px 4px 0;
      font-size: 0.8rem;
      color: var(--text-dim);
    }
    @media (max-width: 600px) {
      .paypal-inner {
        grid-template-columns: 1fr;
        text-align: center;
      }
      .paypal-qr img {
        width: 160px;
        height: 160px;
      }
    }
  </style>
</head>
<body>

<!-- ── Navigation ──────────────────────────────────────────────────────── -->
<nav>
  <a class="nav-logo" href="#">oxo<span>-call</span></a>
  <ul class="nav-links">
    <li><a href="#features">Features</a></li>
    <li><a href="#demo">Demos</a></li>
    <li><a href="#tools">Skills</a></li>
    <li><a href="#job">Jobs</a></li>
    <li><a href="#workflow">Workflows</a></li>
    <li><a href="#benchmarks">Benchmarks</a></li>
    <li><a href="#community">Community</a></li>
    <li><a href="#install">Install</a></li>
    <li><a href="documentation/index.html">Docs</a></li>
    <li><a href="https://github.com/Traitome/oxo-call" target="_blank" rel="noopener">GitHub</a></li>
  </ul>
  <a href="https://github.com/Traitome/oxo-call" class="btn btn-primary btn-sm" target="_blank" rel="noopener">
    ★ Star on GitHub
  </a>
</nav>

<!-- ── Hero ────────────────────────────────────────────────────────────── -->
<div class="hero">
  <div class="hero-text">
    <div class="badges">
      <span class="badge">🦀 Rust 2024</span>
      <span class="badge">🧬 Bioinformatics</span>
      <span class="badge">🤖 LLM-powered</span>
      <span class="badge">⚡ WebAssembly</span>
    </div>
    <h1>Model-intelligent<br/>orchestration for<br/><em>CLI bioinformatics</em></h1>
    <p>
      Describe your task in plain language —&nbsp;oxo-call fetches the tool's
      documentation, grounds the request with a built-in skill, and asks your
      LLM backend to generate the exact flags you need.
    </p>
    <div class="hero-actions">
      <a href="#install" class="btn btn-primary">Get started</a>
      <a href="documentation/index.html" class="btn btn-secondary">Documentation</a>
      <a href="#demo"    class="btn btn-secondary">Show demos</a>
      <a href="https://github.com/Traitome/oxo-call" class="btn btn-secondary" target="_blank" rel="noopener">GitHub →</a>
    </div>
  </div>

  <!-- Hero terminal: auto-playing animation -->
  <div class="term-window" id="hero-term">
    <div class="term-titlebar">
      <span class="dot dot-r"></span>
      <span class="dot dot-y"></span>
      <span class="dot dot-g"></span>
      <span class="term-title">bash — oxo-call</span>
    </div>
    <div class="term-body" id="hero-term-body">
      <span class="term-line"><span class="prompt">$ </span><span id="hero-typing"></span><span class="cursor" id="hero-cursor"></span></span>
    </div>
  </div>
</div>

<hr class="divider" />

<!-- ── Architecture ─────────────────────────────────────────────────────── -->
<section>
  <div class="section-label">// architecture</div>
  <div class="arch-grid">
    <div class="arch-step">
      <div class="arch-step-icon">💬</div>
      <div class="arch-step-title">Natural Language</div>
      <div class="arch-step-desc">Describe your task</div>
    </div>
    <div class="arch-step">
      <div class="arch-step-icon">📚</div>
      <div class="arch-step-title">Docs Layer</div>
      <div class="arch-step-desc">--help · cache · remote URL · local files</div>
    </div>
    <div class="arch-step">
      <div class="arch-step-icon">🎯</div>
      <div class="arch-step-title">Skill System</div>
      <div class="arch-step-desc">built-in → community → user</div>
    </div>
    <div class="arch-step">
      <div class="arch-step-icon">🤖</div>
      <div class="arch-step-title">LLM Backend</div>
      <div class="arch-step-desc">Copilot · OpenAI · Ollama</div>
    </div>
    <div class="arch-step">
      <div class="arch-step-icon">⚙️</div>
      <div class="arch-step-title">Command</div>
      <div class="arch-step-desc">run · dry-run · --ask</div>
    </div>
  </div>
</section>

<hr class="divider" />

<!-- ── Features ─────────────────────────────────────────────────────────── -->
<section id="features">
  <div class="section-label">// features</div>
  <h2 class="section-title">Everything you need to stop<br/>remembering flags</h2>
  <p class="section-body">
    oxo-call wraps the full command-generation workflow — from fetching live
    documentation to grounding the LLM with expert skills — into a single
    two-word command.
  </p>
  <div class="features-grid">
    <div class="feature-card">
      <div class="feature-icon">🧠</div>
      <h3>LLM-powered parameter generation</h3>
      <p>Describe what you want in plain English. The model generates the right flags, grounded in the actual tool documentation.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">📚</div>
      <h3>Automatic documentation fetching</h3>
      <p>Grabs <code>--help</code> output and optionally fetches remote docs or man pages. Works even if the tool isn't installed locally.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🔍</div>
      <h3>Dry-run mode</h3>
      <p>Preview the exact command that would be executed before committing. Never accidentally overwrite files again.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🎯</div>
      <h3>Built-in skill system</h3>
      <p>Expert knowledge for 159 tools baked in as skill files — bioinformatics, HPC schedulers, containers, and more, with real examples and pitfalls ready for practical use.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🔗</div>
      <h3>Native workflow engine</h3>
      <p>Run <code>.oxo.toml</code> pipelines natively — DAG parallelism, wildcard expansion, output caching. Export to <strong>Snakemake</strong> or <strong>Nextflow</strong> for HPC compatibility.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🔧</div>
      <h3>Flexible LLM backends</h3>
      <p>GitHub Copilot (default), OpenAI, Anthropic, or a local Ollama instance — switch with one config key.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">📜</div>
      <h3>Command history</h3>
      <p>Every run is logged as JSONL with exit code, timestamp, and generated command. Filter by tool for quick lookup.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🗂️</div>
      <h3>Auto documentation cache</h3>
      <p>Tool help is fetched and cached automatically on first use. Enrich with remote URLs, local files, or directories via <code>oxo-call docs add</code>.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🖥️</div>
      <h3>Remote server management</h3>
      <p>Register workstations and HPC clusters via SSH. Generate commands for remote execution with login-node safety checks and scheduler integration (Slurm, PBS, SGE, LSF).</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🏗️</div>
      <h3>HPC cluster skills</h3>
      <p>Built-in skills for Slurm, PBS, SGE, LSF, HTCondor, and Kubernetes — job templates, resource queries, and array job patterns for quick HPC script generation.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">📋</div>
      <h3>Job library with lifecycle management</h3>
      <p>Save named shell shortcuts (<code>oxo-call job add</code>), attach cron schedules, track run history and exit codes, and generate jobs from plain-English descriptions via the LLM. 25+ built-in templates for common ops, HPC, and bioinformatics tasks.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🔀</div>
      <h3>Variable interpolation &amp; batch execution</h3>
      <p>Use <code>--var KEY=VALUE</code> for custom placeholders, <code>{item}</code> for batch input, and <code>-j N</code> for parallel execution. Process hundreds of files with a single command.</p>
    </div>
  </div>
</section>

<hr class="divider" />

<!-- ── Interactive Demo ─────────────────────────────────────────────────── -->
<section id="demo">
  <div class="section-label">// interactive demo</div>
  <h2 class="section-title">See it in action</h2>
  <p class="section-body">
    Click an example to watch oxo-call ground the task in documentation,
    load the matching skill, and produce the exact command arguments.
  </p>

  <div class="wasm-badge">
    <span class="pulse"></span>
    JS simulation · powered by the same prompt logic as the WASI binary
  </div>

  <div class="demo-wrapper">
    <!-- Sidebar with examples -->
    <div class="demo-sidebar">
      <div class="demo-sidebar-title">// examples</div>

      <div class="demo-example active" data-idx="0">
        <div class="demo-ex-tool">samtools sort</div>
        <div class="demo-ex-task">sort BAM by coordinate → sorted.bam</div>
      </div>
      <div class="demo-example" data-idx="1">
        <div class="demo-ex-tool">bwa mem</div>
        <div class="demo-ex-task">align paired reads, 16 threads</div>
      </div>
      <div class="demo-example" data-idx="2">
        <div class="demo-ex-tool">bcftools call</div>
        <div class="demo-ex-task">call variants from BAM</div>
      </div>
      <div class="demo-example" data-idx="3">
        <div class="demo-ex-tool">fastp</div>
        <div class="demo-ex-task">trim adapters, paired-end</div>
      </div>
      <div class="demo-example" data-idx="4">
        <div class="demo-ex-tool">minimap2</div>
        <div class="demo-ex-task">long-read genome alignment</div>
      </div>
      <div class="demo-example" data-idx="5">
        <div class="demo-ex-tool">seqkit stats</div>
        <div class="demo-ex-task">basic stats on a FASTQ file</div>
      </div>
      <div class="demo-example" data-idx="6">
        <div class="demo-ex-tool">variable interpolation</div>
        <div class="demo-ex-task">batch process with {item} and --var</div>
      </div>
    </div>

    <!-- Terminal output -->
    <div class="demo-terminal">
      <div class="term-titlebar">
        <span class="dot dot-r"></span>
        <span class="dot dot-y"></span>
        <span class="dot dot-g"></span>
        <span class="term-title" id="demo-term-title">oxo-call dry-run</span>
      </div>
      <div class="demo-term-body" id="demo-body">
        <!-- filled by JS -->
      </div>
    </div>
  </div>
</section>

<hr class="divider" />

<!-- ── Supported Tools ──────────────────────────────────────────────────── -->
<section id="tools">
  <div class="section-label">// built-in skills</div>
  <h2 class="section-title">Expert knowledge for 159 tools</h2>
  <p class="section-body">
    Each built-in skill encodes domain-specific concepts, common pitfalls, and
    worked examples so the LLM is guided beyond a raw <code>--help</code> dump.
  </p>
  <div class="tools-grid" id="tools-grid">
    <div class="tool-card" data-tool="samtools"><div class="tool-icon">🧬</div><div class="tool-name">samtools</div><div class="tool-desc">SAM/BAM/CRAM manipulation</div></div>
    <div class="tool-card" data-tool="bwa"><div class="tool-icon">🎯</div><div class="tool-name">bwa</div><div class="tool-desc">Burrows-Wheeler short-read aligner</div></div>
    <div class="tool-card" data-tool="bcftools"><div class="tool-icon">🧪</div><div class="tool-name">bcftools</div><div class="tool-desc">VCF/BCF variant calling & filtering</div></div>
    <div class="tool-card" data-tool="bedtools"><div class="tool-icon">🛏️</div><div class="tool-name">bedtools</div><div class="tool-desc">Genomic interval arithmetic</div></div>
    <div class="tool-card" data-tool="gatk"><div class="tool-icon">🔬</div><div class="tool-name">gatk</div><div class="tool-desc">Genome Analysis Toolkit</div></div>
    <div class="tool-card" data-tool="minimap2"><div class="tool-icon">📏</div><div class="tool-name">minimap2</div><div class="tool-desc">Long-read / splice-aware aligner</div></div>
    <div class="tool-card" data-tool="fastp"><div class="tool-icon">✂️</div><div class="tool-name">fastp</div><div class="tool-desc">Adapter trimming & QC</div></div>
    <div class="tool-card" data-tool="bowtie2"><div class="tool-icon">🎀</div><div class="tool-name">bowtie2</div><div class="tool-desc">Fast short-read aligner</div></div>
    <div class="tool-card" data-tool="seqkit"><div class="tool-icon">🧰</div><div class="tool-name">seqkit</div><div class="tool-desc">FASTA/Q toolkit</div></div>
    <div class="tool-card" data-tool="star"><div class="tool-icon"></div><div class="tool-name">star</div><div class="tool-desc">RNA-seq spliced aligner</div></div>
    <div class="tool-card" data-tool="slurm"><div class="tool-icon"></div><div class="tool-name">slurm</div><div class="tool-desc">HPC job scheduling (sbatch, srun)</div></div>
    <div class="tool-card" data-tool="pbs"><div class="tool-icon">📋</div><div class="tool-name">pbs</div><div class="tool-desc">PBS/Torque batch scheduler (qsub)</div></div>
  </div>
</section>

<hr class="divider" />

<!-- ── Job Library ──────────────────────────────────────────────────── -->
<section id="job">
  <div class="section-label">// job library</div>
  <h2 class="section-title">Named command shortcuts —<br/>with scheduling, history, and LLM generation</h2>
  <p class="section-body">
    <code>oxo-call job</code> is your personal library of named shell commands.
    Add any command once, then run it by name — locally or on a remote SSH server.
    Track execution history, set cron schedules, and let the LLM generate commands
    from plain-English descriptions.
  </p>

  <div class="features-grid" style="margin-top:2rem">
    <div class="feature-card">
      <div class="feature-icon">📋</div>
      <h3>Named command library</h3>
      <p>Save any shell command with <code>oxo-call job add</code>. Attach descriptions and tags. Run it anywhere with <code>oxo-call job run &lt;name&gt;</code>.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">📊</div>
      <h3>Execution history &amp; status</h3>
      <p>Every run is recorded with timestamp, exit code, and duration. <code>job status</code> shows a live dashboard; <code>job history</code> shows the full run log.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon"></div>
      <h3>Cron scheduling</h3>
      <p>Attach a cron expression with <code>job schedule &lt;name&gt; "0 * * * *"</code> and wire it to your crontab for automated execution.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🤖</div>
      <h3>LLM-generated jobs</h3>
      <p>Describe a task in plain English — <code>job generate "check disk and alert if over 90%"</code> — and the LLM generates and saves the shell command for you.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🗃️</div>
      <h3>25+ built-in templates</h3>
      <p>Browse ready-made jobs for SLURM, PBS, LSF, Kubernetes, Docker, Git, and bioinformatics with <code>oxo-call job list --builtin</code>. Import with one command.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🖥️</div>
      <h3>Local and remote execution</h3>
      <p>Run jobs locally or on any registered SSH server with <code>--server</code>. Integrates with the <code>server</code> subcommand for HPC cluster management.</p>
    </div>
  </div>

  <div class="code-block" style="margin-top:2rem">
    <div class="code-block-header">
      <span style="color:var(--muted);font-size:0.8rem">// job library commands</span>
      <button class="copy-btn" data-copy="oxo-call job import squeue-me && oxo-call job run squeue-me">copy</button>
    </div>
    <pre class="code-block-body"><span class="c"># Import a built-in SLURM template and run it</span>
<span class="prompt">$</span> oxo-call job list --builtin --tag slurm
<span class="prompt">$</span> oxo-call job import squeue-me
<span class="prompt">$</span> oxo-call job run squeue-me

<span class="c"># Generate a job from a plain-English description</span>
<span class="prompt">$</span> oxo-call job generate <span class="s">"show Docker containers over 1 GB memory"</span>

<span class="c"># View execution history and status</span>
<span class="prompt">$</span> oxo-call job status
<span class="prompt">$</span> oxo-call job history squeue-me</pre>
  </div>
</section>

<hr class="divider" />

<!-- ── Workflow Generation ──────────────────────────────────────────────────── -->
<section id="workflow">
  <div class="section-label">// workflow engine</div>
  <h2 class="section-title">Native Rust pipeline execution —<br/>Snakemake &amp; Nextflow as export formats</h2>
  <p class="section-body">
    <code>oxo-call workflow</code> runs bioinformatics pipelines directly with a
    lightweight built-in engine.  No Snakemake, Nextflow, or Conda needed.
    Export to either format for HPC environments that require them.
  </p>

  <div class="features-grid" style="margin-top:2rem">
    <div class="feature-card">
      <div class="feature-icon">⚙️</div>
      <h3>Native Rust engine</h3>
      <p>Run <code>.oxo.toml</code> workflows directly — no Snakemake or Nextflow required. DAG-based parallelism, wildcard expansion, output caching.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🔬</div>
      <h3>RNA-seq</h3>
      <p>fastp QC → STAR alignment → featureCounts quantification → MultiQC report. Run natively or export to Snakemake/Nextflow DSL2.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🧬</div>
      <h3>Whole-Genome Sequencing</h3>
      <p>fastp → BWA-MEM2 → GATK MarkDuplicates → BQSR → HaplotypeCaller GVCF. GATK best-practices out of the box.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🔓</div>
      <h3>ATAC-seq</h3>
      <p>fastp → Bowtie2 → Picard deduplication → blacklist filtering → MACS3 peak calling. Ready for downstream footprinting.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🌍</div>
      <h3>Shotgun Metagenomics</h3>
      <p>fastp → host read removal (Bowtie2) → Kraken2 classification → Bracken species abundance estimation.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon"></div>
      <h3>LLM-generated custom workflows</h3>
      <p>Describe any pipeline in plain language and get a complete, runnable <code>.oxo.toml</code>. One prompt → one deployable workflow.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🔄</div>
      <h3>Snakemake &amp; Nextflow export</h3>
      <p>Every template can be exported with <code>workflow export --to snakemake</code> or <code>--to nextflow</code> for HPC environments.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">📊</div>
      <h3>Output freshness caching</h3>
      <p>Automatically skip steps whose outputs exist and are newer than inputs. Re-run only what changed — perfect for iterative pipeline development.</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🎯</div>
      <h3>Gather steps aggregation</h3>
      <p>Steps with <code>gather = true</code> run once after all wildcard instances complete. Ideal for MultiQC reports and downstream aggregation tasks.</p>
    </div>
  </div>

  <div class="code-block" style="margin-top:2.5rem">
    <div class="code-block-header">
      <span style="color:var(--muted);font-size:0.8rem">// workflow commands</span>
    </div>
    <pre class="code-block-body"><span class="c"># List all built-in templates</span>
<span class="prompt">$</span> oxo-call workflow list

<span class="c"># Preview the RNA-seq pipeline (no execution)</span>
<span class="prompt">$</span> oxo-call workflow dry-run rnaseq

<span class="c"># Run a workflow (native engine — no Snakemake/Nextflow needed)</span>
<span class="prompt">$</span> oxo-call workflow run my_rnaseq.toml

<span class="c"># Export to Snakemake for HPC submission</span>
<span class="prompt">$</span> oxo-call workflow export wgs.toml --to snakemake -o Snakefile

<span class="c"># Generate a custom ChIP-seq workflow with LLM</span>
<span class="prompt">$</span> oxo-call workflow generate \
    "ChIP-seq H3K27ac: QC → Bowtie2 → MACS3 peaks vs input control" \
    -o chipseq.toml</pre>
  </div>
</section>


<hr class="divider" />

<!-- ── Benchmarks ───────────────────────────────────────────────────────── -->
<section id="benchmarks">
  <div class="section-label">// benchmarks</div>
  <h2 class="section-title">Reproducible omics evaluation —<br/>rigorous, open, and data-driven</h2>
  <p class="section-body">
    All results below are generated by <code>oxo-bench</code>, the standalone benchmarking
    crate included in this repository.  Every table is backed by a static CSV file in
    <code>docs/</code> — re-run <code>cargo run -p oxo-bench -- export-csv</code> to
    refresh with your own hardware timings.
  </p>

  <!-- Tabs -->
  <div class="bench-tabs">
    <button class="bench-tab active" data-panel="wf">⚙️ Workflow engine</button>
    <button class="bench-tab"        data-panel="sim">🧬 Simulation scenarios</button>
    <button class="bench-tab"        data-panel="eval">🤖 LLM eval tasks</button>
  </div>

  <!-- Panel 1: workflow benchmark -->
  <div class="bench-panel active" id="bench-panel-wf">
    <div class="bench-table-wrap">
      <table class="bench-table" id="wf-table">
        <thead>
          <tr>
            <th>Workflow</th>
            <th class="bench-num">Tasks (expanded)</th>
            <th class="bench-num">Parse (µs)</th>
            <th class="bench-num">Expand (µs)</th>
            <th>Cycle-free?</th>
          </tr>
        </thead>
        <tbody id="wf-tbody">
          <tr><td colspan="5" class="bench-loading">Loading bench_workflow.csv…</td></tr>
        </tbody>
      </table>
    </div>
    <p class="bench-note">
      Parse and expand timings are averaged over 500 runs on a single-core.
      Source: <code>docs/bench_workflow.csv</code> · generated by
      <code>cargo run -p oxo-bench -- export-csv</code>
    </p>
  </div>

  <!-- Panel 2: simulation scenarios -->
  <div class="bench-panel" id="bench-panel-sim">
    <div class="bench-table-wrap">
      <table class="bench-table" id="sim-table">
        <thead>
          <tr>
            <th>Scenario ID</th>
            <th>Assay</th>
            <th class="bench-num">Samples</th>
            <th class="bench-num">Read length (bp)</th>
            <th class="bench-num">Reads / sample</th>
            <th class="bench-num">Error rate</th>
            <th class="bench-num">Total reads</th>
          </tr>
        </thead>
        <tbody id="sim-tbody">
          <tr><td colspan="7" class="bench-loading">Loading bench_scenarios.csv…</td></tr>
        </tbody>
      </table>
    </div>
    <p class="bench-note">
      All reads are generated deterministically with a fixed seed — re-running
      <code>oxo-bench simulate</code> always produces byte-identical FASTQ files.
      Source: <code>docs/bench_scenarios.csv</code>
    </p>
  </div>

  <!-- Panel 3: LLM eval task catalog -->
  <div class="bench-panel" id="bench-panel-eval">
    <div class="bench-table-wrap">
      <table class="bench-table" id="eval-table">
        <colgroup>
          <col />
          <col />
          <col />
          <col />
        </colgroup>
        <thead>
          <tr>
            <th>Category</th>
            <th>Tool</th>
            <th class="bench-task-desc">Task description</th>
            <th class="bench-patterns">Required patterns</th>
          </tr>
        </thead>
        <tbody id="eval-tbody">
          <tr><td colspan="4" class="bench-loading">Loading bench_eval_tasks.csv…</td></tr>
        </tbody>
      </table>
    </div>
    <p class="bench-note">
      These 12 tasks form the canonical evaluation suite used to measure model
      accuracy, format-validity rate, and self-consistency.  Run
      <code>oxo-bench eval-models --list</code> to explore the full suite.
      Source: <code>docs/bench_eval_tasks.csv</code>
    </p>
  </div>
</section>

<hr class="divider" />

<!-- ── Community & Feedback ────────────────────────────────────────────── -->
<!-- ── Install ──────────────────────────────────────────────────────────── -->
<section id="install">
  <div class="section-label">// install</div>
  <h2 class="section-title">Get started in 60 seconds</h2>

  <div class="code-block">
    <div class="code-block-header">
      <span>Install from crates.io (recommended)</span>
      <button class="copy-btn" data-copy="cargo install oxo-call">copy</button>
    </div>
    <pre><span class="c"># Install the latest release from crates.io</span>
cargo install oxo-call</pre>
  </div>

  <div class="code-block">
    <div class="code-block-header">
      <span>Install from GitHub Releases (pre-built binaries)</span>
      <button class="copy-btn" data-copy="curl -LO https://github.com/Traitome/oxo-call/releases/latest">copy</button>
    </div>
    <pre><span class="c"># Download pre-built binary (Linux x86_64 example)</span>
curl -LO https://github.com/Traitome/oxo-call/releases/latest/download/oxo-call-<span class="s">VERSION</span>-x86_64-unknown-linux-gnu.tar.gz
tar xzf oxo-call-*-x86_64-unknown-linux-gnu.tar.gz
sudo mv oxo-call /usr/local/bin/

<span class="c"># Available for: Linux (x86_64/aarch64), macOS (Intel/Apple Silicon), Windows, WASM</span></pre>
  </div>

  <div class="code-block">
    <div class="code-block-header">
      <span>Install from source (git clone)</span>
      <button class="copy-btn" data-copy="git clone https://github.com/Traitome/oxo-call && cd oxo-call && cargo install --path .">copy</button>
    </div>
    <pre><span class="c"># Clone and build from source (latest development version)</span>
cargo install --git https://github.com/Traitome/oxo-call oxo-call</pre>
  </div>

  <div class="code-block">
    <div class="code-block-header">
      <span>Configure your LLM token</span>
      <button class="copy-btn" data-copy="oxo-call config set llm.api_token YOUR_TOKEN">copy</button>
    </div>
    <pre><span class="c"># GitHub Copilot (default — free for Copilot subscribers)</span>
oxo-call config set llm.api_token YOUR_GITHUB_TOKEN

<span class="c"># OpenAI</span>
oxo-call config set llm.provider openai
oxo-call config set llm.api_token sk-...

<span class="c"># Local Ollama (no token needed)</span>
oxo-call config set llm.provider ollama
oxo-call config set llm.model llama3.2</pre>
  </div>

  <div class="code-block">
    <div class="code-block-header">
      <span>Your first command</span>
      <button class="copy-btn" data-copy='oxo-call dry-run samtools "sort input.bam by coordinate and output to sorted.bam"'>copy</button>
    </div>
    <pre><span class="c"># Preview — no execution</span>
oxo-call dry-run samtools <span class="s">"sort input.bam by coordinate and output to sorted.bam"</span>

<span class="c"># Execute immediately</span>
oxo-call run bwa <span class="s">"align reads.fastq to reference.fa using 8 threads, output SAM"</span>

<span class="c"># Confirm before running</span>
oxo-call run --ask bcftools <span class="s">"call variants from my.bam against ref.fa"</span></pre>
  </div>

  <div class="code-block">
    <div class="code-block-header">
      <span>Variable interpolation &amp; batch execution</span>
      <button class="copy-btn" data-copy='oxo-call run --var SAMPLE=NA12878 samtools "index {SAMPLE}.bam"'>copy</button>
    </div>
    <pre><span class="c"># Variable substitution with --var</span>
oxo-call run --var SAMPLE=NA12878 samtools <span class="s">"index {SAMPLE}.bam"</span>
<span class="c"># → samtools index NA12878.bam</span>

<span class="c"># Batch processing with {item} placeholder</span>
oxo-call run samtools <span class="s">"flagstat {item}"</span> \
    --input-items s1.bam,s2.bam,s3.bam --jobs 4

<span class="c"># Process files from a list with path placeholders</span>
<span class="c"># {stem} = filename without extension, {ext} = extension</span>
oxo-call run samtools <span class="s">"sort {item} -o {stem}.sorted.{ext}"</span> \
    --input-list bam_files.txt --jobs 8

<span class="c"># Combine variables and batch input</span>
oxo-call run bwa <span class="s">"mem -t {THREADS} {REF} {item} > {stem}.sam"</span> \
    --var THREADS=16 --var REF=hg38.fa \
    --input-list samples.txt --jobs 4</pre>
  </div>

  <div class="code-block">
    <div class="code-block-header">
      <span>WASI binary (requires wasmtime)</span>
      <button class="copy-btn" data-copy="wasmtime oxo-call.wasm -- dry-run samtools &quot;sort input.bam by coordinate&quot;">copy</button>
    </div>
    <pre><span class="c"># Download the .wasm binary from the GitHub Releases page, then:</span>
wasmtime oxo-call.wasm -- dry-run samtools <span class="s">"sort input.bam by coordinate"</span></pre>
  </div>

  <div class="code-block">
    <div class="code-block-header">
      <span>Quick test license (copy & paste to get started)</span>
      <button class="copy-btn" data-copy='{
  "schema": "oxo-call-license-v1",
  "license_id": "6548e181-e352-402a-ab72-4da51f49e7b5",
  "issued_to_org": "Public Academic Test License (any academic user)",
  "license_type": "academic",
  "scope": "org",
  "perpetual": true,
  "issued_at": "2026-03-12",
  "signature": "duKJcISYPdyZkw1PbyVil5zTjvLhAYsmbzRpH0n6eRYJET90p1b0rYiHO0cJ7IGR6NLEJWqkY1wBXUkfvUvECw=="
}'>copy license JSON</button>
    </div>
    <pre><span class="c"># Step 1: Copy this JSON and save it as license.oxo.json</span>
{
  "schema": "oxo-call-license-v1",
  "license_id": "6548e181-e352-402a-ab72-4da51f49e7b5",
  "issued_to_org": "Public Academic Test License (any academic user)",
  "license_type": "academic",
  "scope": "org",
  "perpetual": true,
  "issued_at": "2026-03-12",
  "signature": "duKJcISYPdyZkw1PbyVil5zTjvLhAYsmbzRpH0n6eRYJET90p1b0rYiHO0cJ7IGR6NLEJWqkY1wBXUkfvUvECw=="
}

<span class="c"># Step 2: Move the file to the config directory</span>
<span class="c"># Linux:</span>
mkdir -p ~/.config/oxo-call && mv license.oxo.json ~/.config/oxo-call/

<span class="c"># macOS:</span>
mkdir -p ~/Library/Application\ Support/io.traitome.oxo-call && mv license.oxo.json ~/Library/Application\ Support/io.traitome.oxo-call/

<span class="c"># Windows (PowerShell):</span>
New-Item -ItemType Directory -Force -Path $env:APPDATA\oxo-call; Move-Item license.oxo.json $env:APPDATA\oxo-call\

<span class="c"># Step 3: Verify the license works</span>
oxo-call license verify

<span class="c"># Step 4: Try your first command</span>
oxo-call dry-run samtools <span class="s">"sort input.bam by coordinate"</span></pre>
  </div>

  <p class="section-body">
    <strong>Quick test license is for evaluation only.</strong> 
    It lets you try oxo-call immediately without any setup.
    For continued use, academic users should request a free formal license, 
    and commercial users should contact <a href="mailto:w_shixiang@163.com">w_shixiang@163.com</a> 
    to purchase a license (USD 200 per organization).
  </p>

  <!-- PayPal Payment Section -->
  <div class="paypal-section" id="paypal-section">
    <div class="paypal-header" onclick="togglePaypal()">
      <div class="paypal-title">
        <span class="paypal-icon">💳</span>
        <span>Commercial License Payment</span>
      </div>
      <span class="paypal-toggle"></span>
    </div>
    <div class="paypal-content">
      <div class="paypal-inner">
        <div class="paypal-qr">
          <img src="paypal.png" alt="PayPal QR Code" />
        </div>
        <div class="paypal-info">
          <div class="price">USD $200</div>
          <h4>Per-organization Commercial License</h4>
          <p>One-time payment, perpetual license covering all employees and contractors within your organization.</p>
          <div class="paypal-note">
            <strong>⚠️ Important:</strong> Please include your <strong>organization name</strong> and <strong>email address</strong> in the payment note. 
            The formal license file will be sent to your email within one week after payment confirmation.
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<section id="community">
  <div class="section-label">// community &amp; feedback</div>
  <div class="community-banner">
    <div>
      <h2>oxo-call is built by users, for users 🚀</h2>
      <p>
        This is an <strong>actively developed, feedback-driven project</strong>.
        Your bug reports, feature requests, and real-world use cases directly shape
        what gets built next. Whether you're a student running your first RNA-seq
        pipeline or a bioinformatics core facility supporting dozens of assays —
        your experience matters. Try it, break it, and tell us what happened!
      </p>
      <div class="community-actions">
        <a href="https://github.com/Traitome/oxo-call/issues" class="btn btn-secondary btn-sm" target="_blank" rel="noopener">
          Browse Issues
        </a>
        <a href="documentation/development/contributing.html" class="btn btn-secondary btn-sm">
          Contributing Guide
        </a>
      </div>
    </div>
    <div class="community-links">
      <a class="community-link" href="https://github.com/Traitome/oxo-call/issues/new?template=bug_report.md" target="_blank" rel="noopener">
        <span class="emoji">🐛</span> Report a bug
      </a>
      <a class="community-link" href="https://github.com/Traitome/oxo-call/issues/new?template=feature_request.md" target="_blank" rel="noopener">
        <span class="emoji">💡</span> Request a feature
      </a>
      <a class="community-link" href="https://github.com/Traitome/oxo-call/issues/new?template=skill_request.md" target="_blank" rel="noopener">
        <span class="emoji">🎯</span> Request a skill
      </a>
      <a class="community-link" href="https://github.com/Traitome/oxo-call" target="_blank" rel="noopener">
        <span class="emoji"></span> Star on GitHub
      </a>
    </div>
  </div>
</section>

<hr class="divider" />

<!-- ── Footer ───────────────────────────────────────────────────────────── -->
<footer>
  <p>
    <strong>oxo-call</strong> is dual-licensed: free for academic use, commercial license <strong>USD 200</strong>/org.
    Contact <a href="mailto:w_shixiang@163.com">w_shixiang@163.com</a> for commercial licensing.
    &nbsp;·&nbsp;
    <a href="https://github.com/Traitome/oxo-call" target="_blank" rel="noopener">GitHub</a>
    &nbsp;·&nbsp;
    <a href="https://crates.io/crates/oxo-call" target="_blank" rel="noopener">crates.io</a>
    &nbsp;·&nbsp;
    <a href="https://github.com/Traitome/oxo-call/blob/main/LICENSE-ACADEMIC" target="_blank" rel="noopener">License</a>
  </p>
</footer>

<!-- ── Scripts ──────────────────────────────────────────────────────────── -->
<script>
/* ─── Hero auto-type animation ─────────────────────────────────────────── */
(function () {
  const lines = [
    {
      cmd:  'oxo-call dry-run samtools "sort input.bam by coordinate → sorted.bam"',
      out: [
        '  ⠋ Fetching samtools documentation…',
        '  ⠙ Loading built-in skill: samtools',
        '  ✔ Skill loaded (v1.0)',
        '  ⠸ Asking LLM backend…',
        '',
        '  EXPLANATION: samtools sort takes an input BAM and writes',
        '               coordinate-sorted output. -o sets the output path.',
        '',
        '  $ samtools sort -o sorted.bam input.bam',
        '',
      ],
    },
    {
      cmd:  'oxo-call run bwa "align paired reads R1.fastq R2.fastq to hg38.fa, 16 threads"',
      out: [
        '  ⠋ Fetching bwa documentation…',
        '  ⠙ Loading built-in skill: bwa',
        '  ✔ Skill loaded (v1.0)',
        '  ⠸ Asking LLM backend…',
        '',
        '  EXPLANATION: bwa mem handles paired-end reads with -t for threads.',
        '               Redirect stdout to SAM output file.',
        '',
        '  $ bwa mem -t 16 hg38.fa R1.fastq R2.fastq > aligned.sam',
        '',
      ],
    },
    {
      cmd:  'oxo-call run --var SAMPLE=NA12878 samtools "index {SAMPLE}.bam"',
      out: [
        '  ⠋ Fetching samtools documentation…',
        '  ⠙ Loading built-in skill: samtools',
        '  ✔ Skill loaded (v1.0)',
        '  ⠸ Substituting {SAMPLE} → NA12878…',
        '  ⠸ Asking LLM backend…',
        '',
        '  EXPLANATION: samtools index creates a .bai index file for fast',
        '               random access. The .bam extension is preserved.',
        '',
        '  $ samtools index NA12878.bam',
        '',
      ],
    },
    {
      cmd:  'oxo-call run samtools "flagstat {item}" --input-items s1.bam,s2.bam --jobs 2',
      out: [
        '  ⠋ Fetching samtools documentation…',
        '  ⠙ Loading built-in skill: samtools',
        '  ✔ Skill loaded (v1.0)',
        '  ⠸ Querying LLM for command template…',
        '',
        '  Command template: samtools flagstat {item}',
        '',
        '  [1/2] $ samtools flagstat s1.bam',
        '  ✔ success (exit 0)',
        '  [2/2] $ samtools flagstat s2.bam',
        '  ✔ success (exit 0)',
        '',
      ],
    },
  ];

  let lineIdx = 0;
  const typingEl = document.getElementById('hero-typing');
  const cursorEl = document.getElementById('hero-cursor');
  const bodyEl   = document.getElementById('hero-term-body');

  function sleep(ms) { return new Promise(r => setTimeout(r, ms)); }

  async function typeString(el, str, speed = 28) {
    for (const ch of str) {
      el.textContent += ch;
      await sleep(speed + Math.random() * 20);
    }
  }

  async function runLine(entry) {
    typingEl.textContent = '';
    cursorEl.style.display = 'inline-block';
    await sleep(600);
    await typeString(typingEl, entry.cmd, 22);
    cursorEl.style.display = 'none';
    await sleep(300);

    // append output
    for (const o of entry.out) {
      const span = document.createElement('span');
      span.className = 'term-line';
      if (o.includes('$')) {
        span.innerHTML = o.replace(/\$ (.*)/, '  <span class="prompt">$</span> <span class="success">$1</span>');
      } else if (o.includes('')) {
        span.innerHTML = `<span class="success">${escHtml(o)}</span>`;
      } else if (o.includes('EXPLANATION')) {
        span.innerHTML = `<span class="warn">${escHtml(o)}</span>`;
      } else {
        span.innerHTML = `<span class="output">${escHtml(o)}</span>`;
      }
      bodyEl.appendChild(span);
      await sleep(80);
    }

    await sleep(2200);

    // clear output lines (keep first prompt line)
    while (bodyEl.children.length > 1) bodyEl.removeChild(bodyEl.lastChild);
  }

  function escHtml(s) {
    return s.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
  }

  async function loop() {
    while (true) {
      await runLine(lines[lineIdx % lines.length]);
      lineIdx++;
    }
  }

  loop();
})();

/* ─── Interactive demo ─────────────────────────────────────────────────── */
(function () {
  const examples = [
    {
      tool:  'samtools',
      task:  'sort input.bam by coordinate and output to sorted.bam',
      subcmd:'dry-run',
      steps: [
        { t: 'output', s: '  ⠋ Fetching samtools documentation…' },
        { t: 'output', s: '  ⠙ Loading built-in skill: samtools' },
        { t: 'success',s: '  ✔ Skill loaded' },
        { t: 'output', s: '  ⠸ Querying LLM…' },
        { t: 'blank',  s: '' },
        { t: 'warn',   s: '  EXPLANATION: samtools sort reorders reads by leftmost coordinate.' },
        { t: 'warn',   s: '               -o sets the output path. No -n flag for name sort.' },
        { t: 'blank',  s: '' },
        { t: 'cmd',    s: '  $ samtools sort -o sorted.bam input.bam' },
      ],
    },
    {
      tool:  'bwa',
      task:  'align paired reads R1.fastq R2.fastq to hg38.fa using 16 threads, output SAM',
      subcmd:'dry-run',
      steps: [
        { t: 'output', s: '  ⠋ Fetching bwa documentation…' },
        { t: 'output', s: '  ⠙ Loading built-in skill: bwa' },
        { t: 'success',s: '  ✔ Skill loaded' },
        { t: 'output', s: '  ⠸ Querying LLM…' },
        { t: 'blank',  s: '' },
        { t: 'warn',   s: '  EXPLANATION: bwa mem is recommended for reads >70 bp.' },
        { t: 'warn',   s: '               -t sets the number of threads.' },
        { t: 'blank',  s: '' },
        { t: 'cmd',    s: '  $ bwa mem -t 16 hg38.fa R1.fastq R2.fastq > aligned.sam' },
      ],
    },
    {
      tool:  'bcftools',
      task:  'call variants from my.bam against ref.fa and output to variants.vcf',
      subcmd:'dry-run',
      steps: [
        { t: 'output', s: '  ⠋ Fetching bcftools documentation…' },
        { t: 'output', s: '  ⠙ Loading built-in skill: bcftools' },
        { t: 'success',s: '  ✔ Skill loaded' },
        { t: 'output', s: '  ⠸ Querying LLM…' },
        { t: 'blank',  s: '' },
        { t: 'warn',   s: '  EXPLANATION: bcftools mpileup + call pipeline. -Ou pipes BCF' },
        { t: 'warn',   s: '               uncompressed. -mv calls multiallelic variants.' },
        { t: 'blank',  s: '' },
        { t: 'cmd',    s: '  $ bcftools mpileup -f ref.fa my.bam | bcftools call -mv -o variants.vcf' },
      ],
    },
    {
      tool:  'fastp',
      task:  'trim adapters from paired-end reads R1.fastq R2.fastq and output trimmed reads',
      subcmd:'dry-run',
      steps: [
        { t: 'output', s: '  ⠋ Fetching fastp documentation…' },
        { t: 'output', s: '  ⠙ Loading built-in skill: fastp' },
        { t: 'success',s: '  ✔ Skill loaded' },
        { t: 'output', s: '  ⠸ Querying LLM…' },
        { t: 'blank',  s: '' },
        { t: 'warn',   s: '  EXPLANATION: fastp auto-detects adapters. -i/-I for input pairs,' },
        { t: 'warn',   s: '               -o/-O for output. -j/-h for JSON/HTML reports.' },
        { t: 'blank',  s: '' },
        { t: 'cmd',    s: '  $ fastp -i R1.fastq -I R2.fastq -o R1_trimmed.fastq -O R2_trimmed.fastq -j report.json -h report.html' },
      ],
    },
    {
      tool:  'minimap2',
      task:  'align long reads ONT.fastq to reference.fa and output PAF',
      subcmd:'dry-run',
      steps: [
        { t: 'output', s: '  ⠋ Fetching minimap2 documentation…' },
        { t: 'output', s: '  ⠙ Loading built-in skill: minimap2' },
        { t: 'success',s: '  ✔ Skill loaded' },
        { t: 'output', s: '  ⠸ Querying LLM…' },
        { t: 'blank',  s: '' },
        { t: 'warn',   s: '  EXPLANATION: -x map-ont selects the ONT long-read preset.' },
        { t: 'warn',   s: '               Without -a the default output format is PAF.' },
        { t: 'blank',  s: '' },
        { t: 'cmd',    s: '  $ minimap2 -x map-ont reference.fa ONT.fastq > aligned.paf' },
      ],
    },
    {
      tool:  'seqkit',
      task:  'get basic stats on sample.fastq.gz',
      subcmd:'dry-run',
      steps: [
        { t: 'output', s: '  ⠋ Fetching seqkit documentation…' },
        { t: 'output', s: '  ⠙ Loading built-in skill: seqkit' },
        { t: 'success',s: '  ✔ Skill loaded' },
        { t: 'output', s: '  ⠸ Querying LLM…' },
        { t: 'blank',  s: '' },
        { t: 'warn',   s: '  EXPLANATION: seqkit stats reports read counts, lengths, and GC%.' },
        { t: 'warn',   s: '               -a reports all extended statistics.' },
        { t: 'blank',  s: '' },
        { t: 'cmd',    s: '  $ seqkit stats -a sample.fastq.gz' },
      ],
    },
    {
      tool:  'samtools',
      task:  'index {item} and output to {stem}.bai',
      subcmd:'dry-run',
      flags: '--input-items sample1.bam,sample2.bam --jobs 2',
      steps: [
        { t: 'output', s: '  ⠋ Fetching samtools documentation…' },
        { t: 'output', s: '  ⠙ Loading built-in skill: samtools' },
        { t: 'success',s: '  ✔ Skill loaded' },
        { t: 'output', s: '  ⠸ Querying LLM for command template…' },
        { t: 'blank',  s: '' },
        { t: 'warn',   s: '  EXPLANATION: Template uses {item} for input, {stem} for base name.' },
        { t: 'warn',   s: '               --jobs 2 runs up to 2 parallel indexing jobs.' },
        { t: 'blank',  s: '' },
        { t: 'success',s: '  Command template:' },
        { t: 'cmd',    s: '  $ samtools index {item}' },
        { t: 'blank',  s: '' },
        { t: 'success',s: '  Expanded commands (2 jobs parallel):' },
        { t: 'cmd',    s: '  [1/2] $ samtools index sample1.bam' },
        { t: 'cmd',    s: '  [2/2] $ samtools index sample2.bam' },
      ],
    },
  ];

  const demoBody  = document.getElementById('demo-body');
  const demoTitle = document.getElementById('demo-term-title');

  function escHtml(s) {
    return s.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
  }

  function sleep(ms) { return new Promise(r => setTimeout(r, ms)); }

  let running = false;

  async function renderExample(idx) {
    if (running) return;
    running = true;
    const ex = examples[idx];
    demoTitle.textContent = ex.flags 
      ? `oxo-call ${ex.subcmd} ${ex.tool} ${ex.flags}`
      : `oxo-call ${ex.subcmd} ${ex.tool}`;

    demoBody.innerHTML = '';

    // Show the prompt line
    const promptLine = document.createElement('div');
    promptLine.className = 'term-line';
    let promptHtml = `<span class="prompt">$ </span>` +
      `<span class="tool">oxo-call</span>` +
      ` <span class="flag">${ex.subcmd}</span>`;
    if (ex.flags) {
      promptHtml += ` <span class="flag">${escHtml(ex.flags)}</span>`;
    }
    promptHtml += ` <span class="tool">${escHtml(ex.tool)}</span>` +
      ` <span class="output">"${escHtml(ex.task)}"</span>`;
    promptLine.innerHTML = promptHtml;
    demoBody.appendChild(promptLine);

    await sleep(400);

    for (const step of ex.steps) {
      await sleep(120);
      const line = document.createElement('div');
      line.className = 'term-line';
      if (step.t === 'cmd') {
        line.innerHTML = step.s.replace(
          /\$ (.*)/,
          '<span class="prompt">  $</span> <span class="success">$1</span>'
        );
      } else if (step.t === 'success') {
        line.innerHTML = `<span class="success">${escHtml(step.s)}</span>`;
      } else if (step.t === 'warn') {
        line.innerHTML = `<span class="warn">${escHtml(step.s)}</span>`;
      } else {
        line.innerHTML = `<span class="output">${escHtml(step.s)}</span>`;
      }
      demoBody.appendChild(line);
    }

    running = false;
  }

  // Wire up sidebar clicks
  document.querySelectorAll('.demo-example').forEach(el => {
    el.addEventListener('click', () => {
      document.querySelectorAll('.demo-example').forEach(e => e.classList.remove('active'));
      el.classList.add('active');
      renderExample(parseInt(el.dataset.idx, 10));
    });
  });

  // Render first example on load
  renderExample(0);
})();

/* ─── Copy buttons ─────────────────────────────────────────────────────── */
document.querySelectorAll('.copy-btn').forEach(btn => {
  btn.addEventListener('click', async () => {
    const text = btn.dataset.copy;
    try {
      await navigator.clipboard.writeText(text);
      btn.textContent = 'copied!';
      btn.classList.add('copied');
      setTimeout(() => {
        btn.textContent = 'copy';
        btn.classList.remove('copied');
      }, 1800);
    } catch (_) {}
  });
});

/* ─── Benchmark CSV tables ─────────────────────────────────────────────── */
(function () {
  // Minimal RFC-4180-compliant CSV parser (handles quoted fields with escaped quotes).
  function parseCsv(text) {
    const rows = [];
    const lines = text.replace(/\r\n/g, '\n').replace(/\r/g, '\n').split('\n');
    for (const line of lines) {
      if (!line.trim()) continue;
      const fields = [];
      let i = 0;
      while (i < line.length) {
        if (line[i] === '"') {
          // quoted field
          i++; // skip opening quote
          let val = '';
          while (i < line.length) {
            if (line[i] === '"' && line[i + 1] === '"') { val += '"'; i += 2; }
            else if (line[i] === '"') { i++; break; }
            else { val += line[i++]; }
          }
          fields.push(val);
          if (line[i] === ',') i++;
        } else {
          let j = line.indexOf(',', i);
          if (j === -1) j = line.length;
          fields.push(line.slice(i, j));
          i = j + 1;
        }
      }
      rows.push(fields);
    }
    return rows;
  }

  function escH(s) {
    return s.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
  }

  // Load workflow CSV
  fetch('bench_workflow.csv')
    .then(r => r.text())
    .then(txt => {
      const rows = parseCsv(txt);
      const tbody = document.getElementById('wf-tbody');
      tbody.innerHTML = '';
      rows.slice(1).forEach(([wf, tasks, parseUs, expandUs, cycleFree]) => {
        const ok = cycleFree === 'true';
        tbody.insertAdjacentHTML('beforeend', `
          <tr>
            <td><span class="tool">${escH(wf)}</span></td>
            <td class="bench-num">${escH(tasks)}</td>
            <td class="bench-num">${escH(parseUs)}</td>
            <td class="bench-num">${escH(expandUs)}</td>
            <td><span class="${ok ? 'bench-ok' : 'warn'}">${ok ? '✓ yes' : '⚠ cycle!'}</span></td>
          </tr>`);
      });
    })
    .catch(() => {
      document.getElementById('wf-tbody').innerHTML =
        '<tr><td colspan="5" class="bench-loading">Could not load bench_workflow.csv</td></tr>';
    });

  // Load scenarios CSV
  fetch('bench_scenarios.csv')
    .then(r => r.text())
    .then(txt => {
      const rows = parseCsv(txt);
      const tbody = document.getElementById('sim-tbody');
      tbody.innerHTML = '';
      rows.slice(1).forEach(([id, assay, n, rlen, rps, err, total]) => {
        const totalNum = parseInt(total, 10);
        const totalFmt = totalNum >= 1_000_000
          ? (totalNum / 1_000_000).toFixed(1) + ' M'
          : totalNum >= 1_000
          ? (totalNum / 1_000).toFixed(0) + ' k'
          : total;
        tbody.insertAdjacentHTML('beforeend', `
          <tr>
            <td><code>${escH(id)}</code></td>
            <td><span class="bench-badge-assay">${escH(assay)}</span></td>
            <td class="bench-num">${escH(n)}</td>
            <td class="bench-num">${escH(rlen)}</td>
            <td class="bench-num">${escH(rps)}</td>
            <td class="bench-num">${escH(err)}</td>
            <td class="bench-num">${escH(totalFmt)}</td>
          </tr>`);
      });
    })
    .catch(() => {
      document.getElementById('sim-tbody').innerHTML =
        '<tr><td colspan="7" class="bench-loading">Could not load bench_scenarios.csv</td></tr>';
    });

  // Load eval tasks CSV
  fetch('bench_eval_tasks.csv')
    .then(r => r.text())
    .then(txt => {
      const rows = parseCsv(txt);
      const tbody = document.getElementById('eval-tbody');
      tbody.innerHTML = '';
      rows.slice(1).forEach(([cat, tool, task, pats]) => {
        const patHtml = pats.split(';').map(p =>
          `<code>${escH(p.trim())}</code>`).join(' ');
        tbody.insertAdjacentHTML('beforeend', `
          <tr>
            <td><span class="bench-cat">${escH(cat)}</span></td>
            <td><span class="tool">${escH(tool)}</span></td>
            <td class="bench-task-desc">${escH(task)}</td>
            <td class="bench-patterns">${patHtml}</td>
          </tr>`);
      });
    })
    .catch(() => {
      document.getElementById('eval-tbody').innerHTML =
        '<tr><td colspan="4" class="bench-loading">Could not load bench_eval_tasks.csv</td></tr>';
    });

  // Tab switching
  document.querySelectorAll('.bench-tab').forEach(tab => {
    tab.addEventListener('click', () => {
      document.querySelectorAll('.bench-tab').forEach(t => t.classList.remove('active'));
      document.querySelectorAll('.bench-panel').forEach(p => p.classList.remove('active'));
      tab.classList.add('active');
      document.getElementById('bench-panel-' + tab.dataset.panel).classList.add('active');
    });
  });
})();

/* ─── Tools Grid Rotation ──────────────────────────────────────────────── */
(function () {
  const allTools = [
    { name: 'samtools', desc: 'SAM/BAM/CRAM manipulation', icon: '🧬' },
    { name: 'bwa', desc: 'Burrows-Wheeler short-read aligner', icon: '🎯' },
    { name: 'bcftools', desc: 'VCF/BCF variant calling & filtering', icon: '🧪' },
    { name: 'bedtools', desc: 'Genomic interval arithmetic', icon: '🛏️' },
    { name: 'gatk', desc: 'Genome Analysis Toolkit', icon: '🔬' },
    { name: 'minimap2', desc: 'Long-read / splice-aware aligner', icon: '📏' },
    { name: 'fastp', desc: 'Adapter trimming & QC', icon: '✂️' },
    { name: 'bowtie2', desc: 'Fast short-read aligner', icon: '🎀' },
    { name: 'seqkit', desc: 'FASTA/Q toolkit', icon: '🧰' },
    { name: 'star', desc: 'RNA-seq spliced aligner', icon: '' },
    { name: 'slurm', desc: 'HPC job scheduling (sbatch, srun)', icon: '' },
    { name: 'pbs', desc: 'PBS/Torque batch scheduler (qsub)', icon: '📋' },
    { name: 'kubectl', desc: 'Kubernetes cluster management', icon: '☸️' },
    { name: 'picard', desc: 'BAM manipulation & metrics', icon: '🎭' },
    { name: 'hisat2', desc: 'Splice-aware RNA-seq aligner', icon: '🧵' },
    { name: 'salmon', desc: 'Transcript quantification', icon: '🐟' },
    { name: 'featureCounts', desc: 'Read summarization', icon: '🔢' },
    { name: 'macs3', desc: 'Peak calling for ChIP-seq', icon: '🏔️' },
    { name: 'deeptools', desc: 'NGS data visualization', icon: '📊' },
    { name: 'multiqc', desc: 'Aggregate QC reports', icon: '📈' },
    { name: 'trimmomatic', desc: 'Illumina adapter trimming', icon: '✂️' },
    { name: 'kraken2', desc: 'Taxonomic classification', icon: '🐙' },
    { name: 'blast', desc: 'Sequence similarity search', icon: '💥' },
    { name: 'vcftools', desc: 'VCF manipulation & filtering', icon: '🧬' },
    { name: 'plink', desc: 'GWAS & population genetics', icon: '🔗' },
    { name: 'singularity', desc: 'Container runtime for HPC', icon: '📦' },
    { name: 'docker', desc: 'Container platform', icon: '🐳' },
    { name: 'conda', desc: 'Package & environment manager', icon: '🐍' },
    { name: 'vcflib', desc: 'VCF processing toolkit', icon: '📚' },
    { name: 'freebayes', desc: 'Bayesian variant caller', icon: '🎲' },
    { name: 'ivar', desc: 'Viral amplicon-based sequencing', icon: '🦠' },
    { name: 'lofreq', desc: 'Sensitive variant caller', icon: '🔍' },
    { name: 'mosdepth', desc: 'Fast BAM/CRAM depth calculation', icon: '📐' },
    { name: 'qualimap', desc: 'BAM QC analysis', icon: '' },
    { name: 'rsem', desc: 'RNA-seq quantification', icon: '📊' },
    { name: 'kallisto', desc: 'Pseudoalignment quantification', icon: '' },
    { name: 'stringtie', desc: 'Transcript assembly', icon: '🧵' },
    { name: 'gffread', desc: 'GFF/GTF manipulation', icon: '📖' },
    { name: 'bedops', desc: 'High-performance BED tools', icon: '🚀' },
    { name: 'sra-toolkit', desc: 'NCBI SRA data download', icon: '⬇️' },
    { name: 'parallel', desc: 'GNU parallel execution', icon: '' },
    { name: 'htop', desc: 'Interactive process viewer', icon: '📊' },
    { name: 'lsf', desc: 'IBM LSF workload scheduler', icon: '🏢' },
    { name: 'sge', desc: 'Sun Grid Engine', icon: '☀️' },
    { name: 'htcondor', desc: 'High Throughput Computing', icon: '🦅' },
  ];
  
  const grid = document.getElementById('tools-grid');
  if (!grid) return;
  
  const cards = grid.querySelectorAll('.tool-card');
  let visibleIndices = new Set(Array.from({length: cards.length}, (_, i) => i));
  
  // Random highlight effect
  function randomHighlight() {
    const idx = Math.floor(Math.random() * cards.length);
    const card = cards[idx];
    if (card && !card.matches(':hover')) {
      card.style.transform = 'translateY(-8px) scale(1.03)';
      card.style.borderColor = 'var(--accent2)';
      card.style.boxShadow = '0 12px 30px rgba(63,185,80,0.25)';
      
      setTimeout(() => {
        card.style.transform = '';
        card.style.borderColor = '';
        card.style.boxShadow = '';
      }, 800);
    }
  }
  
  // Wave effect - sequentially highlight cards
  function waveEffect() {
    cards.forEach((card, i) => {
      setTimeout(() => {
        if (!card.matches(':hover')) {
          card.style.borderColor = 'var(--accent)';
          card.style.boxShadow = '0 0 20px rgba(88,166,255,0.3)';
          
          setTimeout(() => {
            card.style.borderColor = '';
            card.style.boxShadow = '';
          }, 300);
        }
      }, i * 50);
    });
  }
  
  // Shuffle tools with 3D flip effect
  function shuffleTools() {
    const visible = Array.from(visibleIndices);
    const hidden = allTools.map((_, i) => i).filter(i => !visibleIndices.has(i));
    
    if (hidden.length === 0) return;
    
    // Pick 1-3 cards to swap
    const numToSwap = Math.floor(Math.random() * 3) + 1;
    
    for (let n = 0; n < numToSwap; n++) {
      const outIdx = visible[Math.floor(Math.random() * visible.length)];
      const inIdx = hidden[Math.floor(Math.random() * hidden.length)];
      const card = cards[outIdx];
      
      if (card && !card.matches(':hover')) {
        // 3D flip out
        card.style.transform = 'rotateY(90deg) scale(0.8)';
        card.style.opacity = '0';
        
        setTimeout(() => {
          const iconEl = card.querySelector('.tool-icon');
          const nameEl = card.querySelector('.tool-name');
          const descEl = card.querySelector('.tool-desc');
          
          if (iconEl) iconEl.textContent = allTools[inIdx].icon;
          if (nameEl) nameEl.textContent = allTools[inIdx].name;
          if (descEl) descEl.textContent = allTools[inIdx].desc;
          
          // 3D flip in
          card.style.transform = 'rotateY(-90deg) scale(0.8)';
          
          setTimeout(() => {
            card.style.transform = '';
            card.style.opacity = '';
          }, 50);
          
          visibleIndices.delete(outIdx);
          visibleIndices.add(inIdx);
        }, 300);
      }
    }
  }
  
  // Schedule effects
  setInterval(randomHighlight, 2000);
  setInterval(shuffleTools, 2000);
  setInterval(waveEffect, 12000);
})();

/* ─── PayPal Toggle ────────────────────────────────────────────────────── */
function togglePaypal() {
  const section = document.getElementById('paypal-section');
  section.classList.toggle('open');
}
</script>
</body>
</html>