:root {
  --bg: #07111f;
  --bg-2: #0d1d31;
  --panel: rgba(10, 24, 42, 0.58);
  --panel-strong: rgba(13, 31, 54, 0.8);
  --line: rgba(125, 220, 255, 0.18);
  --text: #edf7ff;
  --muted: rgba(237, 247, 255, 0.68);
  --cyan: #79f0ff;
  --blue: #4b93ff;
  --glow: rgba(121, 240, 255, 0.38);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(86, 160, 255, 0.22), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(121, 240, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(21, 71, 146, 0.45), transparent 36%),
    linear-gradient(135deg, #030712 0%, #07111f 46%, #0b1e33 100%);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 190, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 190, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(transparent 0%, rgba(255, 255, 255, 0.16) 50%, transparent 100%);
  background-size: 100% 4px;
  animation: sweep 9s linear infinite;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar,
.hero-panel,
.metric-card,
.system-card,
.protocol-card,
.footer {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 17, 31, 0.42);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 20px var(--glow);
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.topbar a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.topbar a:hover {
  color: var(--text);
}

.hero {
  padding-top: 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 48px 0 12px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  letter-spacing: 0.24em;
  font-size: 0.76rem;
}

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

h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-text {
  max-width: 580px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #04111c;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), #b8fbff);
  box-shadow: 0 12px 30px rgba(121, 240, 255, 0.24);
}

.button.ghost {
  color: var(--text);
  border: 1px solid rgba(121, 240, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel::before,
.metric-card::before,
.system-card::before,
.protocol-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.orbital-ring {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 24px auto 12px;
}

.orbital-core,
.orbit {
  position: absolute;
  border-radius: 50%;
  inset: 50%;
  transform: translate(-50%, -50%);
}

.orbital-core {
  width: 24%;
  height: 24%;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0%, #aff8ff 15%, #77c8ff 42%, rgba(119, 200, 255, 0.12) 100%);
  box-shadow: 0 0 40px rgba(121, 240, 255, 0.5);
}

.orbit {
  border: 1px solid rgba(121, 240, 255, 0.18);
}

.orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, var(--cyan));
  box-shadow: 0 0 16px rgba(121, 240, 255, 0.65);
}

.orbit-a {
  width: 52%;
  height: 52%;
  animation: rotate 10s linear infinite;
}

.orbit-b {
  width: 74%;
  height: 74%;
  animation: rotate-reverse 14s linear infinite;
}

.orbit-c {
  width: 94%;
  height: 94%;
  animation: rotate 18s linear infinite;
}

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

.panel-stats div {
  padding: 14px 12px;
  border: 1px solid rgba(121, 240, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.panel-stats strong {
  display: block;
  font-size: 1.6rem;
  color: var(--cyan);
}

.panel-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

main {
  display: grid;
  gap: 28px;
  margin-top: 18px;
}

.metrics-section,
.systems-section,
.protocol-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(7, 17, 31, 0.34);
  box-shadow: var(--shadow);
}

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

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metrics-grid,
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.metric-card,
.system-card,
.protocol-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(121, 240, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
}

.metric-card strong {
  display: block;
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.metric-card p,
.system-card p,
.protocol-card p {
  color: var(--muted);
  line-height: 1.75;
}

.metric-tag {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(121, 240, 255, 0.2);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.systems-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.system-card.wide {
  display: grid;
  grid-column: span 2;
  grid-template-columns: 1fr 0.72fr;
  gap: 18px;
  align-items: center;
}

.system-card h3,
.protocol-card h3 {
  margin: 14px 0 12px;
  font-size: 1.4rem;
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 180px;
}

.signal-bars span {
  display: block;
  height: var(--h);
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #bffbff 0%, #63daff 48%, rgba(75, 147, 255, 0.15) 100%);
  box-shadow: 0 0 18px rgba(121, 240, 255, 0.2);
  animation: pulse 3s ease-in-out infinite;
}

.signal-bars span:nth-child(2n) {
  animation-delay: 0.4s;
}

.protocol-card span {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 17, 31, 0.42);
  color: var(--muted);
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes rotate-reverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes pulse {
  0%, 100% {
    filter: brightness(0.85);
  }
  50% {
    filter: brightness(1.18);
  }
}

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

@media (max-width: 980px) {
  .hero-grid,
  .metrics-grid,
  .protocol-grid,
  .systems-layout,
  .system-card.wide {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1200px);
  }

  .hero-grid {
    padding-top: 28px;
  }

  .metrics-section,
  .systems-section,
  .protocol-section,
  .hero-panel {
    padding: 20px;
    border-radius: 24px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.6rem, 18vw, 4.2rem);
  }
}
