/* ==========================================================================
   SplateVPN — Web Portal Stylesheet
   Crafted with exact visual fidelity to SplateClient (Android UI)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typography (@font-face)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'OneSans';
  src: url('../assets/fonts/onesans_regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OneSans';
  src: url('../assets/fonts/onesans_medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OneSans';
  src: url('../assets/fonts/onesans_semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OneSans';
  src: url('../assets/fonts/onesans_bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OneSans';
  src: url('../assets/fonts/onesans_bold.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Theme Variables (Native SplateClient Color.kt hex values)
   -------------------------------------------------------------------------- */
:root,
html[data-theme="dark"] {
  --bg-canvas: #050914;
  --bg-deep: #020408;
  --surface: #0c1424;
  --surface-elevated: #141f38;
  --surface-overlay: rgba(12, 20, 36, 0.85);

  --border-subtle: #1d2e4e;
  --border-medium: #2c436d;
  --border-glass: rgba(160, 197, 255, 0.16);
  --border-glass-elevated: rgba(160, 197, 255, 0.32);

  --text-primary: #f5f9fc;
  --text-secondary: #96acc8;
  --text-tertiary: #6b829e;
  --text-inverse: #001218;

  --accent: #7bddec;
  --accent-rgb: 123, 221, 236;
  --accent-secondary: #829fff;
  --accent-emerald: #53dbab;
  --accent-amber: #f4c474;
  --accent-crimson: #ff728a;

  --ambient-1: rgba(130, 159, 255, 0.12);
  --ambient-2: rgba(123, 221, 236, 0.10);
  --ambient-3: rgba(40, 96, 235, 0.14);

  --specular-sheen: rgba(255, 255, 255, 0.20);
  --glass-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
  --button-shadow: 0 8px 24px -4px rgba(123, 221, 236, 0.32);
}

html[data-theme="winter"] {
  --bg-canvas: #0b1829;
  --bg-deep: #050e1b;
  --surface: #14263b;
  --surface-elevated: #1c334b;
  --surface-overlay: rgba(20, 38, 59, 0.86);

  --border-subtle: #30475f;
  --border-medium: #506b87;
  --border-glass: rgba(155, 199, 232, 0.22);
  --border-glass-elevated: rgba(155, 199, 232, 0.38);

  --text-primary: #f2f7ff;
  --text-secondary: #bdd0e5;
  --text-tertiary: #8ba5c4;
  --text-inverse: #10263c;

  --accent: #addfff;
  --accent-rgb: 173, 223, 255;
  --accent-secondary: #d9d7ff;
  --accent-emerald: #8ddcc5;
  --accent-amber: #f4d29a;
  --accent-crimson: #ffa6b4;

  --ambient-1: rgba(173, 223, 255, 0.15);
  --ambient-2: rgba(116, 156, 200, 0.12);
  --ambient-3: rgba(188, 203, 236, 0.10);

  --specular-sheen: rgba(229, 244, 255, 0.26);
  --glass-shadow: 0 16px 36px -10px rgba(5, 14, 27, 0.6);
  --button-shadow: 0 8px 24px -4px rgba(173, 223, 255, 0.35);
}

html[data-theme="ocean"] {
  --bg-canvas: #041721;
  --bg-deep: #020c16;
  --surface: #0b2230;
  --surface-elevated: #13303f;
  --surface-overlay: rgba(11, 34, 48, 0.86);

  --border-subtle: #2d5361;
  --border-medium: #46717e;
  --border-glass: rgba(130, 220, 236, 0.22);
  --border-glass-elevated: rgba(130, 220, 236, 0.36);

  --text-primary: #eaf8ff;
  --text-secondary: #b7d2d7;
  --text-tertiary: #769ca6;
  --text-inverse: #031820;

  --accent: #88ddc7;
  --accent-rgb: 136, 221, 199;
  --accent-secondary: #9acce8;
  --accent-emerald: #62deb4;
  --accent-amber: #f4cb83;
  --accent-crimson: #ff839c;

  --ambient-1: rgba(136, 221, 199, 0.14);
  --ambient-2: rgba(78, 141, 160, 0.16);
  --ambient-3: rgba(100, 187, 167, 0.12);

  --specular-sheen: rgba(215, 244, 255, 0.24);
  --glass-shadow: 0 16px 36px -10px rgba(2, 12, 22, 0.65);
  --button-shadow: 0 8px 24px -4px rgba(136, 221, 199, 0.32);
}

html[data-theme="amoled"] {
  --bg-canvas: #000000;
  --bg-deep: #000000;
  --surface: #060809;
  --surface-elevated: #0e1114;
  --surface-overlay: rgba(8, 11, 14, 0.92);

  --border-subtle: #18202a;
  --border-medium: #253040;
  --border-glass: rgba(108, 207, 184, 0.18);
  --border-glass-elevated: rgba(108, 207, 184, 0.32);

  --text-primary: #f8fcff;
  --text-secondary: #8ea4bc;
  --text-tertiary: #5d7082;
  --text-inverse: #001a16;

  --accent: #8ef0cf;
  --accent-rgb: 142, 240, 207;
  --accent-secondary: #67c9e0;
  --accent-emerald: #00f5b0;
  --accent-amber: #ffc942;
  --accent-crimson: #ff3366;

  --ambient-1: rgba(0, 119, 182, 0.18);
  --ambient-2: rgba(142, 240, 207, 0.10);
  --ambient-3: rgba(0, 200, 255, 0.08);

  --specular-sheen: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.85);
  --button-shadow: 0 8px 24px -4px rgba(142, 240, 207, 0.30);
}

html[data-theme="light"] {
  --bg-canvas: #f2f5fa;
  --bg-deep: #e6edf5;
  --surface: #ffffff;
  --surface-elevated: #f7f9fc;
  --surface-overlay: rgba(255, 255, 255, 0.88);

  --border-subtle: #d7e0ea;
  --border-medium: #a8b8ca;
  --border-glass: rgba(59, 124, 245, 0.20);
  --border-glass-elevated: rgba(59, 124, 245, 0.35);

  --text-primary: #0c1428;
  --text-secondary: #43536b;
  --text-tertiary: #6b7c93;
  --text-inverse: #ffffff;

  --accent: #245fbe;
  --accent-rgb: 36, 95, 190;
  --accent-secondary: #7052b8;
  --accent-emerald: #007a55;
  --accent-amber: #965600;
  --accent-crimson: #c72c4b;

  --ambient-1: rgba(255, 133, 204, 0.12);
  --ambient-2: rgba(64, 200, 255, 0.14);
  --ambient-3: rgba(112, 82, 184, 0.08);

  --specular-sheen: rgba(255, 255, 255, 0.90);
  --glass-shadow: 0 16px 36px -10px rgba(36, 95, 190, 0.12);
  --button-shadow: 0 8px 24px -4px rgba(36, 95, 190, 0.28);
}

/* --------------------------------------------------------------------------
   3. Global Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'OneSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* RTL (Persian / Farsi) Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'OneSans', 'Vazirmatn', Tahoma, -apple-system, sans-serif;
}

[dir="rtl"] .hero-cta-group,
[dir="rtl"] .hero-specs-bar,
[dir="rtl"] .nav-shell,
[dir="rtl"] .footer-inner {
  direction: rtl;
}

[dir="rtl"] .step-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .theme-dropdown,
[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

/* Ambient dynamic backdrops */
.ambient-glow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.85;
}

.orb-primary {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, var(--ambient-1) 0%, transparent 70%);
}

.orb-secondary {
  width: 650px;
  height: 650px;
  top: 35%;
  left: -200px;
  background: radial-gradient(circle, var(--ambient-2) 0%, transparent 70%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.08;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 80%);
}

.content-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   4. Liquid Glass Components
   -------------------------------------------------------------------------- */
.liquid-card {
  background: var(--surface-overlay);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 
    inset 0 1px 1px 0 var(--specular-sheen),
    var(--glass-shadow);
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.25s ease;
  position: relative;
}

.liquid-card:hover {
  border-color: var(--border-glass-elevated);
}

.mono-pill {
  font-family: ui-monospace, 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--accent);
}

.mono-pill.emerald {
  background: rgba(83, 219, 171, 0.10);
  border-color: rgba(83, 219, 171, 0.30);
  color: var(--accent-emerald);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* --------------------------------------------------------------------------
   5. Site Header & Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-wrap {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-subtitle {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-item-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.90rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-item-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language Picker */
.lang-picker {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.80rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-btn:hover {
  border-color: var(--border-glass-elevated);
  background: rgba(var(--accent-rgb), 0.14);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  padding: 5px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
}

.lang-dropdown.open {
  display: flex;
}

.lang-option {
  display: block;
  text-decoration: none;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.80rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  width: 100%;
}

.lang-option:hover,
.lang-option.active {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--text-primary);
}

/* Theme Picker Dropdown */
.theme-picker {
  position: relative;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.theme-btn:hover {
  border-color: var(--border-glass-elevated);
  background: rgba(var(--accent-rgb), 0.14);
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 120;
}

.theme-dropdown.open {
  display: flex;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
  width: 100%;
}

.theme-option:hover,
.theme-option.active {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--text-primary);
}

.theme-color-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.bullet-dark { background: #7bddec; }
.bullet-winter { background: #addfff; }
.bullet-ocean { background: #88ddc7; }
.bullet-amoled { background: #8ef0cf; }
.bullet-light { background: #245fbe; }

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 40px 0 55px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-headline {
  font-size: clamp(2.0rem, 3.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-headline span.accent-highlight {
  color: var(--accent);
}

.hero-description {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  color: var(--text-inverse);
  font-size: 0.98rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--button-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.40);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid var(--border-glass-elevated);
  color: var(--text-primary);
  font-size: 0.94rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn-secondary:hover {
  background: rgba(var(--accent-rgb), 0.15);
  transform: translateY(-2px);
}

/* Hero Specs Bar */
.hero-specs-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid var(--border-subtle);
  max-width: 500px;
  flex-wrap: wrap;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-key {
  font-size: 0.62rem;
  font-family: ui-monospace, monospace;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.spec-val {
  font-size: 0.82rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: var(--text-primary);
}

.spec-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
}

/* --------------------------------------------------------------------------
   6.5 REAL INTERACTIVE ANDROID APP SIMULATOR (Pixel-perfect to screenshots)
   -------------------------------------------------------------------------- */
.sim-phone-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  position: relative;
}

.sim-phone-shell {
  width: 326px;
  max-width: 100%;
  height: 654px;
  border-radius: 44px;
  background: #020204;
  border: 3.5px solid #283952;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 50px -10px rgba(var(--accent-rgb), 0.25),
    inset 0 0 12px rgba(0, 0, 0, 0.95);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.sim-camera-hole {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sim-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 2px;
  font-size: 0.68rem;
  color: #fff;
  z-index: 70;
  font-family: ui-monospace, monospace;
}

.sim-screen-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #07030a url('../assets/theme_sakura.png') center / cover no-repeat;
  transition: background 0.35s ease-in-out;
}

.sim-screen-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 4, 12, 0.72) 0%, rgba(16, 7, 24, 0.58) 40%, rgba(8, 4, 12, 0.88) 100%);
  pointer-events: none;
  z-index: 1;
}

.sim-status-bar,
.sim-viewport-scroll,
.sim-bottom-dock,
.sim-nav-gesture-bar {
  position: relative;
  z-index: 2;
}

.sim-screen-body[data-sim-theme="sakura"] {
  background: #07030a url('../assets/theme_sakura.png') center / cover no-repeat;
}

.sim-screen-body[data-sim-theme="sunset"] {
  background: #07030a url('../assets/theme_sunset.png') center / cover no-repeat;
}

.sim-screen-body[data-sim-theme="ocean"] {
  background: #07030a url('../assets/theme_ocean.png') center / cover no-repeat;
}

.sim-screen-body[data-sim-theme="cyberpunk"] {
  background: #07030a url('../assets/theme_cyberpunk.png') center / cover no-repeat;
}

.sim-screen-body[data-sim-theme="amoled"] {
  background: #040206;
}

.sim-viewport-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 10px 72px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.sim-viewport-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.sim-pane {
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: simFade 0.2s ease;
}

.sim-pane.active {
  display: flex;
}

@keyframes simFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Simulator Shared Glass Card */
.sim-card {
  background: rgba(22, 12, 28, 0.74);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Simulator Top Header */
.sim-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 6px;
}

.sim-brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(244, 150, 180, 0.18);
  border: 1px solid rgba(244, 150, 180, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffb5cf;
}

.sim-brand-title {
  font-size: 0.90rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
}

.sim-brand-sub {
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  color: #c4b5cd;
}

.sim-header-actions {
  display: flex;
  gap: 5px;
}

.sim-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5cd;
}

/* Simulator Status Badge */
.sim-status-pill {
  align-self: center;
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0d0e6;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
}

.sim-status-pill.connected {
  background: rgba(255, 140, 180, 0.18);
  border-color: rgba(255, 140, 180, 0.4);
  color: #ffb8d4;
}

/* Simulator Location Card (Masked Host / No IP leak) */
.sim-location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 14px;
}

.sim-loc-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-loc-flag {
  font-size: 1.25rem;
}

.sim-loc-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.sim-loc-masked {
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  color: #b5a4bf;
  letter-spacing: 0.04em;
}

/* Simulator Central Connect Button */
.sim-connect-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  position: relative;
}

.sim-pulse-ring {
  position: absolute;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 150, 190, 0.35);
  pointer-events: none;
  animation: simRingPulse 18s linear infinite;
}

.sim-screen-body.is-connected .sim-pulse-ring {
  border: 1.5px solid rgba(255, 150, 190, 0.65);
  animation: simGlowHalo 2.5s infinite ease-in-out;
}

@keyframes simRingPulse {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes simGlowHalo {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.sim-connect-orb {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #30183b 0%, #15091c 80%);
  border: 2px solid rgba(255, 150, 190, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffb8d4;
  z-index: 10;
}

.sim-screen-body.is-connected .sim-connect-orb {
  border-color: #ffb8d4;
  box-shadow: 0 0 24px rgba(255, 150, 190, 0.5), inset 0 0 12px rgba(255, 150, 190, 0.25);
}

.sim-connect-orb:hover {
  transform: scale(1.04);
}

.sim-connect-orb:active {
  transform: scale(0.96);
}

.sim-orb-label {
  font-family: ui-monospace, monospace;
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Control Pills Row */
.sim-preset-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sim-preset-pill {
  padding: 6px 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.sim-preset-label {
  font-family: ui-monospace, monospace;
  font-size: 0.58rem;
  color: #a894b2;
}

.sim-preset-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Active Server Item */
.sim-server-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.sim-server-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.sim-server-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d6badf;
  flex-shrink: 0;
}

.sim-server-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sim-server-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sim-server-meta {
  font-family: ui-monospace, monospace;
  font-size: 0.60rem;
  color: #b5a4bf;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sim-badge-proto {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 150, 190, 0.18);
  color: #ffb8d4;
  font-size: 0.56rem;
  font-weight: 700;
}

.sim-badge-proto.hysteria {
  background: rgba(235, 60, 95, 0.22);
  color: #ff5e82;
  border: 1px solid rgba(235, 60, 95, 0.35);
}

.sim-badge-proto.tls {
  background: rgba(46, 204, 113, 0.2);
  color: #38d677;
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.sim-badge-proto.vless {
  background: rgba(120, 85, 220, 0.22);
  color: #b095fa;
  border: 1px solid rgba(120, 85, 220, 0.35);
}

.sim-badge-proto.purple {
  background: rgba(145, 75, 185, 0.22);
  color: #cc8bf5;
  border: 1px solid rgba(145, 75, 185, 0.35);
}

.sim-item-status-pill {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c4b5cd;
}

.sim-item-status-pill.idle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d1c4dc;
}

.sim-item-status-pill.error {
  background: rgba(235, 60, 95, 0.18);
  border: 1px solid rgba(235, 60, 95, 0.35);
  color: #ff6b8b;
}

.sim-item-action-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b8a8c4;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.sim-item-action-icon:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.sim-badge-ping {
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(83, 219, 171, 0.15);
  color: #53dbab;
  border: 1px solid rgba(83, 219, 171, 0.3);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Routing Profile Cards */
.sim-routing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sim-routing-card {
  padding: 8px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.15s ease;
}

.sim-routing-card.active {
  border-color: #ffb8d4;
  background: rgba(255, 140, 180, 0.14);
}

.sim-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.70rem;
  font-weight: 800;
  color: #fff;
}

.sim-route-radio {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #a894b2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-routing-card.active .sim-route-radio {
  border-color: #ffb8d4;
  background: #ffb8d4;
}

.sim-route-desc {
  font-size: 0.58rem;
  color: #b5a4bf;
  line-height: 1.25;
}

.sim-route-tag {
  align-self: flex-start;
  font-family: ui-monospace, monospace;
  font-size: 0.54rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  color: #d6badf;
}

/* Telemetry Line */
.sim-telemetry-row {
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, monospace;
  font-size: 0.60rem;
  color: #b5a4bf;
  padding: 4px 6px;
}

/* Simulator Servers View Styling */
.sim-vpn-tor-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 14px;
  padding: 3px;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sim-vpn-tor-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 11px;
  background: transparent;
  border: none;
  color: #b5a4bf;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-vpn-tor-btn.active {
  background: rgba(255, 140, 180, 0.22);
  color: #ffb8d4;
  border: 1px solid rgba(255, 140, 180, 0.4);
}

.sim-servers-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-servers-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-badge-count {
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sim-tools-row {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.sim-tools-row::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.sim-tool-btn {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d6badf;
  font-family: inherit;
  font-size: 0.64rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease;
}

.sim-tool-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.sim-tool-btn.real {
  color: #53dbab;
  border-color: rgba(83, 219, 171, 0.3);
}

.sim-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  color: #a894b2;
}

.sim-search-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c4b5cd;
}

.sim-search-right {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffb8d4;
}

.sim-stats-triple-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.sim-stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.60rem;
  color: #c4b5cd;
  text-align: center;
  gap: 2px;
}

.sim-stat-chip strong {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: #fff;
}

.sim-autoselect-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 2px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffb8d4;
}

.sim-group-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-group-sub {
  font-size: 0.58rem;
  color: #a894b2;
  font-weight: 500;
}

.sim-servers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-server-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 11, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.15s ease;
}

.sim-server-item:hover {
  background: rgba(255, 140, 180, 0.14);
  border-color: rgba(255, 140, 180, 0.35);
}

.sim-server-item.active {
  border-color: #ffb8d4;
  background: rgba(255, 140, 180, 0.22);
  box-shadow: 0 4px 14px rgba(255, 140, 180, 0.15);
}

.sim-server-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.58rem;
  color: #c4b5cd;
}

.sim-server-item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sim-server-select-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.sim-server-name-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-server-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 0.56rem;
  color: #c4b5cd;
  margin-top: 2px;
}

