/* ==========================================================================
   Hopora VPN Official Website v2 — Dark-First Tech Flagship Design System
   Zero external fonts/CDNs. Supports manual Dark / Light theme switching.
   ========================================================================== */

:root,
[data-theme='dark'] {
  --bg: #050811;
  --bg-alt: #080e1c;
  --surface: #0c1426;
  --surface-2: #111c33;
  --glass: rgba(12, 20, 38, 0.72);
  --glass-header: rgba(5, 8, 17, 0.76);
  --ink: #f1f5f9;
  --ink-2: #9fb0c9;
  --ink-3: #6b7d99;
  --line: rgba(148, 179, 255, 0.13);
  --line-strong: rgba(148, 179, 255, 0.24);
  --brand-cyan: #38bdf8;
  --brand-1: #14a5f6;
  --brand-2: #0a7be4;
  --brand-3: #2161d9;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(20, 165, 246, 0.34);
  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.14);
  --rose: #fb7185;
  --rose-soft: rgba(251, 113, 133, 0.14);
  --amber: #fbbf24;
  --spotlight: rgba(56, 189, 248, 0.11);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 48px -24px rgba(0, 0, 0, 0.85);
  --shadow-console: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 32px 80px -24px rgba(0, 0, 0, 0.9),
    0 0 80px -28px rgba(20, 165, 246, 0.35);
  --grid-dot: rgba(148, 179, 255, 0.16);
  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang SC', 'Microsoft YaHei',
    'Noto Sans CJK SC', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

[data-theme='light'] {
  --bg: #f8fafd;
  --bg-alt: #f0f4fa;
  --surface: #ffffff;
  --surface-2: #f4f7fc;
  --glass: rgba(255, 255, 255, 0.86);
  --glass-header: rgba(248, 250, 253, 0.82);
  --ink: #0b1220;
  --ink-2: #475569;
  --ink-3: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.18);
  --accent: #0a7be4;
  --accent-soft: rgba(10, 123, 228, 0.1);
  --accent-glow: rgba(10, 123, 228, 0.24);
  --emerald: #0f9f6e;
  --emerald-soft: rgba(15, 159, 110, 0.12);
  --rose: #e11d48;
  --rose-soft: rgba(225, 29, 72, 0.1);
  --spotlight: rgba(10, 123, 228, 0.07);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 36px -18px rgba(15, 23, 42, 0.12);
  --shadow-console: 0 1px 2px rgba(15, 23, 42, 0.06), 0 28px 70px -24px rgba(10, 123, 228, 0.22);
  --grid-dot: rgba(15, 23, 42, 0.11);
}

:root:lang(zh-Hant) {
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang TC', 'Microsoft JhengHei',
    'Noto Sans CJK TC', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input {
  font: inherit;
  color: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.ico {
  flex: none;
}
.ico-sm {
  width: 18px;
  height: 18px;
}
.ico-xs {
  width: 15px;
  height: 15px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow {
  max-width: 820px;
}
.wrap-doc {
  max-width: 1040px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.skip:focus {
  top: 14px;
}

/* ---------- Scroll Reveal ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Mouse Spotlight Cards ---------- */
[data-spotlight] {
  position: relative;
  overflow: hidden;
}
[data-spotlight]::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spotlight), transparent 65%);
  transition: opacity 0.3s ease;
}
[data-spotlight]:hover::before {
  opacity: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 28px -8px rgba(10, 123, 228, 0.72);
}
.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.32) inset, 0 14px 36px -8px rgba(20, 165, 246, 0.85);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.btn-disabled {
  flex-direction: column;
  gap: 1px;
  padding: 7px 20px;
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink-3);
  cursor: default;
}
.btn-disabled:hover {
  transform: none;
}
.btn-disabled small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.actions-center {
  justify-content: center;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--glass-header);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.45);
}
.scroll-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-2), var(--emerald));
  transition: width 0.08s linear;
  pointer-events: none;
}
.header-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}
.nav a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav a:hover,
.nav a[aria-current] {
  color: var(--ink);
  background: var(--accent-soft);
  text-decoration: none;
}
.nav a[aria-current] {
  color: var(--accent);
}
.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme toggle icon swap */
[data-theme='dark'] .theme-ico-moon {
  display: none;
}
[data-theme='light'] .theme-ico-sun {
  display: none;
}

