:root {
  --bg-deep: #060b14;
  --bg-surface: #0b1324;
  --glass-bg: rgba(15, 25, 46, 0.58);
  --glass-bg-hover: rgba(20, 34, 62, 0.72);
  --glass-border: rgba(186, 230, 253, 0.14);
  --glass-border-strong: rgba(56, 189, 248, 0.42);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --ice-blue: #38bdf8;
  --ice-light: #e0f2fe;
  --aurora-indigo: #818cf8;
  --mint-ok: #34d399;
  --amber-mid: #fbbf24;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --shadow-glow: 0 20px 60px -15px rgba(56, 189, 248, 0.2);
  --transition: 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Snowfall Canvas & Ambient Background */
#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.glow-1 {
  width: 680px;
  height: 680px;
  top: -220px;
  left: -120px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45), transparent 70%);
}

.glow-2 {
  width: 600px;
  height: 600px;
  top: 25%;
  right: -180px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.35), transparent 70%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(186, 230, 253, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 230, 253, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 35%, transparent 80%);
}

/* Layout */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(56, 189, 248, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -6px rgba(56, 189, 248, 0.6);
  filter: brightness(1.06);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-strong);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(56, 189, 248, 0.1);
  color: var(--ice-light);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-mini:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--ice-blue);
}

.btn-mini.spinning svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(186, 230, 253, 0.08);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-domain {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--ice-blue);
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--ice-light);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 9px;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  background: rgba(8, 15, 29, 0.96);
  border-bottom: 1px solid var(--glass-border);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-link {
  padding: 10px 4px;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

/* Hero Section */
.hero {
  padding: 76px 0 48px;
}

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

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--ice-light);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice-blue);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(120deg, #f8fafc 10%, #7dd3fc 52%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-unlocks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.unlock-label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.unlock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unlock-pill {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* Telemetry Card */
.telemetry-card {
  padding: 22px;
  box-shadow: var(--shadow-glow);
  border-color: rgba(125, 211, 252, 0.22);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.telemetry-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background: var(--mint-ok);
  box-shadow: 0 0 10px var(--mint-ok);
}

.telemetry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 11, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition);
}

.telemetry-row:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.node-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.node-flag {
  font-size: 1.4rem;
  line-height: 1;
}

.node-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.node-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.node-metrics {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.ping-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.ping-badge.good {
  color: var(--mint-ok);
  background: rgba(52, 211, 153, 0.12);
}

.ping-badge.mid {
  color: var(--amber-mid);
  background: rgba(251, 191, 36, 0.12);
}

.load-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.telemetry-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.tf-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tf-val {
  font-size: 0.78rem;
  color: var(--ice-light);
}

/* Metrics Strip */
.metrics-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-box {
  padding: 20px;
  text-align: center;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ice-light);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ice-blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--glass-border-strong);
}

.filter-tab.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--ice-blue);
  color: var(--ice-light);
}

/* Nodes Grid */
.nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.node-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.node-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-strong);
  background: var(--glass-bg-hover);
}

.node-card.hidden {
  display: none;
}

.nc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nc-flag {
  font-size: 1.7rem;
  line-height: 1;
}

.nc-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.nc-badge.iepl {
  background: rgba(56, 189, 248, 0.16);
  color: var(--ice-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.node-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
}

.nc-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.nc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
}

.nc-tags span {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ice-light);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-strong);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Pricing */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  width: fit-content;
  margin: 0 auto 40px;
  background: rgba(15, 25, 46, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
}

.billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.billing-btn.active {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
}

.discount-tag {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
}

.discount-tag.hot {
  background: rgba(52, 211, 153, 0.24);
  color: #a7f3d0;
}

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

.pricing-card {
  position: relative;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(16, 30, 58, 0.78);
  box-shadow: 0 24px 60px -18px rgba(56, 189, 248, 0.28);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.plan-price {
  margin: 24px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ice-blue);
}

.amount {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
}

.period {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.plan-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint-ok);
  font-weight: 700;
}

.plan-features strong {
  color: var(--text-primary);
}

/* Clients */
.clients-wrapper {
  padding: 28px;
}

.os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.os-tab {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.os-tab.active,
.os-tab:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--ice-blue);
  color: var(--ice-light);
}

.os-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.os-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.14);
  color: var(--ice-blue);
  margin-bottom: 10px;
}

.os-info h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.os-info p {
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 18px;
}

