/* ===================================================================
   BoostNet - Bio-Neural Synaptic Impulse Modern CSS
   Deep cerebral midnight canvas (#06080e), bioluminescent axon emerald (#00ffaa),
   electric teal (#00f0ff), living neural network topology & reflex responsiveness.
   =================================================================== */

:root {
  /* Light Mode Palette (Default on load) */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(5, 150, 105, 0.4);
  --text-primary: #090d16;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --primary-accent: #059669;
  --primary-gradient: linear-gradient(135deg, #059669 0%, #0284c7 60%, #2563eb 100%);
  --axon-emerald: #059669;
  --electric-teal: #0284c7;
  --primary-glow: rgba(5, 150, 105, 0.15);
  --success: #10b981;
  --badge-bg: rgba(5, 150, 105, 0.08);
  --badge-text: #059669;
  --badge-border: rgba(5, 150, 105, 0.25);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 24px rgba(5, 150, 105, 0.25);
  --nav-bg: rgba(248, 250, 252, 0.85);
  --nav-border: rgba(226, 232, 240, 0.85);
  --pricing-popular-border: #059669;
  --footer-bg: #090d16;
  --footer-text: #94a3b8;
  --footer-link: #e2e8f0;
  --transition-speed: 0.35s;
}

[data-theme="dark"] {
  /* Bio-Neural Cerebral Midnight Palette */
  --bg-primary: #06080e;
  --bg-secondary: #0a0e18;
  --bg-tertiary: #101626;
  --bg-card: rgba(13, 19, 32, 0.85);
  --bg-card-hover: rgba(18, 26, 44, 0.95);
  --border-color: rgba(0, 255, 170, 0.12);
  --border-hover: rgba(0, 255, 170, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --primary-accent: #00ffaa;
  --primary-gradient: linear-gradient(135deg, #00ffaa 0%, #00f0ff 50%, #3b82f6 100%);
  --axon-emerald: #00ffaa;
  --electric-teal: #00f0ff;
  --primary-glow: rgba(0, 255, 170, 0.2);
  --success: #00ffaa;
  --badge-bg: rgba(0, 255, 170, 0.1);
  --badge-text: #00ffaa;
  --badge-border: rgba(0, 255, 170, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 35px rgba(0, 255, 170, 0.35);
  --nav-bg: rgba(6, 8, 14, 0.85);
  --nav-border: rgba(0, 255, 170, 0.12);
  --pricing-popular-border: #00ffaa;
  --footer-bg: #030408;
  --footer-text: #64748b;
  --footer-link: #cbd5e1;
}

/* ================= Global Reset & Smooth Scroll ================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "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 var(--transition-speed) ease, color var(--transition-speed) ease;
  overflow-x: hidden;
  position: relative;
}

/* Procedural Living Neural Network Canvas Background */
#neuralCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
  transition: opacity 0.5s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img, svg {
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

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

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

.brand-logo .logo-img {
  height: 38px;
  width: auto;
  max-width: 190px;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.brand-logo:hover .logo-img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.logo-dark,
.brand-logo .logo-dark {
  display: none !important;
}

[data-theme="dark"] .logo-light,
[data-theme="dark"] .brand-logo .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark,
[data-theme="dark"] .brand-logo .logo-dark {
  display: block !important;
}

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px var(--primary-accent);
}

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

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

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

/* Glassmorphism Refined Theme Switcher */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

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

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s ease;
}

.theme-icon-dark {
  display: none;
}

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

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

/* ================= CTA Buttons (Strict rel/target) ================= */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-cta-primary {
  background: var(--primary-gradient);
  color: #06080e !important;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

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

.btn-cta-primary:hover {
  box-shadow: 0 0 30px rgba(0, 255, 170, 0.5);
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-cta-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-accent);
  box-shadow: 0 0 16px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-cta-nav {
  padding: 8px 20px;
  font-size: 0.9rem;
}

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

.btn-cta-block {
  width: 100%;
  padding: 13px 24px;
  font-size: 1rem;
}

/* ================= Hero / Main Visual Area ================= */
.hero {
  position: relative;
  padding: 95px 0 85px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  box-shadow: 0 0 20px var(--primary-glow);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--axon-emerald);
  box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.7);
  animation: synapticPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes synapticPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.8); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(0, 255, 170, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 170, 0); }
}

.hero-title {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(0, 255, 170, 0.2);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  max-width: 860px;
  margin: 0 auto 16px;
  color: var(--text-primary);
}

.hero-intro {
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 820px;
  margin: 0 auto 38px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--border-color);
  max-width: 950px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--primary-accent);
  width: 18px;
  height: 18px;
}