/* Language menu */
.lang {
  position: relative;
}
.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  z-index: 90;
}
.lang li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
}
.lang li a:hover {
  background: var(--accent-soft);
  color: var(--ink);
  text-decoration: none;
}
.lang li a[aria-current] {
  color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
}
.nav-toggle .menu-close-ico {
  display: none;
}
.nav-toggle[aria-expanded='true'] .menu-open-ico {
  display: none;
}
.nav-toggle[aria-expanded='true'] .menu-close-ico {
  display: inline-flex;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 66px 0 0;
  z-index: 75;
}
.mobile-drawer[hidden] {
  display: none;
}
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.65);
  backdrop-filter: blur(8px);
}
.mobile-drawer-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 24px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
}
.mobile-nav a:hover,
.mobile-nav a[aria-current] {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.mobile-drawer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.mobile-drawer-langs a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
}
.mobile-drawer-langs a.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* Language suggestion banner */
.lang-banner {
  position: relative;
  z-index: 70;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13.5px;
}
.lang-banner-in {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 9px 24px;
  color: var(--ink-2);
}
.lang-banner-go {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.lang-banner-close {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  padding: 2px 6px;
}
.lang-banner-close:hover {
  color: var(--ink);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 68px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 10%, transparent 80%);
}
.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.42;
}
[data-theme='light'] .hero-orb {
  opacity: 0.16;
}
.hero-orb-1 {
  width: 580px;
  height: 440px;
  top: -180px;
  left: 50%;
  transform: translateX(-60%);
  background: radial-gradient(circle, #14a5f6, transparent 70%);
}
.hero-orb-2 {
  width: 500px;
  height: 420px;
  top: 40px;
  right: -120px;
  background: radial-gradient(circle, #2563eb, transparent 72%);
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 48px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(12px);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.grad-text {
  background: linear-gradient(105deg, #38bdf8 0%, #14a5f6 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme='light'] .grad-text {
  background: linear-gradient(105deg, #0284c7 0%, #0a7be4 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lede {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-actions {
  margin-bottom: 18px;
}
.hero-trial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.hero-trial .ico {
  color: var(--emerald);
}

/* Trust strip */
.trust-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.trust-strip li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--glass);
  backdrop-filter: blur(12px);
}
.trust-strip strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.trust-strip span {
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- Hero Interactive Live Console ---------- */
.console-wrap {
  position: relative;
}
.console-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(16, 26, 48, 0.94), rgba(9, 14, 28, 0.96));
  color: #f1f5f9;
  padding: 18px;
  box-shadow: var(--shadow-console);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
[data-theme='light'] .console-card {
  background: linear-gradient(165deg, #0d162a, #091020);
  border-color: rgba(14, 165, 233, 0.32);
}
.console-card.is-connected {
  border-color: rgba(56, 189, 248, 0.34);
}
.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.console-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
}
.console-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 179, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  color: #a5b8d4;
}

/* Topology SVG Map */
.topo-stage {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(148, 179, 255, 0.14);
  background: radial-gradient(ellipse 85% 95% at 50% 100%, rgba(14, 165, 233, 0.14), rgba(5, 10, 22, 0.85));
  overflow: hidden;
  margin-bottom: 14px;
}
.topo-svg {
  width: 100%;
  height: auto;
  color: #93c5fd;
}
.topo-grid-arc {
  stroke: rgba(148, 179, 255, 0.11);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.topo-arc-bg {
  stroke: rgba(148, 179, 255, 0.2);
  stroke-width: 1.5;
  transition: stroke 0.3s ease;
}
.topo-arc-flow {
  stroke: transparent;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-dasharray: 18 110;
  transition: stroke 0.3s ease;
}
.topo-dot {
  fill: #64748b;
  transition: fill 0.3s ease, r 0.3s ease;
}
.topo-pulse {
  fill: transparent;
  stroke: transparent;
}
.topo-lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  fill: #7d91b0;
  transition: fill 0.3s ease;
}
.topo-origin-dot {
  fill: #38bdf8;
}
.topo-origin-ring {
  fill: rgba(56, 189, 248, 0.16);
  stroke: rgba(56, 189, 248, 0.45);
  stroke-width: 1;
}
.console-card.is-connected .topo-route.is-active .topo-arc-bg {
  stroke: rgba(56, 189, 248, 0.38);
}
.console-card.is-connected .topo-route.is-active .topo-arc-flow {
  stroke: #38bdf8;
  animation: arcFlow 2.1s linear infinite;
}
.console-card.is-connected .topo-route.is-active .topo-dot {
  fill: #34d399;
}
.console-card.is-connected .topo-route.is-active .topo-pulse {
  fill: rgba(52, 211, 153, 0.18);
  stroke: rgba(52, 211, 153, 0.55);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.2s ease-out infinite;
}
.console-card.is-connected .topo-route.is-active .topo-lbl {
  fill: #f1f5f9;
}
@keyframes arcFlow {
  from {
    stroke-dashoffset: 128;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes nodePulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Console Status & Power Core */
.console-status-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 179, 255, 0.13);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 12px;
}
.power-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: none;
}
.power-halo {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.22);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.console-card.is-connected .power-halo {
  opacity: 1;
  animation: haloPulse 2.4s ease-out infinite;
}
.console-card.is-connected .power-halo-2 {
  animation-delay: 1.2s;
}
@keyframes haloPulse {
  0% {
    transform: scale(0.88);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}
.power-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(145deg, #334155, #1e293b);
  color: #cbd5e1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition: transform 0.18s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.power-core:hover .power-disc {
  transform: scale(1.05);
}
.console-card.is-connected .power-disc {
  background: linear-gradient(145deg, #34d399, #059669);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 24px -4px rgba(52, 211, 153, 0.65);
}
.console-meta {
  min-width: 0;
  flex: 1;
}
.console-state-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.console-state-row strong {
  font-size: 15px;
  font-weight: 700;
}
.mono-pill {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.console-card:not(.is-connected) .mono-pill {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.2);
}
.console-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Console Mode & Route Controls */
.console-controls {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ctrl-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #7d91b0;
  letter-spacing: 0.03em;
}
.ctrl-pills {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 179, 255, 0.12);
}
.pill-btn {
  flex: 1;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 6px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.pill-btn:hover {
  color: #e2e8f0;
}
.pill-btn.is-active {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(10, 123, 228, 0.7);
}
.console-hint {
  font-size: 12px;
  color: #9fb0c9;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.16);
  margin-bottom: 12px;
}

/* Console Region Selector */
.console-nodes-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #7d91b0;
  margin-bottom: 8px;
  padding: 0 2px;
}
.console-nodes-active {
  color: #38bdf8;
  font-weight: 600;
}
.node-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.node-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 179, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.15s ease;
}
.node-row:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.07);
}
.node-row.is-selected {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.12);
}
.node-row img {
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  flex: none;
}
.node-row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.node-row-main strong {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
}
.node-row-main small {
  font-size: 11px;
  color: #8ea1bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sig {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.sig b {
  width: 3px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.32);
}
.sig b:nth-child(1) {
  height: 5px;
}
.sig b:nth-child(2) {
  height: 8px;
}
.sig b:nth-child(3) {
  height: 12px;
}
.sig-3 b {
  background: #34d399;
}
.sig-2 b:nth-child(-n + 2) {
  background: #38bdf8;
}

