-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
718 lines (679 loc) · 30.5 KB
/
index.html
File metadata and controls
718 lines (679 loc) · 30.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
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>BancoScope — Comparador de Bancos Brasileiros</title>
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap" rel="stylesheet"/>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--green: #00C896;
--gold: #F5A623;
--dark: #0A0F1C;
--card: #111827;
--border: rgba(255,255,255,0.07);
--text: #E8EDF5;
--muted: #6B7A99;
--radius: 16px;
}
html { scroll-behavior: smooth; }
body {
background: var(--dark);
color: var(--text);
font-family: 'DM Sans', sans-serif;
min-height: 100vh;
overflow-x: hidden;
}
/* Background mesh */
body::before {
content: '';
position: fixed;
inset: 0;
background:
radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0,200,150,0.12) 0%, transparent 60%),
radial-gradient(ellipse 60% 40% at 80% 110%, rgba(245,166,35,0.08) 0%, transparent 60%);
pointer-events: none;
z-index: 0;
}
/* NAV */
nav {
position: sticky; top: 0; z-index: 100;
display: flex; align-items: center; justify-content: space-between;
padding: 18px 48px;
background: rgba(10,15,28,0.85);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
}
.logo { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--green); }
.nav-tabs { display: flex; gap: 8px; }
.tab-btn {
padding: 8px 20px; border-radius: 100px; border: 1px solid var(--border);
background: transparent; color: var(--muted); font-family: 'DM Sans', sans-serif;
font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { background: var(--green); color: var(--dark); border-color: var(--green); font-weight: 500; }
/* HERO */
.hero {
position: relative; z-index: 1;
text-align: center; padding: 80px 24px 48px;
}
.hero-tag {
display: inline-block; padding: 6px 16px; border-radius: 100px;
background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.3);
color: var(--green); font-size: 0.78rem; font-weight: 500; letter-spacing: 1px;
text-transform: uppercase; margin-bottom: 24px;
}
h1 {
font-family: 'Syne', sans-serif; font-size: clamp(2.4rem, 6vw, 4.2rem);
font-weight: 800; line-height: 1.1; letter-spacing: -1.5px;
margin-bottom: 20px;
}
h1 em { color: var(--green); font-style: normal; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto 40px; line-height: 1.7; }
/* SEARCH */
.search-wrap { position: relative; max-width: 480px; margin: 0 auto 16px; }
.search-wrap input {
width: 100%; padding: 14px 48px 14px 20px;
border-radius: 100px; border: 1px solid var(--border);
background: rgba(255,255,255,0.04); color: var(--text);
font-family: 'DM Sans', sans-serif; font-size: 0.95rem; outline: none;
transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: var(--green); }
.search-wrap input::placeholder { color: var(--muted); }
.search-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1rem; }
/* STATS BAR */
.stats-bar {
position: relative; z-index: 1;
display: flex; justify-content: center; gap: 48px;
padding: 0 24px 56px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--green); }
.stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
/* SECTIONS */
section { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }
section h2 {
font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 700;
letter-spacing: -0.5px; margin-bottom: 8px;
}
.section-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
/* BANK CARDS GRID */
.banks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.bank-card {
background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
padding: 28px; cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden;
}
.bank-card::before {
content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
background: linear-gradient(135deg, rgba(0,200,150,0.06), transparent);
}
.bank-card:hover { border-color: rgba(0,200,150,0.3); transform: translateY(-3px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.bank-card:hover::before { opacity: 1; }
.bank-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.bank-logo {
width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center;
justify-content: center; font-size: 1.6rem; flex-shrink: 0;
border: 1px solid var(--border);
}
.bank-name { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; }
.bank-type { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.bank-badge {
margin-left: auto; padding: 4px 10px; border-radius: 100px;
font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-digital { background: rgba(0,200,150,0.15); color: var(--green); }
.badge-traditional { background: rgba(245,166,35,0.15); color: var(--gold); }
.badge-investment { background: rgba(139,92,246,0.15); color: #A78BFA; }
.bank-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.metric { background: rgba(255,255,255,0.03); border-radius: 10px; padding: 12px 14px; }
.metric-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.metric-value { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; }
.metric-value.highlight { color: var(--green); }
.metric-value.gold { color: var(--gold); }
.bank-benefits { display: flex; flex-wrap: wrap; gap: 6px; }
.benefit-tag {
padding: 4px 10px; border-radius: 100px; font-size: 0.72rem;
background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted);
}
/* CDB TABLE */
.cdb-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: rgba(255,255,255,0.03); }
th { padding: 14px 20px; text-align: left; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; border-bottom: 1px solid var(--border); }
td { padding: 16px 20px; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.rank-num { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--muted); }
.rank-num.top { color: var(--green); }
.rate-bar-wrap { display: flex; align-items: center; gap: 12px; }
.rate-bar { height: 6px; border-radius: 100px; background: rgba(255,255,255,0.06); flex: 1; max-width: 120px; }
.rate-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--green), #00FFB2); }
.rate-val { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--green); font-size: 0.95rem; }
.fgc-badge { padding: 3px 8px; border-radius: 100px; font-size: 0.65rem; background: rgba(0,200,150,0.1); color: var(--green); border: 1px solid rgba(0,200,150,0.2); }
/* COMPARISON */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.compare-card {
background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
padding: 24px; text-align: center;
}
.compare-icon { font-size: 2rem; margin-bottom: 12px; }
.compare-title { font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.compare-winner { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.compare-detail { font-size: 0.78rem; color: var(--muted); }
/* FOOTER */
footer {
position: relative; z-index: 1;
text-align: center; padding: 32px 24px;
border-top: 1px solid var(--border);
color: var(--muted); font-size: 0.8rem; line-height: 1.8;
}
footer strong { color: var(--green); }
/* MODAL */
.modal-overlay {
display: none; position: fixed; inset: 0; z-index: 200;
background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
background: var(--card); border: 1px solid var(--border); border-radius: 24px;
padding: 36px; max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto;
animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
float: right; background: rgba(255,255,255,0.08); border: none; color: var(--text);
width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem;
display: flex; align-items: center; justify-content: center;
}
.modal h3 { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.modal-section { margin-top: 24px; }
.modal-section h4 { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.modal-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.modal-list li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.modal-list li::before { content: '✓'; color: var(--green); font-weight: 700; }
.modal-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.pros, .cons { background: rgba(255,255,255,0.03); border-radius: 10px; padding: 14px; }
.pros h5 { color: var(--green); font-size: 0.75rem; text-transform: uppercase; margin-bottom: 8px; }
.cons h5 { color: #F87171; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 8px; }
.pros li::before { color: var(--green) !important; }
.cons li::before { content: '✗' !important; color: #F87171 !important; }
/* FADE IN ANIMATION */
.fade-in { animation: fadeIn 0.5s ease forwards; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; } }
.bank-card { animation: fadeIn 0.4s ease forwards; opacity: 0; }
.bank-card:nth-child(1) { animation-delay: 0.05s; }
.bank-card:nth-child(2) { animation-delay: 0.10s; }
.bank-card:nth-child(3) { animation-delay: 0.15s; }
.bank-card:nth-child(4) { animation-delay: 0.20s; }
.bank-card:nth-child(5) { animation-delay: 0.25s; }
.bank-card:nth-child(6) { animation-delay: 0.30s; }
.bank-card:nth-child(7) { animation-delay: 0.35s; }
.bank-card:nth-child(8) { animation-delay: 0.40s; }
@media(max-width: 640px) {
nav { padding: 14px 20px; }
.nav-tabs { display: none; }
.stats-bar { gap: 28px; }
.modal-pros-cons { grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<nav>
<div class="logo">Banco<span>Scope</span></div>
<div class="nav-tabs">
<button class="tab-btn active" onclick="showSection('banks')">Bancos</button>
<button class="tab-btn" onclick="showSection('cdb')">CDB</button>
<button class="tab-btn" onclick="showSection('compare')">Comparativo</button>
</div>
</nav>
<div class="hero">
<div class="hero-tag">🇧🇷 Mercado Financeiro Brasileiro</div>
<h1>Compare os melhores<br/><em>bancos do Brasil</em></h1>
<p>CDB, benefícios, taxas e vantagens dos principais bancos brasileiros em um só lugar.</p>
<div class="search-wrap">
<input type="text" id="searchInput" placeholder="Buscar banco..." oninput="filterBanks()" />
<span class="search-icon">🔍</span>
</div>
</div>
<div class="stats-bar fade-in">
<div class="stat"><div class="stat-num">12</div><div class="stat-label">Bancos</div></div>
<div class="stat"><div class="stat-num">127%</div><div class="stat-label">Maior CDB CDI</div></div>
<div class="stat"><div class="stat-num">R$250k</div><div class="stat-label">Cobertura FGC</div></div>
<div class="stat"><div class="stat-num">2025</div><div class="stat-label">Dados atualizados</div></div>
</div>
<!-- BANKS SECTION -->
<section id="section-banks">
<h2>Principais Bancos</h2>
<p class="section-sub">Clique em um banco para ver detalhes completos</p>
<div class="banks-grid" id="banksGrid"></div>
</section>
<!-- CDB SECTION -->
<section id="section-cdb" style="display:none">
<h2>Ranking CDB — Melhor Rentabilidade</h2>
<p class="section-sub">Comparativo de taxas CDB dos principais bancos brasileiros</p>
<div class="cdb-table-wrap">
<table>
<thead>
<tr>
<th>#</th>
<th>Banco</th>
<th>Taxa CDB</th>
<th>Liquidez</th>
<th>Mínimo</th>
<th>FGC</th>
</tr>
</thead>
<tbody id="cdbTableBody"></tbody>
</table>
</div>
</section>
<!-- COMPARE SECTION -->
<section id="section-compare" style="display:none">
<h2>Comparativo por Categoria</h2>
<p class="section-sub">Quem se destaca em cada quesito?</p>
<div class="compare-grid" id="compareGrid"></div>
</section>
<footer>
<strong>BancoScope</strong> — Portal Comparativo de Bancos Brasileiros<br/>
Dados com fins educativos. Consulte sempre os sites oficiais antes de investir.<br/>
Desenvolvido com 💚 | Rodando no Kubernetes 🚀 | Pipeline GitLab CI/CD
</footer>
<!-- MODAL -->
<div class="modal-overlay" id="modalOverlay" onclick="closeModal(event)">
<div class="modal" id="modalContent"></div>
</div>
<script>
const banks = [
{
name: "Nubank",
type: "Banco Digital",
logo: "💜",
logoBg: "#1C1C2E",
badge: "digital",
cdb: 102,
liquidity: "Diária",
minInvest: "R$ 1",
fgc: true,
rating: 4.8,
benefits: ["Sem anuidade", "Cashback", "Cartão roxo premium", "NuInvest", "Seguro de vida"],
pros: ["Zero tarifas", "App excelente", "Atendimento 24h", "Rendimento automático"],
cons: ["Sem agências físicas", "Sem consórcio", "Crédito imobiliário limitado"],
cdbRate: "102% CDI",
description: "O maior banco digital da América Latina com mais de 90 milhões de clientes. Zero burocracia, sem tarifas ocultas.",
highlight: "Melhor app bancário do Brasil",
founded: "2013",
clients: "90M+"
},
{
name: "Inter",
type: "Banco Digital",
logo: "🟠",
logoBg: "#1C1200",
badge: "digital",
cdb: 100,
liquidity: "Diária",
minInvest: "R$ 100",
fgc: true,
rating: 4.6,
benefits: ["Cashback Inter Loop", "Shopping com desconto", "Investimentos integrados", "Seguros", "Câmbio"],
pros: ["Cashback em tudo", "Super App", "Corretora integrada", "Conta global"],
cons: ["App mais pesado", "Atendimento telefônico demorado"],
cdbRate: "100% CDI",
description: "Banco completo com Super App: conta, cartão, investimentos, seguros e marketplace em um único lugar.",
highlight: "Melhor cashback do mercado",
founded: "1994",
clients: "35M+"
},
{
name: "Itaú",
type: "Banco Tradicional",
logo: "🔵",
logoBg: "#001A40",
badge: "traditional",
cdb: 95,
liquidity: "No vencimento",
minInvest: "R$ 500",
fgc: true,
rating: 4.2,
benefits: ["Maior rede de agências", "Programa Sempre Presente", "Ítaucard", "Crédito imobiliário", "Consórcio"],
pros: ["Rede física enorme", "Solidez e confiança", "Produtos completos", "Presença internacional"],
cons: ["Tarifas elevadas", "App às vezes instável", "Burocracia"],
cdbRate: "95% CDI",
description: "Maior banco privado da América Latina com presença em 18 países e mais de 5.000 agências no Brasil.",
highlight: "Maior banco privado da América Latina",
founded: "1945",
clients: "60M+"
},
{
name: "Bradesco",
type: "Banco Tradicional",
logo: "🔴",
logoBg: "#1A0000",
badge: "traditional",
cdb: 93,
liquidity: "No vencimento",
minInvest: "R$ 1.000",
fgc: true,
rating: 4.0,
benefits: ["Livelo pontos", "Rede Bradesco Saúde", "Financiamento veículos", "Previdência privada", "Consórcio"],
pros: ["Rede de agências ampla", "Produtos diversificados", "Solidez histórica"],
cons: ["Tarifas altas", "App desatualizado", "Fila nas agências"],
cdbRate: "93% CDI",
description: "Um dos maiores bancos do Brasil com foco em soluções completas para pessoas físicas e jurídicas.",
highlight: "Maior rede de agências próprias",
founded: "1943",
clients: "75M+"
},
{
name: "XP Inc.",
type: "Plataforma de Investimentos",
logo: "⚫",
logoBg: "#0A0A0A",
badge: "investment",
cdb: 127,
liquidity: "No vencimento",
minInvest: "R$ 1.000",
fgc: true,
rating: 4.7,
benefits: ["Maior plataforma de investimentos", "CDB até 127% CDI", "Assessoria gratuita", "FIIs e ações", "COE e Debêntures"],
pros: ["Maior rentabilidade CDB", "Plataforma completa", "Assessoria especializada", "Produtos exclusivos"],
cons: ["Foco em investimentos", "Sem conta corrente tradicional", "Pouco cashback"],
cdbRate: "127% CDI",
description: "Maior plataforma de investimentos do Brasil, com acesso a mais de 800 produtos financeiros.",
highlight: "Maior rentabilidade em CDB",
founded: "2001",
clients: "4M+"
},
{
name: "C6 Bank",
type: "Banco Digital",
logo: "⚙️",
logoBg: "#111111",
badge: "digital",
cdb: 101,
liquidity: "Diária",
minInvest: "R$ 1",
fgc: true,
rating: 4.5,
benefits: ["C6 Tag pedágio grátis", "Cashback em pontos", "Investimentos integrados", "Conta MEI gratuita", "Câmbio competitivo"],
pros: ["Tag de pedágio inclusa", "Cartão com pontos", "Conta MEI gratuita", "CDB diário"],
cons: ["Menos conhecido", "Atendimento pode melhorar"],
cdbRate: "101% CDI",
description: "Banco digital completo com diferenciais únicos como Tag de pedágio gratuita e programa de pontos.",
highlight: "Único com Tag de pedágio grátis",
founded: "2019",
clients: "25M+"
},
{
name: "Santander",
type: "Banco Tradicional",
logo: "🔥",
logoBg: "#1A0000",
badge: "traditional",
cdb: 90,
liquidity: "No vencimento",
minInvest: "R$ 500",
fgc: true,
rating: 3.9,
benefits: ["Ben Viagem", "Esfera pontos", "Crédito imobiliário", "Conta universitária", "Global Account"],
pros: ["Presença internacional", "Conta universitária diferenciada", "Produtos globais"],
cons: ["Tarifas elevadas", "Atendimento criticado", "App instável"],
cdbRate: "90% CDI",
description: "Banco espanhol com forte presença no Brasil, oferecendo soluções bancárias para pessoa física e jurídica.",
highlight: "Melhor conta universitária",
founded: "1982 (Brasil)",
clients: "50M+"
},
{
name: "Caixa Econômica",
type: "Banco Público",
logo: "🏛️",
logoBg: "#001A00",
badge: "traditional",
cdb: 88,
liquidity: "No vencimento",
minInvest: "R$ 100",
fgc: true,
rating: 3.8,
benefits: ["FGTS Digital", "Habitação popular", "Lotéricas", "Bolsa Família", "Crédito imobiliário"],
pros: ["Maior banco habitacional", "Acesso ao FGTS", "Rede de lotéricas", "Programas sociais"],
cons: ["Burocracia intensa", "App desatualizado", "Fila enorme"],
cdbRate: "88% CDI",
description: "Principal agente de políticas públicas habitacionais do Brasil e gestor do FGTS.",
highlight: "Líder em crédito habitacional",
founded: "1861",
clients: "150M+"
},
{
name: "PicPay",
type: "Fintech",
logo: "💚",
logoBg: "#001A00",
badge: "digital",
cdb: 103,
liquidity: "Diária",
minInvest: "R$ 1",
fgc: true,
rating: 4.4,
benefits: ["Rendimento automático 103% CDI", "Cashback", "Pagamentos via QR Code", "Cartão sem anuidade", "PicPay Store"],
pros: ["Rendimento automático", "Cashback atrativo", "Pagamentos simples", "Sem burocracia"],
cons: ["Menos produtos de crédito", "Focado em pagamentos"],
cdbRate: "103% CDI",
description: "Super app de pagamentos e serviços financeiros com rendimento automático na conta.",
highlight: "Rendimento automático na conta",
founded: "2012",
clients: "35M+"
},
{
name: "Banco do Brasil",
type: "Banco Público",
logo: "🌐",
logoBg: "#001A20",
badge: "traditional",
cdb: 92,
liquidity: "No vencimento",
minInvest: "R$ 500",
fgc: true,
rating: 4.0,
benefits: ["Ourocard pontos", "Agro crédito", "Financiamento rural", "Previdência", "Seguro rural"],
pros: ["Maior banco do agronegócio", "Presença internacional", "Produtos rurais", "Solidez"],
cons: ["Tarifas altas", "Burocracia", "App regular"],
cdbRate: "92% CDI",
description: "O banco mais antigo em operação no Brasil, líder no agronegócio e presente em mais de 100 países.",
highlight: "Líder absoluto no agronegócio",
founded: "1808",
clients: "80M+"
},
{
name: "Mercado Pago",
type: "Fintech",
logo: "💛",
logoBg: "#1A1500",
badge: "digital",
cdb: 105,
liquidity: "Diária",
minInvest: "R$ 1",
fgc: true,
rating: 4.5,
benefits: ["105% CDI automático", "Cashback Meli+", "Parcelamento sem juros", "Empréstimo online", "Conta gratuita"],
pros: ["Maior rentabilidade entre fintechs", "Integração Mercado Livre", "Meli+ vantagens", "Sem burocracia"],
cons: ["Foco em ecossistema Mercado Livre", "Menos produtos bancários"],
cdbRate: "105% CDI",
description: "Fintech do Mercado Livre com um dos maiores rendimentos automáticos e integração total com o ecossistema ML.",
highlight: "105% CDI com liquidez diária",
founded: "2003",
clients: "50M+"
},
{
name: "BTG Pactual",
type: "Banco de Investimentos",
logo: "💎",
logoBg: "#0A0A1A",
badge: "investment",
cdb: 120,
liquidity: "No vencimento",
minInvest: "R$ 1.000",
fgc: true,
rating: 4.6,
benefits: ["CDB até 120% CDI", "Plataforma premium", "FIIs exclusivos", "Wealth management", "BTG+ app"],
pros: ["Alta rentabilidade", "Produtos sofisticados", "Wealth management", "Plataforma completa"],
cons: ["Voltado a perfil investidor", "Mínimo mais alto", "Menos serviços bancários básicos"],
cdbRate: "120% CDI",
description: "Maior banco de investimentos da América Latina com foco em produtos financeiros sofisticados e alta rentabilidade.",
highlight: "Maior banco de investimentos da AL",
founded: "1983",
clients: "1M+"
}
];
const comparisons = [
{ icon: "📈", title: "Maior CDB", winner: "XP Inc.", detail: "127% CDI" },
{ icon: "⚡", title: "Melhor Liquidez", winner: "Nubank", detail: "Resgate imediato" },
{ icon: "🎁", title: "Melhor Cashback", winner: "Inter", detail: "Inter Loop" },
{ icon: "📱", title: "Melhor App", winner: "Nubank", detail: "4.8 ⭐ na loja" },
{ icon: "🏠", title: "Crédito Imobiliário", winner: "Caixa", detail: "Taxas mais baixas" },
{ icon: "🌾", title: "Agronegócio", winner: "Banco do Brasil", detail: "Líder há 200 anos" },
{ icon: "🌍", title: "Presença Global", winner: "Itaú", detail: "18 países" },
{ icon: "💡", title: "Inovação", winner: "Nubank", detail: "Fintech mais valiosa" },
{ icon: "🚗", title: "Tag Pedágio", winner: "C6 Bank", detail: "Grátis no app" },
{ icon: "🎓", title: "Universitários", winner: "Santander", detail: "Conta universitária" },
{ icon: "💰", title: "Rendimento Auto", winner: "Mercado Pago", detail: "105% CDI automático" },
{ icon: "🏆", title: "Mais Clientes", winner: "Caixa", detail: "150 milhões" }
];
function renderBanks(list) {
const grid = document.getElementById('banksGrid');
grid.innerHTML = list.map(b => `
<div class="bank-card" onclick="openModal('${b.name}')">
<div class="bank-header">
<div class="bank-logo" style="background:${b.logoBg}">${b.logo}</div>
<div>
<div class="bank-name">${b.name}</div>
<div class="bank-type">${b.type}</div>
</div>
<span class="bank-badge badge-${b.badge}">${b.badge === 'digital' ? 'Digital' : b.badge === 'investment' ? 'Invest.' : 'Tradicional'}</span>
</div>
<div class="bank-metrics">
<div class="metric">
<div class="metric-label">CDB</div>
<div class="metric-value highlight">${b.cdb}% CDI</div>
</div>
<div class="metric">
<div class="metric-label">Liquidez</div>
<div class="metric-value gold">${b.liquidity}</div>
</div>
<div class="metric">
<div class="metric-label">Mínimo</div>
<div class="metric-value">${b.minInvest}</div>
</div>
<div class="metric">
<div class="metric-label">Clientes</div>
<div class="metric-value">${b.clients}</div>
</div>
</div>
<div class="bank-benefits">
${b.benefits.slice(0,3).map(ben => `<span class="benefit-tag">${ben}</span>`).join('')}
${b.benefits.length > 3 ? `<span class="benefit-tag">+${b.benefits.length - 3}</span>` : ''}
</div>
</div>
`).join('');
}
function renderCDB() {
const sorted = [...banks].sort((a,b) => b.cdb - a.cdb);
const max = sorted[0].cdb;
document.getElementById('cdbTableBody').innerHTML = sorted.map((b, i) => `
<tr>
<td><span class="rank-num ${i < 3 ? 'top' : ''}">${i < 3 ? ['🥇','🥈','🥉'][i] : i+1}</span></td>
<td><strong>${b.logo} ${b.name}</strong><br/><small style="color:var(--muted)">${b.type}</small></td>
<td>
<div class="rate-bar-wrap">
<span class="rate-val">${b.cdb}%</span>
<div class="rate-bar"><div class="rate-fill" style="width:${(b.cdb/max)*100}%"></div></div>
</div>
</td>
<td style="color:var(--muted);font-size:0.85rem">${b.liquidity}</td>
<td style="color:var(--muted);font-size:0.85rem">${b.minInvest}</td>
<td>${b.fgc ? '<span class="fgc-badge">✓ FGC</span>' : '—'}</td>
</tr>
`).join('');
}
function renderCompare() {
document.getElementById('compareGrid').innerHTML = comparisons.map(c => `
<div class="compare-card">
<div class="compare-icon">${c.icon}</div>
<div class="compare-title">${c.title}</div>
<div class="compare-winner">${c.winner}</div>
<div class="compare-detail">${c.detail}</div>
</div>
`).join('');
}
function filterBanks() {
const q = document.getElementById('searchInput').value.toLowerCase();
const filtered = banks.filter(b => b.name.toLowerCase().includes(q) || b.type.toLowerCase().includes(q));
renderBanks(filtered);
}
function showSection(id) {
['banks','cdb','compare'].forEach(s => {
document.getElementById(`section-${s}`).style.display = s === id ? 'block' : 'none';
});
document.querySelectorAll('.tab-btn').forEach((btn, i) => {
btn.classList.toggle('active', ['banks','cdb','compare'][i] === id);
});
if (id === 'cdb') renderCDB();
if (id === 'compare') renderCompare();
}
function openModal(name) {
const b = banks.find(x => x.name === name);
if (!b) return;
document.getElementById('modalContent').innerHTML = `
<button class="modal-close" onclick="document.getElementById('modalOverlay').classList.remove('open')">✕</button>
<div style="display:flex;align-items:center;gap:16px;margin-bottom:20px">
<div class="bank-logo" style="background:${b.logoBg};width:60px;height:60px;border-radius:14px;font-size:1.8rem">${b.logo}</div>
<div>
<h3>${b.name}</h3>
<div style="color:var(--muted);font-size:0.85rem">${b.type} • Fundado em ${b.founded}</div>
</div>
</div>
<p style="color:var(--muted);font-size:0.9rem;line-height:1.7;margin-bottom:4px">${b.description}</p>
<div style="margin-top:12px;padding:12px 16px;background:rgba(0,200,150,0.08);border:1px solid rgba(0,200,150,0.2);border-radius:10px;font-size:0.85rem;color:var(--green)">
⭐ ${b.highlight}
</div>
<div class="modal-section">
<h4>Principais Benefícios</h4>
<ul class="modal-list">
${b.benefits.map(x => `<li>${x}</li>`).join('')}
</ul>
</div>
<div class="modal-pros-cons">
<div class="pros">
<h5>✓ Pontos Positivos</h5>
<ul class="modal-list">
${b.pros.map(x => `<li>${x}</li>`).join('')}
</ul>
</div>
<div class="cons">
<h5>✗ Pontos Negativos</h5>
<ul class="modal-list">
${b.cons.map(x => `<li>${x}</li>`).join('')}
</ul>
</div>
</div>
<div style="margin-top:20px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px">
<div class="metric"><div class="metric-label">CDB</div><div class="metric-value highlight">${b.cdb}% CDI</div></div>
<div class="metric"><div class="metric-label">Mínimo</div><div class="metric-value">${b.minInvest}</div></div>
<div class="metric"><div class="metric-label">Rating</div><div class="metric-value gold">${b.rating} ⭐</div></div>
</div>
`;
document.getElementById('modalOverlay').classList.add('open');
}
function closeModal(e) {
if (e.target === document.getElementById('modalOverlay'))
document.getElementById('modalOverlay').classList.remove('open');
}
// Init
renderBanks(banks);
</script>
</body>
</html>