cipher/public/index.html
King Omar 5d41ed72f4 Add SEO: sitemap.xml, robots.txt, meta tags + structured data
- sitemap.xml (homepage) + robots.txt (allow crawl, disallow /api/, link sitemap)
- <head>: SEO title, meta description, keywords, canonical, robots
- Open Graph + Twitter Card tags for link previews
- JSON-LD WebApplication structured data (features, free, publisher)
- <noscript> crawlable content so the JS-rendered SPA has indexable text
- SW cache v11

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-22 19:50:35 +10:00

337 lines
22 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta name="theme-color" content="#0B0B09" />
<title>Cipher — Free End-to-End Encrypted Messenger | Private Chat, Calls &amp; Groups</title>
<meta name="description" content="Cipher is a free, private, end-to-end encrypted messenger. Signal-grade encrypted 1:1 and group chats, voice &amp; video calls, and disappearing messages — your keys never leave your device. No phone number required." />
<meta name="keywords" content="encrypted messenger, end-to-end encryption, private messaging, secure chat, encrypted calls, disappearing messages, Signal alternative, WhatsApp alternative, E2E encryption, private group chat" />
<meta name="author" content="Radical Party" />
<meta name="robots" content="index, follow, max-image-preview:large" />
<link rel="canonical" href="https://cipher.theradicalparty.com/" />
<!-- Open Graph / social -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Cipher" />
<meta property="og:title" content="Cipher — Free End-to-End Encrypted Messenger" />
<meta property="og:description" content="Private, end-to-end encrypted chats, groups, and voice &amp; video calls. Your keys never leave your device. No phone number required." />
<meta property="og:url" content="https://cipher.theradicalparty.com/" />
<meta property="og:image" content="https://cipher.theradicalparty.com/icons/icon.svg" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Cipher — Free End-to-End Encrypted Messenger" />
<meta name="twitter:description" content="Private, end-to-end encrypted chats, groups, and voice &amp; video calls. Your keys never leave your device." />
<meta name="twitter:image" content="https://cipher.theradicalparty.com/icons/icon.svg" />
<!-- Structured data: helps Google understand this is a messaging web app -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Cipher",
"url": "https://cipher.theradicalparty.com/",
"applicationCategory": "CommunicationApplication",
"operatingSystem": "Web, iOS, Android, Windows, macOS, Linux",
"browserRequirements": "Requires JavaScript. Requires a modern browser.",
"description": "Cipher is a free, end-to-end encrypted messenger with private 1:1 and group chats, encrypted voice and video calls, and disappearing messages. Private keys are generated on-device and never sent to the server.",
"isAccessibleForFree": true,
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
"featureList": [
"End-to-end encryption (Signal Protocol)",
"Private one-to-one and group chats",
"Encrypted voice and video calls",
"Disappearing messages",
"Read receipts",
"Group invite links",
"Multi-device with QR linking",
"No phone number required"
],
"publisher": { "@type": "Organization", "name": "Radical Party" }
}
</script>
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="icon" href="/icons/icon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="/icons/icon.svg" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=IBM+Plex+Mono:wght@400;500;700&display=swap" rel="stylesheet" />
<style>
:root {
/* Radical Party identity: signature red on warm near-black, cream text. */
--bg: #0B0B09;
--bg-2: #12100d;
--glass: rgba(30, 26, 24, 0.60);
--glass-2: rgba(48, 42, 38, 0.50);
--stroke: rgba(240, 237, 230, 0.09);
--stroke-2: rgba(240, 237, 230, 0.16);
--text: #F0EDE6;
--muted: #9c948a;
--accent: #FF2D55; /* Radical red */
--accent-2: #FF6B82; /* hot pink */
--gold: #c9a84c;
--accent-grad: linear-gradient(135deg, #FF2D55, #FF6B82);
--out-grad: linear-gradient(135deg, #FF2D55, #c81e3a);
--danger: #ff6b82;
--radius: 18px;
--shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
--font-display: 'Syne', system-ui, sans-serif;
--font-mono: 'IBM Plex Mono', ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: var(--text); height: 100dvh; overflow: hidden; background: var(--bg);
-webkit-font-smoothing: antialiased;
}
/* animated aurora backdrop */
body::before {
content: ""; position: fixed; inset: -20%; z-index: -2;
background:
radial-gradient(40% 40% at 20% 25%, rgba(255, 45, 85, 0.30), transparent 60%),
radial-gradient(45% 45% at 82% 20%, rgba(255, 107, 130, 0.20), transparent 60%),
radial-gradient(50% 50% at 60% 90%, rgba(201, 168, 76, 0.15), transparent 60%);
filter: blur(30px); animation: drift 22s ease-in-out infinite alternate;
}
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(120% 120% at 50% 0%, transparent 40%, rgba(0,0,0,0.55)); }
@keyframes drift {
0% { transform: translate(0,0) scale(1); }
100% { transform: translate(-4%, 3%) scale(1.12); }
}
#app { height: 100dvh; }
::selection { background: rgba(255,45,85,.4); }
/* scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }
button { cursor: pointer; font: inherit; border: none; color: inherit; transition: transform .12s ease, background .2s ease, box-shadow .2s ease, opacity .2s; }
button:active { transform: scale(.96); }
button:disabled { opacity: .55; cursor: default; }
input, textarea { font: inherit; }
/* ---------- auth ---------- */
.auth-card {
max-width: 380px; margin: 10vh auto 0; padding: 34px 28px;
background: var(--glass); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
border: 1px solid var(--stroke); border-radius: 26px; box-shadow: var(--shadow);
display: flex; flex-direction: column; gap: 13px; position: relative; overflow: hidden;
animation: pop .4s cubic-bezier(.2,.9,.3,1.2);
}
.auth-card::before {
content: ""; position: absolute; inset: 0; padding: 1px; border-radius: 26px;
background: linear-gradient(135deg, rgba(255,45,85,.6), rgba(201,168,76,.45), transparent 60%);
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.auth-card h1 {
margin: 4px 0 0; text-align: center; font-size: 42px; letter-spacing: -1px; font-weight: 800;
font-family: var(--font-display);
background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { margin: 0 0 6px; text-align: center; color: var(--muted); font-size: 13px; }
.brand-tag {
align-self: center; margin-top: -4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 2px;
text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent);
padding: 3px 9px; border-radius: 999px; opacity: .9;
}
/* Syne display type for headings + brand */
.modal-title, .empty-title { font-family: var(--font-display); letter-spacing: -.3px; }
.auth-card input {
padding: 13px 15px; border-radius: 13px; border: 1px solid var(--stroke); background: rgba(0,0,0,.25); color: var(--text); font-size: 15px; transition: border .2s, box-shadow .2s;
}
.auth-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,85,.22); }
.auth-err, .modal-err { color: var(--danger); font-size: 13px; min-height: 16px; text-align: center; }
.auth-divider { text-align: center; color: var(--muted); font-size: 11px; margin-top: 6px; text-transform: uppercase; letter-spacing: 2px; opacity: .7; }
.link-btn { background: transparent; color: var(--accent-2); padding: 5px; font-size: 14px; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }
button.primary {
padding: 13px 16px; border-radius: 13px; background: var(--accent-grad); color: #fff; font-weight: 700;
box-shadow: 0 8px 24px rgba(255,45,85,.35);
}
button.primary:hover { box-shadow: 0 10px 30px rgba(255,45,85,.5); transform: translateY(-1px); }
button.ghost {
padding: 13px 16px; border-radius: 13px; background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--stroke);
}
button.ghost:hover { background: rgba(255,255,255,.1); }
/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 350px 1fr; height: 100dvh; padding: 14px; gap: 14px; }
.sidebar, .main {
background: var(--glass); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
border: 1px solid var(--stroke); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
}
.sidebar { display: flex; flex-direction: column; min-height: 0; }
.side-header { display: flex; gap: 12px; align-items: center; padding: 16px 18px; cursor: pointer; border-bottom: 1px solid var(--stroke); transition: background .2s; }
.side-header:hover { background: rgba(255,255,255,.04); }
.side-id { min-width: 0; }
.me { font-weight: 700; display: flex; align-items: center; gap: 5px; }
.caret { color: var(--muted); font-size: 11px; }
.handle { color: var(--muted); font-size: 12.5px; }
.side-actions { display: flex; gap: 10px; padding: 12px 14px; }
.pill {
flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
padding: 10px; border-radius: 13px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke); color: var(--text); font-weight: 600; font-size: 14px;
}
.pill:hover { background: rgba(255,45,85,.16); border-color: rgba(255,45,85,.5); }
.pill span { font-size: 16px; line-height: 1; }
.chat-list { overflow-y: auto; flex: 1; padding: 6px; }
.list-empty { color: var(--muted); text-align: center; padding: 30px 10px; font-size: 14px; }
.chat-item { display: flex; gap: 13px; padding: 11px 12px; cursor: pointer; align-items: center; border-radius: 15px; transition: background .18s; }
.chat-item:hover { background: rgba(255,255,255,.05); }
.chat-item.active { background: rgba(255,45,85,.18); box-shadow: inset 0 0 0 1px rgba(255,45,85,.4); }
.chat-meta { min-width: 0; }
.chat-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
width: 46px; height: 46px; border-radius: 15px; flex: none; display: grid; place-items: center;
font-weight: 800; color: #fff; font-size: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 4px 14px rgba(0,0,0,.3); position: relative;
}
.avatar.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }
.avatar.group .group-glyph { font-size: 20px; }
/* ---------- main pane ---------- */
.main { display: flex; flex-direction: column; min-height: 0; }
.empty { margin: auto; text-align: center; padding: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-badge { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font-size: 34px; background: var(--accent-grad); box-shadow: 0 12px 40px rgba(255,45,85,.4); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.empty-title { font-weight: 700; font-size: 17px; }
.empty-sub { color: var(--muted); font-size: 14px; max-width: 280px; }
.chat-head { display: flex; gap: 13px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--stroke); background: rgba(255,255,255,.02); }
.chat-head-meta { flex: 1; min-width: 0; }
.back-btn { display: none; background: transparent; color: var(--text); font-size: 26px; line-height: 1; padding: 0 4px; }
.head-action { background: rgba(255,255,255,.06); color: var(--text); width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
.head-action:hover { background: rgba(255,255,255,.12); }
.thread { flex: 1; overflow-y: auto; padding: 22px 22px 8px; display: flex; flex-direction: column; gap: 4px; }
.bubble {
max-width: 66%; padding: 9px 13px 7px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; position: relative; word-wrap: break-word;
animation: rise .22s ease; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bubble.in { background: var(--glass-2); border: 1px solid var(--stroke); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.out { background: var(--out-grad); align-self: flex-end; border-bottom-right-radius: 5px; box-shadow: 0 4px 16px rgba(255,45,85,.3); }
.bubble .sender { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.bubble .time { font-size: 10.5px; color: rgba(255,255,255,.55); text-align: right; margin-top: 3px; display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.bubble .ticks { font-size: 11px; letter-spacing: -2px; color: rgba(255,255,255,.6); }
.bubble .ticks.read { color: #7DE2FF; text-shadow: 0 0 6px rgba(125,226,255,.5); }
.sys-note { align-self: center; max-width: 82%; text-align: center; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--stroke); padding: 5px 12px; border-radius: 14px; margin: 6px 0; animation: rise .22s ease; }
.head-action.timer.active { background: rgba(255,45,85,.22); color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent); }
.media-img { max-width: 260px; border-radius: 12px; display: block; }
.media-file { color: var(--text); text-decoration: none; font-weight: 500; }
.composer { display: flex; gap: 10px; padding: 14px 16px; align-items: center; border-top: 1px solid var(--stroke); background: rgba(255,255,255,.02); }
.composer-input { flex: 1; padding: 12px 16px; border-radius: 22px; border: 1px solid var(--stroke); background: rgba(0,0,0,.28); color: var(--text); font-size: 15px; transition: border .2s, box-shadow .2s; }
.composer-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,85,.2); }
.attach { cursor: pointer; font-size: 20px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); user-select: none; flex: none; transition: background .2s; }
.attach:hover { background: rgba(255,255,255,.12); }
.send { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-grad); color: #fff; font-size: 17px; flex: none; box-shadow: 0 6px 18px rgba(255,45,85,.4); display: grid; place-items: center; }
.send:hover { transform: translateY(-1px) scale(1.03); }
/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(6,6,14,.66); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
background: var(--glass); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
border: 1px solid var(--stroke-2); border-radius: 22px; padding: 24px; width: 100%; max-width: 380px;
display: flex; flex-direction: column; gap: 13px; box-shadow: var(--shadow); max-height: 84vh; overflow-y: auto;
animation: pop .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-title { margin: 0; font-size: 19px; font-weight: 700; }
.modal-input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(0,0,0,.28); color: var(--text); font-size: 15px; }
.modal-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,85,.2); }
textarea.modal-input { resize: vertical; font-family: inherit; }
.modal-note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-actions button { padding: 10px 18px; }
.code-box { font-family: var(--font-mono); font-size: 18px; letter-spacing: 1px; background: rgba(0,0,0,.35); padding: 15px; border-radius: 12px; text-align: center; word-break: break-all; user-select: all; border: 1px dashed var(--accent); color: var(--accent-2); }
.code-box.small { font-size: 12px; letter-spacing: 0; }
.qr { display: block; width: 224px; height: 224px; margin: 4px auto; border-radius: 14px; background: #fff; padding: 8px; }
.qr-video { width: 100%; max-width: 280px; border-radius: 14px; display: block; margin: 8px auto; background: #000; }
/* account menu + group rows */
.acct-row, .acct-action { text-align: left; background: rgba(255,255,255,.05); color: var(--text); padding: 12px 14px; border-radius: 13px; border: 1px solid var(--stroke); font-weight: 500; }
.acct-row:hover, .acct-action:hover { background: rgba(255,255,255,.1); }
.acct-row.active { outline: 1px solid var(--accent); background: rgba(255,45,85,.16); }
.acct-action { color: var(--accent-2); text-align: center; }
.acct-action.danger { color: var(--danger); }
.member-row { display: flex; gap: 12px; align-items: center; padding: 4px 0; }
/* group creation chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: rgba(255,45,85,.2); border: 1px solid rgba(255,45,85,.4); color: var(--text); padding: 5px 10px; border-radius: 20px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.chip-x { cursor: pointer; font-weight: 700; opacity: .8; }
.chip-x:hover { opacity: 1; }
/* ---------- calls ---------- */
.call-overlay {
position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column;
align-items: center; justify-content: center; gap: 22px;
background: radial-gradient(120% 120% at 50% 0%, #1a1030, #08080f);
animation: fade .25s ease;
}
.remote-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.local-vid { position: absolute; right: 18px; bottom: 108px; width: 132px; height: 180px; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255,255,255,.25); box-shadow: var(--shadow); z-index: 2; background: #111; }
.call-avatar-wrap { z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.call-avatar { width: 120px !important; height: 120px !important; border-radius: 40px !important; font-size: 46px !important; box-shadow: 0 0 0 0 rgba(255,45,85,.5); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,45,85,.45); } 50% { box-shadow: 0 0 0 22px rgba(255,45,85,0); } }
.call-peer { font-size: 22px; font-weight: 700; }
.call-status { z-index: 2; color: var(--muted); font-size: 15px; font-weight: 500; }
.call-controls { z-index: 2; display: flex; gap: 18px; margin-bottom: 6px; }
.call-btn { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); color: #fff; font-size: 24px; display: grid; place-items: center; border: 1px solid var(--stroke-2); }
.call-btn:hover { background: rgba(255,255,255,.2); }
.call-btn.active { background: #fff; color: #111; }
.call-btn.hangup { background: linear-gradient(135deg, #ff5470, #c81e3a); transform: rotate(133deg); }
.call-btn.hangup:hover { box-shadow: 0 8px 24px rgba(200,30,58,.5); }
.call-btn.accept { background: linear-gradient(135deg, #22d37a, #12995a); }
/* ---------- toasts ---------- */
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 12px 20px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow); max-width: 90vw; backdrop-filter: blur(20px); border: 1px solid var(--stroke-2); animation: rise .25s ease; }
.toast.error { background: rgba(80, 24, 36, .8); color: #ffc2cc; }
.toast.info { background: rgba(30, 40, 66, .8); color: var(--text); }
/* ---------- responsive ---------- */
@media (max-width: 760px) {
.shell { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
.shell.chat-open .sidebar { display: none; }
.shell:not(.chat-open) .main { display: none; }
.back-btn { display: block; }
.bubble { max-width: 82%; }
}
</style>
</head>
<body>
<div id="app">
<!-- Server-visible content for crawlers / no-JS. The real app hydrates over this. -->
<noscript>
<h1>Cipher — Free End-to-End Encrypted Messenger</h1>
<p>Cipher is a free, private messenger with end-to-end encryption built on the
Signal Protocol. Chat one-to-one or in groups, make encrypted voice and video
calls, and send disappearing messages. Your private keys are generated on your
device and never leave it — the server only ever relays ciphertext.</p>
<h2>Features</h2>
<ul>
<li>End-to-end encrypted 1:1 and group chats</li>
<li>Encrypted voice and video calls</li>
<li>Disappearing messages and read receipts</li>
<li>Shareable group invite links</li>
<li>Multi-device sync with QR linking</li>
<li>No phone number required</li>
</ul>
<p>Cipher requires JavaScript. Please enable it to sign in or create an account.</p>
</noscript>
</div>
<script type="module" src="/js/app.js"></script>
</body>
</html>