.console-cap {
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- Common Sections ---------- */
.section {
  padding: 88px 0;
}
.section-tight {
  padding-top: 40px;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-h {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-h h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-h p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: 16.5px;
}
.section-more {
  text-align: center;
  margin-top: 32px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow:hover {
  text-decoration: none;
}
.link-arrow:hover .ico {
  transform: translateX(4px);
}
.link-arrow .ico {
  transition: transform 0.18s ease;
}

/* ---------- Bento Feature Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.bento-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.bento-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.bento-wide {
  grid-column: span 7;
}
.bento-single {
  grid-column: span 5;
}
.bento-half {
  grid-column: span 6;
}
.bento-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.bento-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--accent);
}
.bento-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--surface-2);
}
.bento-viz {
  margin-left: auto;
}
.viz-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 30px;
}
.viz-bars span {
  width: 6px;
  height: var(--h);
  border-radius: 99px;
  background: var(--line-strong);
}
.viz-bars span.is-best {
  background: linear-gradient(180deg, var(--brand-cyan), var(--emerald));
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}
.viz-os {
  display: flex;
  gap: 6px;
}
.viz-os span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
}
.bento-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.bento-card p {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 20px;
  flex: 1;
}
.bento-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bento-chips li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.bento-chips .ico {
  color: var(--emerald);
}

/* ---------- Interactive Routing Visualizer ---------- */
.route-box {
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.route-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.route-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.route-tab span {
  font-weight: 700;
  font-size: 15px;
}
.route-tab em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.route-tab:hover {
  border-color: var(--line-strong);
}
.route-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.route-box[data-mode='killswitch'] .route-tab.is-active {
  border-color: var(--rose);
  background: var(--rose-soft);
  box-shadow: 0 0 0 1px var(--rose) inset;
}
.route-box[data-mode='killswitch'] .route-tab.is-active em {
  background: rgba(251, 113, 133, 0.2);
  color: var(--rose);
}

.route-diagram {
  display: grid;
  grid-template-columns: 195px 72px 210px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 24px 18px;
  border-radius: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.rd-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.rd-device,
.rd-engine {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.rd-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.rd-card strong {
  font-size: 14.5px;
  font-weight: 700;
}
.rd-card small {
  font-size: 12px;
  color: var(--ink-3);
}
.rd-engine {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 0 36px -14px var(--accent-glow);
}
.rd-shield-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.route-box[data-mode='killswitch'] .rd-engine {
  border-color: rgba(251, 113, 133, 0.5);
  box-shadow: 0 0 36px -14px rgba(251, 113, 133, 0.45);
}
.route-box[data-mode='killswitch'] .rd-shield-tag {
  background: var(--rose-soft);
  color: var(--rose);
}

.rd-pipe {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}
.rd-line {
  width: 100%;
  height: 2px;
  background: var(--line-strong);
  position: relative;
}
.rd-packet {
  position: absolute;
  left: 0;
  width: 24px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: packetFlow 1.6s linear infinite;
}
@keyframes packetFlow {
  0% {
    left: 0%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 24px);
    opacity: 0;
  }
}
.rd-block-x {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rd-branches {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rd-branch {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
}
.rd-target-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.rd-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Smart mode: local is green direct, global is cyan tunnel */
.route-box[data-mode='smart'] .rd-branch-local .rd-line {
  background: rgba(52, 211, 153, 0.4);
}
.route-box[data-mode='smart'] .rd-branch-local .rd-packet {
  background: linear-gradient(90deg, transparent, var(--emerald));
}
.route-box[data-mode='smart'] .rd-branch-local .rd-pill {
  background: var(--emerald-soft);
  color: var(--emerald);
}
.route-box[data-mode='smart'] .rd-branch-global .rd-line,
.route-box[data-mode='global'] .rd-branch .rd-line {
  background: rgba(56, 189, 248, 0.42);
}

/* Kill-switch mode: both branches blocked */
.route-box[data-mode='killswitch'] .rd-branch .rd-line {
  background: rgba(251, 113, 133, 0.42);
  background-image: repeating-linear-gradient(90deg, var(--rose) 0 6px, transparent 6px 12px);
}
.route-box[data-mode='killswitch'] .rd-branch .rd-packet {
  display: none;
}
.route-box[data-mode='killswitch'] .rd-branch .rd-block-x {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.route-box[data-mode='killswitch'] .rd-branch .rd-pill {
  background: var(--rose-soft);
  color: var(--rose);
}

.route-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.route-desc {
  font-size: 15.5px;
  color: var(--ink);
}
.route-mac-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.route-mac-note .ico {
  color: var(--accent);
}

/* ---------- Platform Cards ---------- */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pf-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-3px);
}
.pf-card.is-detected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow-card);
}
.pf-detected-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.pf-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent);
  margin-bottom: 18px;
}
.pf-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.pf-req {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 18px;
  flex: 1;
}
.pf-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Pricing Section ---------- */
.seg-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}
.seg-bar {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.seg-thumb {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 6px 18px -6px rgba(10, 123, 228, 0.8);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}
.seg-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}
.seg-btn:hover {
  color: var(--ink);
}
.seg-btn.is-active {
  color: #fff;
}
.seg-bonus {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
}
.seg-btn.is-active .seg-bonus {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}
.plan-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.plan-card.is-rec {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(180deg, rgba(20, 165, 246, 0.09) 0%, var(--surface) 44%);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.22) inset, 0 28px 70px -28px rgba(10, 123, 228, 0.45);
}
.plan-head {
  margin-bottom: 22px;
}
.plan-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.plan-head h3 {
  font-size: 24px;
  font-weight: 800;
}
.plan-head p {
  color: var(--ink-2);
  font-size: 14.5px;
}
.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
}

