:root,
[data-theme="dark"] {
  --bg: #050811;
  --bg-elev: #0b1222;
  --surface: rgba(13, 21, 38, 0.56);
  --surface-glass: linear-gradient(155deg, rgba(25, 38, 68, 0.62), rgba(11, 18, 34, 0.44));
  --surface-solid: #0f172a;
  --surface-2: rgba(20, 30, 52, 0.72);
  --nav-bg: rgba(5, 8, 17, 0.72);
  --border: rgba(148, 163, 184, 0.16);
  --border-hi: rgba(56, 189, 248, 0.46);
  --glass-edge: rgba(255, 255, 255, 0.11);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --mesh-1: rgba(37, 99, 235, 0.28);
  --mesh-2: rgba(6, 182, 212, 0.20);
  --mesh-3: rgba(16, 185, 129, 0.14);
  --mesh-4: rgba(139, 92, 246, 0.14);
  --grid-line: rgba(148, 163, 184, 0.04);
  --code-bg: rgba(2, 6, 14, 0.72);
  --shadow: 0 24px 65px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.36);
  --radius: 16px;
  --radius-sm: 11px;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, "Cascadia Code", monospace;
}

[data-theme="light"] {
  --bg: #f1f5fb;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-glass: linear-gradient(155deg, rgba(255, 255, 255, 0.86), rgba(241, 246, 255, 0.62));
  --surface-solid: #ffffff;
  --surface-2: rgba(235, 242, 252, 0.78);
  --nav-bg: rgba(248, 250, 252, 0.76);
  --border: rgba(15, 23, 42, 0.10);
  --border-hi: rgba(37, 99, 235, 0.38);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --blue: #2563eb;
  --cyan: #0891b2;
  --emerald: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --mesh-1: rgba(37, 99, 235, 0.14);
  --mesh-2: rgba(6, 182, 212, 0.12);
  --mesh-3: rgba(16, 185, 129, 0.09);
  --mesh-4: rgba(139, 92, 246, 0.08);
  --grid-line: rgba(15, 23, 42, 0.035);
  --code-bg: rgba(238, 242, 248, 0.85);
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 10px 26px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100%;
  transition: background 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

/* Aurora & Subtle Blueprint Grid */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 75% 50% at 8% 0%, var(--mesh-1), transparent 60%),
    radial-gradient(ellipse 65% 45% at 92% 6%, var(--mesh-2), transparent 58%),
    radial-gradient(ellipse 55% 44% at 78% 52%, var(--mesh-4), transparent 60%),
    radial-gradient(ellipse 64% 48% at 46% 96%, var(--mesh-3), transparent 62%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  filter: drop-shadow(0 0 14px rgba(0, 140, 255, 0.45));
}
.brand-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-text span {
  display: block;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  transition: background 0.16s, color 0.16s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(59, 130, 246, 0.10);
}
.nav-links a.active {
  color: var(--blue);
  background: rgba(59, 130, 246, 0.13);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

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

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 99px;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--glass-edge);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.theme-btn svg, .btn svg, .stage-tab svg, .hero-meta-bar svg, .chrome-zoom svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.chrome-zoom {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hero-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta-bar svg { color: var(--emerald); }
.theme-btn:hover { border-color: var(--border-hi); color: var(--text); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.lang-switch a.active {
  background: var(--blue);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: 9px; }
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.34);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.45);
}
.btn-emerald {
  background: linear-gradient(135deg, #059669, #0d9488);
  color: #fff;
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.28);
}
.btn-emerald:hover { transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface-solid);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--border-hi); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 11px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--glass-edge);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--border-hi);
  color: var(--blue);
}
.nav-toggle svg {
  width: 19px;
  height: 19px;
  display: block;
}

