/* ==========================================================================
   极速VPN / 极速加速器 官方旗舰版样式规范
   Theme: Deep Space Nebula Obsidian & Superconducting Cyber Violet / Laser Magenta / Hyper Cyan
   Domain: jisujiasuqi.homes
   ========================================================================== */

:root {
  --bg-obsidian: #06070B;
  --bg-nebula-deep: #090B12;
  --bg-card: rgba(14, 16, 27, 0.82);
  --bg-card-hover: rgba(22, 25, 42, 0.92);
  --bg-glass: rgba(11, 13, 23, 0.7);
  --border-subtle: rgba(139, 92, 246, 0.18);
  --border-glow: rgba(139, 92, 246, 0.4);
  --border-magenta: rgba(236, 72, 153, 0.45);
  --border-cyan: rgba(6, 182, 212, 0.4);

  --cyber-violet: #8B5CF6;
  --cyber-violet-light: #A78BFA;
  --cyber-violet-glow: rgba(139, 92, 246, 0.45);
  --laser-magenta: #EC4899;
  --laser-magenta-light: #F472B6;
  --laser-magenta-glow: rgba(236, 72, 153, 0.45);
  --hyper-cyan: #06B6D4;
  --hyper-cyan-light: #22D3EE;
  --hyper-cyan-glow: rgba(6, 182, 212, 0.45);

  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --text-white: #FFFFFF;

  --gradient-hyper: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #06B6D4 100%);
  --gradient-btn: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  --gradient-btn-hover: linear-gradient(135deg, #9D74FF 0%, #F43F5E 100%);
  --gradient-card: linear-gradient(180deg, rgba(20, 24, 40, 0.85) 0%, rgba(10, 12, 20, 0.95) 100%);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, Monaco, monospace;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-glow-violet: 0 0 25px rgba(139, 92, 246, 0.35);
  --shadow-glow-magenta: 0 0 25px rgba(236, 72, 153, 0.35);
  --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-obsidian);
  scroll-padding-top: 86px; /* 解决固定导航栏遮挡锚点内容 */
}

/* 锚点目标顶部安全间距，防止被 74px 的 sticky header 遮挡 */
section[id], div[id], [id] {
  scroll-margin-top: 86px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Cyber Grid & Nebula Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul, ol {
  list-style: none;
}

img, svg {
  vertical-align: middle;
}

button, input {
  font-family: inherit;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-tight {
  padding: 64px 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Section Header Typography */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--cyber-violet-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.section-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--hyper-cyan);
  box-shadow: 0 0 8px var(--hyper-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 56px auto;
  line-height: 1.7;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #C084FC 0%, #F472B6 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-violet-magenta {
  background: linear-gradient(135deg, #A78BFA 0%, #F43F5E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 7, 11, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6, 7, 11, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(139, 92, 246, 0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px var(--cyber-violet-glow);
  position: relative;
  overflow: hidden;
}

.brand-logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(30deg);
  animation: shine 4s infinite linear;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(30deg); }
  20%, 100% { transform: translateX(100%) rotate(30deg); }
}

.brand-logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #FFFFFF;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-btn);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #FFFFFF;
  box-shadow: 0 0 20px var(--cyber-violet-glow), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--laser-magenta-glow), 0 6px 20px rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
}

.btn-outline {
  background: rgba(14, 16, 27, 0.75);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--hyper-cyan);
  background: rgba(22, 25, 42, 0.95);
  color: #FFFFFF;
  box-shadow: 0 0 20px var(--hyper-cyan-glow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
  border-radius: 9px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

.mobile-nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* Hero Section */
.hero-section {
  padding: 120px 0 90px 0;
  position: relative;
  overflow: hidden;
}

.hero-glow-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

.hero-glow-1 {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--cyber-violet) 0%, transparent 70%);
}

.hero-glow-2 {
  top: 250px;
  right: 5%;
  background: radial-gradient(circle, var(--laser-magenta) 0%, transparent 70%);
}

.hero-glow-3 {
  top: 300px;
  left: 5%;
  background: radial-gradient(circle, var(--hyper-cyan) 0%, transparent 70%);
}

