Compare commits

...
Author SHA1 Message Date
Moepchi b0eda9a22c Add mobile navigation and release updates 2026-08-22 23:35:59 +02:00
Moepchi bdfc0bcc10 Expand landing navigation sections 2026-08-22 23:25:20 +02:00
Moepchi 6bdd0fa171 Stabilize landing navigation scroll state 2026-08-22 23:19:17 +02:00
Moepchi ccceacba07 Polish landing navigation and section motion 2026-08-22 23:17:31 +02:00
Moepchi f56990f033 Add landing community feedback section 2026-08-22 23:10:56 +02:00
Moepchi a58a649818 Clarify Safari client workflow labels 2026-08-22 22:59:56 +02:00
Moepchi a26b7e02ec Test WebSpeak3 client capabilities in Safari 2026-08-22 22:58:54 +02:00
Moepchi 386c6ad49b Fix Safari language switch selector 2026-08-22 22:52:39 +02:00
Moepchi a8cf46f2da Use isolated Python environment for Safari check 2026-08-22 22:51:09 +02:00
Moepchi c5635102f0 Add free Safari landing page checks 2026-08-22 22:50:12 +02:00
Moepchi 27fbd3cd10 Fix connection status indicator spacing 2026-08-22 22:41:29 +02:00
Moepchi dfae1b53d2 Expand landing onboarding and project details 2026-08-22 22:37:51 +02:00
Moepchi e221c9d73d Overlay Android camera and gesture bar 2026-08-22 22:23:07 +02:00
Moepchi 8ff35abdf1 Refine iPhone preview frame 2026-08-22 22:19:58 +02:00
Moepchi bb152a9bda Add device-aware phone frames 2026-08-22 22:14:09 +02:00
Moepchi 0b76f2e354 Show real mobile client preview 2026-08-22 22:09:50 +02:00
Moepchi 0ad64fd4f8 Update interactive client preview 2026-08-22 22:04:07 +02:00
Moepchi c6fbc04236 Clarify connection to any TeamSpeak server 2026-08-22 21:37:58 +02:00
Moepchi 7deee1a8c3 Expand landing page with product details 2026-08-22 21:31:02 +02:00
Moepchi 69efb64db6 Add bilingual WebSpeak3 landing page 2026-08-22 12:47:09 +02:00
MoepchiandClaude Sonnet 5 e917e8e906 Remove GitHub Pages demo workflow
Cloudflare Pages (demo.webspeak3.de) already covers this for free,
no need for a second free hosting fallback.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-12 21:39:49 +02:00
MoepchiandClaude Sonnet 5 5e2b2860ae Drop GitHub Pages fallback mention from README demo blurb
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-12 21:38:23 +02:00
MoepchiandClaude Sonnet 5 80e36539f3 Link webspeak3.de, client.webspeak3.de and demo.webspeak3.de in README
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-12 21:37:39 +02:00
MoepchiandClaude Sonnet 5 b70b4d1fc9 Fix: VITE_GATEWAY_URL override was missing the /ws path
The gateway's WebSocketServer only listens on /ws (gateway/src/index.ts),
but the VITE_GATEWAY_URL build-time override connected to the bare host
instead - causing 'Could not reach the gateway' on split-hosted deploys
(e.g. client.webspeak3.de -> gateway.webspeak3.de). Now /ws is always
appended, whether the URL comes from the same-origin fallback or the
override.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-11 02:17:53 +02:00
MoepchiandClaude Sonnet 5 fd24ae740e Add cloudflared tunnel service to docker-compose
Enables exposing the gateway via Cloudflare Tunnel without a public
DNS record pointing at the home server's real IP. Token is supplied
via CLOUDFLARE_TUNNEL_TOKEN in a gitignored .env file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-11 01:22:48 +02:00
Moepchi c10572feda Support VITE_GATEWAY_URL to point the built frontend at a gateway on another host 2026-08-10 21:46:39 +02:00
Moepchi c305fc4e1e Remove redundant poke hover-button from client tree rows (already in context menu) 2026-08-10 21:31:13 +02:00
Moepchi ec3a693292 Fix icon right-alignment: remove duplicate margin-left:auto from poke button 2026-08-10 21:28:16 +02:00
Moepchi 6bc3dca567 Add colored-letter badges for TS3 built-in default group icons; only fetch real custom icon files 2026-08-10 21:23:54 +02:00
Moepchi 0a1163d4f9 Widen tree row to fill panel width; add ftdownload debug logging 2026-08-10 20:47:13 +02:00
Moepchi fee0169463 Right-align client row icons flush to the edge; add debug logging for group icon ids
Status icons and group badges previously sat right after the name with no
push-right, so they clustered close to it instead of at the row's right
edge like the poke button already does. Wrapped them in a flex span with
margin-left: auto to match.

