Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
81ffaa85c3 | ||
|
|
7ed6a51d9f | ||
|
|
25423c15d1 | ||
|
|
065847e67a | ||
|
|
c00ce6a58d | ||
|
|
5b966688e9 | ||
|
|
041a53417a | ||
|
|
7024269bf6 | ||
|
|
84605dcf1a | ||
|
|
490b5fe55f | ||
|
|
9bc2a49f7c | ||
|
|
a10305f5a5 |
@@ -27,6 +27,12 @@
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&family=Ubuntu+Mono:wght@400;500;700&display=swap">
|
||||
<!-- Route CSS (src/site/styles.css etc.) is code-split and loads with each
|
||||
lazy route, so without this the default browser body margin shows as a
|
||||
white ring around the dark Suspense fallback on first paint. -->
|
||||
<style>
|
||||
html, body { margin: 0; padding: 0; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 45 KiB |
@@ -1,4 +1,4 @@
|
||||
<svg width="417" height="71" viewBox="0 0 417 71" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="280" height="71" viewBox="0 0 280 71" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<mask id="mask0_3925_2297" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="280" height="71">
|
||||
<path d="M0.666504 0.338379H279.333V70.3384H0.666504V0.338379Z" fill="white"/>
|
||||
</mask>
|
||||
@@ -10,21 +10,6 @@
|
||||
<path d="M279.527 0.335938H0.526855V70.336H279.527V0.335938Z" fill="url(#pattern1_3925_2297)"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask id="mask2_3925_2297" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="290" y="9" width="127" height="53">
|
||||
<path d="M416.667 9.6665H290V61.6665H416.667V9.6665Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask2_3925_2297)">
|
||||
<mask id="mask3_3925_2297" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="290" y="20" width="32" height="33">
|
||||
<path d="M290.641 20.333H322V52.333H290.641V20.333Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask3_3925_2297)">
|
||||
<path d="M314.53 51.6104C314.207 50.5583 313.853 49.4801 313.467 48.3812C313.077 47.2718 312.686 46.1624 312.301 45.0479H300.488C300.113 46.1624 299.723 47.2718 299.322 48.3812C298.931 49.4801 298.577 50.5583 298.259 51.6104H291.176C292.311 48.3499 293.389 45.3343 294.405 42.5687C295.431 39.7926 296.431 37.1833 297.405 34.7354C298.389 32.277 299.353 29.9541 300.301 27.7562C301.243 25.5479 302.228 23.3968 303.259 21.2979H309.78C310.764 23.3968 311.738 25.5479 312.697 27.7562C313.665 29.9541 314.639 32.277 315.613 34.7354C316.582 37.1833 317.577 39.7926 318.592 42.5687C319.618 45.3343 320.702 48.3499 321.842 51.6104H314.53ZM306.363 28.152C306.207 28.5999 305.988 29.2041 305.697 29.9645C305.405 30.7145 305.072 31.5895 304.697 32.5895C304.322 33.5791 303.905 34.6676 303.447 35.8604C302.999 37.0583 302.54 38.3135 302.072 39.6312H310.697C310.223 38.3135 309.764 37.0583 309.322 35.8604C308.889 34.6676 308.473 33.5791 308.072 32.5895C307.681 31.5895 307.342 30.7145 307.051 29.9645C306.759 29.2041 306.53 28.5999 306.363 28.152Z" fill="#53B798"/>
|
||||
</g>
|
||||
<path d="M325.331 29.3809C326.44 29.0632 327.872 28.7663 329.622 28.485C331.372 28.209 333.206 28.0684 335.122 28.0684C337.081 28.0684 338.706 28.3288 339.997 28.8392C341.299 29.3548 342.331 30.0788 343.081 31.0059C343.841 31.9382 344.383 33.0475 344.706 34.3392C345.023 35.6204 345.185 37.0423 345.185 38.61V51.61H338.685V39.4017C338.685 37.3079 338.403 35.8184 337.851 34.9434C337.294 34.0684 336.258 33.6309 334.747 33.6309C334.273 33.6309 333.773 33.6517 333.247 33.6934C332.716 33.735 332.252 33.7871 331.851 33.8392V51.61H325.331V29.3809Z" fill="#53B798"/>
|
||||
<path d="M356.65 39.36C356.65 43.0007 358.119 44.8184 361.067 44.8184C361.734 44.8184 362.359 44.735 362.942 44.5684C363.525 44.3913 364.025 44.1829 364.442 43.9434V33.5475C364.109 33.4798 363.718 33.4225 363.275 33.3809C362.843 33.3392 362.338 33.3184 361.754 33.3184C360.046 33.3184 358.765 33.8913 357.921 35.0267C357.072 36.1673 356.65 37.61 356.65 39.36ZM370.942 48.7142C370.942 52.4746 369.984 55.2663 368.067 57.0892C366.161 58.9225 363.218 59.8392 359.234 59.8392C357.827 59.8392 356.426 59.7142 355.025 59.4642C353.619 59.2142 352.322 58.8861 351.129 58.485L352.275 53.0059C353.286 53.4225 354.359 53.7402 355.484 53.9642C356.609 54.1986 357.885 54.3184 359.317 54.3184C361.176 54.3184 362.494 53.9069 363.275 53.0892C364.051 52.2819 364.442 51.235 364.442 49.9434V49.11C363.734 49.4329 363.004 49.6725 362.254 49.8392C361.515 49.9954 360.713 50.0684 359.838 50.0684C356.655 50.0684 354.218 49.1309 352.525 47.2559C350.843 45.3809 350.004 42.7507 350.004 39.36C350.004 37.6673 350.26 36.1309 350.775 34.7559C351.301 33.3704 352.067 32.1829 353.067 31.1934C354.077 30.1934 355.317 29.4225 356.775 28.8809C358.234 28.3392 359.879 28.0684 361.713 28.0684C362.504 28.0684 363.317 28.11 364.15 28.1934C364.984 28.2663 365.801 28.3548 366.609 28.4642C367.426 28.5788 368.202 28.7142 368.942 28.8809C369.692 29.0475 370.359 29.2142 370.942 29.3809V48.7142Z" fill="#53B798"/>
|
||||
<path d="M375.98 40.277C375.98 38.2354 376.293 36.4541 376.918 34.9229C377.543 33.3968 378.361 32.126 379.376 31.1104C380.402 30.0843 381.574 29.3083 382.897 28.777C384.23 28.251 385.595 27.9854 387.001 27.9854C390.262 27.9854 392.84 28.9854 394.73 30.9854C396.632 32.9854 397.585 35.9229 397.585 39.7979C397.585 40.1729 397.569 40.5895 397.543 41.0479C397.512 41.4958 397.486 41.8968 397.46 42.2562H382.668C382.803 43.5895 383.428 44.652 384.543 45.4437C385.652 46.2354 387.137 46.6312 389.001 46.6312C390.194 46.6312 391.366 46.5218 392.522 46.2979C393.673 46.0791 394.616 45.8083 395.355 45.4854L396.23 50.777C395.882 50.9593 395.418 51.1416 394.835 51.3187C394.251 51.4854 393.595 51.6312 392.876 51.7562C392.168 51.8916 391.402 52.0062 390.585 52.0895C389.762 52.1729 388.944 52.2145 388.126 52.2145C386.053 52.2145 384.257 51.9072 382.73 51.2979C381.199 50.6885 379.928 49.8551 378.918 48.7979C377.918 47.7301 377.173 46.4645 376.689 45.0062C376.215 43.5479 375.98 41.9749 375.98 40.277ZM391.293 37.777C391.251 37.2249 391.147 36.6885 390.98 36.1729C390.824 35.6468 390.585 35.1833 390.251 34.777C389.918 34.3604 389.491 34.0218 388.98 33.7562C388.48 33.4958 387.845 33.3604 387.085 33.3604C386.345 33.3604 385.715 33.4854 385.189 33.7354C384.673 33.9854 384.236 34.3187 383.876 34.7354C383.527 35.1416 383.257 35.6104 383.064 36.152C382.882 36.6833 382.751 37.2249 382.668 37.777H391.293Z" fill="#53B798"/>
|
||||
<path d="M411.79 52.0477C409.899 52.0164 408.357 51.8185 407.165 51.4435C405.982 51.0581 405.05 50.5216 404.373 49.8394C403.691 49.1623 403.227 48.3341 402.977 47.3602C402.727 46.3758 402.602 45.2716 402.602 44.0477V18.7144L409.123 17.6519V42.7352C409.123 43.3185 409.165 43.8498 409.248 44.3185C409.342 44.7769 409.508 45.1675 409.748 45.4852C409.998 45.8081 410.352 46.0685 410.81 46.2769C411.279 46.4748 411.915 46.605 412.706 46.6727L411.79 52.0477Z" fill="#53B798"/>
|
||||
</g>
|
||||
<defs>
|
||||
<pattern id="pattern0_3925_2297" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image0_3925_2297" transform="scale(0.00121951 0.00487805)"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 24 KiB |
@@ -70,11 +70,16 @@ function sanitiseBody(html) {
|
||||
}
|
||||
s = s.replace(/(<br\s*\/?>\s*){3,}/gi, '<br /><br />')
|
||||
s = s.replace(/[ \t]+/g, ' ').replace(/\s*\n\s*/g, '\n').trim()
|
||||
return s
|
||||
return normaliseDashes(s)
|
||||
}
|
||||
|
||||
// House style reads as British English — em dashes read as American, so every
|
||||
// import normalises them to a spaced en dash rather than relying on the studio
|
||||
// draft (or a future re-import) to get it right.
|
||||
const normaliseDashes = (text) => String(text || '').replace(/\s*—\s*/g, ' – ')
|
||||
|
||||
const excerptOf = (post) =>
|
||||
(post.excerpt || sanitiseBody(post.body).replace(/<[^>]*>/g, ' ').replace(/\s+/g, ' ').trim().slice(0, 260)).trim()
|
||||
normaliseDashes((post.excerpt || sanitiseBody(post.body).replace(/<[^>]*>/g, ' ').replace(/\s+/g, ' ').trim().slice(0, 260)).trim())
|
||||
|
||||
// ── Hero extraction ────────────────────────────────────────────────────────────
|
||||
const EXT = { 'image/jpeg': 'jpg', 'image/png': 'png', 'image/webp': 'webp', 'image/gif': 'gif', 'image/svg+xml': 'svg' }
|
||||
@@ -119,7 +124,7 @@ const extraPosts = fs.existsSync(EXTRA) ? JSON.parse(fs.readFileSync(EXTRA, 'utf
|
||||
const posts = (draft.posts || []).map((p) => ({
|
||||
id: p.slug,
|
||||
slug: p.slug,
|
||||
title: p.title || 'Untitled',
|
||||
title: normaliseDashes(p.title || 'Untitled'),
|
||||
category: ['insights', 'news', 'press', 'events'].includes(p.category) ? p.category : 'insights',
|
||||
date: (p.date || '').slice(0, 10),
|
||||
author: p.author || 'BlackDice Cyber',
|
||||
@@ -138,11 +143,15 @@ for (const extra of extraPosts) {
|
||||
}
|
||||
posts.sort((a, b) => (a.date < b.date ? 1 : -1))
|
||||
|
||||
const normalisedContent = Object.fromEntries(
|
||||
Object.entries(draft.content || {}).map(([id, text]) => [id, normaliseDashes(text)]),
|
||||
)
|
||||
|
||||
const seed = {
|
||||
format: 'blackdice-react-content',
|
||||
version: 1,
|
||||
savedAt: draft.savedAt || new Date().toISOString(),
|
||||
content: draft.content || {},
|
||||
content: normalisedContent,
|
||||
images: draft.images || {},
|
||||
numbers: {},
|
||||
posts,
|
||||
|
||||
@@ -515,7 +515,7 @@ function SceneIsolateModal() {
|
||||
</PrimaryBtn>
|
||||
<motion.div whileTap={{ scale: .97 }}
|
||||
style={{ textAlign: 'center', fontSize: 11, color: T.muted, cursor: 'pointer', padding: '3px 0' }}>
|
||||
Cancel — stay connected
|
||||
Cancel – stay connected
|
||||
</motion.div>
|
||||
</div>
|
||||
</motion.div>
|
||||
@@ -658,7 +658,7 @@ function SceneNotifPanel() {
|
||||
{/* Critical group */}
|
||||
<div style={{ fontSize: 9, fontWeight: 700, color: T.danger, letterSpacing: '.5px', textTransform: 'uppercase', padding: '0 2px' }}>Critical</div>
|
||||
{([
|
||||
{ Icon: IconAlert, title: "Suspicious login — Emma's account", body: 'Instagram · Moscow 🇷🇺 · 02:31 AM', t: '8m ago', variant: 'danger' as const },
|
||||
{ Icon: IconAlert, title: "Suspicious login – Emma's account", body: 'Instagram · Moscow 🇷🇺 · 02:31 AM', t: '8m ago', variant: 'danger' as const },
|
||||
{ Icon: IconShield, title: 'Malware blocked · PS5', body: 'Trojan.GenericKD.71234 · Stopped', t: '6m ago', variant: 'danger' as const },
|
||||
] as const).map((n, i) => {
|
||||
const c = T.danger
|
||||
@@ -682,7 +682,7 @@ function SceneNotifPanel() {
|
||||
<div style={{ fontSize: 9, fontWeight: 700, color: T.muted, letterSpacing: '.5px', textTransform: 'uppercase', padding: '0 2px', marginTop: 4 }}>Earlier</div>
|
||||
{([
|
||||
{ Icon: IconPin, title: 'Emma arrived at School', body: '8:42 AM · geofence enter', t: '2h ago', variant: 'ok' as const },
|
||||
{ Icon: IconLock, title: 'Unsafe WiFi — VPN on', body: "Starbucks_Free · Sarah's iPhone", t: '4h ago', variant: 'warn' as const },
|
||||
{ Icon: IconLock, title: 'Unsafe WiFi – VPN on', body: "Starbucks_Free · Sarah's iPhone", t: '4h ago', variant: 'warn' as const },
|
||||
] as const).map((n, i) => {
|
||||
const vc = { ok: T.success, warn: T.warn }
|
||||
const c = vc[n.variant]
|
||||
@@ -861,7 +861,7 @@ function SceneIPDetail() {
|
||||
|
||||
<motion.div style={{ ...cardStyle, fontSize: 11, color: T.text2, lineHeight: 1.6 }}
|
||||
initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ delay: .35 }}>
|
||||
<span style={{ color: T.danger, fontWeight: 600 }}>Linked to:</span> Instagram credential stuffing campaign — 3,400+ victims globally, ongoing since Nov 2024.
|
||||
<span style={{ color: T.danger, fontWeight: 600 }}>Linked to:</span> Instagram credential stuffing campaign – 3,400+ victims globally, ongoing since Nov 2024.
|
||||
</motion.div>
|
||||
|
||||
<PrimaryBtn color={T.danger}>Block this IP across all devices →</PrimaryBtn>
|
||||
@@ -1448,7 +1448,7 @@ type VideoItem = { id: string; scene: string | null; ms: number; caption: string
|
||||
// Sequence: title + 7 Flow-A scenes + end card ≈ 52s
|
||||
const VIDEO_SEQUENCE: VideoItem[] = [
|
||||
{ id: 'title', scene: null, ms: 4000, caption: 'Welcome', vo: 'Your family’s digital life. One screen.', tilt: { rotateY: -4, rotateX: 2, scale: 0.97 } },
|
||||
{ id: 'home', scene: 'home', ms: 5400, caption: 'Home Dashboard', vo: 'Everything you need to protect your family — in one place.', tilt: { rotateY: -2, rotateX: 2, scale: 1.00 } },
|
||||
{ id: 'home', scene: 'home', ms: 5400, caption: 'Home Dashboard', vo: 'Everything you need to protect your family – in one place.', tilt: { rotateY: -2, rotateX: 2, scale: 1.00 } },
|
||||
{ id: 'toast', scene: 'alert-toast', ms: 6000, caption: 'Real-time Alert', vo: 'Real-time threats, delivered exactly when they happen.', tilt: { rotateY: 3, rotateX: 1, scale: 1.01 } },
|
||||
{ id: 'detail', scene: 'alert-detail', ms: 6400, caption: 'Threat Intelligence', vo: 'We don’t just say something’s wrong. We show you what it is.', tilt: { rotateY: 0, rotateX: 0, scale: 1.00 } },
|
||||
{ id: 'ps5', scene: 'device-ps5', ms: 6000, caption: 'Live Traffic', vo: 'Watch threats in real time. See what’s leaving your home.', tilt: { rotateY: -3, rotateX: 2, scale: 1.01 } },
|
||||
|
||||
@@ -35,7 +35,7 @@ const FLOWS: Record<FlowId, DemoFlow> = {
|
||||
A: {
|
||||
id: 'A',
|
||||
title: 'Critical Alert → Resolution',
|
||||
subtitle: 'Malware detected — PS5 isolated in one tap',
|
||||
subtitle: 'Malware detected – PS5 isolated in one tap',
|
||||
durationSec: 60,
|
||||
color: '#ef4444',
|
||||
steps: [
|
||||
@@ -65,7 +65,7 @@ const FLOWS: Record<FlowId, DemoFlow> = {
|
||||
},
|
||||
{
|
||||
id: 'A4',
|
||||
label: 'Device Detail — PS5',
|
||||
label: 'Device Detail – PS5',
|
||||
screen: 'device-ps5',
|
||||
caption: 'PlayStation 5 · THREAT DETECTED · Unusual traffic spike',
|
||||
camera: 'Slide right. Zoom on threat badge.',
|
||||
@@ -100,7 +100,7 @@ const FLOWS: Record<FlowId, DemoFlow> = {
|
||||
B: {
|
||||
id: 'B',
|
||||
title: 'Incident Investigation',
|
||||
subtitle: 'Suspicious login from Moscow — traced and blocked',
|
||||
subtitle: 'Suspicious login from Moscow – traced and blocked',
|
||||
durationSec: 45,
|
||||
color: '#f59e0b',
|
||||
steps: [
|
||||
@@ -124,7 +124,7 @@ const FLOWS: Record<FlowId, DemoFlow> = {
|
||||
id: 'B3',
|
||||
label: 'Event Timeline',
|
||||
screen: 'timeline',
|
||||
caption: '02:31 — Login from Moscow 🇷🇺 · 02:32 — Password change blocked',
|
||||
caption: '02:31 – Login from Moscow 🇷🇺 · 02:32 – Password change blocked',
|
||||
camera: 'Scroll timeline top-to-bottom.',
|
||||
durationMs: 12000,
|
||||
},
|
||||
@@ -173,7 +173,7 @@ const FLOWS: Record<FlowId, DemoFlow> = {
|
||||
id: 'C3',
|
||||
label: 'Full Network Scan',
|
||||
screen: 'scan-running',
|
||||
caption: 'Scanning 12 devices… ✅ × 11 · ⚠️ Printer — 1 issue',
|
||||
caption: 'Scanning 12 devices… ✅ × 11 · ⚠️ Printer – 1 issue',
|
||||
camera: 'Static. Devices check one by one.',
|
||||
durationMs: 10000,
|
||||
},
|
||||
@@ -187,7 +187,7 @@ const FLOWS: Record<FlowId, DemoFlow> = {
|
||||
},
|
||||
{
|
||||
id: 'C5',
|
||||
label: 'Verified — All Clear',
|
||||
label: 'Verified – All Clear',
|
||||
screen: 'verified',
|
||||
caption: '✅ HP Printer · Patched · All 12 devices secure · Score 95 ▲',
|
||||
camera: 'Zoom out. Green sweep.',
|
||||
|
||||
@@ -479,7 +479,7 @@ export const NOTIFICATIONS: Notification[] = [
|
||||
{
|
||||
id: 'n2',
|
||||
icon: 'alert',
|
||||
title: '⚠️ Suspicious login — Emma',
|
||||
title: '⚠️ Suspicious login – Emma',
|
||||
body: 'Instagram login from Moscow 🇷🇺 at 02:31. Access blocked.',
|
||||
time: '7 hr ago',
|
||||
read: false,
|
||||
@@ -498,7 +498,7 @@ export const NOTIFICATIONS: Notification[] = [
|
||||
id: 'n4',
|
||||
icon: 'shield',
|
||||
title: 'Unsafe WiFi auto-secured',
|
||||
body: 'Emma joined Starbucks_Free_WiFi — VPN activated automatically.',
|
||||
body: 'Emma joined Starbucks_Free_WiFi – VPN activated automatically.',
|
||||
time: 'Yesterday',
|
||||
read: true,
|
||||
severity: 'warn',
|
||||
@@ -582,7 +582,7 @@ export const SECURITY_ALERTS: SecurityAlert[] = [
|
||||
id: 'alert-002',
|
||||
severity: 'critical',
|
||||
type: 'suspicious_login',
|
||||
title: "Suspicious Login — Emma's Account",
|
||||
title: "Suspicious Login – Emma's Account",
|
||||
body: "Login attempt on Emma's Instagram from an unrecognised device in Moscow. Password change was blocked.",
|
||||
deviceId: 'd3',
|
||||
deviceName: "Emma's iPhone 14",
|
||||
@@ -637,7 +637,7 @@ export const SECURITY_ALERTS: SecurityAlert[] = [
|
||||
id: 'alert-006',
|
||||
severity: 'high',
|
||||
type: 'vulnerability',
|
||||
title: 'Firmware Vulnerability — HP Printer',
|
||||
title: 'Firmware Vulnerability – HP Printer',
|
||||
body: 'CVE-2024-8471 (CVSS 7.8): Remote code execution via port 9100. Firmware update available.',
|
||||
deviceId: 'd10',
|
||||
deviceName: 'HP LaserJet Pro',
|
||||
@@ -655,7 +655,7 @@ export const EMMA_INCIDENT_TIMELINE: TimelineEvent[] = [
|
||||
{
|
||||
id: 't1',
|
||||
time: '21:04',
|
||||
label: 'Normal login — Instagram',
|
||||
label: 'Normal login – Instagram',
|
||||
detail: 'Emma signed in from her iPhone 14 · London 🇬🇧 · known device',
|
||||
kind: 'normal',
|
||||
},
|
||||
|
||||
@@ -0,0 +1,562 @@
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
import { AnimatePresence, motion } from 'framer-motion'
|
||||
import {
|
||||
IconHome, IconUsers, IconApps, IconSliders, IconBell,
|
||||
IconPin, IconSchool, IconChild, IconCheck, IconAlert, IconPlus, IconMap,
|
||||
} from '../components/Icons'
|
||||
import '../demo.css'
|
||||
|
||||
const EASE_OUT = [0.23, 1, 0.32, 1] as const
|
||||
const SPRING = { type: 'spring', stiffness: 340, damping: 28 } as const
|
||||
const PHONE_SCALE = 0.88
|
||||
|
||||
const T = {
|
||||
bg: '#013B49',
|
||||
bgGrad: 'radial-gradient(140% 90% at 50% 0%, #075466 0%, #013B49 55%, #01303b 100%)',
|
||||
surface2: 'rgba(255,255,255,0.07)',
|
||||
surface3: 'rgba(255,255,255,0.10)',
|
||||
surfaceStr: '#0a4856',
|
||||
border: 'rgba(255,255,255,0.09)',
|
||||
text: '#e8f4f3',
|
||||
text2: '#b9cdd1',
|
||||
muted: '#8aa5ab',
|
||||
dim: '#5a7a82',
|
||||
accent: '#3BB586',
|
||||
accentSoft: 'rgba(59,181,134,0.16)',
|
||||
accentGlow: 'rgba(59,181,134,0.30)',
|
||||
danger: '#ff6b6b',
|
||||
dangerSoft: 'rgba(255,107,107,0.16)',
|
||||
warn: '#ffb56b',
|
||||
warnSoft: 'rgba(255,181,107,0.16)',
|
||||
success: '#4ec99a',
|
||||
successSoft: 'rgba(78,201,154,0.16)',
|
||||
}
|
||||
|
||||
// ── Timeline (30s total) ─────────────────────────────────────────────────────
|
||||
// P1 Live map (calm) → P2 Draw a safe zone → P3 Zone saved → P4 Jack leaves the
|
||||
// zone → P5 Alert detail → P6 Resolution → P7 Book-a-demo end card
|
||||
const PHASES = {
|
||||
p1: 3500,
|
||||
p2: 8500,
|
||||
p3: 11500,
|
||||
p4: 18500,
|
||||
p5: 23500,
|
||||
p6: 27000,
|
||||
total: 30000,
|
||||
}
|
||||
|
||||
function phaseOf(elapsed: number): number {
|
||||
if (elapsed < PHASES.p1) return 1
|
||||
if (elapsed < PHASES.p2) return 2
|
||||
if (elapsed < PHASES.p3) return 3
|
||||
if (elapsed < PHASES.p4) return 4
|
||||
if (elapsed < PHASES.p5) return 5
|
||||
if (elapsed < PHASES.p6) return 6
|
||||
return 7
|
||||
}
|
||||
|
||||
const PHASE_LABEL = ['', 'Live Map', 'Safe Zone', 'Zone Saved', 'Leaving Zone', 'Alert', 'Resolved', 'Book a Demo']
|
||||
|
||||
const VO_CUES = [
|
||||
{ at: 300, text: 'Parents can see exactly where their family is, right from the app.' },
|
||||
{ at: 3800, text: 'Creating a safe zone takes seconds – drop a pin, and draw the boundary.' },
|
||||
{ at: 8800, text: 'Once it’s saved, we keep watch over that boundary, day and night.' },
|
||||
{ at: 11800, text: 'The moment Jack leaves the Park zone, we notify the parent immediately.' },
|
||||
{ at: 23800, text: 'One tap shows exactly where he is – peace of mind, one message away. Book a demo today.' },
|
||||
]
|
||||
|
||||
const TABS = [
|
||||
{ Icon: IconHome, label: 'Home' },
|
||||
{ Icon: IconUsers, label: 'Family' },
|
||||
{ Icon: IconMap, label: 'Map' },
|
||||
{ Icon: IconSliders, label: 'Controls' },
|
||||
{ Icon: IconBell, label: 'Alerts' },
|
||||
] as const
|
||||
|
||||
function HexLogo({ size = 52 }: { size?: number }) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" style={{ color: T.accent, flexShrink: 0 }}>
|
||||
<g fill="none" stroke="currentColor" strokeWidth="3" strokeLinejoin="round" strokeLinecap="round">
|
||||
<path d="M32 6 L56 20 L56 46 L32 60 L8 46 L8 20 Z" />
|
||||
<path d="M32 6 L32 32 M8 20 L32 32 M56 20 L32 32" />
|
||||
</g>
|
||||
<g fill="currentColor">
|
||||
<circle cx="20" cy="26" r="2.4" /><circle cx="20" cy="34" r="2.4" /><circle cx="44" cy="34" r="2.4" />
|
||||
</g>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
function EndCard() {
|
||||
return (
|
||||
<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ duration: 0.5 }}
|
||||
style={{ position: 'absolute', inset: 0, zIndex: 60, background: T.bg, backgroundImage: T.bgGrad, display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: 16, padding: '0 24px', textAlign: 'center' }}>
|
||||
<motion.div initial={{ scale: 0.6, opacity: 0 }} animate={{ scale: 1, opacity: 1 }} transition={SPRING} style={{ position: 'relative' }}>
|
||||
<motion.div animate={{ scale: [1, 1.3, 1], opacity: [0.25, 0.05, 0.25] }} transition={{ duration: 3, repeat: Infinity }}
|
||||
style={{ position: 'absolute', inset: -16, borderRadius: '50%', background: T.accent, filter: 'blur(12px)' }} />
|
||||
<div style={{ position: 'relative' }}><HexLogo size={52} /></div>
|
||||
</motion.div>
|
||||
<div>
|
||||
<div style={{ fontSize: 20, fontWeight: 700, color: T.text, letterSpacing: '-.4px' }}>BlackDice</div>
|
||||
<div style={{ fontSize: 11, color: T.muted, marginTop: 4, letterSpacing: '.3px' }}>Powered by BlackDice</div>
|
||||
</div>
|
||||
<motion.div initial={{ opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: 0.35 }}
|
||||
style={{ background: T.accent, color: '#fff', fontSize: 13, fontWeight: 600, padding: '11px 28px', borderRadius: 100, boxShadow: `0 10px 28px ${T.accent}55` }}>
|
||||
Book a Demo
|
||||
</motion.div>
|
||||
<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ delay: 0.6 }}
|
||||
style={{ fontSize: 10.5, color: T.muted, letterSpacing: '.4px' }}>blackdice.com</motion.div>
|
||||
</motion.div>
|
||||
)
|
||||
}
|
||||
|
||||
// ── Map scene (phases 1–4) ───────────────────────────────────────────────────
|
||||
function MapScene({ elapsed, phase }: { elapsed: number; phase: number }) {
|
||||
const drawing = phase === 2
|
||||
const pinDropped = elapsed >= 4100
|
||||
const circleOut = elapsed >= 4900
|
||||
const labelTyped = elapsed >= 6300
|
||||
const saveShown = elapsed >= 7500
|
||||
const saveTapped = elapsed >= 8000
|
||||
const zoneSaved = elapsed >= PHASES.p2
|
||||
const walking = elapsed >= 11800
|
||||
const breached = elapsed >= 14800
|
||||
const alerted = elapsed >= 15200
|
||||
|
||||
const dotLeft = walking ? '61%' : '60%'
|
||||
const dotTop = walking ? '75%' : '57%'
|
||||
|
||||
const zoneName = 'Park'
|
||||
|
||||
return (
|
||||
<div style={{ position: 'absolute', inset: 0, overflow: 'hidden' }}>
|
||||
{/* stylised map base */}
|
||||
<svg viewBox="0 0 275 600" width="100%" height="100%" style={{ position: 'absolute', inset: 0 }}>
|
||||
<rect width="275" height="600" fill={T.bg} />
|
||||
<path d="M-10 90 C 70 40, 140 55, 275 130" stroke="rgba(111,169,247,.20)" strokeWidth="16" fill="none" />
|
||||
<g stroke="rgba(255,255,255,.05)" strokeWidth="1">
|
||||
<line x1="0" y1="220" x2="275" y2="230" />
|
||||
<line x1="0" y1="470" x2="275" y2="460" />
|
||||
<line x1="60" y1="0" x2="70" y2="600" />
|
||||
<line x1="205" y1="0" x2="195" y2="600" />
|
||||
</g>
|
||||
<g fill="rgba(255,255,255,.035)">
|
||||
<rect x="18" y="240" width="34" height="26" rx="3" />
|
||||
<rect x="90" y="255" width="40" height="30" rx="3" />
|
||||
<rect x="210" y="200" width="30" height="40" rx="3" />
|
||||
<rect x="30" y="490" width="46" height="28" rx="3" />
|
||||
</g>
|
||||
<ellipse cx="165" cy="340" rx="98" ry="82" fill="rgba(78,201,154,0.09)" />
|
||||
|
||||
{/* safe-zone boundary */}
|
||||
<motion.circle
|
||||
cx="165" cy="340"
|
||||
initial={{ r: 0, opacity: 0 }}
|
||||
animate={{ r: circleOut || zoneSaved ? 55 : 0, opacity: circleOut || zoneSaved ? 1 : 0 }}
|
||||
transition={{ duration: 1.1, ease: EASE_OUT }}
|
||||
fill={T.accentSoft}
|
||||
stroke={breached ? T.warn : T.accent}
|
||||
strokeWidth={2}
|
||||
strokeDasharray={zoneSaved && !drawing ? undefined : '5 4'}
|
||||
/>
|
||||
</svg>
|
||||
|
||||
{/* Home pin */}
|
||||
<motion.div initial={{ opacity: 0, y: -6 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: 0.2 }}
|
||||
style={{ position: 'absolute', left: '25%', top: '25%', transform: 'translate(-50%,-100%)', display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 2 }}>
|
||||
<div style={{ width: 26, height: 26, borderRadius: '50%', background: T.surfaceStr, border: `1.5px solid ${T.accent}`, display: 'flex', alignItems: 'center', justifyContent: 'center', boxShadow: '0 4px 12px rgba(0,0,0,.4)' }}>
|
||||
<IconHome size={13} style={{ color: T.accent }} />
|
||||
</div>
|
||||
<span style={{ fontSize: 8.5, color: T.text2, background: 'rgba(0,0,0,.4)', borderRadius: 5, padding: '1px 5px' }}>Home</span>
|
||||
</motion.div>
|
||||
|
||||
{/* School pin */}
|
||||
<motion.div initial={{ opacity: 0, y: -6 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: 0.3 }}
|
||||
style={{ position: 'absolute', left: '73%', top: '18%', transform: 'translate(-50%,-100%)', display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 2 }}>
|
||||
<div style={{ width: 24, height: 24, borderRadius: '50%', background: T.surfaceStr, border: `1.5px solid ${T.dim}`, display: 'flex', alignItems: 'center', justifyContent: 'center', boxShadow: '0 4px 12px rgba(0,0,0,.4)' }}>
|
||||
<IconSchool size={12} style={{ color: T.text2 }} />
|
||||
</div>
|
||||
<span style={{ fontSize: 8.5, color: T.muted, background: 'rgba(0,0,0,.4)', borderRadius: 5, padding: '1px 5px' }}>School</span>
|
||||
</motion.div>
|
||||
|
||||
{/* drop-pin during drawing */}
|
||||
<AnimatePresence>
|
||||
{drawing && pinDropped && (
|
||||
<motion.div key="drop" initial={{ opacity: 0, y: -18, scale: 0.6 }} animate={{ opacity: 1, y: 0, scale: 1 }} transition={SPRING}
|
||||
style={{ position: 'absolute', left: '60%', top: '57%', transform: 'translate(-50%,-100%)', zIndex: 5 }}>
|
||||
<IconPin size={26} style={{ color: T.accent, filter: `drop-shadow(0 4px 8px ${T.accentGlow})` }} />
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
|
||||
{/* Jack (family member) dot */}
|
||||
{(phase >= 3) && (
|
||||
<motion.div
|
||||
animate={{ left: dotLeft, top: dotTop }}
|
||||
transition={{ duration: 3, ease: 'easeInOut' }}
|
||||
style={{ position: 'absolute', transform: 'translate(-50%,-50%)', zIndex: 6 }}>
|
||||
<motion.div animate={breached ? { scale: [1, 1.35, 1] } : {}} transition={{ duration: 0.9, repeat: breached ? Infinity : 0 }}
|
||||
style={{ width: 22, height: 22, borderRadius: '50%', background: breached ? T.warn : T.accent, display: 'flex', alignItems: 'center', justifyContent: 'center', boxShadow: `0 0 0 4px ${breached ? T.warnSoft : T.accentSoft}` }}>
|
||||
<IconChild size={12} style={{ color: '#fff' }} />
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
)}
|
||||
|
||||
{/* Header chip */}
|
||||
<div style={{ position: 'absolute', top: 46, left: 14, right: 14, display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
||||
<span style={{ fontSize: 13, fontWeight: 700, color: T.text, background: 'rgba(0,0,0,.32)', backdropFilter: 'blur(8px)', borderRadius: 10, padding: '5px 10px' }}>
|
||||
{drawing ? 'Add a safe zone' : 'Family · Live map'}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* Zone label input while drawing */}
|
||||
<AnimatePresence>
|
||||
{drawing && circleOut && (
|
||||
<motion.div key="label" initial={{ opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0 }}
|
||||
style={{ position: 'absolute', left: '50%', top: '78%', transform: 'translateX(-50%)', background: T.surfaceStr, border: `1px solid ${T.border}`, borderRadius: 10, padding: '7px 12px', display: 'flex', alignItems: 'center', gap: 6, minWidth: 120 }}>
|
||||
<IconPin size={12} style={{ color: T.accent, flexShrink: 0 }} />
|
||||
<span style={{ fontSize: 12, color: T.text }}>
|
||||
{labelTyped
|
||||
? zoneName.split('').map((c, i) => (
|
||||
<motion.span key={i} initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ delay: i * 0.06 }}>{c}</motion.span>
|
||||
))
|
||||
: <span style={{ color: T.dim }}>Zone name…</span>}
|
||||
</span>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
|
||||
{/* Save button while drawing */}
|
||||
<AnimatePresence>
|
||||
{drawing && saveShown && (
|
||||
<motion.div key="save" initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -6 }}
|
||||
transition={{ ease: EASE_OUT }}
|
||||
style={{ position: 'absolute', left: 14, right: 14, bottom: 72, zIndex: 15 }}>
|
||||
<motion.div animate={saveTapped ? { scale: [1, 0.94, 1] } : {}} transition={{ duration: 0.4 }}
|
||||
style={{ background: T.accent, color: '#fff', fontSize: 13, fontWeight: 600, borderRadius: 12, padding: '11px 0', textAlign: 'center', boxShadow: `0 8px 22px ${T.accent}55` }}>
|
||||
Save safe zone
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
|
||||
{/* Saved confirmation card (phase 3) */}
|
||||
<AnimatePresence>
|
||||
{phase === 3 && (
|
||||
<motion.div key="saved" initial={{ opacity: 0, y: 14 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0 }} transition={{ ease: EASE_OUT }}
|
||||
style={{ position: 'absolute', left: 14, right: 14, bottom: 72, zIndex: 15, background: T.surfaceStr, border: `1px solid ${T.border}`, borderRadius: 14, padding: '11px 13px', boxShadow: '0 8px 26px rgba(0,0,0,.4)' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 4 }}>
|
||||
<div style={{ width: 22, height: 22, borderRadius: '50%', background: T.success, display: 'flex', alignItems: 'center', justifyContent: 'center', flexShrink: 0 }}>
|
||||
<IconCheck size={12} style={{ color: '#fff' }} />
|
||||
</div>
|
||||
<span style={{ fontSize: 12.5, fontWeight: 600, color: T.text }}>Park · 200m radius</span>
|
||||
</div>
|
||||
<div style={{ fontSize: 10.5, color: T.muted, paddingLeft: 30 }}>Monitoring on · Arrive & leave alerts</div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
|
||||
{/* Time chip during the leaving-zone phase */}
|
||||
<AnimatePresence>
|
||||
{phase === 4 && (
|
||||
<motion.div key="time" initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }}
|
||||
style={{ position: 'absolute', top: 78, left: 14, fontSize: 10, color: T.muted, background: 'rgba(0,0,0,.32)', borderRadius: 8, padding: '3px 8px' }}>
|
||||
Later · 2:47 PM
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
|
||||
{/* Notification banner */}
|
||||
<AnimatePresence>
|
||||
{alerted && phase === 4 && (
|
||||
<motion.div key="notif" initial={{ y: -18, opacity: 0, scale: 0.97 }} animate={{ y: 0, opacity: 1, scale: 1 }} transition={SPRING}
|
||||
style={{ position: 'absolute', top: 78, left: 14, right: 14, background: T.warnSoft, border: `1px solid ${T.warn}55`, borderRadius: 12, padding: '11px 12px', display: 'flex', alignItems: 'flex-start', gap: 10, boxShadow: '0 6px 22px rgba(0,0,0,.35)' }}>
|
||||
<motion.div animate={{ scale: [1, 1.08, 1] }} transition={{ duration: 1.4, repeat: Infinity }}
|
||||
style={{ width: 32, height: 32, borderRadius: 9, background: T.warn, display: 'flex', alignItems: 'center', justifyContent: 'center', flexShrink: 0 }}>
|
||||
<IconPin size={17} style={{ color: '#fff' }} />
|
||||
</motion.div>
|
||||
<div style={{ flex: 1, fontSize: 12, lineHeight: 1.45 }}>
|
||||
<strong style={{ color: T.text, display: 'block', marginBottom: 1 }}>Jack left Park</strong>
|
||||
<span style={{ color: T.text2 }}>202 Meadow Rd · 2:47 PM</span>
|
||||
</div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function DetailContent({ tapped }: { tapped: boolean }) {
|
||||
return (
|
||||
<motion.div initial={{ opacity: 0, x: 14 }} animate={{ opacity: 1, x: 0 }} transition={{ ease: EASE_OUT }} style={{ padding: '52px 13px 0' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 14 }}>
|
||||
<span style={{ fontSize: 18, color: T.muted }}>‹</span>
|
||||
<span style={{ fontSize: 15, fontWeight: 600, color: T.text }}>Alert details</span>
|
||||
</div>
|
||||
|
||||
<div style={{ background: T.warnSoft, borderRadius: 14, padding: '16px 14px', textAlign: 'center', marginBottom: 12 }}>
|
||||
<div style={{ width: 48, height: 48, borderRadius: 13, background: T.warn, display: 'flex', alignItems: 'center', justifyContent: 'center', margin: '0 auto 10px' }}>
|
||||
<IconPin size={24} style={{ color: '#fff' }} />
|
||||
</div>
|
||||
<div style={{ fontSize: 14, fontWeight: 700, color: T.text }}>Jack left Park</div>
|
||||
<div style={{ fontSize: 11, color: T.warn, marginTop: 3 }}>2:47 PM · 0.4 mi from zone centre</div>
|
||||
</div>
|
||||
|
||||
<div style={{ background: T.surface2, border: `1px solid ${T.border}`, borderRadius: 14, padding: '4px 14px', marginBottom: 12 }}>
|
||||
{[
|
||||
'Left the Park safe-zone boundary',
|
||||
'Live location updating every 30 seconds',
|
||||
'You’ll be notified again if he returns',
|
||||
].map((line, i) => (
|
||||
<motion.div key={line} initial={{ opacity: 0, x: -6 }} animate={{ opacity: 1, x: 0 }} transition={{ delay: 0.15 + i * 0.1 }}
|
||||
style={{ display: 'flex', alignItems: 'flex-start', gap: 9, padding: '9px 0', borderTop: i === 0 ? 'none' : `1px solid ${T.border}`, fontSize: 11.5, color: T.text2, lineHeight: 1.4 }}>
|
||||
<span style={{ width: 5, height: 5, borderRadius: '50%', background: T.warn, marginTop: 5, flexShrink: 0 }} />{line}
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
|
||||
<motion.div animate={tapped ? { scale: [1, 0.96, 1] } : {}} transition={{ duration: 0.4 }}
|
||||
style={{ fontSize: 13, fontWeight: 600, borderRadius: 12, padding: '11px 14px', border: 'none', background: T.warn, color: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 7, boxShadow: `0 6px 20px ${T.warn}55` }}>
|
||||
💬 Message Jack
|
||||
</motion.div>
|
||||
<div style={{ fontSize: 13, fontWeight: 600, borderRadius: 12, padding: '11px 14px', border: `1px solid ${T.border}`, color: T.text2, display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 7 }}>
|
||||
📍 View live location
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
)
|
||||
}
|
||||
|
||||
function ResolutionContent() {
|
||||
return (
|
||||
<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} style={{ paddingTop: 58, padding: '58px 13px 0' }}>
|
||||
<motion.div initial={{ scale: 0.94 }} animate={{ scale: 1 }} transition={SPRING}
|
||||
style={{ background: T.successSoft, borderRadius: 16, padding: '20px 14px', textAlign: 'center', marginBottom: 12 }}>
|
||||
<motion.div initial={{ scale: 0, rotate: -20 }} animate={{ scale: 1, rotate: 0 }} transition={{ ...SPRING, delay: 0.1 }}
|
||||
style={{ width: 54, height: 54, borderRadius: '50%', background: T.success, display: 'flex', alignItems: 'center', justifyContent: 'center', margin: '0 auto 12px' }}>
|
||||
<IconCheck size={26} style={{ color: '#fff' }} />
|
||||
</motion.div>
|
||||
<div style={{ fontSize: 15, fontWeight: 700, color: T.text }}>Message sent</div>
|
||||
<div style={{ fontSize: 11.5, color: T.success, marginTop: 4 }}>Jack confirmed he’s walking home</div>
|
||||
</motion.div>
|
||||
|
||||
<motion.div initial={{ opacity: 0, y: 6 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: 0.2 }}
|
||||
style={{ background: T.surface2, border: `1px solid ${T.border}`, borderRadius: 14, padding: '12px 14px', fontSize: 12, color: T.text2, display: 'flex', alignItems: 'center', gap: 9 }}>
|
||||
<span style={{ color: T.success }}>›</span>Jack · 🟢 will re-enter Home zone in 8 min
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
)
|
||||
}
|
||||
|
||||
function LocationPhone({ elapsed, phase }: { elapsed: number; phase: number }) {
|
||||
const tapped = elapsed >= PHASES.p4 + 2600
|
||||
return (
|
||||
<div style={{
|
||||
width: 275, height: 600, flexShrink: 0, position: 'relative',
|
||||
borderRadius: 50, padding: 4,
|
||||
background: 'linear-gradient(150deg, #2c3a42 0%, #0c1418 45%, #1a262d 100%)',
|
||||
boxShadow: `0 50px 100px rgba(0,0,0,.75), 0 8px 30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06)`,
|
||||
}}>
|
||||
<div style={{ width: '100%', height: '100%', borderRadius: 46, overflow: 'hidden', position: 'relative', background: T.bg, backgroundImage: T.bgGrad, boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.6)' }}>
|
||||
{phase <= 4 && <MapScene elapsed={elapsed} phase={phase} />}
|
||||
{phase === 5 && <div style={{ position: 'absolute', inset: 0, overflowY: 'auto' }}><DetailContent tapped={tapped} /></div>}
|
||||
{phase >= 6 && phase < 7 && <div style={{ position: 'absolute', inset: 0, overflowY: 'auto' }}><ResolutionContent /></div>}
|
||||
|
||||
{/* status bar */}
|
||||
<div style={{ position: 'absolute', top: 0, left: 0, right: 0, display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '16px 26px 8px', fontSize: 11, color: T.text, fontWeight: 600, zIndex: 20 }}>
|
||||
<span>9:41</span><span style={{ fontSize: 10, color: T.muted }}>5G ▲ 100%</span>
|
||||
</div>
|
||||
{/* dynamic island */}
|
||||
<div style={{ position: 'absolute', top: 12, left: '50%', transform: 'translateX(-50%)', width: 92, height: 26, borderRadius: 14, background: '#000', zIndex: 30 }} />
|
||||
|
||||
{phase <= 4 && (
|
||||
<div style={{ position: 'absolute', left: 0, right: 0, bottom: 0, height: 58, background: 'rgba(10,72,86,.72)', backdropFilter: 'blur(10px)', borderTop: `1px solid ${T.border}`, display: 'flex', alignItems: 'center', justifyContent: 'space-around', paddingBottom: 6, zIndex: 20 }}>
|
||||
{TABS.map((t, i) => (
|
||||
<div key={t.label} style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 2, fontSize: 9, color: i === 2 ? T.accent : T.dim }}>
|
||||
<t.Icon size={18} style={{ color: i === 2 ? T.accent : T.dim }} />{t.label}
|
||||
</div>
|
||||
))}
|
||||
{phase === 1 && (
|
||||
<motion.div initial={{ scale: 0, opacity: 0 }} animate={{ scale: 1, opacity: 1 }} transition={{ delay: 2.6, ...SPRING }}
|
||||
style={{ position: 'absolute', right: 14, bottom: 70, width: 40, height: 40, borderRadius: '50%', background: T.accent, display: 'flex', alignItems: 'center', justifyContent: 'center', boxShadow: `0 8px 20px ${T.accent}66` }}>
|
||||
<IconPlus size={18} style={{ color: '#fff' }} />
|
||||
</motion.div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{phase >= 7 && <EndCard />}
|
||||
|
||||
<div style={{ position: 'absolute', inset: 0, borderRadius: 46, pointerEvents: 'none', background: 'linear-gradient(135deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 32%)', zIndex: 40 }} />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
// ── Cinematic player ─────────────────────────────────────────────────────────
|
||||
export function LocationCinematic({ autoPlay = false, chrome = true, bare = false }: {
|
||||
autoPlay?: boolean; chrome?: boolean; bare?: boolean
|
||||
}) {
|
||||
const [elapsed, setElapsed] = useState(0)
|
||||
const [started, setStarted] = useState(false)
|
||||
const [muted, setMuted] = useState(false)
|
||||
const rafRef = useRef(0)
|
||||
const t0Ref = useRef(0)
|
||||
const spokenIdx = useRef(0)
|
||||
|
||||
const phase = phaseOf(elapsed)
|
||||
const cancelSpeech = () => { try { window.speechSynthesis && window.speechSynthesis.cancel() } catch { /* noop */ } }
|
||||
|
||||
function start() {
|
||||
setStarted(true)
|
||||
t0Ref.current = performance.now() - elapsed
|
||||
const tick = () => {
|
||||
const now = performance.now() - t0Ref.current
|
||||
setElapsed(now)
|
||||
if (now < PHASES.total) rafRef.current = requestAnimationFrame(tick)
|
||||
else setStarted(false)
|
||||
}
|
||||
rafRef.current = requestAnimationFrame(tick)
|
||||
}
|
||||
function pause() { setStarted(false); cancelAnimationFrame(rafRef.current); cancelSpeech() }
|
||||
|
||||
useEffect(() => {
|
||||
if (!autoPlay) return
|
||||
const id = setTimeout(() => start(), 450)
|
||||
return () => clearTimeout(id)
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [])
|
||||
|
||||
useEffect(() => () => { cancelAnimationFrame(rafRef.current); cancelSpeech() }, [])
|
||||
|
||||
useEffect(() => {
|
||||
if (muted) cancelSpeech()
|
||||
}, [muted])
|
||||
|
||||
// Voiceover — fires each cue once elapsed crosses its `at` threshold
|
||||
useEffect(() => {
|
||||
if (!started || muted) return
|
||||
if (spokenIdx.current >= VO_CUES.length) return
|
||||
const cue = VO_CUES[spokenIdx.current]
|
||||
if (elapsed < cue.at) return
|
||||
spokenIdx.current += 1
|
||||
const synth = window.speechSynthesis
|
||||
if (!synth) return
|
||||
|
||||
const speakNow = () => {
|
||||
synth.cancel()
|
||||
const u = new SpeechSynthesisUtterance(cue.text)
|
||||
u.lang = 'en-GB'; u.rate = 0.82; u.pitch = 0.84; u.volume = 0.75
|
||||
u.onerror = () => {}
|
||||
const vs = synth.getVoices()
|
||||
const v = vs.find((x) => /en-GB/i.test(x.lang) && /natural|neural|online/i.test(x.name) && /libby|sonia|hazel|serena/i.test(x.name))
|
||||
|| vs.find((x) => /en-GB/i.test(x.lang) && /natural|neural|online/i.test(x.name))
|
||||
|| vs.find((x) => /en-GB/i.test(x.lang) && /libby|sonia|hazel|serena/i.test(x.name))
|
||||
|| vs.find((x) => /en-GB/i.test(x.lang) && /female|google uk english female|samantha/i.test(x.name))
|
||||
|| vs.find((x) => /en-GB/i.test(x.lang))
|
||||
|| vs.find((x) => /^en/i.test(x.lang))
|
||||
if (v) u.voice = v
|
||||
synth.speak(u)
|
||||
}
|
||||
|
||||
if (synth.getVoices().length === 0) {
|
||||
const onReady = () => { synth.removeEventListener('voiceschanged', onReady); speakNow() }
|
||||
synth.addEventListener('voiceschanged', onReady)
|
||||
} else {
|
||||
speakNow()
|
||||
}
|
||||
}, [elapsed, started, muted])
|
||||
|
||||
const curVo = VO_CUES.slice().reverse().find((c) => elapsed >= c.at)
|
||||
|
||||
return (
|
||||
<div className="bd-demo-root" style={{
|
||||
position: 'absolute', inset: 0, overflow: 'hidden',
|
||||
background: bare ? 'transparent' : 'radial-gradient(130% 90% at 50% 0%, #075466 0%, #013B49 38%, #021b22 72%, #0a1a22 100%)',
|
||||
fontFamily: "'Ubuntu', -apple-system, system-ui, sans-serif", WebkitFontSmoothing: 'antialiased',
|
||||
display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center',
|
||||
}}>
|
||||
{!bare && (
|
||||
<div style={{ position: 'absolute', inset: 0, pointerEvents: 'none', background: 'radial-gradient(120% 80% at 50% 45%, transparent 50%, rgba(0,0,0,.5) 100%)' }} />
|
||||
)}
|
||||
|
||||
{chrome && (
|
||||
<div style={{ position: 'absolute', top: 20, left: 24, display: 'flex', alignItems: 'center', gap: 8, zIndex: 50 }}>
|
||||
<span style={{ fontSize: 9, fontWeight: 700, letterSpacing: '1.5px', textTransform: 'uppercase', color: T.accent }}>SDK · LOCATION</span>
|
||||
<span style={{ width: 14, height: 1, background: 'rgba(255,255,255,.2)' }} />
|
||||
<span style={{ fontSize: 11, color: 'rgba(255,255,255,.65)' }}>{PHASE_LABEL[phase]}</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{started && chrome && (
|
||||
<div style={{ position: 'absolute', top: 18, right: 22, display: 'flex', alignItems: 'center', gap: 6, background: 'rgba(0,0,0,.5)', border: '1px solid rgba(255,255,255,.1)', borderRadius: 100, padding: '6px 12px', zIndex: 60 }}>
|
||||
<motion.span animate={{ opacity: [1, 0, 1] }} transition={{ duration: 1.2, repeat: Infinity }} style={{ width: 8, height: 8, borderRadius: '50%', background: '#ef4444', display: 'inline-block' }} />
|
||||
<span style={{ fontSize: 10, fontWeight: 700, color: '#fff' }}>REC</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div style={{ flex: 1, minHeight: 0, display: 'flex', alignItems: 'center', justifyContent: 'center', zIndex: 1, padding: '8px 0' }}>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 14 }}>
|
||||
<motion.div style={{ perspective: 1300 }}>
|
||||
<motion.div animate={{ rotateY: -3, rotateX: 2 }} transition={{ duration: 1.1, ease: EASE_OUT }} style={{ transformStyle: 'preserve-3d' }}>
|
||||
<motion.div animate={{ y: [0, -7, 0] }} transition={{ duration: 5, repeat: Infinity, ease: 'easeInOut' }}
|
||||
onClick={() => (started ? pause() : start())}
|
||||
style={{ position: 'relative', width: 275 * PHONE_SCALE, height: 600 * PHONE_SCALE, cursor: 'pointer' }}>
|
||||
<div style={{ position: 'absolute', inset: '8% 14%', borderRadius: '50%', background: T.accent, opacity: 0.16, filter: 'blur(55px)', zIndex: 0 }} />
|
||||
<div style={{ transform: `scale(${PHONE_SCALE})`, transformOrigin: 'top left' }}>
|
||||
<LocationPhone elapsed={elapsed} phase={phase} />
|
||||
</div>
|
||||
<motion.button whileTap={{ scale: 0.92 }}
|
||||
onClick={(e) => { e.stopPropagation(); setMuted((m) => !m) }}
|
||||
title={muted ? 'Unmute' : 'Mute'}
|
||||
style={{
|
||||
position: 'absolute', top: 16, right: 16, zIndex: 55,
|
||||
width: 32, height: 32, borderRadius: '50%',
|
||||
background: 'rgba(0,0,0,.45)', backdropFilter: 'blur(10px)',
|
||||
border: `1px solid ${muted ? 'rgba(255,255,255,.16)' : T.accentGlow}`,
|
||||
color: muted ? 'rgba(255,255,255,.7)' : T.accent, fontSize: 13,
|
||||
cursor: 'pointer', fontFamily: 'inherit',
|
||||
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
||||
}}>
|
||||
{muted ? '🔇' : '🔊'}
|
||||
</motion.button>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
|
||||
<div style={{ position: 'relative', width: 320, maxWidth: '86vw', height: 46 }}>
|
||||
<AnimatePresence mode="wait">
|
||||
<motion.div key={phase} initial={{ opacity: 0, y: 6 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -4 }} transition={{ duration: 0.5, ease: EASE_OUT }}
|
||||
style={{ position: 'absolute', inset: 0, display: 'flex', alignItems: 'flex-start', justifyContent: 'center', textAlign: 'center' }}>
|
||||
<span style={{ fontSize: 14.5, color: 'rgba(255,255,255,.9)', lineHeight: 1.5 }}>{curVo?.text}</span>
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
// Default export: full-screen single player (mirrors /threat-demo/:id)
|
||||
export default function LocationDemo() {
|
||||
const navigate = useNavigate()
|
||||
return (
|
||||
<div style={{ position: 'relative', height: '100vh' }}>
|
||||
<button
|
||||
onClick={() => navigate('/')}
|
||||
style={{
|
||||
position: 'fixed', top: 18, left: 24, zIndex: 80,
|
||||
display: 'inline-flex', alignItems: 'center', gap: 7,
|
||||
fontFamily: "'Ubuntu', system-ui, sans-serif", fontSize: 13, fontWeight: 500,
|
||||
color: 'rgba(255,255,255,.75)', background: 'rgba(0,0,0,.45)', backdropFilter: 'blur(10px)',
|
||||
border: '1px solid rgba(255,255,255,.12)', borderRadius: 100, padding: '7px 14px', cursor: 'pointer',
|
||||
}}>
|
||||
← Back to site
|
||||
</button>
|
||||
<LocationCinematic />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -1,12 +1,34 @@
|
||||
import { useState } from 'react'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
import { AnimatePresence, motion } from 'framer-motion'
|
||||
import { THREAT_SCENARIOS } from './scenarios'
|
||||
import { THREAT_SCENARIOS, type ThreatScenario } from './scenarios'
|
||||
import { ThreatCinematic } from './ThreatDemo'
|
||||
import { LocationCinematic } from '../location/LocationDemo'
|
||||
import '../demo.css'
|
||||
|
||||
const ACCENT = '#3BB586'
|
||||
|
||||
// The slider mixes the threat-detection scenarios with the location/geofencing
|
||||
// demo, which has its own timeline and player rather than a ThreatScenario shape.
|
||||
type DemoSlide =
|
||||
| { kind: 'threat'; scenario: ThreatScenario }
|
||||
| { kind: 'location' }
|
||||
|
||||
const DEMO_SLIDES: DemoSlide[] = [
|
||||
...THREAT_SCENARIOS.map((scenario) => ({ kind: 'threat' as const, scenario })),
|
||||
{ kind: 'location' },
|
||||
]
|
||||
|
||||
function slideId(s: DemoSlide): string {
|
||||
return s.kind === 'threat' ? s.scenario.id : 'location'
|
||||
}
|
||||
function slideTitle(s: DemoSlide): string {
|
||||
return s.kind === 'threat' ? s.scenario.title : 'Family Safe Zones'
|
||||
}
|
||||
function slideProduct(s: DemoSlide): string {
|
||||
return s.kind === 'threat' ? s.scenario.product : 'Mobile SDK'
|
||||
}
|
||||
|
||||
// Isolated so useNavigate() is only ever invoked when this is actually mounted
|
||||
// under a <Router> — the embedded (no-router) instance never renders it.
|
||||
function BackToSiteButton() {
|
||||
@@ -19,8 +41,8 @@ function BackToSiteButton() {
|
||||
export default function ThreatDemosSlider({ embedded = false }: { embedded?: boolean } = {}) {
|
||||
const [idx, setIdx] = useState(0)
|
||||
const [dir, setDir] = useState(1)
|
||||
const scenario = THREAT_SCENARIOS[idx]
|
||||
const n = THREAT_SCENARIOS.length
|
||||
const slide = DEMO_SLIDES[idx]
|
||||
const n = DEMO_SLIDES.length
|
||||
|
||||
const go = (next: number) => {
|
||||
setDir(next > idx ? 1 : -1)
|
||||
@@ -35,8 +57,8 @@ export default function ThreatDemosSlider({ embedded = false }: { embedded?: boo
|
||||
<div style={{ flexShrink: 0, height: 60, display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: '0 20px', borderBottom: '1px solid rgba(255,255,255,.06)', background: 'rgba(1,14,20,.7)', backdropFilter: 'blur(10px)', zIndex: 80 }}>
|
||||
<BackToSiteButton />
|
||||
<div style={{ textAlign: 'center', color: '#e8f4f3', minWidth: 0 }}>
|
||||
<div style={{ fontSize: 14, fontWeight: 600, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{scenario.title}</div>
|
||||
<div style={{ fontSize: 10.5, color: '#8aa5ab' }}>{idx + 1} / {n} · {scenario.product}</div>
|
||||
<div style={{ fontSize: 14, fontWeight: 600, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{slideTitle(slide)}</div>
|
||||
<div style={{ fontSize: 10.5, color: '#8aa5ab' }}>{idx + 1} / {n} · {slideProduct(slide)}</div>
|
||||
</div>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 6, background: 'rgba(0,0,0,.4)', border: '1px solid rgba(255,255,255,.1)', borderRadius: 100, padding: '5px 11px', flexShrink: 0 }}>
|
||||
<motion.span animate={{ opacity: [1, 0, 1] }} transition={{ duration: 1.2, repeat: Infinity }} style={{ width: 7, height: 7, borderRadius: '50%', background: '#ef4444', display: 'inline-block' }} />
|
||||
@@ -49,14 +71,16 @@ export default function ThreatDemosSlider({ embedded = false }: { embedded?: boo
|
||||
<div style={{ position: 'relative', flex: 1, minHeight: 0, overflow: 'hidden' }}>
|
||||
<AnimatePresence initial={false} custom={dir} mode="popLayout">
|
||||
<motion.div
|
||||
key={scenario.id}
|
||||
key={slideId(slide)}
|
||||
custom={dir}
|
||||
initial={{ x: dir > 0 ? '100%' : '-100%' }}
|
||||
animate={{ x: 0 }}
|
||||
exit={{ x: dir > 0 ? '-100%' : '100%' }}
|
||||
transition={{ type: 'spring', stiffness: 260, damping: 30 }}
|
||||
style={{ position: 'absolute', inset: 0 }}>
|
||||
<ThreatCinematic scenario={scenario} autoPlay={!embedded} chrome={false} />
|
||||
{slide.kind === 'threat'
|
||||
? <ThreatCinematic scenario={slide.scenario} autoPlay={!embedded} chrome={false} />
|
||||
: <LocationCinematic autoPlay={!embedded} chrome={false} />}
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
|
||||
@@ -67,8 +91,8 @@ export default function ThreatDemosSlider({ embedded = false }: { embedded?: boo
|
||||
|
||||
{/* ── Bottom: scenario tabs (reserved) — moves above the stage on mobile via .bd-demo-tabs media query ── */}
|
||||
<div className="bd-demo-tabs" style={{ flexShrink: 0, minHeight: 56, display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 8, flexWrap: 'wrap', padding: '10px 16px', borderTop: '1px solid rgba(255,255,255,.06)', background: 'rgba(1,14,20,.7)', backdropFilter: 'blur(10px)', zIndex: 80 }}>
|
||||
{THREAT_SCENARIOS.map((s, i) => (
|
||||
<button key={s.id} onClick={() => go(i)}
|
||||
{DEMO_SLIDES.map((s, i) => (
|
||||
<button key={slideId(s)} onClick={() => go(i)}
|
||||
style={{
|
||||
fontFamily: 'inherit', fontSize: 11, fontWeight: 500, cursor: 'pointer',
|
||||
padding: '6px 12px', borderRadius: 100,
|
||||
@@ -76,7 +100,7 @@ export default function ThreatDemosSlider({ embedded = false }: { embedded?: boo
|
||||
background: i === idx ? 'rgba(59,181,134,0.18)' : 'rgba(255,255,255,.03)',
|
||||
color: i === idx ? ACCENT : 'rgba(255,255,255,.6)', whiteSpace: 'nowrap',
|
||||
}}>
|
||||
{s.title}
|
||||
{slideTitle(s)}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -173,7 +173,7 @@ export const THREAT_SCENARIOS: ThreatScenario[] = [
|
||||
tag: 'dns',
|
||||
tagLabel: 'DNS · BLOCK',
|
||||
title: 'Malicious DNS Block',
|
||||
blurb: 'Request to a malicious domain blocked. BlackDice Angel risk stays low at 45 — prevention in action.',
|
||||
blurb: 'Request to a malicious domain blocked. BlackDice Angel risk stays low at 45 – prevention in action.',
|
||||
icon: '🌐',
|
||||
context: 'DNS Shield active',
|
||||
initialScore: 35,
|
||||
@@ -183,7 +183,7 @@ export const THREAT_SCENARIOS: ThreatScenario[] = [
|
||||
threatBody: 'Blocked request to phishing-domain.com',
|
||||
detailHeadline: 'Threat blocked before it could load',
|
||||
detailLines: [
|
||||
'phishing-domain.com — known malicious domain',
|
||||
'phishing-domain.com – known malicious domain',
|
||||
'Request intercepted at the DNS layer',
|
||||
'12 malicious domains blocked this week',
|
||||
],
|
||||
@@ -197,7 +197,7 @@ export const THREAT_SCENARIOS: ThreatScenario[] = [
|
||||
voCues: [
|
||||
{ at: 300, text: 'Our DNS Shield filters every domain request.' },
|
||||
{ at: 4300, text: 'A device tries to reach a known malicious domain.' },
|
||||
{ at: 9400, text: 'We block it instantly — our risk score stays low at 45.' },
|
||||
{ at: 9400, text: 'We block it instantly – our risk score stays low at 45.' },
|
||||
{ at: 15500, text: 'The threat is stopped before any damage, and logged in the dashboard.' },
|
||||
{ at: 30300, text: 'We deliver prevention that just works. Book a demo today.' },
|
||||
],
|
||||
@@ -233,7 +233,7 @@ export const THREAT_SCENARIOS: ThreatScenario[] = [
|
||||
statusChange: 'PhotoEditor · request reviewed',
|
||||
voCues: [
|
||||
{ at: 300, text: 'We review every app your child wants to install.' },
|
||||
{ at: 4300, text: 'PhotoEditor asks for more than it needs — contacts and location.' },
|
||||
{ at: 4300, text: 'PhotoEditor asks for more than it needs – contacts and location.' },
|
||||
{ at: 9400, text: 'We flag the risk and raise our BlackDice Angel score to 66.' },
|
||||
{ at: 15500, text: 'The parent can review the permissions and decline the install.' },
|
||||
{ at: 30300, text: 'We make apps safer for younger users. Book a demo today.' },
|
||||
|
||||
@@ -11,6 +11,7 @@ const DemoScreen = React.lazy(() => import('./demo/DemoScreen'))
|
||||
const DemoVideoPage = React.lazy(() => import('./demo/DemoVideoPage'))
|
||||
const ThreatDemosSlider = React.lazy(() => import('./demo/threats/ThreatDemosSlider'))
|
||||
const ThreatDemoPlayerPage = React.lazy(() => import('./demo/threats/ThreatDemoPlayerPage'))
|
||||
const LocationDemo = React.lazy(() => import('./demo/location/LocationDemo'))
|
||||
const AdminApp = React.lazy(() => import('./cms/admin/AdminApp'))
|
||||
|
||||
function ArticleRoute() {
|
||||
@@ -26,6 +27,8 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||
{/* Threat-detection demo slider + per-scenario players */}
|
||||
<Route path="/threat-demos" element={<ThreatDemosSlider />} />
|
||||
<Route path="/threat-demo/:id" element={<ThreatDemoPlayerPage />} />
|
||||
{/* Location / geofencing demo — safe-zone creation + leave-zone alert */}
|
||||
<Route path="/location-demo" element={<LocationDemo />} />
|
||||
{/* Cinematic product video — its own page */}
|
||||
<Route path="/demo-video" element={<DemoVideoPage />} />
|
||||
{/* Full interactive demo player (Flows A–D, ?mode=video) */}
|
||||
|
||||
@@ -7,9 +7,9 @@ import './styles.css'
|
||||
import siteHtml from './siteMarkup.txt?raw'
|
||||
// Ported vanilla controller (navigation, modal, live feed, count-up).
|
||||
import { configureForms, initSite, setSiteNavigator, showPage, teardownSite } from './siteController'
|
||||
// Live threat-detection demos, embedded in the Mobile SDK hero (same slider
|
||||
// — all scenarios, autoplaying with tabs/arrows — used at /threat-demos).
|
||||
import ThreatDemosSlider from '../demo/threats/ThreatDemosSlider'
|
||||
// Guardian Mobile SDK explorer — the 9-tab interactive phone-demo widget
|
||||
// embedded in the Mobile SDK hero's #mobile-sdk-demo-mount.
|
||||
import MobileSdkExplorer from './demos/MobileSdkExplorer'
|
||||
import NewsGrid from './blog/NewsGrid'
|
||||
import ArticlePage from './blog/ArticlePage'
|
||||
import NotFoundPage from './NotFoundPage'
|
||||
@@ -184,7 +184,7 @@ export default function SiteApp({
|
||||
<>
|
||||
<div ref={wrapRef} dangerouslySetInnerHTML={{ __html: siteHtml }} />
|
||||
|
||||
{mounts['mobile-sdk-demo-mount'] && createPortal(<ThreatDemosSlider embedded />, mounts['mobile-sdk-demo-mount'])}
|
||||
{mounts['mobile-sdk-demo-mount'] && createPortal(<MobileSdkExplorer />, mounts['mobile-sdk-demo-mount'])}
|
||||
|
||||
{mounts['news-grid-mount'] && createPortal(<NewsGrid content={content} />, mounts['news-grid-mount'])}
|
||||
|
||||
|
||||
@@ -0,0 +1,317 @@
|
||||
import { useEffect, useRef } from 'react'
|
||||
import explorerHtml from './mobileSdkExplorer.html?raw'
|
||||
import './mobileSdkExplorer.css'
|
||||
|
||||
// ── Reel scripts — one per module tab, ported verbatim from mobile-sdk.html ──
|
||||
// `s` sets the .ap[data-stage] value (drives the CSS reveal system), `cap` is
|
||||
// the caption line, and the rest are small DOM ops the Reel engine below
|
||||
// applies at time `t` (ms) into the reel.
|
||||
const C = 326.73
|
||||
const off = (v: number) => C * (1 - v / 100)
|
||||
|
||||
type Step = {
|
||||
t: number
|
||||
s?: number
|
||||
cap?: string
|
||||
set?: [string, string][]
|
||||
add?: [string, string][]
|
||||
rm?: [string, string][]
|
||||
flash?: [string, string, number?][]
|
||||
num?: [string, number, number, number][]
|
||||
ring?: [string, number, number, number][]
|
||||
type?: [string, string, number][]
|
||||
}
|
||||
type Spec = { dur: number; steps: Step[] }
|
||||
|
||||
const SCRIPTS: Record<string, Spec> = {
|
||||
score: {
|
||||
dur: 7200,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'Guardian opens with the score from the last check – <b>81</b>.' },
|
||||
{ t: 800, s: 1, cap: 'Re-scanning all nine protection modules on device.', add: [['.js-ring', 'scanning']] },
|
||||
{ t: 2200, s: 2, cap: '<b>Device trust</b> – verified, patch level current.' },
|
||||
{ t: 3200, s: 3, cap: '<b>Apps & permissions</b> – no risky grants detected.' },
|
||||
{ t: 4200, s: 4, cap: '<b>Wi-Fi security</b> – BT-T5F97X assessed as low risk.' },
|
||||
{ t: 5000, s: 5, cap: 'Score recomputed and the delta shown: <b>81 → 93</b>.', rm: [['.js-ring', 'scanning']], num: [['.js-score', 81, 93, 900]], ring: [['.js-arc', 81, 93, 900]] },
|
||||
{ t: 6300, cap: 'Ranked remediation sits behind one tap – no dead ends.', flash: [['.js-improve', 'glow', 900]] },
|
||||
],
|
||||
},
|
||||
protection: {
|
||||
dur: 6800,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'The Protection tab covers the connection itself.' },
|
||||
{ t: 700, s: 1, cap: "DNS filter reports the day's blocks.", num: [['.js-n', 0, 40, 1100]] },
|
||||
{ t: 2500, s: 2, cap: 'Call screening – <b>no scam calls today</b>.' },
|
||||
{ t: 3700, s: 3, cap: 'SIM integrity – no carrier or slot change detected.' },
|
||||
{ t: 5000, cap: 'Any card taps through to its full timestamped event log.', flash: [['.js-sb', 'tap', 1300]] },
|
||||
],
|
||||
},
|
||||
dns: {
|
||||
dur: 8600,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: '285 blocked of 1,116 lookups so far today.' },
|
||||
{ t: 900, s: 1, cap: 'User taps a link in a WhatsApp group message.', set: [['.js-chip', 'Resolving…']], add: [['.js-chip', 'wait'], ['.js-chip', 'pulse']] },
|
||||
{ t: 2300, s: 2, cap: '<b>whtaspp-group.pages.dev</b> – typosquat, matched in 40 ms.', set: [['.js-chip', 'Blocked']], rm: [['.js-chip', 'wait'], ['.js-chip', 'pulse']] },
|
||||
{ t: 3100, s: 3, cap: 'Connection never opens. The block is logged and shown to the user.', add: [['.js-newrow', 'in'], ['.js-newrow', 'hot']], num: [['.js-blocked', 285, 288, 800], ['.js-req', 1116, 1119, 800]] },
|
||||
{ t: 5000, s: 4, cap: 'Counts refresh on demand.', flash: [['.js-refresh', 'press', 300]], rm: [['.js-newrow', 'hot']] },
|
||||
{ t: 6400, cap: 'Every verdict is also available to your fraud platform by webhook.' },
|
||||
],
|
||||
},
|
||||
calls: {
|
||||
dur: 9200,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'Home screen. An unknown number starts ringing.' },
|
||||
{ t: 700, s: 1, cap: 'Inbound call from <b>0123456789</b> – reputation lookup fires.', add: [['.js-verdict', 'pulse']] },
|
||||
{ t: 2100, s: 2, cap: 'Verdict returned <i>before answer</i>: likely scam, confidence 91.', set: [['.js-verdict', 'Likely scam · 91']], add: [['.js-verdict', 'bad']], rm: [['.js-verdict', 'pulse']] },
|
||||
{ t: 3700, s: 3, cap: 'Call ends. Guardian asks how it went.' },
|
||||
{ t: 5300, s: 4, cap: 'One tap: the user labels it <b>Scam</b>.', flash: [['.js-scam', 'hit', 1400]] },
|
||||
{ t: 6500, s: 5, cap: 'Report accepted and folded into the shared reputation graph.' },
|
||||
{ t: 7700, s: 6, cap: 'Detection sharpens for every other subscriber on your network.' },
|
||||
],
|
||||
},
|
||||
sim: {
|
||||
dur: 6600,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'Screen opens and reads phone state.', add: [['.js-simh', 'pulse']] },
|
||||
{ t: 1500, s: 1, cap: 'Read completes – <b>no SIM changes detected</b>.', set: [['.js-simh', 'No SIM changes detected'], ['.js-simp', 'No SIM changes detected.']], rm: [['.js-simh', 'pulse']], flash: [['.js-simh', 'swap', 600]] },
|
||||
{ t: 2500, s: 2, cap: 'Carrier recorded: <b>EE</b>.' },
|
||||
{ t: 3300, s: 3, cap: 'Slot configuration: single SIM.' },
|
||||
{ t: 4100, s: 4, cap: 'Change history: none on record.' },
|
||||
{ t: 5200, cap: 'Had this changed, the alert would go to the recovery email – not this screen.' },
|
||||
],
|
||||
},
|
||||
perms: {
|
||||
dur: 8400,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'User taps <b>Scan again</b>.', flash: [['.js-scan', 'press', 300]] },
|
||||
{ t: 900, s: 1, cap: 'Scanning installed apps for the grants fraudsters abuse.' },
|
||||
{ t: 2400, s: 2, cap: '<b>Microphone</b> – high risk. 1 app holds it, 1 to review.' },
|
||||
{ t: 3400, s: 3, cap: '<b>Phone state</b> – medium. Can read your number and call state.' },
|
||||
{ t: 4400, s: 4, cap: '<b>Contacts</b> – medium, and 1 app still to review.' },
|
||||
{ t: 5400, s: 5, cap: '<b>Post notifications</b> – low risk, already accepted.' },
|
||||
{ t: 6600, cap: 'Ranked by how fraud actually works, not alphabetically.' },
|
||||
],
|
||||
},
|
||||
zones: {
|
||||
dur: 11200,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'Empty map. No zones configured yet.' },
|
||||
{ t: 800, s: 1, cap: "User drops a pin and draws the boundary – <b>Jakarta Town Hall</b>." },
|
||||
{ t: 2000, s: 2, cap: 'Radius set to <b>200 m</b>. The geofence is armed.', num: [['.js-rad', 0, 200, 700]] },
|
||||
{ t: 3300, s: 3, cap: "Zone saved. It now appears in the user's list." },
|
||||
{ t: 4700, s: 4, cap: 'They arrive – an enter event is logged, timestamped.', add: [['.js-noev', 'gone']] },
|
||||
{ t: 6800, s: 5, cap: 'Later, they cross back out of the boundary.' },
|
||||
{ t: 8300, s: 6, cap: 'Guardian notifies the parent the moment they leave the zone.' },
|
||||
{ t: 10100, cap: 'The same signal drives impossible-travel checks for your fraud engine.' },
|
||||
],
|
||||
},
|
||||
identity: {
|
||||
dur: 7400,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'Both identity checks are long-running and start on open.', add: [['.js-locb', 'pulse'], ['.js-idb', 'pulse']] },
|
||||
{ t: 1100, s: 1, cap: 'Location analysis resolves – <b>no unusual travel detected</b>.', set: [['.js-locb', 'Good'], ['.js-locp', 'No unusual travel detected.']], add: [['.js-locb', 'good']], rm: [['.js-locb', 'pulse'], ['.js-locb', 'wait']], flash: [['.js-locb', 'swap', 600]] },
|
||||
{ t: 3000, s: 2, cap: 'Breach monitoring resolves – <b>1 monitored identity, no breaches</b>.', set: [['.js-idb', 'Good'], ['.js-idp', '1 monitored identity – no breaches found.']], add: [['.js-idb', 'good']], rm: [['.js-idb', 'pulse'], ['.js-idb', 'wait']], flash: [['.js-idb', 'swap', 600]] },
|
||||
{ t: 4700, cap: 'Re-checked continuously as new breach corpora land.' },
|
||||
{ t: 6000, cap: 'A positive finding escalates by webhook – not just an on-device toast.' },
|
||||
],
|
||||
},
|
||||
settings: {
|
||||
dur: 9400,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'Every module is opt-in and starts off.' },
|
||||
{ t: 800, s: 1, cap: '<b>Safe browsing</b> on – DNS-level phishing protection.', add: [['.js-sw1', 'on']] },
|
||||
{ t: 2000, s: 2, cap: '<b>Scam call warnings</b> on.', add: [['.js-sw2', 'on']] },
|
||||
{ t: 3200, s: 3, cap: '<b>SIM & carrier</b> on – and the reason for phone-state access is stated.', add: [['.js-sw3', 'on']] },
|
||||
{ t: 4500, s: 4, cap: "A stolen phone can't warn you on its own screen – so alerts go out-of-band.", type: [['.js-email', 'jason.reid@icloud.com', 1500]], add: [['.js-email', 'filled']] },
|
||||
{ t: 6800, s: 5, cap: 'Address verified by code. That channel now carries SIM and location alerts.', flash: [['.js-send', 'press', 300]] },
|
||||
{ t: 7900, cap: 'Consent is revocable per module, and every string is localisable.' },
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
// Order mirrors the panel/tile order in mobileSdkExplorer.html — drives
|
||||
// keyboard left/right navigation across the module grid.
|
||||
const MODULES: { key: string }[] = [
|
||||
{ key: 'score' },
|
||||
{ key: 'protection' },
|
||||
{ key: 'dns' },
|
||||
{ key: 'calls' },
|
||||
{ key: 'sim' },
|
||||
{ key: 'perms' },
|
||||
{ key: 'zones' },
|
||||
{ key: 'identity' },
|
||||
{ key: 'settings' },
|
||||
]
|
||||
|
||||
class Reel {
|
||||
root: ParentNode
|
||||
p: HTMLElement
|
||||
ap: HTMLElement
|
||||
spec: Spec
|
||||
cap: HTMLElement
|
||||
pp: HTMLButtonElement
|
||||
applied: [Element, string][] = []
|
||||
timers: ReturnType<typeof setTimeout>[] = []
|
||||
tweens: number[] = []
|
||||
base = new Map<Element, string>()
|
||||
t = 0
|
||||
i = 0
|
||||
playing = false
|
||||
raf = 0
|
||||
reduced: boolean
|
||||
|
||||
constructor(panel: HTMLElement, spec: Spec, reduced: boolean) {
|
||||
this.root = panel
|
||||
this.p = panel
|
||||
this.ap = panel.querySelector('.ap')!
|
||||
this.spec = spec
|
||||
this.reduced = reduced
|
||||
this.cap = panel.querySelector('.reel-cap')!
|
||||
this.pp = panel.querySelector('.js-pp')!
|
||||
this.pp.onclick = () => this.toggle()
|
||||
this.reset()
|
||||
}
|
||||
q(sel: string) { return this.ap.querySelector<HTMLElement>(sel) }
|
||||
remember(elx: Element) { if (!this.base.has(elx)) this.base.set(elx, elx.textContent || '') }
|
||||
clear() {
|
||||
cancelAnimationFrame(this.raf)
|
||||
this.timers.forEach(clearTimeout); this.timers = []
|
||||
this.tweens.forEach((id) => cancelAnimationFrame(id)); this.tweens = []
|
||||
this.applied.forEach(([elx, c]) => elx.classList.remove(c)); this.applied = []
|
||||
this.base.forEach((txt, elx) => { elx.textContent = txt })
|
||||
}
|
||||
reset() {
|
||||
this.clear(); this.t = 0; this.i = 0; this.playing = false
|
||||
this.pp.textContent = '▶'
|
||||
this.cap.innerHTML = this.spec.steps[0]?.cap || ''
|
||||
this.stage(0)
|
||||
if (this.reduced) { this.seek(this.spec.dur - 1); this.pause() }
|
||||
}
|
||||
stage(n: number) {
|
||||
this.ap.dataset.stage = String(n)
|
||||
this.ap.querySelectorAll<HTMLElement>('[data-at]').forEach((elx) => elx.classList.toggle('in', n >= Number(elx.dataset.at)))
|
||||
}
|
||||
apply(st: Step) {
|
||||
if (st.s !== undefined) this.stage(st.s)
|
||||
if (st.cap) this.cap.innerHTML = st.cap
|
||||
;(st.set || []).forEach(([s, v]) => { const elx = this.q(s); if (elx) { this.remember(elx); elx.textContent = v } })
|
||||
;(st.add || []).forEach(([s, c]) => { const elx = this.q(s); if (elx) { elx.classList.add(c); this.applied.push([elx, c]) } })
|
||||
;(st.rm || []).forEach(([s, c]) => { const elx = this.q(s); if (elx) elx.classList.remove(c) })
|
||||
;(st.flash || []).forEach(([s, c, d]) => {
|
||||
const elx = this.q(s); if (!elx) return
|
||||
elx.classList.add(c); this.applied.push([elx, c])
|
||||
this.timers.push(setTimeout(() => elx.classList.remove(c), d || 300))
|
||||
})
|
||||
;(st.num || []).forEach(([s, a, b, d]) => { const elx = this.q(s); if (elx) { this.remember(elx); this.tween(a, b, d, (v) => { elx.textContent = String(Math.round(v)) }) } })
|
||||
;(st.ring || []).forEach(([s, a, b, d]) => { const elx = this.q(s); if (elx) this.tween(a, b, d, (v) => elx.setAttribute('stroke-dashoffset', off(v).toFixed(2))) })
|
||||
;(st.type || []).forEach(([s, txt, d]) => { const elx = this.q(s); if (elx) { this.remember(elx); this.tween(0, txt.length, d, (v) => { elx.textContent = txt.slice(0, Math.round(v)) }) } })
|
||||
}
|
||||
tween(a: number, b: number, d: number, fn: (v: number) => void) {
|
||||
const t0 = performance.now()
|
||||
const step = (now: number) => {
|
||||
const k = Math.min(1, (now - t0) / d), e = 1 - Math.pow(1 - k, 3)
|
||||
fn(a + (b - a) * e)
|
||||
if (k < 1) this.tweens.push(requestAnimationFrame(step))
|
||||
}
|
||||
this.tweens.push(requestAnimationFrame(step))
|
||||
}
|
||||
seek(ms: number) {
|
||||
this.clear(); this.t = ms; this.i = 0
|
||||
const steps = this.spec.steps
|
||||
let last: Step | null = null
|
||||
for (const st of steps) { if (st.t <= ms) { this.apply({ ...st, num: undefined, ring: undefined, type: undefined, flash: undefined }); last = st; this.i++ } }
|
||||
steps.filter((s) => s.t <= ms).forEach((st) => {
|
||||
;(st.num || []).forEach(([s, , b]) => { const elx = this.q(s); if (elx) { this.remember(elx); elx.textContent = String(b) } })
|
||||
;(st.ring || []).forEach(([s, , b]) => { const elx = this.q(s); if (elx) elx.setAttribute('stroke-dashoffset', off(b).toFixed(2)) })
|
||||
;(st.type || []).forEach(([s, txt]) => { const elx = this.q(s); if (elx) { this.remember(elx); elx.textContent = txt } })
|
||||
})
|
||||
if (last && last.cap) this.cap.innerHTML = last.cap
|
||||
}
|
||||
play() {
|
||||
if (this.playing) return
|
||||
if (this.t >= this.spec.dur) this.reset()
|
||||
this.playing = true; this.pp.textContent = '▮▮'
|
||||
let prev = performance.now()
|
||||
const loop = (now: number) => {
|
||||
if (!this.playing) return
|
||||
this.t += now - prev; prev = now
|
||||
const steps = this.spec.steps
|
||||
while (this.i < steps.length && steps[this.i].t <= this.t) { this.apply(steps[this.i]); this.i++ }
|
||||
if (this.t >= this.spec.dur) {
|
||||
this.playing = false; this.pp.textContent = '↻'
|
||||
this.timers.push(setTimeout(() => { this.reset(); this.play() }, 1100))
|
||||
return
|
||||
}
|
||||
this.raf = requestAnimationFrame(loop)
|
||||
}
|
||||
this.raf = requestAnimationFrame(loop)
|
||||
}
|
||||
pause() { this.playing = false; this.pp.textContent = '▶'; cancelAnimationFrame(this.raf) }
|
||||
toggle() { this.playing ? this.pause() : this.play() }
|
||||
destroy() { this.clear() }
|
||||
}
|
||||
|
||||
/** Guardian Mobile SDK "explorer" — nine tabbed phone-demo reels, ported
|
||||
* from the standalone mobile-sdk.html mockup and scoped to this container
|
||||
* so it can drop into any page without touching global DOM/CSS. */
|
||||
export default function MobileSdkExplorer() {
|
||||
const rootRef = useRef<HTMLDivElement>(null)
|
||||
|
||||
useEffect(() => {
|
||||
const root = rootRef.current
|
||||
if (!root) return
|
||||
|
||||
const reduced = matchMedia('(prefers-reduced-motion:reduce)').matches
|
||||
const reels: Record<string, Reel> = {}
|
||||
root.querySelectorAll<HTMLElement>('.panel').forEach((p) => {
|
||||
const k = p.dataset.p
|
||||
if (k && SCRIPTS[k]) reels[k] = new Reel(p, SCRIPTS[k], reduced)
|
||||
})
|
||||
|
||||
const panels = [...root.querySelectorAll<HTMLElement>('.panel')]
|
||||
const tiles = [...root.querySelectorAll<HTMLButtonElement>('.tab-tile')]
|
||||
let cur = 'score'
|
||||
function show(k: string) {
|
||||
const idx = MODULES.findIndex((m) => m.key === k)
|
||||
if (idx === -1) return
|
||||
panels.forEach((p) => p.classList.toggle('on', p.dataset.p === k))
|
||||
tiles.forEach((t) => t.classList.toggle('on', t.dataset.p === k))
|
||||
Object.entries(reels).forEach(([n, r]) => { if (n !== k) { r.pause(); r.reset() } })
|
||||
cur = k
|
||||
// Switching modules only stages the reel — playback waits for an
|
||||
// explicit tap on that reel's own play button.
|
||||
reels[k]?.reset()
|
||||
}
|
||||
show(cur)
|
||||
const onTileClick = (t: HTMLButtonElement) => () => { if (t.dataset.p) show(t.dataset.p) }
|
||||
tiles.forEach((t) => { t.onclick = onTileClick(t) })
|
||||
|
||||
function step(dir: 1 | -1) {
|
||||
const i = MODULES.findIndex((m) => m.key === cur)
|
||||
show(MODULES[(i + dir + MODULES.length) % MODULES.length].key)
|
||||
}
|
||||
const tabsEl = root.querySelector<HTMLElement>('#tabs')
|
||||
const onKeydown = (e: KeyboardEvent) => {
|
||||
if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft') return
|
||||
e.preventDefault()
|
||||
step(e.key === 'ArrowRight' ? 1 : -1)
|
||||
}
|
||||
tabsEl?.addEventListener('keydown', onKeydown)
|
||||
|
||||
// Never autoplay — only pause if the user scrolls away mid-playback.
|
||||
const io = new IntersectionObserver((es) => es.forEach((e) => {
|
||||
if (e.isIntersecting) return
|
||||
reels[cur]?.pause()
|
||||
}), { threshold: .12 })
|
||||
io.observe(root)
|
||||
|
||||
return () => {
|
||||
io.disconnect()
|
||||
tabsEl?.removeEventListener('keydown', onKeydown)
|
||||
tiles.forEach((t) => { t.onclick = null })
|
||||
Object.values(reels).forEach((r) => r.destroy())
|
||||
}
|
||||
}, [])
|
||||
|
||||
return <div ref={rootRef} className="bd-mse" dangerouslySetInnerHTML={{ __html: explorerHtml }} />
|
||||
}
|
||||
@@ -0,0 +1,310 @@
|
||||
/* Guardian Mobile SDK explorer — ported from the standalone mobile-sdk.html
|
||||
mockup. Everything is scoped under .bd-mse so it can drop into any page
|
||||
without touching global element styles or colliding with site CSS vars. */
|
||||
.bd-mse, .bd-mse * { box-sizing: border-box; }
|
||||
.bd-mse h3, .bd-mse h4, .bd-mse h5 { margin: 0; font-weight: 700; letter-spacing: -.5px; line-height: 1.18; }
|
||||
.bd-mse p, .bd-mse ul { margin: 0; padding: 0; }
|
||||
.bd-mse a { color: var(--mse-accent); text-decoration: none; }
|
||||
.bd-mse {
|
||||
--mse-accent: #3BB586; --mse-accent-2: #6bd6ad;
|
||||
--mse-accent-soft: rgba(59,181,134,.16); --mse-accent-glow: rgba(59,181,134,.30);
|
||||
--mse-surface: #0f5a66; --mse-surface-2: #126777;
|
||||
--mse-border: rgba(255,255,255,.08); --mse-border-strong: rgba(255,255,255,.14);
|
||||
--mse-text: #e8f4f3; --mse-text-2: #a8b9ba; --mse-text-mute: #6d7f80;
|
||||
--mse-shadow-lg: 0 8px 32px rgba(0,0,0,.40); --mse-shadow-xl: 0 24px 70px rgba(0,0,0,.55);
|
||||
font-family: 'Ubuntu', -apple-system, system-ui, sans-serif;
|
||||
color: var(--mse-text);
|
||||
padding: 0 0 8px;
|
||||
display: grid;
|
||||
grid-template-columns: 168px minmax(0, 1fr);
|
||||
column-gap: 70px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
EXPLORER + MODULE GRID
|
||||
============================================================ */
|
||||
.bd-mse .mse-grid {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 7px;
|
||||
align-content: start;
|
||||
}
|
||||
.bd-mse .tab-tile {
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
|
||||
padding: 10px 6px; border: none; border-radius: 13px;
|
||||
background: var(--mse-surface); color: var(--mse-text-2);
|
||||
font-family: inherit; font-size: .63rem; font-weight: 600; line-height: 1.15; text-align: center;
|
||||
cursor: pointer; transition: .2s;width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
|
||||
}
|
||||
.bd-mse .tab-tile svg { width: 16px; height: 16px; flex-shrink: 0; }
|
||||
.bd-mse .tab-tile:hover { background: var(--mse-surface-2); color: var(--mse-text); }
|
||||
.bd-mse .tab-tile.on { background: var(--mse-accent); color: #fff; box-shadow: 0 6px 18px var(--mse-accent-glow); }
|
||||
|
||||
.bd-mse .panel { grid-column: 2; grid-row: 1; display: none; justify-content: center; max-width: 1180px; margin: 0 auto; }
|
||||
.bd-mse .panel.on { display: flex; animation: mse-fade .45s ease; }
|
||||
@keyframes mse-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
|
||||
|
||||
/* ============================================================
|
||||
PHONE + REEL CHROME
|
||||
============================================================ */
|
||||
.bd-mse .stage { width: 340px; zoom: .64; }
|
||||
.bd-mse .phone {
|
||||
position: relative; width: 340px; padding: 11px; border-radius: 46px;
|
||||
background: linear-gradient(160deg,#3a3f45,#191c20 45%,#2c3137);
|
||||
box-shadow: var(--mse-shadow-xl), 0 0 0 1px rgba(255,255,255,.07) inset;
|
||||
animation: mse-float 5s ease-in-out infinite;
|
||||
}
|
||||
.bd-mse .phone::before {
|
||||
content: ''; position: absolute; inset: -8% -16%; z-index: -1; border-radius: 50%;
|
||||
background: var(--mse-accent); opacity: .16; filter: blur(60px); pointer-events: none;
|
||||
}
|
||||
@keyframes mse-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
|
||||
.bd-mse .phone-inner { position: relative; border-radius: 36px; overflow: hidden; background: #141218; aspect-ratio: 318/672; }
|
||||
.bd-mse .demo-badge { position: absolute; top: 20px; right: -9px; z-index: 20; display: flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; background: #e03a2f; color: #fff; border-radius: 100px; font-size: 9.6px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; box-shadow: 0 4px 14px rgba(224,58,47,.5); }
|
||||
.bd-mse .demo-badge i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: mse-rec 1.4s ease-in-out infinite; }
|
||||
@keyframes mse-rec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
|
||||
|
||||
/* On-screen play/pause overlay — replaces the old reel-bar transport. */
|
||||
.bd-mse .phone-pp {
|
||||
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 25;
|
||||
width: 52px; height: 52px; border-radius: 50%; font-size: 15px;
|
||||
background: rgba(10, 12, 16, .55); border: 1px solid rgba(255,255,255,.25);
|
||||
backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
|
||||
color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s;
|
||||
}
|
||||
.bd-mse .phone-pp:hover { background: var(--mse-accent); border-color: var(--mse-accent); }
|
||||
|
||||
.bd-mse .reel-cap { margin-top: .6rem; min-height: 2.2rem; font-size: .87rem; color: var(--mse-text-2); line-height: 1.5; border-left: 2px solid var(--mse-accent); padding-left: .7rem; transition: opacity .3s; }
|
||||
.bd-mse .reel-cap b { color: var(--mse-text); font-weight: 600; }
|
||||
|
||||
/* ============================================================
|
||||
APP TOKENS (the phone-screen UI itself)
|
||||
============================================================ */
|
||||
.bd-mse .ap {
|
||||
--a-bg: #141218; --a-card: #221f28; --a-card-2: #1c1a21;
|
||||
--a-line: rgba(255,255,255,.055);
|
||||
--a-tx: #f3f0f6; --a-tx2: #9c96a6; --a-tx3: #736d7e;
|
||||
--a-purple: #8b7ef0; --a-purple-on: #3a1f7a;
|
||||
--a-lav: #e9e4f7; --a-lav-on: #4a2d9c;
|
||||
--a-green: #82c99a; --a-green-bg: #1b3526;
|
||||
--a-coral: #e8765c; --a-coral-bg: #3b2320;
|
||||
--a-amber: #e0b355; --a-amber-bg: #3a2f1c;
|
||||
--a-blue: #7ab8e8; --a-blue-bg: #1e2c3a;
|
||||
position: absolute; inset: 0; background: var(--a-bg); color: var(--a-tx);
|
||||
font-size: 11.6px; line-height: 1.42; display: flex; flex-direction: column; overflow: hidden;
|
||||
}
|
||||
.bd-mse .ap [data-at] { opacity: 0; transform: translateY(9px); transition: opacity .48s ease, transform .48s cubic-bezier(.22,.85,.28,1); }
|
||||
.bd-mse .ap [data-at].in { opacity: 1; transform: none; }
|
||||
.bd-mse .ap .swap { animation: mse-swap .5s ease; }
|
||||
@keyframes mse-swap { 0% { opacity: 0; transform: translateY(-4px); } 100% { opacity: 1; transform: none; } }
|
||||
.bd-mse .ap .pulse { animation: mse-pulse 1.05s ease-in-out infinite; }
|
||||
@keyframes mse-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .42; } }
|
||||
.bd-mse .ap .press { transform: scale(.955) !important; filter: brightness(.88); }
|
||||
.bd-mse .ap-btn, .bd-mse .ap-card { transition: transform .18s ease, filter .18s ease, box-shadow .25s ease, outline-color .25s ease; }
|
||||
.bd-mse .ap .tap { outline: 1.6px solid var(--a-purple); outline-offset: -1px; box-shadow: 0 0 0 5px rgba(139,126,240,.14); }
|
||||
|
||||
.bd-mse .ap-status { display: flex; align-items: center; justify-content: space-between; padding: 11px 17px 4px; flex-shrink: 0; }
|
||||
.bd-mse .ap-status .t { font-size: 13px; font-weight: 500; }
|
||||
.bd-mse .ap-status .l, .bd-mse .ap-status .r { display: flex; align-items: center; gap: 5px; }
|
||||
.bd-mse .ap-status svg { width: 11px; height: 11px; fill: #fff; opacity: .92; }
|
||||
.bd-mse .ap-status .dot { width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .75; }
|
||||
.bd-mse .ap-batt { width: 17px; height: 9px; border: 1.1px solid rgba(255,255,255,.55); border-radius: 2.6px; position: relative; display: flex; align-items: center; padding: 1px; }
|
||||
.bd-mse .ap-batt::after { content: ''; width: 100%; height: 100%; background: #31d158; border-radius: 1.4px; }
|
||||
.bd-mse .ap-batt::before { content: ''; position: absolute; right: -3px; width: 1.6px; height: 4px; background: rgba(255,255,255,.55); border-radius: 0 1px 1px 0; }
|
||||
|
||||
.bd-mse .ap-top { display: flex; align-items: center; gap: 11px; padding: 16px 17px 10px; flex-shrink: 0; }
|
||||
.bd-mse .ap-top .back { width: 17px; height: 17px; stroke: var(--a-tx); stroke-width: 2; fill: none; flex-shrink: 0; }
|
||||
.bd-mse .ap-top h4 { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
|
||||
.bd-mse .ap-greet { padding: 14px 17px 2px; flex-shrink: 0; }
|
||||
.bd-mse .ap-greet .hi { display: flex; align-items: center; justify-content: space-between; }
|
||||
.bd-mse .ap-greet .hi-l { display: flex; align-items: center; gap: 8px; }
|
||||
.bd-mse .ap-greet .hi-l svg { width: 16px; height: 16px; }
|
||||
.bd-mse .ap-greet h4 { font-size: 17px; font-weight: 700; }
|
||||
.bd-mse .ap-greet .sub { color: var(--a-tx2); font-size: 11.4px; margin-top: 1px; }
|
||||
.bd-mse .ap-bell { width: 15px; height: 15px; stroke: var(--a-tx); stroke-width: 1.7; fill: none; }
|
||||
.bd-mse .ap-body { flex: 1; overflow: hidden; padding: 0 17px 8px; display: flex; flex-direction: column; }
|
||||
.bd-mse .ap-body.pt { padding-top: 12px; }
|
||||
|
||||
.bd-mse .ap-score { display: flex; flex-direction: column; align-items: center; padding: 14px 0 4px; flex-shrink: 0; }
|
||||
.bd-mse .ap-ring { position: relative; width: 118px; height: 118px; }
|
||||
.bd-mse .ap-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
|
||||
.bd-mse .ap-ring .arc { transition: stroke .5s ease; }
|
||||
.bd-mse .ap-ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
|
||||
.bd-mse .ap-ring .val b { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
|
||||
.bd-mse .ap-ring .val b i { font-size: 14px; font-style: normal; font-weight: 400; color: var(--a-tx2); }
|
||||
.bd-mse .ap-ring .val span { font-size: 10.6px; color: var(--a-tx2); margin-top: -2px; }
|
||||
.bd-mse .ap-ring.scanning::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--a-purple); animation: mse-spin .95s linear infinite; }
|
||||
@keyframes mse-spin { to { transform: rotate(360deg); } }
|
||||
.bd-mse .ap-delta { color: var(--a-green); font-size: 12.6px; font-weight: 600; margin-top: 11px; }
|
||||
.bd-mse .ap-lastchk { color: var(--a-tx2); font-size: 11.2px; }
|
||||
|
||||
.bd-mse .ap-btn { display: block; width: 100%; text-align: center; border: none; border-radius: 100px; font-family: inherit; font-weight: 600; font-size: 13px; padding: 11px; margin: 13px 0 4px; }
|
||||
.bd-mse .ap-btn.purple { background: var(--a-purple); color: var(--a-purple-on); }
|
||||
.bd-mse .ap-btn.lav { background: var(--a-lav); color: var(--a-lav-on); }
|
||||
.bd-mse .ap-btn.glow { box-shadow: 0 0 0 6px rgba(139,126,240,.16); }
|
||||
|
||||
.bd-mse .ap-card { background: var(--a-card); border-radius: 17px; padding: 13px 14px; margin-top: 10px; }
|
||||
.bd-mse .ap-card h5 { font-size: 13.4px; font-weight: 700; letter-spacing: -.2px; }
|
||||
.bd-mse .ap-card p { color: var(--a-tx2); font-size: 11.4px; margin-top: 2px; }
|
||||
.bd-mse .ap-cardhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
|
||||
.bd-mse .ap-badge { flex-shrink: 0; padding: 3px 9px; border-radius: 100px; font-size: 10.4px; font-weight: 700; }
|
||||
.bd-mse .ap-badge.good { background: var(--a-green-bg); color: var(--a-green); }
|
||||
.bd-mse .ap-badge.high, .bd-mse .ap-badge.blocked { background: var(--a-coral-bg); color: var(--a-coral); }
|
||||
.bd-mse .ap-badge.med { background: var(--a-amber-bg); color: var(--a-amber); }
|
||||
.bd-mse .ap-badge.low { background: var(--a-blue-bg); color: var(--a-blue); }
|
||||
.bd-mse .ap-badge.active { background: #2a2440; color: var(--a-purple); }
|
||||
.bd-mse .ap-badge.wait { background: #2b2833; color: var(--a-tx3); }
|
||||
|
||||
.bd-mse .ap-stats { display: flex; gap: 6px; margin-top: 12px; }
|
||||
.bd-mse .ap-stats div { flex: 1; text-align: center; }
|
||||
.bd-mse .ap-stats b { display: block; font-size: 23px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
|
||||
.bd-mse .ap-stats b.bad { color: var(--a-coral); }
|
||||
.bd-mse .ap-stats span { font-size: 10.6px; color: var(--a-tx2); }
|
||||
|
||||
.bd-mse .ap-h6 { font-size: 13.4px; font-weight: 700; margin: 16px 0 8px; }
|
||||
.bd-mse .ap-h6.spread { display: flex; align-items: center; justify-content: space-between; }
|
||||
.bd-mse .ap-h6.spread a { color: var(--a-purple); font-size: 12px; font-weight: 600; }
|
||||
.bd-mse .ap-caps { font-size: 10px; font-weight: 700; letter-spacing: 1.1px; color: var(--a-tx3); margin: 16px 0 7px; }
|
||||
|
||||
.bd-mse .ap-list { background: var(--a-card); border-radius: 17px; overflow: hidden; }
|
||||
.bd-mse .ap-li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--a-line); }
|
||||
.bd-mse .ap-li:first-child { border-top: none; }
|
||||
.bd-mse .ap-li .dom { font-size: 12.2px; font-weight: 600; word-break: break-all; line-height: 1.28; }
|
||||
.bd-mse .ap-li .when { font-size: 10.8px; color: var(--a-tx2); margin-top: 1px; }
|
||||
.bd-mse .ap-li.fresh { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; border-top: none; transition: max-height .5s cubic-bezier(.22,.85,.28,1), padding .5s, opacity .4s .1s; }
|
||||
.bd-mse .ap-li.fresh.in { max-height: 52px; padding-top: 11px; padding-bottom: 11px; opacity: 1; }
|
||||
.bd-mse .ap-li.fresh.in.hot { background: rgba(232,118,92,.1); }
|
||||
.bd-mse .ap-kv { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 12px; }
|
||||
.bd-mse .ap-kv .k { color: var(--a-tx2); }
|
||||
.bd-mse .ap-kv .v { font-weight: 700; }
|
||||
|
||||
.bd-mse .ap-perm { background: var(--a-card); border-radius: 15px; padding: 11px 13px; margin-top: 9px; }
|
||||
.bd-mse .ap-perm .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
||||
.bd-mse .ap-perm .nm { font-size: 13px; font-weight: 700; }
|
||||
.bd-mse .ap-perm .ds { color: var(--a-tx2); font-size: 11px; margin-top: 1px; }
|
||||
.bd-mse .ap-perm .mt { font-size: 11px; margin-top: 4px; font-weight: 600; }
|
||||
.bd-mse .ap-perm .mt.warn { color: var(--a-coral); }
|
||||
.bd-mse .ap-perm .mt.ok { color: var(--a-purple); }
|
||||
.bd-mse .ap-sk { background: var(--a-card); border-radius: 15px; padding: 13px; margin-top: 9px; display: grid; gap: 7px; }
|
||||
.bd-mse .ap-sk i { display: block; height: 8px; border-radius: 100px; background: linear-gradient(90deg,#26232c,#37333f,#26232c); background-size: 220% 100%; animation: mse-sk 1.2s linear infinite; }
|
||||
.bd-mse .ap-sk i:nth-child(1) { width: 46%; } .bd-mse .ap-sk i:nth-child(2) { width: 78%; } .bd-mse .ap-sk i:nth-child(3) { width: 34%; }
|
||||
@keyframes mse-sk { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
|
||||
|
||||
.bd-mse .ap-tog { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--a-line); }
|
||||
.bd-mse .ap-tog:first-child { border-top: none; }
|
||||
.bd-mse .ap-tog .ic { width: 29px; height: 29px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
||||
.bd-mse .ap-tog .ic svg { width: 15px; height: 15px; }
|
||||
.bd-mse .ap-tog .tx { flex: 1; min-width: 0; }
|
||||
.bd-mse .ap-tog .tx b { display: block; font-size: 12.6px; font-weight: 700; }
|
||||
.bd-mse .ap-tog .tx span { font-size: 10.8px; color: var(--a-tx2); display: block; line-height: 1.3; }
|
||||
.bd-mse .ap-sw { width: 38px; height: 22px; border-radius: 100px; background: #3a3646; position: relative; flex-shrink: 0; transition: background .35s ease; }
|
||||
.bd-mse .ap-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #6d6779; transition: left .35s cubic-bezier(.3,1.5,.5,1), background .35s; }
|
||||
.bd-mse .ap-sw.on { background: var(--a-purple); }
|
||||
.bd-mse .ap-sw.on::after { left: 19px; background: var(--a-purple-on); }
|
||||
.bd-mse .ap-input { border: 1px solid rgba(255,255,255,.28); border-radius: 9px; padding: 10px 12px; color: var(--a-tx3); font-size: 12px; margin-top: 11px; transition: border-color .3s, color .3s; }
|
||||
.bd-mse .ap-input.filled { color: var(--a-tx); border-color: var(--a-purple); }
|
||||
.bd-mse .ap-input.filled::after { content: ''; display: inline-block; width: 1.2px; height: 12px; background: var(--a-purple); margin-left: 1px; vertical-align: -2px; animation: mse-caret .85s step-end infinite; }
|
||||
@keyframes mse-caret { 50% { opacity: 0; } }
|
||||
|
||||
.bd-mse .ap-map { border-radius: 15px; overflow: hidden; height: 112px; position: relative; background: #b9b6bf; }
|
||||
.bd-mse .ap-map svg { width: 100%; height: 100%; display: block; }
|
||||
.bd-mse .ap-map .gl { position: absolute; left: 8px; bottom: 6px; font-size: 9.5px; font-weight: 700; color: #5b5b60; }
|
||||
.bd-mse .js-pin { opacity: 0; transform: translateY(-26px); transition: opacity .3s, transform .6s cubic-bezier(.3,1.7,.5,1); }
|
||||
.bd-mse .ap[data-stage="1"] .js-pin, .bd-mse .ap[data-stage="2"] .js-pin, .bd-mse .ap[data-stage="3"] .js-pin, .bd-mse .ap[data-stage="4"] .js-pin, .bd-mse .ap[data-stage="5"] .js-pin, .bd-mse .ap[data-stage="6"] .js-pin { opacity: 1; transform: none; }
|
||||
.bd-mse .js-fence { opacity: 0; transform: scale(.2); transform-origin: 150px 50px; transition: opacity .5s, transform .85s cubic-bezier(.22,.9,.25,1), stroke .3s ease; }
|
||||
.bd-mse .ap[data-stage="2"] .js-fence, .bd-mse .ap[data-stage="3"] .js-fence, .bd-mse .ap[data-stage="4"] .js-fence, .bd-mse .ap[data-stage="5"] .js-fence, .bd-mse .ap[data-stage="6"] .js-fence { opacity: 1; transform: scale(1); }
|
||||
.bd-mse .ap[data-stage="6"] .js-fence { stroke: #e8765c; }
|
||||
.bd-mse .js-trav { opacity: 0; }
|
||||
.bd-mse .ap[data-stage="4"] .js-trav, .bd-mse .ap[data-stage="5"] .js-trav { opacity: 1; animation: mse-trav 2.6s cubic-bezier(.4,0,.5,1) forwards; }
|
||||
.bd-mse .js-trav-out { opacity: 0; }
|
||||
.bd-mse .ap[data-stage="6"] .js-trav-out { opacity: 1; animation: mse-trav-out 1.5s cubic-bezier(.4,0,.5,1) forwards; }
|
||||
@keyframes mse-trav-out { 0% { transform: translate(0,0); } 100% { transform: translate(56px,-40px); } }
|
||||
.bd-mse .ap-zalert {
|
||||
background: #2b2833; border-radius: 19px; padding: 11px 12px; margin: 8px 12px 0;
|
||||
box-shadow: 0 10px 26px rgba(0,0,0,.5); display: flex; align-items: center; gap: 10px;
|
||||
opacity: 0; transform: translateY(-70px); transition: opacity .35s, transform .55s cubic-bezier(.22,.9,.28,1);
|
||||
}
|
||||
.bd-mse .ap[data-stage="6"] .ap-zalert { opacity: 1; transform: none; }
|
||||
.bd-mse .ap-zalert .nh { display: flex; align-items: flex-start; gap: 9px; width: 100%; }
|
||||
.bd-mse .ap-zalert .av { width: 29px; height: 29px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
||||
.bd-mse .ap-zalert .av svg { width: 17px; height: 17px; }
|
||||
.bd-mse .ap-zalert .nt { flex: 1; min-width: 0; }
|
||||
.bd-mse .ap-zalert .nt .l1 { display: flex; align-items: center; gap: 6px; font-size: 12.4px; font-weight: 700; }
|
||||
.bd-mse .ap-zalert .nt .l1 .ago { font-weight: 400; color: var(--a-tx2); }
|
||||
.bd-mse .ap-zalert .nt .l2 { font-size: 11.4px; color: var(--a-coral); margin-top: 1px; }
|
||||
@keyframes mse-trav { 0% { transform: translate(-96px,44px); } 100% { transform: translate(0,0); } }
|
||||
.bd-mse .ap-zone { display: flex; align-items: center; gap: 10px; background: var(--a-card); border-radius: 15px; padding: 11px 13px; margin-top: 10px; }
|
||||
.bd-mse .ap-zone .pin { width: 28px; height: 28px; border-radius: 9px; background: #2a2440; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
|
||||
.bd-mse .ap-zone .zt { flex: 1; min-width: 0; }
|
||||
.bd-mse .ap-zone .zt b { display: block; font-size: 12.6px; font-weight: 700; line-height: 1.25; }
|
||||
.bd-mse .ap-zone .zt span { font-size: 10.8px; color: var(--a-tx2); }
|
||||
.bd-mse .ap-zone .x { color: var(--a-coral); font-size: 14px; flex-shrink: 0; }
|
||||
.bd-mse .ap-empty { background: var(--a-card-2); border-radius: 15px; padding: 14px; color: var(--a-tx3); font-size: 11.4px; margin-top: 9px; transition: max-height .45s ease, opacity .3s, padding .45s; max-height: 60px; overflow: hidden; }
|
||||
.bd-mse .ap-empty.gone { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; margin-top: 0; }
|
||||
|
||||
.bd-mse .ap-incoming { background: #2b2833; border-radius: 19px; padding: 11px 12px; margin: 8px 12px 0; box-shadow: 0 10px 26px rgba(0,0,0,.5); display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(-70px); transition: opacity .35s, transform .55s cubic-bezier(.22,.9,.28,1); }
|
||||
.bd-mse .ap[data-stage="1"] .ap-incoming, .bd-mse .ap[data-stage="2"] .ap-incoming { opacity: 1; transform: none; }
|
||||
.bd-mse .ap-incoming .rings { width: 31px; height: 31px; border-radius: 50%; background: #3d3947; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
||||
.bd-mse .ap-incoming .rings svg { width: 16px; height: 16px; fill: #b9aef7; animation: mse-shake .9s ease-in-out infinite; }
|
||||
@keyframes mse-shake { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
|
||||
.bd-mse .ap-incoming .ct { flex: 1; min-width: 0; }
|
||||
.bd-mse .ap-incoming .ct b { display: block; font-size: 13px; font-weight: 700; }
|
||||
.bd-mse .ap-incoming .ct span { font-size: 10.8px; color: var(--a-tx2); }
|
||||
.bd-mse .ap-verdict { flex-shrink: 0; padding: 4px 9px; border-radius: 100px; font-size: 10px; font-weight: 700; background: #3d3947; color: var(--a-tx2); transition: background .35s, color .35s; }
|
||||
.bd-mse .ap-verdict.bad { background: var(--a-coral-bg); color: var(--a-coral); }
|
||||
|
||||
.bd-mse .ap-notif { background: #2b2833; border-radius: 19px; padding: 11px 12px; margin: 8px 12px 0; box-shadow: 0 10px 26px rgba(0,0,0,.5); opacity: 0; transform: translateY(-70px); transition: opacity .35s, transform .55s cubic-bezier(.22,.9,.28,1); }
|
||||
.bd-mse .ap[data-stage="3"] .ap-notif, .bd-mse .ap[data-stage="4"] .ap-notif, .bd-mse .ap[data-stage="5"] .ap-notif, .bd-mse .ap[data-stage="6"] .ap-notif { opacity: 1; transform: none; }
|
||||
.bd-mse .ap-notif .nh { display: flex; align-items: flex-start; gap: 9px; }
|
||||
.bd-mse .ap-notif .av { width: 29px; height: 29px; border-radius: 50%; background: #0d3b45; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
||||
.bd-mse .ap-notif .av svg { width: 19px; height: 19px; }
|
||||
.bd-mse .ap-notif .nt { flex: 1; min-width: 0; }
|
||||
.bd-mse .ap-notif .nt .l1 { display: flex; align-items: center; gap: 6px; font-size: 12.4px; font-weight: 700; }
|
||||
.bd-mse .ap-notif .nt .l1 .ago { font-weight: 400; color: var(--a-tx2); }
|
||||
.bd-mse .ap-notif .nt .l2 { font-size: 13px; font-weight: 500; margin-top: 1px; }
|
||||
.bd-mse .ap-notif .chev { background: #3d3947; border-radius: 100px; padding: 3px 9px; font-size: 10px; flex-shrink: 0; }
|
||||
.bd-mse .ap-notif .acts { display: flex; gap: 24px; padding: 9px 4px 2px; margin-top: 6px; }
|
||||
.bd-mse .ap-notif .acts span { color: #b9aef7; font-size: 13px; font-weight: 600; padding: 2px 6px; border-radius: 8px; transition: background .25s, color .25s; }
|
||||
.bd-mse .ap-notif .acts span.hit { background: var(--a-coral-bg); color: var(--a-coral); }
|
||||
.bd-mse .ap-thanks { display: none; align-items: center; gap: 7px; padding: 3px 4px 1px; margin-top: 6px; font-size: 12px; color: var(--a-green); font-weight: 600; }
|
||||
.bd-mse .ap[data-stage="5"] .ap-thanks, .bd-mse .ap[data-stage="6"] .ap-thanks { display: flex; }
|
||||
.bd-mse .ap[data-stage="5"] .acts, .bd-mse .ap[data-stage="6"] .acts { display: none; }
|
||||
|
||||
.bd-mse .ap-tabbar { display: flex; align-items: center; justify-content: space-around; padding: 7px 6px 4px; background: #1e1b24; border-top: 1px solid var(--a-line); flex-shrink: 0; }
|
||||
.bd-mse .ap-tabbar .it { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 12px; border-radius: 12px; color: var(--a-tx3); }
|
||||
.bd-mse .ap-tabbar .it svg { width: 17px; height: 17px; }
|
||||
.bd-mse .ap-tabbar .it span { font-size: 9.6px; font-weight: 600; }
|
||||
.bd-mse .ap-tabbar .it.on { background: #2a2440; color: var(--a-purple); }
|
||||
.bd-mse .ap-home-ind { height: 14px; display: flex; align-items: center; justify-content: center; background: #1e1b24; flex-shrink: 0; }
|
||||
.bd-mse .ap-home-ind::after { content: ''; width: 96px; height: 3.4px; border-radius: 100px; background: rgba(255,255,255,.5); }
|
||||
.bd-mse .ap-body-fade { position: absolute; left: 0; right: 0; background: linear-gradient(transparent, var(--a-bg)); pointer-events: none; }
|
||||
|
||||
/* ============================================================
|
||||
RESPONSIVE
|
||||
============================================================ */
|
||||
@media (max-width: 680px) {
|
||||
/* Not enough room for the module grid beside the phone — move it to a
|
||||
horizontally-scrollable row above the phone instead. */
|
||||
.bd-mse { grid-template-columns: 1fr; row-gap: 12px; }
|
||||
.bd-mse .mse-grid {
|
||||
grid-column: 1; grid-row: 1;
|
||||
grid-template-columns: none;
|
||||
grid-auto-flow: column;
|
||||
grid-auto-columns: minmax(92px, 1fr);
|
||||
overflow-x: auto;
|
||||
padding-bottom: 2px;
|
||||
-webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
|
||||
mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
|
||||
}
|
||||
.bd-mse .panel { grid-column: 1; grid-row: 2; max-width: 100%; }
|
||||
}
|
||||
@media (max-width: 420px) {
|
||||
.bd-mse .stage, .bd-mse .phone { width: 100%; max-width: 332px; }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.bd-mse .ap [data-at] { transition: none; }
|
||||
.bd-mse .demo-badge i, .bd-mse .ap-sk i, .bd-mse .ap .pulse, .bd-mse .phone { animation: none; }
|
||||
}
|
||||
@@ -0,0 +1,391 @@
|
||||
<div class="mse-grid" id="tabs" tabindex="0">
|
||||
<button class="tab-tile on" data-p="score" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg><span>Safety score</span></button>
|
||||
<button class="tab-tile" data-p="protection" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 3l8 4v6c0 4.5-3.2 7.6-8 8.9C7.2 20.6 4 17.5 4 13V7z"/></svg><span>Protection</span></button>
|
||||
<button class="tab-tile" data-p="dns" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3c2.5 3 2.5 15 0 18M12 3c-2.5 3-2.5 15 0 18"/></svg><span>Malicious DNS</span></button>
|
||||
<button class="tab-tile" data-p="calls" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a15 15 0 01-15-15z"/></svg><span>Scam calls</span></button>
|
||||
<button class="tab-tile" data-p="sim" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 3h8l4 4v14H6z"/><rect x="9" y="12" width="6" height="5" rx="1"/></svg><span>SIM & carrier</span></button>
|
||||
<button class="tab-tile" data-p="perms" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="4" y="4" width="7" height="7" rx="2"/><rect x="13" y="4" width="7" height="7" rx="2"/><rect x="4" y="13" width="7" height="7" rx="2"/><rect x="13" y="13" width="7" height="7" rx="2"/></svg><span>Apps & permissions</span></button>
|
||||
<button class="tab-tile" data-p="zones" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 21s7-5.5 7-11a7 7 0 10-14 0c0 5.5 7 11 7 11z"/><circle cx="12" cy="10" r="2.5"/></svg><span>Location zones</span></button>
|
||||
<button class="tab-tile" data-p="identity" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="8" r="4"/><path d="M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7"/></svg><span>Identity</span></button>
|
||||
<button class="tab-tile" data-p="settings" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1"/></svg><span>Consent & settings</span></button>
|
||||
</div>
|
||||
|
||||
<!-- ================= 1 · SAFETY SCORE ================= -->
|
||||
<div class="panel on" data-p="score">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">14:54</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-greet"><div class="hi"><div class="hi-l">
|
||||
<svg viewBox="0 0 64 64"><g fill="none" stroke="#e8f4f3" stroke-width="4" stroke-linejoin="round"><path d="M32 6 L56 20 L56 46 L32 60 L8 46 L8 20 Z"/><path d="M32 6 L32 32 M8 20 L32 32 M56 20 L32 32"/></g><circle cx="42" cy="16" r="5" fill="#3BB586"/></svg>
|
||||
<h4>Hi, Jason</h4></div>
|
||||
<svg class="ap-bell" viewBox="0 0 24 24"><path d="M18 15V10a6 6 0 10-12 0v5l-2 3h16zM10 21h4"/></svg></div>
|
||||
<div class="sub">Here's how you're protected today.</div></div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-score">
|
||||
<div class="ap-ring js-ring">
|
||||
<svg viewBox="0 0 120 120">
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#2b2733" stroke-width="9"/>
|
||||
<circle class="arc js-arc" cx="60" cy="60" r="52" fill="none" stroke="#82c99a" stroke-width="9" stroke-linecap="round" stroke-dasharray="326.73" stroke-dashoffset="62.08"/>
|
||||
</svg>
|
||||
<div class="val"><b><span class="js-score">81</span><i>/100</i></b><span>Safety score</span></div>
|
||||
</div>
|
||||
<div class="ap-delta" data-at="5">▲ 12 since last check ›</div>
|
||||
<div class="ap-lastchk" data-at="5">Last check you were at 81.</div>
|
||||
</div>
|
||||
<div class="ap-btn purple js-improve">How to improve</div>
|
||||
<div class="ap-card" data-at="2"><div class="ap-cardhead"><h5>Device trust</h5><span class="ap-badge good">Good</span></div><p>Your device is verified and up to date.</p></div>
|
||||
<div class="ap-card" data-at="3"><div class="ap-cardhead"><h5>Apps & permissions</h5><span class="ap-badge good">Good</span></div><p>No risky app permissions detected.</p></div>
|
||||
<div class="ap-card" data-at="4"><div class="ap-cardhead"><h5>Wi-Fi security</h5><span class="ap-badge good">Good</span></div><p>BT-T5F97X – Low risk.</p></div>
|
||||
</div>
|
||||
<div class="ap-body-fade"></div>
|
||||
<div class="ap-tabbar">
|
||||
<div class="it on"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 3l9 8h-3v9h-4v-6h-4v6H6v-9H3z"/></svg><span>Home</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M17 9V7a5 5 0 00-10 0v2H5v12h14V9zm-8-2a3 3 0 016 0v2H9z"/></svg><span>Protection</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2a7 7 0 00-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z"/></svg><span>Identity</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 8a4 4 0 100 8 4 4 0 000-8zm9.4 4l-.1 1.3 2 1.6-1.9 3.3-2.4-.8-1.1.8-.3 2.6h-3.8l-.4-2.6-1.1-.8-2.4.8-1.9-3.3 2-1.6L10 12l-.1-1.3-2-1.6 1.9-3.3 2.4.8 1.1-.8L13.7 3h3.8l.4 2.6 1.1.8 2.4-.8 1.9 3.3-2 1.6z"/></svg><span>Settings</span></div>
|
||||
</div>
|
||||
<div class="ap-home-ind"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 2 · PROTECTION ================= -->
|
||||
<div class="panel" data-p="protection">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">14:47</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-greet"><div class="hi"><div class="hi-l">
|
||||
<svg viewBox="0 0 64 64"><g fill="none" stroke="#e8f4f3" stroke-width="4" stroke-linejoin="round"><path d="M32 6 L56 20 L56 46 L32 60 L8 46 L8 20 Z"/><path d="M32 6 L32 32 M8 20 L32 32 M56 20 L32 32"/></g><circle cx="42" cy="16" r="5" fill="#3BB586"/></svg>
|
||||
<h4>Hi, Jason</h4></div>
|
||||
<svg class="ap-bell" viewBox="0 0 24 24"><path d="M18 15V10a6 6 0 10-12 0v5l-2 3h16zM10 21h4"/></svg></div>
|
||||
<div class="sub">Here's how you're protected today.</div></div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-score">
|
||||
<div class="ap-ring"><svg viewBox="0 0 120 120">
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#2b2733" stroke-width="9"/>
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#82c99a" stroke-width="9" stroke-linecap="round" stroke-dasharray="326.73" stroke-dashoffset="22.87"/></svg>
|
||||
<div class="val"><b>93<i>/100</i></b><span>Safety score</span></div></div>
|
||||
<div class="ap-delta">▲ 12 since last check ›</div>
|
||||
<div class="ap-lastchk">Last check you were at 81.</div>
|
||||
</div>
|
||||
<div class="ap-btn purple">How to improve</div>
|
||||
<div class="ap-card js-sb" data-at="1"><div class="ap-cardhead"><h5>Safe browsing</h5><span class="ap-badge good">Good</span></div><p>Safe browsing is on – <span class="js-n">0</span> unsafe requests blocked today.</p></div>
|
||||
<div class="ap-card" data-at="2"><div class="ap-cardhead"><h5>Calls</h5><span class="ap-badge good">Good</span></div><p>No scam calls today.</p></div>
|
||||
<div class="ap-card" data-at="3"><div class="ap-cardhead"><h5>SIM & carrier</h5><span class="ap-badge good">Good</span></div></div>
|
||||
</div>
|
||||
<div class="ap-body-fade"></div>
|
||||
<div class="ap-tabbar">
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 3l9 8h-3v9h-4v-6h-4v6H6v-9H3z"/></svg><span>Home</span></div>
|
||||
<div class="it on"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M17 9V7a5 5 0 00-10 0v2H5v12h14V9zm-8-2a3 3 0 016 0v2H9z"/></svg><span>Protection</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2a7 7 0 00-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z"/></svg><span>Identity</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 8a4 4 0 100 8 4 4 0 000-8zm9.4 4l-.1 1.3 2 1.6-1.9 3.3-2.4-.8-1.1.8-.3 2.6h-3.8l-.4-2.6-1.1-.8-2.4.8-1.9-3.3 2-1.6L10 12l-.1-1.3-2-1.6 1.9-3.3 2.4.8 1.1-.8L13.7 3h3.8l.4 2.6 1.1.8 2.4-.8 1.9 3.3-2 1.6z"/></svg><span>Settings</span></div>
|
||||
</div>
|
||||
<div class="ap-home-ind"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 3 · MALICIOUS DNS ================= -->
|
||||
<div class="panel" data-p="dns">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">14:52</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-top"><svg class="back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></svg><h4>Safe browsing</h4></div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-card" style="padding:15px 15px 16px">
|
||||
<h5 style="font-size:15.5px;line-height:1.25">DNS-level phishing<br>protection</h5>
|
||||
<div class="ap-stats">
|
||||
<div><b class="bad js-blocked">285</b><span>Blocked today</span></div>
|
||||
<div><b class="js-req">1116</b><span>Requests today</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ap-btn lav js-refresh">Refresh</div>
|
||||
<div class="ap-h6">Blocked today</div>
|
||||
<div class="ap-list">
|
||||
<div class="ap-li fresh js-newrow">
|
||||
<div><div class="dom">whtaspp-group.pages.dev</div><div class="when">2 Sep, 14:51</div></div>
|
||||
<span class="ap-badge blocked js-chip">Blocked</span>
|
||||
</div>
|
||||
<div class="ap-li"><div><div class="dom">fxjn-web-whatsapp.hk.cn</div><div class="when">2 Sep, 14:50</div></div><span class="ap-badge blocked">Blocked</span></div>
|
||||
<div class="ap-li"><div><div class="dom">malicious.com</div><div class="when">2 Sep, 12:31</div></div><span class="ap-badge blocked">Blocked</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ap-home-ind" style="background:transparent"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 4 · SCAM CALLS ================= -->
|
||||
<div class="panel" data-p="calls">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">15:05</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
|
||||
<div class="ap-incoming">
|
||||
<div class="rings"><svg viewBox="0 0 24 24"><path d="M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a15 15 0 01-15-15z"/></svg></div>
|
||||
<div class="ct"><b>0123456789</b><span>Incoming call · unknown number</span></div>
|
||||
<span class="ap-verdict js-verdict">Checking…</span>
|
||||
</div>
|
||||
|
||||
<div class="ap-notif">
|
||||
<div class="nh">
|
||||
<div class="av"><svg viewBox="0 0 64 64"><g fill="none" stroke="#e8f4f3" stroke-width="4" stroke-linejoin="round"><path d="M32 6 L56 20 L56 46 L32 60 L8 46 L8 20 Z"/><path d="M32 6 L32 32 M8 20 L32 32 M56 20 L32 32"/></g><circle cx="42" cy="16" r="6" fill="#3BB586"/></svg></div>
|
||||
<div class="nt"><div class="l1">How was that… <span class="ago">• now</span>
|
||||
<svg style="width:11px;height:11px;stroke:#f3f0f6;stroke-width:1.7;fill:none" viewBox="0 0 24 24"><path d="M18 15V10a6 6 0 10-12 0v5l-2 3h16zM10 21h4"/></svg></div>
|
||||
<div class="l2">0123456789</div></div>
|
||||
<span class="chev">⌄</span>
|
||||
</div>
|
||||
<div class="acts"><span>Spam</span><span class="js-scam">Scam</span><span>OK</span></div>
|
||||
<div class="ap-thanks">✓ Reported – thanks, that helps everyone</div>
|
||||
</div>
|
||||
|
||||
<div class="ap-body pt">
|
||||
<div class="ap-score" style="padding-top:4px">
|
||||
<div class="ap-ring"><svg viewBox="0 0 120 120">
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#2b2733" stroke-width="9"/>
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#82c99a" stroke-width="9" stroke-linecap="round" stroke-dasharray="326.73" stroke-dashoffset="22.87"/></svg>
|
||||
<div class="val"><b>93<i>/100</i></b><span>Safety score</span></div></div>
|
||||
<div class="ap-delta">▲ 12 since last check ›</div>
|
||||
<div class="ap-lastchk">Last check you were at 81.</div>
|
||||
</div>
|
||||
<div class="ap-btn purple">How to improve</div>
|
||||
<div class="ap-card"><div class="ap-cardhead"><h5>Safe browsing</h5><span class="ap-badge good">Good</span></div><p>Safe browsing is on – 288 unsafe requests blocked today.</p></div>
|
||||
</div>
|
||||
<div class="ap-body-fade" style="bottom:0"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 5 · SIM ================= -->
|
||||
<div class="panel" data-p="sim">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">15:09</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-top"><svg class="back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></svg><h4>SIM & carrier</h4></div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-card" style="padding:14px 15px 15px">
|
||||
<h5 class="js-simh" style="font-size:14.6px">Checking SIM status…</h5>
|
||||
<p class="js-simp">Reading phone state.</p>
|
||||
</div>
|
||||
<div class="ap-card" style="margin-top:16px;padding:14px 15px">
|
||||
<div class="ap-caps" style="margin:0 0 6px">DETAILS</div>
|
||||
<div class="ap-kv" data-at="2"><span class="k">Carrier</span><span class="v">EE</span></div>
|
||||
<div class="ap-kv" data-at="3"><span class="k">SIM slots</span><span class="v">Single SIM</span></div>
|
||||
<div class="ap-kv" data-at="4"><span class="k">Previous change</span><span class="v">None on record</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ap-home-ind" style="background:transparent"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 6 · PERMISSIONS ================= -->
|
||||
<div class="panel" data-p="perms">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">15:11</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-top"><svg class="back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></svg><h4>Apps & permissions</h4></div>
|
||||
<div class="ap-body">
|
||||
<p style="color:var(--a-tx2);font-size:11.4px;margin-bottom:2px">We scan installed apps for permissions fraudsters commonly abuse. Tap a card to see which apps hold it.</p>
|
||||
<div class="ap-sk js-sk"><i></i><i></i><i></i></div>
|
||||
<div class="ap-perm" data-at="2"><div class="top"><span class="nm">Microphone</span><span class="ap-badge high">High</span></div><div class="ds">Can turn on your microphone.</div><div class="mt warn">1 app · 1 to review</div></div>
|
||||
<div class="ap-perm" data-at="3"><div class="top"><span class="nm">Phone state</span><span class="ap-badge med">Medium</span></div><div class="ds">Can read your phone number and call state.</div><div class="mt ok">1 app · all accepted</div></div>
|
||||
<div class="ap-perm" data-at="4"><div class="top"><span class="nm">Contacts</span><span class="ap-badge med">Medium</span></div><div class="ds">Can read your contacts list.</div><div class="mt warn">1 app · 1 to review</div></div>
|
||||
<div class="ap-perm" data-at="5"><div class="top"><span class="nm">Post notifications</span><span class="ap-badge low">Low</span></div><div class="ds">Can post notifications to your device.</div><div class="mt ok">1 app · all accepted</div></div>
|
||||
<div class="ap-btn lav js-scan" style="margin-top:14px">Scan again</div>
|
||||
</div>
|
||||
<div class="ap-home-ind" style="background:transparent"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 7 · ZONES ================= -->
|
||||
<div class="panel" data-p="zones">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">14:55</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-top"><svg class="back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></svg><h4>Location safety zones</h4></div>
|
||||
<div class="ap-zalert">
|
||||
<div class="nh">
|
||||
<div class="av" style="background:var(--a-coral-bg)"><svg viewBox="0 0 24 24" fill="none" stroke="#e8765c" stroke-width="2"><path d="M12 21s7-5.5 7-11a7 7 0 10-14 0c0 5.5 7 11 7 11z"/><circle cx="12" cy="10" r="2.5"/></svg></div>
|
||||
<div class="nt"><div class="l1">Left Jakarta Town Hall <span class="ago">• now</span></div>
|
||||
<div class="l2">0.4 km outside the 200m boundary</div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-map">
|
||||
<svg viewBox="0 0 300 112" preserveAspectRatio="xMidYMid slice">
|
||||
<rect width="300" height="112" fill="#b9b6bf"/>
|
||||
<path d="M0 44 H140 V0" stroke="#a8a5af" stroke-width="2.5" fill="none"/>
|
||||
<path d="M140 44 H300" stroke="#a8a5af" stroke-width="2.5" fill="none"/>
|
||||
<path d="M175 44 V112" stroke="#aeabb5" stroke-width="2" fill="none"/>
|
||||
<path d="M60 44 V112" stroke="#aeabb5" stroke-width="1.6" fill="none"/>
|
||||
<rect x="196" y="52" width="52" height="20" rx="4" fill="#adaab4"/>
|
||||
<circle class="js-fence" cx="150" cy="50" r="34" fill="rgba(139,126,240,.2)" stroke="#8b7ef0" stroke-width="1.6" stroke-dasharray="4 3"/>
|
||||
<g class="js-trav"><circle cx="150" cy="50" r="4.6" fill="#3b7ae0" stroke="#fff" stroke-width="1.6"/></g>
|
||||
<g class="js-trav-out"><circle cx="150" cy="50" r="4.6" fill="#e8765c" stroke="#fff" stroke-width="1.6"/></g>
|
||||
<g class="js-pin" transform="translate(150 56)">
|
||||
<path d="M0 -18a11.5 11.5 0 00-11.5 11.5C-11.5 1 0 14 0 14S11.5 1 11.5 -6.5A11.5 11.5 0 000 -18z" fill="#e03a2f"/>
|
||||
<circle cx="0" cy="-6.5" r="4.4" fill="#8f1c14"/>
|
||||
</g>
|
||||
<g transform="translate(258 66)"><circle r="9" fill="#3f7a86"/><circle r="3.4" fill="#fff"/></g>
|
||||
<text x="196" y="66" font-family="Ubuntu,sans-serif" font-size="8.4" font-weight="600" fill="#3a4a4f">Pos Penitipan</text>
|
||||
<text x="196" y="76" font-family="Ubuntu,sans-serif" font-size="8.4" font-weight="600" fill="#3a4a4f">Paket Balaikota</text>
|
||||
</svg>
|
||||
<span class="gl">Google</span>
|
||||
</div>
|
||||
<div class="ap-zone" data-at="3" style="margin-top:11px">
|
||||
<div class="pin">📍</div><div class="zt"><b>1 zone configured</b><span>1 active</span></div>
|
||||
</div>
|
||||
<div class="ap-h6 spread"><span>Zones</span><a>+ Add</a></div>
|
||||
<div class="ap-zone" data-at="3" style="margin-top:0">
|
||||
<div class="pin">📍</div>
|
||||
<div class="zt"><b>Jakarta Town Hall</b><span><span class="js-rad">200</span>m radius</span></div>
|
||||
<span class="ap-badge active">Active</span><span class="x">✕</span>
|
||||
</div>
|
||||
<div class="ap-h6">Recent activity</div>
|
||||
<div class="ap-empty js-noev" style="margin-top:0">No recent events</div>
|
||||
<div class="ap-zone" data-at="6" style="margin-top:0">
|
||||
<div class="pin" style="background:var(--a-coral-bg)">←</div>
|
||||
<div class="zt"><b>Left Jakarta Town Hall</b><span>2 Sep, 15:42</span></div>
|
||||
</div>
|
||||
<div class="ap-zone js-ev" data-at="4" style="margin-top:0">
|
||||
<div class="pin" style="background:var(--a-green-bg)">→</div>
|
||||
<div class="zt"><b>Entered Jakarta Town Hall</b><span>2 Sep, 14:58</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ap-home-ind" style="background:transparent"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 8 · IDENTITY ================= -->
|
||||
<div class="panel" data-p="identity">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">14:54</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-greet"><div class="hi"><div class="hi-l">
|
||||
<svg viewBox="0 0 64 64"><g fill="none" stroke="#e8f4f3" stroke-width="4" stroke-linejoin="round"><path d="M32 6 L56 20 L56 46 L32 60 L8 46 L8 20 Z"/><path d="M32 6 L32 32 M8 20 L32 32 M56 20 L32 32"/></g><circle cx="42" cy="16" r="5" fill="#3BB586"/></svg>
|
||||
<h4>Hi, Jason</h4></div>
|
||||
<svg class="ap-bell" viewBox="0 0 24 24"><path d="M18 15V10a6 6 0 10-12 0v5l-2 3h16zM10 21h4"/></svg></div>
|
||||
<div class="sub">Here's how you're protected today.</div></div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-score">
|
||||
<div class="ap-ring"><svg viewBox="0 0 120 120">
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#2b2733" stroke-width="9"/>
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#82c99a" stroke-width="9" stroke-linecap="round" stroke-dasharray="326.73" stroke-dashoffset="22.87"/></svg>
|
||||
<div class="val"><b>93<i>/100</i></b><span>Safety score</span></div></div>
|
||||
<div class="ap-delta">▲ 12 since last check ›</div>
|
||||
<div class="ap-lastchk">Last check you were at 81.</div>
|
||||
</div>
|
||||
<div class="ap-btn purple">How to improve</div>
|
||||
<div class="ap-card">
|
||||
<div class="ap-cardhead"><h5>Location</h5><span class="ap-badge wait js-locb">Checking…</span></div>
|
||||
<p class="js-locp">Comparing against travel history.</p>
|
||||
</div>
|
||||
<div class="ap-card">
|
||||
<div class="ap-cardhead"><h5>Identity monitoring</h5><span class="ap-badge wait js-idb">Checking…</span></div>
|
||||
<p class="js-idp">Querying breach corpora.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ap-tabbar">
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 3l9 8h-3v9h-4v-6h-4v6H6v-9H3z"/></svg><span>Home</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M17 9V7a5 5 0 00-10 0v2H5v12h14V9zm-8-2a3 3 0 016 0v2H9z"/></svg><span>Protection</span></div>
|
||||
<div class="it on"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2a7 7 0 00-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z"/></svg><span>Identity</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 8a4 4 0 100 8 4 4 0 000-8zm9.4 4l-.1 1.3 2 1.6-1.9 3.3-2.4-.8-1.1.8-.3 2.6h-3.8l-.4-2.6-1.1-.8-2.4.8-1.9-3.3 2-1.6L10 12l-.1-1.3-2-1.6 1.9-3.3 2.4.8 1.1-.8L13.7 3h3.8l.4 2.6 1.1.8 2.4-.8 1.9 3.3-2 1.6z"/></svg><span>Settings</span></div>
|
||||
</div>
|
||||
<div class="ap-home-ind"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 9 · SETTINGS ================= -->
|
||||
<div class="panel" data-p="settings">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">14:55</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-top" style="padding-bottom:4px"><h4 style="font-size:21px">Settings</h4></div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-caps" style="margin-top:6px">PROTECTION</div>
|
||||
<div class="ap-card" style="margin-top:0;padding:6px 14px">
|
||||
<div class="ap-tog">
|
||||
<div class="ic" style="background:#2a2440"><svg viewBox="0 0 24 24" fill="#8b7ef0"><path d="M12 2l8 4v6c0 4.6-3.3 7.8-8 9-4.7-1.2-8-4.4-8-9V6z"/></svg></div>
|
||||
<div class="tx"><b>Safe browsing</b><span>DNS-level phishing protection.</span></div>
|
||||
<div class="ap-sw js-sw1"></div>
|
||||
</div>
|
||||
<div class="ap-tog">
|
||||
<div class="ic" style="background:#3a2a16"><svg viewBox="0 0 24 24" fill="#e0a355"><path d="M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a15 15 0 01-15-15z"/></svg></div>
|
||||
<div class="tx"><b>Scam call warnings</b><span>No scam calls today.</span></div>
|
||||
<div class="ap-sw js-sw2"></div>
|
||||
</div>
|
||||
<div class="ap-tog">
|
||||
<div class="ic" style="background:#16303a"><svg viewBox="0 0 24 24" fill="#7ab8e8"><path d="M6 2h8l4 4v16H6z"/><rect x="9" y="12" width="6" height="6" rx="1" fill="#16303a"/></svg></div>
|
||||
<div class="tx"><b>SIM & carrier</b><span>Phone-state access on – checking for SIM swaps.</span></div>
|
||||
<div class="ap-sw js-sw3"></div>
|
||||
</div>
|
||||
</div>
|
||||
<p style="color:var(--a-tx2);font-size:11.2px;margin-top:11px">Your protection runs out on 31 Oct 2026</p>
|
||||
<div class="ap-caps">RECOVERY EMAIL</div>
|
||||
<div class="ap-card" style="margin-top:0">
|
||||
<p style="font-size:11.2px;margin:0">If this phone is stolen, a notification shown on it won't help. We'll email this address instead when we detect a location or SIM-card change.</p>
|
||||
<div class="ap-input js-email">Recovery email address</div>
|
||||
<div class="ap-btn purple js-send" style="margin:11px 0 2px">Send code</div>
|
||||
</div>
|
||||
<div class="ap-caps" style="opacity:.6">LANGUAGE</div>
|
||||
</div>
|
||||
<div class="ap-body-fade"></div>
|
||||
<div class="ap-tabbar">
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 3l9 8h-3v9h-4v-6h-4v6H6v-9H3z"/></svg><span>Home</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M17 9V7a5 5 0 00-10 0v2H5v12h14V9zm-8-2a3 3 0 016 0v2H9z"/></svg><span>Protection</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2a7 7 0 00-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z"/></svg><span>Identity</span></div>
|
||||
<div class="it on"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 8a4 4 0 100 8 4 4 0 000-8zm9.4 4l-.1 1.3 2 1.6-1.9 3.3-2.4-.8-1.1.8-.3 2.6h-3.8l-.4-2.6-1.1-.8-2.4.8-1.9-3.3 2-1.6L10 12l-.1-1.3-2-1.6 1.9-3.3 2.4.8 1.1-.8L13.7 3h3.8l.4 2.6 1.1.8 2.4-.8 1.9 3.3-2 1.6z"/></svg><span>Settings</span></div>
|
||||
</div>
|
||||
<div class="ap-home-ind"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -161,6 +161,7 @@ function showPage(id, navId) {
|
||||
// Show target page
|
||||
var pg = document.getElementById("pg-" + id);
|
||||
if (pg) pg.style.display = "block";
|
||||
document.body.setAttribute("data-active-page", id);
|
||||
|
||||
// Update nav active states
|
||||
document.querySelectorAll("[data-nav]").forEach(function (btn) {
|
||||
@@ -170,8 +171,8 @@ function showPage(id, navId) {
|
||||
btn.classList.add("on");
|
||||
});
|
||||
|
||||
// Company dropdown parent
|
||||
var co = ["p6", "p7", "p8", "p9"].indexOf(active) >= 0;
|
||||
// Company dropdown parent (News/p7 moved out to its own top-level nav item)
|
||||
var co = ["p6", "p8", "p9"].indexOf(active) >= 0;
|
||||
var coBtn = document.getElementById("nav-co");
|
||||
if (coBtn) {
|
||||
if (co) coBtn.classList.add("on");
|
||||
@@ -217,10 +218,8 @@ function onScroll() {
|
||||
var nav = document.getElementById("bd-nav");
|
||||
if (!nav) return;
|
||||
if (window.scrollY > 50) {
|
||||
nav.style.background = "rgba(1,59,73,.97)";
|
||||
nav.style.borderBottomColor = "rgba(255,255,255,.07)";
|
||||
} else {
|
||||
nav.style.background = "rgba(1,59,73,.4)";
|
||||
nav.style.borderBottomColor = "transparent";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
--hex-dot: rgba(59, 181, 134, 0.9);
|
||||
--bg-grad: radial-gradient(
|
||||
140% 90% at 50% 0%,
|
||||
#075466 0%,
|
||||
#013b49 55%,
|
||||
#01303b 100%
|
||||
#ffffff 0%,
|
||||
#f6f5f2 55%,
|
||||
#ece9e3 100%
|
||||
);
|
||||
}
|
||||
*,
|
||||
@@ -105,11 +105,8 @@ textarea {
|
||||
align-items: center;
|
||||
padding: 0 32px;
|
||||
justify-content: space-between;
|
||||
transition:
|
||||
background 0.3s,
|
||||
border-color 0.3s;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
transition: border-color 0.3s;
|
||||
background: rgba(1, 59, 73, 1);
|
||||
border-bottom: 1px solid transparent;
|
||||
}
|
||||
.bd-nav-links {
|
||||
@@ -248,11 +245,11 @@ textarea {
|
||||
/* HERO */
|
||||
.bd-hero {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: var(--bg);
|
||||
overflow: hidden;
|
||||
padding:90px;
|
||||
}
|
||||
.bd-hero-sh {
|
||||
position: relative;
|
||||
@@ -294,7 +291,7 @@ textarea {
|
||||
}
|
||||
.bd-hero-in {
|
||||
margin: 0 auto;
|
||||
padding: 48px 40px;
|
||||
padding: 48px 40px; max-width: 1120px;
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
@@ -304,14 +301,13 @@ textarea {
|
||||
}
|
||||
.bd-hero-sh .bd-hero-in {
|
||||
min-height: auto;
|
||||
padding: 5px 40px 24px;
|
||||
height: 100vh;
|
||||
}
|
||||
/* TYPE */
|
||||
.ey {
|
||||
font-family: var(--fm);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.18em;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.15em;
|
||||
color: var(--t3);
|
||||
text-transform: uppercase;
|
||||
display: block;
|
||||
@@ -420,7 +416,7 @@ textarea {
|
||||
}
|
||||
.bd-si {
|
||||
margin: 0 auto;
|
||||
padding: 0 40px;
|
||||
padding: 0 40px; max-width: 1120px;
|
||||
}
|
||||
.sect-hd {
|
||||
max-width: 640px;
|
||||
@@ -553,6 +549,51 @@ textarea {
|
||||
background: #071318;
|
||||
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
#pg-p2 .bd-hero-sh .bd-hero-in {
|
||||
display: block;
|
||||
height: auto;
|
||||
padding-top: 0px;
|
||||
padding-bottom: 14px;
|
||||
}
|
||||
#pg-p2 .bd-hero-top {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 20px;
|
||||
}
|
||||
#pg-p2 .bd-hero-top > div:first-child {
|
||||
max-width: 720px;
|
||||
}
|
||||
#pg-p2 .bd-hero-top .h1 {
|
||||
font-size: clamp(32px, 3.4vw, 44px);
|
||||
}
|
||||
#pg-p2 .bd-hero-top .hero-sub {
|
||||
margin: 12px 0 18px;
|
||||
}
|
||||
/* The hero now fits one screen, so the global "scroll down" hint collides
|
||||
with the demo's caption text instead of pointing at hidden content. */
|
||||
body[data-active-page="p2"] .scroll-hint {
|
||||
display: none !important;
|
||||
}
|
||||
/* Flex items default to min-width:auto, which lets the tabstrip's
|
||||
unwrapped flex content (9 tabs) blow out the row instead of scrolling
|
||||
internally — min-width:0 forces it back down to the mount's own width
|
||||
so the tabstrip scrolls internally instead of widening the page. */
|
||||
#pg-p2 .bd-hero-top > .bd-mobile-demo-mount {
|
||||
flex: none;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
#pg-p2 .bd-mobile-demo-mount {
|
||||
height: auto;
|
||||
max-height: none;
|
||||
border: none;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
border-radius: 0;
|
||||
overflow: visible;
|
||||
min-width: 0;
|
||||
}
|
||||
.bd-phone-cta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -649,7 +690,8 @@ textarea {
|
||||
}
|
||||
.tier-tg {
|
||||
font-family: var(--fm);
|
||||
font-size: 10px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.1em;
|
||||
color: var(--t3);
|
||||
margin-top: 4px;
|
||||
@@ -676,7 +718,8 @@ textarea {
|
||||
}
|
||||
.tier-tagi {
|
||||
font-family: var(--fm);
|
||||
font-size: 10px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.06em;
|
||||
padding: 3px 8px;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
@@ -817,6 +860,16 @@ textarea {
|
||||
background: #022938;
|
||||
border: 1px solid var(--bdr2);
|
||||
}
|
||||
/* Halo CPE product screenshots — sized down ~25% from full-bleed */
|
||||
#pg-p3 .dash-frame {
|
||||
max-width: 75%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
#pg-p3 .dash-frame {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
.dash-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -957,9 +1010,13 @@ textarea {
|
||||
}
|
||||
/* PILLAR MAP */
|
||||
.pm-strip {
|
||||
border-bottom: 1px solid var(--bdr);
|
||||
border-top: 1px solid rgba(13, 27, 36, 0.1);
|
||||
border-bottom: 1px solid rgba(13, 27, 36, 0.1);
|
||||
padding: 20px 40px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
background: #f6f5f2;
|
||||
}
|
||||
.pm-strip .ey {
|
||||
color: rgba(13, 27, 36, 0.45);
|
||||
}
|
||||
.pm-in {
|
||||
max-width: 1200px;
|
||||
@@ -987,12 +1044,12 @@ textarea {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--txt);
|
||||
color: #0d1b24;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.pm-cell span {
|
||||
font-size: 13px;
|
||||
color: var(--t2);
|
||||
color: rgba(13, 27, 36, 0.6);
|
||||
line-height: 1.55;
|
||||
}
|
||||
/* AUD STRIP */
|
||||
@@ -1390,7 +1447,7 @@ textarea {
|
||||
}
|
||||
.stat-row-v {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
gap: 40px;
|
||||
padding: 18px 0;
|
||||
border-bottom: 1px solid var(--bdr);
|
||||
}
|
||||
@@ -1398,7 +1455,7 @@ textarea {
|
||||
border-bottom: none;
|
||||
}
|
||||
.sn-lg {
|
||||
font-size: 40px;
|
||||
font-size: 36px;
|
||||
font-weight: 800;
|
||||
color: var(--ax);
|
||||
line-height: 1;
|
||||
@@ -1470,7 +1527,7 @@ textarea {
|
||||
}
|
||||
/* FOOTER */
|
||||
.bd-footer {
|
||||
background: rgba(1, 47, 59, 0.8);
|
||||
background: rgba(1, 47, 59, 1);
|
||||
border-top: 1px solid var(--bdr);
|
||||
padding: 20px 40px;
|
||||
display: flex;
|
||||
@@ -1748,6 +1805,9 @@ textarea {
|
||||
.bd-hero {
|
||||
min-height: auto;
|
||||
}
|
||||
#pg-p2 .bd-hero-top {
|
||||
gap: 24px;
|
||||
}
|
||||
.hero-sub {
|
||||
max-width: 100%;
|
||||
}
|
||||
@@ -1927,10 +1987,8 @@ textarea {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
/* ── WHITE SECTIONS: 2nd & 4th per page ──────────────────────── */
|
||||
.pg > section:nth-of-type(2),
|
||||
.pg > section:nth-of-type(4) {
|
||||
background: #ffffff !important;
|
||||
/* ── 3-COLOR SECTION ROTATION: dark base / dark stripe / off-white, repeating per page ──── */
|
||||
.pg > section:nth-of-type(3n + 2) {
|
||||
--txt: #013b49;
|
||||
--t2: rgba(1, 59, 73, 0.65);
|
||||
--t3: rgba(1, 59, 73, 0.42);
|
||||
@@ -1939,153 +1997,166 @@ textarea {
|
||||
--axd: rgba(59, 181, 134, 0.1);
|
||||
--axb: rgba(59, 181, 134, 0.25);
|
||||
}
|
||||
/* Hardcoded-bg elements inside white sections */
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .bd-card {
|
||||
.pg > section:nth-of-type(3n) {
|
||||
background: var(--s1);
|
||||
}
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) {
|
||||
background: #f6f5f2 !important;
|
||||
--txt: #013b49;
|
||||
--t2: rgba(1, 59, 73, 0.65);
|
||||
--t3: rgba(1, 59, 73, 0.42);
|
||||
--bdr: rgba(0, 0, 0, 0.09);
|
||||
--bdr2: rgba(0, 0, 0, 0.14);
|
||||
--axd: rgba(59, 181, 134, 0.1);
|
||||
--axb: rgba(59, 181, 134, 0.25);
|
||||
}
|
||||
/* Hardcoded-bg elements inside the off-white sections */
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .bd-card {
|
||||
background: #f5f7ff;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .bd-card:hover {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .bd-card:hover {
|
||||
background: rgba(59, 181, 134, 0.07);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .mc {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .mc {
|
||||
background: #f5f7ff;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .mc-val {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .mc-val {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .mc-val.ax {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .mc-val.ax {
|
||||
color: var(--ax);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .stats-bar {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .stats-bar {
|
||||
background: #f5f7ff;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .stat-lbl {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .stat-lbl {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .stat-desc {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .stat-desc {
|
||||
color: rgba(1, 59, 73, 0.45);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .bd-feed {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .bd-feed {
|
||||
background: #f5f7ff;
|
||||
border-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .feed-hd {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .feed-hd {
|
||||
border-color: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .feed-row {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .feed-row {
|
||||
border-color: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .dash-frame {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .dash-frame {
|
||||
background: #ecf0ff;
|
||||
border-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .dash-bar {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .dash-bar {
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
border-color: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .arch-cap {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .arch-cap {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
color: rgba(1, 59, 73, 0.45);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .tier-tagi {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .tier-tagi {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
color: rgba(1, 59, 73, 0.45);
|
||||
border-color: rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .c-tag.mu {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .c-tag.mu {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
color: rgba(1, 59, 73, 0.45);
|
||||
border-color: rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .vs-box {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .vs-box {
|
||||
background: #f5f7ff;
|
||||
border-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .vs-mrk.dns {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .vs-mrk.dns {
|
||||
background: rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .diff-ck {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .diff-ck {
|
||||
background: rgba(59, 181, 134, 0.1);
|
||||
border-color: rgba(59, 181, 134, 0.25);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .inv-stat {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .inv-stat {
|
||||
background: #f5f7ff;
|
||||
border-color: rgba(0, 0, 0, 0.09);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .inv-lbl {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .inv-lbl {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .news-card {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .news-card {
|
||||
background: #f5f7ff;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .contact-card {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .contact-card {
|
||||
background: #f5f7ff;
|
||||
border-color: rgba(0, 0, 0, 0.09);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .form-inp {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .form-inp {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
color: #013b49;
|
||||
border-color: rgba(0, 0, 0, 0.14);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .form-lbl {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .form-lbl {
|
||||
color: rgba(1, 59, 73, 0.5);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4))
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4)
|
||||
.form-inp:focus {
|
||||
border-color: var(--ax);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .btn-g {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .btn-g {
|
||||
border-color: rgba(0, 0, 0, 0.2);
|
||||
color: rgba(1, 59, 73, 0.65);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .btn-g:hover {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .btn-g:hover {
|
||||
border-color: rgba(0, 0, 0, 0.5);
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .bd-bq {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .bd-bq {
|
||||
background: rgba(59, 181, 134, 0.08);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .ex-box {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .ex-box {
|
||||
background: rgba(59, 181, 134, 0.08);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .pillar-role {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .pillar-role {
|
||||
color: rgba(1, 59, 73, 0.35);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .ops-ov {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .ops-ov {
|
||||
color: var(--ax);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .spec-r label {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .spec-r label {
|
||||
color: rgba(1, 59, 73, 0.4);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .spec-r span {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .spec-r span {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .tier-nm {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .tier-nm {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .dep-step h4 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .dep-step h4 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .sig-item h4 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .sig-item h4 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .sb h4 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .sb h4 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4))
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4)
|
||||
.diff-it
|
||||
strong {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .arch-body h3 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .arch-body h3 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .news-card h3 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .news-card h3 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .ops-card h3 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .ops-card h3 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .cta-card h3 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .cta-card h3 {
|
||||
color: #013b49;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,3 +4,8 @@ declare module '*.txt?raw' {
|
||||
const content: string
|
||||
export default content
|
||||
}
|
||||
|
||||
declare module '*.html?raw' {
|
||||
const content: string
|
||||
export default content
|
||||
}
|
||||
|
||||