.sim-radio-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #a894b2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.sim-server-item.active .sim-radio-circle {
  border-color: #ffb8d4;
  background: #ffb8d4;
}

.sim-radio-inner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #250b28;
}

/* Simulator Apps View Styling */
.sim-app-mode-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 10, 26, 0.5);
  margin-bottom: 6px;
  transition: all 0.15s ease;
}

.sim-app-mode-item:hover {
  background: rgba(255, 140, 180, 0.08);
}

.sim-app-mode-item.active {
  border-color: #ffb8d4;
  background: rgba(255, 140, 180, 0.15);
}

.sim-mode-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #a894b2;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sim-app-mode-item.active .sim-mode-radio {
  border-color: #ffb8d4;
  background: #ffb8d4;
}

.sim-app-list-preview {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}

.sim-app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-app-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #fff;
  font-weight: 600;
}

.sim-app-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffb8d4;
}

/* Switch Component */
.sim-switch {
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.sim-switch.active {
  background: #ffb8d4;
}

.sim-switch-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.sim-switch.active .sim-switch-thumb {
  transform: translateX(16px);
  background: #200d2b;
}

/* Simulator Settings View Styling */
.sim-settings-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(20, 10, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.15s ease;
}

.sim-setting-item:hover {
  background: rgba(255, 140, 180, 0.12);
  border-color: rgba(255, 140, 180, 0.3);
  transform: translateY(-1px);
}

.sim-setting-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-setting-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffb8d4;
  flex-shrink: 0;
}

.sim-setting-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.sim-setting-desc {
  font-size: 0.60rem;
  color: #a894b2;
}

/* Simulator Bottom Dock */
.sim-bottom-dock {
  position: absolute;
  bottom: 12px;
  left: 8px;
  right: 8px;
  height: 52px;
  border-radius: 18px;
  background: rgba(18, 8, 24, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 70;
  padding: 3px 4px;
  gap: 2px;
}

.sim-dock-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 1px;
  border-radius: 11px;
  background: transparent;
  border: none;
  color: #9c8aab;
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sim-dock-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.sim-dock-btn.active {
  background: rgba(255, 140, 180, 0.22);
  color: #ffb8d4;
}

.sim-nav-gesture-bar {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  z-index: 75;
  pointer-events: none;
}

/* Simulator External Controls Under Phone */
.sim-controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 326px;
  margin: 0 auto;
}

.sim-ext-tabs {
  display: flex;
  width: 100%;
  background: rgba(var(--card-bg-rgb), 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 3px;
  gap: 3px;
}

.sim-ext-tab-btn {
  flex: 1;
  padding: 6px 3px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sim-ext-tab-btn:hover {
  color: var(--text-primary);
}

.sim-ext-tab-btn.active {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--text-primary);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.sim-theme-selector-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.sim-theme-chip {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.70rem;
  font-weight: 600;
  border: 1px solid var(--border-glass);
  background: rgba(var(--card-bg-rgb), 0.5);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-theme-chip:hover {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--text-primary);
}

.sim-theme-chip.active {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(var(--accent-rgb), 0.22);
}

/* --------------------------------------------------------------------------
   6.8 WTPN Community Partnership Section (wtpn.pro)
   -------------------------------------------------------------------------- */
.wtpn-section {
  padding: 50px 0 65px;
  position: relative;
}

.wtpn-card {
  background: linear-gradient(135deg, rgba(32, 22, 10, 0.78) 0%, rgba(14, 10, 6, 0.88) 100%);
  border: 1px solid rgba(245, 175, 40, 0.32);
  box-shadow: 
    0 20px 48px -15px rgba(245, 175, 40, 0.18),
    inset 0 1px 2px rgba(255, 230, 150, 0.22);
  border-radius: 24px;
  padding: 36px 34px;
  position: relative;
  overflow: hidden;
}

.wtpn-card::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 175, 40, 0.2) 0%, transparent 70%);
  filter: blur(44px);
  pointer-events: none;
}

.wtpn-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.wtpn-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wtpn-logo-tag {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffca42;
  text-shadow: 0 0 24px rgba(245, 175, 40, 0.45);
}

.wtpn-collab-pill {
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(245, 175, 40, 0.16);
  color: #ffda73;
  border: 1px solid rgba(245, 175, 40, 0.38);
}

.wtpn-title {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.wtpn-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #ded1bd;
  max-width: 820px;
  margin-bottom: 26px;
}

.wtpn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.wtpn-feature-box {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(245, 175, 40, 0.18);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.wtpn-feature-box:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 175, 40, 0.4);
}

.wtpn-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 175, 40, 0.14);
  border: 1px solid rgba(245, 175, 40, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffca42;
}

.wtpn-feature-title {
  font-size: 0.78rem;
  font-weight: 650;
  color: #fff;
}

.wtpn-feature-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #bfae95;
}

.wtpn-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-wtpn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5af28 0%, #d48f10 100%);
  color: #1a0f02;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(245, 175, 40, 0.35);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-wtpn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245, 175, 40, 0.5);
  color: #000;
}

.btn-wtpn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(245, 175, 40, 0.12);
  border: 1px solid rgba(245, 175, 40, 0.25);
  color: #ffca42;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-wtpn-secondary:hover {
  background: rgba(245, 175, 40, 0.2);
  border-color: rgba(245, 175, 40, 0.45);
}

@media (max-width: 820px) {
  .wtpn-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   7. Platform Download Cards Section
   -------------------------------------------------------------------------- */
.download-section {
  padding: 40px 0 65px;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.96rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.platform-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.platform-card.detected-os {
  border-color: var(--accent);
  box-shadow: 
    0 0 0 1px var(--accent),
    0 16px 36px -10px rgba(var(--accent-rgb), 0.25);
}

.platform-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.platform-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.platform-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.platform-title-area {
  margin-top: 14px;
}

.platform-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.platform-req {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.platform-meta-block {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: ui-monospace, monospace;
}

.release-tag-display {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.release-date-display {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* Architecture Select Area (Android) */
.arch-select-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-chips-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.arch-chip {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.arch-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-glass-elevated);
}

.arch-chip.active {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: var(--accent);
  color: var(--accent);
}

/* Primary Download Button in Card */
.platform-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-download-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  color: var(--text-inverse);
  box-shadow: var(--button-shadow);
  transition: transform 0.18s ease;
}

.platform-download-btn:hover {
  transform: translateY(-2px);
}

.btn-file-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 2px 7px;
  border-radius: 5px;
}

/* Terminal Command Box */
.terminal-command-box {
  padding: 9px 12px;
  border-radius: 10px;
  background: #020408;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: ui-monospace, monospace;
  font-size: 0.80rem;
}

.terminal-cmd {
  color: var(--accent-emerald);
  word-break: break-all;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-copy:hover {
  background: rgba(var(--accent-rgb), 0.20);
  border-color: var(--accent);
  color: var(--accent);
}

.card-aux-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.aux-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.aux-link:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   8. Clean Instructions Section
   -------------------------------------------------------------------------- */
.guides-section {
  padding: 40px 0 65px;
}

.guide-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.guide-tab-trigger {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.90rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.guide-tab-trigger:hover {
  color: var(--text-primary);
}

.guide-tab-trigger.active {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.guide-tab-pane {
  display: none;
}

.guide-tab-pane.active {
  display: block;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid var(--border-glass-elevated);
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body {
  flex: 1;
}

.step-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.90rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   9. Technical Capabilities (Features)
   -------------------------------------------------------------------------- */
.features-section {
  padding: 40px 0 65px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   10. Changelog Modal
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  max-width: 640px;
  width: 100%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-area {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-sub {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.90rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-body h2, .modal-body h3 {
  color: var(--text-primary);
  margin: 14px 0 6px;
  font-weight: 700;
  font-size: 1.05rem;
}

.modal-body ul {
  padding-left: 18px;
  margin-bottom: 12px;
}

.modal-body li {
  margin-bottom: 5px;
}

.modal-body code {
  font-family: ui-monospace, monospace;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.85em;
}

.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   11. Toast Notice & Anti-Bot Defense
   -------------------------------------------------------------------------- */
.toast-notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glass-elevated);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  color: var(--accent-emerald);
  display: flex;
}

.toast-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Invisible Bot Honeypot Trap */
.bot-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   12. Minimal Dev Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 36px 0 28px;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.90rem;
  color: var(--text-secondary);
}

.footer-brand strong {
  color: var(--text-primary);
  font-weight: 800;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-specs-bar {
    margin: 0 auto;
    justify-content: center;
  }

  .platforms-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Product preview and theme-aware surfaces */
.app-preview { border: 1px solid var(--border-glass); border-radius: 28px; background: var(--surface-overlay); box-shadow: var(--glass-shadow); padding: 18px; max-width: 620px; }
.preview-head { display:flex; justify-content:space-between; align-items:center; padding: 0 4px 16px; color:var(--text-secondary); font-size:.8rem; font-weight:600; }
.preview-dot { color:var(--accent-emerald); }
.preview-layout { display:grid; grid-template-columns:minmax(145px, 48%) 1fr; align-items:center; gap:24px; }
.preview-image { display:block; width:100%; max-height:480px; object-fit:contain; border-radius:18px; }
.preview-info h3 { color:var(--text-primary); font-size:1.35rem; line-height:1.2; margin:20px 0 12px; }
.preview-info p { color:var(--text-secondary); line-height:1.6; font-size:.91rem; }
.preview-eyebrow, .preview-note { color:var(--text-tertiary); font-size:.75rem; }
.preview-note { display:block; margin-top:24px; }
.preview-tabs { display:flex; gap:5px; padding:4px; margin-top:12px; border-radius:12px; background:var(--bg-deep); }
.preview-tab { flex:1; border:0; border-radius:9px; padding:9px; background:transparent; color:var(--text-secondary); font:inherit; cursor:pointer; }
.preview-tab.active { background:var(--surface-elevated); color:var(--text-primary); }
.wtpn-card { background:var(--surface); border-color:var(--border-glass); color:var(--text-primary); }
.wtpn-card::before { opacity:.28; }
.wtpn-title, .wtpn-feature-title { color:var(--text-primary); }
.wtpn-desc, .wtpn-feature-desc { color:var(--text-secondary); }
.wtpn-feature-box { background:var(--surface-elevated); border-color:var(--border-glass); }
.wtpn-collab-pill, .btn-wtpn-secondary { color:var(--text-primary); border-color:var(--border-medium); background:var(--surface-elevated); }
:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
@media (max-width: 500px) { .preview-layout { gap:14px; grid-template-columns: 45% 1fr; } .preview-info h3 { font-size:1.05rem; } .preview-info p { font-size:.8rem; } .app-preview { padding:14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; } }

/* Interactive Android app preview */
.interactive-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.demo-phone {
  --demo-accent: #ffaa87;
  --demo-muted: #dfc0b8;
  --demo-surface: rgba(34, 14, 40, 0.78);
  --demo-border: rgba(255, 170, 135, 0.28);
  width: min(100%, 300px);
  aspect-ratio: 1 / 2;
  border: 6px solid #28232b;
  border-radius: 36px;
  overflow: hidden;
  padding: 0 0 6px;
  color: #fff;
  background-color: #120414;
  box-shadow: 0 18px 48px #0006;
  background-image: linear-gradient(#09070ce8, #09070cbd 54%, #09070c85), var(--demo-wallpaper, none);
  background-position: center, center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  position: relative;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.demo-camera {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  background: #000;
  border: 1.5px solid #282932;
  border-radius: 50%;
  z-index: 10;
  pointer-events: none;
  box-shadow: inset 0 0 3px #000, 0 0 2px rgba(255, 255, 255, 0.15);
}

.demo-top,
.demo-scroll,
.demo-nav,
.demo-gesture {
  position: relative;
  z-index: 1;
}

.demo-phone[data-demo-theme="sunset"] {
  --demo-accent: #ffaa87;
  --demo-muted: #dfc0b8;
  --demo-border: rgba(255, 170, 135, 0.35);
  --demo-surface: rgba(34, 14, 40, 0.82);
  --demo-wallpaper: url('../assets/theme_sunset.png');
  background-color: #120414;
}

.demo-phone[data-demo-theme="sakura"] {
  --demo-accent: #f4b5cd;
  --demo-muted: #e2cadb;
  --demo-border: rgba(244, 181, 205, 0.32);
  --demo-surface: rgba(37, 26, 48, 0.82);
  --demo-wallpaper: url('../assets/theme_sakura.png');
  background-color: #140d1d;
}

.demo-phone[data-demo-theme="ocean"] {
  --demo-accent: #88ddc7;
  --demo-muted: #b7d2d7;
  --demo-border: rgba(136, 221, 199, 0.32);
  --demo-surface: rgba(11, 34, 48, 0.82);
  --demo-wallpaper: url('../assets/theme_ocean.png');
  background-color: #041721;
}

.demo-phone[data-demo-theme="cyberpunk"] {
  --demo-accent: #00f0ff;
  --demo-muted: #d2c3e4;
  --demo-border: rgba(190, 72, 233, 0.35);
  --demo-surface: rgba(20, 10, 32, 0.82);
  --demo-wallpaper: url('../assets/theme_cyberpunk.png');
  background-color: #080414;
}

.demo-phone[data-demo-theme="amoled"] {
  --demo-accent: #8ef0cf;
  --demo-muted: #8ea4bc;
  --demo-border: rgba(142, 240, 207, 0.28);
  --demo-surface: rgba(14, 17, 20, 0.90);
  background: #000;
}

.demo-top {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  touch-action: pan-y;
  font-family: ui-monospace, 'SF Mono', -apple-system, sans-serif;
  font-weight: 600;
}

.demo-top-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-top-dot {
  font-size: 0.5rem;
  color: var(--demo-accent);
}

.demo-top-right {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
}

.demo-top-right svg {
  display: block;
  color: rgba(255, 255, 255, 0.85);
}

.demo-top-battery {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: ui-monospace, 'SF Mono', monospace;
}

.demo-flag-svg {
  border-radius: 3px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.demo-selected-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.demo-lock-icon {
  color: var(--demo-accent);
  flex: none;
  display: block;
}

.demo-group-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--demo-accent);
}

.demo-group-title svg {
  display: block;
}

.demo-app-icon svg {
  display: block;
}

.demo-filter-icon svg {
  display: block;
}

.demo-square svg {
  display: block;
}

.wtpn-feature-icon svg {
  display: block;
}

.demo-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden auto;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--demo-border) transparent;
  padding: 8px 18px 12px;
  display: flex;
  flex-direction: column;
}

.demo-panel {
  display: block;
  min-height: 0;
  text-align: start;
  touch-action: pan-y;
}

.demo-panel[hidden], .demo-panel [hidden] {
  display: none !important;
}

.demo-header {
  margin: 4px 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
}

.demo-app-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  color: var(--demo-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.demo-header-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-header-copy strong {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #fff;
}

.demo-header-copy small {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.64rem;
  color: var(--demo-muted);
  letter-spacing: 0.02em;
}

.demo-status-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 16px;
  border-radius: 20px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  color: var(--demo-muted);
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.demo-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--demo-muted);
  display: inline-block;
  transition: all 0.25s ease;
}

.demo-status.connected .demo-status-dot {
  background: #53dbab;
  box-shadow: 0 0 8px #53dbab;
}

.demo-status.connected {
  color: #fff;
  border-color: rgba(83, 219, 171, 0.4);
}

.demo-status-timer {
  color: var(--demo-accent);
  font-weight: 700;
}

.demo-connect-core-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 0 20px;
  position: relative;
}

.demo-connect {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.demo-connect-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--demo-accent);
  opacity: .23;
  transition: opacity .2s ease;
}

.demo-connect-surface {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.88)), var(--demo-surface);
  border: 1px solid var(--demo-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--demo-accent);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-shield-icon {
  width: 32px;
  height: 32px;
  filter: none;
  transition: transform 0.25s ease, filter 0.3s ease;
}

.demo-connect-text {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--demo-accent);
}

.demo-connect:hover .demo-connect-surface {
  transform: scale(1.02);
}

.demo-connect.connected .demo-connect-ring {
  opacity: 0.75;
  box-shadow: 0 0 32px #53dbab;
  border-color: #53dbab;

}

.demo-connect.connected .demo-connect-surface {
  color: #53dbab;
  border-color: rgba(83, 219, 171, 0.5);
}

.demo-connect.connected .demo-shield-icon {
  filter: drop-shadow(0 0 14px #53dbab);
}

.demo-connect.connected .demo-connect-text {
  color: #53dbab;
}

.demo-server-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 6px;
}

.demo-section-label {
  color: var(--demo-muted);
  letter-spacing: 0.1em;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  margin: 0;
}

.demo-auto {
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  color: var(--demo-accent);
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-server-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 4px;
}

.demo-filter-card {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 12px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  position: relative;
}

.demo-filter-icon {
  font-size: 1.05rem;
}

.demo-filter-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.demo-filter-copy small {
  font-size: 0.62rem;
  color: var(--demo-muted);
  font-weight: 500;
}

.demo-filter-copy select {
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  width: 100%;
  color-scheme: dark;
  font-size: 0.71rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.demo-filter-copy select option {
  background: #1c1322;
  color: #fff;
}

.demo-note {
  margin: 4px 2px 8px;
  color: var(--demo-muted);
  font-size: 0.62rem;
  line-height: 1.4;
  text-align: start;
  opacity: 0.85;
}

.demo-current {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 18px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.demo-server-badge {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--demo-border);
  color: var(--demo-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.demo-current-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.demo-current-copy strong {
  font-size: 0.90rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-current-copy small {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.68rem;
  color: var(--demo-muted);
}

.demo-ping-pill {
  padding: 3px 5px;
  border-radius: 8px;
  background: rgba(83, 219, 171, 0.16);
  border: 1px solid rgba(83, 219, 171, 0.35);
  color: #53dbab;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.70rem;
  font-weight: 700;
  white-space: nowrap;
}

.demo-chevron {
  color: var(--demo-muted);
  font-size: 1.15rem;
}

.demo-route-picker {
  margin: 6px 0;
  border-radius: 16px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  overflow: hidden;
}

.demo-route-picker summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.demo-route-picker summary::-webkit-details-marker {
  display: none;
}

.demo-route-icon {
  font-size: 1.1rem;
}

.demo-route-picker summary strong {
  flex: 1;
  font-size: 0.88rem;
  color: #fff;
}

.demo-edit-link {
  font-size: 0.72rem;
  color: var(--demo-accent);
  font-weight: 600;
}

.demo-route {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
}

.demo-route button {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 52px;
  text-align: start;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--demo-border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
}

.demo-route button.active {
  border-color: var(--demo-accent);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px var(--demo-accent);
}

.demo-route strong { font-size: 0.74rem; }
.demo-route small { color: var(--demo-muted); font-size: 0.62rem; }

.demo-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 10px 0 6px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  text-align: center;
}

.demo-metrics div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.demo-metrics small {
  font-size: 0.65rem;
  color: var(--demo-muted);
  font-weight: 500;
}

.demo-metrics strong {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.86rem;
  color: #fff;
}

.demo-mode {
  display: flex;
  gap: 6px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 8px;
}

.demo-mode button {
  flex: 1;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--demo-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.demo-mode button.active {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--demo-border);
}

.demo-mode-caption {
  margin: 2px 2px 10px !important;
  font-size: 0.68rem !important;
  color: var(--demo-muted);
}

.demo-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
}

.demo-screen-head h3 {
  margin: 0 0 3px;
  font-size: 1.15rem;
  font-weight: 800;
}

.demo-screen-head p {
  margin: 0;
  font-size: 0.70rem;
  color: var(--demo-muted);
}

.demo-count {
  border-radius: 10px;
  padding: 4px 9px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  color: var(--demo-accent);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: ui-monospace, 'SF Mono', monospace;
}

.demo-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--demo-border);
  background: var(--demo-surface);
  border-radius: 14px;
  color: var(--demo-accent);
  font-size: 0.70rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.demo-tools button {
  background: transparent;
  border: none;
  color: var(--demo-accent);
  font: inherit;
  cursor: pointer;
  font-weight: 700;
}

.demo-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 9px 12px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: 14px;
  color: var(--demo-muted);
}

.demo-search:focus-within { border-color: var(--demo-accent); }

.demo-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: white;
  outline: 0;
  font: inherit;
  font-size: 0.76rem;
}

