/* ==========================================================================
   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,
[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);
}

[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);
}

[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);
}

[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);
}

[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 {
  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;
  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.90rem;
  font-weight: 700;
  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;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tab-index: -1 !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:16px; }
.demo-phone { width:min(100%, 350px); min-height:600px; border:6px solid #25232b; border-radius:36px; overflow:hidden; padding:16px 18px 12px; color:#fff; background:#160c1d url('../assets/theme_sakura.png') center/cover; box-shadow:0 24px 70px #0007; display:flex; flex-direction:column; }
.demo-phone[data-demo-theme="sunset"] { background-image:url('../assets/theme_sunset.png'); }
.demo-phone[data-demo-theme="ocean"] { background-image:url('../assets/theme_ocean.png'); }
.demo-phone[data-demo-theme="cyberpunk"] { background-image:url('../assets/theme_cyberpunk.png'); }
.demo-phone[data-demo-theme="amoled"] { background:#000; }
.demo-top { display:flex; justify-content:space-between; font-size:.65rem; padding:0 4px 16px; }
.demo-header { display:flex; align-items:center; gap:9px; text-align:start; }
.demo-header div { flex:1; }.demo-header strong,.demo-header small { display:block; }.demo-header strong { font-size:.8rem; letter-spacing:.08em; }.demo-header small { font-size:.55rem; color:#c6baca; }
.demo-badge { font-size:.55rem; color:#ead9e7; border:1px solid #ffffff38; border-radius:20px; padding:4px 7px; }
.demo-panel { flex:1; padding-top:26px; text-align:start; }.demo-panel[hidden], .demo-panel [hidden] { display:none !important; }
.demo-panel h3 { font-size:1.15rem; margin:16px 0 4px; }.demo-panel p { color:#d5c8d8; font-size:.72rem; margin-bottom:18px; }
.demo-status { display:table; margin:0 auto; padding:6px 12px; border:1px solid #ffffff30; border-radius:20px; background:#1b1024aa; color:#ead8e9; font-size:.65rem; }
.demo-connect { display:flex; flex-direction:column; justify-content:center; align-items:center; margin:24px auto; width:140px; height:140px; border-radius:50%; color:#ffd5e7; border:1px solid #ffb5db88; background:radial-gradient(circle,#673153aa,#1b0f28ee); box-shadow:0 0 0 9px #ffffff0b, 0 0 35px #ff91d43b; cursor:pointer; }.demo-connect span { font-size:2.4rem; line-height:1; }.demo-connect small { font-size:.56rem; margin-top:8px; }.demo-connect.connected { border-color:#8df3cb; color:#a8ffdd; }
.demo-card,.demo-server { display:flex; flex-direction:column; gap:5px; margin:10px 0; padding:14px; border-radius:16px; background:#1b1024bc; border:1px solid #ffffff25; color:#fff; text-align:start; }.demo-card small { font-size:.57rem; color:#d1a6c7; letter-spacing:.07em; }.demo-card strong,.demo-server strong { font-size:.78rem; }.demo-card span,.demo-server small { font-size:.68rem; color:#d0c1d0; }
.demo-mode { display:flex; gap:4px; background:#150e1fcc; border-radius:12px; padding:4px; }.demo-mode button { flex:1; padding:9px; border:0; border-radius:9px; background:none; color:#d7c7d9; cursor:pointer; }.demo-mode button.active { background:#81547899; color:white; }
.demo-server { width:100%; flex-direction:row; align-items:center; gap:10px; cursor:pointer; }.demo-server span:nth-child(2) { display:flex; flex-direction:column; gap:4px; }.demo-server.active { border-color:#efb6dd; }
.demo-nav { display:flex; justify-content:space-between; gap:2px; border-radius:18px; padding:5px; background:#1b1024d9; border:1px solid #ffffff25; }.demo-nav button { flex:1; border:0; border-radius:12px; padding:7px 3px; color:#d9cbd9; background:none; cursor:pointer; }.demo-nav button.active { background:#8c5c8199; color:white; }.demo-nav span,.demo-nav small { display:block; }.demo-nav span { font-size:1.1rem; }.demo-nav small { font-size:.52rem; }
.demo-caption { color:var(--text-secondary); font-size:.75rem; text-align:center; }.demo-themes { display:flex; justify-content:center; gap:10px; margin-top:12px; }.demo-themes button { width:24px; height:24px; border-radius:50%; border:2px solid transparent; outline:1px solid var(--border-medium); cursor:pointer; background:#ac7196; }.demo-themes button.active { outline:2px solid var(--accent); outline-offset:3px; }.demo-themes [data-demo-theme="sunset"] { background:#d68a62; }.demo-themes [data-demo-theme="ocean"] { background:#4a99aa; }.demo-themes [data-demo-theme="cyberpunk"] { background:#945dc8; }.demo-themes [data-demo-theme="amoled"] { background:#090909; }

/* Android preview: scrollable screens and a fixed bottom dock. */
.demo-phone { --demo-accent:#ffb4d4; --demo-muted:#d6bfce; --demo-surface:rgba(30,15,35,.78); --demo-border:rgba(255,190,222,.26); width:min(100%, 350px); height:670px; min-height:0; padding:0 0 7px; position:relative; background-color:#170c1d; }
.demo-phone[data-demo-theme="sunset"] { --demo-accent:#ffb18d; --demo-muted:#e4c2b4; --demo-border:rgba(255,179,140,.35); --demo-surface:rgba(35,18,30,.8); }
.demo-phone[data-demo-theme="ocean"] { --demo-accent:#8be1db; --demo-muted:#bbd6d9; --demo-border:rgba(140,226,222,.32); --demo-surface:rgba(9,28,40,.82); }
.demo-phone[data-demo-theme="cyberpunk"] { --demo-accent:#e8a5ff; --demo-muted:#d2c3e4; --demo-border:rgba(220,160,255,.35); --demo-surface:rgba(28,15,42,.82); }
.demo-phone[data-demo-theme="amoled"] { --demo-accent:#8ef0cf; --demo-muted:#aac2bd; --demo-border:rgba(142,240,207,.3); --demo-surface:#101516; }
.demo-top { flex:none; padding:13px 19px 5px; font-size:.63rem; background:linear-gradient(#100b16a8,transparent); }
.demo-scroll { flex:1; min-height:0; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#ffffff40 transparent; padding:10px 15px 10px; overscroll-behavior:contain; }
.demo-panel { min-height:100%; padding:8px 0 12px; }.demo-panel[hidden], .demo-panel [hidden] { display:none !important; }
.demo-header { margin:3px 0 20px; }.demo-logo, .demo-square, .demo-tor-icon { display:grid; place-items:center; flex:none; width:37px; height:37px; border:1px solid var(--demo-border); border-radius:12px; color:var(--demo-accent); background:var(--demo-surface); font-size:1.15rem; }.demo-header small { color:var(--demo-muted); font-size:.5rem; letter-spacing:.04em; }
.demo-badge { color:var(--demo-muted); border-color:var(--demo-border); background:var(--demo-surface); }
.demo-status { background:var(--demo-surface); color:var(--demo-muted); border-color:var(--demo-border); letter-spacing:.04em; }
.demo-connect { width:130px; height:130px; margin:24px auto 30px; color:var(--demo-accent); border-color:var(--demo-border); background:radial-gradient(circle at 50% 20%,#ffffff18,transparent 50%),#160e1d; box-shadow:0 0 0 10px #ffffff08, 0 0 0 11px var(--demo-border); }.demo-connect.connected { color:#a5ffd9; border-color:#92e7c1; box-shadow:0 0 0 10px #8fffc80d,0 0 26px #8fffc83b; }
.demo-section-label { color:var(--demo-muted); letter-spacing:.11em; font-size:.61rem; font-weight:700; margin:15px 4px 8px; }
.demo-card,.demo-server,.demo-setting { border-color:var(--demo-border); background:var(--demo-surface); backdrop-filter:blur(12px); }
.demo-card { margin:8px 0; }.demo-card small { color:var(--demo-accent); }.demo-card span,.demo-server small,.demo-setting small { color:var(--demo-muted); }
.demo-current { width:100%; flex-direction:row; align-items:center; gap:10px; cursor:pointer; font:inherit; }.demo-current-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:4px; }.demo-current-copy strong { color:#fff; }.demo-current-copy small { color:var(--demo-muted); letter-spacing:0; }.demo-current > span:last-child { color:var(--demo-muted); font-size:1.3rem; }
.demo-route { display:grid; grid-template-columns:1fr 1fr; gap:7px; }.demo-route button { display:flex; flex-direction:column; gap:8px; min-height:75px; text-align:start; padding:12px; border-radius:15px; border:1px solid var(--demo-border); background:var(--demo-surface); color:#fff; cursor:pointer; }.demo-route button.active { border-color:var(--demo-accent); box-shadow:inset 0 0 0 1px var(--demo-border); }.demo-route strong { font-size:.68rem; }.demo-route small { color:var(--demo-muted); font-size:.61rem; }
.demo-note { margin:14px 3px 3px; color:var(--demo-muted); font-size:.61rem; line-height:1.45; }
.demo-mode { background:var(--demo-surface); border:1px solid var(--demo-border); }.demo-mode button { font-size:.72rem; }.demo-mode button.active { background:var(--demo-border); }.demo-mode-caption { margin:6px 2px 18px !important; font-size:.6rem !important; }
.demo-screen-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:12px 0 15px; }.demo-screen-head h3 { margin:0 0 4px; font-size:1.15rem; }.demo-screen-head p { margin:0; font-size:.65rem; }.demo-count { border-radius:9px; padding:5px 9px; background:var(--demo-surface); color:var(--demo-accent); font-size:.7rem; }
.demo-tools { display:flex; justify-content:space-around; gap:5px; padding:9px; border:1px solid var(--demo-border); background:var(--demo-surface); border-radius:13px; color:var(--demo-accent); font-size:.62rem; }
.demo-search { display:flex; align-items:center; gap:8px; margin:10px 0; padding:9px 12px; background:var(--demo-surface); border:1px solid var(--demo-border); border-radius:12px; color:var(--demo-muted); }.demo-search input { min-width:0; width:100%; border:0; background:transparent; color:white; outline:0; font:inherit; font-size:.7rem; }.demo-search input::placeholder { color:var(--demo-muted); opacity:.8; }
.demo-list-title { display:flex; flex-direction:column; gap:4px; color:var(--demo-accent); margin:14px 3px 8px; font-size:.66rem; font-weight:700; }.demo-list-title small { color:var(--demo-muted); font-weight:400; font-size:.6rem; }
.demo-server { font:inherit; padding:13px 11px; }.demo-server.active { border-color:var(--demo-accent); }.demo-server span:nth-child(2) { flex:1; }.demo-server small b { color:var(--demo-accent); font-size:.58rem; }.demo-radio { width:16px; height:16px; border:1.5px solid var(--demo-muted); border-radius:50%; }.demo-server.active .demo-radio { border:5px solid var(--demo-accent); }.demo-chevron { color:var(--demo-muted); font-size:1.1rem; }.demo-empty { margin:12px 3px; }
.demo-tor-card { gap:9px; padding:15px; }.demo-tor-card p { color:var(--demo-muted); margin:0; line-height:1.4; }.demo-primary { padding:10px; border:1px solid var(--demo-accent); border-radius:11px; color:#fff; background:var(--demo-border); font-size:.68rem; font-weight:700; cursor:pointer; }.demo-bridge-options,.demo-app-modes { display:flex; flex-wrap:wrap; gap:5px; }.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:.61rem; cursor:pointer; }.demo-bridge-options button.active,.demo-app-modes button.active { color:#fff; border-color:var(--demo-accent); background:var(--demo-border); }.demo-tor-card > small { color:var(--demo-muted); letter-spacing:0; line-height:1.4; }
.demo-app-card { gap:10px; }.demo-app-row,.demo-setting { display:flex; align-items:center; gap:10px; width:100%; margin:8px 0; padding:12px; border:1px solid var(--demo-border); border-radius:14px; color:white; text-align:start; font:inherit; }.demo-app-row { background:var(--demo-surface); font-size:.72rem; }.demo-app-row span:nth-child(2),.demo-setting span:nth-child(2) { flex:1; }.demo-app-row input { accent-color:var(--demo-accent); }.demo-app-icon { display:grid; place-items:center; width:30px; height:30px; border-radius:10px; background:var(--demo-border); color:var(--demo-accent); }.demo-setting { cursor:pointer; }.demo-setting span:nth-child(2) { display:flex; flex-direction:column; gap:4px; }.demo-setting strong { font-size:.72rem; }.demo-setting small { font-size:.61rem; }.demo-appearance { margin-top:15px; }.demo-themes { justify-content:flex-start; margin:6px 0 2px; }
.demo-nav { flex:none; margin:0 10px; padding:4px; background:var(--demo-surface); border-color:var(--demo-border); backdrop-filter:blur(18px); }.demo-nav button { min-width:0; }.demo-nav button.active { color:var(--demo-accent); background:var(--demo-border); }.demo-nav small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.demo-gesture { flex:none; width:88px; height:3px; border-radius:3px; background:#fff; margin:7px auto 0; }
@media(max-width:400px) { .demo-phone { height:620px; } }

.demo-scroll { background:linear-gradient(180deg, rgba(10,7,16,.48), rgba(10,7,16,.16) 55%, rgba(10,7,16,.28)); }
.demo-screen-head h3, .demo-screen-head p { text-shadow:0 1px 8px #000, 0 1px 3px #000; }

/* Site surfaces inspired by the Android Sunset theme. */
[data-theme="dark"] {
  --bg-canvas: #140d18;
  --bg-deep: #0e0912;
  --surface: #211525;
  --surface-elevated: #302035;
  --surface-overlay: rgba(35, 23, 40, .94);
  --border-subtle: #453145;
  --border-medium: #765461;
  --border-glass: rgba(255, 185, 166, .21);
  --border-glass-elevated: rgba(255, 185, 166, .42);
  --text-primary: #fff3ef;
  --text-secondary: #dbc1cb;
  --text-tertiary: #bb9eae;
  --text-inverse: #2d1722;
  --accent: #ffb28f;
  --accent-rgb: 255, 178, 143;
  --accent-secondary: #e2b7fa;
  --ambient-1: rgba(211, 105, 112, .15);
  --ambient-2: rgba(178, 106, 191, .12);
}

.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(18px, 4vw, 48px) clamp(40px, 7vw, 88px); }
.hero-grid {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(24px, 5vw, 70px);
  border: 1px solid var(--border-glass);
  border-radius: clamp(24px, 4vw, 44px);
  background: radial-gradient(ellipse at 85% 28%, var(--ambient-1), transparent 57%), var(--surface);
  box-shadow: var(--glass-shadow);
}
[data-theme="dark"] .hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, #211525 22%, #211525b8 65%, #21152555), url('../assets/theme_sunset.png') right 54% / cover;
  opacity: .65;
  pointer-events: none;
}
.hero-headline { font-size: clamp(2.35rem, 5.1vw, 5rem); line-height: 1.02; letter-spacing: -.045em; }
.hero-headline .accent-highlight { display: inline-block; margin-top: .22em; font-size: .53em; line-height: 1.13; letter-spacing: -.025em; }
.hero-content { gap: 22px; }
.hero-description { font-size: clamp(1rem, 1.5vw, 1.16rem); }
.hero-specs-bar { background: var(--surface-overlay); border-radius: 18px; }
.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) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: start; }
  .hero-content { align-items: flex-start; }
  .hero-cta-group, .hero-specs-bar { justify-content: flex-start; }
  .hero-specs-bar { margin-inline: 0; }
}
@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-phone[data-demo-theme="sunset"] {
  background-position: center bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
}
#demoHome .demo-header { margin-block: 9px 16px; }
#demoHome .demo-connect { width: 116px; height: 116px; margin: 26px auto 30px; }
.demo-server-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.demo-server-heading .demo-section-label { margin:0; text-transform:none; }
.demo-auto, .demo-server-filters label, .demo-route-picker summary, .demo-metrics {
  background: linear-gradient(155deg, #ffffff18, transparent 55%), var(--demo-surface);
  border:1px solid var(--demo-border);
  border-radius:13px;
  box-shadow: inset 0 1px 4px #ffffff15;
}
.demo-auto { padding:9px 10px; color:var(--demo-accent); font-size:.65rem; cursor:pointer; }
.demo-auto[aria-pressed="false"] { color:var(--demo-muted); opacity:.7; }
.demo-server-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:6px; }
.demo-server-filters label { padding:7px 8px; color:var(--demo-muted); font-size:.61rem; }
.demo-server-filters select { width:100%; background:transparent; color:white; border:0; font-size:.69rem; color-scheme:dark; }
.demo-server-filters option { background:#29192a; }
.demo-route-picker summary { display:flex; align-items:center; gap:8px; padding:11px; cursor:pointer; font-size:.67rem; list-style:none; }
.demo-route-picker summary::-webkit-details-marker { display:none; }
.demo-route-picker summary strong { flex:1; }
.demo-route-picker summary span { color:var(--demo-accent); }
.demo-route-picker .demo-route { margin-top:7px; }
.demo-metrics { display:grid; grid-template-columns:repeat(3,1fr); margin-top:9px; padding:8px 4px; text-align:center; }
.demo-metrics small,.demo-metrics strong { display:block; font-size:.61rem; }
.demo-metrics small { color:var(--demo-muted); margin-bottom:3px; }
.demo-tools button { background:transparent; border:0; color:var(--demo-accent); font:inherit; cursor:pointer; }
.demo-node-latency { white-space:nowrap; }
.demo-metrics strong { font-variant-numeric:tabular-nums; }