.nav-mobile-extras {
  display: none;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(2, 6, 15, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.hero-grid > *,
.stage-panel > *,
.dl-grid > *,
.compare-box > *,
.window-frame {
  min-width: 0;
}

/* Hero Section */
.hero { padding: 62px 0 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 38px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.30);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.grad {
  background: linear-gradient(92deg, #3b82f6, #06b6d4 52%, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  color: var(--text-soft);
  font-size: 16.5px;
  margin: 0 0 24px;
  max-width: 575px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 18px;
}
.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

/* App Window Showcase Frame */
.window-frame {
  border-radius: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.window-frame:hover { border-color: var(--border-hi); }
.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.window-chrome > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chrome-zoom { flex-shrink: 0; }
.chrome-dots {
  display: flex;
  gap: 6px;
}
.chrome-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.chrome-dots i:nth-child(1) { background: #ef4444; }
.chrome-dots i:nth-child(2) { background: #f59e0b; }
.chrome-dots i:nth-child(3) { background: #10b981; }
.window-frame img {
  width: 100%;
  cursor: zoom-in;
}

/* Value / Trust Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 26px 0 42px;
}
.trust-item {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.trust-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
}
.trust-item strong {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.trust-item span {
  font-size: 12.8px;
  color: var(--muted);
  display: block;
}

/* Sections */
.section { padding: 54px 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 26px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 33px);
  letter-spacing: -0.025em;
  font-weight: 800;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 660px;
}

/* Comparison Banner */
.compare-box {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.compare-col h3 { margin: 0 0 10px; font-size: 16px; }
.compare-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag-chip {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-weight: 600;
}
.tag-chip.good {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.30);
  color: var(--emerald);
}
.compare-vs {
  font-weight: 800;
  font-size: 18px;
  color: var(--blue);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interactive Feature Stage — Responsive Segmented Dock */
.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-edge);
}
.stage-tab {
  flex: 1 1 145px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 12.8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.stage-tab:hover {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.22);
  color: var(--text);
}
.stage-tab.active {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.36);
}

.stage-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}
.stage-info .stage-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.stage-info h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.02em; }
.stage-info p { margin: 0 0 16px; color: var(--text-soft); font-size: 14.8px; }
.stage-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.stage-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.8px;
  color: var(--text-soft);
}
.stage-bullets li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
}

/* Complete Module Explorer */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-pill {
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12.8px;
  font-weight: 600;
  cursor: pointer;
}
.filter-pill.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--blue);
  color: var(--blue);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mod-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-edge);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.mod-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.mod-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  box-shadow: 0 18px 40px rgba(2, 132, 199, 0.16), inset 0 1px 0 var(--glass-edge);
}
.mod-card:hover::before { opacity: 1; }
.mod-card.hidden { display: none; }
.mod-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mod-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease;
}
.mod-card:hover .mod-icon { transform: scale(1.06); }
.mod-icon svg { width: 19px; height: 19px; stroke-width: 2; }
.mod-icon.ico-cyan { background: rgba(6, 182, 212, 0.14); border-color: rgba(6, 182, 212, 0.30); color: #22d3ee; }
.mod-icon.ico-emerald { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.30); color: #34d399; }
.mod-icon.ico-violet { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.32); color: #a78bfa; }
.mod-icon.ico-amber { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.30); color: #fbbf24; }
.mod-icon.ico-rose { background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.30); color: #fb7185; }
.mod-cat {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.10);
  border: 1px solid rgba(6, 182, 212, 0.22);
  padding: 3px 9px;
  border-radius: 99px;
}
.mod-card h4 { margin: 0 0 6px; font-size: 16px; }
.mod-card p { margin: 0; font-size: 13.5px; color: var(--text-soft); }

/* Screenshot Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.shot-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.shot-thumb {
  border-bottom: 1px solid var(--border);
  background: #02050b;
  cursor: zoom-in;
  overflow: hidden;
}
.shot-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.28s;
}
.shot-card:hover .shot-thumb img { transform: scale(1.03); }
.shot-body { padding: 15px 17px; }
.shot-body .tag { font-size: 11px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.05em; }
.shot-body h4 { margin: 4px 0 5px; font-size: 15px; }
.shot-body p { margin: 0; font-size: 13px; color: var(--muted); }

/* Download Cards */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.dl-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-edge);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.dl-card:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.dl-card.featured {
  border-color: rgba(59, 130, 246, 0.45);
  background: linear-gradient(155deg, rgba(37, 99, 235, 0.13), var(--surface) 65%);
}
.dl-card .pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.30);
  margin-bottom: 10px;
}
.dl-card h3 { margin: 0 0 6px; font-size: 20px; }
.dl-card p { margin: 0 0 16px; font-size: 13.8px; color: var(--text-soft); }
.sha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
}
.sha-box span.hash-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--blue);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--blue); color: #fff; }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 var(--glass-edge);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: var(--border-hi); }
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 16px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-soft);
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* Archive Table & Changelog & Legal */
.table-wrap {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-edge);
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(59, 130, 246, 0.04); }