.demo-search input::placeholder {
  color: var(--demo-muted);
  opacity: 0.8;
}

.demo-list-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--demo-accent);
  margin: 10px 2px 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-list-title small {
  color: var(--demo-muted);
  font-weight: 400;
  font-size: 0.64rem;
}

.demo-server {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font: inherit;
  padding: 10px 12px;
  margin: 5px 0;
  border-radius: 14px;
  border: 1px solid var(--demo-border);
  background: var(--demo-surface);
  color: #fff;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.demo-server.active {
  border-color: var(--demo-accent);
  background: rgba(255, 255, 255, 0.08);
}

.demo-server-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: start;
}

.demo-server-info strong { font-size: 0.78rem; overflow-wrap: anywhere; }
.demo-server-info small { font-size: 0.64rem; color: var(--demo-muted); font-family: ui-monospace, 'SF Mono', monospace; }
.demo-server-info small b { color: var(--demo-accent); }

.demo-radio {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--demo-muted);
  border-radius: 50%;
  flex: none;
}

.demo-server.active .demo-radio {
  border: 5px solid var(--demo-accent);
  background: transparent;
}

.demo-node-latency {
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(83, 219, 171, 0.14);
  color: #53dbab;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.65rem;
  white-space: nowrap;
}

.demo-empty { margin: 10px 3px; font-size: 0.72rem; }

.demo-tor-card { gap: 8px; padding: 12px 14px; margin: 6px 0; border-radius: 16px; }
.demo-tor-card p { color: var(--demo-muted); margin: 0; line-height: 1.4; font-size: 0.68rem; }

.demo-primary {
  padding: 10px;
  border: 1px solid var(--demo-accent);
  border-radius: 12px;
  color: #fff;
  background: var(--demo-border);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.demo-bridge-options, .demo-app-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-bridge-options button, .demo-app-modes button {
  padding: 7px 8px;
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  color: var(--demo-muted);
  background: transparent;
  font-size: 0.68rem;
  cursor: pointer;
  touch-action: manipulation;
}

.demo-bridge-options button.active, .demo-app-modes button.active {
  color: #fff;
  border-color: var(--demo-accent);
  background: rgba(255, 255, 255, 0.10);
}

.demo-tor-card > small { color: var(--demo-muted); letter-spacing: 0; line-height: 1.4; font-size: 0.64rem; }

.demo-app-card {
  padding: 12px 14px;
  margin: 6px 0;
  border-radius: 16px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-app-card small {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.64rem;
  color: var(--demo-muted);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.demo-app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 5px 0;
  padding: 9px 12px;
  border: 1px solid var(--demo-border);
  border-radius: 14px;
  color: white;
  text-align: start;
  background: var(--demo-surface);
  cursor: pointer;
}

.demo-app-icon {
  font-size: 1.2rem;
}

.demo-app-copy {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1px;
}

.demo-app-copy strong { font-size: 0.82rem; }
.demo-app-copy small { font-size: 0.64rem; color: var(--demo-muted); font-family: ui-monospace, 'SF Mono', monospace; }

.demo-app-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--demo-accent);
  cursor: pointer;
}

.demo-setting {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 6px 0;
  padding: 11px 14px;
  border: 1px solid var(--demo-border);
  border-radius: 16px;
  color: white;
  text-align: start;
  background: var(--demo-surface);
  cursor: pointer;
  font: inherit;
}

.demo-setting span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.demo-setting-info { cursor: default; }

.demo-setting strong { font-size: 0.84rem; }
.demo-setting small { font-size: 0.65rem; color: var(--demo-muted); }

.demo-square {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--demo-border);
  color: var(--demo-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: none;
}

.demo-appearance {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-appearance-head strong {
  font-size: 0.90rem;
  font-weight: 700;
  color: #fff;
}

.demo-appearance-head p {
  margin: 2px 0 0;
  font-size: 0.68rem;
  color: var(--demo-muted);
}

.demo-themes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 0;
}

.demo-theme-card {
  min-height: 72px;
  min-width: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--demo-border);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: start;
  outline: none;
  touch-action: manipulation;
}

.demo-theme-card:focus-visible {
  outline: 2px solid var(--demo-accent);
  outline-offset: 2px;
}

.demo-theme-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
}

.demo-theme-card.active {
  border-color: var(--demo-accent);
  box-shadow: none;
}

.demo-theme-preview {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}

/* Theme tiles use the same artwork as the phone. */
.demo-theme-preview {
  min-height: 40px;
  background-size: cover;
  background-position: center 70%;
}
.demo-theme-preview-sunset { background-image: url('../assets/theme_sunset.png'); }
.demo-theme-preview-sakura { background-image: url('../assets/theme_sakura.png'); }
.demo-theme-preview-ocean { background-image: url('../assets/theme_ocean.png'); }
.demo-theme-preview-cyberpunk { background-image: url('../assets/theme_cyberpunk.png'); }
.demo-theme-preview-amoled { background-color: #07080b; }

.demo-theme-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-theme-name {
  font-size: 0.66rem;
  overflow-wrap: anywhere;
  font-weight: 600;
  color: #fff;
}

.demo-theme-check {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--demo-accent);
  color: #0b0512;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.demo-theme-card.active .demo-theme-check {
  display: flex;
}

.demo-nav {
  flex: none;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  border-radius: 24px;
  margin: 0 14px 8px;
  padding: 5px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  touch-action: pan-y;
  position: relative;
  z-index: 2;
}