.plan-price {
  min-height: 98px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.pp {
  display: none;
  animation: fadePrice 0.25s ease;
}
.pp.is-active {
  display: block;
}
@keyframes fadePrice {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.amount-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}
.amount {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.amount .cur {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-2);
  margin-right: 2px;
}
.amount .num {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.amount .per {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-left: 5px;
}
.orig-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.orig-wrap s {
  font-size: 15px;
  color: var(--ink-3);
}
.save-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
}
.amount-notes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.note-muted {
  color: var(--ink-3);
}
.bonus-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.plan-perks {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 26px;
  flex: 1;
}
.plan-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}
.plan-perks .ico {
  color: var(--emerald);
}
.plan-perks span {
  color: var(--ink-2);
}
.plan-perks strong {
  margin-left: auto;
  font-weight: 600;
  text-align: right;
}

.fineprint {
  max-width: 820px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

/* Rewards banner */
.rewards-card {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 920px;
  margin: 28px auto 0;
  padding: 22px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
}
.rewards-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  flex: none;
}
.rewards-body {
  flex: 1;
}
.rewards-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}
.rewards-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.rewards-body p {
  font-size: 14px;
  color: var(--ink-2);
}

/* Compare table */
.compare-wrap {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare-table th,
.compare-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}
.compare-table thead th {
  font-size: 15px;
  font-weight: 800;
  background: var(--surface-2);
}
.compare-table tbody th {
  font-weight: 500;
  color: var(--ink-2);
}
.compare-table .is-svip {
  background: var(--accent-soft);
  font-weight: 600;
}
.cmp-check {
  display: inline-flex;
  color: var(--emerald);
}