.ver-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.14);
  color: var(--blue);
}
.ver-badge.latest { background: rgba(16, 185, 129, 0.16); color: var(--emerald); }

.timeline { display: flex; flex-direction: column; gap: 18px; }
.release-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-edge);
}
.release-card.is-latest { border-left-color: var(--emerald); }
.release-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.release-card h3 { margin: 0; font-size: 19px; }
.release-date { font-size: 12.5px; color: var(--muted); }
.release-card ul { margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 14px; }
.release-card li { margin-bottom: 6px; }

.page-banner {
  padding: 46px 0 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), transparent);
}
.page-banner h1 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.page-banner p { margin: 0; color: var(--text-soft); max-width: 740px; }

.prose-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  max-width: 920px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-edge);
}
.prose-card h1 { margin-top: 0; font-size: 28px; }
.prose-card h2 { margin: 26px 0 10px; font-size: 18px; color: var(--blue); border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.prose-card p, .prose-card li { color: var(--text-soft); font-size: 14.5px; }
.callout {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 13.8px;
  color: var(--text-soft);
}
.callout.warn {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.30);
}

/* Lightbox & Toast */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(2, 6, 15, 0.90);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 1120px; width: 100%; text-align: center; }
.lightbox-inner img { max-height: 82vh; margin: 0 auto; border-radius: 12px; border: 1px solid var(--border-hi); }
.lightbox-cap { margin-top: 12px; color: #e2e8f0; font-size: 14px; }
.lightbox-close {
  position: fixed; top: 18px; right: 22px;
  background: #0f172a; border: 1px solid rgba(255,255,255,0.2); color: #fff;
  border-radius: 99px; width: 40px; height: 40px; font-size: 20px; cursor: pointer;
}

.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 140;
  background: var(--surface-solid); border: 1px solid var(--emerald); color: var(--text);
  padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translateY(0); }

footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 36px 0;
  font-size: 13px;
  color: var(--muted);
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; }
.footer-links a:hover { color: var(--blue); }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 82;
    background: rgba(8, 13, 26, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
    flex-direction: column;
    padding: 14px 18px 18px;
    gap: 5px;
    align-items: stretch;
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
  }
  [data-theme="light"] .nav-links {
    background: rgba(248, 250, 252, 0.96);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
  }
  .nav-links.open { display: flex; }
  .nav-links > a {
    padding: 11px 14px;
    font-size: 14.5px;
    border-radius: 11px;
  }
  .stage-tab { flex: 1 1 135px; }
}
@media (max-width: 1020px) {
  .hero-grid, .dl-grid, .stage-panel, .compare-box { grid-template-columns: 1fr; }
  .compare-vs { margin: 0 auto; }
  .modules-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-right > .btn { display: none; }
  .nav-right { gap: 6px; flex-shrink: 0; }
  .nav-right .theme-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 11px;
  }
  .nav-right .theme-btn span { display: none; }
  .nav-right .lang-switch {
    height: 36px;
    padding: 3px;
    border-radius: 11px;
  }
  .nav-right .lang-switch a {
    padding: 5px 9px;
    font-size: 11.5px;
    border-radius: 8px;
  }
  .nav-toggle {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .nav-mobile-extras {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .nav-mobile-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
  }
  .nav-mobile-theme {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border-radius: 11px;
    justify-content: center;
    font-size: 12.5px;
  }
  .nav-mobile-lang {
    height: 40px;
    padding: 3px;
    border-radius: 11px;
  }
  .nav-mobile-lang a {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 8px;
  }
  .nav-mobile-cta {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
  }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .nav-inner { min-height: 62px; gap: 8px; }
  .nav-links { max-height: calc(100dvh - 62px); padding: 12px 14px 16px; }
  .brand { gap: 9px; min-width: 0; flex-shrink: 1; }
  .brand img { width: 32px; height: 32px; border-radius: 9px; }
  .brand-text { min-width: 0; }
  .brand-text strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
  .brand-text span { font-size: 9.5px; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; }
  .hero { padding: 28px 0 22px; }
  .hero h1 { font-size: clamp(26px, 7.6vw, 34px); }
  .hero p.lead { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 36px 0; }
  .stage-tabs { gap: 7px; }
  .stage-tab { flex: 1 1 calc(50% - 7px); font-size: 12px; padding: 9px 8px; }
  .stage-panel { padding: 16px; gap: 18px; }
  .compare-box { padding: 18px; }
  .dl-card { padding: 18px; }
  .modules-grid, .gallery-grid, .trust-strip { grid-template-columns: 1fr; }
  .prose-card { padding: 20px 16px; }
  .sha-box { max-width: 100%; }
  .sha-box code { overflow-wrap: anywhere; word-break: break-all; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 12px; }
  .toast { left: 14px; right: 14px; bottom: 14px; text-align: center; }
}
@media (max-width: 400px) {
  .brand img { width: 28px; height: 28px; }
  .brand-text strong { font-size: 13.5px; }
  .brand-text span { display: none; }
  .nav-right .lang-switch { height: 34px; }
  .nav-right .lang-switch a { padding: 4px 7px; font-size: 11px; }
  .nav-right .theme-btn,
  .nav-toggle { width: 34px; height: 34px; }
}