.demo-nav button {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 2px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: var(--demo-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
}

.demo-nav button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.demo-nav button small {
  font-size: 0.60rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.demo-nav button.active {
  color: var(--demo-accent);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px var(--demo-border);
}

.demo-nav button.active svg {
  transform: scale(1.08);
}

.demo-gesture {
  width: 96px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  margin: 2px auto 6px;
  flex: none;
}

.demo-caption {
  color: var(--text-secondary);
  font-size: 0.72rem;
  text-align: center;
}


.ambient-grid { display: none; }
.nav-shell { gap: 14px 24px; border-radius: 22px; background: var(--surface-overlay); }
.brand-link, .nav-actions { flex-shrink: 0; }
.brand-title { white-space: nowrap; font-size: 1rem; }
.nav-links { gap: clamp(8px, 1.5vw, 24px); }
.nav-item-link { display: inline-flex; padding: 8px 3px; }
.nav-item-link:hover { color: var(--accent); }

.hero-section { padding-block: clamp(24px, 5vw, 64px) clamp(44px, 8vw, 96px); }
.hero-grid {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(20px, 4vw, 48px);
  border-radius: 28px;
  background: radial-gradient(ellipse at 85% 45%, var(--ambient-1), transparent 62%);
}
.hero-headline { font-size: clamp(2.5rem, 5.1vw, 5rem); line-height: 1; letter-spacing: -.045em; }
.hero-headline .accent-highlight { display: inline-block; margin-top: .38em; font-size: .48em; line-height: 1.18; letter-spacing: -.022em; }
.hero-content { gap: 20px; }
.hero-content .mono-pill { align-self: flex-start; }
.hero-description { font-size: clamp(1rem, 1.5vw, 1.12rem); }
.hero-platforms { margin: 0; font-size: .83rem; color: var(--text-secondary); }
.hero-platforms span { margin-inline: .32em; opacity: .65; }
.interactive-demo { min-width: 0; }
.demo-caption { color: var(--text-secondary); }

.download-section, .guides-section, .features-section, .wtpn-section { scroll-margin-top: 140px; }
.section-head { text-align: start; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.035em; }
.platform-card, .feature-card, .wtpn-card { border-radius: 24px; background: var(--surface); }
.platform-card.detected-os { border-color: var(--accent); }
.feature-card { box-shadow: none; }
.wtpn-card { background: radial-gradient(ellipse at 90% 0%, var(--ambient-1), transparent 65%), var(--surface); }
.wtpn-card::before { display: none; }
.guide-tabs-nav { gap: 6px; }
.site-footer { border-top-color: var(--border-subtle); }

@media (max-width: 1000px) {
  .nav-shell { flex-wrap: wrap; }
  .nav-links {
    display: flex;
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 16px;
    border-top: 1px solid var(--border-glass);
  }
}
@media (max-width: 820px) {
  .site-header { position: relative; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: start; }
  .hero-content { align-items: flex-start; }
  .hero-cta-group { justify-content: flex-start; }
}
@media (max-width: 500px) {
  .site-header { position: relative; padding: 8px 0; }
  .nav-shell { padding: 10px; gap: 9px; }
  .nav-links { justify-content: flex-start; gap: 0 12px; }
  .nav-item-link { font-size: .77rem; }
  .brand-logo-wrap { width: 29px; height: 29px; }
  .brand-link { gap: 7px; }
  .brand-subtitle { display: none; }
  #currentThemeName { display: none; }
  .hero-grid { padding: 18px; }
  .hero-headline { overflow-wrap: anywhere; }
  .download-section, .guides-section, .features-section, .wtpn-section { scroll-margin-top: 14px; }
}

/* Compact home layout from the Android Sunset screen. */
.demo-server-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 3px 0 2px;
}
.demo-server-heading .demo-section-label {
  margin: 0;
  text-transform: none;
}
.demo-auto, .demo-metrics {
  background: linear-gradient(155deg, #ffffff18, transparent 55%), var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  box-shadow: inset 0 1px 4px #ffffff15;
}
.demo-auto {
  padding: 4px 8px;
  color: var(--demo-accent);
  font-size: 0.58rem;
  cursor: pointer;
  touch-action: manipulation;
}
.demo-auto[aria-pressed="false"] {
  color: var(--demo-muted);
  opacity: 0.7;
}
.demo-server-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 2px;
}
.demo-route-picker summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.62rem;
  list-style: none;
  touch-action: manipulation;
}
.demo-route-picker summary::-webkit-details-marker { display: none; }
.demo-route-picker summary strong { flex: 1; min-width: 0; font-size: .76rem; font-weight: 600; }
.demo-route-icon, .demo-edit-link { flex-shrink: 0; }
.demo-route-picker summary span { color: var(--demo-accent); }
.demo-route-picker .demo-route { margin-top: 4px; }
.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 4px;
  padding: 4px 2px;
  text-align: center;
}
.demo-metrics small, .demo-metrics strong { display: block; font-size: 0.56rem; }
.demo-metrics small { color: var(--demo-muted); margin-bottom: 1px; }
.demo-metrics strong { font-variant-numeric: tabular-nums; }
.demo-tools button {
  background: transparent;
  border: 0;
  color: var(--demo-accent);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.demo-node-latency { white-space: nowrap; }

@media (max-width: 500px) {
  .demo-phone {
    border-width: 6px;
    border-radius: 38px;
    padding: 0 0 4px;
  }
  .demo-scroll {
    padding: 6px 14px 10px;
  }
  .demo-nav {
    margin: 0 10px 6px;
    border-radius: 20px;
    padding: 4px;
  }
  .demo-nav button {
    padding: 6px 2px;
  }
}

#demoSpeedNote[hidden] { display: none; }
.demo-connect:focus-visible { outline: 2px solid var(--demo-accent); outline-offset: 8px; }

@media (min-width: 821px) and (max-height: 820px) {
  .demo-phone { width: min(100%, 280px); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.demo-panel:not(#demoHome) {
  padding-block: 6px 10px;
}

.demo-mode,
.demo-tools,
.demo-search,
.demo-server,
.demo-tor-card,
.demo-app-card,
.demo-app-row,
.demo-setting,
.demo-appearance,
.demo-nav {
  border-color: color-mix(in srgb, var(--demo-muted) 20%, transparent);
  box-shadow: none;
}

.demo-nav {
  border-radius: 18px;
  margin-inline: 10px;
  background: color-mix(in srgb, var(--demo-surface) 80%, #0c0a10);
}

.demo-nav button { border-radius: 13px; }
.demo-nav button.active svg { transform: none; }

/* Layered artwork from the Android client. */
.demo-phone { background-image: none; }
.demo-scene, .demo-landscape, .demo-trees {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.demo-scene { overflow: hidden; }
.demo-landscape {
  background: var(--demo-wallpaper, none) center bottom / 112% auto no-repeat;
  animation: demo-drift 18s ease-in-out infinite alternate;
}
.demo-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#08101d40, transparent 38%, #070a1222);
}
.demo-phone[data-demo-theme="winter"] {
  --demo-accent: #b6e6ff;
  --demo-muted: #d4e4f4;
  --demo-surface: rgba(29, 51, 77, .76);
  --demo-border: rgba(195, 221, 247, .34);
  --demo-wallpaper: url('../assets/theme_winter_night_environment.png');
  background-color: #031627;
}
.demo-phone[data-demo-theme="winter"] .demo-landscape { background-size: cover; background-position: center; }
.demo-phone[data-demo-theme="winter"] .demo-trees {
  width: 70%;
  height: 108%;
  background: url('../assets/theme_winter_night_forest.png') left center / 200% 100% no-repeat;
  opacity: .88;
  animation: demo-sway 12s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
.demo-phone[data-demo-theme="winter"] .demo-trees-start { left: -28%; }
.demo-phone[data-demo-theme="winter"] .demo-trees-end {
  left: auto;
  right: -28%;
  background-position: right center;
  animation-direction: alternate-reverse;
}
@keyframes demo-drift { to { transform: translateX(1%) scale(1.035); } }
@keyframes demo-sway { to { transform: rotate(.65deg); } }
@media (prefers-reduced-motion: reduce) {
  .demo-landscape, .demo-trees { animation: none !important; }
}

.demo-phone[data-demo-theme="winter"] :is(.demo-mode, .demo-tools, .demo-search, .demo-server, .demo-current, .demo-setting, .demo-tor-card, .demo-app-card, .demo-app-row, .demo-appearance, .demo-filter-card, .demo-route-picker, .demo-metrics, .demo-nav) {
  background: linear-gradient(155deg, #b0c8e337, transparent 55%), var(--demo-surface);
  border-color: var(--demo-border);
  backdrop-filter: blur(12px);
}
.demo-phone[data-demo-theme="winter"] .demo-connect-surface {
  background: radial-gradient(circle at 50% 20%, #2d425b, #061a2c 65%);
}
.demo-phone[data-demo-theme="winter"] .demo-scroll {
  text-shadow: 0 1px 4px #020b17aa;
}
.demo-theme-preview { min-height: 24px; background-image: none; }
.demo-theme-preview-winter { background: linear-gradient(140deg, #18334d, #9bc9e8); }
.demo-theme-preview-sunset { background: linear-gradient(140deg, #321522, #ee9f71); }
.demo-theme-preview-sakura { background: linear-gradient(140deg, #2d1b37, #e3a2c3); }
.demo-theme-preview-ocean { background: linear-gradient(140deg, #0d263a, #75cdc7); }
.demo-theme-preview-cyberpunk { background: linear-gradient(140deg, #321858, #04bacd); }
.demo-theme-card { min-height: 54px; }
.demo-appearance-head { cursor: pointer; }
.demo-appearance[open] > summary { margin-bottom: 8px; }
.demo-server-views { margin-bottom: 8px; }
.demo-sub-link { display: inline-block; text-align: center; text-decoration: none; }

/* The Tor screen shares the phone's type scale, not the site's body size. */
.demo-tor-card {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  margin-block: 8px;
  border: 1px solid var(--demo-border);
  background: var(--demo-surface);
  font-size: .71rem;
  line-height: 1.4;
}
.demo-tor-card strong { font-size: .79rem; font-weight: 650; }
.demo-tor-card > span, .demo-tor-heading div > span { color: var(--demo-muted); }
.demo-tor-heading { display: flex; align-items: center; gap: 8px; }
.demo-tor-heading div { display: grid; gap: 2px; }
.demo-tor-heading strong { font-size: .92rem; }
#demoTorConnect { width: 100%; }
.demo-bridge-options { gap: 4px; }
.demo-bridge-options button { padding: 5px 6px; font-size: .64rem; }
.demo-sunset-scene { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-phone[data-demo-theme="sunset"] .demo-landscape { background: linear-gradient(#170b17, #452132); animation: none; }
.demo-phone[data-demo-theme="sunset"] .demo-sunset-scene { display: block; }
.demo-sunset-haze { animation: sunset-clouds 21s ease-in-out infinite alternate; }
.demo-sunset-far { animation: sunset-ridge 18s ease-in-out infinite alternate; }
.demo-sunset-sun { animation: sunset-sun 12s ease-in-out infinite alternate; }
.demo-sunset-ridge { animation: sunset-ridge 16s ease-in-out infinite alternate-reverse; }
.demo-sunset-rocks { animation: sunset-ridge 14s ease-in-out infinite alternate; }
.demo-sunset-tree { transform-box: fill-box; transform-origin: 76% 95%; animation: sunset-tree 7s ease-in-out infinite alternate; }
@keyframes sunset-clouds { to { transform: translateX(14px); } }
@keyframes sunset-ridge { to { transform: translateX(5px); } }
@keyframes sunset-sun { to { transform: translateY(-5px); } }
@keyframes sunset-tree { to { transform: rotate(1.6deg); } }
@media (prefers-reduced-motion: reduce) {
  .demo-sunset-scene > * { animation: none; }
}

/* Appearance controls and miniature app surfaces. */
#demoAppHint { color: var(--demo-muted); font-size: .72rem; line-height: 1.45; }
#demoApps .demo-app-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#demoApps .demo-app-modes button { min-height: 34px; padding: 4px; line-height: 1.2; overflow-wrap: anywhere; }
#demoAppearance .demo-appearance { margin-block: 8px; font-size: .72rem; line-height: 1.4; }
.demo-settings-back { border: 0; background: transparent; color: var(--demo-accent); font: inherit; font-size: .72rem; cursor: pointer; text-decoration: none; padding: 4px 0; }
.demo-control-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
#demoGlassValue { color: var(--demo-accent); font-variant-numeric: tabular-nums; }
#demoGlass, #demoBlur { accent-color: var(--demo-accent); }
#demoGlass { width: 100%; margin-block: 4px; }
#demoAppearance .demo-theme-card { min-height: 78px; }
#demoAppearance .demo-theme-preview { display: grid; place-items: center; min-height: 52px; width: 100%; padding: 6px; }
.demo-theme-preview-dark { background: #081322; }
.demo-theme-preview-light, .demo-theme-preview-system { background: #e7ecf7; }
.demo-theme-preview-winter { background: url('../assets/theme_winter_night_environment.png') center 71% / cover; }
.demo-theme-preview-winter-light { background: url('../assets/theme_winter_day_environment.png') center 71% / cover; }
.demo-tile-ui {
  width: min(100%, 60px);
  height: 25px;
  border: 1px solid #6687a680;
  border-radius: 6px;
  background:
    linear-gradient(#b1c8da, #b1c8da) 6px 6px / 50% 2px no-repeat,
    linear-gradient(#8aabc3, #8aabc3) 6px 11px / 66% 2px no-repeat,
    radial-gradient(circle, #90ddff 40%, transparent 50%) 5px 15px / 6px 6px no-repeat,
    linear-gradient(#84c7e7, #84c7e7) right 5px bottom 4px / 25% 4px no-repeat,
    #142538ee;
}
:is(.demo-theme-preview-light,.demo-theme-preview-system,.demo-theme-preview-winter-light) .demo-tile-ui { filter: invert(.9) hue-rotate(170deg); }

.demo-phone[data-demo-theme="dark"] {
  --demo-accent: #a1d8f7;
  --demo-muted: #bbcce0;
  --demo-surface: #172439;
  --demo-border: #455b74;
  background: #0c1624;
}
.demo-phone:is([data-demo-theme="light"], [data-demo-theme="winter-light"]) {
  --demo-accent: #214f83;
  --demo-muted: #354c64;
  --demo-surface: #f2f7ff;
  --demo-border: #607d9c80;
  background: #e6edf6;
  color: #102c43;
}
.demo-phone[data-demo-theme="winter-light"] {
  --demo-wallpaper: url('../assets/theme_winter_day_environment.png');
}
.demo-phone[data-demo-theme="winter-light"] .demo-landscape { background-size: cover; background-position: center; }
.demo-phone[data-demo-theme="winter-light"] .demo-trees {
  width: 70%; height: 108%;
  background: url('../assets/theme_winter_day_forest.png') left center / 200% 100% no-repeat;
}
.demo-phone[data-demo-theme="winter-light"] .demo-trees-start { left: -28%; }
.demo-phone[data-demo-theme="winter-light"] .demo-trees-end { left: auto; right: -28%; background-position: right center; }
.demo-phone:is([data-demo-theme="light"], [data-demo-theme="winter-light"]) .demo-scene::after { background: #eff6ff50; }
.demo-phone:is([data-demo-theme="light"], [data-demo-theme="winter-light"]) :is(.demo-header-copy strong,.demo-current-copy strong,.demo-current,.demo-route-picker summary strong,.demo-app-row,.demo-setting,.demo-mode button,.demo-primary,.demo-search input,.demo-server,.demo-filter-copy select,.demo-app-modes button.active,.demo-bridge-options button.active,.demo-route button) { color: #102c43; }
.demo-phone:is([data-demo-theme="light"], [data-demo-theme="winter-light"]) .demo-filter-copy select { color-scheme: light; }
.demo-phone:is([data-demo-theme="light"], [data-demo-theme="winter-light"]) .demo-connect-surface { background: radial-gradient(circle at 50% 24%, #fff, #c2d7ee); }
.demo-phone :is(.demo-mode,.demo-tools,.demo-search,.demo-server,.demo-current,.demo-setting,.demo-tor-card,.demo-app-card,.demo-app-row,.demo-appearance,.demo-filter-card,.demo-route-picker,.demo-metrics,.demo-nav) {
  background: color-mix(in srgb, var(--demo-surface), transparent calc(100% - var(--demo-glass-opacity, 66%)));
  backdrop-filter: blur(var(--demo-blur, 12px));
}
.demo-phone[data-demo-theme="winter"] :is(.demo-mode,.demo-tools,.demo-search,.demo-server,.demo-current,.demo-setting,.demo-tor-card,.demo-app-card,.demo-app-row,.demo-appearance,.demo-filter-card,.demo-route-picker,.demo-metrics,.demo-nav) {
  background: linear-gradient(155deg, #b0c8e328, transparent 55%), color-mix(in srgb, #1d334d var(--demo-glass-opacity, 66%), transparent);
  backdrop-filter: blur(var(--demo-blur, 12px));
}

#demoBlur {
  appearance: none;
  width: 36px;
  height: 20px;
  flex: none;
  margin: 0;
  padding: 2px;
  border: 1px solid var(--demo-border);
  border-radius: 999px;
  background: var(--demo-surface);
  cursor: pointer;
}
#demoBlur::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--demo-muted);
}
#demoBlur:checked { background: var(--demo-accent); }
#demoBlur:checked::before { margin-inline-start: auto; background: #0b2235; }
#demoAppearance .demo-tile-ui { width: 58px; max-width: 100%; }

/* The dock uses one indicator for taps and horizontal drags. */
.demo-nav {
  --dock-position: 0%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 3px;
  touch-action: pan-y;
}
.demo-nav-indicator {
  position: absolute;
  inset-block: 3px;
  inset-inline-start: 3px;
  width: calc((100% - 6px) / 4);
  border: 1px solid var(--demo-border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--demo-accent) 20%, transparent);
  pointer-events: none;
  transform: translateX(var(--dock-position));
  transition: transform .24s cubic-bezier(.2,.85,.3,1);
}
.demo-nav:dir(rtl) .demo-nav-indicator { transform: translateX(calc(-1 * var(--dock-position))); }
.demo-nav.is-dragging .demo-nav-indicator { transition: none; }
.demo-nav button { position: relative; padding: 6px 1px; touch-action: pan-y; }
.demo-nav button.active { box-shadow: none; background: transparent; }
.demo-nav button svg { width: 17px; height: 17px; flex: none; }
.demo-nav button small { font-size: .56rem; line-height: 1.15; }
.demo-top-right .demo-status-icons { width: 39px; height: 11px; }
.demo-top-dot { display: none; }
.demo-gesture { width: 31%; height: 3px; }

.demo-art-scene, .demo-winter-snow {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.demo-phone[data-demo-theme="sakura"] .demo-art-sakura,
.demo-phone[data-demo-theme="ocean"] .demo-art-ocean,
.demo-phone[data-demo-theme="cyberpunk"] .demo-art-cyberpunk,
.demo-phone:is([data-demo-theme="winter"], [data-demo-theme="winter-light"]) .demo-winter-snow { display: block; }
.demo-phone:is([data-demo-theme="sakura"], [data-demo-theme="ocean"], [data-demo-theme="cyberpunk"]) .demo-landscape {
  animation: none;
  background: radial-gradient(ellipse at 65% 70%, color-mix(in srgb, var(--demo-accent) 16%, transparent), transparent 66%);
}
.demo-art-vector { animation: demo-vector-drift 14s ease-in-out infinite alternate; }
.demo-art-part { transform-box: fill-box; transform-origin: 75% 94%; }
.demo-art-part-0 { animation: demo-vector-drift 18s ease-in-out infinite alternate; }
.demo-art-part-1 { animation: demo-branch-sway 8s ease-in-out infinite alternate; }
.demo-art-part-2 { animation: demo-branch-sway 10s ease-in-out infinite alternate-reverse; }
.demo-art-part-3 { animation: demo-object-drift 11s ease-in-out infinite alternate; }
.demo-art-cyberpunk .demo-art-part-1 { animation: demo-neon 9s ease-in-out infinite alternate; }
.demo-winter-snow { fill: #f0f9ff; opacity: .52; }
.demo-phone[data-demo-theme="winter-light"] .demo-winter-snow { fill: #6191bd; opacity: .42; }
.demo-winter-snow g { animation: demo-snow-fall 10s linear infinite; }
.demo-phone[data-demo-theme="winter-light"] .demo-trees {
  transform-origin: bottom center;
  animation: demo-sway 12s ease-in-out infinite alternate;
}
.demo-phone[data-demo-theme="winter-light"] .demo-trees-end { animation-direction: alternate-reverse; }
@keyframes demo-vector-drift { to { transform: translateX(7px); } }
@keyframes demo-branch-sway { to { transform: rotate(2.5deg); } }
@keyframes demo-object-drift { to { transform: translate(9px, -13px); } }
@keyframes demo-neon { from { opacity: .7; } to { opacity: 1; } }
@keyframes demo-snow-fall {
  from { opacity: 0; transform: translateY(-18px); }
  20%, 80% { opacity: 1; }
  to { opacity: 0; transform: translate(9px, 64px); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-nav-indicator { transition: none; }
  .demo-art-scene > *, .demo-winter-snow g { animation: none; }
}

/* Page layout and typography */
.content-container { padding-inline: clamp(16px, 3.6vw, 32px); }
.hero-grid { padding-inline: 0; }
.hero-headline { font-size: clamp(2.7rem, 5vw, 4.5rem); letter-spacing: -.042em; }
.hero-headline .accent-highlight { font-size: .47em; font-weight: 700; }
.hero-cta-group .btn-primary, .hero-cta-group .btn-secondary { min-height: 48px; }
.hero-cta-group .btn-primary { box-shadow: none; }
.hero-content .mono-pill { max-width: 100%; }
.hero-platforms, .hero-description { text-wrap: pretty; }

.download-section, .wtpn-section, .guides-section, .features-section {
  padding-block: clamp(28px, 5vw, 60px);
}
.section-head { margin-bottom: clamp(16px, 2.5vw, 28px); }
.section-title, .wtpn-title {
  font-size: clamp(1.62rem, 2.7vw, 2.35rem);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -.024em;
  text-wrap: balance;
}
.section-subtitle { margin: 0; max-width: 58ch; line-height: 1.55; }
[dir="rtl"] :is(.section-title,.wtpn-title,.hero-headline,.hero-headline .accent-highlight) { letter-spacing: normal; }

.platforms-grid, .features-grid, .wtpn-grid { gap: clamp(12px, 1.7vw, 20px); }
.platform-card, .feature-card, .step-item, .wtpn-feature-box { min-width: 0; }
.platform-card, .feature-card { padding: clamp(16px, 2vw, 24px); }
.platform-card { gap: 14px; box-shadow: none; }
.platform-card.detected-os { box-shadow: none; border-color: var(--border-glass-elevated); }
.platform-name { font-size: 1.22rem; }
.platform-meta-block { gap: 8px; flex-wrap: wrap; }
.platform-download-btn, .card-aux-links { gap: 8px; }
.card-aux-links { flex-wrap: wrap; }
.platform-download-btn > span { min-width: 0; overflow-wrap: anywhere; }
.release-date-display { color: var(--text-secondary); }

.wtpn-card { padding: clamp(18px, 3.2vw, 34px); }
.wtpn-header-row, .wtpn-brand-badge { flex-wrap: wrap; }
.wtpn-desc { max-width: 67ch; }
.wtpn-feature-box { border-radius: 16px; }
.wtpn-feature-box:hover { transform: none; }
.wtpn-actions-row { margin-top: 18px; }

.guide-tabs-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface);
}
.guide-tab-trigger { min-height: 36px; }
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#guide-android .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step-item {
  padding: 16px;
  gap: 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
  align-items: start;
}
.step-body { min-width: 0; }
.step-title, .feature-title { font-size: 1rem; line-height: 1.3; font-weight: 700; }
.step-desc, .feature-desc, .wtpn-feature-desc { line-height: 1.55; text-wrap: pretty; }
.step-item code { overflow-wrap: anywhere; }

.features-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card { gap: 8px; border-radius: 16px; }
.feature-icon-badge { width: 36px; height: 36px; margin-bottom: 3px; }
.feature-icon-badge svg { width: 19px; height: 19px; }
.footer-inner, .footer-nav { flex-wrap: wrap; }

@media (min-width: 900px) {
  .platforms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .platforms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #card-android { grid-column: 1 / -1; }
}
@media (max-width: 930px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-list, #guide-android .steps-list { grid-template-columns: minmax(0, 1fr); }
  .step-desc { max-width: 68ch; }
}
@media (max-width: 540px) {
  .hero-grid { padding-inline: 0; }
  .features-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-tab-trigger { padding-inline: 12px; }
  .step-item { padding: 14px 12px; gap: 10px; }
}

.wtpn-card, .btn-wtpn-primary, .btn-wtpn-primary:hover { box-shadow: none; }

.demo-sakura-tree {
  transform-box: fill-box;
  transform-origin: 84% 100%;
  animation: demo-sakura-sway 9s ease-in-out infinite alternate;
}
@keyframes demo-sakura-sway { to { transform: rotate(1.2deg); } }
@media (prefers-reduced-motion: reduce) {
  .demo-sakura-tree { animation: none; }
}


/* ==========================================================================
   15. Native SplateVPN Obsidian Glass & Architectural Bento
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

main {
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

/* Authentic SplateVPN Obsidian-Cyan Palette (matches real Android app UI) */
html[data-theme="dark"] {
  --bg-canvas: #060a14;
  --bg-deep: #03060c;
  --surface: #0d1526;
  --surface-elevated: #142038;
  --surface-overlay: rgba(13, 21, 38, 0.86);

  --border-subtle: #1c2b48;
  --border-medium: #2c4168;
  --border-glass: rgba(148, 196, 255, 0.16);
  --border-glass-elevated: rgba(123, 221, 236, 0.36);

  --text-primary: #f4f8fc;
  --text-secondary: #98aec9;
  --text-tertiary: #687f9c;
  --text-inverse: #04131c;

  --accent: #7bddec;
  --accent-rgb: 123, 221, 236;
  --accent-secondary: #7da2ff;
  --accent-emerald: #53dbab;
  --accent-amber: #f4c474;
  --accent-crimson: #ff728a;

  --ambient-1: rgba(123, 221, 236, 0.10);
  --ambient-2: rgba(92, 134, 240, 0.10);
  --ambient-3: rgba(40, 96, 235, 0.10);
}

/* Quiet Studio Backdrop with Subtle Concentric Arcs (like real app background) */
.ambient-glow-layer {
  background:
    radial-gradient(ellipse 72% 44% at 50% -8%, rgba(var(--accent-rgb), 0.12), transparent 72%),
    radial-gradient(circle at 76% 36%, rgba(var(--accent-rgb), 0.06), transparent 44%);
}
.ambient-orb {
  opacity: 0.35;
  filter: blur(120px);
  animation: none !important;
}
.ambient-grid {
  display: block !important;
  background-image:
    repeating-radial-gradient(
      circle at 72% 32%,
      transparent 0,
      transparent 94px,
      rgba(var(--accent-rgb), 0.045) 94px,
      rgba(var(--accent-rgb), 0.045) 95px
    );
  opacity: 1;
  mask-image: radial-gradient(ellipse 85% 75% at 65% 30%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 65% 30%, black 10%, transparent 80%);
}
html[data-theme="light"] .ambient-grid {
  background-image:
    repeating-radial-gradient(
      circle at 72% 32%,
      transparent 0,
      transparent 94px,
      rgba(30, 64, 175, 0.05) 94px,
      rgba(30, 64, 175, 0.05) 95px
    );
}

/* Subtle Top Scroll Progress Hairline */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 900;
  pointer-events: none;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.45), var(--accent));
  will-change: transform;
}
[dir="rtl"] .scroll-progress-bar {
  transform-origin: right center;
}

/* Crisp Architectural Glass Header (rounded rectangle, NOT pill) */
.site-header {
  padding: 14px 0;
  transition: padding 0.22s ease;
}
.site-header.is-scrolled {
  padding: 8px 0;
}
.nav-shell {
  border-radius: 16px;
  padding: 9px 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-glass);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    0 12px 32px -14px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}
.site-header.is-scrolled .nav-shell {
  border-color: var(--border-glass-elevated);
}
.nav-links {
  gap: 6px;
}
.nav-item-link {
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav-item-link:hover {
  color: var(--text-primary);
  background: rgba(var(--accent-rgb), 0.08);
}
.nav-item-link.is-active {
  color: var(--text-primary);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.24);
}
.lang-btn,
.theme-btn {
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Editorial Hero & Sharp Modern Buttons (12px-14px radius)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: clamp(20px, 3.2vw, 44px);
  padding-bottom: clamp(32px, 5vw, 68px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: none;
  padding: clamp(8px, 1.5vw, 18px) 0;
  border-radius: 0;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero-content .mono-pill {
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 0.76rem;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border-color: var(--border-glass);
  backdrop-filter: blur(10px);
}
.hero-headline {
  margin: 0;
  font-size: clamp(2.85rem, 5.4vw, 4.75rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.048em;
}
.hero-headline > span:first-child {
  display: inline-block;
  background: linear-gradient(180deg, var(--text-primary) 35%, color-mix(in srgb, var(--text-primary) 62%, var(--accent)) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .hero-headline > span:first-child {
  background: linear-gradient(180deg, #0b1324 30%, #2a4c8d 125%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-headline .accent-highlight {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(1.18rem, 2.2vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.hero-description {
  margin: 0;
  max-width: 50ch;
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Crisp Rounded-Rectangle Buttons (matching real app buttons) */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.hero-cta-group .btn-primary,
.hero-cta-group .btn-secondary {
  border-radius: 14px;
  padding: 12px 22px;
  min-height: 52px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.18s ease, background 0.18s ease;
}
.hero-cta-group .btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 28px -8px rgba(var(--accent-rgb), 0.36);
}
.hero-cta-group .btn-secondary {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
}
.hero-cta-group .btn-secondary:hover {
  transform: translateY(-1.5px);
  border-color: var(--border-glass-elevated);
  background: color-mix(in srgb, var(--surface-elevated) 88%, transparent);
}

/* Architectural Spec Strip */
.studio-spec-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 500px;
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.studio-spec-cell {
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-inline-end: 1px solid var(--border-subtle);
}
.studio-spec-cell:last-child {
  border-inline-end: none;
}
.studio-spec-cell small {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
.studio-spec-cell strong {
  font-size: 0.80rem;
  font-weight: 650;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Clean Single-Bezel Phone Frame + Authentic Dark App Theme (01_home_top.png)
   -------------------------------------------------------------------------- */
.interactive-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.demo-phone {
  position: relative;
  z-index: 2;
  border: 5px solid #1b2231;
  border-radius: 38px;
  box-shadow:
    0 0 0 1px rgba(148, 196, 255, 0.16),
    0 28px 64px -18px rgba(0, 0, 0, 0.72);
}
html[data-theme="light"] .demo-phone {
  border-color: #1e2430;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.12),
    0 24px 54px -18px rgba(15, 23, 42, 0.28);
}

/* Authentic Dark Obsidian-Cyan Theme inside Phone Demo (matches 01_home_top.png) */
.demo-phone[data-demo-theme="dark"] {
  --demo-accent: #7bddec;
  --demo-muted: #8ea5c4;
  --demo-border: rgba(148, 196, 255, 0.18);
  --demo-surface: rgba(16, 25, 44, 0.80);
  background-color: #060a14;
}
.demo-phone[data-demo-theme="dark"] .demo-landscape {
  background:
    repeating-radial-gradient(
      circle at 50% 34%,
      transparent 0,
      transparent 40px,
      rgba(123, 221, 236, 0.055) 40px,
      rgba(123, 221, 236, 0.055) 41px
    ),
    radial-gradient(circle at 50% 32%, rgba(28, 56, 98, 0.42), transparent 58%),
    linear-gradient(180deg, #0b1322 0%, #050912 52%, #070d19 100%);
}
.demo-phone[data-demo-theme="dark"] .demo-connect-surface {
  background:
    radial-gradient(circle at 50% 16%, rgba(160, 210, 255, 0.18), transparent 52%),
    linear-gradient(180deg, #131f35 0%, #070c17 100%);
  border: 1px solid rgba(148, 196, 255, 0.24);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    0 12px 28px rgba(0, 0, 0, 0.55);
}
.demo-phone[data-demo-theme="dark"] .demo-connect-ring {
  border-color: rgba(123, 221, 236, 0.22);
}
.demo-phone[data-demo-theme="dark"] .demo-nav {
  background: rgba(13, 21, 38, 0.86);
  border-color: rgba(148, 196, 255, 0.18);
}

/* --------------------------------------------------------------------------
   Mobile Scroll-Safe Mode for Phone Demo
   -------------------------------------------------------------------------- */
.demo-touch-shield,
.demo-touch-exit-btn {
  display: none;
}

.interactive-demo[data-touch-mode="mobile"] .demo-touch-shield {
  position: absolute;
  inset: 0;
  z-index: 15;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px 58px;
  gap: 8px;
  background: linear-gradient(to top, rgba(4, 9, 20, 0.78) 0%, rgba(4, 9, 20, 0.18) 40%, transparent 72%);
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.interactive-demo[data-touch-mode="mobile"][data-touch-locked="true"] .demo-scroll,
.interactive-demo[data-touch-mode="mobile"][data-touch-locked="true"] .demo-nav {
  pointer-events: none !important;
  touch-action: pan-y !important;
}

.interactive-demo[data-touch-mode="mobile"][data-touch-locked="false"] .demo-touch-shield {
  opacity: 0;
  visibility: hidden;
}

.demo-touch-unlock-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  background: rgba(10, 18, 34, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.68);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.16s ease;
}
.demo-touch-unlock-btn:active {
  transform: scale(0.97);
}
.demo-touch-hint {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(4, 9, 20, 0.66);
  padding: 4px 10px;
  border-radius: 8px;
}

.interactive-demo[data-touch-mode="mobile"][data-touch-locked="false"] .demo-touch-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  background: var(--surface-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

/* --------------------------------------------------------------------------
   Section Dividers, Flagship Downloads, Split WTPN & Bento Features
   -------------------------------------------------------------------------- */
.download-section,
.wtpn-section,
.guides-section,
.features-section {
  position: relative;
  padding-block: clamp(40px, 6vw, 76px);
}

.section-head {
  margin-bottom: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section-title,
.wtpn-title {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

/* Architectural Glass Cards with Frosted Blur & Subtle Cursor Sheen */
.studio-surface {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-elevated) 62%, transparent) 0%,
    color-mix(in srgb, var(--surface) 64%, transparent) 100%
  );
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.24s ease;
}
.studio-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--accent-rgb), 0.08),
    transparent 65%
  );
  z-index: 0;
}
.studio-surface:hover::before {
  opacity: 1;
}
.studio-surface > * {
  position: relative;
  z-index: 1;
}
.studio-surface:hover {
  border-color: var(--border-glass-elevated);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.10),
    0 18px 36px -20px rgba(0, 0, 0, 0.48);
}

/* Flagship Download Cards */
.platform-card {
  border-radius: 20px;
}
.platform-card.detected-os {
  border-color: rgba(var(--accent-rgb), 0.48);
  background:
    radial-gradient(ellipse 85% 45% at 50% 0%, rgba(var(--accent-rgb), 0.14), transparent 65%),
    color-mix(in srgb, var(--surface) 66%, transparent);
}
.platform-download-btn {
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.18s ease;
}
.platform-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(var(--accent-rgb), 0.34);
}

/* WTPN Editorial Split Showcase */
.wtpn-card {
  border-radius: 22px;
  border: 1px solid var(--border-glass);
  background:
    radial-gradient(ellipse 65% 75% at 0% 0%, rgba(var(--accent-rgb), 0.12), transparent 65%),
    color-mix(in srgb, var(--surface) 66%, transparent);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  padding: clamp(22px, 3.6vw, 40px);
}
@media (min-width: 900px) {
  .wtpn-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas:
      "head grid"
      "title grid"
      "desc grid"
      "actions grid";
    column-gap: 40px;
    align-items: start;
  }
  .wtpn-header-row { grid-area: head; margin-bottom: 10px; }
  .wtpn-title { grid-area: title; margin-bottom: 12px; }
  .wtpn-desc { grid-area: desc; margin-bottom: 22px; }
  .wtpn-actions-row { grid-area: actions; margin-top: 0; }
  .wtpn-grid {
    grid-area: grid;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
  }
  .wtpn-feature-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    padding: 15px 18px;
    border-radius: 14px;
  }
  .wtpn-feature-icon {
    grid-row: 1 / 3;
    margin: 0;
  }
}
.btn-wtpn-primary {
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.btn-wtpn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 26px -10px rgba(var(--accent-rgb), 0.34);
}

/* Guides Segmented Switcher & Stepper (clean 12px/9px corners) */
.guide-tabs-nav {
  border-radius: 12px;
  padding: 4px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid var(--border-subtle);
}
.guide-tab-trigger {
  border-radius: 9px;
  padding-inline: 16px;
}
.step-item {
  border-radius: 16px;
  padding: 20px;
}
.step-num {
  border-radius: 10px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-weight: 700;
}

/* Architectural Bento Grid for Features (12-column balanced layout on desktop) */
@media (min-width: 980px) {
  .features-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }
  .features-grid .feature-card {
    grid-column: span 3;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .features-grid .feature-card:nth-child(1) {
    grid-column: span 7;
    background:
      radial-gradient(ellipse 80% 70% at 100% 0%, rgba(var(--accent-rgb), 0.12), transparent 68%),
      color-mix(in srgb, var(--surface) 64%, transparent);
  }
  .features-grid .feature-card:nth-child(2) {
    grid-column: span 5;
  }
  .features-grid .feature-card:nth-child(3) {
    grid-column: span 5;
  }
  .features-grid .feature-card:nth-child(4) {
    grid-column: span 7;
    background:
      radial-gradient(ellipse 80% 70% at 0% 100%, rgba(var(--accent-rgb), 0.10), transparent 68%),
      color-mix(in srgb, var(--surface) 64%, transparent);
  }
  .features-grid .feature-card:nth-child(-n+4) .feature-title {
    font-size: 1.14rem;
  }
  .features-grid .feature-card:nth-child(-n+4) .feature-desc {
    max-width: 48ch;
  }
}

.feature-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

/* Calm Scroll-Reveal Transitions */
.studio-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.studio-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Calm Hero Initial Entrance */
body.studio-entering .hero-content > * {
  opacity: 0;
  transform: translateY(12px);
}
body.studio-entering .interactive-demo {
  opacity: 0;
  transform: translateY(16px);
}
.hero-content > *,
.interactive-demo {
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
body.studio-ready .hero-content > :nth-child(1) { transition-delay: 0.02s; }
body.studio-ready .hero-content > :nth-child(2) { transition-delay: 0.08s; }
body.studio-ready .hero-content > :nth-child(3) { transition-delay: 0.14s; }
body.studio-ready .hero-content > :nth-child(4) { transition-delay: 0.20s; }
body.studio-ready .hero-content > :nth-child(5) { transition-delay: 0.24s; }
body.studio-ready .interactive-demo { transition-delay: 0.12s; }

/* --------------------------------------------------------------------------
   Adaptive & Mobile Polish
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .site-header {
    position: sticky;
    top: 0;
    padding: 8px 0;
  }
  .nav-shell {
    border-radius: 14px;
    padding: 8px 12px;
    gap: 8px;
  }
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 4px;
    padding: 6px 14px 2px 0;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 86%, transparent 100%);
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-item-link {
    white-space: nowrap;
    padding: 5px 9px;
    font-size: 0.80rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .studio-spec-strip {
    max-width: 100%;
  }
  .demo-phone {
    width: min(76vw, 272px);
  }
}

@media (max-width: 500px) {
  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .studio-spec-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .studio-spec-cell {
    padding: 9px 10px;
  }
  .demo-phone {
    width: min(74vw, 260px);
  }
  .studio-surface:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-reveal,
  body.studio-entering .hero-content > *,
  body.studio-entering .interactive-demo {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   16. Clean Light Theme Overhaul (matches 01_home_light_theme.png)
   ========================================================================== */
html[data-theme="light"] {
  --bg-canvas: #eef3fa;
  --bg-deep: #e2eaf5;
  --surface: #ffffff;
  --surface-elevated: #f8fafd;
  --surface-overlay: rgba(255, 255, 255, 0.90);

  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-medium: rgba(15, 23, 42, 0.18);
  --border-glass: rgba(15, 23, 42, 0.09);
  --border-glass-elevated: rgba(37, 99, 235, 0.34);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-inverse: #ffffff;

  --accent: #2563eb;
  --accent-rgb: 37, 99, 235;
  --accent-secondary: #1d4ed8;
  --accent-emerald: #059669;
  --accent-amber: #b45309;
  --accent-crimson: #dc2626;

  --ambient-1: rgba(37, 99, 235, 0.08);
  --ambient-2: rgba(56, 189, 248, 0.08);
  --ambient-3: rgba(99, 102, 241, 0.06);

  --specular-sheen: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.10);
  --button-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.34);
}

html[data-theme="light"] .ambient-glow-layer {
  background:
    radial-gradient(ellipse 75% 45% at 50% -10%, rgba(37, 99, 235, 0.10), transparent 70%),
    radial-gradient(circle at 82% 32%, rgba(56, 189, 248, 0.09), transparent 46%),
    linear-gradient(180deg, #f5f8fd 0%, #eaf0f8 100%);
}
html[data-theme="light"] .ambient-orb {
  opacity: 0.22;
}
html[data-theme="light"] .ambient-grid {
  background-image:
    repeating-radial-gradient(
      circle at 72% 32%,
      transparent 0,
      transparent 94px,
      rgba(37, 99, 235, 0.055) 94px,
      rgba(37, 99, 235, 0.055) 95px
    );
}

/* Light Header & Navigation */
html[data-theme="light"] .nav-shell {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 28px -12px rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .lang-btn,
html[data-theme="light"] .theme-btn {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.10);
  color: #0f172a;
}
html[data-theme="light"] .lang-btn:hover,
html[data-theme="light"] .theme-btn:hover {
  background: #e2e8f0;
  border-color: rgba(37, 99, 235, 0.28);
}
html[data-theme="light"] .lang-dropdown,
html[data-theme="light"] .theme-dropdown {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.16);
}

/* Light Buttons & CTAs (clean royal cobalt blue, no muddy purple) */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .platform-download-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.36);
}
html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] .platform-download-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 14px 28px -8px rgba(37, 99, 235, 0.44);
}
html[data-theme="light"] .platform-download-btn .btn-file-info {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
html[data-theme="light"] .btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.07);
}
html[data-theme="light"] .btn-secondary:hover {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.34);
}
html[data-theme="light"] .hero-content .mono-pill.emerald {
  background: #ffffff;
  border-color: rgba(5, 150, 105, 0.25);
  color: #047857;
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.08);
}

/* Light Spec Strip & Cards */
html[data-theme="light"] .studio-spec-strip {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .studio-surface,
html[data-theme="light"] .platform-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .step-item {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.09);
}
html[data-theme="light"] .studio-surface:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 18px 38px -16px rgba(37, 99, 235, 0.14);
}
html[data-theme="light"] .platform-card.detected-os {
  border-color: rgba(37, 99, 235, 0.42);
  background:
    radial-gradient(ellipse 85% 42% at 50% 0%, rgba(37, 99, 235, 0.09), transparent 65%),
    rgba(255, 255, 255, 0.76);
}
html[data-theme="light"] .platform-meta-block {
  background: #f4f7fc;
  border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .arch-chip {
  background: #f4f7fc;
  border-color: rgba(15, 23, 42, 0.10);
  color: #334155;
}
html[data-theme="light"] .arch-chip.active {
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.42);
  color: #1d4ed8;
}
html[data-theme="light"] .terminal-command-box {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .terminal-cmd {
  color: #0f172a;
}
html[data-theme="light"] .btn-copy {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

/* Light WTPN, Guides, Features & Modal */
html[data-theme="light"] .wtpn-card {
  background:
    radial-gradient(ellipse 65% 70% at 0% 0%, rgba(37, 99, 235, 0.08), transparent 65%),
    rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 14px 36px -16px rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .wtpn-feature-box {
  background: #f6f9fe;
  border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .wtpn-logo-tag {
  color: #b45309;
}
html[data-theme="light"] .wtpn-collab-pill {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
}
html[data-theme="light"] .btn-wtpn-primary {
  background: #0f172a;
  color: #ffffff;
}
html[data-theme="light"] .btn-wtpn-primary:hover {
  background: #1e293b;
}
html[data-theme="light"] .guide-tabs-nav {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .guide-tab-trigger.active {
  background: #2563eb;
  color: #ffffff;
}
html[data-theme="light"] .feature-icon-badge,
html[data-theme="light"] .platform-icon-wrap,
html[data-theme="light"] .step-num {
  background: rgba(37, 99, 235, 0.09);
  border-color: rgba(37, 99, 235, 0.18);
  color: #2563eb;
}
html[data-theme="light"] .features-grid .feature-card:nth-child(1),
html[data-theme="light"] .features-grid .feature-card:nth-child(4) {
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(37, 99, 235, 0.08), transparent 68%),
    rgba(255, 255, 255, 0.74);
}
html[data-theme="light"] .modal-dialog {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

/* Light Phone Demo Theme (matches 01_home_light_theme.png) */
html[data-theme="light"] .demo-phone[data-demo-theme="light"] {
  border-color: #cbd5e1;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.10),
    0 24px 54px -18px rgba(15, 23, 42, 0.20);
}
.demo-phone[data-demo-theme="light"] {
  --demo-accent: #2563eb;
  --demo-muted: #52637a;
  --demo-border: rgba(15, 23, 42, 0.09);
  --demo-surface: rgba(255, 255, 255, 0.90);
  background-color: #eef3fa;
  color: #0f172a;
}
.demo-phone[data-demo-theme="light"] .demo-landscape {
  background:
    repeating-radial-gradient(
      circle at 50% 34%,
      transparent 0,
      transparent 40px,
      rgba(37, 99, 235, 0.055) 40px,
      rgba(37, 99, 235, 0.055) 41px
    ),
    radial-gradient(circle at 50% 32%, rgba(191, 219, 254, 0.45), transparent 58%),
    linear-gradient(180deg, #f4f7fc 0%, #e7eef8 100%);
}
.demo-phone[data-demo-theme="light"] .demo-top,
.demo-phone[data-demo-theme="light"] .demo-top-right svg {
  color: #1e293b;
}
.demo-phone[data-demo-theme="light"] .demo-connect-surface {
  background: linear-gradient(180deg, #ffffff 0%, #eef4fc 100%);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 12px 28px -8px rgba(37, 99, 235, 0.18);
  color: #0f172a;
}
.demo-phone[data-demo-theme="light"] .demo-shield-icon {
  color: #2563eb;
}
.demo-phone[data-demo-theme="light"] .demo-nav {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.14);
}
.demo-phone[data-demo-theme="light"] .demo-nav button {
  color: #475569;
}
.demo-phone[data-demo-theme="light"] .demo-nav button.active {
  color: #2563eb;
}
.demo-phone[data-demo-theme="light"] .demo-nav-indicator {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.22);
}
.demo-phone[data-demo-theme="light"] .demo-gesture {
  background: rgba(15, 23, 42, 0.28);
}
html[data-theme="light"] .theme-option,
html[data-theme="light"] .lang-option {
  color: #334155;
}
html[data-theme="light"] .theme-option:hover,
html[data-theme="light"] .theme-option.active,
html[data-theme="light"] .lang-option:hover,
html[data-theme="light"] .lang-option.active {
  color: #0f172a;
  background: rgba(37, 99, 235, 0.10);
}
.demo-phone[data-demo-theme="light"] .demo-metrics strong {
  color: #0f172a;
}


/* ==========================================================================
   17. Telegram Channel Links & Redesigned Changelog Modal
   ========================================================================== */
.nav-tg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}
.nav-tg-link svg {
  flex: none;
  opacity: 0.92;
}
.nav-tg-link:hover {
  color: var(--text-primary);
  background: rgba(var(--accent-rgb), 0.14);
}
.footer-tg-link {
  color: var(--accent) !important;
  font-weight: 600;
}

/* Redesigned Changelog Modal */
.modal-backdrop {
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
}
html[data-theme="light"] .modal-backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.modal-dialog {
  width: min(100%, 660px);
  max-height: min(84vh, 720px);
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border-glass-elevated);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 32px 72px -18px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}
.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}
html[data-theme="light"] .modal-dialog {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 28px 64px -18px rgba(15, 23, 42, 0.24);
}

.modal-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(
    180deg,
    rgba(var(--accent-rgb), 0.08) 0%,
    transparent 100%
  );
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-title-area {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.modal-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.modal-version-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  color: var(--accent);
}
.modal-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.modal-close-btn:hover {
  background: rgba(var(--accent-rgb), 0.16);
  border-color: var(--border-glass-elevated);
  color: var(--text-primary);
}

/* Auto-Translation Status Bar */
.modal-translate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--surface-elevated) 62%, var(--surface));
  font-size: 0.78rem;
}
.modal-translate-bar[hidden] {
  display: none !important;
}
.modal-tr-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}
.modal-tr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  flex: none;
}
.modal-tr-status.is-loading .modal-tr-dot {
  background: var(--accent);
  animation: modalDotBlink 1s ease-in-out infinite alternate;
}
.modal-tr-status.is-warn .modal-tr-dot {
  background: var(--accent-amber);
}
@keyframes modalDotBlink {
  from { opacity: 0.35; }
  to { opacity: 1; }
}
.modal-tr-toggle {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.modal-tr-toggle:hover {
  background: rgba(var(--accent-rgb), 0.16);
  border-color: var(--border-glass-elevated);
}
.modal-tr-toggle[hidden] {
  display: none !important;
}

/* Modal Body Typography */
.modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  font-size: 0.90rem;
  line-height: 1.65;
  color: var(--text-secondary);
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}
.modal-body h1,
.modal-body h2,
.modal-body h3 {
  color: var(--text-primary);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 18px 0 8px;
  line-height: 1.3;
}
.modal-body > :first-child {
  margin-top: 0;
}
.modal-body h1 { font-size: 1.12rem; }
.modal-body h2 { font-size: 1.02rem; }
.modal-body h3 { font-size: 0.94rem; color: var(--accent); }
.modal-body p {
  margin: 0 0 10px;
}
.modal-body ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.modal-body li {
  position: relative;
  padding-inline-start: 16px;
  color: var(--text-primary);
}
.modal-body li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}
.modal-body code {
  padding: 2px 6px;
  border-radius: 6px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.80rem;
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  color: var(--accent);
}
html[data-theme="light"] .modal-body code {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.20);
  color: #1d4ed8;
}
.modal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal-body hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 16px 0;
}
.modal-empty {
  color: var(--text-tertiary);
  font-style: italic;
}

/* Loading Skeleton while Translating */
.modal-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0;
}
.modal-skel-line {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(var(--accent-rgb), 0.08) 25%,
    rgba(var(--accent-rgb), 0.18) 50%,
    rgba(var(--accent-rgb), 0.08) 75%
  );
  background-size: 200% 100%;
  animation: modalSkelShimmer 1.3s ease-in-out infinite;
}
.modal-skel-line.w-45 { width: 45%; height: 16px; }
.modal-skel-line.w-92 { width: 92%; }
.modal-skel-line.w-80 { width: 80%; }
.modal-skel-line.w-66 { width: 66%; }
@keyframes modalSkelShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Modal Footer */
.modal-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: color-mix(in srgb, var(--surface-elevated) 40%, var(--surface));
}
.modal-gh-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.modal-gh-link:hover {
  color: var(--text-primary);
  border-color: var(--border-glass-elevated);
  background: rgba(var(--accent-rgb), 0.08);
}
.modal-foot .btn-primary {
  border-radius: 10px;
  min-height: 36px;
  padding: 8px 20px !important;
}


/* ==========================================================================
   18. Authentic SplateClient Android Demo Micro-Animations
   ========================================================================== */

/* Elastic Press Feedback (matches ElasticPressFeedback.kt) */
.demo-phone :is(.demo-connect, .demo-auto, .demo-current, .demo-server, .demo-primary, .demo-nav button, .demo-mode button, .demo-setting) {
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.25s ease,
    color 0.2s ease;
}
.demo-phone .demo-connect:active {
  transform: scale(0.93);
}
.demo-phone :is(.demo-auto, .demo-primary, .demo-mode button, .demo-nav button):active {
  transform: scale(0.94);
}
.demo-phone :is(.demo-current, .demo-server, .demo-setting):active {
  transform: scale(0.98);
}

/* Smooth Panel Enter Transition (no forwards fill-mode so backdrop-filter blur stays intact) */
.demo-panel.demo-panel-enter {
  animation: demoPanelEnter 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes demoPanelEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Smooth Spring Liquid Dock Indicator */
.demo-nav-indicator {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

/* Connecting State (Sweeping Arc Ring + Status Pulse) */
.demo-connect {
  position: relative;
}
.demo-connect.connecting .demo-connect-ring {
  border-color: rgba(var(--accent-rgb), 0.18);
  border-top-color: var(--demo-accent);
  border-right-color: var(--demo-accent);
  animation: demoConnectSpin 0.85s linear infinite;
}
@keyframes demoConnectSpin {
  to { transform: rotate(360deg); }
}
.demo-status.connecting .demo-status-dot {
  background: var(--demo-accent);
  box-shadow: 0 0 8px var(--demo-accent);
  animation: demoStatusPulse 0.9s ease-in-out infinite alternate;
}
@keyframes demoStatusPulse {
  from { opacity: 0.35; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.15); }
}

/* Connected State: Single Crisp Emerald Wave + Shield & Card Accents (HomeScreen.kt) */
.demo-connect::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #53dbab;
  opacity: 0;
  pointer-events: none;
}
.demo-connect.just-connected::after {
  animation: demoConnectWave 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes demoConnectWave {
  0% { transform: scale(0.92); opacity: 0.72; }
  100% { transform: scale(1.34); opacity: 0; }
}

.demo-phone.is-connected .demo-app-badge {
  border-color: rgba(83, 219, 171, 0.55);
  color: #53dbab;
  box-shadow: 0 0 16px -4px rgba(83, 219, 171, 0.38);
}
.demo-phone.is-connected .demo-current {
  border-color: rgba(83, 219, 171, 0.45);
}
.demo-phone.is-connected .demo-connect-surface {
  border-color: rgba(83, 219, 171, 0.55);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    0 0 28px -4px rgba(83, 219, 171, 0.36);
}
.demo-phone.is-connected .demo-shield-icon {
  color: #53dbab;
}

@media (prefers-reduced-motion: reduce) {
  .demo-panel.demo-panel-enter,
  .demo-connect.connecting .demo-connect-ring,
  .demo-status.connecting .demo-status-dot,
  .demo-connect.just-connected::after {
    animation: none !important;
  }
}


/* ==========================================================================
   19. Flagship Spatial-Obsidian Visual Redesign (v2.0)
   ========================================================================== */

/* ---- 19.1 Elevated Color Tokens & Depth Variables (Obsidian-Cyan Dark) ---- */
:root,
html[data-theme="dark"] {
  --bg-canvas: #050811;
  --bg-deep: #02040a;
  --surface: #0b1222;
  --surface-elevated: #121c33;
  --surface-overlay: rgba(11, 18, 34, 0.78);

  --border-subtle: rgba(148, 184, 238, 0.12);
  --border-medium: rgba(148, 184, 238, 0.22);
  --border-glass: rgba(156, 206, 255, 0.16);
  --border-glass-elevated: rgba(114, 224, 246, 0.42);

  --text-primary: #f6f9ff;
  --text-secondary: #9bb1ce;
  --text-tertiary: #6d84a3;
  --text-inverse: #03111a;

  --accent: #6ce3f7;
  --accent-rgb: 108, 227, 247;
  --accent-secondary: #7c8dff;
  --accent-secondary-rgb: 124, 141, 255;
  --accent-emerald: #4de3ae;
  --accent-amber: #f7c568;
  --accent-crimson: #ff6e8a;

  --ambient-1: rgba(123, 221, 236, 0.12);
  --ambient-2: rgba(92, 134, 240, 0.12);
  --ambient-3: rgba(40, 96, 235, 0.10);

  --stage-glow-1: rgba(108, 227, 247, 0.18);
  --stage-glow-2: rgba(124, 141, 255, 0.16);
  --card-top-sheen: rgba(255, 255, 255, 0.16);
}

html[data-theme="amoled"] {
  --bg-canvas: #000000;
  --bg-deep: #000000;
  --surface: #070a0e;
  --surface-elevated: #10151d;
  --surface-overlay: rgba(8, 12, 16, 0.86);
  --border-subtle: rgba(130, 235, 205, 0.12);
  --border-glass: rgba(130, 235, 205, 0.18);
  --border-glass-elevated: rgba(130, 235, 205, 0.44);
  --accent: #7bf5cf;
  --accent-rgb: 123, 245, 207;
  --accent-secondary: #58c7f3;
  --accent-secondary-rgb: 88, 199, 243;
  --stage-glow-1: rgba(123, 245, 207, 0.18);
  --stage-glow-2: rgba(88, 199, 243, 0.14);
  --card-top-sheen: rgba(255, 255, 255, 0.14);
}

html[data-theme="winter"] {
  --accent-secondary-rgb: 190, 195, 255;
  --stage-glow-1: rgba(173, 223, 255, 0.22);
  --stage-glow-2: rgba(180, 195, 255, 0.16);
  --card-top-sheen: rgba(235, 247, 255, 0.22);
}

html[data-theme="ocean"] {
  --accent-secondary-rgb: 112, 196, 232;
  --stage-glow-1: rgba(136, 221, 199, 0.20);
  --stage-glow-2: rgba(74, 168, 206, 0.18);
  --card-top-sheen: rgba(215, 250, 245, 0.20);
}

html[data-theme="light"] {
  --bg-canvas: #f2f6fc;
  --bg-deep: #e6eef9;
  --surface: #ffffff;
  --surface-elevated: #f8fbff;
  --surface-overlay: rgba(255, 255, 255, 0.84);
  --accent: #2563eb;
  --accent-rgb: 37, 99, 235;
  --accent-secondary: #4f46e5;
  --accent-secondary-rgb: 79, 70, 229;
  --stage-glow-1: rgba(37, 99, 235, 0.14);
  --stage-glow-2: rgba(99, 102, 241, 0.12);
  --card-top-sheen: rgba(255, 255, 255, 0.96);
}

/* ---- 19.2 Living Volumetric Backdrop & Subtle Grain ---- */
.ambient-glow-layer {
  background:
    radial-gradient(ellipse 80% 52% at 50% -12%, rgba(var(--accent-rgb), 0.17), transparent 68%),
    radial-gradient(ellipse 55% 45% at 86% 24%, rgba(var(--accent-secondary-rgb, 124, 141, 255), 0.14), transparent 64%),
    radial-gradient(ellipse 50% 42% at 12% 68%, rgba(var(--accent-rgb), 0.08), transparent 65%);
}

html[data-theme="light"] .ambient-glow-layer {
  background:
    radial-gradient(ellipse 80% 48% at 50% -10%, rgba(37, 99, 235, 0.12), transparent 68%),
    radial-gradient(ellipse 50% 44% at 84% 26%, rgba(99, 102, 241, 0.10), transparent 62%),
    linear-gradient(180deg, #f7faff 0%, #ecf2fb 100%);
}

.ambient-glow-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.ambient-orb {
  opacity: 0.42;
  filter: blur(115px);
  animation: flagshipOrbFloat 20s ease-in-out infinite alternate !important;
}
.orb-secondary {
  animation-delay: -9s !important;
}

@keyframes flagshipOrbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-28px, 24px, 0) scale(1.08); }
}

.ambient-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(var(--accent-rgb), 0.16) 1px, transparent 0),
    repeating-radial-gradient(
      circle at 74% 30%,
      transparent 0,
      transparent 108px,
      rgba(var(--accent-rgb), 0.05) 108px,
      rgba(var(--accent-rgb), 0.05) 109px
    );
  background-size: 32px 32px, 100% 100%;
  opacity: 0.85;
  mask-image: radial-gradient(ellipse 90% 72% at 62% 26%, black 12%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 90% 72% at 62% 26%, black 12%, transparent 82%);
}

html[data-theme="light"] .ambient-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.14) 1px, transparent 0),
    repeating-radial-gradient(
      circle at 74% 30%,
      transparent 0,
      transparent 108px,
      rgba(37, 99, 235, 0.055) 108px,
      rgba(37, 99, 235, 0.055) 109px
    );
  background-size: 32px 32px, 100% 100%;
  opacity: 0.72;
}

/* Top Scroll Progress Hairline with Glow */
.scroll-progress-bar {
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent), var(--accent-emerald));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.65);
}