/* ---------- FAQ Accordion & Live Search ---------- */
.faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 620px;
  margin: 26px auto 16px;
}
.faq-search-ico {
  position: absolute;
  left: 18px;
  color: var(--ink-3);
  pointer-events: none;
}
.faq-search-input {
  width: 100%;
  height: 52px;
  padding: 0 54px 0 48px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15.5px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.faq-search-input::placeholder {
  color: var(--ink-3);
}
.faq-kbd {
  position: absolute;
  right: 16px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  pointer-events: none;
}
.faq-clear {
  position: absolute;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
}
.faq-clear[hidden] {
  display: none;
}
.faq-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.cat-pill span {
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
}
.cat-pill.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.cat-pill.is-active span {
  background: rgba(56, 189, 248, 0.22);
  color: var(--accent);
}
.faq-match-meta {
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 600;
}

.qa-section {
  margin-bottom: 34px;
}
.qa-group-h {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink);
}
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qa-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.qa-item.is-open {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.qa-item[hidden],
.qa-section[hidden] {
  display: none;
}
.qa-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.qa-chev {
  display: inline-flex;
  color: var(--ink-3);
  transition: transform 0.22s ease, color 0.2s ease;
}
.qa-item.is-open .qa-chev {
  transform: rotate(180deg);
  color: var(--accent);
}
.qa-panel[hidden] {
  display: none;
}
.qa-panel-in {
  padding: 0 22px 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.qa-a {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.72;
  margin-bottom: 12px;
}
.qa-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.qa-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}
mark.hl {
  background: rgba(56, 189, 248, 0.26);
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}

.faq-empty {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.faq-empty[hidden] {
  display: none;
}
.faq-empty-ico {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
  margin-bottom: 12px;
}
.faq-empty h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.faq-empty p {
  color: var(--ink-2);
  font-size: 14.5px;
}

.contact-card {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.contact-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.contact-card p {
  color: var(--ink-2);
  margin-bottom: 18px;
}

/* ---------- Download Center ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 68px 0 42px;
  border-bottom: 1px solid var(--line);
}
.page-head-left {
  text-align: left;
}
.page-head h1 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.page-lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto;
}
.page-head-left .page-lede {
  margin: 0;
}
.dl-detected-banner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.dl-detected-banner[hidden] {
  display: none;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.dl-card.is-detected {
  order: -1;
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 42%);
  box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow-card);
}
.dl-rec-pill {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.dl-rec-pill[hidden] {
  display: none;
}
.dl-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.dl-head .pf-ico {
  margin-bottom: 0;
}
.dl-head h2 {
  font-size: 21px;
  font-weight: 700;
}
.dl-head p {
  font-size: 13.5px;
  color: var(--ink-2);
}
.dl-actions {
  margin-bottom: 20px;
}
.dl-notes {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.dl-notes li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.dl-notes .ico {
  color: var(--emerald);
  margin-top: 3px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 14px;
}
.step-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- Legal Document Layout ---------- */
.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 90px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.doc-toc h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.doc-toc ol {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-toc a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background-color 0.16s ease, color 0.16s ease;
}
.doc-toc a span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.doc-toc a:hover,
.doc-toc a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.doc-toc a.is-active span {
  color: var(--accent);
}

.prose {
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--ink-2);
}
.prose p {
  margin-bottom: 14px;
}
.prose ul {
  margin: 0 0 16px 20px;
  list-style: disc;
}
.prose li {
  margin-bottom: 7px;
}
.prose-sec {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.prose-sec h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 14px;
}
.prose-sec h2 span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

/* ---------- CTA Band ---------- */
.cta-section {
  padding-top: 48px;
}
.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 32px;
  border-radius: 30px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: radial-gradient(ellipse 90% 90% at 50% 0%, rgba(20, 165, 246, 0.24), var(--surface) 70%);
  box-shadow: var(--shadow-card);
}
.cta-card h2 {
  font-size: clamp(1.8rem, 3.3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-sub {
  color: var(--ink-2);
  font-size: 16.5px;
  max-width: 540px;
  margin: 0 auto 28px;
}

/* ---------- 404 ---------- */
.notfound {
  padding: 110px 0 120px;
  border-bottom: 0;
}
.nf-code {
  font-family: var(--mono);
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.notfound .actions {
  margin-top: 28px;
}

/* ---------- Footer & Back to Top ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 58px 0 36px;
}
.footer-in {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  margin-top: 14px;
  max-width: 310px;
  font-size: 14px;
  color: var(--ink-2);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14.5px;
  color: var(--ink-2);
}
.footer-col a:hover {
  color: var(--ink);
  text-decoration: none;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 65;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  color: var(--ink);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.back-top[hidden] {
  display: none;
}
.back-top:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-in {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .console-wrap {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-wide,
  .bento-single,
  .bento-half {
    grid-column: span 6;
  }
  .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route-diagram {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rd-pipe-in {
    display: none;
  }
  .rd-branch {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .nav,
  .header-cta,
  .lang {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .bento-wide,
  .bento-single,
  .bento-half {
    grid-column: span 12;
  }
  .plans-grid,
  .dl-grid,
  .steps-grid,
  .route-tabs,
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-toc {
    position: static;
  }
  .rewards-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 18px;
  }
  .hero {
    padding: 36px 0 48px;
  }
  .section {
    padding: 64px 0;
  }
  .trust-strip,
  .pf-grid,
  .node-grid,
  .console-controls {
    grid-template-columns: 1fr;
  }
  .seg-bar {
    border-radius: 18px;
    justify-content: center;
  }
  .seg-thumb {
    display: none;
  }
  .seg-btn.is-active {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  }
  .plan-card {
    padding: 24px;
  }
  .footer-in {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
