-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.html
More file actions
1227 lines (1097 loc) · 43.7 KB
/
index.html
File metadata and controls
1227 lines (1097 loc) · 43.7 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="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>agrobr — Dados agrícolas brasileiros em uma linha de código</title>
<meta name="description" content="Infraestrutura Python para dados agrícolas brasileiros. 38 fontes públicas, uma API unificada com fallback automático, cache DuckDB e contratos versionados.">
<link rel="canonical" href="https://www.agrobr.dev/">
<link rel="alternate" hreflang="pt-BR" href="https://www.agrobr.dev/">
<link rel="alternate" hreflang="en" href="https://www.agrobr.dev/en/">
<link rel="alternate" hreflang="x-default" href="https://www.agrobr.dev/">
<meta property="og:type" content="website">
<meta property="og:url" content="https://www.agrobr.dev/">
<meta property="og:title" content="agrobr — Dados agrícolas brasileiros em uma linha de código">
<meta property="og:description" content="38 fontes públicas — CEPEA, CONAB, IBGE, B3, NASA POWER e mais — numa API Python unificada com fallback automático e contratos versionados.">
<meta property="og:image" content="https://www.agrobr.dev/og.png">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🌾</text></svg>">
<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=DM+Sans:ital,wght@0,300;0,400;0,500;0,700&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--bg-deep: #0a0a0f;
--bg-surface: #111118;
--bg-card: #16161f;
--bg-elevated: #1c1c28;
--text-primary: #e8e6e1;
--text-secondary: #8a8880;
--text-muted: #5a5850;
--accent-gold: #c9a96e;
--accent-gold-dim: #9a7d4e;
--accent-green: #5a8a5e;
--accent-red: #a05a5a;
--accent-blue: #4a6a8a;
--code-bg: #0d0d14;
--border: #222230;
--font-display: 'Playfair Display', Georgia, serif;
--font-body: 'DM Sans', system-ui, sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}
html { scroll-behavior: smooth; }
body {
font-family: var(--font-body);
background: var(--bg-deep);
color: var(--text-primary);
line-height: 1.7;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent-gold); color: var(--bg-deep); }
/* ═══════════════ NAV ═══════════════ */
nav {
position: fixed;
top: 0; left: 0; right: 0;
z-index: 100;
padding: 1.25rem 3rem;
display: flex;
justify-content: space-between;
align-items: center;
transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
background: rgba(10, 10, 15, 0.85);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
}
.nav-logo {
font-family: var(--font-mono);
font-size: 1.1rem;
font-weight: 500;
color: var(--text-primary);
text-decoration: none;
letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
color: var(--text-secondary);
text-decoration: none;
font-size: 0.85rem;
letter-spacing: 0.06em;
text-transform: uppercase;
transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent-gold); }
/* ═══════════════ HERO ═══════════════ */
.hero {
position: relative;
height: 100vh;
min-height: 700px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
overflow: hidden;
}
.hero-bg {
position: absolute;
inset: 0;
background:
linear-gradient(180deg, rgba(10,10,15,0.35) 0%, rgba(20,12,5,0.15) 35%, rgba(10,10,15,0.65) 75%, rgba(10,10,15,1) 100%),
url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&q=80') center/cover no-repeat;
transform: scale(1.05);
animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
from { transform: scale(1.05); }
to { transform: scale(1.12); }
}
.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
padding: 0 2rem;
margin-bottom: 8vh;
}
.hero-eyebrow {
font-family: var(--font-mono);
font-size: 0.75rem;
letter-spacing: 0.25em;
text-transform: uppercase;
color: var(--accent-gold);
margin-bottom: 1.5rem;
opacity: 0;
animation: fadeUp 1s 0.3s forwards;
text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.hero-title {
font-family: var(--font-display);
font-size: clamp(3rem, 7vw, 5.5rem);
font-weight: 400;
line-height: 1.05;
letter-spacing: -0.02em;
margin-bottom: 1.5rem;
opacity: 0;
animation: fadeUp 1s 0.5s forwards;
text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 4px 40px rgba(0,0,0,0.4);
}
.hero-title em { font-style: italic; color: var(--accent-gold); }
.hero-subtitle {
font-size: 1.15rem;
color: var(--text-primary);
max-width: 520px;
margin: 0 auto 2.5rem;
font-weight: 300;
opacity: 0;
animation: fadeUp 1s 0.7s forwards;
text-shadow: 0 2px 16px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.6);
}
.hero-sources { color: var(--text-primary); font-weight: 500; }
.hero-install {
display: inline-flex;
align-items: center;
gap: 0.75rem;
background: var(--code-bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.85rem 1.75rem;
font-family: var(--font-mono);
font-size: 0.95rem;
color: var(--text-primary);
cursor: pointer;
transition: border-color 0.3s, transform 0.2s;
opacity: 0;
animation: fadeUp 1s 0.9s forwards;
}
.hero-install:hover { border-color: var(--accent-gold-dim); transform: translateY(-2px); }
.hero-install .pip { color: var(--accent-gold); }
.hero-install .copy-icon { color: var(--text-muted); font-size: 0.8rem; }
.hero-install .copied { color: var(--accent-green); }
@keyframes fadeUp {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}
/* ═══════════════ TICKER (preços reais) ═══════════════ */
.ticker {
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: 3;
background: rgba(10, 10, 15, 0.72);
backdrop-filter: blur(14px);
border-top: 1px solid rgba(201, 169, 110, 0.18);
overflow: hidden;
opacity: 0;
animation: fadeUp 1s 1.3s forwards;
}
.ticker-track {
display: flex;
width: max-content;
animation: tickerScroll 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
.ticker-set {
display: flex;
align-items: center;
padding: 0.7rem 0;
}
.ticker-item {
display: inline-flex;
align-items: baseline;
gap: 0.6rem;
padding: 0 2.2rem;
font-family: var(--font-mono);
font-size: 0.78rem;
white-space: nowrap;
border-right: 1px solid rgba(201, 169, 110, 0.12);
}
.ticker-item .tk-name { color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; }
.ticker-item .tk-price { color: var(--text-primary); font-weight: 500; }
.ticker-item .up { color: #7fae83; }
.ticker-item .down { color: #c98a8a; }
.ticker-item .tk-stamp { color: var(--accent-gold-dim); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; }
/* ═══════════════ STAT STRIP ═══════════════ */
.stat-strip {
border-bottom: 1px solid var(--border);
background: var(--bg-surface);
}
.stat-strip-inner {
max-width: 1100px;
margin: 0 auto;
padding: 1.4rem 3rem;
display: flex;
justify-content: center;
align-items: baseline;
gap: 3.5rem;
flex-wrap: wrap;
font-family: var(--font-mono);
}
.stat-item { display: flex; align-items: baseline; gap: 0.5rem; }
.stat-num { font-size: 1.25rem; color: var(--accent-gold); font-weight: 500; }
.stat-label {
font-size: 0.7rem;
color: var(--text-muted);
letter-spacing: 0.12em;
text-transform: uppercase;
}
/* ═══════════════ SECTIONS ═══════════════ */
section {
padding: 7rem 3rem;
max-width: 1100px;
margin: 0 auto;
}
section.hero, section.cta-section { max-width: none; }
.section-label {
font-family: var(--font-mono);
font-size: 0.7rem;
letter-spacing: 0.3em;
text-transform: uppercase;
color: var(--accent-gold-dim);
margin-bottom: 1rem;
}
.section-title {
font-family: var(--font-display);
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 400;
line-height: 1.15;
margin-bottom: 1.5rem;
letter-spacing: -0.01em;
}
.section-desc {
color: var(--text-secondary);
font-size: 1.05rem;
max-width: 600px;
font-weight: 300;
margin-bottom: 3rem;
}
/* ═══════════════ PROOF ═══════════════ */
.proof-grid {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 2rem;
align-items: stretch;
}
.code-block {
background: var(--code-bg);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1.75rem 2rem;
overflow-x: auto;
position: relative;
}
.code-block::before {
content: attr(data-lang);
position: absolute;
top: 0.75rem;
right: 1rem;
font-family: var(--font-mono);
font-size: 0.65rem;
color: var(--text-muted);
letter-spacing: 0.1em;
text-transform: uppercase;
}
.code-block code {
font-family: var(--font-mono);
font-size: 0.88rem;
line-height: 1.8;
color: var(--text-primary);
white-space: pre;
display: block;
}
.code-block .kw { color: #c792ea; }
.code-block .fn { color: #82aaff; }
.code-block .str { color: #c3e88d; }
.code-block .cm { color: #546e7a; }
.code-block .var { color: var(--text-primary); }
.code-block .op { color: #89ddff; }
.code-line { opacity: 0; animation: lineIn 0.01s forwards; }
.visible .code-line:nth-child(1) { animation-delay: 0.15s; }
.visible .code-line:nth-child(2) { animation-delay: 0.45s; }
.visible .code-line:nth-child(3) { animation-delay: 0.75s; }
.visible .code-line:nth-child(4) { animation-delay: 1.05s; }
.visible .code-line:nth-child(5) { animation-delay: 1.5s; }
@keyframes lineIn { to { opacity: 1; } }
.proof-output {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1.75rem 2rem;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
.proof-output::before {
content: 'OUTPUT · DADO REAL';
font-family: var(--font-mono);
font-size: 0.65rem;
color: var(--accent-gold-dim);
letter-spacing: 0.15em;
margin-bottom: 1rem;
}
.proof-price {
font-family: var(--font-display);
font-size: 2.6rem;
line-height: 1;
color: var(--text-primary);
}
.proof-price .currency {
font-size: 1.1rem;
color: var(--text-secondary);
font-family: var(--font-mono);
}
.proof-meta {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--text-muted);
margin-top: 0.5rem;
letter-spacing: 0.04em;
}
.sparkline { margin: 1.5rem 0 0.75rem; width: 100%; height: auto; }
.spark-path {
fill: none;
stroke: var(--accent-gold);
stroke-width: 1.5;
stroke-linejoin: round;
stroke-linecap: round;
}
.visible .spark-path {
stroke-dasharray: 600;
stroke-dashoffset: 600;
animation: drawSpark 2s 0.6s ease-out forwards;
}
@keyframes drawSpark { to { stroke-dashoffset: 0; } }
.spark-dot { fill: var(--accent-gold); opacity: 0; }
.visible .spark-dot { animation: dotIn 0.4s 2.4s forwards; }
@keyframes dotIn { to { opacity: 1; } }
.proof-rows {
font-family: var(--font-mono);
font-size: 0.78rem;
color: var(--text-secondary);
border-top: 1px solid var(--border);
margin-top: auto;
padding-top: 1rem;
}
.proof-rows div { display: flex; justify-content: space-between; padding: 0.2rem 0; }
.proof-rows .v { color: var(--text-primary); }
/* ═══════════════ PIPELINE (anatomia do fallback) ═══════════════ */
.pipeline {
margin-top: 3.5rem;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 2.75rem 2.5rem 2.25rem;
position: relative;
overflow: hidden;
}
.pipeline::before {
content: 'ANATOMIA DE UMA CHAMADA · LOOP REAL DE FALLBACK';
font-family: var(--font-mono);
font-size: 0.62rem;
color: var(--accent-gold-dim);
letter-spacing: 0.18em;
position: absolute;
top: 1rem;
left: 1.5rem;
}
.pipe-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin-top: 1rem;
}
.pipe-node {
flex: 0 0 auto;
text-align: center;
font-family: var(--font-mono);
position: relative;
}
.pipe-dot {
width: 14px;
height: 14px;
border-radius: 50%;
border: 2px solid var(--text-muted);
margin: 0 auto 0.6rem;
background: var(--bg-deep);
transition: border-color 0.3s, box-shadow 0.3s;
}
.pipe-name { font-size: 0.72rem; color: var(--text-secondary); letter-spacing: 0.05em; }
.pipe-status { font-size: 0.62rem; height: 1.1rem; margin-top: 0.2rem; letter-spacing: 0.08em; opacity: 0; }
.pipe-link {
flex: 1 1 auto;
height: 1px;
background: var(--border);
position: relative;
overflow: visible;
min-width: 40px;
}
.pipe-link::after {
content: '';
position: absolute;
top: -1.5px;
left: 0;
width: 26%;
height: 4px;
border-radius: 4px;
background: linear-gradient(90deg, transparent, var(--accent-gold));
opacity: 0;
}
/* loop de 9s: CEPEA falha → NA responde → contrato valida → DataFrame */
.pl1 .pipe-dot { animation: nodeFail 9s infinite; }
.pl1 .pipe-status { animation: statusFail 9s infinite; color: var(--accent-red); }
.lk1::after { animation: pulse1 9s infinite; }
.pl2 .pipe-dot { animation: nodeOk2 9s infinite; }
.pl2 .pipe-status { animation: statusOk2 9s infinite; color: var(--accent-green); }
.lk2::after { animation: pulse2 9s infinite; }
.pl3 .pipe-dot { animation: nodeOk3 9s infinite; }
.pl3 .pipe-status { animation: statusOk3 9s infinite; color: var(--accent-green); }
.lk3::after { animation: pulse3 9s infinite; }
.pl4 .pipe-dot { animation: nodeGold 9s infinite; }
.pl4 .pipe-status { animation: statusGold 9s infinite; color: var(--accent-gold); }
@keyframes nodeFail {
0%, 8% { border-color: var(--text-muted); box-shadow: none; }
12%, 30% { border-color: var(--accent-red); box-shadow: 0 0 14px rgba(160, 90, 90, 0.5); }
34%, 100% { border-color: #5a3a3a; box-shadow: none; }
}
@keyframes statusFail {
0%, 10% { opacity: 0; }
14%, 32% { opacity: 1; }
36%, 100% { opacity: 0.45; }
}
@keyframes pulse1 {
0%, 30% { opacity: 0; left: 0; }
36% { opacity: 1; }
46% { opacity: 1; left: 74%; }
50%, 100% { opacity: 0; left: 74%; }
}
@keyframes nodeOk2 {
0%, 44% { border-color: var(--text-muted); box-shadow: none; }
50%, 100% { border-color: var(--accent-green); box-shadow: 0 0 14px rgba(90, 138, 94, 0.45); }
}
@keyframes statusOk2 {
0%, 48% { opacity: 0; }
52%, 100% { opacity: 1; }
}
@keyframes pulse2 {
0%, 52% { opacity: 0; left: 0; }
56% { opacity: 1; }
66% { opacity: 1; left: 74%; }
70%, 100% { opacity: 0; left: 74%; }
}
@keyframes nodeOk3 {
0%, 64% { border-color: var(--text-muted); box-shadow: none; }
70%, 100% { border-color: var(--accent-green); box-shadow: 0 0 14px rgba(90, 138, 94, 0.45); }
}
@keyframes statusOk3 {
0%, 68% { opacity: 0; }
72%, 100% { opacity: 1; }
}
@keyframes pulse3 {
0%, 72% { opacity: 0; left: 0; }
76% { opacity: 1; }
84% { opacity: 1; left: 74%; }
88%, 100% { opacity: 0; left: 74%; }
}
@keyframes nodeGold {
0%, 84% { border-color: var(--text-muted); box-shadow: none; }
90%, 100% { border-color: var(--accent-gold); box-shadow: 0 0 18px rgba(201, 169, 110, 0.55); }
}
@keyframes statusGold {
0%, 88% { opacity: 0; }
92%, 100% { opacity: 1; }
}
/* ═══════════════ DATASETS ═══════════════ */
.datasets-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1.25rem;
margin-top: 2rem;
}
.dataset-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1.75rem;
transition: border-color 0.3s, transform 0.3s;
}
.dataset-card:hover { border-color: var(--accent-gold-dim); transform: translateY(-3px); }
.dataset-name {
font-family: var(--font-mono);
font-size: 0.9rem;
color: var(--accent-gold);
margin-bottom: 0.5rem;
}
.dataset-desc {
font-size: 0.88rem;
color: var(--text-secondary);
margin-bottom: 0.75rem;
font-weight: 300;
}
.dataset-sources {
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--text-muted);
letter-spacing: 0.03em;
}
.datasets-more { margin-top: 2.5rem; text-align: center; }
.datasets-more a {
font-family: var(--font-mono);
font-size: 0.85rem;
color: var(--accent-gold);
text-decoration: none;
border-bottom: 1px solid var(--accent-gold-dim);
padding-bottom: 2px;
transition: color 0.3s, border-color 0.3s;
}
.datasets-more a:hover { color: #dbb87a; border-color: #dbb87a; }
/* ═══════════════ FEATURES ═══════════════ */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
}
.feature-item {
display: flex;
gap: 1rem;
padding: 1.25rem 0;
border-bottom: 1px solid var(--border);
}
.feature-icon {
flex-shrink: 0;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
background: var(--bg-elevated);
border-radius: 8px;
border: 1px solid var(--border);
}
.feature-text h3 {
font-family: var(--font-body);
font-size: 0.92rem;
font-weight: 500;
margin-bottom: 0.25rem;
}
.feature-text p {
font-size: 0.82rem;
color: var(--text-secondary);
font-weight: 300;
}
/* ═══════════════ FONTES: MAPA + TYPE WALL ═══════════════ */
.sources-layout {
display: grid;
grid-template-columns: 0.85fr 1.15fr;
gap: 3rem;
align-items: center;
margin-top: 1rem;
}
.brasil-wrap { position: relative; }
.brasil-svg { width: 100%; height: auto; display: block; }
.brasil-svg .dot {
fill: #3a3424;
opacity: 0.55;
}
.brasil-svg .dot.glow {
fill: var(--accent-gold);
animation: dotPulse 3.4s ease-in-out infinite;
}
@keyframes dotPulse {
0%, 100% { opacity: 0.25; }
50% { opacity: 1; }
}
.brasil-caption {
text-align: center;
font-family: var(--font-mono);
font-size: 0.65rem;
color: var(--text-muted);
letter-spacing: 0.16em;
text-transform: uppercase;
margin-top: 1rem;
}
.typewall {
display: flex;
flex-wrap: wrap;
gap: 0.9rem 1.8rem;
align-items: baseline;
}
.typewall span {
font-family: var(--font-mono);
color: var(--text-secondary);
cursor: default;
transition: color 0.3s, text-shadow 0.3s;
letter-spacing: 0.02em;
}
.typewall span:hover {
color: var(--accent-gold);
text-shadow: 0 0 24px rgba(201, 169, 110, 0.45);
}
.typewall .t1 { font-size: 1.3rem; color: var(--text-primary); }
.typewall .t2 { font-size: 1rem; }
.typewall .t3 { font-size: 0.82rem; color: var(--text-muted); }
.typewall .lic { color: #8a6d50; }
.typewall .lic:hover { color: #d4a843; }
.typewall-note {
margin-top: 2rem;
font-family: var(--font-mono);
font-size: 0.68rem;
color: var(--text-muted);
letter-spacing: 0.08em;
}
/* ═══════════════ CTA ═══════════════ */
.cta-section {
text-align: center;
padding: 6rem 3rem 8rem;
position: relative;
}
.cta-section::before {
content: '';
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 1px;
background: var(--accent-gold-dim);
}
.cta-links {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-top: 2.5rem;
flex-wrap: wrap;
}
.cta-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.85rem 2rem;
border-radius: 8px;
text-decoration: none;
font-size: 0.88rem;
font-weight: 500;
transition: all 0.3s;
}
.cta-btn.primary { background: var(--accent-gold); color: var(--bg-deep); }
.cta-btn.primary:hover { background: #dbb87a; transform: translateY(-2px); }
.cta-btn.secondary {
border: 1px solid var(--border);
color: var(--text-primary);
background: var(--bg-card);
}
.cta-btn.secondary:hover { border-color: var(--accent-gold-dim); transform: translateY(-2px); }
/* ═══════════════ FOOTER ═══════════════ */
footer {
border-top: 1px solid var(--border);
padding: 2.5rem 3rem;
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1100px;
margin: 0 auto;
font-size: 0.78rem;
color: var(--text-muted);
}
footer a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--accent-gold); }
.footer-links { display: flex; gap: 2rem; }
/* ═══════════════ REVEAL ═══════════════ */
.reveal {
opacity: 0;
transform: translateY(32px);
transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
/* ═══════════════ MOTION / RESPONSIVE ═══════════════ */
@media (prefers-reduced-motion: reduce) {
.hero-bg { animation: none; }
.hero-eyebrow, .hero-title, .hero-subtitle, .hero-install, .ticker { animation-duration: 0.01s; animation-delay: 0s; }
.ticker-track { animation: none; }
.reveal { transition: none; opacity: 1; transform: none; }
.code-line { animation-duration: 0.01s; animation-delay: 0s !important; }
.visible .spark-path { animation-duration: 0.01s; animation-delay: 0s; }
.visible .spark-dot { animation-delay: 0.1s; }
.pipe-dot, .pipe-status, .pipe-link::after { animation: none !important; }
.pl2 .pipe-dot, .pl3 .pipe-dot { border-color: var(--accent-green); }
.pl4 .pipe-dot { border-color: var(--accent-gold); }
.pipe-status { opacity: 0.8; }
.brasil-svg .dot.glow { animation: none; opacity: 0.85; }
}
@media (max-width: 880px) {
.proof-grid { grid-template-columns: 1fr; }
.sources-layout { grid-template-columns: 1fr; gap: 2rem; }
.brasil-wrap { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 768px) {
nav { padding: 1rem 1.5rem; }
.nav-links { gap: 1.25rem; }
.nav-links a { font-size: 0.75rem; }
section { padding: 4rem 1.5rem; }
.stat-strip-inner { gap: 1.75rem; padding: 1.2rem 1.5rem; }
.cta-section { padding: 4rem 1.5rem 6rem; }
footer { flex-direction: column; gap: 1rem; text-align: center; }
.pipe-name { font-size: 0.6rem; }
.pipe-status { font-size: 0.55rem; }
}
@media (max-width: 480px) {
.nav-links { display: none; }
.hero-install { font-size: 0.82rem; padding: 0.75rem 1.25rem; }
.ticker-item { padding: 0 1.2rem; }
}
</style>
</head>
<body>
<!-- NAV -->
<nav id="nav">
<a href="https://www.agrobr.dev" class="nav-logo">agrobr</a>
<ul class="nav-links">
<li><a href="#datasets">Datasets</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#sources">Fontes</a></li>
<li><a href="https://www.agrobr.dev/docs/">Docs</a></li>
<li><a href="https://www.agrobr.dev/en/">EN</a></li>
<li><a href="https://github.com/bruno-portfolio/agrobr" target="_blank">GitHub</a></li>
</ul>
</nav>
<!-- HERO -->
<section class="hero">
<div class="hero-bg"></div>
<div class="hero-content">
<p class="hero-eyebrow">Python · Open Source · PyPI</p>
<h1 class="hero-title">Dados agrícolas brasileiros em <em>uma linha</em> de código</h1>
<p class="hero-subtitle"><span class="hero-sources">CEPEA, CONAB, IBGE, NASA POWER, USDA, B3</span> e mais 32 fontes — 38 origens, uma API unificada com fallback automático, cache inteligente e contratos versionados.</p>
<div class="hero-install" onclick="copyInstall(this)" title="Copiar">
<span><span class="pip">$</span> pip install agrobr</span>
<span class="copy-icon">⎘</span>
</div>
</div>
<!-- TICKER: preços reais buscados pelo próprio agrobr -->
<div class="ticker" aria-label="Indicadores CEPEA de 09/06/2026 via agrobr">
<div class="ticker-track" id="tickerTrack">
<div class="ticker-set">
<!-- agrobr:ticker -->
<span class="ticker-item"><span class="tk-name">soja</span><span class="tk-price">R$ 131,78</span><span class="down">▼ 0,34%</span></span>
<span class="ticker-item"><span class="tk-name">milho</span><span class="tk-price">R$ 64,03</span><span class="down">▼ 0,09%</span></span>
<span class="ticker-item"><span class="tk-name">boi gordo</span><span class="tk-price">R$ 353,80</span><span class="up">▲ 0,18%</span></span>
<span class="ticker-item"><span class="tk-name">café</span><span class="tk-price">R$ 1.412,22</span><span class="up">▲ 1,01%</span></span>
<span class="ticker-item"><span class="tk-name">trigo</span><span class="tk-price">R$ 1.377,98</span><span class="up">▲ 0,22%</span></span>
<span class="ticker-item"><span class="tk-name">algodão</span><span class="tk-price">R$ 413,21</span><span class="down">▼ 0,98%</span></span>
<span class="ticker-item"><span class="tk-stamp">indicadores CEPEA · 11 jun 2026 · coletados via agrobr</span></span>
<!-- /agrobr:ticker -->
</div>
</div>
</div>
</section>
<!-- STAT STRIP -->
<div class="stat-strip">
<div class="stat-strip-inner">
<div class="stat-item"><span class="stat-num">38</span><span class="stat-label">fontes</span></div>
<div class="stat-item"><span class="stat-num">35</span><span class="stat-label">datasets</span></div>
<div class="stat-item"><span class="stat-num">6.300+</span><span class="stat-label">testes</span></div>
<div class="stat-item"><span class="stat-num">92%</span><span class="stat-label">cobertura</span></div>
<div class="stat-item"><span class="stat-num">MIT</span><span class="stat-label">license</span></div>
</div>
</div>
<!-- PROOF -->
<section id="proof">
<div class="reveal">
<p class="section-label">Prova, não promessa</p>
<h2 class="section-title">Ninguém digitou este número.</h2>
<p class="section-desc">O painel ao lado não é mockup: o CEPEA divulga, o agrobr busca, a página atualiza — todo pregão, com fallback automático, cache DuckDB e contrato validado.</p>
</div>
<div class="proof-grid reveal">
<div class="code-block" data-lang="python">
<code><span class="code-line"><span class="kw">from</span> <span class="var">agrobr</span> <span class="kw">import</span> <span class="var">datasets</span></span>
<span class="code-line"> </span>
<span class="code-line"><span class="var">df</span> <span class="op">=</span> <span class="kw">await</span> <span class="fn">datasets.preco_diario</span>(<span class="str">"soja"</span>)</span>
<span class="code-line"> </span>
<!-- agrobr:pregoes --><span class="code-line"><span class="cm"># 10 pregões · CEPEA → Notícias Agrícolas → cache</span></span><!-- /agrobr:pregoes -->
</code>
</div>
<div class="proof-output">
<!-- agrobr:proof -->
<div class="proof-price">R$ 131,78 <span class="currency">/ sc 60kg</span></div>
<div class="proof-meta">soja · indicador CEPEA/ESALQ · 11 jun 2026</div>
<svg class="sparkline" viewBox="0 0 300 84" preserveAspectRatio="none" aria-label="Últimos 10 pregões da soja">
<polyline class="spark-path" points="0.0,36.4 33.3,50.7 66.7,48.3 100.0,76.0 133.3,52.5 166.7,68.3 200.0,51.4 233.3,37.3 266.7,12.0 300.0,20.3"/>
<circle class="spark-dot" cx="300.0" cy="20.3" r="3.5"/>
</svg>
<div class="proof-rows">
<div><span>2026-06-08</span><span class="v">130,08</span></div>
<div><span>2026-06-09</span><span class="v">130,85</span></div>
<div><span>2026-06-10</span><span class="v">132,23</span></div>
<div><span>2026-06-11</span><span class="v">131,78</span></div>
</div>
<!-- /agrobr:proof -->
</div>
</div>
<!-- ANATOMIA DO FALLBACK -->
<div class="pipeline reveal" aria-label="Animação do fallback em cascata">
<div class="pipe-row">
<div class="pipe-node pl1">
<div class="pipe-dot"></div>
<div class="pipe-name">CEPEA</div>
<div class="pipe-status">✗ 403 Forbidden</div>
</div>
<div class="pipe-link lk1"></div>
<div class="pipe-node pl2">
<div class="pipe-dot"></div>
<div class="pipe-name">Not. Agrícolas</div>
<div class="pipe-status">✓ 200 OK</div>
</div>
<div class="pipe-link lk2"></div>
<div class="pipe-node pl3">
<div class="pipe-dot"></div>
<div class="pipe-name">contrato v1.0</div>
<div class="pipe-status">✓ schema válido</div>
</div>
<div class="pipe-link lk3"></div>
<div class="pipe-node pl4">
<div class="pipe-dot"></div>
<div class="pipe-name">DataFrame</div>
<div class="pipe-status">◈ entregue</div>
</div>
</div>
</div>
</section>
<!-- DATASETS EM DESTAQUE -->
<section id="datasets">
<div class="reveal">
<p class="section-label">Camada Semântica</p>
<h2 class="section-title">Peça o que quer.<br>A fonte é detalhe interno.</h2>
<p class="section-desc">Datasets abstraem múltiplas fontes com fallback automático. Quando CEPEA retorna 403, o agrobr busca Notícias Agrícolas. Quando o servidor cai, serve do cache.</p>
</div>
<div class="datasets-grid reveal">
<div class="dataset-card">
<div class="dataset-name">preco_diario</div>
<div class="dataset-desc">Preços spot de 20 commodities agrícolas</div>
<div class="dataset-sources">CEPEA → NA → cache</div>
</div>
<div class="dataset-card">
<div class="dataset-name">estimativa_safra</div>
<div class="dataset-desc">Estimativas da safra corrente</div>
<div class="dataset-sources">CONAB → IBGE LSPA</div>
</div>