:root {
  --bg: #020302;
  --bg-soft: rgba(3, 10, 6, 0.86);
  --panel: rgba(4, 12, 8, 0.84);
  --panel-strong: rgba(4, 16, 10, 0.95);
  --line: rgba(116, 255, 168, 0.14);
  --text: #ecffee;
  --text-soft: #8fbe9c;
  --glow: #64ff9a;
  --glow-strong: #dcffe7;
  --accent: #14d85d;
  --accent-deep: #0d7c39;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(38, 160, 81, 0.08), transparent 22%),
    linear-gradient(180deg, #000000 0%, #020503 22%, #010201 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

#matrix-canvas,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#matrix-canvas {
  z-index: 0;
  opacity: 0.72;
}

.noise {
  z-index: 1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(109, 255, 159, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 255, 159, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px, 100% 6px;
  mix-blend-mode: screen;
}

.hero,
.section,
.footer {
  position: relative;
  z-index: 2;
}

.hero {
  padding: 28px 6vw 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  background: rgba(1, 7, 4, 0.62);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(17, 91, 44, 0.92), rgba(41, 227, 111, 0.92));
  color: #021609;
  font-weight: 800;
}

.brand-text,
.topbar-links a,
.eyebrow,
.card-code,
.section-title span,
.panel-head,
.console-head,
.mini-card span {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  gap: 24px;
  color: var(--text-soft);
}

.topbar-links a:hover {
  color: var(--glow-strong);
  text-shadow: 0 0 16px rgba(112, 255, 171, 0.56);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.95;
  text-shadow: 0 0 18px rgba(100, 255, 154, 0.15);
}

.eyebrow {
  color: var(--glow);
  font-size: 13px;
}

.lead,
.info-card p,
.module-card p,
.timeline-step p,
.console-screen,
.mini-card {
  color: var(--text-soft);
  line-height: 1.75;
}

.lead {
  max-width: 700px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 32px 0 34px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  color: #021108;
  background: linear-gradient(135deg, #53ff96 0%, #0fb657 100%);
  box-shadow: 0 0 22px rgba(83, 255, 150, 0.24);
}

.btn-secondary {
  background: rgba(2, 10, 6, 0.72);
  color: var(--glow-strong);
}

.btn-secondary:hover,
.btn-primary:hover {
  box-shadow: 0 0 28px rgba(83, 255, 150, 0.32);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-stats li,
.panel-frame,
.info-card,
.module-card,
.timeline-step,
.console-shell,
.mini-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 12, 8, 0.86), rgba(2, 7, 4, 0.96));
  box-shadow: var(--shadow);
}

.hero-stats li {
  padding: 20px;
  border-radius: 20px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--glow-strong);
  font-size: 34px;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.panel-frame {
  width: min(100%, 470px);
  padding: 24px;
  border-radius: 28px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.panel-frame::after,
.console-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.panel-head,
.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: 12px;
}

.status-live,
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-live::before,
.status-dot::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #69ff9f;
  box-shadow: 0 0 18px rgba(105, 255, 159, 0.95);
}

.panel-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.signal-ring {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.ring,
.ring-center {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.ring {
  border: 1px solid rgba(112, 255, 171, 0.18);
  box-shadow: inset 0 0 18px rgba(100, 255, 154, 0.06), 0 0 18px rgba(100, 255, 154, 0.08);
}

.ring-a {
  transform: scale(1);
  animation: pulse 3.6s linear infinite;
}

.ring-b {
  transform: scale(0.72);
  animation: pulse 3.6s linear infinite 1.2s;
}

.ring-center {
  inset: 62px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(81, 255, 144, 0.3), rgba(6, 25, 14, 0.9));
  border: 1px solid rgba(112, 255, 171, 0.26);
  color: var(--glow-strong);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.signal-list {
  display: grid;
  gap: 14px;
}

.signal-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(112, 255, 171, 0.1);
  color: var(--text-soft);
}

.signal-item b {
  color: var(--glow-strong);
}

.section {
  padding: 28px 6vw 54px;
}

.section-title {
  margin-bottom: 28px;
}

.section-title span {
  color: var(--glow);
  font-size: 12px;
}

.section-title h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.08;
  text-shadow: 0 0 16px rgba(100, 255, 154, 0.08);
}

.system-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.info-card,
.module-card,
.timeline-step {
  padding: 24px;
  border-radius: 24px;
  backdrop-filter: blur(8px);
}

.card-code {
  color: var(--glow);
  font-size: 12px;
}

.module-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin-bottom: 18px;
  color: #04210e;
  font-weight: 800;
  font-size: 26px;
  background: linear-gradient(135deg, #a7ffca, #13ba55);
  box-shadow: 0 0 20px rgba(20, 216, 93, 0.25);
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline-step strong {
  display: inline-block;
  color: var(--glow);
  font-size: 34px;
  margin-bottom: 10px;
}

.console-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 320px;
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.console-main,
.console-side {
  min-width: 0;
}

.console-screen {
  min-height: 330px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(112, 255, 171, 0.12);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(2, 10, 5, 0.96)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 4px);
  font-family: "Consolas", "Microsoft YaHei", monospace;
  white-space: pre-wrap;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.65);
}

.console-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(100, 255, 154, 0.03) 50%, transparent 100%);
  animation: sweep 4s linear infinite;
  pointer-events: none;
}

.console-screen .line {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 0.45s ease forwards;
}

.console-side {
  display: grid;
  gap: 14px;
}

.mini-card {
  padding: 20px;
  border-radius: 22px;
}

.mini-card strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
  color: var(--glow-strong);
}

.lead::before,
.lead::after,
.section-title span::before {
  content: "[";
  color: var(--glow);
  margin-right: 6px;
}

.lead::after {
  content: "]";
  margin-left: 6px;
  margin-right: 0;
}

.section-title span::before {
  content: ">";
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 6vw 40px;
  color: var(--text-soft);
}

@keyframes pulse {
  0% {
    opacity: 0.3;
    transform: scale(0.72);
  }
  70% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sweep {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .console-shell,
  .module-grid,
  .system-grid,
  .timeline-track {
    grid-template-columns: 1fr;
  }

  .panel-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 18px;
  }

  .topbar,
  .footer,
  .topbar-links,
  .hero-actions,
  .hero-stats {
    flex-direction: column;
  }

  .topbar-links,
  .hero-stats {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 42px;
    line-height: 1.04;
  }

  .panel-frame,
  .console-shell {
    padding: 18px;
  }

  .signal-ring {
    width: 180px;
    height: 180px;
  }

  .ring-center {
    inset: 48px;
  }
}