/* ---- 19.3 Precision Floating Glass Navbar (Zero Overflow Fix) ---- */
.content-container {
  max-width: 1180px;
}

.site-header {
  padding: 14px 0;
}

.nav-shell {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow:
    inset 0 1px 0 0 var(--card-top-sheen),
    0 18px 44px -18px rgba(0, 0, 0, 0.62);
  overflow: visible;
}

.nav-shell::after {
  content: '';
  position: absolute;
  inset: 0 16px auto 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.48), transparent);
  pointer-events: none;
  opacity: 0.75;
}

.site-header.is-scrolled .nav-shell {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-color: var(--border-glass-elevated);
  box-shadow:
    inset 0 1px 0 0 var(--card-top-sheen),
    0 20px 48px -16px rgba(0, 0, 0, 0.72);
}

.brand-link {
  flex: 0 0 auto;
  gap: 10px;
}

.brand-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 18px -6px rgba(var(--accent-rgb), 0.45);
}

.brand-title {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.nav-links {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  gap: 4px;
}

.nav-item-link {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 550;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-item-link.is-active {
  color: var(--text-primary);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(var(--accent-rgb), 0.30),
    0 0 18px -6px rgba(var(--accent-rgb), 0.45);
}

.nav-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn,
.theme-btn {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.79rem;
  white-space: nowrap;
  flex-shrink: 0;
}

html[data-theme="light"] .nav-shell {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 14px 36px -14px rgba(15, 23, 42, 0.12);
}

/* ---- 19.4 Showstopper Hero Section ---- */
.hero-section {
  padding-top: clamp(26px, 3.6vw, 52px);
  padding-bottom: clamp(44px, 6vw, 84px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.hero-content {
  gap: 20px;
}

/* Luminous Version Pill */
.hero-content .mono-pill.emerald {
  position: relative;
  overflow: hidden;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 600;
  background: rgba(77, 227, 174, 0.09);
  border: 1px solid rgba(77, 227, 174, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 24px -10px rgba(77, 227, 174, 0.35);
}

.hero-content .mono-pill.emerald .live-dot {
  animation: flagshipPulseDot 2.2s ease-in-out infinite;
}

@keyframes flagshipPulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77, 227, 174, 0.65); }
  50% { box-shadow: 0 0 0 6px rgba(77, 227, 174, 0); }
}

/* Razor-Sharp Editorial Headline */
.hero-headline {
  font-size: clamp(3.1rem, 5.8vw, 5.15rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-headline > span:first-child {
  display: inline-block;
  background: linear-gradient(175deg, #ffffff 18%, color-mix(in srgb, var(--text-primary) 72%, var(--accent)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 32px rgba(var(--accent-rgb), 0.16));
}

html[data-theme="light"] .hero-headline > span:first-child {
  background: linear-gradient(175deg, #091124 22%, #1e40af 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
}

.hero-headline .accent-highlight {
  display: inline-block;
  margin-top: 10px;
  font-size: clamp(1.24rem, 2.3vw, 1.92rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  background: linear-gradient(95deg, var(--accent) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 1.35vw, 1.11rem);
  line-height: 1.68;
  max-width: 48ch;
  color: var(--text-secondary);
}

/* Flagship Tactile Buttons with Animated Light Sheen */
.hero-cta-group {
  gap: 14px;
  margin-top: 4px;
}

.btn-primary,
.platform-download-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 34px -10px rgba(var(--accent-rgb), 0.45);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, filter 0.2s ease;
}

.btn-primary::after,
.platform-download-btn::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -75%;
  width: 55%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  pointer-events: none;
  transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover::after,
.platform-download-btn:hover::after {
  left: 125%;
}

.btn-primary:hover,
.platform-download-btn:hover {
  transform: translateY(-2.5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 18px 40px -10px rgba(var(--accent-rgb), 0.56);
}

.hero-cta-group .btn-primary {
  padding: 13px 26px;
  min-height: 56px;
  border-radius: 15px;
}

.hero-cta-group .btn-secondary {
  padding: 13px 22px;
  min-height: 56px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-elevated) 68%, transparent);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.hero-cta-group .btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-glass-elevated);
  background: color-mix(in srgb, var(--surface-elevated) 92%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 30px -14px rgba(0, 0, 0, 0.55);
}

.hero-platforms {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.hero-platforms span {
  color: var(--accent);
  opacity: 0.7;
}

/* Upgraded Telemetry Spec Strip (Guaranteed 100% Visible) */
.studio-spec-strip {
  position: relative;
  max-width: 520px;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-elevated) 72%, transparent) 0%,
    color-mix(in srgb, var(--surface) 78%, transparent) 100%
  );
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 40px -22px rgba(0, 0, 0, 0.65);
  opacity: 1 !important;
  transform: none !important;
}

.studio-spec-strip::before {
  content: '';
  position: absolute;
  inset: 0 24px auto 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.55), transparent);
  pointer-events: none;
}

.studio-spec-cell {
  padding: 13px 16px;
  gap: 4px;
}

.studio-spec-cell small {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.85;
}

.studio-spec-cell strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ---- 19.5 Volumetric Phone Showcase Stage ---- */
.interactive-demo {
  position: relative;
  perspective: 1200px;
  padding: 18px 0 8px;
}

/* Volumetric Orbital Aura Behind Phone */
.interactive-demo::before {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, var(--stage-glow-1) 0%, transparent 56%),
    radial-gradient(circle at 65% 65%, var(--stage-glow-2) 0%, transparent 58%);
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
}

