:root {
  color-scheme: dark;
  --color-ink: #f6fbff;
  --color-muted: #9fb0bf;
  --color-soft: #c6d3df;
  --color-bg: #07090d;
  --color-panel: rgba(15, 20, 27, 0.74);
  --color-panel-strong: rgba(17, 26, 36, 0.88);
  --color-line: rgba(184, 218, 255, 0.18);
  --color-cyan: #36d7ff;
  --color-lime: #a6ff5d;
  --color-rose: #ff5d9e;
  --color-amber: #ffd166;
  --shadow-glow: 0 0 34px rgba(54, 215, 255, 0.34);
  --radius-card: 8px;
  --radius-control: 8px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-page: clamp(20px, 4vw, 64px);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(54, 215, 255, 0.22), transparent 30rem),
    radial-gradient(circle at 88% 16%, rgba(255, 209, 102, 0.14), transparent 22rem),
    linear-gradient(135deg, #07090d 0%, #0b1218 44%, #100c13 100%);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 86%);
}

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

#map-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 var(--space-page);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 13, 0.68);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 18px;
  font-weight: 760;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(54, 215, 255, 0.92), rgba(166, 255, 93, 0.6)),
    radial-gradient(circle at 66% 30%, #ffffff 0 3px, transparent 4px);
  box-shadow: var(--shadow-glow);
  transform: rotateX(18deg) rotateY(-24deg) rotateZ(8deg);
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  min-width: 68px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--color-soft);
  font-size: 14px;
  text-align: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--color-line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-ink);
  outline: none;
}

main {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding: clamp(44px, 8vw, 104px) var(--space-page) clamp(36px, 7vw, 86px);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--color-lime);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--color-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-control);
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  border: 1px solid rgba(54, 215, 255, 0.58);
  background: linear-gradient(135deg, rgba(54, 215, 255, 0.94), rgba(166, 255, 93, 0.82));
  color: #041017;
  box-shadow: 0 18px 46px rgba(54, 215, 255, 0.24);
}

.button-secondary {
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-ink);
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.orbital-stage {
  position: relative;
  min-height: min(620px, 70vh);
  perspective: 1000px;
}

.scene {
  position: absolute;
  inset: 2%;
  transform-style: preserve-3d;
  animation: scene-drift 9s ease-in-out infinite alternate;
}

.globe {
  position: absolute;
  top: 3%;
  left: 7%;
  width: min(470px, 78vw);
  aspect-ratio: 1;
  border: 1px solid rgba(54, 215, 255, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(246, 251, 255, 0.26), transparent 18%),
    radial-gradient(circle at center, rgba(54, 215, 255, 0.2), rgba(5, 14, 22, 0.04) 60%, rgba(166, 255, 93, 0.08));
  box-shadow:
    inset 0 0 46px rgba(54, 215, 255, 0.22),
    0 0 88px rgba(54, 215, 255, 0.26);
  transform: rotateX(64deg) rotateZ(-22deg);
  transform-style: preserve-3d;
}

.globe::before,
.globe::after {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.globe::after {
  inset: 24%;
  border-color: rgba(166, 255, 93, 0.26);
  transform: rotateY(72deg);
}

.globe-ring {
  position: absolute;
  inset: -4%;
  border: 1px solid rgba(54, 215, 255, 0.28);
  border-radius: 50%;
}

.ring-a {
  transform: rotateX(76deg);
}

.ring-b {
  transform: rotateY(76deg);
}

.ring-c {
  border-color: rgba(255, 93, 158, 0.34);
  transform: rotateX(52deg) rotateY(38deg);
}

.data-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(54, 215, 255, 0.34), rgba(255, 93, 158, 0.22)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 34px rgba(166, 255, 93, 0.28);
  transform: translate(-50%, -50%) rotateX(54deg) rotateZ(45deg);
}

.node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-lime);
  box-shadow: 0 0 28px var(--color-lime);
}

.node-one {
  top: 18%;
  left: 42%;
}

.node-two {
  top: 62%;
  left: 73%;
  background: var(--color-cyan);
  box-shadow: 0 0 28px var(--color-cyan);
}

.node-three {
  top: 70%;
  left: 25%;
  background: var(--color-rose);
  box-shadow: 0 0 28px var(--color-rose);
}

.node-four {
  top: 37%;
  left: 80%;
  background: var(--color-amber);
  box-shadow: 0 0 28px var(--color-amber);
}

.map-plane {
  position: absolute;
  right: 2%;
  bottom: 5%;
  width: min(440px, 80vw);
  aspect-ratio: 1.65;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(54, 215, 255, 0.24) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(166, 255, 93, 0.2) 50%, transparent 51%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  background-size: 44px 44px, 44px 44px, 100% 100%;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  transform: rotateX(67deg) rotateZ(-18deg) translateZ(-40px);
  transform-origin: center;
}

.map-plane span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 20px var(--color-cyan);
}

.map-plane span:nth-child(1) {
  left: 18%;
  top: 34%;
}

.map-plane span:nth-child(2) {
  left: 48%;
  top: 62%;
  background: var(--color-lime);
}

.map-plane span:nth-child(3) {
  left: 74%;
  top: 28%;
  background: var(--color-rose);
}

.map-plane span:nth-child(4) {
  left: 82%;
  top: 72%;
  background: var(--color-amber);
}

.telemetry {
  position: absolute;
  right: 3%;
  bottom: 11%;
  display: grid;
  gap: 6px;
  width: min(220px, 46vw);
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: rgba(7, 9, 13, 0.74);
  backdrop-filter: blur(14px);
}

.telemetry span {
  color: var(--color-muted);
  font-size: 12px;
}

.telemetry strong {
  color: var(--color-lime);
  font-size: 30px;
}

.destinations {
  padding: clamp(42px, 7vw, 84px) var(--space-page) clamp(52px, 8vw, 96px);
  background: linear-gradient(180deg, rgba(7, 9, 13, 0), rgba(7, 9, 13, 0.82) 24%, rgba(7, 9, 13, 0.92));
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
}

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

.destination-card {
  position: relative;
  display: grid;
  min-height: 270px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    var(--color-panel);
  transform-style: preserve-3d;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.destination-card::before {
  position: absolute;
  inset: auto 22px 22px auto;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  content: "";
  transform: rotateX(58deg) rotateZ(42deg);
}

.destination-card:hover,
.destination-card:focus-visible {
  border-color: rgba(54, 215, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(54, 215, 255, 0.18), rgba(255, 255, 255, 0.045)),
    var(--color-panel-strong);
  outline: none;
  transform: translateY(-5px) rotateX(2deg);
}

.active-card {
  border-color: rgba(166, 255, 93, 0.44);
}

.card-kicker {
  color: var(--color-amber);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.destination-card h3 {
  margin: 26px 0 12px;
  font-size: 34px;
}

.destination-card p {
  max-width: 31ch;
  color: var(--color-soft);
  line-height: 1.55;
}

.card-link {
  align-self: end;
  color: var(--color-cyan);
  font-weight: 760;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 24px var(--space-page) 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-muted);
  font-size: 14px;
  background: rgba(7, 9, 13, 0.94);
}

@keyframes scene-drift {
  from {
    transform: rotateY(-8deg) translateY(0);
  }
  to {
    transform: rotateY(8deg) translateY(-12px);
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .orbital-stage {
    min-height: 520px;
  }

  .destination-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    max-width: 11ch;
    font-size: 47px;
  }

  .button {
    width: 100%;
  }

  .orbital-stage {
    min-height: 390px;
  }

  .globe {
    left: 0;
  }

  .telemetry {
    right: 0;
    bottom: 0;
  }
}

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