/* ==========================================================================
   Bitz Net - Enterprise SD-WAN & High-Speed Acceleration Landing Page
   Pure Native CSS | Zero External Frameworks | Blazing Fast & Fully Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & Color Palette
   -------------------------------------------------------------------------- */
:root {
  /* Brand Navy & Tech Colors */
  --navy-hero: #0b162c;
  --navy-hero-surface: #112240;
  --navy-hero-border: #1e3a8a;
  --navy-card: #0f1f3d;
  
  --royal-blue: #2563eb;
  --royal-blue-hover: #1d4ed8;
  --royal-blue-light: #eff6ff;
  --sky-blue: #38bdf8;
  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.1);
  --warning-amber: #f59e0b;
  
  /* Day Mode (Light / Default) */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: #ffffff;
  --bg-tag: #eff6ff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-navy: #f8fafc;
  --text-on-navy-muted: #94a3b8;
  
  --border-slate: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #2563eb;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 14px 30px -6px rgba(15, 23, 42, 0.1);
  --shadow-hover: 0 20px 36px -8px rgba(37, 99, 235, 0.18);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 74px;
}

/* --------------------------------------------------------------------------
   Night Mode (Dark)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-primary: #080d1a;
  --bg-surface: #0d1527;
  --bg-surface-elevated: #131f38;
  --bg-card: #111d33;
  --bg-tag: #172544;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --border-slate: #1e2e4a;
  --border-light: #16243d;
  --border-focus: #38bdf8;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 32px -6px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 20px 36px -8px rgba(37, 99, 235, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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.65;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* --------------------------------------------------------------------------
   Container & Section Spacing
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-white {
  background-color: var(--bg-surface);
}

.section-slate {
  background-color: var(--bg-primary);
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-tag);
  color: var(--royal-blue);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid var(--border-slate);
}

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

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

/* --------------------------------------------------------------------------
   Navbar (Midnight Navy Theme)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: rgba(11, 22, 44, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-img {
  transform: scale(1.03);
}

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

.nav-link {
  font-size: 0.925rem;
  font-weight: 550;
  color: #cbd5e1;
  position: relative;
  padding: 8px 4px;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #38bdf8;
}

.nav-link-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  background-color: var(--royal-blue);
  color: #ffffff;
  border-radius: var(--radius-full);
  margin-left: 4px;
  vertical-align: middle;
}

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

/* Professional Sleek Transparent Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--sky-blue);
  color: var(--sky-blue);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

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

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

/* --------------------------------------------------------------------------
   Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-royal {
  background-color: var(--royal-blue);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-royal:hover {
  background-color: var(--royal-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

.btn-outline-navy {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-outline-navy:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--sky-blue);
  color: var(--sky-blue);
  transform: translateY(-2px);
}

.btn-slate {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-slate);
}

.btn-slate:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--royal-blue);
  color: var(--royal-blue);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Navy Split-Hero & Interactive Client Mockup
   -------------------------------------------------------------------------- */
.hero-navy {
  background-color: var(--navy-hero);
  color: #ffffff;
  padding: 80px 0 90px 0;
  position: relative;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(56, 189, 248, 0.12) 0%, transparent 45%);
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky-blue);
  margin-bottom: 24px;
}

.hero-tag-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: radar-pulse 2s infinite;
}

@keyframes radar-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-headline {
  font-size: 3.35rem;
  font-weight: 850;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}