/* ================= Section Header Commons ================= */
.section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

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

.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 58px;
}

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

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.6px;
}

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

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 38px 30px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
}

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

.feature-icon-wrapper {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  color: var(--primary-accent);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 0 16px var(--primary-glow);
}

.feature-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.feature-text {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex-grow: 1;
}

.feature-highlight {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-accent);
}

/* ================= Media & AI Dual Showcase ================= */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.showcase-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 35px var(--primary-glow);
  border-color: var(--border-hover);
}

.showcase-badge {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 22px;
}

.badge-media {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-ai {
  background: rgba(0, 255, 170, 0.12);
  color: var(--axon-emerald);
  border: 1px solid rgba(0, 255, 170, 0.35);
}

.showcase-card h3 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.showcase-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.platform-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.platform-pill:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--primary-glow);
}

.platform-pill svg {
  width: 18px;
  height: 18px;
}

.showcase-metric-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

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

.metric-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-accent);
}

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

/* ================= Real Industry Pricing Table ================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 42px 34px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 35px var(--primary-glow);
  border-color: var(--border-hover);
}

.pricing-card.popular {
  border: 2px solid var(--pricing-popular-border);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.pricing-card.popular:hover {
  transform: scale(1.02) translateY(-8px);
  box-shadow: 0 0 45px rgba(0, 255, 170, 0.45);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #06080e;
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 15px rgba(0, 255, 170, 0.4);
}

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

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

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-height: 44px;
  margin-bottom: 22px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

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

.plan-price {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

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

.plan-billing-note {
  font-size: 0.82rem;
  color: var(--primary-accent);
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

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

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.plan-features li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.review-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), 0 0 20px var(--primary-glow);
}

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

.review-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review-content {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  flex-grow: 1;
  font-style: italic;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid var(--badge-border);
}

.author-info h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

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

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

.faq-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 16px var(--primary-glow);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary-accent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

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

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

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

/* ================= Footer (Strict 4 Titles) ================= */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 36px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

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

.footer-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--footer-link);
  transition: color 0.25s ease;
  position: relative;
  padding: 4px 0;
}

.footer-nav-link:hover {
  color: var(--primary-accent);
  text-shadow: 0 0 10px var(--primary-glow);
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--footer-text);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
}

/* ================= Subpages General Styling ================= */
.subpage-hero {
  padding: 68px 0 44px;
  background: radial-gradient(circle at 50% 0%, var(--primary-glow) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  z-index: 1;
}

.subpage-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.6px;
}

.subpage-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
}

.subpage-body {
  padding: 64px 0 84px;
  position: relative;
  z-index: 1;
}

.content-block {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.content-block h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 38px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

.content-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 26px 0 12px;
  color: var(--text-primary);
}

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

.content-block ul, .content-block ol {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 22px;
}

.content-block li {
  margin-bottom: 8px;
}

.alert-box {
  background: var(--badge-bg);
  border-left: 4px solid var(--primary-accent);
  padding: 18px 22px;
  border-radius: 8px;
  margin: 26px 0;
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.sitemap-card {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 26px;
  background: var(--bg-secondary);
}

.sitemap-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.15rem;
  color: var(--primary-accent);
}

.sitemap-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.sitemap-card li {
  margin-bottom: 10px;
}

.sitemap-card a {
  color: var(--text-primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sitemap-card a:hover {
  color: var(--primary-accent);
}

/* ================= SEO Article & Insights Portal Styles ================= */
.insights-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0 44px;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--badge-bg);
  color: var(--primary-accent);
  border-color: var(--primary-accent);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Featured Header / Hero Card */
.featured-post-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 40px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
}

