:root {
  --bg-deep: #050B14;
  --bg-surface: rgba(10, 22, 42, 0.78);
  --bg-surface-strong: rgba(13, 28, 52, 0.92);
  --cyan: #22D3EE;
  --cyan-light: #67E8F9;
  --cyan-dim: rgba(34, 211, 238, 0.14);
  --border-cyan: rgba(34, 211, 238, 0.24);
  --border-subtle: rgba(199, 213, 232, 0.1);
  --text-main: #C7D5E8;
  --text-strong: #F1F7FF;
  --text-muted: #5B7392;
  --status-red: #F43F5E;
  --status-amber: #F59E0B;
  --status-green: #10B981;
  --font-display: "Sora", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Sora", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --radius-md: 12px;
  --radius-lg: 18px;
  --container: 1180px;
}

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

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.72;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#mesh-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
}

a {
  color: var(--cyan-light);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #FFFFFF;
}

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

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

.cyan {
  color: var(--cyan);
}

.mono {
  font-family: var(--font-mono);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 11, 20, 0.82);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(10, 26, 48, 0.9));
  border: 1px solid var(--cyan);
  display: grid;
  place-items: center;
  color: var(--cyan-light);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.28);
}

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

.nav-links a {
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.nav-links a.nav-highlight {
  color: var(--cyan-light);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-cyan);
  color: var(--cyan-light);
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #22D3EE, #0EA5E9);
  color: #050B14;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.34);
}

.btn-primary:hover {
  color: #050B14;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(34, 211, 238, 0.5);
}

.btn-outline {
  background: rgba(13, 28, 52, 0.65);
  color: var(--cyan-light);
  border-color: var(--border-cyan);
}

.btn-outline:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: var(--cyan);
  color: #FFFFFF;
}

/* Hero Section */
.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--border-cyan);
  color: var(--cyan-light);
  font-size: 0.86rem;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.15rem);
  line-height: 1.2;
  color: var(--text-strong);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.06rem;
  color: var(--text-main);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.28rem;
  color: var(--cyan-light);
  font-weight: 600;
}

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

/* Mission Control Card */
.console-card {
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 36px rgba(34, 211, 238, 0.12);
  backdrop-filter: blur(16px);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.console-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--status-red);
  box-shadow: 0 0 10px var(--status-red);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.status-dot.connecting {
  background: var(--status-amber);
  box-shadow: 0 0 12px var(--status-amber);
  animation: pulseDot 1s infinite ease-in-out;
}

.status-dot.connected {
  background: var(--status-green);
  box-shadow: 0 0 14px var(--status-green);
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.72; }
}

.console-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-strong);
}

.console-clock {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cyan-light);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(5, 11, 20, 0.7);
  border: 1px solid var(--border-subtle);
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}

.node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(5, 11, 20, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.93rem;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.node-row:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(13, 30, 56, 0.75);
}

.node-row.active {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.14);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.16);
}

.node-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.node-tag {
  font-size: 0.75rem;
  color: var(--cyan-light);
  background: rgba(34, 211, 238, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
}

.node-ping {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--cyan-light);
}

.telemetry-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(5, 11, 20, 0.86);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.telemetry-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.04rem;
  color: var(--cyan-light);
  font-weight: 600;
}

.telemetry-status {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
}

.console-connect-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #22D3EE, #0284C7);
  color: #050B14;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.3);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.25s ease;
}

.console-connect-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(34, 211, 238, 0.45);
}

.console-connect-btn.is-connected {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.35);
}

/* Section Layout */
.section {
  padding: 72px 0;
}

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

.section-kicker {
  display: inline-block;
  font-size: 0.84rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  color: var(--text-strong);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.glass-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.compact-card {
  padding: 20px;
  margin-bottom: 24px;
}

.compact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  color: var(--cyan-light);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 14px;
}

.glass-card h3 {
  font-size: 1.15rem;
  color: var(--text-strong);
  margin-bottom: 10px;
  font-weight: 600;
}

.glass-card p {
  font-size: 0.94rem;
  color: var(--text-main);
}

.feature-visual {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  background: #050B14;
}

/* Streaming & AI cards */
.media-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pill-tag {
  font-size: 0.82rem;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--border-cyan);
  color: var(--cyan-light);
}

/* Pricing */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px;
}

.pricing-card.recommended {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(16, 40, 68, 0.92), rgba(8, 20, 38, 0.94));
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.18);
}

.plan-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--cyan);
  color: #050B14;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan-name {
  font-size: 1.2rem;
  color: var(--text-strong);
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 2.15rem;
  color: var(--cyan-light);
  font-weight: 700;
  margin-bottom: 16px;
}

.plan-price span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.plan-features li {
  font-size: 0.94rem;
  padding-left: 20px;
  position: relative;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* Testimonials */
.review-stars {
  color: var(--cyan);
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-quote {
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: var(--text-main);
}

.review-author {
  font-size: 0.88rem;
  color: var(--text-strong);
  font-weight: 600;
}

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

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

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

.faq-question {
  width: 100%;
  min-height: 52px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-strong);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-question span.faq-plus {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  color: var(--text-main);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 9, 17, 0.92);
  padding: 28px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-main);
  font-size: 0.92rem;
  padding: 6px 0;
}

.footer-links a:hover {
  color: var(--cyan);
}

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

/* Subpages & Articles */
.subpage-hero {
  padding: 54px 0 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.subpage-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--text-strong);
  line-height: 1.3;
  margin-bottom: 12px;
}

.article-layout {
  padding: 42px 0 70px;
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}

.article-body h2 {
  font-size: 1.42rem;
  color: var(--cyan-light);
  margin: 30px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--cyan);
}

.article-body h3 {
  font-size: 1.15rem;
  color: var(--text-strong);
  margin: 22px 0 10px;
}

.article-body p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text-main);
  text-align: justify;
}

.article-body ul,
.article-body ol {
  margin: 12px 0 18px 22px;
}

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

.article-cta-box {
  margin-top: 34px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border-cyan);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Tables */
.data-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(5, 11, 20, 0.8);
  font-size: 0.93rem;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan-light);
  font-weight: 600;
}

/* Diagnostic Tool */
.diag-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.diag-btn {
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(5, 11, 20, 0.72);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.diag-btn:hover,
.diag-btn.selected {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.14);
  color: #FFFFFF;
}

.diag-result {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(5, 11, 20, 0.88);
  border: 1px solid var(--border-cyan);
  margin-top: 14px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .diag-options {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 46px 0 42px;
  }

  .article-body {
    padding: 24px 20px;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 24px 20px;
    background: rgba(5, 11, 20, 0.96);
    border-bottom: 1px solid var(--border-cyan);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

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

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