.hero-headline-highlight {
  color: var(--sky-blue);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 620px;
}

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

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-number {
  font-size: 1.6rem;
  font-weight: 850;
  color: #ffffff;
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.825rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* Interactive Client Window Mockup (Right Side) */
.client-window {
  background-color: var(--navy-hero-surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.1);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.client-window:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.client-header {
  background: rgba(11, 22, 44, 0.7);
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-dots {
  display: flex;
  gap: 6px;
}

.client-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.client-title {
  font-size: 0.8rem;
  font-family: monospace;
  color: #94a3b8;
  font-weight: 600;
}

.client-body {
  padding: 24px;
}

.client-status-card {
  background: rgba(11, 22, 44, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.client-status-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.client-status-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: monospace;
}

.client-toggle-btn {
  background: var(--royal-blue);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.client-toggle-btn:hover {
  background: var(--royal-blue-hover);
}

.client-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.client-metric-box {
  background: rgba(11, 22, 44, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}

.client-metric-val {
  font-size: 1.15rem;
  font-weight: 750;
  color: #38bdf8;
  font-family: monospace;
}

.client-metric-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.client-selector-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.client-regions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.client-region-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(11, 22, 44, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 550;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.client-region-btn:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

.client-region-btn.active {
  background: rgba(37, 99, 235, 0.28);
  border-color: var(--royal-blue);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
}

.region-ping-tag {
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   5-Column Trust Bar (Clean White Strip with Royal-Blue Icons)
   -------------------------------------------------------------------------- */
.trust-strip {
  background-color: #ffffff;
  border-top: 1px solid var(--border-slate);
  border-bottom: 1px solid var(--border-slate);
  padding: 34px 0;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .trust-strip {
  background-color: var(--bg-surface);
}

.trust-5col-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  border-right: 1px solid var(--border-slate);
}

.trust-card:last-child {
  border-right: none;
}

.trust-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--royal-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-blue);
  flex-shrink: 0;
}

[data-theme="dark"] .trust-card-icon {
  background: rgba(37, 99, 235, 0.18);
  color: #38bdf8;
}

.trust-card-value {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--text-primary);
  line-height: 1.15;
}

.trust-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Core Advantages (3 Technical Cards)
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--royal-blue);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--royal-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--royal-blue);
}

[data-theme="dark"] .feature-icon-wrapper {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

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

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-slate);
}

.feature-bullet-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-bullet-item svg {
  width: 16px;
  height: 16px;
  color: var(--royal-blue);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Live SD-WAN Node Matrix (19+ Regions Table & Test All Nodes)
   -------------------------------------------------------------------------- */
.nodes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.nodes-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.badge-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn-test-nodes {
  background-color: var(--royal-blue);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all var(--transition-fast);
}

.btn-test-nodes:hover {
  background-color: var(--royal-blue-hover);
  transform: translateY(-2px);
}

.btn-test-nodes.testing svg {
  animation: spin 1s linear infinite;
}

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

.nodes-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

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

.nodes-table th {
  background-color: var(--bg-surface-elevated);
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-slate);
}

.nodes-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-slate);
  color: var(--text-secondary);
  vertical-align: middle;
}

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

.nodes-table tr:hover td {
  background-color: var(--bg-surface-elevated);
}

.node-region-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.node-region-code {
  font-family: monospace;
  font-size: 0.75rem;
  background: var(--bg-tag);
  color: var(--royal-blue);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-slate);
}

.protocol-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .protocol-tag {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.latency-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.latency-bar-track {
  width: 90px;
  height: 6px;
  background-color: var(--border-slate);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.latency-bar-fill {
  height: 100%;
  background-color: var(--emerald);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.latency-num {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--emerald);
  min-width: 48px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.status-online {
  background: var(--emerald-bg);
  color: var(--emerald);
}

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

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--royal-blue);
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  align-self: flex-start;
}

.badge-stream {
  background: rgba(37, 99, 235, 0.1);
  color: var(--royal-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-ai {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

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

.showcase-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.service-pill:hover {
  transform: translateY(-2px);
  border-color: var(--royal-blue);
}

.pill-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-slate);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.showcase-meta-highlight {
  font-weight: 700;
  color: var(--emerald);
}

/* --------------------------------------------------------------------------
   Enterprise & Personal Pricing Tiers (Clean White Cards & Slate Borders)
   -------------------------------------------------------------------------- */
.pricing-billing-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.switch-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.switch-label.active {
  color: var(--text-primary);
  font-weight: 750;
}

.billing-toggle {
  position: relative;
  width: 58px;
  height: 32px;
  background-color: var(--border-slate);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  padding: 3px;
}

.billing-toggle.annual {
  background-color: var(--royal-blue);
}

.toggle-slider {
  width: 26px;
  height: 26px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-normal);
}

.billing-toggle.annual .toggle-slider {
  transform: translateX(26px);
}

.annual-discount-badge {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #fde68a;
}

[data-theme="dark"] .annual-discount-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

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

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .pricing-card {
  background: var(--bg-card);
}

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

/* Middle Recommended Plan features a 1.5px royal-blue border */
.pricing-card-recommended {
  border: 1.5px solid var(--royal-blue);
  box-shadow: var(--shadow-lg);
}

.pricing-card-recommended:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 44px -8px rgba(37, 99, 235, 0.22);
}

.recommended-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--royal-blue);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.5px;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  text-transform: uppercase;
}

.pricing-header {
  margin-bottom: 24px;
  text-align: center;
}

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

.pricing-plan-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 18px 0;
}

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

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

.pricing-cycle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 32px 0;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.pricing-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--royal-blue);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   User Testimonials / Reviews
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--royal-blue);
}

.review-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--warning-amber);
}

.review-rating-row svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.review-rating-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
}

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

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--royal-blue-light);
  border: 1px solid var(--border-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  color: var(--royal-blue);
  font-size: 1rem;
}

[data-theme="dark"] .author-avatar {
  background: rgba(37, 99, 235, 0.2);
  color: #38bdf8;
}

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

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