.interactive-demo::after {
  content: '';
  position: absolute;
  width: 390px;
  height: 390px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  border-radius: 50%;
  border: 1px dashed rgba(var(--accent-rgb), 0.18);
  box-shadow:
    0 0 0 34px rgba(var(--accent-rgb), 0.02),
    inset 0 0 0 38px rgba(var(--accent-rgb), 0.02);
  pointer-events: none;
  z-index: 0;
  animation: flagshipHaloSpin 48s linear infinite;
}

@keyframes flagshipHaloSpin {
  to { transform: translate(-50%, -52%) rotate(360deg); }
}

.demo-phone {
  position: relative;
  z-index: 2;
  border: 5px solid #1e283b;
  border-radius: 40px;
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.28),
    0 0 0 4px rgba(10, 16, 30, 0.72),
    0 34px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 70px -24px rgba(var(--accent-rgb), 0.34);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
  will-change: transform;
}

html[data-theme="light"] .demo-phone {
  border-color: #1f2937;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.20),
    0 32px 72px -20px rgba(15, 23, 42, 0.28),
    0 0 60px -24px rgba(37, 99, 235, 0.24);
}

.demo-caption {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.demo-caption::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ---- 19.6 Section Headers & Architectural Dividers ---- */
.download-section,
.wtpn-section,
.guides-section,
.features-section {
  padding-block: clamp(48px, 6.5vw, 88px);
}

.download-section::before,
.guides-section::before,
.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 86%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
  pointer-events: none;
}