.hero-content {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 50px auto;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 36px auto;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge-item svg {
  color: var(--hyper-cyan);
  width: 18px;
  height: 18px;
}

/* Top Telemetry / Key Metrics Strip */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.metric-card:hover {
  border-color: var(--cyber-violet);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--cyber-violet-glow);
}

.metric-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyber-violet-light);
  margin-bottom: 16px;
}

.metric-val {
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.metric-val-unit {
  font-size: 1rem;
  color: var(--hyper-cyan);
  font-weight: 600;
  margin-left: 4px;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   Dashboard Interactive Components (三大核心看板通用外框)
   ========================================================================== */
.dashboard-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.dashboard-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-hyper);
}

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

.dashboard-header-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-header-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.dashboard-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dashboard 1: Anycast BGP Topology */
.topology-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.topology-canvas-wrap {
  position: relative;
  background: rgba(6, 8, 15, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  height: 380px;
  overflow: hidden;
}

.topology-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.topology-telemetry {
  background: rgba(8, 10, 18, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(20, 24, 40, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
}

.node-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
}

.node-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
}

.node-status-indicator.rerouting {
  background-color: var(--laser-magenta);
  box-shadow: 0 0 8px var(--laser-magenta);
}

.node-ping {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--hyper-cyan);
  font-weight: 700;
}

.topology-log-box {
  background: #040508;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  height: 120px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #A78BFA;
  margin-top: 14px;
  line-height: 1.5;
}

.topology-log-box .log-entry {
  margin-bottom: 4px;
}
.topology-log-box .log-time { color: var(--text-dim); margin-right: 6px; }
.topology-log-box .log-warn { color: var(--laser-magenta); }
.topology-log-box .log-success { color: var(--hyper-cyan); }

/* Dashboard 2: eBPF XDP vs Traditional Stack */
.ebpf-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ebpf-card {
  background: rgba(8, 10, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
}

.ebpf-card.active-xdp {
  border-color: var(--cyber-violet);
  box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.15);
}

.ebpf-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ebpf-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.ebpf-stat-box {
  background: rgba(20, 24, 40, 0.6);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.ebpf-stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.ebpf-stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.ebpf-canvas-wrap {
  height: 140px;
  background: #030407;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ebpf-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.packet-slider-wrap {
  margin-top: 24px;
  background: rgba(14, 16, 27, 0.6);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.packet-slider-wrap label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.packet-slider-wrap input[type=range] {
  flex: 1;
  accent-color: var(--cyber-violet);
  cursor: pointer;
}

/* Dashboard 3: 8K 120FPS Throughput Speedometer */
.speed-meter-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: center;
}

.gauge-wrap {
  text-align: center;
  position: relative;
  padding: 20px 0;
}

.gauge-svg-wrap {
  position: relative;
  width: 260px;
  height: 180px;
  margin: 0 auto;
}

.gauge-readout {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.gauge-num {
  font-size: 2.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #FFFFFF;
  line-height: 1;
}

.gauge-unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hyper-cyan);
  text-transform: uppercase;
}

