-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
662 lines (585 loc) · 20.5 KB
/
Copy pathindex.html
File metadata and controls
662 lines (585 loc) · 20.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rize with RyGen</title>
<link rel="icon" type="image/png" href="circle_logo.png">
<style>
:root {
--bg-top: #2d1731;
--bg-mid: #0b2f3f;
--bg-bottom: #081d38;
--text: #e9f5ff;
--primary: #4ab7ff;
}
html, body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
background: #040e1c;
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* Background Elements */
#app {
position: fixed;
inset: 0;
overflow: hidden;
background:
radial-gradient(ellipse at center, rgba(25, 88, 112, 0.18) 0%, rgba(8, 13, 22, 0.06) 36%, rgba(8, 29, 56, 0.96) 100%),
linear-gradient(to bottom, var(--bg-top) 0%, #143142 18%, var(--bg-mid) 52%, var(--bg-bottom) 100%);
}
canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
image-rendering: pixelated;
z-index: 1;
}
.noise {
position: absolute;
inset: 0;
pointer-events: none;
opacity: 0.12;
background-image:
linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
background-size: 100% 3px, 3px 100%;
mix-blend-mode: soft-light;
z-index: 2;
}
.vignette {
position: absolute;
inset: 0;
pointer-events: none;
background:
radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 52%, rgba(0,0,0,0.48) 100%),
linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.06) 18%, rgba(0,0,0,0.08) 82%, rgba(0,0,0,0.28));
z-index: 3;
}
/* Top Navigation Bar */
.navbar {
position: absolute;
top: 0;
left: 0;
width: 100%;
padding: 24px 40px;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
z-index: 10;
}
.nav-brand {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
color: var(--text);
transition: opacity 0.3s ease;
}
.nav-brand:hover {
opacity: 0.8;
}
.nav-brand img {
width: 36px;
height: 36px;
border-radius: 50%;
box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
.nav-brand span {
font-size: 18px;
font-weight: 500;
letter-spacing: 0.3em;
}
.nav-links {
display: flex;
gap: 16px;
align-items: center;
}
/* Common Square Button Styles with Modern Hover */
.btn {
text-decoration: none;
display: inline-block;
appearance: none;
border: 1px solid rgba(255, 255, 255, 0.15);
background: rgba(255, 255, 255, 0.03);
color: var(--text);
padding: 12px 24px;
font-size: 11px;
font-weight: 500;
letter-spacing: 0.25em;
text-transform: uppercase;
border-radius: 0px; /* Square edges */
backdrop-filter: blur(12px);
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
position: relative;
overflow: hidden;
z-index: 1; /* For stacking context */
}
/* Glow effect pseudo-element */
.btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 150%;
padding-top: 150%;
border-radius: 50%;
background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
transform: translate(-50%, -50%) scale(0);
transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
z-index: -1;
}
.btn:hover {
border-color: rgba(255, 255, 255, 0.4);
transform: translateY(-2px) scale(1.02);
}
/* Button Hover Effect */
.btn:hover::before {
transform: translate(-50%, -50%) scale(1);
}
.btn.primary {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.3);
color: #fff;
}
.btn.primary:hover {
border-color: var(--primary);
box-shadow: 0 0 25px rgba(74, 183, 255, 0.2);
}
/* Center Hero Section */
.hero {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
text-align: center;
z-index: 10;
display: flex;
flex-direction: column;
align-items: center;
width: min(90vw, 800px);
}
.hero img {
width: 315px;
height: auto;
margin-bottom: 24px;
filter: drop-shadow(0 0 20px rgba(255,255,255,0.1));
}
/* --- NEW --- Dynamic Hero Title */
.hero-title {
font-size: clamp(36px, 6vw, 72px);
font-weight: 700;
letter-spacing: 0.05em;
margin: 0 0 16px 0;
text-transform: uppercase;
background: linear-gradient(45deg, #ffffff 30%, #4ab7ff 70%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
text-shadow: 0 0 30px rgba(74, 183, 255, 0.3);
}
/* --- NEW --- Hero Subtitle */
.hero-subtitle {
color: rgba(233, 245, 255, 0.7);
font-size: clamp(12px, 2.5vw, 16px);
font-weight: 400;
line-height: 1.6;
letter-spacing: 0.1em;
margin: 0 0 40px 0;
max-width: 600px;
text-transform: uppercase;
}
/* Glowing Tracer Button for Documentation */
.tracer-btn {
padding: 16px 36px;
font-size: 13px;
border: 1px solid rgba(162, 207, 255, 0.3);
background: rgba(0, 20, 40, 0.4);
position: relative;
overflow: hidden;
}
.tracer-btn span {
position: absolute;
display: block;
}
.tracer-btn span:nth-child(1) {
top: 0;
left: -100%;
width: 100%;
height: 2px;
background: linear-gradient(90deg, transparent, var(--primary));
animation: trace1 4s linear infinite;
}
@keyframes trace1 {
0% { left: -100%; } 50%, 100% { left: 100%; }
}
.tracer-btn span:nth-child(2) {
top: -100%;
right: 0;
width: 2px;
height: 100%;
background: linear-gradient(180deg, transparent, var(--primary));
animation: trace2 4s linear infinite;
animation-delay: 1s;
}
@keyframes trace2 {
0% { top: -100%; } 50%, 100% { top: 100%; }
}
.tracer-btn span:nth-child(3) {
bottom: 0;
right: -100%;
width: 100%;
height: 2px;
background: linear-gradient(270deg, transparent, var(--primary));
animation: trace3 4s linear infinite;
animation-delay: 2s;
}
@keyframes trace3 {
0% { right: -100%; } 50%, 100% { right: 100%; }
}
/* Tracer button */
.tracer-btn span:nth-child(4) {
bottom: -100%;
left: 0;
width: 2px;
height: 100%;
background: linear-gradient(360deg, transparent, var(--primary));
animation: trace4 4s linear infinite;
animation-delay: 3s;
}
@keyframes trace4 {
0% { bottom: -100%; } 50%, 100% { bottom: 100%; }
}
/* Bottom Right Status */
.status-btn {
position: absolute;
bottom: 30px;
right: 40px;
text-decoration: none;
display: flex;
align-items: center;
gap: 10px;
background: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255,255,255,0.1);
padding: 10px 20px;
color: rgba(255, 255, 255, 0.7);
font-size: 10px;
letter-spacing: 0.2em;
text-transform: uppercase;
backdrop-filter: blur(8px);
z-index: 10;
border-radius: 0; /* Square edges */
}
.status-dot {
width: 7px;
height: 7px;
background-color: #00e676;
border-radius: 50%;
animation: pulse-live 2.5s infinite;
}
@keyframes pulse-live {
0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}
/* Bottom Middle Copyright */
.copyright {
position: absolute;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
color: rgba(255, 255, 255, 0.5);
font-size: 10px;
font-weight: 500;
letter-spacing: 0.15em;
text-transform: uppercase;
z-index: 10;
margin: 0;
pointer-events: none;
white-space: nowrap;
}
/* Bottom Left Links */
.footer-links {
position: absolute;
bottom: 30px;
left: 40px;
display: flex;
gap: 20px;
z-index: 10;
}
.footer-links a {
color: rgba(255, 255, 255, 0.6);
display: inline-block;
transition: color 0.3s ease, transform 0.3s ease;
}
.footer-links a:hover {
color: var(--text);
transform: scale(1.1);
}
.footer-links a svg {
width: 32px;
height: 32px;
display: block;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
.navbar {
padding: 20px;
flex-direction: column;
gap: 20px;
}
.nav-links {
gap: 10px;
}
.btn {
padding: 10px 16px;
font-size: 9px;
}
.hero {
top: 55%;
}
.hero-subtitle {
margin-bottom: 30px; /* Reduced space on smaller screens */
}
.status-btn {
display: none; /* Hide status on mobile to avoid overlap */
}
.footer-links {
bottom: 20px;
left: 20px;
}
.copyright {
bottom: 15px;
font-size: 8px;
width: 100%;
text-align: center;
left: 0;
transform: none;
}
}
</style>
</head>
<body>
<div id="app">
<!-- Background Canvas and Overlays -->
<canvas id="bg"></canvas>
<div class="noise"></div>
<div class="vignette"></div>
<!-- Top Navigation -->
<nav class="navbar">
<a href="/" class="nav-brand">
<img src="circle_logo.png" alt="RyGen Logo">
<span>RYGEN</span>
</a>
<div class="nav-links">
<a href="/pricing" class="btn" target="_blank">Models & Pricing</a>
<a href="/start" class="btn primary" target="_blank">Get Started</a>
</div>
</nav>
<!-- Center Content -->
<div class="hero">
<img src="main_logo.png" alt="RyGen Main Logo">
<!-- New Title & Subtitle Theme -->
<h1 class="hero-title">Uncompromised AI</h1>
<p class="hero-subtitle">The world's most affordable Gateway to AI.<br>Enterprise security. Absolute privacy.</p>
<a href="/docs" class="btn tracer-btn" target="_blank">
<!-- Spans for the tracer effect -->
<span></span>
<span></span>
<span></span>
<span></span>
Start Building Now
</a>
</div>
<!-- Bottom Right Status -->
<a href="https://status.rygen.io" class="status-btn" target="_blank">
<div class="status-dot"></div>
API Uptime ❯❯❯
</a>
<!-- Bottom Left Links "Email" -->
<div class="footer-links">
<a href="mailto:support@rygen.io" target="_blank" title="Contact Support">
<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>
</a>
<!-- Bottom Left Links "Join Discord" -->
<a href="/discord" target="_blank" title="Join our Discord">
<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg>
</a>
</div>
<!-- Bottom Middle Copyright Text -->
<p class="copyright">All Rights Reserved • RYGEN.IO • 2026</p>
</div>
<!-- Background Animation Script (Untouched) -->
<script>
(() => {
const canvas = document.getElementById('bg');
const ctx = canvas.getContext('2d', { alpha: false });
let w = 0, h = 0, dpr = 1;
let grid = [];
let cols = 0, rows = 0;
const baseCell = 22;
function clamp(v, a, b) { return Math.max(a, Math.min(b, v)); }
function lerp(a, b, t) { return a + (b - a) * t; }
function smoothstep(t) { return t * t * (3 - 2 * t); }
function hash2(x, y) {
const s = Math.sin(x * 127.1 + y * 311.7) * 43758.5453123;
return s - Math.floor(s);
}
function noise2(x, y) {
const ix = Math.floor(x), iy = Math.floor(y);
const fx = x - ix, fy = y - iy;
const a = hash2(ix, iy);
const b = hash2(ix + 1, iy);
const c = hash2(ix, iy + 1);
const d = hash2(ix + 1, iy + 1);
const ux = smoothstep(fx);
const uy = smoothstep(fy);
return lerp(lerp(a, b, ux), lerp(c, d, ux), uy);
}
function fbm(x, y, t) {
let total = 0;
let amp = 0.5;
let freq = 0.9;
for (let i = 0; i < 4; i++) {
total += amp * noise2(x * freq + t * 0.08, y * freq - t * 0.05);
freq *= 2.0;
amp *= 0.5;
}
return total;
}
function resize() {
dpr = Math.min(window.devicePixelRatio || 1, 2);
w = Math.floor(window.innerWidth);
h = Math.floor(window.innerHeight);
canvas.width = Math.floor(w * dpr);
canvas.height = Math.floor(h * dpr);
canvas.style.width = w + 'px';
canvas.style.height = h + 'px';
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
cols = Math.ceil(w / baseCell) + 2;
rows = Math.ceil(h / baseCell) + 2;
grid = [];
for (let y = 0; y < rows; y++) {
for (let x = 0; x < cols; x++) {
grid.push({
x, y,
seed: Math.random() * 1000,
size: baseCell * (0.8 + Math.random() * 1.55),
depth: Math.random(),
hueShift: Math.random() * 0.9,
});
}
}
}
function drawBackground(t) {
const cx = w * 0.5;
const cy = h * 0.43;
const grad = ctx.createLinearGradient(0, 0, 0, h);
grad.addColorStop(0.00, '#2e1733');
grad.addColorStop(0.18, '#173747');
grad.addColorStop(0.48, '#0b2b3a');
grad.addColorStop(1.00, '#081d38');
ctx.fillStyle = grad;
ctx.fillRect(0, 0, w, h);
const g1 = ctx.createRadialGradient(cx * 0.95, cy * 0.72, 0, cx * 0.95, cy * 0.72, Math.max(w, h) * 0.7);
g1.addColorStop(0, 'rgba(95, 201, 231, 0.18)');
g1.addColorStop(0.35, 'rgba(48, 128, 163, 0.10)');
g1.addColorStop(1, 'rgba(0,0,0,0)');
ctx.fillStyle = g1;
ctx.fillRect(0, 0, w, h);
const g2 = ctx.createRadialGradient(cx, cy, 0, cx, cy, Math.max(w, h) * 0.55);
g2.addColorStop(0, 'rgba(255,255,255,0.04)');
g2.addColorStop(0.25, 'rgba(255,255,255,0.02)');
g2.addColorStop(1, 'rgba(0,0,0,0)');
ctx.fillStyle = g2;
ctx.fillRect(0, 0, w, h);
}
function blockColor(nx, ny, t, depth) {
const vertical = clamp(ny, 0, 1);
const band = fbm(nx * 2.4, ny * 2.0, t + depth * 2.1);
const drift = Math.sin((nx * 3.5 + t * 0.55) + depth * 6.3) * 0.5 + 0.5;
let r = 10, g = 18, b = 28;
if (vertical < 0.24) {
r = lerp(56, 28, vertical / 0.24);
g = lerp(18, 38, vertical / 0.24);
b = lerp(52, 64, vertical / 0.24);
} else if (vertical < 0.62) {
const u = (vertical - 0.24) / 0.38;
r = lerp(20, 14, u);
g = lerp(42, 72, u);
b = lerp(66, 92, u);
} else {
const u = (vertical - 0.62) / 0.38;
r = lerp(14, 8, u);
g = lerp(42, 29, u);
b = lerp(66, 56, u);
}
const glow = Math.pow(clamp(band - 0.30, 0, 1), 1.9);
const shadow = Math.pow(clamp(0.54 - band, 0, 1), 1.7);
r += glow * 14 - shadow * 7;
g += glow * 28 - shadow * 10;
b += glow * 34 - shadow * 6;
if (vertical < 0.18) {
r += 12 + drift * 6;
b += 12 + drift * 8;
}
return `rgb(${clamp(Math.round(r), 0, 255)}, ${clamp(Math.round(g), 0, 255)}, ${clamp(Math.round(b), 0, 255)})`;
}
function render(tms) {
const t = tms * 0.001;
drawBackground(t);
const centerX = w * 0.5;
const centerY = h * 0.44;
const swayX = Math.sin(t * 0.32) * 16;
const swayY = Math.cos(t * 0.24) * 10;
for (const cell of grid) {
const px = (cell.x - 1) * baseCell;
const py = (cell.y - 1) * baseCell;
const nx = px / w;
const ny = py / h;
const dist = Math.hypot((px - w * 0.5) / w, (py - h * 0.48) / h);
const centerFalloff = 1 - clamp(dist * 1.85, 0, 1);
const n = fbm(cell.x * 0.95, cell.y * 0.88, t + cell.seed * 0.01);
const n2 = fbm(cell.x * 0.6 + 10, cell.y * 0.55 + 10, t * 0.7 + cell.seed * 0.02);
const pulse = 0.45 + 0.55 * Math.sin(t * 0.8 + cell.seed * 0.02 + n * 4.0);
const alive = clamp((n * 0.82 + n2 * 0.42 + pulse * 0.22) / 1.3, 0, 1);
const density = clamp(0.22 + centerFalloff * 0.85, 0, 1);
if (alive < 0.28 + (1 - density) * 0.24) continue;
const size = cell.size * (0.62 + alive * 0.92);
const x = px + Math.sin(t * 0.42 + cell.seed) * 5 + swayX * (0.08 + cell.depth * 0.14);
const y = py + Math.cos(t * 0.36 + cell.seed * 0.6) * 4 + swayY * (0.04 + cell.depth * 0.10);
const color = blockColor(nx, ny, t, cell.depth);
ctx.globalAlpha = 0.10 + alive * 0.26;
ctx.fillStyle = color;
ctx.fillRect(x, y, size, size);
ctx.globalAlpha = 0.08 + alive * 0.14;
ctx.fillStyle = 'rgba(255,255,255,0.05)';
ctx.fillRect(x + 1, y + 1, Math.max(1, size * 0.18), Math.max(1, size * 0.18));
if ((cell.x + cell.y) % 3 === 0) {
ctx.globalAlpha = 0.06;
ctx.fillStyle = 'rgba(0,0,0,0.65)';
ctx.fillRect(x + size * 0.52, y + size * 0.08, size * 0.12, size * 0.86);
}
}
const haze = ctx.createRadialGradient(centerX, centerY, 0, centerX, centerY, Math.max(w, h) * 0.18);
haze.addColorStop(0, 'rgba(255,255,255,0.055)');
haze.addColorStop(0.5, 'rgba(255,255,255,0.018)');
haze.addColorStop(1, 'rgba(255,255,255,0)');
ctx.globalAlpha = 1;
ctx.fillStyle = haze;
ctx.fillRect(0, 0, w, h);
ctx.globalAlpha = 1;
requestAnimationFrame(render);
}
window.addEventListener('resize', resize, { passive: true });
resize();
requestAnimationFrame(render);
})();
</script>
</body>
</html>