.section-head {
  text-align: center;
  align-items: center;
  margin-bottom: clamp(28px, 3.8vw, 44px);
}

.section-title {
  font-size: clamp(1.95rem, 3.4vw, 2.85rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.08;
  background: linear-gradient(180deg, var(--text-primary) 45%, color-mix(in srgb, var(--text-primary) 72%, var(--accent)) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .section-title {
  background: linear-gradient(180deg, #0b1324 45%, #1e40af 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 56ch;
}

/* ---- 19.7 Flagship Spotlight Glass Cards ---- */
.studio-surface {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--surface-elevated) 72%, transparent) 0%,
    color-mix(in srgb, var(--surface) 76%, transparent) 100%
  );
  backdrop-filter: blur(24px) saturate(175%);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
  border: 1px solid var(--border-glass);
  box-shadow:
    inset 0 1px 0 0 var(--card-top-sheen),
    0 20px 44px -26px rgba(0, 0, 0, 0.72);
}

.studio-surface::before {
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--accent-rgb), 0.13),
    transparent 62%
  );
}

.studio-surface:hover {
  border-color: var(--border-glass-elevated);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
    0 26px 56px -22px rgba(0, 0, 0, 0.75),
    0 0 32px -18px rgba(var(--accent-rgb), 0.34);
}

/* ---- 19.8 Flagship Download Cards & Fixed Linux Terminal ---- */
.platforms-grid {
  gap: 22px;
  align-items: stretch;
}

.platform-card {
  border-radius: 22px;
  padding: 26px;
}

.platform-card.detected-os {
  border-color: rgba(var(--accent-rgb), 0.56);
  background:
    radial-gradient(ellipse 95% 52% at 50% -10%, rgba(var(--accent-rgb), 0.20), transparent 66%),
    linear-gradient(165deg, color-mix(in srgb, var(--surface-elevated) 78%, transparent), color-mix(in srgb, var(--surface) 84%, transparent));
  box-shadow:
    inset 0 1px 0 rgba(var(--accent-rgb), 0.55),
    0 24px 54px -22px rgba(var(--accent-rgb), 0.32);
}

.platform-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.05));
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 20px -10px rgba(var(--accent-rgb), 0.45);
}

#card-android .platform-icon-wrap {
  color: var(--accent-emerald);
  background: linear-gradient(145deg, rgba(77, 227, 174, 0.18), rgba(77, 227, 174, 0.04));
  border-color: rgba(77, 227, 174, 0.30);
}

#card-linux .platform-icon-wrap {
  color: var(--accent-amber);
  background: linear-gradient(145deg, rgba(247, 197, 104, 0.18), rgba(247, 197, 104, 0.04));
  border-color: rgba(247, 197, 104, 0.30);
}

.platform-meta-block {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid var(--border-subtle);
}

.arch-chip {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.73rem;
}

.arch-chip.active {
  background: rgba(var(--accent-rgb), 0.16);
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 16px -6px rgba(var(--accent-rgb), 0.55);
}

/* Fix Linux Terminal Wrapping Forever */
.terminal-command-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(3, 6, 14, 0.88);
  border: 1px solid rgba(var(--accent-rgb), 0.20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.terminal-cmd {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  word-break: normal;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--accent-emerald);
  padding-bottom: 1px;
}
.terminal-cmd::-webkit-scrollbar {
  display: none;
}
.terminal-cmd::before {
  content: '$ ';
  color: var(--text-tertiary);
  user-select: none;
}

.btn-copy {
  padding: 5px 11px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.74rem;
}

.platform-download-btn {
  padding: 14px 18px;
  border-radius: 14px;
}

.btn-file-info {
  padding: 4px 9px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- 19.9 WTPN Flagship Partnership Showcase ---- */
.wtpn-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(247, 197, 104, 0.28);
  background:
    radial-gradient(ellipse 68% 82% at 0% 0%, rgba(247, 197, 104, 0.16), transparent 62%),
    radial-gradient(ellipse 56% 72% at 100% 100%, rgba(var(--accent-rgb), 0.14), transparent 64%),
    linear-gradient(165deg, color-mix(in srgb, var(--surface-elevated) 78%, transparent), color-mix(in srgb, var(--surface) 84%, transparent));
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 184, 0.24),
    0 28px 64px -26px rgba(0, 0, 0, 0.72);
  padding: clamp(26px, 4vw, 46px);
}

.wtpn-card::after {
  content: '';
  position: absolute;
  inset: 0 32px auto 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 197, 104, 0.65), rgba(var(--accent-rgb), 0.45), transparent);
  pointer-events: none;
}

.wtpn-logo-tag {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ffd479 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wtpn-collab-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(247, 197, 104, 0.12);
  border: 1px solid rgba(247, 197, 104, 0.32);
  color: #ffd88a;
  font-weight: 650;
}

.wtpn-title {
  color: var(--text-primary);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
}

.wtpn-feature-box {
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 64%, transparent);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.wtpn-feature-box:hover {
  transform: translateX(4px);
  border-color: rgba(247, 197, 104, 0.42);
  background: color-mix(in srgb, var(--surface-elevated) 76%, transparent);
}
[dir="rtl"] .wtpn-feature-box:hover {
  transform: translateX(-4px);
}

.wtpn-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(247, 197, 104, 0.12);
  border: 1px solid rgba(247, 197, 104, 0.26);
  color: var(--accent-amber);
}

.btn-wtpn-primary {
  padding: 13px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7c568 0%, #f59e0b 100%);
  color: #1c1002;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 32px -10px rgba(245, 158, 11, 0.45);
}

.btn-wtpn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 18px 38px -10px rgba(245, 158, 11, 0.58);
}

html[data-theme="light"] .wtpn-card {
  border-color: rgba(37, 99, 235, 0.16);
  background:
    radial-gradient(ellipse 68% 82% at 0% 0%, rgba(245, 158, 11, 0.10), transparent 62%),
    radial-gradient(ellipse 56% 72% at 100% 100%, rgba(37, 99, 235, 0.08), transparent 64%),
    rgba(255, 255, 255, 0.86);
}
html[data-theme="light"] .wtpn-feature-icon {
  background: rgba(217, 119, 6, 0.10);
  border-color: rgba(217, 119, 6, 0.22);
  color: #b45309;
}
html[data-theme="light"] .btn-wtpn-primary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.35);
}

/* ---- 19.10 Installation Guides Stepper ---- */
.guide-tabs-nav {
  display: inline-flex;
  margin-inline: auto;
  border-radius: 14px;
  padding: 5px;
  gap: 4px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.guides-section .content-container {
  display: flex;
  flex-direction: column;
}

.guide-tab-trigger {
  border-radius: 10px;
  padding: 8px 20px;
  font-weight: 650;
  transition: all 0.2s ease;
}

.guide-tab-trigger.active {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-secondary-rgb, 124, 141, 255), 0.18));
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  color: var(--text-primary);
  box-shadow: 0 6px 18px -8px rgba(var(--accent-rgb), 0.55);
}

.step-item {
  border-radius: 20px;
  padding: 24px;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.20), rgba(var(--accent-rgb), 0.06));
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 8px 18px -8px rgba(var(--accent-rgb), 0.48);
}

.step-title {
  font-size: 1.04rem;
  font-weight: 750;
  margin-bottom: 6px;
}

/* ---- 19.11 Flagship Asymmetric Bento Features Grid ---- */
.features-grid .feature-card {
  border-radius: 22px;
  padding: 26px;
  gap: 12px;
}

.feature-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.05));
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 22px -10px rgba(var(--accent-rgb), 0.42);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover .feature-icon-badge {
  transform: scale(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 26px -8px rgba(var(--accent-rgb), 0.62);
}

.features-grid .feature-card:nth-child(1) .feature-icon-badge {
  color: var(--accent-secondary);
  background: linear-gradient(145deg, rgba(var(--accent-secondary-rgb, 124, 141, 255), 0.22), rgba(var(--accent-secondary-rgb, 124, 141, 255), 0.05));
  border-color: rgba(var(--accent-secondary-rgb, 124, 141, 255), 0.34);
}
.features-grid .feature-card:nth-child(2) .feature-icon-badge,
.features-grid .feature-card:nth-child(7) .feature-icon-badge {
  color: var(--accent-emerald);
  background: linear-gradient(145deg, rgba(77, 227, 174, 0.20), rgba(77, 227, 174, 0.05));
  border-color: rgba(77, 227, 174, 0.32);
}
.features-grid .feature-card:nth-child(6) .feature-icon-badge {
  color: var(--accent-amber);
  background: linear-gradient(145deg, rgba(247, 197, 104, 0.20), rgba(247, 197, 104, 0.05));
  border-color: rgba(247, 197, 104, 0.32);
}

.feature-title {
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 0.90rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

@media (min-width: 980px) {
  .features-grid {
    gap: 18px;
  }
  .features-grid .feature-card:nth-child(1) {
    background:
      radial-gradient(ellipse 75% 80% at 100% 0%, rgba(var(--accent-secondary-rgb, 124, 141, 255), 0.16), transparent 64%),
      linear-gradient(165deg, color-mix(in srgb, var(--surface-elevated) 76%, transparent), color-mix(in srgb, var(--surface) 80%, transparent));
  }
  .features-grid .feature-card:nth-child(4) {
    background:
      radial-gradient(ellipse 75% 80% at 100% 100%, rgba(var(--accent-rgb), 0.15), transparent 64%),
      linear-gradient(165deg, color-mix(in srgb, var(--surface-elevated) 76%, transparent), color-mix(in srgb, var(--surface) 80%, transparent));
  }
}

/* ---- 19.12 Crisp Architectural Footer ---- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, transparent 0%, rgba(var(--accent-rgb), 0.03) 100%);
  padding: 28px 0 36px;
}

/* ---- 19.13 Rock-Solid Snappy Reveal Transitions ---- */
.studio-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.studio-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 19.14 Responsive Refinements & Spatial Hero Chips ---- */
.ambient-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.62;
  mask-image: radial-gradient(ellipse 92% 70% at 50% 24%, black 18%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 92% 70% at 50% 24%, black 18%, transparent 82%);
}
html[data-theme="light"] .ambient-network-canvas {
  opacity: 0.42;
}

.hero-float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--border-glass-elevated);
  box-shadow:
    inset 0 1px 0 var(--card-top-sheen),
    0 16px 36px -14px rgba(0, 0, 0, 0.72);
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.71rem;
  font-weight: 650;
  color: var(--text-primary);
  pointer-events: none;
  white-space: nowrap;
  animation: flagshipChipFloat 5.5s ease-in-out infinite alternate;
}

.hero-float-chip .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  flex: none;
}

.hero-float-chip.chip-top {
  top: -10px;
  left: -12px;
}

.hero-float-chip.chip-bottom {
  top: 186px;
  right: -34px;
  animation-delay: -2.7s;
}
.hero-float-chip.chip-bottom .chip-dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

html[data-theme="light"] .hero-float-chip {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 14px 32px -12px rgba(15, 23, 42, 0.16);
}

@keyframes flagshipChipFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

@media (max-width: 1140px) {
  .nav-shell {
    gap: 8px;
    padding: 7px 11px;
  }
  .nav-item-link {
    padding: 5px 7px;
    font-size: 0.78rem;
  }
  .brand-subtitle {
    display: none;
  }
  .hero-float-chip {
    display: none;
  }
}

@media (max-width: 960px) {
  .brand-title {
    font-size: 0.94rem;
  }
  .lang-btn,
  .theme-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
}

@media (max-width: 820px) {
  .interactive-demo::before,
  .interactive-demo::after {
    width: 300px;
    height: 300px;
  }
  .hero-headline {
    font-size: clamp(2.45rem, 10vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-orb,
  .interactive-demo::after,
  .hero-content .mono-pill.emerald .live-dot,
  .hero-float-chip {
    animation: none !important;
  }
}


/* ==========================================================================
   20. Extended Flagship Sections (Protocols, Showcase, Matrix, FAQ, Support)
   ========================================================================== */

.protocols-section,
.showcase-section,
.matrix-section,
.faq-section,
.oss-section {
  position: relative;
  padding-block: clamp(48px, 6.5vw, 88px);
}

.protocols-section::before,
.showcase-section::before,
.matrix-section::before,
.faq-section::before,
.oss-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 86%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
  pointer-events: none;
}

/* ---- 20.1 Protocols & Transports Grid ---- */
.protocols-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.protocol-card {
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.protocol-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.protocol-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.protocol-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.protocol-tag {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.protocol-badge-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.05));
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--accent);
}