.featured-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
}

.featured-post-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-lg), 0 0 35px var(--primary-glow);
}

.featured-post-content {
  display: flex;
  flex-direction: column;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 99, 132, 0.12);
  color: #ff6384;
  border: 1px solid rgba(255, 99, 132, 0.3);
  margin-bottom: 16px;
}

.featured-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.featured-title a:hover {
  color: var(--primary-accent);
}

.featured-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.featured-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.featured-tag-item {
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

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

/* Benchmark visual card on right */
.benchmark-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.15);
}

.benchmark-box-title {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.benchmark-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.benchmark-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.benchmark-label {
  color: var(--text-secondary);
}

.benchmark-value {
  font-weight: 700;
  color: var(--text-primary);
  font-family: monospace;
}

.benchmark-value.highlight {
  color: var(--primary-accent);
}

/* Module Section Header */
.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.module-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Standard Post Cards Grid */
.post-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.post-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 28px var(--primary-glow);
}

.post-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--badge-bg);
  color: var(--primary-accent);
  border: 1px solid var(--badge-border);
  margin-bottom: 16px;
}

.post-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card:hover .post-card-title a {
  color: var(--primary-accent);
}

.post-card-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
  flex-grow: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: auto;
}

.post-card-link {
  color: var(--primary-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.post-card:hover .post-card-link {
  gap: 8px;
}

/* Article Detail Page Styles */
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-header {
  padding: 56px 0 36px;
  text-align: center;
}

.article-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.6px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

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

/* Table of Contents (TOC) */
.article-toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-accent);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

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

.article-toc ol {
  padding-left: 20px;
  margin-bottom: 0;
}

.article-toc li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.article-toc a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.article-toc a:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}

/* Article Body Typography */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-body h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 44px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: -0.4px;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 30px 0 14px;
}

.article-body p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.article-body ul, .article-body ol {
  padding-left: 26px;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

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

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

.comparison-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

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

.comparison-table th, .comparison-table td {
  padding: 14px 18px;
  border: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--bg-tertiary);
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table tr:nth-child(even) {
  background: var(--bg-secondary);
}

/* Article FAQ */
.article-faq {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border-color);
}

.article-faq h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.faq-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.faq-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Related Reading Section */
.article-related {
  margin-top: 56px;
  padding-top: 38px;
  border-top: 1px solid var(--border-color);
}

.article-related h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 24px;
}

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

.related-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg-secondary);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  border-color: var(--primary-accent);
  transform: translateY(-3px);
  box-shadow: 0 0 16px var(--primary-glow);
}

.related-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.related-card:hover h4 {
  color: var(--primary-accent);
}

.related-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ================= Mobile Responsive (@media) ================= */
@media (max-width: 1024px) {
  .features-grid, .pricing-grid, .reviews-grid, .post-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-post-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 26px;
  }
  .pricing-card.popular {
    transform: none;
  }
  .pricing-card.popular:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-container {
    height: 64px;
  }

  .hero {
    padding: 60px 0 45px;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -0.6px;
  }

  .featured-title {
    font-size: 1.35rem;
  }

  .featured-post-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

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

  .hero-subtitle {
    font-size: 1.08rem;
    margin-bottom: 14px;
  }

  .hero-intro {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn-cta {
    width: 100%;
  }

  .hero-trust-bar {
    gap: 16px;
    justify-content: flex-start;
  }

  .trust-item {
    font-size: 0.82rem;
  }

  /* Single Column on Mobile */
  .features-grid,
  .showcase-grid,
  .pricing-grid,
  .reviews-grid,
  .sitemap-grid,
  .post-card-grid,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section {
    padding: 60px 0;
  }

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

  .section-head {
    margin-bottom: 36px;
  }

  .showcase-card {
    padding: 28px 20px;
  }

  .pricing-card {
    padding: 34px 22px;
  }

  .content-block {
    padding: 28px 20px;
  }

  .footer-nav-container {
    gap: 24px;
    flex-direction: column;
    text-align: center;
  }

  .footer-nav-link {
    font-size: 1.1rem;
    padding: 6px 0;
  }
}