.stream-mode-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.stream-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  background: rgba(20, 24, 40, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.stream-pill.active {
  background: var(--gradient-btn);
  border-color: transparent;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 0 15px var(--cyber-violet-glow);
}

.stream-chart-wrap {
  background: #030407;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  height: 230px;
  display: flex;
  flex-direction: column;
}

.stream-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.stream-chart-canvas {
  flex: 1;
  width: 100%;
}

.stream-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stream-kpi-item {
  background: rgba(14, 16, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
}

.stream-kpi-item .label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stream-kpi-item .val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
}

/* ==========================================================================
   Feature Grid & Engineering Showcase
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  backdrop-filter: blur(12px);
  transition: all 0.35s ease;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyber-violet);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px var(--cyber-violet-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyber-violet-light);
  margin-bottom: 22px;
}

.feature-icon-box svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-specs-tag {
  display: inline-flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--hyper-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 18px;
}

/* ==========================================================================
   Pricing Section (4 Tier Cards)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  backdrop-filter: blur(14px);
}

.pricing-card.popular {
  border-color: var(--laser-magenta);
  background: linear-gradient(180deg, rgba(28, 22, 42, 0.9) 0%, rgba(14, 16, 27, 0.95) 100%);
  box-shadow: 0 0 35px rgba(236, 72, 153, 0.25), 0 12px 30px rgba(0, 0, 0, 0.6);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card:hover:not(.popular) {
  border-color: var(--cyber-violet);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px var(--cyber-violet-glow);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-btn);
  color: #FFFFFF;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 0 15px var(--laser-magenta-glow);
  white-space: nowrap;
}

.plan-tier-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.plan-tier-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  min-height: 40px;
  margin-bottom: 20px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #FFFFFF;
  line-height: 1;
}

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

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.4;
}

.plan-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--hyper-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-feature-item.highlight {
  color: var(--laser-magenta-light);
  font-weight: 600;
}

/* ==========================================================================
   Pricing Detailed Matrix Table (for pricing.html)
   ========================================================================== */
.pricing-matrix-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 48px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-table th {
  font-size: 1.05rem;
  color: #FFFFFF;
  font-weight: 700;
  background: rgba(20, 24, 40, 0.5);
}

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

.pricing-table tr:hover td {
  background: rgba(139, 92, 246, 0.05);
  color: var(--text-white);
}

/* ==========================================================================
   FAQ Accordion System
   ========================================================================== */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--cyber-violet);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--cyber-violet-glow);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 26px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyber-violet-light);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--gradient-btn);
  color: #FFFFFF;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding-bottom: 24px;
  transition: max-height 0.4s ease-in-out;
}

/* ==========================================================================
   News / Technical Bulletin System (with Pagination & Filter)
   ========================================================================== */
.news-filter-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: rgba(14, 16, 27, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-btn);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 0 15px var(--cyber-violet-glow);
}

.news-articles-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.3s ease;
}

.news-card:hover {
  border-color: var(--cyber-violet);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.news-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.84rem;
}

.news-category-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.category-kernel { background: rgba(139, 92, 246, 0.15); color: var(--cyber-violet-light); border: 1px solid rgba(139, 92, 246, 0.3); }
.category-node { background: rgba(6, 182, 212, 0.15); color: var(--hyper-cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.category-algorithm { background: rgba(236, 72, 153, 0.15); color: var(--laser-magenta-light); border: 1px solid rgba(236, 72, 153, 0.3); }
.category-infra { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }

.news-date {
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.news-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.35;
}

.news-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.news-full-body {
  display: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  margin-top: 16px;
  color: #D1D5DB;
  font-size: 0.95rem;
  line-height: 1.8;
}

.news-full-body.show {
  display: block;
}

.news-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hyper-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.news-expand-btn:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.page-btn:hover,
.page-btn.active {
  background: var(--gradient-btn);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 0 15px var(--cyber-violet-glow);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   Help & Docs Specific Styles
   ========================================================================== */
.help-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: flex-start;
}

.help-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: 96px;
}

.help-nav-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-left: 8px;
}

.help-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.help-nav-item a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.help-nav-item a:hover,
.help-nav-item.active a {
  background: rgba(139, 92, 246, 0.15);
  color: #FFFFFF;
  font-weight: 600;
}

.help-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
}

.help-content-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.code-block {
  background: #040508;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #A78BFA;
  margin: 16px 0;
  overflow-x: auto;
  line-height: 1.6;
}

/* ==========================================================================
   About, Terms & Privacy Specific Styles
   ========================================================================== */
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 960px;
  margin: 0 auto;
}

.legal-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 32px 0 14px 0;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.legal-card ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.legal-card li {
  list-style-type: disc;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* 404 Page */
.page-404-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-glitch-code {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  font-family: var(--font-mono);
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 0 0 40px var(--cyber-violet-glow);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.site-footer {
  background: #030407;
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 36px 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 340px;
  line-height: 1.7;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

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

.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--hyper-cyan);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topology-container {
    grid-template-columns: 1fr;
  }
  .speed-meter-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(6, 7, 11, 0.98);
    border-bottom: 1px solid var(--border-glow);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  }
  .nav-menu.show {
    display: flex;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .ebpf-comparison-grid {
    grid-template-columns: 1fr;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .stream-kpi-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
