:root {
  color-scheme: dark;
  --bg: #06110f;
  --bg-soft: rgba(8, 23, 21, 0.76);
  --panel: rgba(12, 34, 31, 0.72);
  --panel-strong: rgba(16, 47, 43, 0.88);
  --text: #ecfff8;
  --muted: #9fc2b9;
  --line: rgba(187, 255, 236, 0.17);
  --green: #39f3ba;
  --cyan: #70caff;
  --gold: #ffd36d;
  --rose: #ff8f9d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(57, 243, 186, 0.16), transparent 30rem),
    radial-gradient(circle at 82% 12%, rgba(112, 202, 255, 0.16), transparent 26rem),
    linear-gradient(135deg, #030706 0%, var(--bg) 46%, #11100a 100%);
  color: var(--text);
  font-family:
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    "PingFang SC",
    "Hiragino Sans GB",
    system-ui,
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

#network-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.72;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(57, 243, 186, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(57, 243, 186, 0.24), rgba(112, 202, 255, 0.1));
  box-shadow: 0 0 28px rgba(57, 243, 186, 0.2);
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-name,
.brand-domain {
  display: block;
  line-height: 1.2;
}

.brand-name {
  font-weight: 800;
}

.brand-domain {
  margin-top: 2px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 9, 8, 0.46);
}

.top-nav a {
  min-width: 56px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  transition: color 180ms ease, background 180ms ease;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.68fr);
  gap: 48px;
  align-items: center;
  min-height: min(650px, calc(100svh - 112px));
  padding: 28px 0 42px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow,
.section-kicker,
.card-tag {
  color: var(--green);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 18px;
  max-width: 9em;
  font-size: clamp(4.2rem, 12vw, 9.8rem);
  font-weight: 900;
  line-height: 0.94;
  text-shadow: 0 0 42px rgba(57, 243, 186, 0.18);
}

h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.1;
}

.hero-text {
  width: min(620px, 100%);
  margin-top: 28px;
  color: #c7ded8;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  margin-left: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button:hover,
.nav-card:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(57, 243, 186, 0.8);
  background: linear-gradient(135deg, rgba(57, 243, 186, 0.32), rgba(112, 202, 255, 0.22));
  box-shadow: 0 0 36px rgba(57, 243, 186, 0.18);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.signal-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(187, 255, 236, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(12, 34, 31, 0.86), rgba(8, 17, 16, 0.78)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 10px);
  box-shadow: var(--shadow);
}

.signal-panel::before {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(57, 243, 186, 0.24), transparent),
    linear-gradient(180deg, transparent, rgba(255, 211, 109, 0.12), transparent);
  opacity: 0.7;
}

.signal-row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

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

.signal-row span,
.record-grid span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.signal-row strong {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.45rem);
}

.status-band,
.section-shell {
  margin-bottom: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.status-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
  padding: clamp(22px, 4vw, 38px);
}

.status-band > p {
  color: #c7ded8;
  line-height: 1.9;
}

.record-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.record-grid div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.record-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--gold);
  font-size: 1.2rem;
}

.section-shell {
  padding: clamp(22px, 4vw, 38px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

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

.nav-card {
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(18, 48, 43, 0.72), rgba(255, 255, 255, 0.035));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-card:hover {
  border-color: rgba(57, 243, 186, 0.64);
  background: linear-gradient(160deg, rgba(26, 69, 61, 0.86), rgba(112, 202, 255, 0.08));
}

.nav-card strong {
  margin-top: 28px;
  font-size: 1.28rem;
}

.nav-card p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.card-status {
  width: fit-content;
  margin-top: auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 211, 109, 0.28);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.82rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: 30px;
  align-items: start;
}

.about-layout > p {
  color: #c7ded8;
  font-size: 1.05rem;
  line-height: 1.9;
}

.timeline {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 52px minmax(80px, 0.34fr) minmax(150px, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline span {
  color: var(--rose);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 700;
}

.timeline strong {
  color: var(--text);
}

.timeline em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  min-height: 112px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-primary,
.footer-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer-primary {
  min-width: fit-content;
}

.footer-records {
  justify-content: flex-end;
  color: #b8d2cb;
  line-height: 1.8;
}

.site-footer a,
.footer-records a {
  color: var(--green);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 700;
}

.police-record {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.police-record img {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

@media (max-width: 920px) {
  .hero,
  .status-band,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .signal-panel {
    max-width: 560px;
  }

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

  .record-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 24px, 1180px);
    align-items: flex-start;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .top-nav {
    gap: 2px;
  }

  .top-nav a {
    min-width: 42px;
    padding: 8px 7px;
    font-size: 0.84rem;
  }

  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(3.5rem, 19vw, 5.4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav-grid {
    grid-template-columns: 1fr;
  }

  .nav-card {
    min-height: 210px;
  }

  .timeline li {
    grid-template-columns: 44px 1fr;
  }

  .timeline em {
    grid-column: 2;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .footer-records {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