.os-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.step-item span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  color: var(--ice-light);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* FAQ */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-chevron {
  font-size: 1.3rem;
  color: var(--ice-blue);
  transition: transform var(--transition);
}

.faq-item.open .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 260px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* Bottom CTA */
.cta-banner {
  padding: 42px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(125deg, rgba(16, 33, 64, 0.85), rgba(30, 27, 75, 0.72));
  border-color: rgba(125, 211, 252, 0.3);
}

.cta-content h2 {
  font-size: 1.65rem;
  margin-bottom: 6px;
}

.cta-content p {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(186, 230, 253, 0.08);
  padding: 56px 0 30px;
  background: rgba(4, 8, 15, 0.7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 320px;
  margin: 12px 0 16px;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--mint-ok);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.1);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--ice-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 7, 14, 0.76);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  background: rgba(12, 20, 38, 0.96);
  border-color: rgba(125, 211, 252, 0.28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

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

.modal-header {
  margin-bottom: 22px;
}

.modal-badge {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--ice-blue);
  margin-bottom: 6px;
}

.modal-header h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.selected-plan-pill {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.88rem;
  color: var(--ice-light);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(6, 11, 20, 0.75);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus {
  border-color: var(--ice-blue);
}

.modal-feedback {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--mint-ok);
  min-height: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .nodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .nodes-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .os-panel,
  .cta-banner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    gap: 36px;
  }
}


/* ==========================================================================
   5 Curated Color Themes & Floating Theme Switcher
   ========================================================================== */

/* Theme 2: 极光翠绿 (Aurora Emerald) */
[data-theme="emerald"] {
  --bg-deep: #040d0b;
  --bg-surface: #071915;
  --glass-bg: rgba(8, 30, 24, 0.62);
  --glass-bg-hover: rgba(12, 42, 34, 0.76);
  --glass-border: rgba(110, 231, 183, 0.16);
  --glass-border-strong: rgba(16, 185, 129, 0.48);
  --ice-blue: #10b981;
  --ice-light: #d1fae5;
  --aurora-indigo: #2dd4bf;
  --shadow-glow: 0 20px 60px -15px rgba(16, 185, 129, 0.24);
}
[data-theme="emerald"] .btn-primary,
[data-theme="emerald"] .billing-btn.active,
[data-theme="emerald"] .popular-badge {
  background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
  box-shadow: 0 8px 24px -6px rgba(16, 185, 129, 0.42);
}
[data-theme="emerald"] .text-gradient {
  background: linear-gradient(120deg, #f8fafc 10%, #6ee7b7 52%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="emerald"] .glow-1 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.45), transparent 70%);
}
[data-theme="emerald"] .glow-2 {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.34), transparent 70%);
}
[data-theme="emerald"] .pricing-card.featured {
  background: rgba(8, 36, 28, 0.8);
  border-color: rgba(16, 185, 129, 0.52);
}
[data-theme="emerald"] .cta-banner {
  background: linear-gradient(125deg, rgba(8, 36, 28, 0.88), rgba(11, 44, 42, 0.75));
}

