-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
471 lines (439 loc) · 22.5 KB
/
index.html
File metadata and controls
471 lines (439 loc) · 22.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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<!--
______ __
/ ____/___ ____ ___ ____ __ __/ /____ _____
/ / / __ \/ __ `__ \/ __ \/ / / / __/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ / /_/ __/ /
\____/\____/_/ /_/ /_/ .___/\__,_/\__/\___/_/
/_/
Created with Perplexity Computer
https://www.perplexity.ai/computer
-->
<meta name="generator" content="Perplexity Computer">
<meta name="author" content="Perplexity Computer">
<meta property="og:see_also" content="https://www.perplexity.ai/computer">
<link rel="author" href="https://www.perplexity.ai/computer">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>plano B — Consultoria Bitcoin</title>
<meta name="description" content="Proteja seus Bitcoin para o futuro. Herança, backup seguro e planejamento com software open source.">
<meta property="og:title" content="plano B — Bitcoin Consulting">
<meta property="og:description" content="Protect your Bitcoin for the future. Inheritance, secure backup, and planning with open-source software.">
<meta property="og:type" content="website">
<meta property="og:image" content="./assets/hero.png">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ProfessionalService",
"name": "plano B",
"description": "Bitcoin inheritance and security consulting. Custom protocols built with open-source software.",
"url": "https://planob.pro",
"creator": {
"@type": "SoftwareApplication",
"name": "Perplexity Computer",
"url": "https://www.perplexity.ai/computer"
}
}
</script>
<!-- Fonts: Poppins (brand typeface) -->
<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=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./base.css">
<link rel="stylesheet" href="./style.css">
<!-- Favicon -->
<link rel="icon" href="./assets/Logo_plano_B_transp_4.png">
<script>
// Immediate theme initialization to prevent flash
(function() {
const d = localStorage.getItem('theme') || 'light';
document.documentElement.setAttribute('data-theme', d);
})();
</script>
</head>
<body>
<a href="#main" class="sr-only" style="position:absolute;top:0;left:0;padding:8px;background:var(--color-primary);color:#fff;z-index:100;">Skip to content</a>
<!-- ========== HEADER ========== -->
<header class="header">
<div class="header-inner">
<a href="#" class="logo" aria-label="plano B — Home">
<img src="./assets/Logo_plano_B_hor_transp_4.png" alt="" class="logo-img">
</a>
<div class="header-actions">
<button class="lang-toggle" onclick="toggleLang()" aria-label="Switch language">
<span data-i18n-key="lang_toggle">EN</span>
</button>
<button class="theme-toggle" data-theme-toggle aria-label="Switch to light mode">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>
</button>
</div>
</div>
</header>
<!-- ========== HERO ========== -->
<main id="main">
<section class="hero">
<div class="hero-bg">
<img src="./assets/hero.png" alt="" loading="eager" width="1920" height="1080" decoding="async">
</div>
<div class="hero-content">
<div>
<p class="hero-tagline" data-i18n="hero_tagline">Consultoria Bitcoin</p>
<h1 data-i18n="hero_title">Proteja seus Bitcoin. <span data-i18n="hero_title_accent">Hoje e para sempre.</span></h1>
<p class="hero-description" data-i18n="hero_desc">Planejamento de herança, backup seguro e protocolo personalizado de proteção — tudo com software open source.</p>
<div class="cta-group">
<a href="https://cal.com/planob/15min" target="_blank" rel="noopener noreferrer" class="btn btn-primary" data-i18n="hero_cta">Agendar conversa gratuita</a>
<a href="#how" class="btn btn-outline" data-i18n="hero_cta2">Como funciona</a>
</div>
</div>
</div>
</section>
<!-- ========== PROBLEM ========== -->
<section class="section" id="problem">
<div class="section-inner reveal">
<p class="section-label" data-i18n="problem_label">O Problema</p>
<h2 class="section-title" data-i18n="problem_title">Milhões de Bitcoin já foram perdidos para sempre.</h2>
<div class="problem-grid">
<div class="problem-stats">
<div class="stat-item">
<div class="stat-number">3.7M BTC</div>
<p class="stat-label" data-i18n="stat1_label">estimados como permanentemente perdidos — incluindo falhas de herança.</p>
</div>
</div>
<div class="problem-text">
<p data-i18n="problem_p1">Os primeiros adotantes de Bitcoin estão entrando nos anos em que acidentes, doenças e imprevistos se tornam riscos reais. Muitos possuem quantias significativas sem nenhum plano de sucessão.</p>
<blockquote class="highlight-quote" data-i18n="problem_quote">"Ser seu próprio banco" funciona para controle individual — mas herança é coordenação em grupo sob estresse. E famílias raramente se coordenam bem sob estresse.</blockquote>
<p data-i18n="problem_p2">A questão não é se você precisa de um plano — é se você terá um antes que seja tarde demais.</p>
</div>
</div>
</div>
</section>
<!-- ========== SERVICES ========== -->
<section class="section" id="services" style="background: var(--color-surface);">
<div class="section-inner reveal">
<p class="section-label" data-i18n="services_label">Serviços</p>
<h2 class="section-title" data-i18n="services_title">Proteção Bitcoin sem abrir mão da soberania.</h2>
<div class="services-grid">
<div class="service-card">
<svg class="service-icon" viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="2">
<rect x="6" y="20" width="36" height="22" rx="3"/>
<path d="M14 20v-6a10 10 0 0 1 20 0v6"/>
<circle cx="24" cy="32" r="3"/>
</svg>
<h3 data-i18n="svc1_title">Protocolo de Herança</h3>
<p data-i18n="svc1_desc">Implementamos um protocolo personalizado de herança Bitcoin com software open source. Verificado, testado e documentado.</p>
<span class="service-tag" data-i18n="svc1_tag">Herança</span>
</div>
<div class="service-card">
<svg class="service-icon" viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="2">
<rect x="4" y="8" width="16" height="32" rx="2"/>
<rect x="28" y="8" width="16" height="32" rx="2"/>
<path d="M20 24h8" stroke-dasharray="3 3"/>
<circle cx="12" cy="20" r="3"/>
<circle cx="36" cy="20" r="3"/>
</svg>
<h3 data-i18n="svc2_title">Backup e Multisig</h3>
<p data-i18n="svc2_desc">Configure backups seguros e custódia multi-assinatura com suas próprias hardware wallets. Agnóstico de carteira.</p>
<span class="service-tag" data-i18n="svc2_tag">Segurança</span>
</div>
<div class="service-card">
<svg class="service-icon" viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="2">
<path d="M24 4l18 8v12c0 10-8 18-18 20C14 42 6 34 6 24V12l18-8z"/>
<path d="M16 24l6 6 10-10"/>
</svg>
<h3 data-i18n="svc3_title">Auditoria de Segurança</h3>
<p data-i18n="svc3_desc">Revise sua configuração atual de custódia. Identifique pontos de falha e implemente proteções práticas.</p>
<span class="service-tag" data-i18n="svc3_tag">Revisão</span>
</div>
</div>
</div>
</section>
<!-- ========== HOW IT WORKS ========== -->
<section class="section" id="how">
<div class="section-inner reveal">
<p class="section-label" data-i18n="how_label">Como funciona</p>
<h2 class="section-title" data-i18n="how_title">Simples. Sem confiança em terceiros. Soberano.</h2>
<div class="steps">
<div class="step">
<h3 data-i18n="step1_title">Conversa Inicial</h3>
<p data-i18n="step1_desc">15 minutos gratuitos para entender sua situação e seus objetivos. Sem compromisso.</p>
</div>
<div class="step">
<h3 data-i18n="step2_title">Plano Personalizado</h3>
<p data-i18n="step2_desc">Receba um plano claro e documentado adaptado às suas necessidades. Sem soluções genéricas.</p>
</div>
<div class="step">
<h3 data-i18n="step3_title">Implementação Guiada</h3>
<p data-i18n="step3_desc">Acompanhamento passo a passo para configurar e verificar tudo. Você mantém suas chaves — nós guiamos o processo.</p>
</div>
</div>
</div>
</section>
<!-- ========== VALUES ========== -->
<section class="section" style="background: var(--color-surface);">
<div class="section-inner reveal">
<p class="section-label" data-i18n="values_label">Nossos Princípios</p>
<h2 class="section-title" data-i18n="values_title">Alinhados com o ethos Bitcoin.</h2>
<div class="values-list">
<div class="value-item">
<svg class="value-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
<div>
<h3 data-i18n="val1_title">Soberania acima de tudo</h3>
<p data-i18n="val1_desc">Nunca tocamos nas suas chaves. Nunca exigimos KYC. Trabalhamos com o seu setup.</p>
</div>
</div>
<div class="value-item">
<svg class="value-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>
<div>
<h3 data-i18n="val2_title">Verifique, não confie</h3>
<p data-i18n="val2_desc">Cada setup é testado e documentado. Você pode verificar tudo sozinho.</p>
</div>
</div>
<div class="value-item">
<svg class="value-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>
<div>
<h3 data-i18n="val3_title">100% Open Source</h3>
<p data-i18n="val3_desc">Usamos apenas software open source. Sem dependência de empresas ou serviços proprietários.</p>
</div>
</div>
<div class="value-item">
<svg class="value-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="1" y="4" width="22" height="16" rx="2"/><line x1="1" y1="10" x2="23" y2="10"/></svg>
<div>
<h3 data-i18n="val4_title">Preço transparente</h3>
<p data-i18n="val4_desc">Taxas fixas, não percentuais do seu patrimônio. Pagamento em BTC ou fiat.</p>
</div>
</div>
</div>
</div>
</section>
<!-- ========== CTA ========== -->
<section class="section" id="book">
<div class="section-inner reveal">
<div class="cta-banner">
<div>
<h2 data-i18n="cta_title">Pronto para proteger seus Bitcoin?</h2>
<p data-i18n="cta_desc">Agende uma conversa gratuita de 15 minutos. Sem compromisso, sem pressão.</p>
<div class="cta-details">
<div class="cta-detail">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg>
<span data-i18n="cta_check1">15 minutos, gratuito</span>
</div>
<div class="cta-detail">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg>
<span data-i18n="cta_check2">Sem compromisso</span>
</div>
<div class="cta-detail">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg>
<span data-i18n="cta_check3">Avaliação personalizada do seu setup</span>
</div>
</div>
</div>
<a href="https://cal.com/planob/15min" target="_blank" rel="noopener noreferrer" class="btn btn-primary" data-i18n="cta_btn">Agendar agora</a>
</div>
</div>
</section>
</main>
<!-- ========== FOOTER ========== -->
<footer class="footer">
<div class="footer-inner">
<div class="footer-left">
<span class="footer-copy">© 2026 plano B</span>
</div>
<div class="footer-right">
<a href="https://cal.com/planob/15min" target="_blank" rel="noopener noreferrer" data-i18n="footer_book">Agendar</a>
<a href="https://www.perplexity.ai/computer" target="_blank" rel="noopener noreferrer">Created with Perplexity Computer</a>
</div>
</div>
</footer>
<!-- ========== SCRIPTS ========== -->
<script>
const translations = {
'pt-BR': {
page_title: 'plano B — Consultoria Bitcoin',
page_desc: 'Proteja seus Bitcoin para o futuro. Herança, backup seguro e planejamento com software open source.',
lang_toggle: 'EN',
hero_tagline: 'Consultoria Bitcoin',
hero_title: 'Proteja seus Bitcoin. ',
hero_title_accent: 'Hoje e para sempre.',
hero_desc: 'Planejamento de herança, backup seguro e protocolo personalizado de proteção — tudo com software open source.',
hero_cta: 'Agendar conversa gratuita',
hero_cta2: 'Como funciona',
problem_label: 'O Problema',
problem_title: 'Milhões de Bitcoin já foram perdidos para sempre.',
stat1_label: 'estimados como permanentemente perdidos — incluindo falhas de herança.',
problem_p1: 'Os primeiros adotantes de Bitcoin estão entrando nos anos em que acidentes, doenças e imprevistos se tornam riscos reais. Muitos possuem quantias significativas sem nenhum plano de sucessão.',
problem_quote: '"Ser seu próprio banco" funciona para controle individual — mas herança é coordenação em grupo sob estresse. E famílias raramente se coordenam bem sob estresse.',
problem_p2: 'A questão não é se você precisa de um plano — é se você terá um antes que seja tarde demais.',
services_label: 'Serviços',
services_title: 'Proteção Bitcoin sem abrir mão da soberania.',
svc1_title: 'Protocolo de Herança',
svc1_desc: 'Implementamos um protocolo personalizado de herança Bitcoin com software open source. Verificado, testado e documentado.',
svc1_tag: 'Herança',
svc2_title: 'Backup e Multisig',
svc2_desc: 'Configure backups seguros e custódia multi-assinatura com suas próprias hardware wallets. Agnóstico de carteira.',
svc2_tag: 'Segurança',
svc3_title: 'Auditoria de Segurança',
svc3_desc: 'Revise sua configuração atual de custódia. Identifique pontos de falha e implemente proteções práticas.',
svc3_tag: 'Revisão',
how_label: 'Como funciona',
how_title: 'Simples. Sem confiança em terceiros. Soberano.',
step1_title: 'Conversa Inicial',
step1_desc: '15 minutos gratuitos para entender sua situação e seus objetivos. Sem compromisso.',
step2_title: 'Plano Personalizado',
step2_desc: 'Receba um plano claro e documentado adaptado às suas necessidades. Sem soluções genéricas.',
step3_title: 'Implementação Guiada',
step3_desc: 'Acompanhamento passo a passo para configurar e verificar tudo. Você mantém suas chaves — nós guiamos o processo.',
values_label: 'Nossos Princípios',
values_title: 'Alinhados com o ethos Bitcoin.',
val1_title: 'Soberania acima de tudo',
val1_desc: 'Nunca tocamos nas suas chaves. Nunca exigimos KYC. Trabalhamos com o seu setup.',
val2_title: 'Verifique, não confie',
val2_desc: 'Cada setup é testado e documentado. Você pode verificar tudo sozinho.',
val3_title: '100% Open Source',
val3_desc: 'Usamos apenas software open source. Sem dependência de empresas ou serviços proprietários.',
val4_title: 'Preço transparente',
val4_desc: 'Taxas fixas, não percentuais do seu patrimônio. Pagamento em BTC ou fiat.',
cta_title: 'Pronto para proteger seus Bitcoin?',
cta_desc: 'Agende uma conversa gratuita de 15 minutos. Sem compromisso, sem pressão.',
cta_check1: '15 minutos, gratuito',
cta_check2: 'Sem compromisso',
cta_check3: 'Avaliação personalizada do seu setup',
cta_btn: 'Agendar agora',
footer_book: 'Agendar'
},
'en': {
page_title: 'plano B — Bitcoin Consulting',
page_desc: 'Protect your Bitcoin for the future. Inheritance, secure backup, and planning with open-source software.',
lang_toggle: 'PT',
hero_tagline: 'Bitcoin Consulting',
hero_title: 'Protect your Bitcoin. ',
hero_title_accent: 'Today and forever.',
hero_desc: 'Inheritance planning, secure backup, and a custom protection protocol — all built with open-source software.',
hero_cta: 'Book a free call',
hero_cta2: 'How it works',
problem_label: 'The Problem',
problem_title: 'Millions of Bitcoin are already lost forever.',
stat1_label: 'estimated permanently lost — including inheritance failures.',
problem_p1: 'Early Bitcoin adopters are entering the years where accidents, illness, and the unexpected become real risks. Many hold significant amounts with zero succession planning.',
problem_quote: '"Be your own bank" works brilliantly for individual control — but inheritance is group coordination under stress. And families rarely coordinate well under stress.',
problem_p2: 'The question isn\'t whether you need a plan — it\'s whether you\'ll have one before it\'s too late.',
services_label: 'Services',
services_title: 'Bitcoin protection without giving up sovereignty.',
svc1_title: 'Inheritance Protocol',
svc1_desc: 'We implement a custom Bitcoin inheritance protocol with open-source software. Verified, tested, and documented.',
svc1_tag: 'Inheritance',
svc2_title: 'Backup & Multisig',
svc2_desc: 'Set up secure backups and multi-signature custody with your own hardware wallets. Wallet-agnostic.',
svc2_tag: 'Security',
svc3_title: 'Security Audit',
svc3_desc: 'Review your current custody setup. Identify single points of failure and implement practical safeguards.',
svc3_tag: 'Review',
how_label: 'How it works',
how_title: 'Simple. Trustless. Sovereign.',
step1_title: 'Initial Call',
step1_desc: 'Free 15-minute call to understand your situation and goals. No commitment.',
step2_title: 'Custom Plan',
step2_desc: 'Receive a clear, documented plan tailored to your needs. No generic solutions.',
step3_title: 'Guided Implementation',
step3_desc: 'Step-by-step walkthrough to set up and verify everything. You keep your keys — we guide the process.',
values_label: 'Our Principles',
values_title: 'Aligned with the Bitcoin ethos.',
val1_title: 'Sovereignty first',
val1_desc: 'We never hold your keys. We never require KYC. We work with your setup.',
val2_title: 'Verify, don\'t trust',
val2_desc: 'Every setup is tested and documented. You can verify it all yourself.',
val3_title: '100% Open Source',
val3_desc: 'We only use open-source software. No dependency on companies or proprietary services.',
val4_title: 'Transparent pricing',
val4_desc: 'Flat fees, not percentages of your stack. Pay in BTC or fiat.',
cta_title: 'Ready to protect your Bitcoin?',
cta_desc: 'Book a free 15-minute call. No commitment, no pressure.',
cta_check1: '15 minutes, free',
cta_check2: 'No commitment',
cta_check3: 'Personalized assessment of your setup',
cta_btn: 'Book now',
footer_book: 'Book a call'
}
};
let currentLang = 'pt-BR';
function applyTranslation(lang) {
currentLang = lang;
const t = translations[lang];
document.documentElement.lang = lang === 'pt-BR' ? 'pt-BR' : 'en';
document.title = t.page_title;
document.querySelector('meta[name="description"]').content = t.page_desc;
document.querySelectorAll('[data-i18n]').forEach(el => {
const key = el.getAttribute('data-i18n');
if (t[key]) el.textContent = t[key];
});
const heroTitle = document.querySelector('[data-i18n="hero_title"]');
if (heroTitle) {
const accentSpan = heroTitle.querySelector('[data-i18n="hero_title_accent"]');
heroTitle.textContent = t.hero_title;
if (accentSpan) {
accentSpan.textContent = t.hero_title_accent;
heroTitle.appendChild(accentSpan);
} else {
const newSpan = document.createElement('span');
newSpan.setAttribute('data-i18n', 'hero_title_accent');
newSpan.textContent = t.hero_title_accent;
heroTitle.appendChild(newSpan);
}
}
document.querySelectorAll('[data-i18n-key]').forEach(el => {
const key = el.getAttribute('data-i18n-key');
if (t[key]) el.textContent = t[key];
});
}
function toggleLang() {
applyTranslation(currentLang === 'pt-BR' ? 'en' : 'pt-BR');
}
async function detectLanguage() {
try {
const resp = await fetch('https://ipapi.co/json/', { signal: AbortSignal.timeout(3000) });
const data = await resp.json();
return data.country_code === 'BR' ? 'pt-BR' : 'en';
} catch {
return 'pt-BR';
}
}
// Dark mode toggle
(function(){
const t = document.querySelector('[data-theme-toggle]');
const r = document.documentElement;
// Default to light mode unless the user has an explicit preference for dark mode
let d = localStorage.getItem('theme') || 'light';
r.setAttribute('data-theme', d);
const updateToggleIcon = (theme) => {
if (!t) return;
t.setAttribute('aria-label', 'Switch to ' + (theme === 'dark' ? 'light' : 'dark') + ' mode');
t.innerHTML = theme === 'dark'
? '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>'
: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>';
};
updateToggleIcon(d);
if (t) {
t.addEventListener('click', () => {
d = d === 'dark' ? 'light' : 'dark';
r.setAttribute('data-theme', d);
localStorage.setItem('theme', d);
updateToggleIcon(d);
});
}
})();
// Scroll reveal
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) entry.target.classList.add('visible');
});
}, { threshold: 0.1, rootMargin: '0px 0px -40px 0px' });
document.querySelectorAll('.reveal').forEach(el => observer.observe(el));
// Init
(async function init() {
const lang = await detectLanguage();
applyTranslation(lang);
})();
</script>
</body>
</html>