:root {
  color-scheme: light dark;
  --bg: #f6f0e8;
  --panel: rgba(255, 251, 246, 0.7);
  --panel-soft: rgba(255, 250, 243, 0.58);
  --panel-strong: rgba(255, 255, 255, 0.74);
  --line: rgba(115, 92, 67, 0.16);
  --text-primary: #221a14;
  --text-secondary: #645647;
  --text-muted: #9e8974;
  --accent: #9f6b34;
  --accent-2: #d8a96c;
  --shadow-soft: 0 24px 60px rgba(96, 74, 45, 0.12);
}

html.dark {
  --bg: #0f1116;
  --panel: rgba(22, 25, 33, 0.72);
  --panel-soft: rgba(20, 23, 31, 0.58);
  --panel-strong: rgba(18, 21, 29, 0.8);
  --line: rgba(225, 215, 201, 0.12);
  --text-primary: #f5efe7;
  --text-secondary: #c9bcaf;
  --text-muted: #8d8378;
  --accent: #f3b66f;
  --accent-2: #f6d0a0;
  --shadow-soft: 0 30px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(216, 169, 108, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(164, 118, 68, 0.1),
      transparent 28%
    ),
    var(--bg);
}

.theme-shell {
  position: relative;
  overflow-x: hidden;
}

.page-noise,
.page-gradient {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.page-noise {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 96px 96px;
  mix-blend-mode: soft-light;
}

.page-gradient-a {
  background: radial-gradient(
    circle at 15% 15%,
    rgba(224, 188, 136, 0.24),
    transparent 30%
  );
}

.page-gradient-b {
  background: radial-gradient(
    circle at 85% 30%,
    rgba(120, 133, 241, 0.12),
    transparent 26%
  );
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(212, 177, 138, 0.28)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.font-display {
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #6d7cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    transform 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease,
    color 240ms ease;
}

.hero-button:hover {
  transform: translateY(-2px);
}

.hero-button-primary {
  background: var(--text-primary);
  color: var(--bg);
}

.hero-button-secondary {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-primary);
  backdrop-filter: blur(14px);
}

.mini-stat,
.feature-panel,
.timeline-card,
.metrics-board,
.data-tile {
  box-shadow: var(--shadow-soft);
}

.mini-stat {
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--panel);
  padding: 1.2rem 1.1rem;
  backdrop-filter: blur(14px);
}

.mini-stat span {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
}

.mini-stat p {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.orbital-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent),
    var(--panel);
  padding: 1.5rem;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.orbital-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -36% auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(109, 124, 255, 0.18),
    transparent 68%
  );
}

.orbital-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.signal-pill {
  border-radius: 999px;
  border: 1px solid rgba(82, 208, 154, 0.35);
  background: rgba(82, 208, 154, 0.12);
  color: #1f9a66;
  padding: 0.5rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

html.dark .signal-pill {
  color: #85f0bd;
  background: rgba(82, 208, 154, 0.12);
}

.route-track__meta {
  margin-bottom: 0.55rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.route-track__bar {
  height: 0.78rem;
  border-radius: 999px;
  background: rgba(130, 113, 96, 0.14);
  overflow: hidden;
}

.route-track__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #6d7cff);
}

.data-tile {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--panel-soft);
  padding: 1.15rem;
}

.data-tile p,
.data-tile span {
  margin: 0;
  color: var(--text-secondary);
}

.data-tile strong {
  display: block;
  margin: 0.35rem 0;
  font-size: 1.5rem;
}

.pulse-node {
  position: absolute;
  z-index: 0;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), #6d7cff);
  opacity: 0.72;
  box-shadow: 0 0 0 0 rgba(109, 124, 255, 0.28);
  filter: blur(0.2px);
  animation: pulse 3.8s infinite;
}

.pulse-node-a {
  top: 0.2rem;
  right: 3.5rem;
}
.pulse-node-b {
  top: 1.54rem;
  left: 5.6rem;
  animation-delay: 0.8s;
}
.pulse-node-c {
  top: 1.54rem;
  left: 5.6rem;
  animation-delay: 1.6s;
}

.section-heading p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.section-heading h2 {
  max-width: 16ch;
  margin: 0.85rem 0 0;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
}

.section-heading--narrow h2 {
  max-width: 22ch;
}

.section-heading--left h2,
.section-copy {
  max-width: none;
}

.section-copy {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.02rem;
}

.feature-panel,
.timeline-card {
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background: var(--panel);
  padding: 1.4rem;
  backdrop-filter: blur(14px);
}

.feature-panel__icon,
.timeline-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  font-weight: 800;
}

html.dark .feature-panel__icon,
html.dark .timeline-card__index {
  background: rgba(255, 255, 255, 0.04);
}

.feature-panel h3,
.timeline-card h3 {
  margin: 1.2rem 0 0.75rem;
  font-size: 1.35rem;
}

.feature-panel p,
.timeline-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

.metrics-board {
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--panel);
  padding: 1.4rem;
  backdrop-filter: blur(18px);
}

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

.metrics-board__grid article {
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  padding: 1.2rem;
}

.metrics-board__grid span,
.metrics-board__grid em {
  display: block;
  color: var(--text-secondary);
  font-style: normal;
}

.metrics-board__grid strong {
  display: block;
  margin: 0.35rem 0;
  font-size: 2rem;
}

.chart-shell {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 1.7rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.02)
    );
  background-size:
    100% 52px,
    52px 100%,
    auto;
}

.chart-shell__line {
  position: absolute;
  inset: 20% 6% 24% 6%;
  background: linear-gradient(180deg, transparent, rgba(109, 124, 255, 0.08));
  clip-path: polygon(
    0 72%,
    12% 65%,
    22% 68%,
    36% 38%,
    47% 48%,
    62% 22%,
    76% 30%,
    89% 12%,
    100% 22%,
    100% 100%,
    0 100%
  );
}

.chart-shell__glow {
  position: absolute;
  inset: 0;
}

.chart-shell__glow::before {
  content: "";
  position: absolute;
  inset: 23% 6% auto 6%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #6d7cff);
  clip-path: polygon(
    0 100%,
    12% 78%,
    22% 82%,
    36% 30%,
    47% 43%,
    62% 0,
    76% 18%,
    89% 0,
    100% 12%,
    100% 100%,
    0 100%
  );
  filter: drop-shadow(0 0 16px rgba(109, 124, 255, 0.45));
}

.chart-shell__labels {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  left: 1.2rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(109, 124, 255, 0.36);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 20px rgba(109, 124, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(109, 124, 255, 0);
  }
}

@media (max-width: 1024px) {
  .orbital-card__header {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .metrics-board__grid {
    grid-template-columns: 1fr;
  }

  .chart-shell {
    min-height: 220px;
  }
}

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

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

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
