:root {
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-hero: #ffffff;
  --bg-hero-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-on-dark: #0f172a;
  --text-on-dark-muted: #334155;
  --brand-accent: #c2410c;
  --brand-accent-hover: #9a3412;
  --brand-soft: #fff7ed;
  --brand-soft-border: #fdba74;
  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;
  --focus-ring: #2563eb;
  --success-text: #065f46;
  --success-bg: #ecfdf5;
  --container-max: 1120px;
  --container-prose: 780px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.1);
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin-top: 0;
}

section[id],
article[id],
div[id] {
  scroll-margin-top: 5.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background-color: var(--bg-hero);
  color: var(--text-on-dark);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-prose {
  width: 100%;
  max-width: var(--container-prose);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 0.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.15rem;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-link img {
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

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

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.65rem;
  min-height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand-accent);
  background-color: var(--brand-soft);
}

.site-nav .nav-cta {
  background-color: var(--brand-accent);
  color: #ffffff;
  padding-inline: 1rem;
  margin-left: 0.25rem;
}

.site-nav .nav-cta:hover {
  background-color: var(--brand-accent-hover);
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--brand-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--brand-accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-outline {
  background-color: var(--bg-surface);
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}

.btn-outline:hover {
  background-color: var(--brand-soft);
  color: var(--brand-accent-hover);
}

/* Hero Section */
.hero {
  background-color: var(--bg-hero);
  color: var(--text-primary);
  padding-block: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 2.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background-color: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  color: var(--brand-accent-hover);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.22;
  margin-bottom: 1rem;
  color: #993E24;
  background-image: linear-gradient(
    90deg,
    #993E24 0%,
    #CE6332 25%,
    #C47620 50%,
    #CE6332 75%,
    #993E24 100%
  );
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroTitleFlow 3s ease-in-out infinite;
}

[data-theme="dark"] .hero h1,
.theme-dark .hero h1 {
  background-image: linear-gradient(
    90deg,
    #993E24 0%,
    #CE6332 25%,
    #E79B45 50%,
    #CE6332 75%,
    #993E24 100%
  );
}

@keyframes heroTitleFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-lead {
  font-size: 1.075rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero Network Monitor 2.0 */
.hero-monitor {
  position: relative;
  overflow: hidden;
  background-color: #FCF9F5;
  color: #25282C;
  border: 1px solid #EAE2D9;
  border-radius: 16px;
  padding: 1.25rem 1.25rem 0;
  box-shadow: 0 12px 32px rgba(37, 40, 44, 0.06);
  min-width: 0;
}

.monitor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.monitor-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #25282C;
  line-height: 1.3;
}

.monitor-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6B7280;
  margin-top: 0.15rem;
}

.monitor-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background-color: #EDF8F2;
  border: 1px solid #C6EAD8;
  color: #236B4B;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #44A77B;
  animation: statusBreathe 2s ease-in-out infinite;
}

@keyframes statusBreathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.monitor-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.metric-box {
  background-color: #FFFFFF;
  border: 1px solid #EFE7DE;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: #646A73;
  margin-bottom: 0.15rem;
}

.metric-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #25282C;
  font-variant-numeric: tabular-nums;
}

.monitor-trend-wrap {
  background-color: #FFFFFF;
  border: 1px solid #EFE7DE;
  border-radius: 10px;
  padding: 0.4rem 0.5rem 0.25rem;
  margin-bottom: 0.9rem;
}

.monitor-trend-svg {
  width: 100%;
  height: 68px;
}

#global-trend-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: dotHaloPulse 1.8s ease-in-out infinite;
}

@keyframes dotHaloPulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.45);
    opacity: 0.55;
  }
}

.monitor-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.monitor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.monitor-table thead th {
  font-size: 0.76rem;
  font-weight: 700;
  color: #646A73;
  text-align: left;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid #E8DFD5;
  white-space: nowrap;
}

.monitor-table thead th.col-num,
.monitor-table thead th.col-wave,
.monitor-table thead th.col-sig {
  text-align: right;
}

.monitor-row {
  transition: background-color 0.45s ease;
}

.monitor-row td {
  padding: 0.46rem 0.4rem;
  border-bottom: 1px solid #F1EAE1;
  vertical-align: middle;
}

.monitor-row:last-child td {
  border-bottom: 0;
}

.monitor-row.is-scanning {
  background-color: rgba(201, 112, 67, 0.085);
}