/* Theme 3: 霜雪紫晶 (Frost Violet) */
[data-theme="violet"] {
  --bg-deep: #090714;
  --bg-surface: #110d24;
  --glass-bg: rgba(24, 18, 48, 0.6);
  --glass-bg-hover: rgba(34, 25, 66, 0.76);
  --glass-border: rgba(216, 180, 254, 0.16);
  --glass-border-strong: rgba(167, 139, 250, 0.5);
  --ice-blue: #a78bfa;
  --ice-light: #ede9fe;
  --aurora-indigo: #f472b6;
  --shadow-glow: 0 20px 60px -15px rgba(167, 139, 250, 0.25);
}
[data-theme="violet"] .btn-primary,
[data-theme="violet"] .billing-btn.active,
[data-theme="violet"] .popular-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  box-shadow: 0 8px 24px -6px rgba(167, 139, 250, 0.44);
}
[data-theme="violet"] .text-gradient {
  background: linear-gradient(120deg, #f8fafc 10%, #c4b5fd 52%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="violet"] .glow-1 {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.45), transparent 70%);
}
[data-theme="violet"] .glow-2 {
  background: radial-gradient(circle, rgba(244, 114, 182, 0.34), transparent 70%);
}
[data-theme="violet"] .pricing-card.featured {
  background: rgba(28, 20, 56, 0.82);
  border-color: rgba(167, 139, 250, 0.55);
}
[data-theme="violet"] .cta-banner {
  background: linear-gradient(125deg, rgba(28, 20, 56, 0.88), rgba(52, 20, 56, 0.72));
}

/* Theme 4: 暖冬琥珀 (Winter Amber) */
[data-theme="amber"] {
  --bg-deep: #0f0b08;
  --bg-surface: #1a130e;
  --glass-bg: rgba(34, 24, 18, 0.64);
  --glass-bg-hover: rgba(46, 33, 24, 0.78);
  --glass-border: rgba(253, 224, 71, 0.15);
  --glass-border-strong: rgba(245, 158, 11, 0.5);
  --ice-blue: #f59e0b;
  --ice-light: #fef3c7;
  --aurora-indigo: #fb7185;
  --shadow-glow: 0 20px 60px -15px rgba(245, 158, 11, 0.24);
}
[data-theme="amber"] .btn-primary,
[data-theme="amber"] .billing-btn.active,
[data-theme="amber"] .popular-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  box-shadow: 0 8px 24px -6px rgba(245, 158, 11, 0.42);
}
[data-theme="amber"] .text-gradient {
  background: linear-gradient(120deg, #fffbeb 10%, #fcd34d 52%, #fb7185 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="amber"] .glow-1 {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.38), transparent 70%);
}
[data-theme="amber"] .glow-2 {
  background: radial-gradient(circle, rgba(251, 113, 133, 0.3), transparent 70%);
}
[data-theme="amber"] .pricing-card.featured {
  background: rgba(42, 28, 18, 0.84);
  border-color: rgba(245, 158, 11, 0.52);
}
[data-theme="amber"] .cta-banner {
  background: linear-gradient(125deg, rgba(44, 29, 18, 0.9), rgba(56, 24, 28, 0.76));
}

/* Theme 5: 初雪晴空 (Crisp Daylight Snow - Light Theme) */
[data-theme="daylight"] {
  --bg-deep: #f0f6fc;
  --bg-surface: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-bg-hover: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(14, 116, 144, 0.14);
  --glass-border-strong: rgba(2, 132, 199, 0.42);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --ice-blue: #0284c7;
  --ice-light: #0369a1;
  --aurora-indigo: #4f46e5;
  --mint-ok: #059669;
  --amber-mid: #d97706;
  --shadow-glow: 0 20px 50px -15px rgba(2, 132, 199, 0.18);
}
[data-theme="daylight"] .navbar {
  background: rgba(240, 246, 252, 0.82);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
[data-theme="daylight"] .mobile-drawer {
  background: rgba(248, 250, 252, 0.98);
}
[data-theme="daylight"] .telemetry-row {
  background: rgba(241, 245, 249, 0.85);
  border-color: rgba(15, 23, 42, 0.07);
}
[data-theme="daylight"] .btn-glass {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-primary);
}
[data-theme="daylight"] .btn-glass:hover {
  background: rgba(15, 23, 42, 0.08);
}
[data-theme="daylight"] .text-gradient {
  background: linear-gradient(120deg, #0f172a 8%, #0284c7 55%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="daylight"] .unlock-pill,
[data-theme="daylight"] .nc-tags span,
[data-theme="daylight"] .nc-badge {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.15);
  color: #0369a1;
}
[data-theme="daylight"] .billing-toggle {
  background: rgba(255, 255, 255, 0.85);
}
[data-theme="daylight"] .pricing-card.featured {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(2, 132, 199, 0.45);
}
[data-theme="daylight"] .cta-banner {
  background: linear-gradient(125deg, rgba(224, 242, 254, 0.92), rgba(224, 231, 255, 0.88));
}
[data-theme="daylight"] .footer {
  background: rgba(226, 236, 247, 0.72);
  border-top-color: rgba(15, 23, 42, 0.08);
}
[data-theme="daylight"] .grid-overlay {
  background-image:
    linear-gradient(rgba(2, 132, 199, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.05) 1px, transparent 1px);
}

/* Floating Theme Switcher Pill */
.theme-switcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.45);
}

.ts-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 2px;
}

.ts-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: var(--dot-color);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.ts-dot:hover {
  transform: scale(1.16);
}

.ts-dot.active {
  transform: scale(1.18);
  border-color: var(--ice-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

@media (max-width: 768px) {
  .theme-switcher {
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
  }
}
