:root {
  color-scheme: dark;
  --bg: #07090d;
  --text: #f4f7fb;
  --muted: #a8b1c4;
  --line: rgba(244, 247, 251, 0.16);
  --line-strong: rgba(244, 247, 251, 0.28);
  --panel: rgba(13, 17, 24, 0.78);
  --cyan: #5ee7ff;
  --amber: #ffcf5d;
  --pink: #ff6fae;
  --green: #77f2b3;
  --shadow: rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  line-height: 1.55;
}

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

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

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 20px rgba(94, 231, 255, 0.58);
  transform: rotate(45deg);
}

.nav-links {
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.5);
  backdrop-filter: blur(16px);
}

.nav-links a {
  min-width: 64px;
  padding: 8px 12px;
  border: 1px solid transparent;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line-strong);
  color: var(--text);
  outline: none;
}

.hero {
  display: grid;
  align-content: center;
  min-height: 78svh;
  padding: 54px 0 42px;
}

.hero-kicker,
.section-heading p,
.status-label {
  margin: 0;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 16px 0 0;
  font-size: 5.5rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

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

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  border-color: rgba(94, 231, 255, 0.68);
  background: rgba(94, 231, 255, 0.14);
  color: var(--text);
  box-shadow: 0 16px 46px rgba(94, 231, 255, 0.12);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin-top: 42px;
}

.signal-strip span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.52);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.signal-strip b {
  color: var(--amber);
}

.section-band {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.08;
  letter-spacing: 0;
}

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

.entry-card {
  display: grid;
  min-height: 220px;
  align-content: end;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 80px var(--shadow);
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.entry-card:nth-child(2) .entry-index {
  color: var(--pink);
}

.entry-card:nth-child(3) .entry-index {
  color: var(--green);
}

.entry-card:hover,
.entry-card:focus-visible {
  border-color: rgba(94, 231, 255, 0.62);
  background: rgba(17, 22, 31, 0.88);
  outline: none;
  transform: translateY(-4px);
}

.entry-index {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
}

.entry-card h3 {
  margin: 0;
  font-size: 1.46rem;
}

.entry-card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 90px;
}

.status-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.status-panel > div {
  min-height: 122px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.58);
  backdrop-filter: blur(16px);
}

.status-panel strong {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 28px, 680px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    min-width: 0;
  }

  .hero {
    min-height: 76svh;
    padding-top: 38px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .entry-grid,
  .split,
  .status-panel {
    grid-template-columns: 1fr;
  }

  .section-band {
    padding: 56px 0;
  }

  .section-heading h2 {
    font-size: 2rem;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.62rem;
  }

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

  .signal-strip span {
    width: 100%;
  }
}

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

  .button,
  .entry-card {
    transition: none;
  }
}
