/* ==========================================================================
   CyberGuard VPN - Zero-Trust Cyber Shield & Encrypted Matrix Theme
   Pure CSS - Ultra Lightweight, 60FPS Performance, Zero External Dependencies
   ========================================================================== */

:root {
  /* Daytime / Light Mode (Cyber Modern Security Theme) */
  --bg-primary: #f5f8fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ebf2fa;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --border-color: #d8e3f0;
  --border-highlight: rgba(0, 163, 255, 0.35);
  --border-cyan: #0284c7;
  --border-emerald: #059669;
  --text-primary: #091322;
  --text-secondary: #334862;
  --text-muted: #647b97;
  --accent-primary: #0284c7;
  --accent-cyan: #0099cc;
  --accent-emerald: #10b981;
  --accent-hover: #0369a1;
  --accent-light: rgba(2, 132, 199, 0.08);
  --accent-glow: rgba(0, 163, 255, 0.16);
  --hud-bg: rgba(255, 255, 255, 0.88);
  --hud-border: rgba(2, 132, 199, 0.25);
  --gradient-brand: linear-gradient(135deg, #0284c7 0%, #059669 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 246, 254, 0.9) 100%);
  --shadow-sm: 0 2px 4px rgba(9, 19, 34, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(9, 19, 34, 0.08);
  --shadow-lg: 0 16px 32px -4px rgba(9, 19, 34, 0.12);
  --shadow-hover: 0 20px 40px -6px rgba(0, 163, 255, 0.18);
  --nav-bg: rgba(245, 248, 252, 0.88);
  --nav-border: rgba(216, 227, 240, 0.85);
  --tag-bg: #e2edfa;
  --tag-color: #0b2545;
  --code-bg: #e9f2fb;
}

[data-theme="dark"] {
  /* Night / Zero-Trust Cyber Obsidian Matrix */
  --bg-primary: #05080d;
  --bg-secondary: #0a0f18;
  --bg-tertiary: #0f1623;
  --bg-card: rgba(15, 22, 35, 0.75);
  --bg-card-hover: rgba(22, 32, 50, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 229, 255, 0.4);
  --border-cyan: #00e5ff;
  --border-emerald: #10b981;
  --text-primary: #f0f6fc;
  --text-secondary: #94a3b8;
  --text-muted: #627288;
  --accent-primary: #00e5ff;
  --accent-cyan: #00e5ff;
  --accent-emerald: #10b981;
  --accent-hover: #38bdf8;
  --accent-light: rgba(0, 229, 255, 0.1);
  --accent-glow: rgba(0, 229, 255, 0.28);
  --hud-bg: rgba(10, 15, 24, 0.82);
  --hud-border: rgba(0, 229, 255, 0.3);
  --gradient-brand: linear-gradient(135deg, #00e5ff 0%, #10b981 100%);
  --gradient-card: linear-gradient(180deg, rgba(20, 30, 48, 0.7) 0%, rgba(10, 16, 26, 0.85) 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 8px 24px -2px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 20px 45px -4px rgba(0, 0, 0, 0.85);
  --shadow-hover: 0 0 30px rgba(0, 229, 255, 0.22);
  --nav-bg: rgba(5, 8, 13, 0.88);
  --nav-border: rgba(255, 255, 255, 0.08);
  --tag-bg: rgba(0, 229, 255, 0.08);
  --tag-color: #7dd3fc;
  --code-bg: #090e17;
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s ease;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
}

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

img, svg {
  display: block;
}

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

/* ==========================================================================
   Site Header & Sticky Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 10px var(--accent-glow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 4px 18px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
  padding: 6px 2px;
}

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

.nav-link:hover {
  color: var(--accent-primary);
}

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

.nav-link-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent-cyan);
  border: 1px solid var(--border-highlight);
  margin-left: 4px;
  font-weight: 700;
  vertical-align: middle;
}

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

/* ==========================================================================
   Day/Night Theme Switcher
   ========================================================================== */
.theme-toggle-btn {
  background: var(--hud-bg);
  border: 1px solid var(--border-color);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.theme-toggle-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-primary);
  transform: rotate(15deg) scale(1.06);
  box-shadow: 0 0 16px var(--accent-glow);
}

.theme-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: transform 0.3s ease, stroke 0.3s ease;
}

.icon-moon {
  display: block;
}
.icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: none;
}
[data-theme="dark"] .icon-sun {
  display: block;
  stroke: #fbbf24;
}

/* ==========================================================================
   Buttons & CTA (Magnetic Liquid Glow Pill)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #05080d;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-glow);
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 26px var(--accent-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--hud-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  color: var(--accent-primary);
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1.05rem;
  border-radius: 32px;
}

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

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Hero Section: Interactive 3D Hexagonal Defense Mesh & HUD
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 60px;
  overflow: hidden;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-text-col {
  position: relative;
  z-index: 2;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 30px;
  background: var(--hud-bg);
  border: 1px solid var(--border-highlight);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  box-shadow: 0 0 16px var(--accent-glow);
}

.status-pulse-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseLed 2s infinite;
}

@keyframes pulseLed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.hero-title .brand-highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Live Security HUD Bar
   ========================================================================== */
.security-hud-bar {
  background: var(--hud-bg);
  border: 1px solid var(--hud-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hud-item-icon svg {
  width: 18px;
  height: 18px;
}

.hud-text-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hud-text-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.protocol-switchers {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.15);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.protocol-pill {
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  font-family: monospace;
}

.protocol-pill.active {
  background: var(--accent-cyan);
  color: #05080d;
  box-shadow: 0 0 10px var(--accent-glow);
}

[data-theme="light"] .protocol-pill.active {
  background: var(--accent-primary);
  color: #ffffff;
}

.latency-ticker {
  color: var(--accent-emerald);
  font-weight: 800;
}

/* ==========================================================================
   Hero Interactive 3D Canvas Defense Mesh
   ========================================================================== */
.hero-canvas-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.canvas-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 460px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#shieldCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-overlay-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hud-badge-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(5, 8, 13, 0.7);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
  font-family: monospace;
  font-weight: 700;
}

.canvas-footer-stat {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(5, 8, 13, 0.75);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--text-secondary);
  pointer-events: none;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Bento Grid: Core Advantages (3 Cards with Cyber Border Beam)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 38px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Border Beam Hover Effect */
.bento-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--border-cyan), var(--border-emerald), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-hover);
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-highlight);
}

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

