* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #060914;
  --surface: #121a2d;
  --line: #2c3b62;
  --text: #e9ecf8;
  --muted: #9eb0ce;
  --accent: #49e0a3;
  --accent-soft: #6d8df2;
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  font-family: "PingFang SC", "Segoe UI", "Noto Sans SC", sans-serif;
  color: var(--text);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 18% 0%, rgba(77, 224, 163, 0.18), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(115, 146, 252, 0.12), transparent 35%),
    linear-gradient(120deg, #04070e 0%, var(--bg) 50%, #0a1221 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 4px);
  opacity: 0.18;
  z-index: 0;
}

.ambient-scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, transparent 0%, rgba(77, 224, 163, 0.03) 45%, rgba(115, 146, 252, 0.04) 100%);
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

header.hero {
  width: min(1120px, 92vw);
  margin: 24px auto 16px;
  border: 1px solid color-mix(in srgb, var(--line), white 10%);
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(14, 20, 38, 0.86), rgba(10, 16, 30, 0.88));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.45);
  padding: clamp(16px, 4vw, 34px);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand span {
  font: 700 clamp(1rem, 2vw, 1.3rem)/1.2 "Segoe UI", "PingFang SC", sans-serif;
  letter-spacing: 0.1em;
}

.brand small {
  color: var(--muted);
  font-size: 0.84rem;
}

.top-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px dashed transparent;
  transition: 0.2s;
}

.nav-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

h1 {
  margin: 8px 0 10px;
  font: 700 clamp(2rem, 5vw, 4rem)/1.1 "Segoe UI", "PingFang SC", sans-serif;
  letter-spacing: 0.03em;
}

h2 {
  margin: 0 0 10px;
  font: 700 1.45rem/1.3 "Segoe UI", "PingFang SC", sans-serif;
}

h3 {
  margin: 0 0 8px;
  font: 700 1.05rem/1.35 "Segoe UI", "PingFang SC", sans-serif;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}

.hero-copy .lead {
  max-width: 62ch;
  color: var(--muted);
  margin: 10px 0 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta,
.secondary,
.button {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  line-height: 1;
}

.cta {
  color: #03130f;
  background: linear-gradient(90deg, #34de9d 0%, #5de3b4 100%);
}

.secondary {
  color: var(--text);
  border: 1px solid rgba(77, 224, 163, 0.48);
}

.button {
  border: 1px solid rgba(77, 224, 163, 0.55);
  color: #d7e6ff;
  margin-top: 10px;
}

.signal-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid rgba(77, 224, 163, 0.45);
  color: #cbebdf;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.81rem;
  background: rgba(77, 224, 163, 0.06);
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto 24px;
  display: grid;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(20, 28, 44, 0.94), rgba(16, 22, 35, 0.98));
  border-radius: 18px;
  padding: clamp(15px, 2.2vw, 22px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.muted {
  color: var(--muted);
  margin-top: 0;
}

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

.entry-card {
  border-radius: 14px;
  border: 1px solid rgba(77, 224, 163, 0.24);
  background: linear-gradient(150deg, rgba(12, 19, 35, 0.95), rgba(11, 16, 27, 0.96));
  padding: 14px;
}

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

.plain {
  margin: 0;
  padding-left: 1.15rem;
}

.hint {
  margin: 12px 0 0;
  color: #d0daf2;
}

.timeline {
  margin: 0;
  padding-left: 1.1rem;
}

.timeline li {
  margin-bottom: 10px;
}

summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

details p {
  color: var(--muted);
  margin: 8px 0 0;
}

footer {
  width: min(1120px, 92vw);
  margin: 0 auto 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 980px) {
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions,
  .ambient-scan,
  body::before {
    animation: none;
  }
}
