:root {
  color-scheme: dark;
  --space: #07080c;
  --space-deep: #0d1017;
  --panel: rgba(13, 18, 27, 0.78);
  --panel-solid: #111722;
  --line: rgba(155, 201, 211, 0.24);
  --line-strong: rgba(141, 244, 255, 0.46);
  --text: #eef8f8;
  --muted: #98a8ad;
  --cyan: #7df0ff;
  --green: #66f1a8;
  --amber: #ffc86b;
  --coral: #ff7c72;
  --violet: #bba4ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--space);
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, rgba(125, 240, 255, 0.1), transparent 32%),
    radial-gradient(circle at 78% 22%, rgba(255, 200, 107, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.54), #07080c 72%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(18px);
}

.nav,
.hero-grid,
.section-inner,
.contact-inner,
.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 13px;
  box-shadow: inset 0 0 22px rgba(125, 240, 255, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-links a:hover {
  border-color: var(--line);
  color: var(--cyan);
  background: rgba(125, 240, 255, 0.08);
}

.hero {
  min-height: 82svh;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  padding: 72px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: center;
  gap: 58px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: 62px;
  line-height: 1.04;
  font-weight: 860;
}

h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.18;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
}

.lead,
.section-copy {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 690px;
  margin: 24px 0 0;
  font-size: 19px;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 780;
}

.button.primary {
  background: rgba(125, 240, 255, 0.14);
  box-shadow:
    inset 0 0 28px rgba(125, 240, 255, 0.1),
    0 10px 30px rgba(125, 240, 255, 0.08);
}

.button.secondary {
  border-color: rgba(255, 200, 107, 0.44);
  background: rgba(255, 200, 107, 0.08);
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(125, 240, 255, 0.2);
}

.pilot-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.pilot-panel::before {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.avatar-shell {
  position: relative;
  width: min(100%, 324px);
  margin: 0 auto;
}

.avatar-shell::after {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(125, 240, 255, 0.36);
  border-radius: 8px;
}

.avatar {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0f141c;
}

.telemetry {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

.telemetry-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(155, 201, 211, 0.16);
  color: var(--muted);
  font-size: 13px;
}

.telemetry-row strong {
  color: var(--text);
  font-size: 14px;
  text-align: right;
}

.section {
  padding: 82px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 56px;
}

.section-copy {
  max-width: 720px;
  margin: 0;
  font-size: 16px;
}

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

.system-module,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 18, 27, 0.72);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.system-module {
  min-height: 190px;
  padding: 20px;
}

.system-module span {
  display: block;
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 780;
}

.system-module p,
.log-item p,
.project-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.flight-log {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.log-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.log-code {
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
}

.projects-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.44);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}

.filter-bar {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 18, 27, 0.66);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--line-strong);
  color: var(--cyan);
  background: rgba(125, 240, 255, 0.1);
}

.projects-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.map-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(125, 240, 255, 0.08), transparent 42%),
    rgba(13, 18, 27, 0.7);
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(125, 240, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-one {
  width: 180px;
  height: 180px;
}

.ring-two {
  width: 292px;
  height: 292px;
}

.ring-three {
  width: 420px;
  height: 420px;
}

.map-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 148px;
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(7, 8, 12, 0.86);
  transform: translate(-50%, -50%);
  text-align: center;
}

.map-core span {
  color: var(--amber);
  font-size: 30px;
  font-weight: 860;
  line-height: 1;
}

.map-core strong {
  font-size: 12px;
  color: var(--muted);
}

.mission-node {
  position: absolute;
  min-width: 74px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(125, 240, 255, 0.48);
  border-radius: 8px;
  background: rgba(7, 8, 12, 0.86);
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
  box-shadow: 0 0 26px rgba(125, 240, 255, 0.12);
}

.node-a {
  left: 36px;
  top: 126px;
}

.node-b {
  right: 34px;
  top: 214px;
}

.node-c {
  left: 96px;
  bottom: 106px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  min-height: 252px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.project-card.is-hidden {
  display: none;
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.project-tag {
  width: max-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 200, 107, 0.34);
  border-radius: 999px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 780;
}

.project-status {
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.project-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(155, 201, 211, 0.2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.project-link {
  margin-top: 18px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 780;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.contact-band {
  padding: 66px 0;
  background: rgba(13, 18, 27, 0.88);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-inner p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding: 26px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

  .button:hover {
    transform: none;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 48px;
  }

  .hero-grid,
  .split,
  .section-head,
  .projects-layout {
    grid-template-columns: 1fr;
  }

  .pilot-panel {
    width: min(420px, 100%);
  }

  .systems-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 360px;
  }

  .ring-three {
    width: 360px;
    height: 360px;
  }
}

@media (max-width: 620px) {
  .nav {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    gap: 10px;
  }

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

  .nav-links a {
    padding: 0 8px;
    font-size: 13px;
  }

  .hero-grid,
  .section-inner,
  .contact-inner,
  .footer-inner {
    width: min(100% - 24px, 1160px);
  }

  .hero-grid {
    padding: 46px 0 36px;
  }

  .hero {
    min-height: auto;
  }

  .pilot-panel {
    width: 100%;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
  }

  .pilot-panel::before,
  .avatar-shell::after {
    display: none;
  }

  .avatar-shell {
    width: 104px;
    margin: 0;
  }

  .telemetry {
    margin-top: 0;
    gap: 4px;
  }

  .telemetry-row {
    min-height: 30px;
    gap: 8px;
    font-size: 11px;
  }

  .telemetry-row strong {
    font-size: 12px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 29px;
  }

  .lead {
    margin-top: 18px;
    font-size: 16px;
  }

  .section {
    padding: 58px 0;
  }

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

  .log-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-button {
    flex: 1 1 calc(50% - 10px);
  }

  .map-panel {
    min-height: 300px;
  }

  .ring-two,
  .ring-three {
    display: none;
  }

  .mission-node {
    min-width: 64px;
    font-size: 12px;
  }

  .node-a {
    left: 20px;
    top: 66px;
  }

  .node-b {
    right: 18px;
    top: 112px;
  }

  .node-c {
    left: 46px;
    bottom: 62px;
  }

  .contact-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
