:root {
  color-scheme: dark;
  --bg: #05060a;
  --panel: rgba(10, 15, 26, 0.82);
  --panel-strong: rgba(15, 21, 35, 0.96);
  --text: #f4fbff;
  --muted: #a9b9c8;
  --cyan: #28f7ff;
  --green: #61ff9c;
  --pink: #ff4fd8;
  --amber: #ffd166;
  --violet: #8f7cff;
  --line: rgba(145, 246, 255, 0.28);
  --shadow: rgba(40, 247, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.5), rgba(5, 6, 10, 0.9)),
    radial-gradient(circle at 15% 0%, rgba(40, 247, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 85% 8%, rgba(255, 79, 216, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(40, 247, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 79, 216, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(58deg) translateY(-19rem);
  transform-origin: top;
  animation: grid-drift 18s linear infinite;
}

.stellar-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(97, 255, 156, 0.55) 0 1px, transparent 1.5px);
  background-position: 0 0, 30px 45px;
  background-size: 210px 210px, 270px 270px;
  opacity: 0.22;
  animation: star-shift 22s linear infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 10, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(40, 247, 255, 0.16), rgba(255, 79, 216, 0.15));
  box-shadow: 0 0 24px var(--shadow);
  color: var(--cyan);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.65rem 0.85rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  border-color: rgba(40, 247, 255, 0.28);
  background: rgba(40, 247, 255, 0.08);
  outline: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: 3rem;
  min-height: calc(100vh - 72px);
  padding: 5rem 0 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.4rem;
  font-size: 4.35rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.hero-lede {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.primary-action {
  border: 1px solid rgba(40, 247, 255, 0.82);
  background: linear-gradient(135deg, rgba(40, 247, 255, 0.95), rgba(97, 255, 156, 0.9));
  color: #031015;
  box-shadow: 0 0 30px rgba(40, 247, 255, 0.26);
}

.secondary-action {
  border: 1px solid rgba(255, 79, 216, 0.55);
  color: var(--text);
  background: rgba(255, 79, 216, 0.1);
}

.signal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 720px;
  margin: 0;
}

.signal-stats div {
  min-height: 92px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.signal-stats dt {
  margin-bottom: 0.45rem;
  color: var(--cyan);
  font-weight: 900;
}

.signal-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  min-height: 570px;
  border: 1px solid rgba(40, 247, 255, 0.26);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(6, 10, 16, 0.72);
  box-shadow:
    0 0 80px rgba(40, 247, 255, 0.16),
    inset 0 0 50px rgba(255, 79, 216, 0.08);
}

.hero-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.2) contrast(1.12);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent, rgba(5, 6, 10, 0.28)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.orbit-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.orbit-panel::before,
.orbit-panel::after {
  position: absolute;
  content: "";
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid rgba(40, 247, 255, 0.34);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}

.orbit-panel::after {
  width: 56%;
  border-color: rgba(255, 209, 102, 0.4);
  animation-duration: 18s;
  animation-direction: reverse;
}

.ping {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.ping-a {
  top: 24%;
  left: 18%;
  animation: pulse 1.9s ease-in-out infinite;
}

.ping-b {
  right: 20%;
  bottom: 25%;
  background: var(--pink);
  box-shadow: 0 0 18px var(--pink);
  animation: pulse 2.4s ease-in-out infinite;
}

.ping-c {
  top: 42%;
  right: 12%;
  background: var(--amber);
  box-shadow: 0 0 18px var(--amber);
  animation: pulse 2.1s ease-in-out infinite;
}

.code-window {
  position: relative;
  z-index: 3;
  width: min(360px, 92%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 7, 12, 0.86);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.window-lights {
  display: flex;
  gap: 0.4rem;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
}

.window-lights span:nth-child(2) {
  background: var(--amber);
}

.window-lights span:nth-child(3) {
  background: var(--green);
}

pre {
  margin: 0;
  padding: 1.1rem;
  overflow-x: auto;
  color: #d7fbff;
  font: 0.9rem/1.75 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.section {
  padding: 5rem 0;
}

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

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

.post-card {
  position: relative;
  min-height: 260px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
  overflow: hidden;
}

.post-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--green));
  opacity: 0.72;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 247, 255, 0.4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.post-card.hot {
  background:
    linear-gradient(135deg, rgba(40, 247, 255, 0.18), rgba(255, 79, 216, 0.1)),
    var(--panel-strong);
}

.post-kicker {
  margin-bottom: 1.1rem;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
}

.post-card p:not(.post-kicker) {
  color: var(--muted);
  line-height: 1.7;
}

.post-card a {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 800;
}

.post-card a:hover,
.post-card a:focus-visible {
  color: var(--green);
  outline: none;
}

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

.gif-grid figure {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.gif-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gif-grid figcaption {
  padding: 0.9rem 1rem;
  color: var(--text);
  font-weight: 800;
}

.radar-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: stretch;
}

.radar-screen {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(97, 255, 156, 0.28);
  border-radius: 8px;
  background:
    repeating-radial-gradient(circle at center, transparent 0 46px, rgba(97, 255, 156, 0.14) 47px 48px),
    linear-gradient(135deg, rgba(97, 255, 156, 0.06), rgba(143, 124, 255, 0.12)),
    rgba(5, 9, 12, 0.9);
  overflow: hidden;
}

.radar-line {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 46%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  transform-origin: left center;
  animation: radar 4s linear infinite;
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan);
}

.node-1 {
  top: 22%;
  left: 36%;
}

.node-2 {
  top: 53%;
  left: 67%;
  background: var(--pink);
  box-shadow: 0 0 22px var(--pink);
}

.node-3 {
  bottom: 24%;
  left: 26%;
  background: var(--amber);
  box-shadow: 0 0 22px var(--amber);
}

.node-4 {
  right: 24%;
  top: 18%;
  background: var(--green);
  box-shadow: 0 0 22px var(--green);
}

.radar-list {
  display: grid;
  gap: 1rem;
}

.radar-list article {
  min-height: 128px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: var(--panel);
}

.radar-list span {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--pink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.radar-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--cyan);
  text-decoration: none;
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 128px, 128px 0;
  }
}

@keyframes star-shift {
  to {
    background-position: 210px 210px, 300px 315px;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes radar {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 980px) {
  .hero,
  .radar-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 460px;
  }

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

  h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 20px;
  }

  .nav-links {
    justify-content: flex-start;
  }

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

  .hero {
    gap: 2rem;
    padding-top: 3rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.8rem;
  }

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

  .signal-stats,
  .post-grid,
  .gif-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 380px;
  }

  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