/* --------------------------------------------------------------------------
   FAQ Section (Collapsible Accordion)
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

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

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

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--royal-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 240px;
  padding: 0 24px 22px 24px;
}

/* --------------------------------------------------------------------------
   Call to Action Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-hero) 0%, #1e3a8a 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner-title {
  font-size: 2.35rem;
  font-weight: 850;
  margin-bottom: 14px;
  line-height: 1.25;
}

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

.btn-white {
  background: #ffffff;
  color: #0b162c !important;
  font-weight: 750;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Footer
   Strict requirement: ONLY retain these 4 titles:
   1. 网站地图 (sitemap.html)
   2. 关于我们 (about.html)
   3. 服务条款 (terms.html)
   4. 隐私政策 (privacy.html)
   All open in new page.
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-slate);
  padding: 50px 0 36px 0;
  transition: all var(--transition-normal);
}

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

.footer-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 6px 0;
}

.footer-link:hover {
  color: var(--royal-blue);
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Internal Content Page Style (about, terms, privacy, sitemap, articles)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 68px 0 44px 0;
  background-color: var(--navy-hero);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 850;
  color: #ffffff;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 50px 44px;
  box-shadow: var(--shadow-sm);
  margin-top: -30px;
  position: relative;
  z-index: 10;
  margin-bottom: 80px;
}

.content-wrapper h2 {
  font-size: 1.55rem;
  font-weight: 750;
  color: var(--text-primary);
  margin: 34px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-slate);
}

.content-wrapper h2:first-of-type {
  margin-top: 0;
}

.content-wrapper p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-wrapper ul {
  margin: 12px 0 20px 24px;
  list-style: disc;
}

.content-wrapper li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.info-box {
  background: var(--royal-blue-light);
  border-left: 4px solid var(--royal-blue);
  padding: 18px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

[data-theme="dark"] .info-box {
  background: rgba(37, 99, 235, 0.15);
  color: #cbd5e1;
}

/* Article Cards for Recommended News */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--royal-blue);
  box-shadow: var(--shadow-md);
}

.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--royal-blue);
  background: var(--royal-blue-light);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}

[data-theme="dark"] .article-tag {
  background: rgba(37, 99, 235, 0.2);
  color: #38bdf8;
}

.article-card-title {
  font-size: 1.18rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card-title a {
  color: inherit;
}

.article-card-title a:hover {
  color: var(--royal-blue);
}

.article-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
  flex-grow: 1;
}

.article-meta-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-slate);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Long-form SEO Article Specific Styles
   ========================================================================== */
.article-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-slate);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-breadcrumb a:hover {
  color: var(--royal-blue);
}

.article-main-title {
  font-size: 2.2rem;
  font-weight: 850;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Table of Contents (TOC / 目录) */
.article-toc {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-slate);
  border-left: 4px solid var(--royal-blue);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 32px 0 40px 0;
}

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

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.toc-list li {
  margin: 0 !important;
  padding-left: 12px;
  position: relative;
}

.toc-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--royal-blue);
  font-weight: bold;
}

.toc-list a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 550;
}

.toc-list a:hover {
  color: var(--royal-blue);
  text-decoration: underline;
}

/* Article Body Typography */
.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 44px 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-slate);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text-primary);
  margin: 28px 0 14px 0;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 16px 0 24px 28px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 10px;
}

.article-body strong {
  color: var(--text-primary);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
}

.article-body th {
  background-color: var(--bg-surface-elevated);
  padding: 12px 16px;
  border: 1px solid var(--border-slate);
  font-weight: 700;
  text-align: left;
}

.article-body td {
  padding: 12px 16px;
  border: 1px solid var(--border-slate);
}

/* Inline In-Article CTA Banner */
.article-inline-cta {
  background: var(--royal-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

[data-theme="dark"] .article-inline-cta {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

.inline-cta-text h4 {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.inline-cta-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Related Reading Section (相关阅读) */
.related-reading-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 48px;
}

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

.related-links-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.related-link-item {
  padding: 12px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.related-link-item:hover {
  border-color: var(--royal-blue);
  transform: translateX(4px);
}

.related-link-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.related-link-item a:hover {
  color: var(--royal-blue);
}

@media (max-width: 768px) {
  .related-links-list {
    grid-template-columns: 1fr;
  }
  .article-main-title {
    font-size: 1.7rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries (@media)
   Mobile Single Column, Touch targets >= 48px
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .trust-5col-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .trust-card:nth-child(3) {
    border-right: none;
  }
  
  .features-grid,
  .pricing-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 66px;
  }

  .section {
    padding: 60px 0;
  }

  .nav-links {
    display: none;
  }

  .hero-navy {
    padding: 56px 0 68px 0;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.02rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-stats-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .trust-5col-grid {
    grid-template-columns: 1fr;
  }

  .trust-card {
    border-right: none;
    border-bottom: 1px solid var(--border-slate);
    padding-bottom: 16px;
  }

  .trust-card:last-child {
    border-bottom: none;
  }

  .features-grid,
  .showcase-grid,
  .pricing-grid,
  .reviews-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card,
  .showcase-card,
  .feature-card,
  .review-card {
    padding: 26px 20px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .cta-banner {
    padding: 40px 20px;
  }

  .cta-banner-title {
    font-size: 1.75rem;
  }

  .content-wrapper {
    padding: 28px 20px;
    margin-top: -20px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
}
