:root {
  --space-900: #090b18;
  --space-800: #10152c;
  --space-700: #171d3d;
  --violet-500: #7a4dff;
  --violet-400: #9c7cff;
  --blue-400: #58a6ff;
  --cyan-300: #88ebff;
  --pink-400: #f26acb;
  --text-strong: #f5f6ff;
  --text-muted: #9fa8cf;
  --border-soft: rgba(255, 255, 255, 0.11);
  --card-bg: rgba(16, 22, 48, 0.58);
  --shadow-violet: rgba(86, 48, 190, 0.32);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #5740ae var(--space-900);
}

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(123, 63, 255, 0.22), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(61, 142, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #080a16 0%, #090d1d 28%, #0a1022 54%, #090c18 100%);
  color: var(--text-strong);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  transition: all 0.35s ease;
}

.navbar.scrolled {
  background: rgba(7, 11, 24, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 32px rgba(7, 11, 24, 0.28);
  padding: 0.8rem 2rem;
}

.nav-logo {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  background: linear-gradient(135deg, #f6f7ff, #aacdff 38%, #f4a5f1 90%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.28s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet-400), var(--cyan-300));
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-strong);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(122, 77, 255, 0.82), rgba(78, 140, 255, 0.68));
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 28px rgba(122, 77, 255, 0.28);
}

.nav-cta::after {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-content {
  max-width: 860px;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fade-in-up 1s ease forwards;
}

.hero-badge {
  display: inline-block;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ccb8ff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 26px rgba(122, 77, 255, 0.16);
}

.hero h1 {
  margin-top: 1.7rem;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 850;
  background: linear-gradient(180deg, #ffffff 0%, #cfd8ff 42%, #b89cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 720px;
  margin: 1.6rem auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-buttons {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.92rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, #7b3cff, #498fff 72%);
  color: white;
  box-shadow: 0 14px 42px rgba(88, 72, 204, 0.35);
}

.btn-outline {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(173, 194, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit-a {
  width: min(80vw, 900px);
  height: min(80vw, 900px);
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-orbit-b {
  width: min(58vw, 620px);
  height: min(58vw, 620px);
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) rotate(14deg);
}

.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6.5rem 2rem;
}

.section-tight {
  padding-top: 2rem;
}

.section-label {
  text-align: center;
  color: #a796de;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.79rem;
}

.section-label-left {
  text-align: left;
}

.section-title {
  text-align: center;
  margin-top: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-title-left {
  text-align: left;
}

.section-subtitle {
  max-width: 690px;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.missions-grid {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.mission-card,
.signal-frame,
.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mission-card {
  border-radius: 24px;
  padding: 2rem 1.7rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(10, 12, 22, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.mission-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -55% auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(122, 77, 255, 0.16) 0%, transparent 70%);
  transform: translate(35%, 35%);
}

.mission-card:hover {
  transform: translateY(-10px);
  border-color: rgba(170, 150, 255, 0.32);
  box-shadow: 0 26px 62px rgba(34, 22, 85, 0.32);
}

.mission-icon {
  display: inline-flex;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.mission-card h3 {
  font-size: 1.35rem;
}

.mission-card p {
  margin-top: 0.65rem;
  color: var(--text-muted);
}

.mission-stat {
  display: inline-block;
  margin-top: 1.15rem;
  color: #c9b8ff;
  font-size: 0.88rem;
  font-weight: 600;
}

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

.split-copy {
  padding-right: 1rem;
}

.split-text {
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: 1.06rem;
}

.feature-list {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.3rem;
  color: #d9ddf5;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan-300);
}

.signal-panel {
  position: relative;
}

.signal-frame {
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: 0 30px 80px rgba(20, 24, 54, 0.45);
}

.signal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.signal-tag,
.signal-status {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
}

.signal-status {
  color: #8fffcd;
}

.signal-body {
  margin-top: 1.5rem;
}

.signal-meter + .signal-meter {
  margin-top: 1rem;
}

.signal-meter span {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.meter-bar {
  width: 100%;
  height: 10px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.meter-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet-400), var(--blue-400), var(--cyan-300));
  box-shadow: 0 0 18px rgba(126, 180, 255, 0.35);
}

.signal-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.signal-grid div {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-grid strong {
  display: block;
  font-size: 1.4rem;
  color: #fff;
}

.signal-grid span {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.section-gallery {
  max-width: none;
}

.gallery-track {
  margin-top: 3rem;
  display: flex;
  gap: 1.3rem;
  overflow-x: auto;
  padding: 0.2rem 2rem 0.8rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 330px;
  height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(18, 20, 48, 0.32);
  scroll-snap-align: center;
}

.gallery-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 6rem;
}

.art-nebula {
  background: linear-gradient(135deg, #16061f, #37136a 48%, #12234d);
}

.art-rings {
  background: linear-gradient(135deg, #0c1020, #22407c, #140b23);
}

.art-earth {
  background: linear-gradient(135deg, #102437, #1b4b87, #0b111d);
}

.art-stars {
  background: linear-gradient(135deg, #150a28, #4a1f7e, #0e1734);
}

.gallery-caption {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 11, 24, 0.92) 72%);
}

.gallery-caption strong {
  display: block;
  font-size: 1.08rem;
}

.gallery-caption span {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.timeline {
  position: relative;
  margin-top: 3.2rem;
  padding: 0.5rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(148, 126, 230, 0.7), rgba(88, 166, 255, 0.5), transparent);
}

.timeline-item {
  display: flex;
  position: relative;
  margin-bottom: 2.8rem;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 2rem);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-400), var(--blue-400));
  box-shadow: 0 0 25px rgba(122, 77, 255, 0.65);
}

.timeline-content {
  max-width: 420px;
  border-radius: 22px;
  padding: 1.35rem 1.5rem;
}

.timeline-year {
  display: inline-block;
  color: #c5b4ff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.timeline-content h4 {
  margin-top: 0.45rem;
  font-size: 1.24rem;
}

.timeline-content p {
  margin-top: 0.4rem;
  color: var(--text-muted);
}

.cta-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 2rem 6rem;
}

.glow-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 77, 255, 0.2) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-section p {
  margin: 1rem auto 0;
  max-width: 620px;
  color: var(--text-muted);
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.4rem 2rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.footer-stars {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  letter-spacing: 0.4rem;
}

.footer-links {
  margin-top: 0.9rem;
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #bba9ff;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.error-shell {
  width: min(100%, 720px);
  padding: 2.4rem;
  text-align: center;
  border-radius: 28px;
  background: rgba(15, 21, 43, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(8, 12, 22, 0.32);
}

.error-code {
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #fff;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(44px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .missions-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .split-copy {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    background: rgba(9, 12, 24, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: right 0.35s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .burger {
    display: flex;
  }

  .section {
    padding: 5rem 1.35rem;
  }

  .hero {
    padding: 7rem 1.35rem 3rem;
  }

  .gallery-track {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .gallery-item {
    flex-basis: 280px;
    height: 390px;
  }

  .timeline::before {
    left: 18px;
    transform: none;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding: 0 0 0 3rem;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 18px;
    transform: none;
  }
}