.protocol-card[data-tone="emerald"] .protocol-badge-dot {
  color: var(--accent-emerald);
  background: linear-gradient(145deg, rgba(77, 227, 174, 0.20), rgba(77, 227, 174, 0.05));
  border-color: rgba(77, 227, 174, 0.32);
}

.protocol-card[data-tone="indigo"] .protocol-badge-dot {
  color: var(--accent-secondary);
  background: linear-gradient(145deg, rgba(var(--accent-secondary-rgb, 124, 141, 255), 0.22), rgba(var(--accent-secondary-rgb, 124, 141, 255), 0.05));
  border-color: rgba(var(--accent-secondary-rgb, 124, 141, 255), 0.34);
}

.protocol-card[data-tone="amber"] .protocol-badge-dot {
  color: var(--accent-amber);
  background: linear-gradient(145deg, rgba(247, 197, 104, 0.20), rgba(247, 197, 104, 0.05));
  border-color: rgba(247, 197, 104, 0.32);
}

.protocol-desc {
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.protocol-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.plat-pill {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.70rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.plat-pill.plat-android {
  color: var(--accent-emerald);
  border-color: rgba(77, 227, 174, 0.24);
  background: rgba(77, 227, 174, 0.08);
}

.plat-pill.plat-win {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.26);
  background: rgba(var(--accent-rgb), 0.08);
}

.plat-pill.plat-linux {
  color: var(--accent-amber);
  border-color: rgba(247, 197, 104, 0.26);
  background: rgba(247, 197, 104, 0.08);
}

html[data-theme="light"] .plat-pill.plat-android { color: #047857; background: rgba(5, 150, 105, 0.09); border-color: rgba(5, 150, 105, 0.22); }
html[data-theme="light"] .plat-pill.plat-win { color: #1d4ed8; background: rgba(37, 99, 235, 0.09); border-color: rgba(37, 99, 235, 0.22); }
html[data-theme="light"] .plat-pill.plat-linux { color: #b45309; background: rgba(217, 119, 6, 0.09); border-color: rgba(217, 119, 6, 0.22); }

/* ---- 20.2 Interactive App Showcase Gallery ---- */
.showcase-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.showcase-switcher {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid var(--border-glass);
}

.showcase-plat-btn,
.showcase-screen-btn {
  padding: 7px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.showcase-plat-btn:hover,
.showcase-screen-btn:hover {
  color: var(--text-primary);
}

.showcase-plat-btn.active,
.showcase-screen-btn.active {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-secondary-rgb, 124, 141, 255), 0.18));
  border-color: rgba(var(--accent-rgb), 0.42);
  color: var(--text-primary);
  box-shadow: 0 6px 18px -8px rgba(var(--accent-rgb), 0.50);
}

html[data-theme="light"] .showcase-plat-btn.active,
html[data-theme="light"] .showcase-screen-btn.active {
  background: #2563eb;
  border-color: transparent;
  color: #ffffff;
}

.showcase-stage {
  border-radius: 26px;
  padding: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.showcase-frame {
  width: 100%;
  max-width: 920px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-glass-elevated);
  background: #0e0f13;
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.82);
  transition: max-width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-frame.is-mobile-frame {
  max-width: 310px;
  border-radius: 32px;
  border-width: 4px;
}

.showcase-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(22, 23, 28, 0.94);
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-frame.is-mobile-frame .showcase-window-bar {
  display: none;
}

.showcase-dots {
  display: inline-flex;
  gap: 6px;
}
.showcase-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.showcase-dots span:nth-child(1) { background: #ff5f57; }
.showcase-dots span:nth-child(2) { background: #febc2e; }
.showcase-dots span:nth-child(3) { background: #28c840; }

.showcase-win-title {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.showcase-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.22s ease;
}

.showcase-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 920px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ---- 20.3 Cross-Platform Comparison Matrix ---- */
.matrix-card {
  border-radius: 24px;
  padding: 6px;
  overflow: hidden;
}

.matrix-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.88rem;
}

.matrix-table th,
.matrix-table td {
  padding: 15px 18px;
  text-align: start;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-table thead th {
  font-size: 0.78rem;
  font-family: ui-monospace, 'SF Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  background: rgba(var(--accent-rgb), 0.04);
}

.matrix-table thead th:not(:first-child),
.matrix-table tbody td:not(:first-child) {
  text-align: center;
}

.matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.matrix-table tbody tr {
  transition: background 0.16s ease;
}
.matrix-table tbody tr:hover {
  background: rgba(var(--accent-rgb), 0.04);
}

.matrix-feat-name {
  font-weight: 650;
  color: var(--text-primary);
}

.matrix-feat-sub {
  display: block;
  font-size: 0.77rem;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.m-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 650;
  white-space: nowrap;
}

.m-yes {
  color: var(--accent-emerald);
  background: rgba(77, 227, 174, 0.10);
  border: 1px solid rgba(77, 227, 174, 0.24);
}

.m-note {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
}

.m-no {
  color: var(--text-tertiary);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border-subtle);
}

html[data-theme="light"] .m-yes { color: #047857; background: rgba(5, 150, 105, 0.09); border-color: rgba(5, 150, 105, 0.22); }
html[data-theme="light"] .m-note { color: #1d4ed8; background: rgba(37, 99, 235, 0.09); border-color: rgba(37, 99, 235, 0.22); }

/* ---- 20.4 Interactive FAQ Accordion ---- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.faq-item {
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid var(--border-subtle);
  color: var(--accent);
  transition: transform 0.22s ease, background 0.18s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: rgba(var(--accent-rgb), 0.20);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 0.89rem;
  line-height: 1.65;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* ---- 20.5 Open Source & Support Strip ---- */
.oss-card {
  border-radius: 24px;
  padding: clamp(24px, 3.6vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background:
    radial-gradient(ellipse 65% 90% at 100% 0%, rgba(var(--accent-secondary-rgb, 124, 141, 255), 0.16), transparent 65%),
    radial-gradient(ellipse 60% 90% at 0% 100%, rgba(var(--accent-rgb), 0.12), transparent 65%),
    linear-gradient(165deg, color-mix(in srgb, var(--surface-elevated) 78%, transparent), color-mix(in srgb, var(--surface) 84%, transparent));
  border: 1px solid var(--border-glass-elevated);
}

.oss-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 560px;
}

.oss-copy h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.oss-copy p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.oss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-support-heart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  color: #ffffff;
  font-size: 0.90rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 28px -10px rgba(244, 63, 94, 0.52);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-support-heart:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(244, 63, 94, 0.65);
}

@media (max-width: 980px) {
  .protocols-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .protocols-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   21. Mobile & Tablet Responsive Hardening (Overrides Sections 19-20 cleanly)
   ========================================================================== */
@media (max-width: 860px) {
  .nav-shell {
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 8px 12px;
  }

  .nav-links {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    justify-content: flex-start !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    padding: 4px 16px 2px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 88%, transparent 100%);
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero-section {
    padding-top: 18px;
    padding-bottom: 42px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px;
  }

  .hero-content {
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
  }

  .hero-headline {
    font-size: clamp(2.4rem, 10.5vw, 3.35rem);
    word-break: normal;
    overflow-wrap: normal;
  }

  .hero-description {
    max-width: 100%;
  }

  .studio-spec-strip {
    width: 100%;
    max-width: 100%;
  }

  .interactive-demo {
    width: 100%;
    margin-inline: auto;
    padding-top: 8px;
  }

  .demo-phone {
    width: min(82vw, 290px);
    max-width: 100%;
  }

  .platforms-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .content-container {
    padding-inline: 16px;
  }

  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .studio-spec-cell {
    padding: 10px 10px;
  }
  .studio-spec-cell strong {
    font-size: 0.78rem;
  }

  .showcase-controls {
    width: 100%;
    gap: 10px;
  }

  .showcase-switcher {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .showcase-plat-btn,
  .showcase-screen-btn {
    padding: 6px 11px;
    font-size: 0.78rem;
  }

  .showcase-stage {
    padding: 14px;
    border-radius: 20px;
  }

  .matrix-table {
    min-width: 540px;
    font-size: 0.82rem;
  }
  .matrix-table th,
  .matrix-table td {
    padding: 11px 12px;
  }

  .oss-actions {
    width: 100%;
  }
  .oss-actions > a {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ==========================================================================
   22. Soft Eye-Friendly Light Theme (Low-Glare Porcelain / Paper Mist)
   ========================================================================== */
.bullet-light {
  background: #2563eb;
}

html[data-theme="light"] {
  --bg-canvas: #e4eaf2;
  --bg-deep: #d9e1ec;
  --surface: #f1f4f9;
  --surface-elevated: #e8edf5;
  --surface-overlay: rgba(241, 244, 249, 0.88);

  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-medium: rgba(15, 23, 42, 0.16);
  --border-glass: rgba(15, 23, 42, 0.10);
  --border-glass-elevated: rgba(37, 99, 235, 0.34);

  --text-primary: #141c2c;
  --text-secondary: #46546b;
  --text-tertiary: #64748b;
  --text-inverse: #f8fafc;

  --accent: #2563eb;
  --accent-rgb: 37, 99, 235;
  --accent-secondary: #3b5bdb;
  --accent-secondary-rgb: 59, 91, 219;
  --accent-emerald: #059669;
  --accent-amber: #b45309;
  --accent-crimson: #dc2626;

  --stage-glow-1: rgba(37, 99, 235, 0.10);
  --stage-glow-2: rgba(59, 91, 219, 0.08);
  --card-top-sheen: rgba(255, 255, 255, 0.65);
}

/* Soft Matte Mist Canvas — Zero Harsh White Glare */
html[data-theme="light"] .ambient-glow-layer {
  background:
    radial-gradient(ellipse 76% 46% at 50% -10%, rgba(37, 99, 235, 0.08), transparent 68%),
    radial-gradient(ellipse 52% 42% at 84% 26%, rgba(99, 102, 241, 0.07), transparent 62%),
    linear-gradient(180deg, #eaeff6 0%, #e1e8f1 52%, #dae2ec 100%);
}
html[data-theme="light"] .ambient-orb {
  opacity: 0.16;
}
html[data-theme="light"] .ambient-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.12) 1px, transparent 0),
    repeating-radial-gradient(
      circle at 74% 30%,
      transparent 0,
      transparent 108px,
      rgba(37, 99, 235, 0.05) 108px,
      rgba(37, 99, 235, 0.05) 109px
    );
  background-size: 32px 32px, 100% 100%;
  opacity: 0.68;
}
html[data-theme="light"] .ambient-network-canvas {
  opacity: 0.30;
}

/* Soft Porcelain Navbar, Cards & Containers (No Blinding #FFFFFF) */
html[data-theme="light"] .nav-shell {
  background: rgba(241, 245, 250, 0.86);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 32px -14px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .lang-btn,
html[data-theme="light"] .theme-btn {
  background: #e5ebf3;
  border-color: rgba(15, 23, 42, 0.10);
  color: #141c2c;
}
html[data-theme="light"] .lang-btn:hover,
html[data-theme="light"] .theme-btn:hover {
  background: #dae3ef;
  border-color: rgba(37, 99, 235, 0.28);
}
html[data-theme="light"] .lang-dropdown,
html[data-theme="light"] .theme-dropdown {
  background: #f1f4f9;
  border-color: rgba(15, 23, 42, 0.11);
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .hero-headline > span:first-child,
html[data-theme="light"] .section-title {
  background: linear-gradient(175deg, #111827 24%, #254892 125%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
}
html[data-theme="light"] .hero-headline .accent-highlight {
  background: linear-gradient(95deg, #1d4ed8 0%, #3b5bdb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .hero-content .mono-pill.emerald {
  background: #eef3f9;
  border-color: rgba(5, 150, 105, 0.28);
  color: #047857;
}
html[data-theme="light"] .hero-cta-group .btn-secondary {
  background: #eef2f8;
  color: #141c2c;
  border-color: rgba(15, 23, 42, 0.13);
}
html[data-theme="light"] .hero-cta-group .btn-secondary:hover {
  background: #f6f8fc;
  border-color: rgba(37, 99, 235, 0.34);
}

html[data-theme="light"] .studio-spec-strip,
html[data-theme="light"] .studio-surface,
html[data-theme="light"] .platform-card,
html[data-theme="light"] .protocol-card,
html[data-theme="light"] .showcase-stage,
html[data-theme="light"] .matrix-card,
html[data-theme="light"] .step-item,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .oss-card {
  background: linear-gradient(165deg, rgba(244, 247, 251, 0.88) 0%, rgba(236, 241, 248, 0.84) 100%);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 30px -16px rgba(15, 23, 42, 0.11);
}
html[data-theme="light"] .platform-card.detected-os {
  border-color: rgba(37, 99, 235, 0.42);
  background:
    radial-gradient(ellipse 85% 44% at 50% 0%, rgba(37, 99, 235, 0.09), transparent 66%),
    linear-gradient(165deg, rgba(245, 248, 252, 0.92) 0%, rgba(236, 241, 248, 0.88) 100%);
}
html[data-theme="light"] .wtpn-card {
  border-color: rgba(180, 83, 9, 0.20);
  background:
    radial-gradient(ellipse 68% 82% at 0% 0%, rgba(245, 158, 11, 0.10), transparent 62%),
    radial-gradient(ellipse 56% 72% at 100% 100%, rgba(37, 99, 235, 0.07), transparent 64%),
    linear-gradient(165deg, rgba(244, 247, 251, 0.90) 0%, rgba(235, 240, 247, 0.86) 100%);
}
html[data-theme="light"] .wtpn-feature-box {
  background: rgba(230, 236, 245, 0.65);
  border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .platform-meta-block,
html[data-theme="light"] .arch-chip,
html[data-theme="light"] .terminal-command-box {
  background: #e5ebf4;
  border-color: rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .btn-copy {
  background: #f2f5fa;
  color: #141c2c;
}
html[data-theme="light"] .guide-tabs-nav,
html[data-theme="light"] .showcase-switcher,
html[data-theme="light"] .demo-caption,
html[data-theme="light"] .hero-float-chip {
  background: rgba(240, 244, 249, 0.90);
  border-color: rgba(15, 23, 42, 0.10);
  color: #1e293b;
}
html[data-theme="light"] .features-grid .feature-card:nth-child(1),
html[data-theme="light"] .features-grid .feature-card:nth-child(4) {
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(37, 99, 235, 0.07), transparent 68%),
    linear-gradient(165deg, rgba(244, 247, 251, 0.88) 0%, rgba(236, 241, 248, 0.84) 100%);
}
html[data-theme="light"] .modal-dialog {
  background: #f1f4f9;
  border-color: rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .showcase-frame {
  background: #141822;
  border-color: rgba(15, 23, 42, 0.18);
}
html[data-theme="light"] .showcase-window-bar {
  background: #1f2432;
}
html[data-theme="light"] .site-footer {
  background: rgba(226, 232, 241, 0.65);
  border-top-color: rgba(15, 23, 42, 0.09);
}

/* Soft Eye-Friendly Light Phone Demo */
html[data-theme="light"] .demo-phone {
  border-color: #cbd5e1;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.10),
    0 26px 60px -18px rgba(15, 23, 42, 0.22);
}
.demo-phone[data-demo-theme="light"] {
  --demo-surface: rgba(242, 245, 250, 0.90);
  background-color: #e4eaf3;
}
.demo-phone[data-demo-theme="light"] .demo-landscape {
  background:
    repeating-radial-gradient(
      circle at 50% 34%,
      transparent 0,
      transparent 40px,
      rgba(37, 99, 235, 0.05) 40px,
      rgba(37, 99, 235, 0.05) 41px
    ),
    radial-gradient(circle at 50% 32%, rgba(191, 219, 254, 0.35), transparent 58%),
    linear-gradient(180deg, #ebf0f7 0%, #dee6f2 100%);
}
.demo-phone[data-demo-theme="light"] .demo-connect-surface {
  background: linear-gradient(180deg, #f6f8fc 0%, #e5ecf6 100%);
}
.demo-phone[data-demo-theme="light"] .demo-nav {
  background: rgba(242, 245, 250, 0.92);
}

/* ==========================================================================
   23. Client Comparison & GitHub Metrics
   ========================================================================== */
.compare-section {
  padding: 72px 0;
}

/* Comparison Table (#compare) */
.compare-card {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
}

.compare-table th.compare-col-splate,
.compare-table td.compare-col-splate {
  background: rgba(var(--accent-rgb), 0.08);
}

.compare-table th.compare-col-splate {
  color: var(--accent);
  font-weight: 800;
}

.m-partial {
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.30);
}

.compare-footnote {
  padding: 14px 20px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
}

/* Live GitHub Metrics Strip inside #community */
.gh-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.gh-metric-cell {
  padding: 16px 18px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gh-metric-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.gh-metric-label {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.gh-metric-tag {
  margin-top: 2px;
  font-size: 0.68rem;
  font-family: ui-monospace, 'SF Mono', monospace;
  color: var(--accent);
}

/* Light theme overrides for new sections */
html[data-theme="light"] .compare-card,
html[data-theme="light"] .gh-metric-cell {
  background: linear-gradient(165deg, rgba(244, 247, 251, 0.88) 0%, rgba(236, 241, 248, 0.84) 100%);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 30px -16px rgba(15, 23, 42, 0.11);
}

html[data-theme="light"] .compare-table th.compare-col-splate,
html[data-theme="light"] .compare-table td.compare-col-splate {
  background: rgba(37, 99, 235, 0.06);
}

@media (max-width: 860px) {
  .gh-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