.bento-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.bento-topology {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bento-topology span {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Scenario Showcases (Streaming & AI Cards)
   ========================================================================== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 38px 34px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-hover);
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 750;
  margin-bottom: 16px;
  border: 1px solid var(--border-highlight);
}

.showcase-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.showcase-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.service-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

.showcase-stat {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.showcase-stat strong {
  color: var(--accent-emerald);
  font-size: 1.1rem;
  font-family: monospace;
}

/* ==========================================================================
   Pricing Table (参考网上真实机场/专线套餐价格)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.pricing-card.popular {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 32px var(--accent-glow);
  transform: scale(1.02);
}

.pricing-card.popular:hover {
  transform: scale(1.02) translateY(-6px);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #05080d;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px var(--accent-glow);
}

[data-theme="light"] .popular-ribbon {
  color: #ffffff;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

.pricing-cost {
  margin: 22px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.amount {
  font-size: 2.9rem;
  font-weight: 850;
  color: var(--text-primary);
  line-height: 1;
}

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

.plan-equivalent {
  font-size: 0.82rem;
  color: var(--accent-emerald);
  margin-top: 4px;
  font-weight: 600;
}

.pricing-features {
  list-style: none;
  margin: 12px 0 32px;
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-color);
}

.pricing-feature:last-child {
  border-bottom: none;
}

.feature-check {
  width: 18px;
  height: 18px;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   User Testimonials (真实口碑评价)
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #fbbf24;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-content {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #05080d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

[data-theme="light"] .author-avatar {
  color: #ffffff;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-item:hover {
  border-color: var(--border-highlight);
}

.faq-item summary {
  padding: 22px 26px;
  cursor: pointer;
  font-size: 1.06rem;
  font-weight: 750;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  stroke: var(--accent-cyan);
}

.faq-answer {
  padding: 0 26px 24px;
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner-section {
  padding: 70px 0;
}

.cta-banner {
  background: linear-gradient(135deg, #091322 0%, #05080d 100%);
  border: 1px solid var(--border-highlight);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.cta-banner h2 {
  font-size: 2.25rem;
  font-weight: 850;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto 34px;
}

/* ==========================================================================
   Footer (Strictly 4 links opening in new tabs)
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-bottom: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: var(--accent-cyan);
}

.footer-brand {
  margin-bottom: 12px;
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Articles & Subpages Layout (About, Terms, Privacy, Sitemap, Insights)
   ========================================================================== */
.page-header {
  padding: 64px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.page-title {
  font-size: 2.45rem;
  font-weight: 850;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.page-content-wrapper {
  padding: 60px 0 80px;
}

.article-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 44px 50px;
  box-shadow: var(--shadow-sm);
  max-width: 920px;
  margin: 0 auto;
}

.article-box h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 36px 0 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-box h2:first-child {
  margin-top: 0;
}

.article-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-box ul {
  padding-left: 24px;
  margin-bottom: 22px;
  color: var(--text-secondary);
}

.article-box li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 26px 0;
}

.info-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
}

.info-card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.info-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* Insights News Feed Cards */
.insight-feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.insight-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 26px;
  transition: all 0.3s ease;
}

.insight-card:hover {
  border-color: var(--border-highlight);
  transform: translateX(4px);
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.insight-category {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-light);
  color: var(--accent-cyan);
  font-weight: 700;
}

.insight-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

/* ==========================================================================
   Mobile Responsive Queries (@media)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .bento-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .pricing-card.popular {
    transform: none;
  }
  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 6px;
  }
  .nav-wrapper {
    height: 66px;
  }
  .brand-logo {
    font-size: 1.15rem;
  }
  .hero-section {
    padding: 40px 0 30px;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 26px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
  }
  .security-hud-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .canvas-container {
    height: 360px;
  }
  .section {
    padding: 55px 0;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .service-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-box {
    padding: 26px 18px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    gap: 20px;
  }
}


/* ==========================================================================
   SEO Long-form Article Reader & Technical Blog Styles
   ========================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--accent-cyan);
}

.breadcrumbs-separator {
  color: var(--border-highlight);
}

.post-meta-header {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.post-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: 14px;
}

.post-tag-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-light);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.78rem;
  border: 1px solid var(--border-highlight);
}

.article-toc {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0 40px;
}

.article-toc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-toc-list li {
  margin: 0;
  line-height: 1.6;
}

.article-toc-list a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.article-toc-list a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.article-toc-list .toc-sub {
  padding-left: 20px;
  font-size: 0.88rem;
}

.article-callout {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-emerald);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 26px 0;
}

.article-callout-title {
  font-weight: 750;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.article-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 14px 18px;
  font-weight: 750;
  border-bottom: 1px solid var(--border-color);
}

.article-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tr:hover td {
  background: var(--bg-primary);
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  margin: 44px 0;
}

.article-cta-box h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.article-cta-box p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 600px;
  margin: 0 auto 20px;
}

.related-posts-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border-color);
}

.related-posts-section h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.related-post-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-post-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.related-post-title {
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.related-post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  .article-toc {
    padding: 18px 20px;
  }
}