Also added temporary eprintln logging of each channel/server group's
resolved icon_id, to check whether this server's groups actually have
custom icons assigned (native TS3 doesn't show a badge for groups without
one either) before assuming the icon feature itself is broken.
2026-08-10 20:09:10 +02:00
Moepchi b7ef6f78e7 Add server group icon badges and a 'no talk power' status icon
Group icons were entirely missing from the data model - GroupEntry only
carried id/name. Added icon_id (from ServerGroup/ChannelGroup's Icon field)
through connector -> gateway -> frontend, matching the same channel-0
icon_<id> file convention already used for server icons (#77), reusing
that dialog's fetch/cache/render plumbing (serverIconImages, iconDataUrl).

Client rows now render a small badge per server group with a non-zero
icon, positioned after the name/status icons (i.e. on the right), instead
of not existing at all. Also added a 🔒 status icon for clients who aren't
muted but still can't talk due to insufficient talk power in a moderated
channel (previously no icon indicated this state at all).
2026-08-10 19:11:03 +02:00
Moepchi 6e343c4d4c Fix talking indicator: also respect missing talk power in moderated channels
The previous fix only accounted for the local mute toggle. In a moderated
channel (one with a talk power requirement) a client without sufficient
talk power still has selfActive/VAD firing locally and no local concept of
whether they're actually allowed to transmit, so the indicator stayed on
regardless.

The connector now computes has_talk_power per client from the book state
(talk_power_granted || talk_power >= channel.needed_talk_power), mirroring
tsclientlib's own internal intern_can_send_audio moderated-channel check,
and threads it through gateway and frontend. The talking indicator (both
the own-client injection into displayTalkers and the general per-client
render in ChannelTree) now requires hasTalkPower too.
2026-08-10 18:47:37 +02:00
Moepchi 4847972c80 Fix: don't show local talking indicator while mic is muted
selfActive is driven by MicCapture's local VAD (raw input level), which has
no notion of the input-muted state - only the actual audio send (onFrame)
checked inputMutedRef. So muting the mic still lit up the green talking
indicator on your own row locally, even though nothing was being
transmitted.
2026-08-10 18:30:37 +02:00
25 changed files with 1013 additions and 113 deletions

No files matched your search

-57
View File
@@ -1,57 +0,0 @@
name: Deploy demo to GitHub Pages
on:
push:
branches: [main]
paths:
- "web/**"
- ".github/workflows/deploy-demo.yml"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: web/package-lock.json
- name: Install dependencies
working-directory: web
run: npm ci
- name: Build (demo mode)
working-directory: web
env:
VITE_DEMO_MODE: "true"
VITE_BASE_PATH: /webspeak3/
run: npm run build
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: web/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
+75
View File
@@ -0,0 +1,75 @@
name: Safari WebSpeak3 client check
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "web/src/**"
- "web/index.html"
- "web/public/**"
- ".github/workflows/safari-check.yml"
- "tests/safari_smoke.py"
schedule:
- cron: "17 5 * * 1"
permissions:
contents: read
concurrency:
group: safari-landing-${{ github.ref }}
cancel-in-progress: true
jobs:
safari:
name: Safari on macOS
runs-on: macos-15
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 22
cache: npm
cache-dependency-path: web/package-lock.json
- name: Install and build WebSpeak3 client
working-directory: web
run: |
npm ci
npm run build
- name: Start local preview
working-directory: web
run: |
npm run preview -- --host 127.0.0.1 --port 4173 > /tmp/webspeak3-preview.log 2>&1 &
for attempt in {1..30}; do
curl --fail --silent http://127.0.0.1:4173/ > /dev/null && exit 0
sleep 1
done
cat /tmp/webspeak3-preview.log
exit 1
- name: Prepare Safari automation
run: |
sudo safaridriver --enable
python3 -m venv .venv-safari
.venv-safari/bin/python -m pip install selenium
- name: Test WebSpeak3 client in Safari
env:
BASE_URL: http://127.0.0.1:4173/
run: .venv-safari/bin/python tests/safari_smoke.py
- name: Upload Safari screenshots
if: always()
uses: actions/upload-artifact@v5
with:
name: safari-client-screenshots
path: test-results/safari-client-*.png
if-no-files-found: ignore
retention-days: 14
+2
View File
@@ -0,0 +1,2 @@
/cache
/project.local.yml
+170
View File
@@ -0,0 +1,170 @@
# the name by which the project can be referenced within Serena/when chatting with the LLM.
project_name: "ts-web-client"
# list of language servers to start when using the LSP backend; choose from:
# ada al angular ansible bash
# bsl clojure cpp cpp_ccls crystal
# csharp csharp_omnisharp cue dart deno
# elixir elm erlang fortran fsharp
# gdscript gleam go groovy haskell
# haxe hlsl html java json
# julia kotlin latex lean4 lua
# luau markdown matlab msl nextflow
# nix ocaml pascal perl php
# php_phpactor php_phpantom powershell python python_basedpyright
# python_jedi python_pyrefly python_ty qml r
# rego ruby ruby_solargraph rust scala
# scss solidity svelte swift systemverilog
# terraform toml typescript typescript_vts vue
# wolfram yaml zig
# (This list may be outdated; generated with scripts/print_language_list.py;
# For the current list, see values of the LanguageServerId enum here:
# https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py)
# For some languages, there are several alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
# Note:
# - For C, use cpp
# - For JavaScript, use typescript
# - For Angular projects, use angular (subsumes typescript+html; requires `npm install` in the project root)
# - For Svelte projects, use svelte (subsumes typescript/javascript for .svelte projects; requires npm)
# - For Deno projects, use deno (serves the same .ts/.js files as typescript; requires the deno CLI on PATH)
# - For SCSS / Sass / plain CSS, use scss (some-sass-language-server handles all three)
# - For Free Pascal/Lazarus, use pascal
# Special requirements:
# Some language servers require additional setup/installations.
# See here for details: https://oraios.github.io/serena/01-about/020_programming-languages.html#language-servers
# When using multiple language servers, the first language server that supports a given file will be used for that file.
# The first language server is the default language and the respective language server will be used as a fallback.
# Note that when using the JetBrains backend, language servers are not used and this list is correspondingly ignored.
language_servers:
- rust
- typescript
# the encoding used by text files in the project
# For a list of possible encodings, see https://docs.python.org/3.11/library/codecs.html#standard-encodings
encoding: "utf-8"
# optional shell command to run before the language backend (LSP or JetBrains) is initialised.
# the command runs in the project root directory and is only executed if the project is trusted
# (see trusted_project_path_patterns in the global configuration).
# serena waits for the command to exit: a non-zero exit code is logged as an error but does not
# abort activation. a per-project timeout (activation_command_timeout, default 180s) is the safety
# backstop for non-terminating commands; on expiry the process is killed and activation continues.
# example: activation_command: "npx nx run-many -t build"
activation_command:
# maximum time in seconds to wait for activation_command to complete before killing it (default 180s).
# must be a positive number.
activation_command_timeout: 180.0
# line ending convention to use when writing source files.
# Possible values: unset (use global setting), "lf", "crlf", or "native" (platform default)
# This does not affect Serena's own files (e.g. memories and configuration files), which always use native line endings.
line_ending:
# The language backend to use for this project.
# If not set, the global setting from serena_config.yml is used.
# Valid values: LSP, JetBrains
# Note: the backend is fixed at startup. If a project with a different backend
# is activated post-init, an error will be returned.
language_backend:
# whether to use project's .gitignore files to ignore files
ignore_all_files_in_gitignore: true
# advanced configuration option allowing to configure language server-specific options.
# Maps the language key to the options.
# The settings are considered only if the project is trusted (see global configuration to define trusted projects).
# See https://oraios.github.io/serena/02-usage/050_configuration.html#language-server-specific-settings
ls_specific_settings: {}
# list of workspace folder paths (LSP backend only).
# These folders will be used to build up Serena's symbol index.
# Paths must be within the project root and should thus be relative to the project root.
# Furthermore, the paths should not be filtered by ignore settings.
# Default setting: The entire project root folder (".") is considered.
# In (large) monorepos, this can be used to index only subfolders of the project root, e.g.
# ls_workspace_folders:
# - "./subproject1"
# - "./subproject2"
ls_workspace_folders:
- "."
# list of additional workspace folder paths for cross-package reference support.
# Paths can be absolute or relative to the project root.
# Each folder is registered as an LSP workspace folder, enabling language servers to discover
# symbols and references across package boundaries, but these folders are not indexed by Serena,
# i.e. the respective symbols will not be found using Serena's symbol search tools.
# Example:
# additional_workspace_folders:
# - ../sibling-package
# - ../shared-lib
ls_additional_workspace_folders: []
# list of additional paths to ignore in this project.
# Same syntax as gitignore, so you can use * and **.
# Important: quote patterns that start with `*`, otherwise YAML treats them as aliases.
# Example:
# ignored_paths:
# - "examples/**"
# - ".worktrees/**"
# - "**/bin/**"
# - "**/obj/**"
# Note: global ignored_paths from serena_config.yml are also applied additively.
ignored_paths: []
# whether the project is in read-only mode
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
# Added on 2025-04-18
read_only: false
# list of tool names to exclude.
# This extends the existing exclusions (e.g. from the global configuration)
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
excluded_tools: []
# list of tools to include that would otherwise be disabled (particularly optional tools that are disabled by default).
# This extends the existing inclusions (e.g. from the global configuration).
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
included_optional_tools: []
# fixed set of tools to use as the base tool set (if non-empty), replacing Serena's default set of tools.
# This cannot be combined with non-empty excluded_tools or included_optional_tools.
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
fixed_tools: []
# list of mode names that are to be activated by default, overriding the setting in the global configuration.
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
# If the setting is undefined/empty, the default_modes from the global configuration (serena_config.yml) apply.
# Otherwise, this overrides the setting from the global configuration (serena_config.yml).
# Therefore, you can set this to [] if you do not want the default modes defined in the global config to apply
# for this project.
# This setting can, in turn, be overridden by CLI parameters (--mode).
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
default_modes:
# list of mode names to be activated additionally for this project, e.g. ["query-projects"]
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
added_modes:
# initial prompt for the project. It will always be given to the LLM upon activating the project
# (contrary to the memories, which are loaded on demand).
initial_prompt: ""
# time budget (seconds) per tool call for the retrieval of additional symbol information
# such as docstrings or parameter information.
# This overrides the corresponding setting in the global configuration; see the documentation there.
# If null or missing, use the setting from the global configuration.
symbol_info_budget:
# list of regex patterns which, when matched, mark a memory entry as read‑only.
# Extends the list from the global configuration, merging the two lists.
read_only_memory_patterns: []
# list of regex patterns for memories to completely ignore.
# Matching memories will not appear in list_memories or activate_project output
# and cannot be accessed via read_memory or write_memory.
# To access ignored memory files, use the read_file tool on the raw file path.
# Extends the list from the global configuration, merging the two lists.
# Example: ["_archive/.*", "_episodes/.*"]
ignored_memory_patterns: []
+4 -2
View File
@@ -17,13 +17,15 @@
</p>
<p align="center">
<a href="https://moepchi.github.io/webspeak3/">🕹️ Live Demo</a> ·
<a href="https://webspeak3.de">🌐 Website</a> ·
<a href="https://client.webspeak3.de">💬 Open Client</a> ·
<a href="https://demo.webspeak3.de">🕹️ Live Demo</a> ·
<a href="#-installation">🚀 Quick Start</a> ·
<a href="#-installation">📖 Installation</a> ·
<a href="https://github.com/Moepchi/webspeak3/issues">🐛 Report Bug</a>
</p>
> The [live demo](https://moepchi.github.io/webspeak3/) runs entirely in your browser with simulated data — no real TeamSpeak server involved. It's there to show the UI, not the real connection.
> The [live demo](https://demo.webspeak3.de) runs entirely in your browser with simulated data — no real TeamSpeak server involved. It's there to show the UI, not the real connection.
---
+37 -19
View File
@@ -88,6 +88,12 @@ struct ClientInfo {
database_id: u64,
channel_group: u64,
server_groups: Vec<u64>,
/// Whether this client is currently allowed to talk in their channel -
/// `false` in a moderated channel (one with a talk power requirement)
/// when the client's talk power is below that requirement and they
/// haven't been individually granted talk power. Always `true` in a
/// non-moderated channel.
has_talk_power: bool,
}
/// Payload for the "serveredit " stdin command - every field is optional so
@@ -362,6 +368,7 @@ struct PermissionCatalogEntry {
struct GroupEntry {
id: u64,
name: String,
icon_id: u32,
}
#[derive(Serialize, Clone)]
@@ -535,21 +542,32 @@ fn snapshot(con: &data::Connection) -> Event {
let clients = con
.clients
.values()
.map(|c| ClientInfo {
id: c.id.0,
channel: c.channel.0,
name: c.name.clone(),
input_muted: c.input_muted,
output_muted: c.output_muted,
input_hardware_enabled: c.input_hardware_enabled,
away: c.away_message.is_some(),
away_message: c.away_message.clone().unwrap_or_default(),
is_channel_commander: c.is_channel_commander,
country: c.country_code.clone(),
uid: c.uid.as_ref().map(|u| u.to_string()).unwrap_or_default(),
database_id: c.database_id.0,
channel_group: c.channel_group.0,
server_groups: c.server_groups.iter().map(|g| g.0).collect(),
.map(|c| {
// A channel with no talk power requirement at all (the common
// case) is never moderated, so everyone can talk regardless of
// their own talk power - matches tsclientlib's own
// intern_can_send_audio logic for the moderated-channel check.
let has_talk_power = match con.channels.get(&c.channel).and_then(|ch| ch.needed_talk_power) {
Some(needed) => c.talk_power_granted || c.talk_power >= needed,
None => true,
};
ClientInfo {
id: c.id.0,
channel: c.channel.0,
name: c.name.clone(),
input_muted: c.input_muted,
output_muted: c.output_muted,
input_hardware_enabled: c.input_hardware_enabled,
away: c.away_message.is_some(),
away_message: c.away_message.clone().unwrap_or_default(),
is_channel_commander: c.is_channel_commander,
country: c.country_code.clone(),
uid: c.uid.as_ref().map(|u| u.to_string()).unwrap_or_default(),
database_id: c.database_id.0,
channel_group: c.channel_group.0,
server_groups: c.server_groups.iter().map(|g| g.0).collect(),
has_talk_power,
}
})
.collect();
Event::Channels { channels, clients }
@@ -1953,7 +1971,7 @@ async fn run(args: Args) -> Result<()> {
let mut entries: Vec<GroupEntry> = state
.channel_groups
.values()
.map(|g| GroupEntry { id: g.id.0, name: g.name.clone() })
.map(|g| GroupEntry { id: g.id.0, name: g.name.clone(), icon_id: g.icon.0 })
.collect();
entries.sort_by_key(|g| g.id);
emit(&Event::ChannelGroupList { entries });
@@ -1963,7 +1981,7 @@ async fn run(args: Args) -> Result<()> {
let mut entries: Vec<GroupEntry> = state
.server_groups
.values()
.map(|g| GroupEntry { id: g.id.0, name: g.name.clone() })
.map(|g| GroupEntry { id: g.id.0, name: g.name.clone(), icon_id: g.icon.0 })
.collect();
entries.sort_by_key(|g| g.id);
emit(&Event::ServerGroupList { entries });
@@ -2093,7 +2111,7 @@ async fn run(args: Args) -> Result<()> {
if let InMessage::ChannelGroupList(list) = &msg {
let entries: Vec<GroupEntry> = list
.iter()
.map(|part| GroupEntry { id: part.channel_group.0, name: part.name.clone() })
.map(|part| GroupEntry { id: part.channel_group.0, name: part.name.clone(), icon_id: part.icon.0 })
.collect();
emit(&Event::ChannelGroupList { entries });
pending_channel_group_list = false;
@@ -2103,7 +2121,7 @@ async fn run(args: Args) -> Result<()> {
if let InMessage::ServerGroupList(list) = &msg {
let entries: Vec<GroupEntry> = list
.iter()
.map(|part| GroupEntry { id: part.server_group_id.0, name: part.name.clone() })
.map(|part| GroupEntry { id: part.server_group_id.0, name: part.name.clone(), icon_id: part.icon.0 })
.collect();
emit(&Event::ServerGroupList { entries });
pending_server_group_list = false;
+12
View File
@@ -16,3 +16,15 @@ services:
# webspeak3:
# ports:
# - "8080:8080"
cloudflared:
image: cloudflare/cloudflared:latest
container_name: webspeak3-cloudflared
restart: unless-stopped
command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}
# Token comes from a gitignored .env file next to this compose file:
# CLOUDFLARE_TUNNEL_TOKEN=eyJ...
# No depends_on/network wiring needed - the tunnel's Public Hostname
# config (set in the Cloudflare dashboard) points at the webspeak3
# service by its Compose service name (http://webspeak3:8080), and
# Compose puts both services on the same default network automatically.
+6 -2
View File
@@ -36,11 +36,13 @@ export interface ClientInfo {
databaseId: number;
channelGroup: number;
serverGroups: number[];
hasTalkPower: boolean;
}
export interface GroupEntry {
id: number;
name: string;
iconId: number;
}
export interface PermissionOverviewEntry {
@@ -233,6 +235,7 @@ export class Ts3Connection {
database_id: number;
channel_group: number;
server_groups: number[];
has_talk_power: boolean;
}
interface RawChannelInfo {
@@ -336,8 +339,8 @@ export class Ts3Connection {
message: string;
timestamp: string;
}
| { type: "channelGroupList"; entries: { id: number; name: string }[] }
| { type: "serverGroupList"; entries: { id: number; name: string }[] }
| { type: "channelGroupList"; entries: GroupEntry[] }
| { type: "serverGroupList"; entries: GroupEntry[] }
| {
type: "permissionOverview";
entries: { name: string; description: string; value: number; negated: boolean; skip: boolean }[];
@@ -387,6 +390,7 @@ export class Ts3Connection {
databaseId: c.database_id,
channelGroup: c.channel_group,
serverGroups: c.server_groups,
hasTalkPower: c.has_talk_power,
})),
});
} else if (event.type === "privateMessage") {
+70
View File
@@ -0,0 +1,70 @@
import os
from pathlib import Path
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
BASE_URL = os.environ.get("BASE_URL", "https://client.webspeak3.de/")
RESULTS = Path("test-results")
RESULTS.mkdir(exist_ok=True)
def wait_for_text(driver: webdriver.Safari, selector: str, text: str) -> None:
WebDriverWait(driver, 15).until(
lambda current: text in current.find_element(By.CSS_SELECTOR, selector).text
)
def check_page(driver: webdriver.Safari, width: int, height: int, label: str) -> None:
driver.set_window_size(width, height)
driver.get(BASE_URL)
wait_for_text(driver, ".ts-app-title", "WebSpeak3")
assert "WebSpeak3" in driver.title
capabilities = driver.execute_script(
"""
return {
secureContext: window.isSecureContext,
mediaDevices: Boolean(navigator.mediaDevices),
getUserMedia: typeof navigator.mediaDevices?.getUserMedia === 'function',
audioContext: typeof (window.AudioContext || window.webkitAudioContext) === 'function',
webSocket: typeof window.WebSocket === 'function'
};
"""
)
assert capabilities["secureContext"]
assert capabilities["mediaDevices"]
assert capabilities["getUserMedia"]
assert capabilities["audioContext"]
assert capabilities["webSocket"]
connections_menu = driver.find_element(By.CSS_SELECTOR, ".ts-menubar-dropdown .ts-menubar-item")
driver.execute_script("arguments[0].click()", connections_menu)
connect_item = WebDriverWait(driver, 10).until(
lambda current: current.find_element(By.CSS_SELECTOR, ".ts-menu .ts-menu-item")
)
driver.execute_script("arguments[0].click()", connect_item)
dialog = WebDriverWait(driver, 10).until(
lambda current: current.find_element(By.CSS_SELECTOR, ".ts-connect-dialog")
)
assert dialog.is_displayed()
assert len(dialog.find_elements(By.CSS_SELECTOR, "input")) >= 3
driver.save_screenshot(str(RESULTS / f"safari-client-{label}.png"))
def main() -> None:
options = webdriver.SafariOptions()
driver = webdriver.Safari(options=options)
try:
check_page(driver, 1440, 1000, "desktop")
check_page(driver, 390, 844, "mobile")
finally:
driver.quit()
if __name__ == "__main__":
main()
+68
View File
@@ -0,0 +1,68 @@
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#071018" />
<meta name="color-scheme" content="dark" />
<link rel="icon" href="../favicon.ico" />
<link rel="canonical" href="https://webspeak3.de/" />
<title>WebSpeak3 – TeamSpeak 3 im Browser | Open Source</title>
<meta name="description" content="WebSpeak3 bringt TeamSpeak 3 mit Voice, Chat, Channel Tree und Whisper in den Browser. Open Source, mobil und vollständig selbst hostbar per Docker." />
<meta name="keywords" content="TeamSpeak 3 Browser, TS3 Web Client, TeamSpeak Web Client, WebSpeak3, self-hosted voice chat, Docker, Open Source" />
<meta name="author" content="Moepchi" />
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />
<meta name="googlebot" content="index, follow" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="de_DE" />
<meta property="og:site_name" content="WebSpeak3" />
<meta property="og:title" content="WebSpeak3 – TeamSpeak 3 direkt im Browser" />
<meta property="og:description" content="Der moderne, quelloffene und selbst gehostete Browser-Client für TeamSpeak 3 – mit Voice, Chat, Whisper und mobiler Oberfläche." />
<meta property="og:url" content="https://webspeak3.de/" />
<meta property="og:image" content="https://webspeak3.de/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="WebSpeak3 – TeamSpeak 3 im Browser" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="WebSpeak3 – TeamSpeak 3 direkt im Browser" />
<meta name="twitter:description" content="Open Source, mobil und selbst hostbar: Voice, Chat, Channel Tree und Whisper direkt im Browser." />
<meta name="twitter:image" content="https://webspeak3.de/og-image.png" />
<meta name="twitter:image:alt" content="WebSpeak3 – TeamSpeak 3 im Browser" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "WebSpeak3",
"description": "Ein moderner, quelloffener und selbst gehosteter Browser-Client für TeamSpeak 3 Server.",
"url": "https://webspeak3.de/",
"downloadUrl": "https://github.com/Moepchi/webspeak3",
"softwareHelp": "https://github.com/Moepchi/webspeak3#-installation",
"applicationCategory": "CommunicationApplication",
"applicationSubCategory": "VoiceChatApplication",
"operatingSystem": "Any modern web browser",
"isAccessibleForFree": true,
"license": "https://github.com/Moepchi/webspeak3/blob/main/LICENSE",
"codeRepository": "https://github.com/Moepchi/webspeak3",
"image": "https://webspeak3.de/og-image.png",
"author": {
"@type": "Person",
"name": "Moepchi",
"url": "https://github.com/Moepchi"
},
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "EUR"
}
}
</script>
</head>
<body>
<div id="landing-root"></div>
<script type="module" src="../src/landing.tsx"></script>
</body>
</html>
+4
View File
@@ -0,0 +1,4 @@
/landing/ / 301
/landing / 301
/index.html / 301
/ /landing/index.html 200
Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 379 KiB

+4
View File
@@ -0,0 +1,4 @@
User-agent: *
Allow: /
Sitemap: https://webspeak3.de/sitemap.xml
Binary file not shown.

After

Width:  |  Height:  |  Size: 421 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 811 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://webspeak3.de/</loc>
<lastmod>2026-08-11</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
</urlset>
+35 -1
View File
@@ -501,6 +501,8 @@
border-radius: 2px;
white-space: nowrap;
line-height: 18px;
width: 100%;
box-sizing: border-box;
}
.ts-server-row {
@@ -543,6 +545,14 @@
background: color-mix(in srgb, #4caf50 15%, transparent);
}
.ts-client-icons {
display: inline-flex;
align-items: center;
gap: 0.2rem;
margin-left: auto;
padding-right: 0.3rem;
}
.ts-status-icons {
display: inline-flex;
gap: 0.15rem;
@@ -550,8 +560,32 @@
opacity: 0.85;
}
.ts-group-icon {
width: 14px;
height: 14px;
object-fit: contain;
flex-shrink: 0;
}
.ts-group-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
border-radius: 50%;
flex-shrink: 0;
font-size: 9px;
font-weight: 700;
line-height: 1;
color: #fff;
}
.ts-poke-button {
margin-left: auto;
/* No margin-left: auto here - .ts-client-icons already has one, and two
auto margins in the same row split the free space between them (leaving
a gap before the icons instead of pushing the whole trailing group
flush to the edge). Let the poke button just trail the icon cluster. */
background: transparent;
border: none;
cursor: pointer;
+105 -18
View File
@@ -44,11 +44,22 @@ import {
import { parseSoundpack } from "./soundpack";
// In dev, the gateway runs standalone on its own port. In production it's
// served from the same origin/port as the web app (single container behind a
// reverse proxy), so derive the WebSocket URL from the current location.
// normally served from the same origin/port as the web app (single
// container behind a reverse proxy), so the WebSocket URL is derived from
// the current location by default. If the static frontend is hosted
// separately from the gateway (e.g. a static host for the landing/app
// bundle, with the gateway staying on your own server), set
// VITE_GATEWAY_URL at build time to the gateway's public wss:// address
// instead - the browser will still block a plain ws:// gateway from an
// https:// page (mixed content), so that address needs real TLS.
// Either way the gateway's WebSocketServer only listens on /ws (see
// gateway/src/index.ts), so that path always gets appended here - a
// VITE_GATEWAY_URL override only needs to name the host, not the path.
const GATEWAY_URL = import.meta.env.DEV
? "ws://localhost:8080"
: `${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws`;
: import.meta.env.VITE_GATEWAY_URL
? `${import.meta.env.VITE_GATEWAY_URL.replace(/\/$/, "")}/ws`
: `${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws`;
// One-time migration from the pre-rename "ts-web-client:*" localStorage
// namespace so existing users don't lose their favorites/preferences.
@@ -330,11 +341,13 @@ interface ClientInfo {
databaseId: number;
channelGroup: number;
serverGroups: number[];
hasTalkPower: boolean;
}
interface GroupEntry {
id: number;
name: string;
iconId: number;
}
interface PermissionOverviewEntry {
@@ -462,6 +475,9 @@ function ClientStatusIcons({ client }: { client: ClientInfo }) {
{client.isChannelCommander && <span title={t("tree.channelCommander")}>⭐</span>}
{client.away && <span title={t("tree.away")}>💤</span>}
{(client.inputMuted || !client.inputHardwareEnabled) && <span title={t("tree.micMuted")}>🔇</span>}
{!client.inputMuted && client.inputHardwareEnabled && !client.hasTalkPower && (
<span title={t("tree.noTalkPower")}>🔒</span>
)}
{client.outputMuted && <span title={t("tree.soundMuted")}>🔕</span>}
</span>
);
@@ -484,6 +500,8 @@ function ChannelTree({
parent,
ownClientId,
talkers,
serverGroups,
groupIconImages,
selected,
onSelectItem,
onSwitchChannel,
@@ -497,6 +515,8 @@ function ChannelTree({
parent: number;
ownClientId: number | null;
talkers: Set<number>;
serverGroups: GroupEntry[] | null;
groupIconImages: Record<string, string>;
selected: SelectedItem | null;
onSelectItem: (item: SelectedItem) => void;
onSwitchChannel: (channelId: number) => void;
@@ -509,6 +529,13 @@ function ChannelTree({
const children = channels.filter((c) => c.parent === parent).sort((a, b) => a.order - b.order);
if (children.length === 0) return null;
const clientGroupBadges = (client: ClientInfo): GroupEntry[] =>
serverGroups
? client.serverGroups
.map((gid) => serverGroups.find((g) => g.id === gid))
.filter((g): g is GroupEntry => !!g && g.iconId !== 0)
: [];
return (
<ul className="ts-tree-list">
{children.map((channel) => (
@@ -533,7 +560,7 @@ function ChannelTree({
<li key={c.id}>
<div
className={`ts-row ts-client-row${c.id === ownClientId ? " ts-self" : ""}${
talkers.has(c.id) ? " ts-talking" : ""
talkers.has(c.id) && c.hasTalkPower ? " ts-talking" : ""
}`}
onClick={c.id === ownClientId ? undefined : () => onOpenPrivateChat(c.id, c.name)}
onContextMenu={(e) => onClientContextMenu(e, c.id, c.name, c.id === ownClientId)}
@@ -545,19 +572,29 @@ function ChannelTree({
{c.away && c.awayMessage && (
<span className="ts-client-away-message">({c.awayMessage})</span>
)}
<ClientStatusIcons client={c} />
{c.id !== ownClientId && (
<button
className="ts-poke-button"
onClick={(e) => {
e.stopPropagation();
onPokeClient(c.id, c.name);
}}
title={`${t("tree.poke")} ${c.name}`}
>
👉
</button>
)}
<span className="ts-client-icons">
<ClientStatusIcons client={c} />
{clientGroupBadges(c).map((g) => {
if (g.iconId >= CUSTOM_ICON_ID_THRESHOLD) {
const base64 = groupIconImages[`/icon_${g.iconId}`];
if (base64) {
return (
<img key={g.id} className="ts-group-icon" src={iconDataUrl(base64)} alt="" title={g.name} />
);
}
}
return (
<span
key={g.id}
className="ts-group-badge"
style={{ background: groupBadgeColor(g.iconId) }}
title={g.name}
>
{g.name.trim().charAt(0).toUpperCase() || "?"}
</span>
);
})}
</span>
</div>
</li>
))}
@@ -568,6 +605,8 @@ function ChannelTree({
parent={channel.id}
ownClientId={ownClientId}
talkers={talkers}
serverGroups={serverGroups}
groupIconImages={groupIconImages}
selected={selected}
onSelectItem={onSelectItem}
onSwitchChannel={onSwitchChannel}
@@ -1886,6 +1925,22 @@ function iconDataUrl(base64: string): string {
return `data:${sniffImageMime(atob(base64))};base64,${base64}`;
}
// IDs below this are TeamSpeak's built-in default group icons - they ship
// inside the official client and were never uploaded to the server's icon
// filebase, so downloadFile() for them just hangs forever (nothing to send
// back). We don't have those graphics to embed, so those get a generic
// colored-letter badge instead; only real custom uploads (id >= threshold)
// are fetched as actual images.
const CUSTOM_ICON_ID_THRESHOLD = 1000;
/** Deterministic color for a group's letter badge - same icon id always
* produces the same hue, so a group looks consistent across the tree
* without needing the real (unavailable) TeamSpeak icon graphics. */
function groupBadgeColor(iconId: number): string {
const hue = (iconId * 47) % 360;
return `hsl(${hue}, 55%, 45%)`;
}
/** The icon repository lives under TS3's special "channel 0" - not a real,
* selectable channel, just the server-wide filebase icons are stored in.
* Icon files are always named "icon_<id>", where <id> is what a server/
@@ -4898,6 +4953,34 @@ function AppInner() {
}
}, [serverIconsOpen, serverIconEntries, serverIconImages]);
// Server group badges next to client names need the group list (for the
// id->icon lookup) even if the user never opens a group-related dialog -
// fetch it once per connection instead of only on demand.
useEffect(() => {
if (!connected || serverGroups) return;
socketRef.current?.send(JSON.stringify({ type: "getServerGroupList" }));
}, [connected, serverGroups]);
// Same icon-file cache as the server icons dialog (fileDownloadData for
// cid 0 always lands in serverIconImages, regardless of who asked) - fetch
// any group icon referenced by a currently visible client that isn't
// cached yet.
useEffect(() => {
if (!serverGroups) return;
const iconById = new Map(serverGroups.map((g) => [g.id, g.iconId]));
const wantedIconIds = new Set(
clients
.flatMap((c) => c.serverGroups.map((gid) => iconById.get(gid) ?? 0))
.filter((id) => id >= CUSTOM_ICON_ID_THRESHOLD)
);
for (const iconId of wantedIconIds) {
const path = `/icon_${iconId}`;
if (!(path in serverIconImages)) {
socketRef.current?.send(JSON.stringify({ type: "downloadFile", channelId: 0, path }));
}
}
}, [clients, serverGroups, serverIconImages]);
useEffect(() => {
if (!connected) {
setWhisperChannelIds(new Set());
@@ -5839,7 +5922,9 @@ function AppInner() {
const inputMuted = ownClient?.inputMuted ?? false;
const outputMuted = ownClient?.outputMuted ?? false;
const displayTalkers =
selfActive && ownClient ? new Set(talkers).add(ownClient.id) : talkers;
selfActive && !inputMuted && ownClient?.hasTalkPower
? new Set(talkers).add(ownClient.id)
: talkers;
const t = useT();
return (
@@ -7195,6 +7280,8 @@ function AppInner() {
parent={0}
ownClientId={ownClient?.id ?? null}
talkers={displayTalkers}
serverGroups={serverGroups}
groupIconImages={serverIconImages}
selected={selected}
onSelectItem={handleSelectItem}
onSwitchChannel={handleSwitchChannel}
+14 -12
View File
@@ -33,6 +33,7 @@ interface DemoClient {
databaseId: number;
channelGroup: number;
serverGroups: number[];
hasTalkPower: boolean;
}
const DEMO_CHANNELS: DemoChannel[] = [
@@ -42,24 +43,24 @@ const DEMO_CHANNELS: DemoChannel[] = [
];
const DEMO_CHANNEL_GROUPS = [
{ id: 1, name: "Channel Admin" },
{ id: 2, name: "Operator" },
{ id: 3, name: "Voice" },
{ id: 4, name: "Guest" },
{ id: 1, name: "Channel Admin", iconId: 0 },
{ id: 2, name: "Operator", iconId: 0 },
{ id: 3, name: "Voice", iconId: 0 },
{ id: 4, name: "Guest", iconId: 0 },
];
const DEMO_SERVER_GROUPS = [
{ id: 1, name: "Server Admin" },
{ id: 2, name: "Moderator" },
{ id: 3, name: "Trusted" },
{ id: 4, name: "Guest" },
{ id: 1, name: "Server Admin", iconId: 0 },
{ id: 2, name: "Moderator", iconId: 0 },
{ id: 3, name: "Trusted", iconId: 0 },
{ id: 4, name: "Guest", iconId: 0 },
];
const DEMO_NPCS: DemoClient[] = [
{ id: 102, channel: 1, name: "Alex", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: true, country: "US", uid: "demo-uid-alex", databaseId: 2, channelGroup: 2, serverGroups: [2] },
{ id: 103, channel: 2, name: "Sam", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: false, country: "GB", uid: "demo-uid-sam", databaseId: 3, channelGroup: 4, serverGroups: [4] },
{ id: 104, channel: 2, name: "Jordan", inputMuted: true, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: false, country: "CA", uid: "demo-uid-jordan", databaseId: 4, channelGroup: 4, serverGroups: [4] },
{ id: 105, channel: 3, name: "Riley", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: true, awayMessage: "brb, grabbing coffee", isChannelCommander: false, country: "DE", uid: "demo-uid-riley", databaseId: 5, channelGroup: 4, serverGroups: [3, 4] },
{ id: 102, channel: 1, name: "Alex", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: true, country: "US", uid: "demo-uid-alex", databaseId: 2, channelGroup: 2, serverGroups: [2], hasTalkPower: true },
{ id: 103, channel: 2, name: "Sam", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: false, country: "GB", uid: "demo-uid-sam", databaseId: 3, channelGroup: 4, serverGroups: [4], hasTalkPower: true },
{ id: 104, channel: 2, name: "Jordan", inputMuted: true, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: false, country: "CA", uid: "demo-uid-jordan", databaseId: 4, channelGroup: 4, serverGroups: [4], hasTalkPower: true },
{ id: 105, channel: 3, name: "Riley", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: true, awayMessage: "brb, grabbing coffee", isChannelCommander: false, country: "DE", uid: "demo-uid-riley", databaseId: 5, channelGroup: 4, serverGroups: [3, 4], hasTalkPower: true },
];
interface DemoFileEntry {
@@ -617,6 +618,7 @@ export class DemoSocket {
databaseId: 1,
channelGroup: this.selfChannelGroup,
serverGroups: [...this.selfServerGroups],
hasTalkPower: true,
};
this.emit({ type: "channels", channels: DEMO_CHANNELS, clients: [self, ...DEMO_NPCS] });
}
+2
View File
@@ -291,6 +291,7 @@ const translations: Record<Lang, Record<string, string>> = {
"tree.channelCommander": "Channel Commander",
"tree.away": "Abwesend",
"tree.micMuted": "Mikrofon stummgeschaltet",
"tree.noTalkPower": "Keine Redeerlaubnis in diesem Channel",
"tree.soundMuted": "Ton stummgeschaltet (deafened)",
"chat.server": "Server",
@@ -791,6 +792,7 @@ const translations: Record<Lang, Record<string, string>> = {
"tree.channelCommander": "Channel commander",
"tree.away": "Away",
"tree.micMuted": "Microphone muted",
"tree.noTalkPower": "No talk power in this channel",
"tree.soundMuted": "Sound muted (deafened)",
"chat.server": "Server",
+127
View File
@@ -0,0 +1,127 @@
:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#eaf3f8;background:#071018;font-synthesis:none;scroll-behavior:smooth}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 70% 3%,#0b2d3c 0,transparent 28%),#071018;color:#eaf3f8}.landing{overflow:hidden}.shell{width:min(1160px,calc(100% - 48px));margin:auto}.nav{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12}.brand{display:flex;align-items:center;gap:10px;color:#f5fbff;text-decoration:none;font:700 21px Inter,"Segoe UI",sans-serif}.brand img{width:35px;height:35px;border-radius:9px}.brand span span{color:#33c8ff}.nav nav{display:flex;gap:34px}.nav nav a,.nav-github{color:#9fb2bd;text-decoration:none;font-size:14px}.nav a:hover{color:white}.nav-github{padding:9px 14px;border:1px solid #ffffff20;border-radius:9px}.hero{min-height:680px;display:grid;grid-template-columns:48% 52%;align-items:center;padding-top:60px;padding-bottom:70px}.eyebrow,.kicker{font:600 12px Inter,"Segoe UI",sans-serif;letter-spacing:.14em;color:#3bd1ff}.eyebrow{display:flex;align-items:center;gap:9px}.eyebrow span{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 12px #34d399}.hero h1{font:700 clamp(52px,6vw,78px)/.98 Inter,"Segoe UI",sans-serif;letter-spacing:-.055em;margin:22px 0}.hero h1 em{font-style:normal;background:linear-gradient(90deg,#28c5ff,#79e0ff);background-clip:text;color:transparent}.hero-copy>p{max-width:560px;color:#9eb1bd;font-size:18px;line-height:1.7}.actions{display:flex;gap:12px;align-items:center;margin-top:32px}.button{display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:14px 20px;border-radius:10px;text-decoration:none;font-weight:700;font-size:14px}.primary{background:#20bbed;color:#00141d;box-shadow:0 8px 30px #11b8eb2d}.primary:hover{background:#61d7fa}.secondary{color:#e7f1f6;border:1px solid #ffffff25;background:#ffffff08}.demo-note{font-size:12px!important;color:#708792!important}.demo-note span{color:#35d393}.hero-visual{position:relative;padding-left:34px}.glow{position:absolute;width:440px;height:300px;background:#17bce633;filter:blur(80px);inset:70px 0 0 80px}.app-frame{position:relative;z-index:1;background:#111d26;border:1px solid #5ddcff38;border-radius:14px;padding:8px;box-shadow:0 36px 80px #0008;transform:perspective(1200px) rotateY(-4deg) rotateX(2deg)}.frame-bar{height:34px;display:flex;align-items:center;gap:6px;padding:0 7px;color:#68808c;font-size:10px}.frame-bar i{width:7px;height:7px;border-radius:50%;background:#344752}.frame-bar span{margin-left:8px}.app-frame img{width:100%;display:block;border-radius:7px}.signal-card{position:absolute;z-index:2;right:-15px;bottom:-35px;display:flex;align-items:center;gap:11px;padding:13px 15px;background:#101f29e8;border:1px solid #35d49a55;border-radius:12px;box-shadow:0 15px 40px #0007}.signal-card .signal{color:#40dda2;font-size:23px}.signal-card div{display:flex;flex-direction:column}.signal-card strong{font-size:12px}.signal-card small{font-size:9px;color:#78909c}.signal-card b{width:7px;height:7px;border-radius:50%;background:#3bd49e}.trust{height:90px;border-top:1px solid #ffffff10;border-bottom:1px solid #ffffff10;display:flex;align-items:center;justify-content:space-between;color:#6c808b}.trust span{font-size:11px;text-transform:uppercase;letter-spacing:.15em}.trust strong{font:600 15px Inter,"Segoe UI",sans-serif;color:#8da0aa}.section{padding-top:118px;padding-bottom:118px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:52px}.section-head h2,.privacy h2,.showcase h2,.install h2{font:600 clamp(36px,4vw,52px)/1.08 Inter,"Segoe UI",sans-serif;letter-spacing:-.04em;margin:13px 0 0}.section-head>p{max-width:420px;color:#8398a4;line-height:1.7}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.feature-grid article{min-height:220px;padding:28px;border:1px solid #ffffff10;background:linear-gradient(145deg,#0d1922,#09141c);border-radius:14px}.icon{display:grid;place-items:center;width:42px;height:42px;background:#16bcea12;border:1px solid #2acaf72e;border-radius:10px}.icon svg{width:22px;fill:none;stroke:#32c9f4;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.feature-grid h3{font:600 18px Inter,"Segoe UI",sans-serif;margin:24px 0 10px}.feature-grid p,.privacy p,.showcase p,.install p{color:#8196a2;line-height:1.7}.privacy{padding:105px 0;background:linear-gradient(110deg,#07131b,#0a222c);border-block:1px solid #ffffff0c}.privacy-inner{display:flex;justify-content:space-between;align-items:center}.privacy-copy{max-width:620px}.icon.large{width:50px;height:50px;margin-bottom:25px}.privacy ul{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0;list-style:none;color:#b5c5cd}.privacy li:before{content:"✓";color:#35d4a0;margin-right:9px}.privacy-card{width:300px;height:330px;border:1px solid #32c9f42c;border-radius:50% 50% 16px 16px;display:flex;flex-direction:column;align-items:cenLine truncated
@media(max-width:900px){.nav nav{display:none}.hero{grid-template-columns:1fr;padding-top:85px}.hero-visual{margin-top:60px;padding-left:0}.feature-grid{grid-template-columns:1fr 1fr}.trust{display:grid;grid-template-columns:repeat(3,1fr);height:auto;padding-block:24px;gap:18px}.trust span{grid-column:1/-1}.privacy-inner{gap:40px}.privacy-card{width:240px;height:280px}.flow{display:grid;grid-template-columns:1fr 1fr;gap:14px}.flow-wrap{display:block}.flow-arrow{display:none}.showcase{grid-template-columns:1fr}.screens{margin-top:20px}.footer-inner{flex-wrap:wrap;gap:20px}}
@media(max-width:600px){.shell{width:min(100% - 30px,1160px)}.nav{height:68px}.nav-github{font-size:0}.nav-github:before{content:"GitHub";font-size:13px}.hero{min-height:auto;padding-top:68px}.hero h1{font-size:48px}.hero-copy>p{font-size:16px}.actions{align-items:stretch;flex-direction:column}.hero-visual{margin-top:45px}.signal-card{right:5px;bottom:-40px}.trust{margin-top:80px}.feature-grid{grid-template-columns:1fr}.section{padding-block:85px}.section-head{display:block}.privacy-inner{display:block}.privacy ul{grid-template-columns:1fr}.privacy-card{margin:55px auto 0}.flow{grid-template-columns:1fr}.showcase{gap:25px}.screens{height:270px}.screens img{width:86%}.command code{font-size:11px}.footer-inner{display:block;text-align:center}.footer-inner .brand{justify-content:center}.footer-inner>div{justify-content:center;margin-top:20px}}
/* Visual depth and product personality */
.landing{position:relative;background-image:linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);background-size:72px 72px}.landing:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#071018 0,transparent 18%,transparent 82%,#071018 100%);pointer-events:none}.ambient{position:absolute;border-radius:50%;filter:blur(90px);opacity:.24;pointer-events:none;animation:drift 12s ease-in-out infinite alternate}.ambient-one{width:420px;height:420px;background:#04bde7;right:-180px;top:780px}.ambient-two{width:360px;height:360px;background:#4567ff;left:-220px;top:1900px;animation-delay:-5s}@keyframes drift{to{transform:translate3d(0,90px,0) scale(1.15)}}.shell{position:relative;z-index:1}.hero-stats{display:flex;gap:28px;margin-top:30px}.hero-stats span{display:flex;flex-direction:column;color:#5e7783;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.hero-stats strong{color:#cce2eb;font-size:13px;letter-spacing:0;margin-bottom:4px}.signal-card b{box-shadow:0 0 0 0 #3bd49e;animation:pulse 2s infinite}@keyframes pulse{70%{box-shadow:0 0 0 8px #3bd49e00}}.voice-waves{position:absolute;z-index:2;left:4px;bottom:26px;height:54px;display:flex;align-items:center;gap:4px;padding:10px 12px;background:#07131bd9;border:1px solid #36caf52d;border-radius:10px;backdrop-filter:blur(12px)}.voice-waves i,.mini-wave i{display:block;width:3px;border-radius:3px;background:linear-gradient(#4ee3ff,#23c991);animation:wave 1.25s ease-in-out infinite}.voice-waves i:nth-child(3n){animation-delay:-.7s}.voice-waves i:nth-child(2n){animation-delay:-.35s}@keyframes wave{0%,100%{height:8px;opacity:.45}50%{height:34px;opacity:1}}.feature-grid{grid-template-columns:repeat(12,1fr)}.feature-grid article{grid-column:span 4;min-height:235px;position:relative;overflow:hidden;transition:transform .25s ease,border-color .25s ease,background .25s ease}.feature-grid article:hover{transform:translateY(-5px);border-color:#35cdf34a;background:linear-gradient(145deg,#10232d,#09141c)}.feature-grid .feature-1,.feature-grid .feature-5{grid-column:span 7}.feature-grid .feature-2,.feature-grid .feature-6{grid-column:span 5}.card-index{position:absolute;right:20px;top:17px;color:#ffffff12;font:700 34px Inter,sans-serif}.feature-1:after,.feature-5:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:#21c9ee17;right:-50px;bottom:-90px}.mini-wave{position:absolute;right:38px;bottom:45px;height:56px;display:flex;align-items:center;gap:5px}.mini-wave i{width:4px;animation-duration:1.6s}.mini-wave i:nth-child(odd){animation-delay:-.8s}
@media(max-width:900px){.feature-grid{grid-template-columns:1fr 1fr}.feature-grid article,.feature-grid .feature-1,.feature-grid .feature-2,.feature-grid .feature-5,.feature-grid .feature-6{grid-column:auto}}
@media(max-width:600px){.landing{background-size:48px 48px}.feature-grid{grid-template-columns:1fr}.mini-wave{opacity:.35}.hero-stats{gap:14px;justify-content:space-between}.voice-waves{left:10px;bottom:-25px}}
@media(prefers-reduced-motion:reduce){.ambient,.signal-card b,.voice-waves i,.mini-wave i{animation:none}}
/* Motion system */
.hero-copy{animation:hero-in .85s cubic-bezier(.2,.75,.25,1) both}.hero-visual{animation:visual-in 1s .12s cubic-bezier(.2,.75,.25,1) both}.app-frame{animation:float-frame 6s 1.2s ease-in-out infinite}.nav{animation:nav-in .7s ease-out both}@keyframes hero-in{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}@keyframes visual-in{from{opacity:0;transform:translateX(50px) scale(.96)}to{opacity:1;transform:none}}@keyframes nav-in{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:none}}@keyframes float-frame{0%,100%{transform:perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0)}50%{transform:perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-10px)}}.button.primary{position:relative;overflow:hidden}.button.primary:after{content:"";position:absolute;inset:-50%;background:linear-gradient(110deg,transparent 42%,#ffffff7d 50%,transparent 58%);transform:translateX(-90%);animation:cta-shine 4.5s 2s ease-in-out infinite}@keyframes cta-shine{0%,68%{transform:translateX(-90%)}88%,100%{transform:translateX(90%)}}.reveal{opacity:0;transform:translateY(42px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.75,.25,1)}.reveal.is-visible{opacity:1;transform:none}.feature-grid article{transition-delay:calc(var(--card-order,0) * 70ms)}.flow-wrap{opacity:0;transform:translateY(20px);transition:opacity .55s var(--delay) ease,transform .55s var(--delay) ease}.is-visible .flow-wrap{opacity:1;transform:none}.flow-arrow{overflow:visible}.flow-arrow em{position:absolute;width:6px;height:6px;border-radius:50%;background:#62e4ff;box-shadow:0 0 12px #36d8ff;left:0;top:calc(50% - 3px);animation:data-packet 1.8s linear infinite}@keyframes data-packet{to{transform:translateX(38px)}}.privacy-card:before{content:"";position:absolute;inset:8%;border-radius:50%;border:1px dashed #45d8fa24;animation:orbit 16s linear infinite}.privacy-card:after{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:#45d8fa;top:15%;left:26%;box-shadow:0 0 16px #45d8fa}@keyframes orbit{to{transform:rotate(360deg)}}.screens img:first-child{animation:screen-dark 6s ease-in-out infinite}.screens img:last-child{animation:screen-light 6s ease-in-out infinite}@keyframes screen-dark{0%,100%{transform:translateY(0) rotate(.2deg)}50%{transform:translateY(-8px) rotate(-.5deg)}}@keyframes screen-light{0%,100%{transform:translateY(0) rotate(-.4deg)}50%{transform:translateY(7px) rotate(.3deg)}}
@media(prefers-reduced-motion:reduce){.hero-copy,.hero-visual,.app-frame,.nav,.button.primary:after,.flow-arrow em,.privacy-card:before,.screens img{animation:none}.reveal,.flow-wrap{opacity:1;transform:none;transition:none}}
/* Refined architecture stream and self-hosting orbit */
.flow-arrow{height:26px;display:flex;align-items:center;justify-content:center;overflow:hidden}.flow-arrow i{height:2px;top:12px;background:linear-gradient(90deg,#173a47 0%,#2acafa 35%,#9cecff 50%,#2acafa 65%,#173a47 100%);background-size:220% 100%;animation:stream-line 2.2s linear infinite}.flow-arrow b{font-size:22px;line-height:1;color:#7de5ff;background:#071018;padding:0 2px;transform:translateX(13px)}.flow-arrow em{display:none}@keyframes stream-line{to{background-position:-220% 0}}.privacy-card{border-radius:50%;width:330px;height:330px;border-color:#39d4f050;background:radial-gradient(circle,#16c8f51d 0,#0a1d2766 50%,transparent 72%);box-shadow:inset 0 0 50px #22c6ed12,0 0 60px #16c8f50d}.privacy-card:before,.privacy-card:after{display:none}.orbit{position:absolute;border-radius:50%;border:1px solid #55dcf85c;pointer-events:none}.orbit i{position:absolute;width:9px;height:9px;border-radius:50%;background:#70e5ff;box-shadow:0 0 14px #42dafa}.orbit-outer{inset:-18px;border-style:dashed;animation:orbit 18s linear infinite}.orbit-outer i{top:18%;right:5%}.orbit-inner{inset:24px;border-color:#45d2ed27;animation:orbit 11s linear infinite reverse}.orbit-inner i{width:6px;height:6px;bottom:10%;left:16%;background:#45dda6;box-shadow:0 0 12px #45dda6}.privacy-card>span,.privacy-card>strong,.privacy-card>small{position:relative;z-index:2}
@media(max-width:900px){.privacy-card{width:260px;height:260px}.orbit-outer{inset:-12px}}
@media(prefers-reduced-motion:reduce){.flow-arrow i,.orbit{animation:none}}
/* Clean architecture connectors */
.flow-wrap:not(:last-child){flex:1.08}.flow-wrap:last-child{flex:.92}.flow-arrow{position:relative;width:54px;min-width:54px;height:22px;margin:0 8px;overflow:visible;background:none}.flow-arrow i{position:absolute;left:0;right:5px;top:10px;width:auto;height:1px;background:#2ecdf65c;animation:none}.flow-arrow:after{content:"";position:absolute;right:4px;top:7px;width:6px;height:6px;border-top:1px solid #69e1ff;border-right:1px solid #69e1ff;transform:rotate(45deg)}.flow-arrow:before{content:"";position:absolute;z-index:2;left:2px;top:8px;width:16px;height:5px;border-radius:99px;background:linear-gradient(90deg,transparent,#81e9ff,transparent);filter:drop-shadow(0 0 5px #38d8ff);animation:connector-pulse 2.4s ease-in-out infinite}@keyframes connector-pulse{0%{transform:translateX(0);opacity:0}15%{opacity:1}75%{opacity:1}100%{transform:translateX(31px);opacity:0}}.flow-arrow b{display:none}
@media(max-width:900px){.flow-wrap:not(:last-child),.flow-wrap:last-child{flex:auto}.flow-arrow{display:none}}
@media(prefers-reduced-motion:reduce){.flow-arrow:before{animation:none;opacity:.7;transform:translateX(16px)}}
/* Staggered feature-card entrance */
.feature-grid{perspective:1000px}.feature-grid article{opacity:0;transform:translateY(38px) scale(.96) rotateX(5deg);transform-origin:center bottom}.feature-grid article:nth-child(1){--card-delay:80ms}.feature-grid article:nth-child(2){--card-delay:160ms}.feature-grid article:nth-child(3){--card-delay:240ms}.feature-grid article:nth-child(4){--card-delay:320ms}.feature-grid article:nth-child(5){--card-delay:400ms}.feature-grid article:nth-child(6){--card-delay:480ms}.is-visible .feature-grid article{animation:card-arrive .72s var(--card-delay) cubic-bezier(.16,.82,.26,1) both}@keyframes card-arrive{0%{opacity:0;transform:translateY(38px) scale(.96) rotateX(5deg);border-color:#ffffff08}65%{opacity:1;transform:translateY(-4px) scale(1.008) rotateX(0);border-color:#38d2fa32}100%{opacity:1;transform:none;border-color:#ffffff10}}.feature-grid article .icon{opacity:0;transform:scale(.65) rotate(-10deg)}.is-visible .feature-grid article .icon{animation:icon-pop .48s calc(var(--card-delay) + 280ms) cubic-bezier(.2,1.4,.35,1) both}@keyframes icon-pop{to{opacity:1;transform:none}}.feature-grid article .card-index{opacity:0;transform:translateX(14px)}.is-visible .feature-grid article .card-index{animation:index-in .45s calc(var(--card-delay) + 220ms) ease-out both}@keyframes index-in{to{opacity:1;transform:none}}.feature-grid article:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,#4cdcff0b 48%,transparent 66%);transform:translateX(-100%);pointer-events:none}.is-visible .feature-grid article:before{animation:card-sheen .85s calc(var(--card-delay) + 180ms) ease-out both}@keyframes card-sheen{to{transform:translateX(100%)}}.is-visible .feature-grid article:hover{transform:translateY(-6px) scale(1.008);border-color:#35cdf34a;box-shadow:0 18px 45px #0003,0 0 0 1px #38d5fb0a}
@media(prefers-reduced-motion:reduce){.feature-grid article,.feature-grid article .icon,.feature-grid article .card-index{opacity:1;transform:none}.is-visible .feature-grid article,.is-visible .feature-grid article .icon,.is-visible .feature-grid article .card-index,.is-visible .feature-grid article:before{animation:none}}
/* Language switch */
.nav-actions{display:flex;align-items:center;gap:10px}.language-switch{display:flex;align-items:center;padding:3px;border:1px solid #ffffff18;border-radius:9px;background:#06101899}.language-switch button{min-width:32px;padding:6px 7px;border:0;border-radius:6px;background:transparent;color:#68808c;font:700 10px Inter,"Segoe UI",sans-serif;letter-spacing:.06em;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease}.language-switch button:hover{color:#d7e8ef}.language-switch button.active{background:#1ec4f21c;color:#58dcff;box-shadow:inset 0 0 0 1px #35d5ff2c}.language-switch button:focus-visible{outline:2px solid #42d8ff;outline-offset:2px}
@media(max-width:600px){.nav-actions{gap:6px}.language-switch button{min-width:28px;padding-inline:5px}.nav-github{padding-inline:10px;font-size:0}.nav-github:before{content:"GitHub";font-size:13px}.nav-github span{font-size:13px}}
.hero-actions{flex-wrap:wrap}.hero-actions .button{padding-inline:17px}.button.tertiary{padding-inline:4px;color:#7f96a2;background:transparent}.button.tertiary:hover{color:#d9e9ef}
@media(max-width:600px){.hero-actions .button.tertiary{padding:10px 4px}}
/* Project status */
.status{border-top:1px solid #ffffff0d}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.status-grid article{position:relative;min-height:220px;padding:28px;background:linear-gradient(145deg,#0d1922,#09141c);border:1px solid #ffffff10;border-radius:14px;overflow:hidden}.status-grid article:after{content:"";position:absolute;width:130px;height:130px;right:-65px;bottom:-70px;border-radius:50%;background:#27c9f20c}.status-grid small{color:#6f8793;font-size:10px;text-transform:uppercase;letter-spacing:.13em}.status-grid h3{margin:28px 0 10px;font-size:19px}.status-grid p{margin:0;color:#8196a2;line-height:1.7}.status-dot{display:inline-block;width:8px;height:8px;margin-right:9px;border-radius:50%;background:#38d49b;box-shadow:0 0 12px #38d49b}.status-1{background:#3acbf4;box-shadow:0 0 12px #3acbf4}.status-2{background:#8d78ff;box-shadow:0 0 12px #8d78ff}.status-link{display:inline-block;margin-top:24px;color:#70dfff}.is-visible .status-grid article{animation:status-in .65s both}.is-visible .status-grid article:nth-child(2){animation-delay:100ms}.is-visible .status-grid article:nth-child(3){animation-delay:200ms}@keyframes status-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
/* Interactive product tour */
.product-tour{border-top:1px solid #ffffff0d}.tour-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,.75fr);gap:22px;align-items:stretch}.tour-screen{position:relative;align-self:start;padding:8px;background:#0d1922;border:1px solid #35cdf32a;border-radius:15px;box-shadow:0 30px 70px #0007}.tour-screen>img{display:block;width:100%;border-radius:9px}.hotspot{position:absolute;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #a6f0ff;background:#0b1b25e8;color:#b8f3ff;border-radius:50%;font:700 11px Inter,sans-serif;cursor:pointer;box-shadow:0 0 0 7px #28c9f51a,0 0 20px #22cef56b;transition:transform .2s ease,background .2s ease}.hotspot:hover,.hotspot.active{transform:scale(1.14);background:#2ac9f5;color:#04141b}.hotspot-tree{left:13%;top:31%}.hotspot-chat{left:58%;top:43%}.hotspot-voice{left:47%;bottom:13%}.hotspot-whisper{left:27%;top:54%}.hotspot:not(.active){animation:hotspot-pulse 2.6s ease-in-out infinite}@keyframes hotspot-pulse{50%{box-shadow:0 0 0 11px #28c9f505,0 0 26px #22cef580}}.tour-caption{position:absolute;display:flex;gap:13px;left:22px;right:22px;bottom:18px;padding:15px 18px;border:1px solid #ffffff17;background:#07131be8;border-radius:11px;backdrop-filter:blur(14px);box-shadow:0 12px 35px #0006}.tour-caption>span{color:#38d4fb;font:700 11px Inter,sans-serif}.tour-caption strong{font-size:14px}.tour-caption p{margin:4px 0 0;color:#7f97a3;font-size:11px;line-height:1.45}.tour-tabs{display:flex;flex-direction:column;gap:9px}.tour-tabs button{display:flex;flex:1;gap:14px;align-items:flex-start;padding:19px;text-align:left;color:#8ca0aa;background:#09141c;border:1px solid #ffffff0d;border-radius:12px;cursor:pointer;transition:border-color .2s ease,background .2s ease,transform .2s ease}.tour-tabs button:hover{transform:translateX(-3px);border-color:#38d4fa2c}.tour-tabs button.active{background:linear-gradient(120deg,#102732,#0b1922);border-color:#38d4fa4a}.tour-tabs button>span{color:#35d1fa;font:700 10px Inter,sans-serif}.tour-tabs button div{display:flex;flex-direction:column;gap:7px}.tour-tabs strong{color:#dce9ef;font-size:14px}.tour-tabs small{color:#718792;line-height:1.45}
/* Installation steps and copy feedback */
.install{padding-top:110px}.install-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:min(850px,100%);margin:38px auto 18px;text-align:left}.install-steps article{display:flex;gap:14px;padding:18px;background:#0b171f;border:1px solid #ffffff10;border-radius:12px}.install-steps article>span{color:#35cff8;font:700 11px Inter,sans-serif}.install-steps article div{display:flex;flex-direction:column;gap:6px}.install-steps strong{font-size:13px}.install-steps small{color:#718792;line-height:1.45}.command button{min-width:34px;white-space:nowrap}.command button.copied{color:#43d9a3;font:700 11px Inter,sans-serif}
/* FAQ */
.faq{padding-top:40px}.faq-list{width:min(850px,100%);margin:auto;border-top:1px solid #ffffff13}.faq-list details{border-bottom:1px solid #ffffff13}.faq-list summary{display:flex;align-items:center;gap:18px;padding:23px 4px;color:#dce9ef;font-weight:600;cursor:pointer;list-style:none}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary span{color:#35cef7;font:700 10px Inter,sans-serif}.faq-list summary i{margin-left:auto;color:#5fdcff;font-style:normal;font-size:22px;transition:transform .25s ease}.faq-list details[open] summary i{transform:rotate(45deg)}.faq-list details p{margin:0;padding:0 50px 24px;color:#8095a0;line-height:1.7}.faq-list details[open] p{animation:faq-in .3s ease-out both}@keyframes faq-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(max-width:900px){.status-grid{grid-template-columns:1fr}.status-grid article{min-height:auto}.tour-layout{grid-template-columns:1fr}.tour-tabs{display:grid;grid-template-columns:1fr 1fr}.tour-tabs button{min-height:115px}.install-steps{grid-template-columns:1fr}}
@media(max-width:600px){.tour-screen{padding:4px}.hotspot{width:28px;height:28px;box-shadow:0 0 0 5px #28c9f51a}.tour-caption{position:relative;left:auto;right:auto;bottom:auto;margin:5px 0 0;padding:13px}.tour-tabs{grid-template-columns:1fr}.tour-tabs button{min-height:auto}.install-steps{margin-top:28px}.faq{padding-top:20px}.faq-list summary{font-size:14px}.faq-list details p{padding-left:33px;padding-right:8px}.command{gap:10px}}
@media(prefers-reduced-motion:reduce){.is-visible .status-grid article,.hotspot:not(.active),.faq-list details[open] p{animation:none}}
/* Wide current-client preview */
.product-tour{width:min(1380px,calc(100% - 48px))}.product-tour .section-head{width:min(1160px,100%);margin-left:auto;margin-right:auto}.tour-layout{grid-template-columns:minmax(0,3.2fr) minmax(250px,.8fr);gap:18px}.tour-screen{padding:8px}.tour-image{position:relative;overflow:hidden;border-radius:9px}.tour-image>img{display:block;width:100%;height:auto}.hotspot-tree{left:11%;top:31%}.hotspot-chat{left:55%;top:82%}.hotspot-voice{left:18%;top:4.5%}.hotspot-whisper{left:19%;top:18%}.tour-caption{position:relative;left:auto;right:auto;bottom:auto;margin-top:8px;min-height:73px}.tour-tabs button{padding:17px}.tour-tabs small{font-size:11px}
@media(max-width:900px){.product-tour{width:min(100% - 48px,1160px)}.tour-layout{grid-template-columns:1fr}.tour-tabs button{padding:19px}}
@media(max-width:600px){.product-tour{width:min(100% - 30px,1160px)}.hotspot{width:26px;height:26px}.hotspot-tree{left:10%;top:29%}.hotspot-chat{left:54%;top:80%}.hotspot-voice{left:18%;top:3%}.hotspot-whisper{left:19%;top:18%}.tour-caption{margin-top:5px}}
/* Desktop and real mobile client composition */
.showcase .screens{height:510px}.screens .screen-desktop{width:86%;right:0;left:auto;top:42px;bottom:auto;z-index:1;border-color:#44d5fa33;box-shadow:0 28px 65px #000a}.phone-frame{position:absolute;z-index:3;left:0;bottom:0;width:27%;padding:8px 6px 7px;background:#09131a;border:1px solid #55dcfa50;border-radius:19px;box-shadow:0 28px 60px #000b,0 0 35px #25caf512;animation:phone-float 6s ease-in-out infinite}.phone-frame:before{content:"";position:absolute;inset:-1px;border-radius:19px;background:linear-gradient(145deg,#72e7ff55,transparent 25%,transparent 75%,#22c7ed22);pointer-events:none}.phone-frame>span{display:block;width:34%;height:4px;margin:0 auto 7px;border-radius:99px;background:#233943}.screens .phone-frame img,.screens .phone-frame img:last-child{position:relative;inset:auto;width:100%;display:block;border:0;border-radius:11px;box-shadow:none;animation:none}.screens .screen-desktop:first-child{animation:screen-dark 6s ease-in-out infinite}@keyframes phone-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-8px) rotate(-.3deg)}}
@media(max-width:900px){.showcase .screens{height:520px;max-width:760px;width:100%;margin-inline:auto}.screens .screen-desktop{width:86%}.phone-frame{width:27%}}
@media(max-width:600px){.showcase .screens{height:390px}.screens .screen-desktop{width:88%;top:38px}.phone-frame{left:7px;width:34%;padding:6px 4px 5px;border-radius:14px}.phone-frame:before{border-radius:14px}.phone-frame>span{height:3px;margin-bottom:5px}.screens .phone-frame img{border-radius:8px}}
@media(prefers-reduced-motion:reduce){.phone-frame{animation:none}}
/* Device-aware phone hardware */
.phone-frame{padding:7px 6px 12px;background:linear-gradient(145deg,#25323a,#050a0e 28%,#020507 72%,#18242b);border:1px solid #65808c;box-shadow:0 30px 65px #000c,0 0 36px #25caf516,inset 0 0 0 1px #ffffff0c}.phone-frame:after{content:"";position:absolute;inset:3px;border:1px solid #000;border-radius:inherit;pointer-events:none}.phone-sensor{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;height:14px}.phone-sensor span,.phone-sensor b{display:block}.phone-button{position:absolute;z-index:0;width:3px;background:linear-gradient(#70818a,#1b272d);border:1px solid #10171b;box-shadow:0 1px 2px #000}.phone-button-left{left:-4px}.phone-button-right{right:-4px}.phone-home{position:absolute;z-index:4;left:50%;bottom:4px;transform:translateX(-50%);height:3px;border-radius:99px;background:#b8c5ca80}.phone-android{border-radius:17px}.phone-android:before,.phone-android:after{border-radius:17px}.phone-android .phone-sensor span{width:7px;height:7px;border-radius:50%;background:#020405;box-shadow:inset 0 0 0 2px #142933,0 0 0 1px #000}.phone-android .phone-sensor span:after{content:"";display:block;width:2px;height:2px;margin:2px;border-radius:50%;background:#2f86a9}.phone-android .phone-sensor b{display:none}.phone-android .phone-button-left{display:none}.phone-android .phone-button-right{top:56px;height:42px;border-radius:0 3px 3px 0}.phone-android .phone-home{width:24%}.phone-android img{border-radius:10px!important}.phone-iphone{padding:7px 7px 13px;border-radius:27px;border-color:#83939b}.phone-iphone:before,.phone-iphone:after{border-radius:27px}.phone-iphone .phone-sensor{height:17px}.phone-iphone .phone-sensor span{position:relative;width:43px;height:12px;border-radius:99px;background:#010203;box-shadow:inset 0 1px 2px #000}.phone-iphone .phone-sensor span:after{content:"";position:absolute;right:5px;top:4px;width:4px;height:4px;border-radius:50%;background:#071b2b;box-shadow:inset 0 0 0 1px #173c52}.phone-iphone .phone-sensor b{display:none}.phone-iphone .phone-button-left{top:58px;height:34px;border-radius:3px 0 0 3px;box-shadow:0 42px 0 #26353d,0 72px 0 #26353d}.phone-iphone .phone-button-right{top:72px;height:48px;border-radius:0 3px 3px 0}.phone-iphone .phone-home{width:34%;background:#e1e8ebaa}.phone-iphone img{border-radius:19px!important}
@media(max-width:600px){.phone-frame{padding:5px 4px 10px}.phone-sensor{height:10px}.phone-android .phone-sensor span{width:5px;height:5px}.phone-android .phone-sensor span:after{width:1px;height:1px;margin:2px}.phone-android .phone-button-right{top:40px;height:30px}.phone-iphone{padding:5px 5px 11px;border-radius:19px}.phone-iphone:before,.phone-iphone:after{border-radius:19px}.phone-iphone .phone-sensor{height:12px}.phone-iphone .phone-sensor span{width:30px;height:8px}.phone-iphone .phone-sensor span:after{right:4px;top:3px;width:3px;height:3px}.phone-iphone .phone-button-left{top:42px;height:24px;box-shadow:0 30px 0 #26353d,0 51px 0 #26353d}.phone-iphone .phone-button-right{top:50px;height:34px}.phone-iphone img{border-radius:13px!important}}
/* Refined edge-to-edge iPhone */
.phone-iphone{width:28%;padding:5px;background:linear-gradient(145deg,#55585b,#17191b 18%,#050607 55%,#2f3234);border:1px solid #777b7e;border-radius:24px;box-shadow:0 30px 60px #000b,0 0 0 1px #000,inset 0 0 0 1px #ffffff18}.phone-iphone:before{inset:1px;border-radius:23px;background:linear-gradient(120deg,#ffffff1f,transparent 18%,transparent 78%,#ffffff0d)}.phone-iphone:after{inset:4px;border-color:#020303;border-radius:20px}.phone-iphone .phone-sensor{position:absolute;z-index:6;top:10px;left:50%;width:auto;height:auto;transform:translateX(-50%)}.phone-iphone .phone-sensor span{width:38px;height:11px;background:#010101;box-shadow:0 1px 3px #000,inset 0 0 0 1px #151719}.phone-iphone .phone-sensor span:after{right:5px;top:4px;width:3px;height:3px;background:#0b2134}.phone-iphone .phone-button{width:2px;background:#3c3f42;border-color:#151719;box-shadow:none}.phone-iphone .phone-button-left{left:-3px;top:58px;height:27px;box-shadow:0 36px 0 #3c3f42,0 65px 0 #3c3f42}.phone-iphone .phone-button-right{right:-3px;top:74px;height:40px}.phone-iphone .phone-home{bottom:9px;width:31%;height:3px;background:#eef2f3d9;filter:drop-shadow(0 1px 1px #000)}.screens .phone-iphone img{border-radius:19px!important}
@media(max-width:600px){.phone-iphone{left:7px;width:35%;padding:4px;border-radius:18px}.phone-iphone:before{border-radius:17px}.phone-iphone:after{inset:3px;border-radius:15px}.phone-iphone .phone-sensor{top:7px}.phone-iphone .phone-sensor span{width:27px;height:8px}.phone-iphone .phone-sensor span:after{right:4px;top:3px;width:2px;height:2px}.phone-iphone .phone-button-left{top:42px;height:19px;box-shadow:0 26px 0 #3c3f42,0 47px 0 #3c3f42}.phone-iphone .phone-button-right{top:51px;height:29px}.phone-iphone .phone-home{bottom:6px;height:2px}.screens .phone-iphone img{border-radius:14px!important}}
/* Edge-to-edge Android display overlays */
.phone-android{padding:5px}.phone-android .phone-sensor{position:absolute;z-index:6;top:10px;left:50%;width:auto;height:auto;transform:translateX(-50%)}.phone-android .phone-sensor span{width:8px;height:8px;background:#020405;box-shadow:0 0 0 1px #000,0 1px 3px #000,inset 0 0 0 2px #142933}.phone-android .phone-sensor span:after{width:2px;height:2px;margin:3px;background:#338db2}.phone-android .phone-home{z-index:6;bottom:9px;width:28%;height:3px;background:#d6e1e599;filter:drop-shadow(0 1px 1px #000)}.screens .phone-android img{border-radius:12px!important}
@media(max-width:600px){.phone-android{padding:4px}.phone-android .phone-sensor{top:7px}.phone-android .phone-sensor span{width:6px;height:6px}.phone-android .phone-sensor span:after{width:2px;height:2px;margin:2px}.phone-android .phone-home{bottom:6px;height:2px}.screens .phone-android img{border-radius:9px!important}}
/* Animated three-step connection */
.quick-connect{border-bottom:1px solid #ffffff0d}.connect-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:34px;align-items:stretch}.connect-steps{display:flex;flex-direction:column;gap:10px}.connect-steps article{display:flex;align-items:center;gap:18px;flex:1;padding:20px 22px;background:#0a161e;border:1px solid #ffffff0f;border-radius:12px}.connect-steps article>span{color:#35cff8;font:700 11px Inter,sans-serif}.connect-steps article div{display:flex;flex-direction:column;gap:6px}.connect-steps strong{font-size:14px}.connect-steps small{color:#718792;line-height:1.5}.connect-demo{position:relative;padding:24px;background:linear-gradient(145deg,#0e1e28,#071119);border:1px solid #42d8fa35;border-radius:16px;box-shadow:0 28px 70px #0007;overflow:hidden}.connect-demo:after{content:"";position:absolute;width:260px;height:260px;right:-120px;bottom:-150px;border-radius:50%;background:#25cdf617}.demo-window-bar{display:flex;align-items:center;gap:6px;margin:-6px 0 24px;color:#607884;font-size:10px}.demo-window-bar i{width:7px;height:7px;border-radius:50%;background:#314650}.demo-window-bar span{margin-left:7px}.connect-demo label{position:relative;z-index:1;display:block;margin-top:13px}.connect-demo label small{display:block;margin-bottom:7px;color:#718995;font-size:10px;text-transform:uppercase;letter-spacing:.1em}.fake-input{height:48px;display:flex;align-items:center;padding:0 14px;background:#050b10;border:1px solid #ffffff15;border-radius:9px;color:#c9d8df;font:500 13px ui-monospace,SFMono-Regular,Consolas,monospace;overflow:hidden}.typed-server{display:block;width:0;white-space:nowrap;overflow:hidden}.is-visible .typed-server{animation:type-server 9s 1s steps(19,end) infinite}.fake-input b{width:1px;height:19px;background:#48d7fa;animation:input-caret .75s step-end infinite}.connect-demo>button{position:relative;z-index:1;width:100%;height:46px;margin-top:17px;border:0;border-radius:9px;background:#26c6f3;color:#04141b;font-weight:800;cursor:pointer}.connect-demo>button span{margin-left:12px}.is-visible .connect-demo>button{animation:connect-button 9s 1s infinite}.connect-progress{position:relative;z-index:1;height:22px;display:flex;align-items:center;justify-content:center;margin-top:14px;color:#78909b;font-size:11px}.connect-progress i{width:6px;height:6px;margin-right:8px;border-radius:50%;background:#38d89e;box-shadow:0 0 10px #38d89e}.connect-progress span{position:absolute}.progress-connected{color:#53dda9;opacity:0}.is-visible .progress-connecting{animation:connecting-text 9s 1s infinite}.is-visible .progress-connected{animation:connected-text 9s 1s infinite}@keyframes type-server{0%,8%{width:0}34%,78%{width:19ch}88%,100%{width:0}}@keyframes input-caret{50%{opacity:0}}@keyframes connect-button{0%,38%{box-shadow:none;transform:none}43%{box-shadow:0 0 0 5px #29cbf21c;transform:translateY(1px)}48%,100%{box-shadow:none;transform:none}}@keyframes connecting-text{0%,48%{opacity:1}53%,100%{opacity:0}}@keyframes connected-text{0%,50%{opacity:0}55%,82%{opacity:1}88%,100%{opacity:0}}
/* Live public GitHub stats */
.github-live{padding:90px 0;background:linear-gradient(110deg,#07131b,#0a202a);border-block:1px solid #ffffff0d}.github-inner{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:center}.github-copy h2{font:600 clamp(32px,3.5vw,46px)/1.08 Inter,sans-serif;letter-spacing:-.04em;margin:13px 0}.github-copy p{color:#8196a2;line-height:1.7}.github-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.github-metrics article{min-height:155px;display:flex;flex-direction:column;justify-content:center;padding:22px;background:#08141c;border:1px solid #ffffff10;border-radius:13px}.github-metrics article>span{color:#35d0f8;font-size:16px}.github-metrics strong{margin:12px 0 6px;color:#e4f0f5;font-size:23px}.github-metrics small{color:#718792;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
/* Install method switcher */
.install-tabs{width:min(700px,100%);display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:24px auto 8px;padding:5px;background:#050b10;border:1px solid #ffffff12;border-radius:11px}.install-tabs button{padding:10px 8px;border:0;border-radius:7px;background:transparent;color:#708792;font:700 11px Inter,sans-serif;cursor:pointer}.install-tabs button:hover{color:#d5e6ed}.install-tabs button.active{color:#53d9fb;background:#1bc8f216;box-shadow:inset 0 0 0 1px #3ed7fa2a}.command code{white-space:pre-wrap;overflow-wrap:anywhere}
/* Browser compatibility */
.browser-check{border-top:1px solid #ffffff0d}.browser-table{border:1px solid #ffffff10;border-radius:14px;overflow:hidden}.browser-table article{display:grid;grid-template-columns:44px 1fr 160px 1.4fr;align-items:center;gap:16px;min-height:78px;padding:14px 20px;background:#0a151d;border-bottom:1px solid #ffffff0d}.browser-table article:last-child{border-bottom:0}.browser-logo{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:#061117;font-weight:900;background:linear-gradient(145deg,#38d5fa,#38da9c)}.browser-1{background:linear-gradient(145deg,#f5c84d,#ec6a42)}.browser-2{background:linear-gradient(145deg,#9272ff,#4a9df5)}.browser-3{background:linear-gradient(145deg,#55dafa,#4c7fff)}.browser-table strong{font-size:14px}.browser-table b{justify-self:start;padding:6px 9px;border-radius:99px;background:#35d29b12;color:#53dca8;font-size:10px}.browser-table article:last-child b{background:#f2b84a12;color:#efc469}.browser-table small{color:#718792;line-height:1.45}
@media(max-width:900px){.connect-layout,.github-inner{grid-template-columns:1fr}.github-inner{gap:35px}.github-metrics{grid-template-columns:repeat(3,1fr)}.browser-table article{grid-template-columns:44px 1fr 130px}.browser-table small{grid-column:2/-1}}
@media(max-width:600px){.connect-layout{gap:18px}.connect-demo{padding:18px}.github-live{padding:70px 0}.github-metrics{grid-template-columns:1fr}.github-metrics article{min-height:110px}.install-tabs{grid-template-columns:1fr 1fr}.browser-table article{grid-template-columns:38px 1fr;gap:10px;padding:16px}.browser-table b{grid-column:2}.browser-table small{grid-column:2}}
@media(prefers-reduced-motion:reduce){.typed-server{width:19ch}.is-visible .typed-server,.fake-input b,.is-visible .connect-demo>button,.is-visible .progress-connecting,.is-visible .progress-connected{animation:none}.progress-connecting{display:none}.progress-connected{opacity:1}}
/* Keep the animated connection indicator beside its label. */
.connect-progress>i{display:none}
.connect-progress span{display:flex;align-items:center;gap:8px}
.progress-connecting:before{content:"";flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:#38d89e;box-shadow:0 0 10px #38d89e}
/* Open-source community callout */
.community{position:relative;padding:100px 0;background:linear-gradient(135deg,#07131b 0%,#09232d 52%,#07131b 100%);border-block:1px solid #ffffff0d;overflow:hidden}.community:before{content:"";position:absolute;inset:-50% auto auto 55%;width:520px;height:520px;border-radius:50%;background:#27cff611;filter:blur(3px)}.community-inner{position:relative}.community-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:42px}.community-grid>a{position:relative;min-height:245px;display:flex;flex-direction:column;justify-content:space-between;padding:26px;color:inherit;text-decoration:none;background:#07131bd9;border:1px solid #ffffff11;border-radius:14px;overflow:hidden;transition:transform .25s ease,border-color .25s ease,background .25s ease}.community-grid>a:after{content:"";position:absolute;right:-60px;bottom:-80px;width:170px;height:170px;border-radius:50%;background:#27cff60b;transition:transform .35s ease,background .35s ease}.community-grid>a:hover{transform:translateY(-6px);border-color:#39d4f84a;background:#091a23}.community-grid>a:hover:after{transform:scale(1.2);background:#27cff616}.community-icon{position:relative;z-index:1;display:grid;place-items:center;width:43px;height:43px;margin-bottom:34px;border-radius:11px;color:#42d5f8;background:#24c8f012;border:1px solid #30d2f836;font:800 17px Inter,sans-serif}.community-idea{color:#efc66d;background:#efc66d10;border-color:#efc66d32}.community-code{width:52px;color:#65dea9;background:#42d99c10;border-color:#42d99c32;font-size:13px}.community-grid a div{position:relative;z-index:1}.community-grid strong{font-size:18px;color:#e1edf2}.community-grid p{min-height:66px;margin:12px 0 22px;color:#748b96;font-size:13px;line-height:1.65}.community-grid small{color:#3bcff3;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.community-grid small b{margin-left:5px}.community-note{display:flex;align-items:center;justify-content:center;gap:9px;margin:28px 0 0;color:#657d88;font-size:11px}.community-note span{color:#3bd5a2;font-size:8px;box-shadow:0 0 12px #3bd5a2}.connect-demo>button:focus-visible,.community-grid>a:focus-visible{outline:2px solid #45d8fa;outline-offset:3px}
@media(max-width:800px){.community-grid{grid-template-columns:1fr}.community-grid>a{min-height:190px}.community-grid p{min-height:auto}}
@media(max-width:600px){.community{padding:72px 0}.community-grid{margin-top:28px}.community-note{align-items:flex-start;text-align:left}}
/* Floating navigation and scroll-aware section state */
.nav{position:sticky;z-index:50;top:12px;height:64px;margin-top:12px;padding:0 16px;border:1px solid #ffffff17;border-radius:14px;background:#07131bd9;box-shadow:0 15px 45px #0005,inset 0 1px #ffffff08;backdrop-filter:blur(18px) saturate(135%);-webkit-backdrop-filter:blur(18px) saturate(135%)}.nav .brand img{transition:transform .3s ease,box-shadow .3s ease}.nav .brand:hover img{transform:rotate(-5deg) scale(1.06);box-shadow:0 0 22px #31cdf535}.nav nav{height:100%;align-items:center}.nav nav a{position:relative;display:flex;height:100%;align-items:center;transition:color .22s ease}.nav nav a:after{content:"";position:absolute;left:50%;right:50%;bottom:-1px;height:2px;border-radius:99px;background:#3bd3fa;box-shadow:0 0 12px #3bd3fa;transition:left .25s ease,right .25s ease}.nav nav a:hover:after,.nav nav a.active:after{left:0;right:0}.nav nav a.active{color:#e9f8fe}.nav-github{transition:color .22s ease,border-color .22s ease,background .22s ease,transform .22s ease}.nav-github:hover{transform:translateY(-1px);border-color:#3bd2f74a;background:#26c9f20c}
/* Staggered motion for the newer landing-page sections */
.connect-steps article,.github-metrics article,.browser-table article,.community-grid>a{opacity:0;transform:translateY(22px);transition:opacity .55s ease,transform .6s cubic-bezier(.2,.75,.25,1),border-color .25s ease,background .25s ease}.is-visible .connect-steps article,.is-visible .github-metrics article,.is-visible .browser-table article,.is-visible .community-grid>a{opacity:1;transform:none}.is-visible .connect-steps article:nth-child(2),.is-visible .github-metrics article:nth-child(2),.is-visible .browser-table article:nth-child(2),.is-visible .community-grid>a:nth-child(2){transition-delay:90ms}.is-visible .connect-steps article:nth-child(3),.is-visible .github-metrics article:nth-child(3),.is-visible .browser-table article:nth-child(3),.is-visible .community-grid>a:nth-child(3){transition-delay:180ms}.is-visible .browser-table article:nth-child(4){transition-delay:270ms}.github-metrics article>span{transform-origin:center;transition:transform .3s ease}.github-metrics article:hover>span{transform:rotate(-8deg) scale(1.22)}.github-metrics article{transition-property:opacity,transform,border-color,background}.github-metrics article:hover{border-color:#39d4f83c;background:#0a1a23}.browser-table article{transition-property:opacity,transform,background}.browser-table article:hover{background:#0c1b24}.browser-logo{transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease}.browser-table article:hover .browser-logo{transform:rotate(-7deg) scale(1.09);box-shadow:0 0 22px #39d6f425}.community.is-visible:before{animation:community-glow 8s ease-in-out infinite}.community-note span{animation:community-pulse 2.1s ease-in-out infinite}@keyframes community-glow{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-35px,24px) scale(1.08)}}@keyframes community-pulse{0%,100%{opacity:.45;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}
@media(max-width:900px){.nav{top:8px;margin-top:8px}}
@media(max-width:600px){.nav{height:58px;padding:0 10px;border-radius:12px}.nav .brand{font-size:18px}.nav .brand img{width:31px;height:31px}}
@media(prefers-reduced-motion:reduce){.nav .brand img,.nav nav a:after,.nav-github,.connect-steps article,.github-metrics article,.browser-table article,.community-grid>a,.github-metrics article>span,.browser-logo,.community.is-visible:before,.community-note span{animation:none;transition:none}.connect-steps article,.github-metrics article,.browser-table article,.community-grid>a{opacity:1;transform:none}}
body{overflow-x:hidden}.landing{overflow:visible}.is-visible .community-grid>a:hover{transform:translateY(-6px)}
/* Keep the floating header clean and fit the expanded section navigation. */
.landing{background-image:linear-gradient(90deg,#ffffff05 1px,transparent 1px)}.nav nav{gap:19px}.nav nav a{font-size:12px;white-space:nowrap}
@media(max-width:1080px){.nav nav{gap:12px}.nav nav a{font-size:11px}.nav{padding-inline:13px}.nav .brand{font-size:19px}.nav-actions{gap:6px}.nav-github{padding-inline:10px}}
/* Compact mobile navigation */
.menu-toggle,.mobile-nav{display:none}.menu-toggle{position:relative;width:38px;height:38px;padding:0;border:1px solid #ffffff19;border-radius:9px;background:#08141c;color:#dcecf3;cursor:pointer}.menu-toggle i{position:absolute;left:10px;width:16px;height:1px;border-radius:2px;background:currentColor;transition:transform .25s ease,top .25s ease,opacity .2s ease}.menu-toggle i:nth-child(1){top:12px}.menu-toggle i:nth-child(2){top:18px}.menu-toggle i:nth-child(3){top:24px}.menu-toggle.active i:nth-child(1){top:18px;transform:rotate(45deg)}.menu-toggle.active i:nth-child(2){opacity:0}.menu-toggle.active i:nth-child(3){top:18px;transform:rotate(-45deg)}
@media(max-width:900px){.menu-toggle{display:block}.nav{isolation:isolate}.mobile-nav{position:absolute;z-index:-1;display:grid;grid-template-columns:1fr 1fr;gap:6px;left:0;right:0;top:calc(100% - 6px);padding:20px 14px 14px;border:1px solid #ffffff17;border-top:0;border-radius:0 0 14px 14px;background:#07131bf2;box-shadow:0 25px 50px #0008;backdrop-filter:blur(20px);opacity:0;visibility:hidden;transform:translateY(-12px) scale(.985);transform-origin:top;transition:opacity .24s ease,transform .28s cubic-bezier(.2,.8,.2,1),visibility .24s}.mobile-nav.open{opacity:1;visibility:visible;transform:none}.mobile-nav a{display:flex;align-items:center;gap:11px;min-height:48px;padding:10px 13px;border:1px solid transparent;border-radius:9px;color:#8ba1ac;text-decoration:none;font-size:13px;background:#ffffff03;transition:color .2s ease,border-color .2s ease,background .2s ease}.mobile-nav a span{color:#34cef6;font:700 9px Inter,sans-serif}.mobile-nav a:hover,.mobile-nav a.active{color:#e5f3f8;border-color:#36d1f72c;background:#28c8f50a}.mobile-nav .mobile-client{grid-column:1/-1;justify-content:center;margin-top:3px;color:#04141b;background:#25c7f3;font-weight:800}.mobile-nav .mobile-client:hover{color:#04141b;background:#61d7fa}.mobile-client b{margin-left:auto}}
@media(max-width:600px){.nav-github{display:none}.mobile-nav{grid-template-columns:1fr}.mobile-nav .mobile-client{grid-column:auto}.menu-toggle{width:36px;height:36px}}
/* GitHub release timeline */
.releases{border-bottom:1px solid #ffffff0d}.release-list{display:grid;gap:10px}.release-list>a,.release-empty{display:grid;grid-template-columns:145px minmax(0,1fr) 28px;gap:25px;align-items:center;min-height:126px;padding:22px 25px;color:inherit;text-decoration:none;background:linear-gradient(110deg,#0a161e,#08131b);border:1px solid #ffffff10;border-radius:13px;transition:transform .25s ease,border-color .25s ease,background .25s ease}.release-list>a:hover,.release-empty:hover{transform:translateX(5px);border-color:#38d3f83c;background:linear-gradient(110deg,#0c1d27,#091720)}.release-meta{display:flex;flex-direction:column;gap:13px;padding-right:22px;border-right:1px solid #ffffff0d}.release-meta span{align-self:flex-start;padding:5px 8px;border-radius:99px;color:#42d8fa;background:#27caf312;font:800 9px Inter,sans-serif;text-transform:uppercase;letter-spacing:.08em}.release-meta time{color:#637b87;font-size:10px}.release-list>a>div:nth-child(2){min-width:0}.release-list small{display:block;margin-bottom:7px;color:#36cef5;font:700 10px Inter,sans-serif}.release-list strong{display:block;color:#dceaf0;font-size:16px}.release-list p,.release-empty p{max-width:760px;margin:8px 0 0;color:#738a95;font-size:12px;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.release-list>a>b,.release-empty>b{color:#42d5f8;font-size:17px;transition:transform .2s ease}.release-list>a:hover>b,.release-empty:hover>b{transform:translate(3px,-3px)}.release-empty{grid-template-columns:50px 1fr 28px}.release-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;color:#3bd3f8;background:#25c8f111;border:1px solid #36d1f72b}.release-empty strong{font-size:16px}.release-all{display:inline-block;margin-top:23px;color:#67dcfb}
.release-list>a{opacity:0;transform:translateY(18px)}.is-visible .release-list>a{animation:release-in .55s cubic-bezier(.2,.8,.2,1) both}.is-visible .release-list>a:nth-child(2){animation-delay:90ms}.is-visible .release-list>a:nth-child(3){animation-delay:180ms}@keyframes release-in{to{opacity:1;transform:none}}
@media(max-width:700px){.release-list>a,.release-empty{grid-template-columns:1fr 24px;gap:14px;padding:19px}.release-meta{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;padding:0 0 12px;border-right:0;border-bottom:1px solid #ffffff0d}.release-list p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.release-empty>span{display:none}}
@media(prefers-reduced-motion:reduce){.menu-toggle i,.mobile-nav,.release-list>a,.release-empty,.release-list>a>b,.release-empty>b{animation:none!important;transition:none}.release-list>a{opacity:1;transform:none}}
+238
View File
@@ -0,0 +1,238 @@
import { StrictMode, useEffect, useState, type ReactNode } from "react";
import { createRoot } from "react-dom/client";
import "./landing.css";
const github = "https://github.com/Moepchi/webspeak3";
const demo = "https://demo.webspeak3.de/";
const client = "https://client.webspeak3.de/";
type Lang = "de" | "en";
type PhoneStyle = "android" | "iphone";
function detectPhoneStyle(): PhoneStyle {
const device = `${navigator.userAgent} ${navigator.platform}`.toLowerCase();
return /iphone|ipad|ipod|macintosh|mac os/.test(device) ? "iphone" : "android";
}
const copy = {
de: {
nav: ["Features", "Status", "Architektur", "Einblick", "Installation", "Community"], client: "Client öffnen", hero: ["Direkt im Browser.", "Dein vertrauter Voice-Client, neu gedacht fürs Web. Ohne Installation, ohne Cloud-Zwang – einfach Tab öffnen und verbinden."],
demo: "Live Demo starten", github: "Auf GitHub ansehen", demoNote: "Die Demo nutzt simulierte Daten – ganz ohne echten Server.", built: "Gebaut mit",
featureKicker: "ALLES, WAS DU BRAUCHST", featureTitle: "Voice-Chat ohne Kompromisse.", featureIntro: "Die Funktionen, die du von einem Desktop-Client erwartest – in einer modernen, offenen Web-App.",
stepsKicker: "SO EINFACH GEHT'S", stepsTitle: "Server eingeben. Verbunden.", stepsText: "WebSpeak3 ist nicht an einen bestimmten Server gebunden. Öffne den Client, gib eine beliebige erreichbare Adresse ein und leg los.", steps: [["01", "Client öffnen", "Keine Installation und kein Konto nötig."], ["02", "Serveradresse eingeben", "Zum Beispiel voice.teamspeak.com."], ["03", "Direkt verbinden", "Voice, Chat und Channels stehen sofort bereit."]], connecting: "Verbindung wird hergestellt", connected: "Verbunden", nickname: "Nickname", connectNow: "Verbinden",
features: [["voice", "Voice ohne Umwege", "Opus-Audio mit geringer Latenz, Sprachaktivierung, Gerätewahl und anpassbarer Empfindlichkeit."],["chat", "Chat, der alles bündelt", "Channel-, Server- und private Chats in übersichtlichen Tabs – inklusive Server-Events."],["tree", "Live Channel Tree", "Channels, Nutzer, Status, Länderflaggen und Wechsel in Echtzeit – vertraut, aber fürs Web gedacht."],["whisper", "Gezieltes Whispern", "Sprich mit einzelnen Clients oder ganzen Channels, ohne deinen aktuellen Raum zu stören."],["docker", "Self-hosted by design", "Ein Container für Web-App, Gateway und Connector. Deine Instanz, deine Regeln – mit freier Serverwahl."],["mobile", "Unterwegs verbunden", "Eine echte responsive Oberfläche für schmale Displays – nicht nur Desktop in klein."]] as const,
privacyKicker: "PRIVATSPHÄRE EINGEBAUT", privacyTitle: ["Dein Web-Client.", "Freie Serverwahl."], privacyText: "Du hostest nur WebSpeak3 und sein Gateway selbst. Von dort verbindest du dich mit jedem erreichbaren TeamSpeak-Server – egal, wo er läuft oder wem er gehört.", privacyList: ["WebSpeak3 vollständig selbst hostbar", "Freie Wahl des TeamSpeak-Servers", "Am Zielserver ist keine Änderung nötig"], control: ["Kontrolle über", "deinen Client"],
architectureKicker: "UNTER DER HAUBE", architectureTitle: "Vom Tab zu jedem Server.", architectureText: "Dein selbst gehostetes Gateway übersetzt WebSocket-Nachrichten in das echte TeamSpeak-Protokoll und verbindet dich mit dem gewünschten Server.",
screenKicker: "FÜR JEDEN BILDSCHIRM", screenTitle: ["Desktop-Komfort.", "Mobile Freiheit."], screenText: "Dark oder Light, großer Monitor oder Smartphone: WebSpeak3 passt sich an, ohne Kernfunktionen zu verstecken.",
statusKicker: "OFFEN ENTWICKELT", statusTitle: "Beta, aber schon ziemlich gesprächig.", statusText: "WebSpeak3 ist ein aktiver Prototyp. Diese Übersicht zeigt transparent, was heute bereits funktioniert und wo noch Feinschliff folgt.", statusLabels: ["Verfügbar", "In Arbeit", "Als Nächstes"], statusCards: [["Voice, Chat & Channel Tree", "Echte TS3/TS6-Verbindungen, Opus-Audio, Whisper, Chats und Live-Status."], ["Browser-Kompatibilität", "Audioausgabe und Mikrofonverhalten werden für weitere Browser und Geräte verfeinert."], ["Mehr Komfort", "Weitere Desktop-Client-Details, stabilere Randfälle und Community-Feedback."]], roadmap: "Roadmap und Issues ansehen",
githubKicker: "LIVE VON GITHUB", githubTitle: "Offen entwickelt. Öffentlich nachvollziehbar.", githubText: "Aktuelle Projektdaten direkt aus dem öffentlichen Repository.", githubLabels: ["GitHub Stars", "Aktueller Release", "Zuletzt aktualisiert"], githubFallback: "Beta", releaseKicker: "WAS NEU IST", releaseTitle: "Die letzten Updates.", releaseText: "Releases und Änderungen direkt aus GitHub – automatisch aktuell.", releaseAction: "Alle Releases", releaseEmpty: "Noch keine veröffentlichten Release-Notizen. Die aktuelle Entwicklung kannst du auf GitHub verfolgen.", releaseFallback: "Aktuelle Entwicklung",
tourKicker: "LIVE ERKUNDEN", tourTitle: "Der Client, erklärt im Kontext.", tourText: "Wähle einen Bereich und sieh direkt, wo die wichtigsten Funktionen im WebSpeak3-Client sitzen.", tourItems: [["tree", "Channel Tree", "Channels, Nutzer und Status wechseln in Echtzeit."], ["chat", "Chat & Events", "Server-, Channel- und Direktnachrichten bleiben übersichtlich getrennt."], ["voice", "Voice Controls", "Mikrofon, Lautsprecher, Aktivierung und Pegel immer griffbereit."], ["whisper", "Whisper", "Gezielt einzelne Nutzer oder komplette Channels ansprechen."]],
installKicker: "IN MINUTEN STARTKLAR", installTitle: "Dein WebSpeak3. Jeder Server.", installText: "Hoste den Browser-Client selbst und verbinde dich anschließend mit jedem erreichbaren TeamSpeak-Server.", installSteps: [["01", "WebSpeak3 starten", "Passende Installationsart auswählen."], ["02", "Browser öffnen", "WebSpeak3 lokal oder über deine Domain aufrufen."], ["03", "Server frei wählen", "Beliebige TS-Adresse und deinen Nickname eingeben – fertig."]], installTabs: ["Docker Run", "Docker Compose", "Reverse Proxy", "Entwicklung"], installGuide: "Installationsanleitung", copyCommand: "Befehl kopieren", copied: "Kopiert!",
browserKicker: "BROWSER-CHECK", browserTitle: "Bereit für deinen Browser.", browserText: "WebSpeak3 nutzt moderne Web-Audio-APIs. Die Kernfunktionen laufen browserübergreifend; einzelne Gerätefunktionen können abweichen.", browserRows: [["Edge", "Voll unterstützt", "Empfohlen unter Windows"], ["Chrome / Chromium", "Voll unterstützt", "Desktop und Android"], ["Firefox", "Unterstützt", "Audioausgabe kann je nach System abweichen"], ["Safari", "Experimentell", "Web-Audio-Verhalten wird weiter verfeinert"]],
communityKicker: "GEMEINSAM BESSER", communityTitle: "Dein Feedback formt WebSpeak3.", communityText: "WebSpeak3 entsteht offen auf GitHub. Melde Probleme, teile Ideen oder hilf direkt bei der Entwicklung.", communityCards: [["bug", "Fehler melden", "Etwas funktioniert nicht wie erwartet? Beschreibe das Problem und deine Umgebung.", "Bug erstellen"], ["idea", "Idee vorschlagen", "Dir fehlt eine Funktion oder du hast eine bessere Lösung im Kopf? Lass sie uns wissen.", "Idee teilen"], ["code", "Mitentwickeln", "Code, Tests, Dokumentation und Übersetzungen sind ausdrücklich willkommen.", "Repository öffnen"]], communityNote: "Offen, transparent und direkt mit den Menschen, die WebSpeak3 nutzen.",
faqKicker: "GUT ZU WISSEN", faqTitle: "Fragen, bevor du loslegst.", faqs: [["Bin ich an einen bestimmten TeamSpeak-Server gebunden?", "Nein. Du kannst jede erreichbare TS3- oder TS6-Serveradresse eingeben – unabhängig davon, wer den Server hostet oder wo er läuft."], ["Was muss ich selbst hosten?", "Nur WebSpeak3 mit Gateway und Connector. Der TeamSpeak-Server kann dein eigener, der eines Freundes oder ein beliebiger anderer erreichbarer Server sein."], ["Wo laufen meine Sprachdaten?", "Sie laufen über deine WebSpeak3-Instanz direkt zum ausgewählten TeamSpeak-Server – ohne eine zentrale WebSpeak3-Cloud."], ["Welche Browser werden unterstützt?", "Moderne Chromium- und Firefox-Browser sind das Hauptziel. Einzelne Audiofunktionen können je nach Browser und Gerät abweichen."], ["Benötigt WebSpeak3 Zugriff auf mein Mikrofon?", "Erst wenn du das Mikrofon aktivierst. Dann fragt der Browser wie üblich nach deiner Erlaubnis."], ["Ist das Projekt produktionsreif?", "WebSpeak3 ist aktuell als Beta beziehungsweise Prototyp gekennzeichnet. Teste deine gewünschte Umgebung daher vor einem breiten Einsatz."], ["Kann ich mithelfen?", "Ja. Fehlerberichte, Ideen und Beiträge sind über das öffentliche GitHub-Repository willkommen."]],
disclaimer: "Ein unabhängiges Open-Source-Projekt. Nicht mit TeamSpeak Systems GmbH verbunden.", imageAlt: "WebSpeak3 Client im Dark Mode",
},
en: {
nav: ["Features", "Status", "Architecture", "Explore", "Installation", "Community"], client: "Open client", hero: ["Right in your browser.", "The voice client you know, reimagined for the web. No installation, no cloud lock-in — just open a tab and connect."],
demo: "Launch live demo", github: "View on GitHub", demoNote: "The demo uses simulated data — no real server required.", built: "Built with",
featureKicker: "EVERYTHING YOU NEED", featureTitle: "Voice chat without compromise.", featureIntro: "Everything you expect from a desktop client — inside a modern, open web app.",
stepsKicker: "THAT SIMPLE", stepsTitle: "Enter a server. Connected.", stepsText: "WebSpeak3 is not tied to a particular server. Open the client, enter any reachable address and get started.", steps: [["01", "Open the client", "No installation or account required."], ["02", "Enter a server address", "For example voice.teamspeak.com."], ["03", "Connect directly", "Voice, chat and channels are ready right away."]], connecting: "Establishing connection", connected: "Connected", nickname: "Nickname", connectNow: "Connect",
features: [["voice", "Voice without detours", "Low-latency Opus audio, voice activation, device selection and adjustable sensitivity."],["chat", "Chat that brings it together", "Channel, server and private chats in clear tabs — including live server events."],["tree", "Live channel tree", "Channels, users, status icons, country flags and switching in real time — familiar, built for the web."],["whisper", "Targeted whisper", "Talk to individual clients or entire channels without interrupting your current room."],["docker", "Self-hosted by design", "One container for the web app, gateway and connector. Your instance, your rules — with free choice of server."],["mobile", "Connected on the go", "A truly responsive interface for narrow screens — not merely a shrunken desktop UI."]] as const,
privacyKicker: "PRIVACY BUILT IN", privacyTitle: ["Your web client.", "Your choice of server."], privacyText: "You only self-host WebSpeak3 and its gateway. From there, connect to any reachable TeamSpeak server — no matter where it runs or who hosts it.", privacyList: ["WebSpeak3 is fully self-hostable", "Free choice of TeamSpeak server", "No changes required on the target server"], control: ["Control over", "your client"],
architectureKicker: "UNDER THE HOOD", architectureTitle: "From your tab to any server.", architectureText: "Your self-hosted gateway translates WebSocket messages into the real TeamSpeak protocol and connects you to the server you choose.",
screenKicker: "FOR EVERY SCREEN", screenTitle: ["Desktop comfort.", "Mobile freedom."], screenText: "Dark or light, large display or smartphone: WebSpeak3 adapts without hiding core functionality.",
statusKicker: "BUILT IN THE OPEN", statusTitle: "Beta, but already quite talkative.", statusText: "WebSpeak3 is an active prototype. This overview is transparent about what works today and where refinement is still underway.", statusLabels: ["Available", "In progress", "Up next"], statusCards: [["Voice, chat & channel tree", "Real TS3/TS6 connections, Opus audio, whisper, chats and live status."], ["Browser compatibility", "Audio output and microphone behavior are being refined across more browsers and devices."], ["More polish", "More desktop-client details, resilient edge cases and community feedback."]], roadmap: "View roadmap and issues",
githubKicker: "LIVE FROM GITHUB", githubTitle: "Built in the open. Publicly traceable.", githubText: "Current project data directly from the public repository.", githubLabels: ["GitHub stars", "Current release", "Last updated"], githubFallback: "Beta", releaseKicker: "WHAT'S NEW", releaseTitle: "The latest updates.", releaseText: "Releases and changes straight from GitHub — always current.", releaseAction: "All releases", releaseEmpty: "No published release notes yet. Follow the current development on GitHub.", releaseFallback: "Current development",
tourKicker: "EXPLORE IT LIVE", tourTitle: "The client, explained in context.", tourText: "Choose an area to see exactly where WebSpeak3 keeps its most important features.", tourItems: [["tree", "Channel tree", "Channels, users and status update in real time."], ["chat", "Chat & events", "Server, channel and direct messages stay clearly separated."], ["voice", "Voice controls", "Microphone, speakers, activation and levels remain within reach."], ["whisper", "Whisper", "Talk directly to individual users or complete channels."]],
installKicker: "READY IN MINUTES", installTitle: "Your WebSpeak3. Any server.", installText: "Self-host the browser client, then connect to any reachable TeamSpeak server.", installSteps: [["01", "Start WebSpeak3", "Choose the installation method that fits."], ["02", "Open your browser", "Visit WebSpeak3 locally or through your domain."], ["03", "Choose any server", "Enter any TS address and your nickname — done."]], installTabs: ["Docker Run", "Docker Compose", "Reverse Proxy", "Development"], installGuide: "Installation guide", copyCommand: "Copy command", copied: "Copied!",
browserKicker: "BROWSER CHECK", browserTitle: "Ready for your browser.", browserText: "WebSpeak3 uses modern Web Audio APIs. Core features work across browsers; individual device features may vary.", browserRows: [["Edge", "Fully supported", "Recommended on Windows"], ["Chrome / Chromium", "Fully supported", "Desktop and Android"], ["Firefox", "Supported", "Audio output may vary by system"], ["Safari", "Experimental", "Web Audio behavior is still being refined"]],
communityKicker: "BETTER TOGETHER", communityTitle: "Your feedback shapes WebSpeak3.", communityText: "WebSpeak3 is built openly on GitHub. Report problems, share ideas or contribute directly to development.", communityCards: [["bug", "Report a bug", "Something does not work as expected? Describe the issue and your environment.", "Create bug report"], ["idea", "Suggest an idea", "Missing a feature or have a better solution in mind? Let us know.", "Share an idea"], ["code", "Contribute", "Code, tests, documentation and translations are all welcome.", "Open repository"]], communityNote: "Open, transparent and directly shaped by the people who use WebSpeak3.",
faqKicker: "GOOD TO KNOW", faqTitle: "Questions before you start.", faqs: [["Am I tied to a specific TeamSpeak server?", "No. Enter any reachable TS3 or TS6 server address, regardless of where it runs or who hosts it."], ["What do I need to self-host?", "Only WebSpeak3 with its gateway and connector. The TeamSpeak server can be yours, a friend's, or any other reachable server."], ["Where does my voice data go?", "It travels through your WebSpeak3 instance directly to the selected TeamSpeak server — without a central WebSpeak3 cloud."], ["Which browsers are supported?", "Modern Chromium and Firefox browsers are the main targets. Individual audio features may vary by browser and device."], ["Does WebSpeak3 need microphone access?", "Only when you enable the microphone. Your browser will then ask for permission as usual."], ["Is the project production-ready?", "WebSpeak3 is currently marked as a beta/prototype. Test your intended environment before rolling it out broadly."], ["Can I contribute?", "Yes. Bug reports, ideas and contributions are welcome through the public GitHub repository."]],
disclaimer: "An independent open-source project. Not affiliated with TeamSpeak Systems GmbH.", imageAlt: "WebSpeak3 client in dark mode",
},
} as const;
function Icon({ name }: { name: string }) {
const paths: Record<string, ReactNode> = {
voice: <><path d="M12 3a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3Z"/><path d="M5 10.5a7 7 0 0 0 14 0M12 17.5V22M8.5 22h7"/></>,
chat: <><path d="M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4Z"/><path d="M8 9h8M8 13h5"/></>,
tree: <><path d="M5 4v16M5 8h6M5 16h6"/><rect x="11" y="5" width="8" height="6" rx="2"/><rect x="11" y="13" width="8" height="6" rx="2"/></>,
whisper: <><path d="M4 13a8 8 0 0 1 8-8M4 18A13 13 0 0 1 17 5"/><path d="M14 13a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM12 15v6"/></>,
docker: <><path d="M3 11h18c0 6-3 9-9 9s-9-3-9-9Z"/><path d="M7 11V7h4v4M11 11V5h4v6M15 11V7h4v4"/></>,
mobile: <><rect x="6" y="2" width="12" height="20" rx="3"/><path d="M10 5h4M11 19h2"/></>,
lock: <><rect x="4" y="10" width="16" height="11" rx="3"/><path d="M8 10V7a4 4 0 0 1 8 0v3M12 14v3"/></>,
};
return <svg viewBox="0 0 24 24" aria-hidden="true">{paths[name]}</svg>;
}
const installCommands = [
"docker run -d -p 8080:8080 --name webspeak3 moepchi/webspeak3:latest",
"git clone https://github.com/Moepchi/webspeak3.git && cd webspeak3 && docker compose up -d",
"caddy reverse-proxy --from webspeak3.example.com --to localhost:8080",
"git clone https://github.com/Moepchi/webspeak3.git && cd webspeak3 && docker compose up --build",
] as const;
type GitHubStats = { stars: number | null; release: string | null; updated: string | null };
type GitHubRelease = { id: number; tag: string; title: string; body: string; date: string; url: string };
function Landing() {
const [lang, setLang] = useState<Lang>(() => {
const saved = localStorage.getItem("webspeak3:landing-language");
if (saved === "de" || saved === "en") return saved;
return navigator.language.toLowerCase().startsWith("de") ? "de" : "en";
});
const t = copy[lang];
const [activeTour, setActiveTour] = useState(0);
const [copied, setCopied] = useState(false);
const [phoneStyle] = useState<PhoneStyle>(detectPhoneStyle);
const [installMethod, setInstallMethod] = useState(0);
const [activeNav, setActiveNav] = useState("");
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
const [githubStats, setGithubStats] = useState<GitHubStats>({ stars: null, release: null, updated: null });
const [releases, setReleases] = useState<GitHubRelease[]>([]);
const copyInstallCommand = () => {
navigator.clipboard?.writeText(installCommands[installMethod]);
setCopied(true);
window.setTimeout(() => setCopied(false), 1800);
};
useEffect(() => {
localStorage.setItem("webspeak3:landing-language", lang);
document.documentElement.lang = lang;
document.title = lang === "de"
? "WebSpeak3 – TeamSpeak 3 im Browser | Open Source"
: "WebSpeak3 – TeamSpeak 3 in Your Browser | Open Source";
}, [lang]);
useEffect(() => {
const controller = new AbortController();
Promise.all([
fetch("https://api.github.com/repos/Moepchi/webspeak3", { signal: controller.signal }).then(response => response.ok ? response.json() : null),
fetch("https://api.github.com/repos/Moepchi/webspeak3/releases?per_page=3", { signal: controller.signal }).then(response => response.ok ? response.json() : []),
]).then(([repo, releaseData]) => {
const items = Array.isArray(releaseData) ? releaseData : [];
setGithubStats({
stars: typeof repo?.stargazers_count === "number" ? repo.stargazers_count : null,
release: typeof items[0]?.tag_name === "string" ? items[0].tag_name : null,
updated: typeof repo?.pushed_at === "string" ? repo.pushed_at : null,
});
setReleases(items.map((release: any) => ({
id: Number(release.id),
tag: String(release.tag_name ?? "Beta"),
title: String(release.name || release.tag_name || "WebSpeak3"),
body: String(release.body || "").replace(/[#>*_`[\]]/g, "").replace(/\r?\n+/g, " ").trim(),
date: String(release.published_at || release.created_at || ""),
url: String(release.html_url || `${github}/releases`),
})));
}).catch(() => undefined);
return () => controller.abort();
}, []);
useEffect(() => {
const closeOnEscape = (event: KeyboardEvent) => event.key === "Escape" && setMobileMenuOpen(false);
window.addEventListener("keydown", closeOnEscape);
return () => window.removeEventListener("keydown", closeOnEscape);
}, []);
useEffect(() => {
const elements = document.querySelectorAll<HTMLElement>(".reveal");
const observer = new IntersectionObserver(
entries => entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add("is-visible");
observer.unobserve(entry.target);
}
}),
{ threshold: 0.14 },
);
elements.forEach(element => observer.observe(element));
return () => observer.disconnect();
}, []);
useEffect(() => {
const sections = ["features", "status", "architecture", "tour", "install", "community"]
.map(id => document.getElementById(id))
.filter((section): section is HTMLElement => section !== null);
const updateActiveSection = () => {
const marker = window.innerHeight * 0.34;
let current = "";
sections.forEach(section => {
if (section.getBoundingClientRect().top <= marker) current = section.id;
});
setActiveNav(current);
};
updateActiveSection();
window.addEventListener("scroll", updateActiveSection, { passive: true });
window.addEventListener("resize", updateActiveSection);
return () => {
window.removeEventListener("scroll", updateActiveSection);
window.removeEventListener("resize", updateActiveSection);
};
}, []);
return <div className="landing">
<div className="ambient ambient-one"></div><div className="ambient ambient-two"></div>
<header className="nav shell">
<a className="brand" href="#top"><img src="../logo.png" alt=""/><span>WebSpeak<span>3</span></span></a>
<nav aria-label={lang === "de" ? "Hauptnavigation" : "Main navigation"}>{["features", "status", "architecture", "tour", "install", "community"].map((id, index) => <a key={id} className={activeNav === id ? "active" : ""} href={`#${id}`} onClick={() => setActiveNav(id)}>{t.nav[index]}</a>)}</nav>
<div className="nav-actions"><div className="language-switch" role="group" aria-label={lang === "de" ? "Sprache wählen" : "Choose language"}><button className={lang === "de" ? "active" : ""} onClick={() => { setLang("de"); setMobileMenuOpen(false); }} aria-pressed={lang === "de"}>DE</button><button className={lang === "en" ? "active" : ""} onClick={() => { setLang("en"); setMobileMenuOpen(false); }} aria-pressed={lang === "en"}>EN</button></div><a className="nav-github" href={github} target="_blank" rel="noreferrer">GitHub <span>↗</span></a><button className={`menu-toggle ${mobileMenuOpen ? "active" : ""}`} type="button" aria-label={lang === "de" ? "Navigation öffnen" : "Open navigation"} aria-expanded={mobileMenuOpen} aria-controls="mobile-navigation" onClick={() => setMobileMenuOpen(open => !open)}><i></i><i></i><i></i></button></div>
<div className={`mobile-nav ${mobileMenuOpen ? "open" : ""}`} id="mobile-navigation" aria-hidden={!mobileMenuOpen}>{["features", "status", "architecture", "tour", "install", "community"].map((id, index) => <a key={id} className={activeNav === id ? "active" : ""} href={`#${id}`} onClick={() => { setActiveNav(id); setMobileMenuOpen(false); }}><span>0{index + 1}</span>{t.nav[index]}</a>)}<a className="mobile-client" href={client}>{t.client}<b>→</b></a></div>
</header>
<main id="top">
<section className="hero shell">
<div className="hero-copy">
<div className="eyebrow"><span></span> Open Source · Self-hosted · Beta</div>
<h1>TeamSpeak 3.<br/><em>{t.hero[0]}</em></h1>
<p>{t.hero[1]}</p>
<div className="actions hero-actions"><a className="button primary" href={client}>{t.client} <span>→</span></a><a className="button secondary" href={demo}>{t.demo}</a><a className="button tertiary" href={github} target="_blank" rel="noreferrer">{t.github} ↗</a></div>
<p className="demo-note"><span>●</span> {t.demoNote}</p>
<div className="hero-stats"><span><strong>&lt; 30 ms</strong> Voice latency</span><span><strong>100%</strong> self-hosted</span><span><strong>MIT</strong> open source</span></div>
</div>
<div className="hero-visual">
<div className="glow"></div>
<div className="app-frame"><div className="frame-bar"><i></i><i></i><i></i><span>WebSpeak3 · Demo Server</span></div><img src="../screenshots/webspeak_dark.png" alt={t.imageAlt}/></div>
<div className="signal-card"><span className="signal">▥</span><div><strong>Voice connected</strong><small>Opus · 48 kHz · 24 ms</small></div><b></b></div>
<div className="voice-waves" aria-hidden="true">{[1,2,3,4,5,6,7,8,9,10,11,12].map(n=><i key={n}></i>)}</div>
</div>
</section>
<section className="trust shell reveal"><span>{t.built}</span>{["React","TypeScript","Vite","Node.js","Rust","Docker"].map(x=><strong key={x}>{x}</strong>)}</section>
<section className="section shell quick-connect reveal"><div className="section-head"><div><span className="kicker">{t.stepsKicker}</span><h2>{t.stepsTitle}</h2></div><p>{t.stepsText}</p></div><div className="connect-layout"><div className="connect-steps">{t.steps.map(([number, title, description]) => <article key={number}><span>{number}</span><div><strong>{title}</strong><small>{description}</small></div></article>)}</div><div className="connect-demo"><div className="demo-window-bar"><i></i><i></i><i></i><span>WebSpeak3</span></div><label><small>TeamSpeak Server</small><div className="fake-input"><span className="typed-server">voice.teamspeak.com</span><b></b></div></label><label><small>{t.nickname}</small><div className="fake-input"><span>WebSpeak User</span></div></label><button onClick={() => window.location.assign(client)} aria-label={t.client}>{t.connectNow}<span>→</span></button><div className="connect-progress"><i></i><span className="progress-connecting">{t.connecting}…</span><span className="progress-connected">✓ {t.connected} · voice.teamspeak.com</span></div></div></div></section>
<section className="section shell reveal" id="features">
<div className="section-head"><div><span className="kicker">{t.featureKicker}</span><h2>{t.featureTitle}</h2></div><p>{t.featureIntro}</p></div>
<div className="feature-grid">{t.features.map(([icon,title,description],index)=><article className={`feature-${index + 1}`} key={icon}><span className="card-index">0{index + 1}</span><div className="icon"><Icon name={icon}/></div><h3>{title}</h3><p>{description}</p>{index === 0 && <div className="mini-wave" aria-hidden="true">{[1,2,3,4,5,6,7,8,9].map(n=><i key={n}></i>)}</div>}</article>)}</div>
</section>
<section className="privacy reveal"><div className="shell privacy-inner"><div className="privacy-copy"><div className="icon large"><Icon name="lock"/></div><span className="kicker">{t.privacyKicker}</span><h2>{t.privacyTitle[0]}<br/>{t.privacyTitle[1]}</h2><p>{t.privacyText}</p><ul>{t.privacyList.map(item => <li key={item}>{item}</li>)}</ul></div><div className="privacy-card"><div className="orbit orbit-outer"><i></i></div><div className="orbit orbit-inner"><i></i></div><span>SELF-HOSTED</span><strong>100%</strong><small>{t.control[0]}<br/>{t.control[1]}</small></div></div></section>
<section className="section shell status reveal" id="status"><div className="section-head"><div><span className="kicker">{t.statusKicker}</span><h2>{t.statusTitle}</h2></div><p>{t.statusText}</p></div><div className="status-grid">{t.statusCards.map(([title, description], index) => <article key={title}><span className={`status-dot status-${index}`}></span><small>{t.statusLabels[index]}</small><h3>{title}</h3><p>{description}</p></article>)}</div><a className="text-link status-link" href={`${github}/issues`} target="_blank" rel="noreferrer">{t.roadmap} <span>↗</span></a></section>
<section className="github-live reveal"><div className="shell github-inner"><div className="github-copy"><span className="kicker">{t.githubKicker}</span><h2>{t.githubTitle}</h2><p>{t.githubText}</p><a className="text-link" href={github} target="_blank" rel="noreferrer">github.com/Moepchi/webspeak3 ↗</a></div><div className="github-metrics"><article><span>★</span><strong>{githubStats.stars === null ? "—" : githubStats.stars.toLocaleString(lang === "de" ? "de-DE" : "en-US")}</strong><small>{t.githubLabels[0]}</small></article><article><span>↗</span><strong>{githubStats.release ?? t.githubFallback}</strong><small>{t.githubLabels[1]}</small></article><article><span>↻</span><strong>{githubStats.updated ? new Intl.DateTimeFormat(lang === "de" ? "de-DE" : "en-US", { day: "2-digit", month: "short", year: "numeric" }).format(new Date(githubStats.updated)) : "—"}</strong><small>{t.githubLabels[2]}</small></article></div></div></section>
<section className="section shell releases reveal"><div className="section-head"><div><span className="kicker">{t.releaseKicker}</span><h2>{t.releaseTitle}</h2></div><p>{t.releaseText}</p></div>{releases.length > 0 ? <div className="release-list">{releases.map((release, index) => <a href={release.url} target="_blank" rel="noreferrer" key={release.id}><div className="release-meta"><span>{index === 0 ? "Latest" : `0${index + 1}`}</span><time dateTime={release.date}>{release.date ? new Intl.DateTimeFormat(lang === "de" ? "de-DE" : "en-US", { day: "2-digit", month: "short", year: "numeric" }).format(new Date(release.date)) : "GitHub"}</time></div><div><small>{release.tag}</small><strong>{release.title}</strong><p>{release.body || t.releaseFallback}</p></div><b>↗</b></a>)}</div> : <a className="release-empty" href={`${github}/commits/main`} target="_blank" rel="noreferrer"><span>↻</span><div><strong>{t.releaseFallback}</strong><p>{t.releaseEmpty}</p></div><b>↗</b></a>}<a className="text-link release-all" href={`${github}/releases`} target="_blank" rel="noreferrer">{t.releaseAction} <span>↗</span></a></section>
<section className="section shell architecture reveal" id="architecture"><div className="section-head centered"><div><span className="kicker">{t.architectureKicker}</span><h2>{t.architectureTitle}</h2></div><p>{t.architectureText}</p></div><div className="flow">{[["Browser","React + Web Audio"],["Gateway","WebSocket · Node.js"],["Rust Connector","tsclientlib + Opus"],["TeamSpeak Server","TS3 / TS6 Protocol"]].map((x,i)=><div className="flow-wrap" style={{"--delay": `${i * 120}ms`} as React.CSSProperties} key={x[0]}><div className="flow-node"><span>0{i+1}</span><strong>{x[0]}</strong><small>{x[1]}</small></div>{i<3&&<div className="flow-arrow" aria-hidden="true"><i></i></div>}</div>)}</div></section>
<section className="section shell showcase reveal"><div className="showcase-copy"><span className="kicker">{t.screenKicker}</span><h2>{t.screenTitle[0]}<br/>{t.screenTitle[1]}</h2><p>{t.screenText}</p><div className="theme-pills"><span>☾ Dark Mode</span><span>☀ Light Mode</span><span>⌁ Responsive</span></div></div><div className="screens"><img className="screen-desktop" src="../screenshots/webspeak_current.png" alt="WebSpeak3 Desktop Client"/><div className={`phone-frame phone-${phoneStyle}`} data-device-frame={phoneStyle}><i className="phone-button phone-button-left" aria-hidden="true"></i><i className="phone-button phone-button-right" aria-hidden="true"></i><div className="phone-sensor" aria-hidden="true"><span></span><b></b></div><img src="../screenshots/webspeak_mobile.png" alt="WebSpeak3 Mobile Client"/><div className="phone-home" aria-hidden="true"></div></div></div></section>
<section className="section shell product-tour reveal" id="tour"><div className="section-head"><div><span className="kicker">{t.tourKicker}</span><h2>{t.tourTitle}</h2></div><p>{t.tourText}</p></div><div className="tour-layout"><div className="tour-screen"><div className="tour-image"><img src="../screenshots/webspeak_current.png" alt={t.imageAlt}/>{t.tourItems.map((item, index) => <button key={item[0]} className={`hotspot hotspot-${item[0]} ${activeTour === index ? "active" : ""}`} onClick={() => setActiveTour(index)} aria-label={item[1]} aria-pressed={activeTour === index}><span>{index + 1}</span></button>)}</div><div className="tour-caption"><span>0{activeTour + 1}</span><div><strong>{t.tourItems[activeTour][1]}</strong><p>{t.tourItems[activeTour][2]}</p></div></div></div><div className="tour-tabs">{t.tourItems.map((item, index) => <button key={item[0]} className={activeTour === index ? "active" : ""} onClick={() => setActiveTour(index)}><span>0{index + 1}</span><div><strong>{item[1]}</strong><small>{item[2]}</small></div></button>)}</div></div></section>
<section className="install shell reveal" id="install"><span className="kicker">{t.installKicker}</span><h2>{t.installTitle}</h2><p>{t.installText}</p><div className="install-steps">{t.installSteps.map(([number, title, description]) => <article key={number}><span>{number}</span><div><strong>{title}</strong><small>{description}</small></div></article>)}</div><div className="install-tabs" role="tablist">{t.installTabs.map((label, index) => <button key={label} role="tab" aria-selected={installMethod === index} className={installMethod === index ? "active" : ""} onClick={() => { setInstallMethod(index); setCopied(false); }}>{label}</button>)}</div><div className="command"><code><i>$</i> {installCommands[installMethod]}</code><button className={copied ? "copied" : ""} onClick={copyInstallCommand} aria-label={t.copyCommand}>{copied ? `✓ ${t.copied}` : "⧉"}</button></div><div className="actions centered-actions"><a className="button primary" href={`${github}#-installation`} target="_blank" rel="noreferrer">{t.installGuide} <span>→</span></a><a className="text-link" href="https://hub.docker.com/r/moepchi/webspeak3" target="_blank" rel="noreferrer">Docker Hub ↗</a></div></section>
<section className="section shell browser-check reveal"><div className="section-head"><div><span className="kicker">{t.browserKicker}</span><h2>{t.browserTitle}</h2></div><p>{t.browserText}</p></div><div className="browser-table">{t.browserRows.map(([browserName, status, note], index) => <article key={browserName}><span className={`browser-logo browser-${index}`}>{browserName.slice(0, 1)}</span><strong>{browserName}</strong><b>{status}</b><small>{note}</small></article>)}</div></section>
<section className="community reveal" id="community"><div className="shell community-inner"><div className="section-head"><div><span className="kicker">{t.communityKicker}</span><h2>{t.communityTitle}</h2></div><p>{t.communityText}</p></div><div className="community-grid">{t.communityCards.map(([kind, title, description, action], index) => { const href = index === 0 ? `${github}/issues/new?labels=bug` : index === 1 ? `${github}/issues/new?labels=enhancement` : github; return <a href={href} target="_blank" rel="noreferrer" key={kind}><span className={`community-icon community-${kind}`}>{kind === "bug" ? "!" : kind === "idea" ? "✦" : "‹/›"}</span><div><strong>{title}</strong><p>{description}</p><small>{action} <b>↗</b></small></div></a>; })}</div><p className="community-note"><span>●</span>{t.communityNote}</p></div></section>
<section className="section shell faq reveal"><div className="section-head centered"><div><span className="kicker">{t.faqKicker}</span><h2>{t.faqTitle}</h2></div></div><div className="faq-list">{t.faqs.map(([question, answer], index) => <details key={question} open={index === 0}><summary><span>0{index + 1}</span>{question}<i>+</i></summary><p>{answer}</p></details>)}</div></section>
</main>
<footer><div className="shell footer-inner"><a className="brand" href="#top"><img src="../logo.png" alt=""/><span>WebSpeak<span>3</span></span></a><p>{t.disclaimer}</p><div><a href={`${github}/blob/main/LICENSE`}>MIT License</a><a href={github}>GitHub</a><a href={`${github}/issues`}>Issues</a></div></div></footer>
</div>;
}
createRoot(document.getElementById("landing-root")!).render(<StrictMode><Landing /></StrictMode>);
+31 -2
View File
@@ -1,10 +1,39 @@
import { defineConfig } from 'vite'
import { defineConfig, type Plugin } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'node:path'
function landingSlashRedirect(): Plugin {
const redirect = (server: { middlewares: { use: (handler: (req: { url?: string }, res: { statusCode: number; setHeader: (name: string, value: string) => void; end: () => void }, next: () => void) => void) => void } }) => {
server.middlewares.use((req, res, next) => {
if (req.url === '/landing') {
res.statusCode = 302
res.setHeader('Location', '/landing/')
res.end()
return
}
next()
})
}
return {
name: 'landing-slash-redirect',
configureServer: redirect,
configurePreviewServer: redirect,
}
}
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [landingSlashRedirect(), react()],
// Set by the GitHub Pages workflow to the repo subpath (e.g. /webspeak3/);
// the normal Docker build serves from the domain root and leaves this unset.
base: process.env.VITE_BASE_PATH || '/',
build: {
rollupOptions: {
input: {
app: resolve(__dirname, 'index.html'),
landing: resolve(__dirname, 'landing/index.html'),
},
},
},
})