.monitor-row:hover {
  background-color: rgba(201, 112, 67, 0.12);
}

.node-region {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #25282C;
  white-space: nowrap;
}

.flag-svg {
  flex-shrink: 0;
  border-radius: 2px;
}

.col-num {
  text-align: right;
  white-space: nowrap;
}

.latency-num {
  display: inline-block;
  min-width: 3.6rem;
  text-align: right;
  font-weight: 700;
  color: #25282C;
  font-variant-numeric: tabular-nums;
}

.latency-num.is-updating {
  animation: numFade 0.35s ease;
}

@keyframes numFade {
  0% {
    opacity: 0.45;
  }
  100% {
    opacity: 1;
  }
}

.col-wave {
  text-align: right;
}

.node-spark-svg {
  display: inline-block;
  vertical-align: middle;
  width: 60px;
  height: 24px;
  overflow: hidden;
}

.col-sig {
  text-align: right;
  white-space: nowrap;
}

.signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
  vertical-align: middle;
}

.sig-bar {
  display: block;
  width: 3px;
  border-radius: 1.5px;
  background-color: #1EB974;
  transform-origin: bottom center;
}

.sig-bar.b1 { height: 6px;  animation: sigPulse 1.35s ease-in-out infinite; }
.sig-bar.b2 { height: 9px;  animation: sigPulse 1.75s ease-in-out 0.28s infinite; }
.sig-bar.b3 { height: 12px; animation: sigPulse 1.55s ease-in-out 0.54s infinite; }
.sig-bar.b4 { height: 15px; animation: sigPulse 1.95s ease-in-out 0.82s infinite; }

.monitor-row:nth-child(2) .sig-bar.b1 { animation-duration: 1.62s; animation-delay: 0.19s; }
.monitor-row:nth-child(2) .sig-bar.b2 { animation-duration: 1.44s; animation-delay: 0.61s; }
.monitor-row:nth-child(2) .sig-bar.b3 { animation-duration: 1.88s; animation-delay: 0.35s; }
.monitor-row:nth-child(2) .sig-bar.b4 { animation-duration: 1.52s; animation-delay: 0.92s; }

.monitor-row:nth-child(3) .sig-bar.b1 { animation-duration: 1.81s; animation-delay: 0.44s; }
.monitor-row:nth-child(3) .sig-bar.b2 { animation-duration: 1.58s; animation-delay: 0.12s; }
.monitor-row:nth-child(3) .sig-bar.b3 { animation-duration: 1.39s; animation-delay: 0.77s; }
.monitor-row:nth-child(3) .sig-bar.b4 { animation-duration: 1.92s; animation-delay: 0.33s; }

.monitor-row:nth-child(4) .sig-bar.b1 { animation-duration: 1.48s; animation-delay: 0.71s; }
.monitor-row:nth-child(4) .sig-bar.b2 { animation-duration: 1.86s; animation-delay: 0.38s; }
.monitor-row:nth-child(4) .sig-bar.b3 { animation-duration: 1.64s; animation-delay: 0.15s; }
.monitor-row:nth-child(4) .sig-bar.b4 { animation-duration: 1.42s; animation-delay: 0.59s; }

.monitor-row:nth-child(5) .sig-bar.b1 { animation-duration: 1.72s; animation-delay: 0.25s; }
.monitor-row:nth-child(5) .sig-bar.b2 { animation-duration: 1.49s; animation-delay: 0.84s; }
.monitor-row:nth-child(5) .sig-bar.b3 { animation-duration: 1.94s; animation-delay: 0.47s; }
.monitor-row:nth-child(5) .sig-bar.b4 { animation-duration: 1.66s; animation-delay: 0.11s; }

@keyframes sigPulse {
  0%,
  100% {
    transform: scaleY(0.42);
    opacity: 0.72;
  }
  50% {
    transform: scaleY(1.08);
    opacity: 1;
  }
}

.monitor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding-block: 0.65rem 0.75rem;
  border-top: 1px solid #EAE2D9;
  font-size: 0.74rem;
  color: #646A73;
}

.monitor-countdown {
  font-weight: 700;
  color: #A8542B;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.monitor-progress-track {
  margin-inline: -1.25rem;
  height: 2.5px;
  background-color: #F0E7DD;
}

.monitor-progress-bar {
  width: 100%;
  height: 100%;
  background-color: #C97043;
  transform-origin: left center;
  transform: scaleX(0);
}

