-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotlend.html
More file actions
1448 lines (1360 loc) · 82.2 KB
/
dotlend.html
File metadata and controls
1448 lines (1360 loc) · 82.2 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DotLend — Money Market on Polkadot Hub | ZK Solvency Proofs</title>
<meta name="description" content="DotLend — Decentralized Money Market on Polkadot Hub. ZK-Solvency proofs for lenders. Secure, transparent, and built on Polkadot-native infrastructure.">
<meta property="og:title" content="DotLend — Money Market on Polkadot Hub | ZK Solvency Proofs">
<meta property="og:description" content="High-yield borrowing & lending. ZK-powered solvency verification. Live on Polkadot Hub.">
<meta property="og:image" content="/site-logo.png">
<meta name="twitter:card" content="summary_large_image">
<link rel="canonical" href="https://orthonode.xyz/dotlend.html">
<link rel="icon" href="/site-logo.png" type="image/png">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Lexend:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<!-- GSAP -->
<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/ScrollTrigger.min.js"></script>
<style>
/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #020408;
--surface: #060C14;
--surface2: #080E18;
--primary: #E6007A; /* Polkadot Pink */
--accent: #9945FF;
--border: rgba(230,0,122,0.15);
--border-b: rgba(230,0,122,0.40);
--text: #E8F4FF;
--muted: #7A9AB4;
/* Aliases used throughout */
--pink: #E6007A;
--pink2: rgba(230,0,122,0.08);
--pink3: rgba(230,0,122,0.04);
--r: 12px;
--r-sm: 8px;
--r-lg: 20px;
--card: #080D18;
--text2: #C0CDE0;
--border2: rgba(230,0,122,0.25);
}
html { scroll-behavior: smooth; cursor: none; }
body {
background: var(--bg);
color: var(--text);
font-family: 'Exo 2', sans-serif;
font-weight: 400;
line-height: 1.6;
overflow-x: hidden;
}
/* ── Custom Cursor ────────────────────────────────── */
.c-cursor {
width: 12px; height: 12px;
background: #fff;
border-radius: 50%;
position: fixed; top: 0; left: 0;
transform: translate(-50%, -50%);
pointer-events: none;
z-index: 999999;
mix-blend-mode: difference;
transition: width .2s, height .2s;
will-change: transform;
}
.c-cursor.is-hover { width: 44px; height: 44px; }
@media (hover: none) {
html { cursor: auto; }
.c-cursor { display: none; }
}
/* ── Page Loader ──────────────────────────────────── */
#loader {
position: fixed; inset: 0; z-index: 99999;
background: var(--bg);
display: flex; flex-direction: column;
align-items: center; justify-content: center;
gap: 1.5rem;
}
#loader-logo {
font-family: 'Orbitron', sans-serif;
font-size: clamp(24px, 5vw, 42px);
font-weight: 900;
letter-spacing: 0.2em;
color: var(--primary);
text-shadow: 0 0 30px rgba(230,0,122,0.6);
opacity: 0;
}
#loader-bar {
width: 160px; height: 2px;
background: rgba(230,0,122,0.12);
overflow: hidden;
}
#loader-fill {
height: 100%; width: 0%;
background: linear-gradient(90deg, var(--primary), var(--accent));
transition: width .05s linear;
}
#loader-text {
font-family: 'JetBrains Mono', monospace;
font-size: .62rem; letter-spacing: .25em;
color: var(--muted); text-transform: uppercase;
}
/* ── Star canvas & Grid ───────────────────────────── */
#star-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#grid-overlay {
position: fixed; inset: 0; z-index: 0; pointer-events: none;
background-image:
linear-gradient(rgba(230,0,122,0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(230,0,122,0.03) 1px, transparent 1px);
background-size: 60px 60px;
}
#grain {
position: fixed; inset: 0; z-index: 1;
pointer-events: none; opacity: .028;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* ── Aurora blobs ── */
.aurora{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.blob{position:absolute;border-radius:50%;filter:blur(90px);opacity:.1}
.blob-1{width:700px;height:700px;background:#E6007A;top:-250px;left:-150px;animation:blobDrift 18s ease-in-out infinite alternate}
.blob-2{width:550px;height:550px;background:#9945FF;top:25%;right:-180px;animation:blobDrift 22s ease-in-out infinite alternate-reverse}
.blob-3{width:450px;height:450px;background:#E6007A;bottom:5%;left:15%;animation:blobDrift 15s ease-in-out infinite alternate}
.blob-4{width:380px;height:380px;background:#9945FF;bottom:-120px;right:25%;animation:blobDrift 25s ease-in-out infinite alternate-reverse}
@keyframes blobDrift{from{transform:translate(0,0) scale(1)}to{transform:translate(40px,40px) scale(1.12)}}
/* ── HERO ── */
#hero{position:relative;min-height:100vh;display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:clamp(100px,12vw,140px) clamp(20px,5vw,80px) 80px;gap:60px;overflow:hidden;z-index:2}
.hero-left{display:flex;flex-direction:column;gap:28px;z-index:2}
.hero-badge{display:inline-flex;align-items:center;gap:10px;background:var(--pink2);border:1px solid var(--border2);color:var(--pink);padding:8px 18px;border-radius:40px;font-size:12px;font-weight:500;font-family:'JetBrains Mono',monospace;letter-spacing:.1em;width:fit-content}
h1.hero-h1{font-family:'Lexend',sans-serif;font-size:clamp(36px,5.5vw,80px);font-weight:700;line-height:1.1;letter-spacing:-.01em}
h1.hero-h1 .line1{display:block;color:#fff}
h1.hero-h1 .line2{display:block;background:linear-gradient(135deg,var(--pink) 0%,var(--accent) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-sub{font-size:clamp(15px,1.3vw,18px);color:var(--muted);max-width:480px;line-height:1.75;font-weight:300}
.hero-metrics{display:flex;gap:clamp(20px,3vw,36px);padding:24px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);flex-wrap:wrap}
.hm{display:flex;flex-direction:column;gap:4px}
.hm-val{font-family:'JetBrains Mono',monospace;font-size:clamp(22px,2.2vw,32px);font-weight:500;background:linear-gradient(135deg,var(--pink),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hm-label{font-size:11px;color:var(--muted);letter-spacing:.1em;text-transform:uppercase;font-family:'JetBrains Mono',monospace}
.hero-ctas{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.btn-primary{background:linear-gradient(135deg,var(--pink),var(--accent));color:#fff;padding:14px 32px;border-radius:var(--r-sm);font-size:14px;font-weight:500;font-family:'Lexend',sans-serif;letter-spacing:.04em;text-decoration:none;transition:all .25s;cursor:none;border:none;display:inline-flex;align-items:center;gap:8px}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 30px rgba(230,0,122,.5)}
.btn-ghost{background:transparent;color:var(--text2);padding:14px 32px;border-radius:var(--r-sm);font-size:14px;font-weight:400;font-family:'Lexend',sans-serif;letter-spacing:.04em;text-decoration:none;transition:all .25s;cursor:none;border:1px solid var(--border2)}
.btn-ghost:hover{border-color:var(--pink);color:var(--pink);background:var(--pink2)}
/* ── HERO RIGHT / ZK CIRCUIT ── */
.hero-right{display:flex;align-items:center;justify-content:center;z-index:2;position:relative}
.zk-circuit-wrap{position:relative;width:100%;max-width:520px;aspect-ratio:1;display:flex;align-items:center;justify-content:center}
.zk-ring{position:absolute;border-radius:50%;border:1px solid}
.zk-ring-1{inset:0;border-color:rgba(230,0,122,.15);animation:zkspin 30s linear infinite}
.zk-ring-2{inset:8%;border-color:rgba(255,60,172,.1);animation:zkspin 22s linear infinite reverse}
.zk-ring-3{inset:18%;border-color:rgba(85,43,191,.12);animation:zkspin 16s linear infinite}
@keyframes zkspin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
#zk-svg{width:90%;height:90%;position:relative;z-index:2}
.stamp-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:3;pointer-events:none}
#zk-stamp{opacity:0;transform:scale(.6) rotate(-15deg)}
.stamp-inner{background:var(--pink2);border:2px solid var(--pink);border-radius:var(--r-sm);padding:16px 28px;text-align:center}
.stamp-title{font-family:'JetBrains Mono',monospace;font-size:clamp(10px,1.2vw,13px);color:var(--pink);letter-spacing:.2em;text-transform:uppercase;font-weight:500}
.stamp-checkmark{font-size:clamp(24px,3vw,36px);color:var(--pink);display:block;margin:4px 0}
/* ── SECTION BASE ── */
section{position:relative;z-index:2}
.section-inner{max-width:1200px;margin:0 auto;padding:100px clamp(20px,5vw,60px)}
.section-label{font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--pink);letter-spacing:.2em;text-transform:uppercase;margin-bottom:16px}
.section-title{font-family:'Lexend',sans-serif;font-size:clamp(28px,3.5vw,52px);font-weight:700;line-height:1.15;letter-spacing:-.01em;margin-bottom:20px}
.section-sub{font-size:clamp(15px,1.2vw,18px);color:var(--muted);max-width:600px;line-height:1.75;font-weight:300}
.grad-text{background:linear-gradient(135deg,var(--pink),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
/* ── DIVIDER ── */
.section-divider{width:100%;height:1px;background:linear-gradient(90deg,transparent,var(--border2),transparent);margin:0 auto}
/* ── MARKETS TABLE ── */
#markets .section-inner{padding-bottom:60px}
.markets-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--r)}
.markets-table{width:100%;border-collapse:collapse;font-family:'JetBrains Mono',monospace;min-width:640px}
.markets-table thead tr{border-bottom:1px solid var(--border2)}
.markets-table th{padding:14px 20px;text-align:left;font-size:11px;color:var(--muted);letter-spacing:.12em;text-transform:uppercase;font-weight:400;white-space:nowrap}
.markets-table th:not(:first-child){text-align:right}
.markets-table tbody tr{border-bottom:1px solid var(--border);transition:all .25s;cursor:none}
.markets-table tbody tr:hover{background:var(--pink2);border-left:3px solid var(--pink)}
.markets-table tbody tr td:first-child{padding-left:18px}
.markets-table td{padding:18px 20px;font-size:14px;color:var(--text2);white-space:nowrap}
.markets-table td:not(:first-child){text-align:right}
.asset-cell{display:flex;align-items:center;gap:12px}
.asset-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;flex-shrink:0}
.asset-icon.dot{background:linear-gradient(135deg,#E6007A,#FF3CAC);color:#fff}
.asset-icon.usdc{background:linear-gradient(135deg,#2775CA,#5EAFFA);color:#fff}
.asset-icon.eth{background:linear-gradient(135deg,#627EEA,#C8D6FF);color:#fff}
.asset-name{font-size:15px;font-weight:500;color:var(--text)}
.asset-sub{font-size:11px;color:var(--muted);letter-spacing:.04em}
.supply-apy{color:#4ADE80}
.borrow-apy{color:var(--accent)}
.util-bar-wrap{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.util-bar{width:60px;height:4px;background:rgba(255,255,255,.08);border-radius:4px;overflow:hidden;flex-shrink:0}
.util-fill{height:100%;border-radius:4px;background:linear-gradient(90deg,var(--pink),var(--accent));transition:width 1s ease}
.table-footer{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:var(--pink3);border-radius:0 0 var(--r) var(--r);font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--muted);flex-wrap:wrap;gap:8px}
.table-badge{background:var(--pink2);border:1px solid var(--border2);color:var(--pink);padding:4px 12px;border-radius:20px;font-size:10px;letter-spacing:.1em}
/* ── CARDS ── */
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--r);padding:clamp(24px,3vw,40px);transition:all .35s;transform-style:preserve-3d;cursor:none}
.card:hover{border-color:rgba(255,60,172,.5);box-shadow:0 0 30px rgba(230,0,122,.1);transform:translateY(-4px)}
.card-icon{width:52px;height:52px;border-radius:var(--r-sm);display:flex;align-items:center;justify-content:center;margin-bottom:20px;background:var(--pink2);border:1px solid var(--border2)}
.card-icon svg{width:24px;height:24px}
.card-title{font-family:'Lexend',sans-serif;font-size:clamp(18px,1.8vw,22px);font-weight:700;margin-bottom:10px}
.card-text{font-size:14px;color:var(--muted);line-height:1.7;font-weight:300}
.three-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.two-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:32px;align-items:center}
/* ── ZK SOLVENCY SECTION ── */
#zk-solvency{background:linear-gradient(180deg,transparent,rgba(85,43,191,.05),transparent)}
.zk-quote-box{background:var(--card);border:1px solid var(--border2);border-radius:var(--r-lg);padding:clamp(32px,4vw,60px);margin:48px 0;position:relative;overflow:hidden}
.zk-quote-box::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(230,0,122,.04),transparent 50%);pointer-events:none}
.zk-quote{font-family:'Lexend',sans-serif;font-size:clamp(22px,2.8vw,40px);font-weight:700;line-height:1.3;letter-spacing:-.01em;position:relative;z-index:1}
.zk-flow-diagram{display:flex;align-items:center;justify-content:center;gap:clamp(16px,2.5vw,32px);flex-wrap:wrap;margin:48px 0}
.zk-node{background:var(--card);border:1px solid var(--border);border-radius:var(--r);padding:20px 24px;text-align:center;min-width:130px;transition:all .3s}
.zk-node:hover{border-color:var(--pink);background:var(--pink2)}
.zk-node-icon{font-size:28px;margin-bottom:8px}
.zk-node-label{font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--muted);letter-spacing:.1em;text-transform:uppercase}
.zk-node-val{font-size:14px;font-weight:500;color:var(--text2);margin-top:4px}
.zk-arrow{color:var(--muted);font-size:20px;display:flex;align-items:center}
.zk-arrow svg{width:32px;height:32px;flex-shrink:0}
/* ── ZK PIPELINE ── */
.zk-pipeline{display:flex;align-items:center;gap:0;padding:40px 32px;background:var(--card);border:1px solid var(--border);border-radius:var(--r-lg);overflow-x:auto;-webkit-overflow-scrolling:touch}
.zk-pipe-node{flex:1;min-width:140px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:0 8px}
.zk-pipe-icon{width:64px;height:64px;border-radius:16px;background:rgba(230,0,122,0.1);border:1px solid rgba(230,0,122,0.2);display:flex;align-items:center;justify-content:center;transition:all .3s;flex-shrink:0}
.zk-pipe-node:hover .zk-pipe-icon{background:rgba(230,0,122,0.18);border-color:rgba(230,0,122,0.5);box-shadow:0 0 20px rgba(230,0,122,0.2)}
.zk-pipe-step{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--pink);letter-spacing:.2em;font-weight:600}
.zk-pipe-title{font-family:'Lexend',sans-serif;font-size:14px;font-weight:700;color:var(--text)}
.zk-pipe-sub{font-size:12px;color:var(--muted);line-height:1.5;max-width:120px}
.zk-pipe-badge{font-family:'JetBrains Mono',monospace;font-size:9px;letter-spacing:.12em;padding:3px 10px;border-radius:20px;background:rgba(230,0,122,0.08);border:1px solid rgba(230,0,122,0.15);color:var(--pink)}
.zk-pipe-final .zk-pipe-icon{animation:pipeGlow 2s ease-in-out infinite alternate}
@keyframes pipeGlow{from{box-shadow:0 0 0 rgba(230,0,122,0)}to{box-shadow:0 0 24px rgba(230,0,122,0.4)}}
.zk-pipe-arrow{display:flex;align-items:center;gap:0;flex-direction:column;gap:6px;flex-shrink:0;padding:0 4px}
.zk-pipe-line{width:1px;height:32px;background:linear-gradient(180deg,transparent,var(--pink),transparent);opacity:.5}
@media(max-width:768px){
.zk-pipeline{flex-direction:column;padding:28px 20px}
.zk-pipe-arrow{flex-direction:row;transform:rotate(90deg)}
.zk-pipe-sub{max-width:200px}
}
/* ── HOW IT WORKS ── */
#how-it-works{background:linear-gradient(180deg,transparent,rgba(230,0,122,.03),transparent)}
.steps{display:flex;flex-direction:column;gap:0}
.step{display:grid;grid-template-columns:80px 1fr;gap:32px;align-items:start;padding:48px 0;border-bottom:1px solid var(--border)}
.step:last-child{border-bottom:none}
.step-num{font-family:'JetBrains Mono',monospace;font-size:clamp(40px,5vw,72px);font-weight:500;color:var(--pink);opacity:.3;line-height:1;letter-spacing:-.02em}
.step-content{}
.step-title{font-family:'Lexend',sans-serif;font-size:clamp(20px,2vw,28px);font-weight:700;margin-bottom:12px}
.step-text{font-size:15px;color:var(--muted);line-height:1.75;font-weight:300;max-width:600px}
.step-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.tag{background:var(--pink2);border:1px solid var(--border);color:var(--text2);padding:5px 14px;border-radius:20px;font-size:12px;font-family:'JetBrains Mono',monospace;letter-spacing:.06em}
/* ── STACK DIAGRAM ── */
.stack-diagram{display:flex;flex-direction:column;gap:0;margin-top:48px;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden}
.stack-layer{background:var(--sl-bg,rgba(230,0,122,0.04));border-bottom:1px solid var(--border);padding:28px 32px}
.stack-layer:last-child{border-bottom:none}
.stack-layer-badge{display:inline-flex;font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:var(--pink);background:rgba(230,0,122,0.08);border:1px solid rgba(230,0,122,0.2);padding:4px 12px;border-radius:20px;margin-bottom:20px}
.stack-layer-inner{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.stack-item{display:flex;align-items:center;gap:12px;padding:14px 16px;background:rgba(0,0,0,0.3);border:1px solid var(--border);border-radius:var(--r-sm);transition:border-color .25s,background .25s}
.stack-item:hover{border-color:rgba(230,0,122,0.3);background:rgba(230,0,122,0.04)}
.stack-icon{flex-shrink:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.04);border-radius:8px}
.stack-name{font-family:'Lexend',sans-serif;font-size:13px;font-weight:600;color:var(--text)}
.stack-ver{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--muted);letter-spacing:.05em;margin-top:2px}
.stack-connector{display:flex;align-items:center;gap:12px;padding:12px 32px;background:rgba(230,0,122,0.02);border-bottom:1px solid var(--border)}
.stack-conn-line{flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(230,0,122,0.2),transparent)}
.stack-connector span{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--muted);letter-spacing:.1em;white-space:nowrap}
@media(max-width:768px){
.stack-layer-inner{grid-template-columns:repeat(2,1fr)}
.stack-layer{padding:20px}
}
@media(max-width:480px){
.stack-layer-inner{grid-template-columns:1fr}
}
/* ── ARCHITECTURE ── */
.arch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:48px}
.arch-card{background:var(--card);border:1px solid var(--border);border-radius:var(--r);padding:28px;position:relative;overflow:hidden;transition:all .3s;cursor:none}
.arch-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--pink),var(--accent))}
.arch-card:hover{border-color:rgba(255,60,172,.4);transform:translateY(-3px);box-shadow:0 12px 40px rgba(230,0,122,.08)}
.arch-layer{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--muted);letter-spacing:.2em;text-transform:uppercase;margin-bottom:12px}
.arch-title{font-family:'Lexend',sans-serif;font-size:18px;font-weight:700;margin-bottom:8px}
.arch-text{font-size:13px;color:var(--muted);line-height:1.6;font-weight:300}
.arch-tech{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}
.arch-tech span{background:rgba(85,43,191,.15);border:1px solid rgba(85,43,191,.3);color:var(--text2);padding:3px 10px;border-radius:20px;font-size:11px;font-family:'JetBrains Mono',monospace}
/* ── SECURITY ── */
#security .section-inner{padding-bottom:120px}
.security-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-top:48px}
.security-item{display:flex;gap:20px;align-items:start;padding:28px;background:var(--card);border:1px solid var(--border);border-radius:var(--r);transition:all .3s;cursor:none}
.security-item:hover{border-color:rgba(255,60,172,.35);background:var(--pink2)}
.security-check{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--pink),var(--accent));display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.security-check svg{width:18px;height:18px;color:#fff}
.security-title{font-family:'Lexend',sans-serif;font-size:16px;font-weight:700;margin-bottom:6px}
.security-text{font-size:13px;color:var(--muted);line-height:1.6;font-weight:300}
/* ── PROTOCOL PARAMETERS ── */
.params-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:48px}
.param-card{background:var(--card);border:1px solid var(--border);border-radius:var(--r);padding:28px;transition:border-color .3s,transform .3s}
.param-card:hover{border-color:rgba(230,0,122,0.35);transform:translateY(-2px)}
.param-header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:16px;gap:12px}
.param-label{font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--muted);letter-spacing:.1em;text-transform:uppercase;line-height:1.4;flex:1}
.param-value{font-family:'Lexend',sans-serif;font-size:clamp(28px,3vw,44px);font-weight:700;color:var(--pink);line-height:1;flex-shrink:0;background:linear-gradient(135deg,var(--pink),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.param-bar{height:4px;background:rgba(255,255,255,.06);border-radius:4px;overflow:hidden;margin-bottom:16px}
.param-fill{height:100%;width:0;border-radius:4px;background:var(--pf-color,var(--pink));transition:width 1.2s cubic-bezier(0.16,1,0.3,1)}
.param-fill.animated{width:var(--pf-w)}
.param-desc{font-size:13px;color:var(--muted);line-height:1.65;font-weight:300}
@media(max-width:900px){.params-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.params-grid{grid-template-columns:1fr}}
/* ── FOOTER ── */
footer{position:relative;z-index:2;border-top:1px solid var(--border)}
.footer-inner{max-width:1200px;margin:0 auto;padding:60px clamp(20px,5vw,60px) 40px;display:flex;flex-direction:column;gap:40px}
.footer-top{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px}
.footer-brand{}
.footer-logo{font-family:'Lexend',sans-serif;font-size:22px;font-weight:700;background:linear-gradient(135deg,var(--pink),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:12px;display:block}
.footer-desc{font-size:13px;color:var(--muted);line-height:1.7;max-width:260px;font-weight:300}
.footer-col-title{font-family:'Lexend',sans-serif;font-size:13px;font-weight:700;color:var(--text2);letter-spacing:.04em;margin-bottom:16px;text-transform:uppercase}
.footer-links{display:flex;flex-direction:column;gap:10px}
.footer-links a{font-size:13px;color:var(--muted);text-decoration:none;transition:color .2s;cursor:none}
.footer-links a:hover{color:var(--pink)}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:24px;border-top:1px solid var(--border);flex-wrap:wrap;gap:12px}
.footer-copy{font-size:12px;color:var(--muted);font-family:'JetBrains Mono',monospace;letter-spacing:.06em}
.footer-orthonode{font-size:12px;color:var(--muted);font-family:'JetBrains Mono',monospace;letter-spacing:.06em}
.footer-orthonode a{color:var(--pink);text-decoration:none}
/* ── RESPONSIVE ── */
@media(max-width:900px){
#hero{grid-template-columns:1fr;padding-top:100px}
.hero-right{display:none}
.three-grid{grid-template-columns:1fr}
.arch-grid{grid-template-columns:1fr}
.security-grid{grid-template-columns:1fr}
.footer-top{grid-template-columns:1fr 1fr}
.step{grid-template-columns:60px 1fr;gap:20px}
.two-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
.nav-links{display:none}
.nav-pill{display:none}
.nav-status{display:none}
.nav-hamburger{display:flex}
.footer-top{grid-template-columns:1fr}
.hero-metrics{gap:16px}
.zk-flow-diagram{gap:12px}
.zk-node{min-width:100px;padding:14px 16px}
}
</style>
</head>
<body>
<!-- BACKGROUND -->
<canvas id="star-canvas"></canvas>
<div id="grid-overlay"></div>
<div id="grain"></div>
<!-- CURSOR -->
<div class="c-cursor" id="cursor"></div>
<!-- AURORA -->
<div class="aurora">
<div class="blob blob-1"></div>
<div class="blob blob-2"></div>
<div class="blob blob-3"></div>
<div class="blob blob-4"></div>
</div>
<!-- LOADER -->
<div id="loader">
<div id="loader-logo">DOTLEND</div>
<div id="loader-bar"><div id="loader-fill"></div></div>
<div id="loader-text">Initializing ZK Layer...</div>
</div>
<!-- NAV and MOBILE MENU removed in favor of shared nav.js -->
<!-- HERO -->
<section id="hero">
<div class="hero-left">
<div class="hero-badge" id="hero-badge">
<svg viewBox="0 0 16 16" fill="none"><circle cx="8" cy="8" r="7" stroke="currentColor" stroke-width="1.5"/><path d="M5 8l2 2 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
Solidity + resolc · ZK Solvency · Polkadot Hub
</div>
<h1 class="hero-h1" id="hero-h1">
<span class="line1">PROVE YOUR SOLVENCY.</span>
<span class="line2">BORROW WITHOUT LIMITS.</span>
</h1>
<p class="hero-sub" id="hero-sub">ZK proofs on Polkadot Hub. Non-custodial. vDOT and WPAS collateral. Borrow USDH. Reveal nothing.</p>
<div class="hero-metrics" id="hero-metrics">
<div class="hm">
<div class="hm-val" data-target="5.2" data-prefix="$" data-suffix="M">$0M</div>
<div class="hm-label">Total Value Locked</div>
</div>
<div class="hm">
<div class="hm-val" data-target="68" data-suffix="%">0%</div>
<div class="hm-label">Avg Utilization</div>
</div>
<div class="hm">
<div class="hm-val" data-target="14700" data-suffix="">0</div>
<div class="hm-label">ZK Proofs Generated</div>
</div>
<div class="hm">
<div class="hm-val" data-target="12" data-suffix="">0</div>
<div class="hm-label">Protocols Integrated</div>
</div>
</div>
<div class="hero-ctas" id="hero-ctas">
<a class="btn-primary" href="https://nexucore.xyz">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M8 2v12M2 8h12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>
Supply Assets
</a>
<a class="btn-ghost" href="#how-it-works">How It Works →</a>
</div>
</div>
<!-- ZK CIRCUIT ANIMATION -->
<div class="hero-right" id="hero-right">
<div class="zk-circuit-wrap">
<div class="zk-ring zk-ring-1"></div>
<div class="zk-ring zk-ring-2"></div>
<div class="zk-ring zk-ring-3"></div>
<svg id="zk-svg" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
<!-- Elliptic curve grid lines -->
<line class="zk-line" x1="50" y1="200" x2="350" y2="200" stroke="rgba(230,0,122,0.08)" stroke-width="1"/>
<line class="zk-line" x1="200" y1="50" x2="200" y2="350" stroke="rgba(230,0,122,0.08)" stroke-width="1"/>
<!-- Elliptic curve -->
<path id="curve-path" d="M 80 280 C 80 150, 160 100, 200 95 C 240 100, 320 150, 320 280" stroke="rgba(230,0,122,0.3)" stroke-width="1.5" fill="none" stroke-dasharray="1000" stroke-dashoffset="1000"/>
<!-- Connection lines between points -->
<line id="conn-1" x1="120" y1="240" x2="280" y2="180" stroke="rgba(255,60,172,0.4)" stroke-width="1" stroke-dasharray="200" stroke-dashoffset="200" stroke-linecap="round"/>
<line id="conn-2" x1="160" y1="170" x2="310" y2="250" stroke="rgba(85,43,191,0.5)" stroke-width="1" stroke-dasharray="200" stroke-dashoffset="200" stroke-linecap="round"/>
<line id="conn-3" x1="200" y1="95" x2="120" y2="240" stroke="rgba(230,0,122,0.4)" stroke-width="1" stroke-dasharray="200" stroke-dashoffset="200" stroke-linecap="round"/>
<line id="conn-4" x1="280" y1="180" x2="200" y2="95" stroke="rgba(244,196,48,0.35)" stroke-width="1" stroke-dasharray="200" stroke-dashoffset="200" stroke-linecap="round"/>
<!-- EC Points -->
<circle id="pt-1" cx="120" cy="240" r="0" fill="#E6007A"/>
<circle id="pt-2" cx="280" cy="180" r="0" fill="#FF3CAC"/>
<circle id="pt-3" cx="160" cy="170" r="0" fill="#552BBF"/>
<circle id="pt-4" cx="310" cy="250" r="0" fill="#E6007A"/>
<circle id="pt-5" cx="200" cy="95" r="0" fill="#F4C430"/>
<circle id="pt-6" cx="90" cy="265" r="0" fill="#FF3CAC"/>
<!-- Glow rings around points -->
<circle id="glow-1" cx="120" cy="240" r="0" fill="none" stroke="#E6007A" stroke-width="1" opacity="0.4"/>
<circle id="glow-2" cx="280" cy="180" r="0" fill="none" stroke="#FF3CAC" stroke-width="1" opacity="0.4"/>
<circle id="glow-3" cx="200" cy="95" r="0" fill="none" stroke="#F4C430" stroke-width="1" opacity="0.4"/>
<!-- Hash labels -->
<text id="lbl-1" x="95" y="255" font-family="JetBrains Mono,monospace" font-size="9" fill="rgba(230,0,122,0)" letter-spacing="0.05em">0x4a2f</text>
<text id="lbl-2" x="255" y="175" font-family="JetBrains Mono,monospace" font-size="9" fill="rgba(255,60,172,0)" letter-spacing="0.05em">0x8c1d</text>
<text id="lbl-3" x="175" y="88" font-family="JetBrains Mono,monospace" font-size="9" fill="rgba(244,196,48,0)" letter-spacing="0.05em">0xf3b9</text>
<!-- Commitment hash box -->
<rect id="hash-box" x="125" y="300" width="150" height="40" rx="6" fill="rgba(17,0,34,0)" stroke="rgba(230,0,122,0)" stroke-width="1"/>
<text id="hash-txt" x="200" y="325" text-anchor="middle" font-family="JetBrains Mono,monospace" font-size="11" fill="rgba(230,0,122,0)" letter-spacing="0.08em">COMMITMENT: 0x7e4a</text>
<!-- ZK Proof bracket -->
<path id="bracket-l" d="M 55 130 L 45 130 L 45 270 L 55 270" stroke="rgba(85,43,191,0)" stroke-width="1.5" fill="none"/>
<path id="bracket-r" d="M 345 130 L 355 130 L 355 270 L 345 270" stroke="rgba(85,43,191,0)" stroke-width="1.5" fill="none"/>
<text id="bracket-lbl" x="200" y="43" text-anchor="middle" font-family="JetBrains Mono,monospace" font-size="10" fill="rgba(85,43,191,0)" letter-spacing="0.12em">NOIR ZK CIRCUIT</text>
</svg>
<div class="stamp-wrap">
<div id="zk-stamp">
<div class="stamp-inner">
<span class="stamp-checkmark">✓</span>
<div class="stamp-title">SOLVENCY VERIFIED</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- PROTOCOL OVERVIEW / INFOGRAPHIC -->
<section id="overview">
<div class="section-inner">
<div class="section-label">Protocol Overview</div>
<h2 class="section-title">How DotLend <span class="grad-text">creates liquidity</span></h2>
<p class="section-sub">The full borrowing cycle — deposit, prove solvency, borrow USDH, repay. The flywheel that powers Polkadot-native DeFi.</p>
<!-- Infographic -->
<div style="margin-top:48px;border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--border2);background:var(--card);">
<img
src="/DotLend_Infographic.png"
alt="DotLend Protocol Overview — The Borrowing Cycle, ZK Solvency Proofs, and Ecosystem Flywheel on Polkadot Hub"
style="width:100%;height:auto;display:block;"
loading="lazy"
>
</div>
<!-- PDF downloads -->
<div style="display:flex;gap:16px;flex-wrap:wrap;margin-top:28px;">
<a href="/DotLend_Protocol.pdf" target="_blank" rel="noopener"
style="display:inline-flex;align-items:center;gap:10px;padding:12px 24px;background:var(--pink2);border:1px solid var(--border2);border-radius:var(--r-sm);font-family:'JetBrains Mono',monospace;font-size:12px;letter-spacing:.08em;color:var(--pink);text-decoration:none;transition:background .2s,border-color .2s;"
onmouseenter="this.style.background='rgba(230,0,122,0.14)';this.style.borderColor='rgba(230,0,122,0.5)'"
onmouseleave="this.style.background='var(--pink2)';this.style.borderColor='var(--border2)'">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="12" y1="18" x2="12" y2="12"/><line x1="9" y1="15" x2="15" y2="15"/></svg>
Protocol Paper (PDF)
</a>
<a href="/DotLend_Native_Polkadot_Lending.pdf" target="_blank" rel="noopener"
style="display:inline-flex;align-items:center;gap:10px;padding:12px 24px;background:var(--pink2);border:1px solid var(--border2);border-radius:var(--r-sm);font-family:'JetBrains Mono',monospace;font-size:12px;letter-spacing:.08em;color:var(--pink);text-decoration:none;transition:background .2s,border-color .2s;"
onmouseenter="this.style.background='rgba(230,0,122,0.14)';this.style.borderColor='rgba(230,0,122,0.5)'"
onmouseleave="this.style.background='var(--pink2)';this.style.borderColor='var(--border2)'">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="12" y1="18" x2="12" y2="12"/><line x1="9" y1="15" x2="15" y2="15"/></svg>
Native Polkadot Lending Paper (PDF)
</a>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- MARKETS TABLE -->
<section id="markets">
<div class="section-inner">
<div class="section-label">Live Markets</div>
<h2 class="section-title">Money Market <span class="grad-text">Rates</span></h2>
<p class="section-sub">On-chain rates from Polkadot Hub TestNet. Two live collateral markets: vDOT (Bifrost) and WPAS (native PAS).</p>
<div style="margin-top:48px">
<div class="markets-scroll">
<table class="markets-table">
<thead>
<tr>
<th>Asset</th>
<th>Supply APY</th>
<th>Borrow APY</th>
<th>TVL</th>
<th>Utilization</th>
</tr>
</thead>
<tbody id="markets-tbody">
<tr class="market-row">
<td>
<div class="asset-cell">
<div class="asset-icon dot">◆</div>
<div>
<div class="asset-name">vDOT</div>
<div class="asset-sub">Bifrost Liquid Staking</div>
</div>
</div>
</td>
<td class="supply-apy" data-counter="15.2" data-suffix="%">15.2%</td>
<td class="borrow-apy" data-counter="6.8" data-suffix="%">6.8%</td>
<td data-counter="2.4" data-prefix="$" data-suffix="M">$2.4M</td>
<td>
<div class="util-bar-wrap">
<span data-counter="68" data-suffix="%">68%</span>
<div class="util-bar"><div class="util-fill" style="width:0%" data-target="68"></div></div>
</div>
</td>
</tr>
<tr class="market-row">
<td>
<div class="asset-cell">
<div class="asset-icon" style="background:linear-gradient(135deg,#E6007A,#9945FF);color:#fff">W</div>
<div>
<div class="asset-name">WPAS</div>
<div class="asset-sub">Wrapped Native PAS</div>
</div>
</div>
</td>
<td class="supply-apy" data-counter="8.5" data-suffix="%">8.5%</td>
<td class="borrow-apy" data-counter="5.5" data-suffix="%">5.5%</td>
<td data-counter="960" data-prefix="$" data-suffix="K">$960K</td>
<td>
<div class="util-bar-wrap">
<span data-counter="61" data-suffix="%">61%</span>
<div class="util-bar"><div class="util-fill" style="width:0%" data-target="61"></div></div>
</div>
</td>
</tr>
</tbody>
</table>
<div class="table-footer">
<span>Polkadot Hub TestNet · Chain ID 420420417 · 13 contracts deployed & verified</span>
<span class="table-badge">TESTNET LIVE</span>
</div>
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- ZK SOLVENCY -->
<section id="zk-solvency">
<div class="section-inner">
<div class="section-label">ZK Solvency Architecture</div>
<h2 class="section-title">Prove you have collateral<br><span class="grad-text">WITHOUT revealing your portfolio.</span></h2>
<div class="zk-quote-box">
<div class="zk-quote">Traditional money markets require full collateral disclosure. DotLend uses <span class="grad-text">Noir ZK circuits</span> to verify solvency mathematically — the protocol learns only what it needs to know.</div>
</div>
<div class="three-grid" style="margin-top:0">
<div class="card zk-pillar">
<div class="card-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="#E6007A" stroke-width="1.5"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
</div>
<div class="card-title">Privacy</div>
<div class="card-text">Your portfolio composition, individual holdings, and total wealth remain completely private. Only a cryptographic proof of solvency is shared with the protocol.</div>
</div>
<div class="card zk-pillar">
<div class="card-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="#E6007A" stroke-width="1.5"><path d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"/></svg>
</div>
<div class="card-title">Verifiability</div>
<div class="card-text">Every solvency proof is mathematically verifiable on-chain in milliseconds. The Solidity verifier contract verifies the Noir proof deterministically — no oracle dependency.</div>
</div>
<div class="card zk-pillar">
<div class="card-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="#E6007A" stroke-width="1.5"><path d="M13 10V3L4 14h7v7l9-11h-7z"/></svg>
</div>
<div class="card-title">Trustlessness</div>
<div class="card-text">No administrator, no multisig, no governance approval needed to borrow. The ZK proof is the only permission required. Fully non-custodial architecture.</div>
</div>
</div>
<div class="zk-quote-box" style="margin-top:32px;border-color:rgba(245,158,11,.3)">
<div class="zk-quote" style="font-size:clamp(16px,1.8vw,22px);color:var(--text2)"><span style="color:#F59E0B">Honest testnet status:</span> The Noir circuit (UltraHonk) compiles and valid proofs are generated every 30 minutes via Railway. On-chain verification uses <code style="font-family:'JetBrains Mono',monospace;color:var(--pink)">MockSolvencyVerifier</code> which accepts all proofs unconditionally. The real verifier cannot deploy yet because <strong>PolkaVM lacks BN254 elliptic curve precompiles</strong>. This is a PolkaVM limitation, not a circuit limitation.</div>
</div>
<!-- ZK FLOW DIAGRAM -->
<div style="margin-top:64px">
<div class="section-label" style="text-align:center;margin-bottom:40px">Proof Generation Flow</div>
<!-- Animated pipeline -->
<div class="zk-pipeline">
<div class="zk-pipe-node" id="zp1">
<div class="zk-pipe-icon">
<svg viewBox="0 0 24 24" fill="none" width="28" height="28"><rect x="3" y="11" width="18" height="10" rx="2" stroke="#E6007A" stroke-width="1.5"/><path d="M7 11V7a5 5 0 0110 0v4" stroke="#E6007A" stroke-width="1.5" stroke-linecap="round"/></svg>
</div>
<div class="zk-pipe-step">01</div>
<div class="zk-pipe-title">Private Input</div>
<div class="zk-pipe-sub">Portfolio balances + prices hashed client-side</div>
<div class="zk-pipe-badge">LOCAL ONLY</div>
</div>
<div class="zk-pipe-arrow">
<div class="zk-pipe-line" id="zpl1"></div>
<svg viewBox="0 0 16 16" fill="none" width="12" height="12"><path d="M4 8h8M9 4l4 4-4 4" stroke="#E6007A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div class="zk-pipe-node" id="zp2">
<div class="zk-pipe-icon" style="background:rgba(153,69,255,0.12);border-color:rgba(153,69,255,0.3)">
<svg viewBox="0 0 24 24" fill="none" width="28" height="28"><polygon points="13,2 3,14 12,14 11,22 21,10 12,10" stroke="#9945FF" stroke-width="1.5" stroke-linejoin="round"/></svg>
</div>
<div class="zk-pipe-step" style="color:#9945FF">02</div>
<div class="zk-pipe-title">Noir Circuit</div>
<div class="zk-pipe-sub">UltraHonk proving system — LTV ratio verified in-circuit</div>
<div class="zk-pipe-badge" style="background:rgba(153,69,255,0.1);border-color:rgba(153,69,255,0.25);color:#9945FF">BARRETENBERG</div>
</div>
<div class="zk-pipe-arrow">
<div class="zk-pipe-line" id="zpl2"></div>
<svg viewBox="0 0 16 16" fill="none" width="12" height="12"><path d="M4 8h8M9 4l4 4-4 4" stroke="#E6007A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div class="zk-pipe-node" id="zp3">
<div class="zk-pipe-icon">
<svg viewBox="0 0 24 24" fill="none" width="28" height="28"><path d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z" stroke="#E6007A" stroke-width="1.5"/></svg>
</div>
<div class="zk-pipe-step">03</div>
<div class="zk-pipe-title">ZK Proof</div>
<div class="zk-pipe-sub">Cryptographic proof: solvent = true, portfolio hidden</div>
<div class="zk-pipe-badge">PUBLIC OUTPUT</div>
</div>
<div class="zk-pipe-arrow">
<div class="zk-pipe-line" id="zpl3"></div>
<svg viewBox="0 0 16 16" fill="none" width="12" height="12"><path d="M4 8h8M9 4l4 4-4 4" stroke="#E6007A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div class="zk-pipe-node" id="zp4">
<div class="zk-pipe-icon" style="background:rgba(34,197,94,0.1);border-color:rgba(34,197,94,0.25)">
<svg viewBox="0 0 24 24" fill="none" width="28" height="28"><path d="M20 7H4a2 2 0 00-2 2v6a2 2 0 002 2h16a2 2 0 002-2V9a2 2 0 00-2-2z" stroke="#22c55e" stroke-width="1.5"/><path d="M16 3v4M8 3v4M16 17v4M8 17v4" stroke="#22c55e" stroke-width="1.5" stroke-linecap="round"/></svg>
</div>
<div class="zk-pipe-step" style="color:#22c55e">04</div>
<div class="zk-pipe-title">On-Chain Verify</div>
<div class="zk-pipe-sub">SolvencyGateway validates proof · O(1) time</div>
<div class="zk-pipe-badge" style="background:rgba(34,197,94,0.1);border-color:rgba(34,197,94,0.25);color:#22c55e">SOLIDITY</div>
</div>
<div class="zk-pipe-arrow">
<div class="zk-pipe-line" id="zpl4"></div>
<svg viewBox="0 0 16 16" fill="none" width="12" height="12"><path d="M4 8h8M9 4l4 4-4 4" stroke="#E6007A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div class="zk-pipe-node zk-pipe-final" id="zp5">
<div class="zk-pipe-icon" style="background:rgba(230,0,122,0.15);border-color:var(--border2)">
<svg viewBox="0 0 24 24" fill="none" width="28" height="28"><path d="M12 2v20M17 5H9.5a3.5 3.5 0 000 7h5a3.5 3.5 0 010 7H6" stroke="#E6007A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div class="zk-pipe-step">05</div>
<div class="zk-pipe-title">Loan Disbursed</div>
<div class="zk-pipe-sub">USDH sent to wallet — no KYC, no counterparty</div>
<div class="zk-pipe-badge" style="background:rgba(230,0,122,0.15);border-color:var(--border2)">INSTANT</div>
</div>
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- HOW IT WORKS -->
<section id="how-it-works">
<div class="section-inner">
<div class="section-label">Protocol Flow</div>
<h2 class="section-title">Three steps to <span class="grad-text">private borrowing</span></h2>
<div class="steps" style="margin-top:48px">
<div class="step step-item">
<div class="step-num">01</div>
<div class="step-content">
<div class="step-title">Deposit Collateral</div>
<div class="step-text">Deposit vDOT (Bifrost liquid staking) or WPAS (native PAS wrapped as ERC-20) into the DotLend CollateralVault. Your deposits earn supply APY immediately. Assets remain in the non-custodial protocol — never in our control.</div>
<div class="step-tags">
<span class="tag">vDOT (Bifrost)</span>
<span class="tag">WPAS</span>
<span class="tag">Non-custodial</span>
<span class="tag">Supply APY</span>
</div>
</div>
</div>
<div class="step step-item">
<div class="step-num">02</div>
<div class="step-content">
<div class="step-title">Generate ZK Proof</div>
<div class="step-text">Your browser or node generates a Noir ZK-SNARK proof (UltraHonk proving system) attesting to your collateral ratio without revealing which assets you hold, their quantities, or your wallet's total value. The circuit enforces the protocol's LTV rules cryptographically.</div>
<div class="step-tags">
<span class="tag">Noir ZK-SNARKs</span>
<span class="tag">UltraHonk</span>
<span class="tag">Client-side proving</span>
<span class="tag">Zero disclosure</span>
</div>
</div>
</div>
<div class="step step-item">
<div class="step-num">03</div>
<div class="step-content">
<div class="step-title">Borrow Against Proof</div>
<div class="step-text">Submit the ZK proof to the SolvencyGateway contract. The Solidity verifier validates the proof in O(1) time and immediately disburses your loan in USDH. No credit check. No KYC. No counterparty. The math is the arbiter.</div>
<div class="step-tags">
<span class="tag">Solidity contract</span>
<span class="tag">Instant disbursement</span>
<span class="tag">No KYC</span>
<span class="tag">O(1) verification</span>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- ARCHITECTURE -->
<section id="architecture">
<div class="section-inner">
<div class="section-label">Technical Stack</div>
<h2 class="section-title">Built on <span class="grad-text">Polkadot-native</span> infrastructure</h2>
<p class="section-sub">Solidity contracts compiled via resolc for PolkaVM. OpenZeppelin v4.9.6. 102 Hardhat + 6 Forge fuzz tests.</p>
<!-- Visual stack diagram -->
<div class="stack-diagram">
<div class="stack-layer" style="--sl-color:#E6007A;--sl-bg:rgba(230,0,122,0.06)">
<div class="stack-layer-badge">Layer 3 — ZK Proof Layer</div>
<div class="stack-layer-inner">
<div class="stack-item">
<div class="stack-icon" style="color:#9945FF">
<svg viewBox="0 0 20 20" fill="none" width="20" height="20"><path d="M10 2l2.5 5h5l-4 3.5L15 16l-5-3.5L5 16l1.5-5.5L2.5 7h5z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round"/></svg>
</div>
<div>
<div class="stack-name">Noir Language</div>
<div class="stack-ver">v1.0.0-beta.19</div>
</div>
</div>
<div class="stack-item">
<div class="stack-icon" style="color:#E6007A">
<svg viewBox="0 0 20 20" fill="none" width="20" height="20"><circle cx="10" cy="10" r="7" stroke="currentColor" stroke-width="1.2"/><path d="M10 6v4l3 2" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>
</div>
<div>
<div class="stack-name">UltraHonk</div>
<div class="stack-ver">Proving System</div>
</div>
</div>
<div class="stack-item">
<div class="stack-icon" style="color:#C084FC">
<svg viewBox="0 0 20 20" fill="none" width="20" height="20"><path d="M3 17l4-8 4 4 3-6 3 10" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div>
<div class="stack-name">Barretenberg</div>
<div class="stack-ver">Backend + WASM</div>
</div>
</div>
<div class="stack-item">
<div class="stack-icon" style="color:#F59E0B">
<svg viewBox="0 0 20 20" fill="none" width="20" height="20"><path d="M10 3v14M3 10h14" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/><rect x="6" y="6" width="8" height="8" rx="1" stroke="currentColor" stroke-width="1.2"/></svg>
</div>
<div>
<div class="stack-name">Railway Cron</div>
<div class="stack-ver">Every 30 min</div>
</div>
</div>
</div>
</div>
<div class="stack-connector">
<div class="stack-conn-line"></div>
<span>feeds verified proofs to</span>
<div class="stack-conn-line"></div>
</div>
<div class="stack-layer" style="--sl-color:#2775CA;--sl-bg:rgba(39,117,202,0.06)">
<div class="stack-layer-badge" style="background:rgba(39,117,202,0.12);border-color:rgba(39,117,202,0.3);color:#60A5FA">Layer 2 — Smart Contracts</div>
<div class="stack-layer-inner">
<div class="stack-item">
<div class="stack-icon" style="color:#60A5FA">
<svg viewBox="0 0 20 20" fill="none" width="20" height="20"><path d="M10 2L3 7v6l7 5 7-5V7z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round"/></svg>
</div>
<div>
<div class="stack-name">Solidity</div>
<div class="stack-ver">v0.8.20</div>
</div>
</div>
<div class="stack-item">
<div class="stack-icon" style="color:#4ADE80">
<svg viewBox="0 0 20 20" fill="none" width="20" height="20"><circle cx="10" cy="10" r="7" stroke="currentColor" stroke-width="1.2"/><path d="M7 10l2 2 4-4" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div>
<div class="stack-name">OpenZeppelin</div>
<div class="stack-ver">v4.9.6</div>
</div>
</div>
<div class="stack-item">
<div class="stack-icon" style="color:#F59E0B">
<svg viewBox="0 0 20 20" fill="none" width="20" height="20"><path d="M4 4h12v12H4z" stroke="currentColor" stroke-width="1.2" rx="1"/><path d="M4 8h12M8 4v12" stroke="currentColor" stroke-width="1.2"/></svg>
</div>
<div>
<div class="stack-name">Hardhat + Forge</div>
<div class="stack-ver">108 tests</div>
</div>
</div>
<div class="stack-item">
<div class="stack-icon" style="color:#E6007A">
<svg viewBox="0 0 20 20" fill="none" width="20" height="20"><circle cx="10" cy="6" r="3" stroke="currentColor" stroke-width="1.2"/><path d="M4 18c0-3.3 2.7-6 6-6s6 2.7 6 6" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>
</div>
<div>
<div class="stack-name">resolc 0.5.0</div>
<div class="stack-ver">Solidity → PolkaVM</div>
</div>
</div>
</div>
</div>
<div class="stack-connector">
<div class="stack-conn-line"></div>
<span>deployed on</span>
<div class="stack-conn-line"></div>
</div>
<div class="stack-layer" style="--sl-color:#E6007A;--sl-bg:rgba(230,0,122,0.04)">
<div class="stack-layer-badge">Layer 1 — Polkadot Hub EVM</div>
<div class="stack-layer-inner">
<div class="stack-item">
<div class="stack-icon" style="color:#E6007A">
<svg viewBox="0 0 20 20" fill="none" width="20" height="20"><circle cx="10" cy="10" r="4" stroke="currentColor" stroke-width="1.2"/><circle cx="10" cy="10" r="8" stroke="currentColor" stroke-width="1.2" stroke-dasharray="4 2"/></svg>
</div>
<div>
<div class="stack-name">Polkadot Hub</div>
<div class="stack-ver">Chain ID 420420417</div>
</div>
</div>
<div class="stack-item">
<div class="stack-icon" style="color:#E6007A">
<svg viewBox="0 0 20 20" fill="none" width="20" height="20"><rect x="2" y="6" width="16" height="10" rx="2" stroke="currentColor" stroke-width="1.2"/><path d="M6 6V4a4 4 0 018 0v2" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>
</div>
<div>
<div class="stack-name">PolkaVM</div>
<div class="stack-ver">RISC-V Runtime</div>
</div>
</div>
<div class="stack-item">
<div class="stack-icon" style="color:#F8B4D9">
<svg viewBox="0 0 20 20" fill="none" width="20" height="20"><path d="M10 2l2 6h6l-5 4 2 6-5-4-5 4 2-6-5-4h6z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round"/></svg>
</div>
<div>
<div class="stack-name">DOT Security</div>
<div class="stack-ver">$10B+ staked</div>
</div>
</div>
<div class="stack-item">
<div class="stack-icon" style="color:#22c55e">
<svg viewBox="0 0 20 20" fill="none" width="20" height="20"><path d="M3 6h14l-2 10H5L3 6z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round"/><path d="M1 6h18M8 3h4" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>
</div>
<div>
<div class="stack-name">Blockscout</div>
<div class="stack-ver">All 13 verified</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- SECURITY -->
<section id="security">
<div class="section-inner">
<div class="section-label">Security Model</div>
<h2 class="section-title">Security through <span class="grad-text">cryptographic guarantees</span></h2>
<p class="section-sub">No trust assumptions. No multisig keys. No admin backdoors. Every guarantee is enforced by mathematics.</p>
<div class="security-grid">
<div class="security-item">
<div class="security-check">
<svg viewBox="0 0 18 18" fill="none"><path d="M4 9l3.5 3.5L14 5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div>
<div class="security-title">Non-Custodial Architecture</div>
<div class="security-text">Your assets are locked in Solidity contracts you interact with directly. DotLend has zero ability to move, freeze, or access deposited funds outside of protocol rules.</div>
</div>
</div>
<div class="security-item">
<div class="security-check">
<svg viewBox="0 0 18 18" fill="none"><path d="M4 9l3.5 3.5L14 5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div>
<div class="security-title">Formal Audit Trail</div>
<div class="security-text">All Solidity contracts and Noir circuits undergo independent security audits before mainnet deployment. Audit reports published on-chain and in GitHub.</div>
</div>
</div>
<div class="security-item">
<div class="security-check">
<svg viewBox="0 0 18 18" fill="none"><path d="M4 9l3.5 3.5L14 5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div>
<div class="security-title">ZK Soundness Guarantees</div>
<div class="security-text">UltraHonk's soundness properties make it computationally infeasible to generate a valid solvency proof for an insolvent position. The math is the backstop.</div>
</div>
</div>
<div class="security-item">
<div class="security-check">
<svg viewBox="0 0 18 18" fill="none"><path d="M4 9l3.5 3.5L14 5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div>
<div class="security-title">Polkadot Shared Security</div>
<div class="security-text">Polkadot Hub inherits the full economic security of the relay chain validator set — over $10B in staked DOT protecting every transaction.</div>
</div>
</div>
<div class="security-item">
<div class="security-check">
<svg viewBox="0 0 18 18" fill="none"><path d="M4 9l3.5 3.5L14 5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div>
<div class="security-title">Oracle-Independent Pricing</div>
<div class="security-text">ZK proofs use on-chain state from the relay chain as price witnesses — no third-party oracle. Eliminates the oracle manipulation attack surface entirely.</div>
</div>
</div>
<div class="security-item">
<div class="security-check">
<svg viewBox="0 0 18 18" fill="none"><path d="M4 9l3.5 3.5L14 5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div>
<div class="security-title">Immutable Liquidation Logic</div>
<div class="security-text">Liquidation thresholds and parameters are set at deployment and cannot be changed without a full contract upgrade — giving borrowers predictable risk rules.</div>
</div>
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- PROTOCOL PARAMETERS -->
<section id="params">
<div class="section-inner">
<div class="section-label">Protocol Parameters</div>
<h2 class="section-title">Conservative by <span class="grad-text">design</span></h2>
<p class="section-sub">Every parameter chosen to maximize borrower safety and liquidator incentives.</p>
<div class="params-grid">
<div class="param-card">
<div class="param-header">
<div class="param-label">Loan-to-Value Ratio</div>
<div class="param-value" data-param="70">0%</div>
</div>
<div class="param-bar"><div class="param-fill" style="--pf-w:70%;--pf-color:#E6007A"></div></div>
<div class="param-desc">Conservative LTV — leaves 10% buffer above the liquidation threshold. Standard for early-stage lending markets.</div>
</div>
<div class="param-card">
<div class="param-header">
<div class="param-label">Liquidation Threshold</div>
<div class="param-value" data-param="80">0%</div>
</div>
<div class="param-bar"><div class="param-fill" style="--pf-w:80%;--pf-color:#F59E0B"></div></div>
<div class="param-desc">When health factor drops below 1.0, liquidators can seize collateral with a 5% bonus. Matches MakerDAO CDP design.</div>
</div>
<div class="param-card">
<div class="param-header">
<div class="param-label">Stability Fee</div>
<div class="param-value" style="font-size:clamp(20px,2.5vw,36px)">0.5%/yr</div>
</div>
<div class="param-bar"><div class="param-fill" style="--pf-w:5%;--pf-color:#22c55e"></div></div>