/* =========================================================
   HDOS WebShield Spotlight, How-To Workflows, Hotkeys & FAQ
   ========================================================= */
.webshield-spotlight {
  position: relative;
  overflow: hidden;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(6, 182, 212, 0.34);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
}
.webshield-spotlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.75), rgba(6, 182, 212, 0.85), transparent);
  pointer-events: none;
}
.ws-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}
.ws-head h3 {
  margin: 6px 0 6px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
}
.ws-head p {
  margin: 0;
  color: var(--text-soft);
  max-width: 680px;
  font-size: 14.5px;
}
.browser-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.browser-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.browser-chip i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.75);
}
.ws-cap-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.ws-cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ws-cap-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
}
.ws-cap-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
}
.ws-cap-card h4 {
  margin: 0;
  font-size: 14.5px;
}
.ws-cap-card p {
  margin: 0;
  font-size: 12.8px;
  color: var(--text-soft);
  line-height: 1.5;
}
.ws-cta-bar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ws-cta-note {
  font-size: 13px;
  color: var(--muted);
}

/* Guide / FAQ Search Toolbar & Pills */
.faq-toolbar {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-edge);
}
.faq-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.faq-search-wrap {
  position: relative;
  flex: 1 1 300px;
}
.faq-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
#faq-search {
  width: 100%;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 14px 11px 40px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
#faq-search::placeholder {
  color: var(--muted);
}
#faq-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.faq-count-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-soft);
  padding: 7px 12px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.faq-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-cat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 7px 14px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.faq-cat-pill:hover {
  border-color: var(--border-hi);
  color: var(--text);
}
.faq-cat-pill.active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.faq-item.hidden,
.howto-card.hidden {
  display: none;
}
.faq-empty {
  display: none;
  text-align: center;
  padding: 28px 20px;
  background: var(--surface-glass);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}
.faq-empty.show {
  display: block;
}

/* How-To Workflow Cards */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.howto-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-edge);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.howto-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
}
.howto-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.howto-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.30);
  color: var(--blue);
}
.howto-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}
.howto-steps {
  margin: 0;
  padding-left: 19px;
  color: var(--text-soft);
  font-size: 13.6px;
}
.howto-steps li {
  margin-bottom: 6px;
}
.howto-kbd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* Keyboard Badges & Shortcut Reference Table */
kbd.key-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
[data-theme="light"] kbd.key-badge {
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.14);
}
.shortcut-wrap {
  margin-top: 12px;
}
.shortcut-table th:first-child,
.shortcut-table td:first-child {
  width: 220px;
}
.scope-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--emerald);
  white-space: nowrap;
}
.scope-badge.inapp {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.30);
  color: var(--blue);
}
.faq-more-bar {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .ws-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .howto-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .webshield-spotlight { padding: 18px 16px; }
  .ws-cap-grid { grid-template-columns: 1fr; }
  .faq-toolbar { padding: 14px; }
  .howto-card { padding: 18px 16px; }
}