.monitor-progress-bar.is-running {
  animation: monitorProgress 3s linear forwards;
}

@keyframes monitorProgress {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

/* Dark theme compatibility for Hero monitor */
[data-theme="dark"] .hero-monitor,
.theme-dark .hero-monitor {
  background-color: #181C22;
  color: #E5E7EB;
  border-color: #2B313B;
}

[data-theme="dark"] .metric-box,
[data-theme="dark"] .monitor-trend-wrap,
.theme-dark .metric-box,
.theme-dark .monitor-trend-wrap {
  background-color: #1F242C;
  border-color: #2E3540;
}

[data-theme="dark"] .monitor-title,
[data-theme="dark"] .metric-value,
[data-theme="dark"] .node-region,
[data-theme="dark"] .latency-num,
.theme-dark .monitor-title,
.theme-dark .metric-value,
.theme-dark .node-region,
.theme-dark .latency-num {
  color: #F3F4F6;
}

[data-theme="dark"] .monitor-row td,
[data-theme="dark"] .monitor-table thead th,
[data-theme="dark"] .monitor-footer,
.theme-dark .monitor-row td,
.theme-dark .monitor-table thead th,
.theme-dark .monitor-footer {
  border-color: #2B313B;
}

/* Sections */
.section {
  padding-block: var(--space-xl);
}

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

.section-head {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.3;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.section-head p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Feature & Review Grids */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.card-icon {
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Pricing Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.pricing-table caption {
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.pricing-table thead th {
  background-color: #f8fafc;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.pricing-table tbody tr:hover {
  background-color: #fff7ed;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-tag {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-accent);
  white-space: nowrap;
}

.plan-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  background-color: var(--brand-soft);
  color: var(--brand-accent-hover);
  border: 1px solid var(--brand-soft-border);
}

.table-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Streaming & AI Showcase */
.split-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  padding: 0.85rem 1rem;
  background-color: var(--bg-subtle);
  border-left: 4px solid var(--brand-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

/* Rating Summary & Reviews */
.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
}

.rating-score {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-accent-hover);
}

.review-meta {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* FAQ Details */
.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin-inline: auto;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-subtle);
}

.faq-answer {
  padding: 1rem 1.25rem 1.2rem;
  color: var(--text-secondary);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Subpages, Knowledge Hub & Articles */
.subpage-hero {
  background-color: var(--bg-hero);
  color: var(--text-primary);
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.subpage-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.subpage-hero p {
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: 48rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--brand-accent);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.article-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background-color: var(--brand-soft);
  color: var(--brand-accent-hover);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.prose-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.prose-card h2 {
  font-size: 1.38rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

.prose-card h3 {
  font-size: 1.12rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose-card p,
.prose-card ul,
.prose-card ol {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.prose-card ul,
.prose-card ol {
  padding-left: 1.35rem;
}

.related-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.related-box h2 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.related-box ul {
  margin-bottom: 0;
  display: grid;
  gap: 0.45rem;
}

.cta-banner {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-banner p {
  margin: 0;
  color: var(--text-secondary);
}

.sitemap-list {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.25rem;
}

/* Footer: strictly 4 headings */
.site-footer {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  padding-block: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.footer-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.footer-item h2 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.footer-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-accent);
  font-weight: 700;
  text-decoration: none;
}

.footer-item a:hover {
  color: var(--brand-accent-hover);
  text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .hero-grid,
  .split-showcase {
    grid-template-columns: 1fr;
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.75rem;
  }

  .site-nav {
    width: 100%;
    gap: 0.35rem;
  }

  .site-nav a {
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem;
  }

  .hero {
    padding-block: 2.5rem;
  }

  .hero-highlights,
  .card-grid-3,
  .card-grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .prose-card {
    padding: 1.25rem;
  }

  .hero-monitor {
    padding: 1rem 1rem 0;
  }

  .monitor-progress-track {
    margin-inline: -1rem;
  }

  .monitor-table {
    font-size: 0.82rem;
  }

  .monitor-table thead th,
  .monitor-row td {
    padding-inline: 0.25rem;
  }

  .node-spark-svg {
    width: 48px;
    height: 22px;
  }

  .latency-num {
    min-width: 3.1rem;
  }

  .monitor-footer {
    flex-wrap: wrap;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero h1 {
    animation: none;
    background-position: 25% 50%;
  }

  *,
  *::before,
  *::after {
    transition: none;
    animation: none;
  }
}
