:root {
  --ink: #f7f3e8;
  --ink-strong: #ffffff;
  --muted: #b9c4c4;
  --void: #101118;
  --void-deep: #07080d;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.18);
  --orbit-blue: #6ba6ff;
  --orbit-blue-dark: #9fc5ff;
  --solar-gold: #f3b84d;
  --boundary-teal: #67dac9;
  --cosmic-coral: #f27f70;
  --violet: #b794f4;
  --danger: #ff9187;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--void-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(103, 218, 201, 0.18), transparent 21rem),
    radial-gradient(circle at 86% 24%, rgba(243, 184, 77, 0.14), transparent 24rem),
    linear-gradient(135deg, #0a0b12 0%, #171018 48%, #081413 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 50% 35%, black, transparent 76%);
}

a {
  color: var(--orbit-blue-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--boundary-teal);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--ink-strong);
  color: #11131b;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.cosmic-backdrop,
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cosmic-backdrop {
  z-index: -2;
  overflow: hidden;
}

#starfield {
  opacity: 0.85;
}

.nebula-drift {
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.32;
  animation: nebulaFloat 18s ease-in-out infinite alternate;
}

.nebula-drift-one {
  left: -12rem;
  top: 8rem;
  background: radial-gradient(circle, rgba(103, 218, 201, 0.45), transparent 66%);
}

.nebula-drift-two {
  right: -13rem;
  top: 1rem;
  background: radial-gradient(circle, rgba(243, 184, 77, 0.34), transparent 68%);
  animation-delay: -7s;
}

.nebula-drift-three {
  right: 12%;
  bottom: -18rem;
  background: radial-gradient(circle, rgba(183, 148, 244, 0.32), transparent 68%);
  animation-delay: -4s;
}

.shooting-star {
  position: fixed;
  width: 12rem;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  transform: rotate(-28deg);
  animation: shoot 9s linear infinite;
}

.shooting-star-one {
  top: 18%;
  left: 62%;
}

.shooting-star-two {
  top: 42%;
  left: 14%;
  animation-delay: -4s;
}

.shooting-star-three {
  top: 68%;
  left: 72%;
  animation-delay: -7s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 10, 16, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 2rem));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-strong);
  font-weight: 780;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 52% 50%, rgba(243, 184, 77, 0.15) 0 20%, transparent 21%),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 22px rgba(103, 218, 201, 0.22);
}

.brand-mark::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--solar-gold);
  box-shadow:
    0 0 0 7px rgba(243, 184, 77, 0.16),
    0 0 24px rgba(243, 184, 77, 0.78);
  animation: solarPulse 3.6s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink-strong);
  background: rgba(103, 218, 201, 0.1);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.legal-container {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--boundary-teal);
  font-size: 0.78rem;
  font-weight: 790;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  color: var(--ink-strong);
  font-size: clamp(3rem, 8vw, 6.6rem);
  text-shadow: 0 0 42px rgba(103, 218, 201, 0.18);
}

.product-hero h1,
.legal-hero h1 {
  max-width: 13ch;
}

h2 {
  color: var(--ink-strong);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  color: var(--ink-strong);
  font-size: 1.1rem;
}

.lede {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.28rem);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.45rem;
}

.signal-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(103, 218, 201, 0.28);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  background: rgba(103, 218, 201, 0.08);
  color: #d9fffa;
  font-size: 0.9rem;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-strong);
  font-weight: 740;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button.primary {
  border-color: rgba(103, 218, 201, 0.55);
  background: linear-gradient(135deg, #2a6c8d, #258673 54%, #9d7631);
  color: white;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(103, 218, 201, 0.62);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.orbit-stage {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 540px);
  margin-inline: auto;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.orbit-halo {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(243, 184, 77, 0.12), transparent 18%),
    conic-gradient(from 110deg, rgba(103, 218, 201, 0.4), transparent 26%, rgba(243, 184, 77, 0.34), transparent 58%, rgba(183, 148, 244, 0.25), transparent);
  filter: blur(18px);
  opacity: 0.8;
  animation: slowSpin 30s linear infinite;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(103, 218, 201, 0.06);
}

.orbit-ring-outer {
  inset: 10%;
}

.orbit-ring-middle {
  inset: 24%;
  border-color: rgba(103, 218, 201, 0.27);
}

.orbit-ring-inner {
  inset: 39%;
  border-color: rgba(243, 184, 77, 0.28);
}

.sun {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffe8ad, var(--solar-gold) 55%, #ba6d1e 78%);
  box-shadow:
    0 0 38px rgba(243, 184, 77, 0.66),
    0 0 90px rgba(103, 218, 201, 0.22);
  animation: solarPulse 4s ease-in-out infinite;
}

.planet {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2);
  border-radius: 50%;
  background: var(--color);
  transform: rotate(var(--angle)) translateX(var(--distance));
  transform-origin: center;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.32),
    0 0 26px color-mix(in srgb, var(--color) 58%, transparent);
  animation: orbit var(--speed) linear infinite;
}

.planet-teal {
  --size: 24px;
  --distance: 186px;
  --angle: 18deg;
  --speed: 18s;
  --color: var(--boundary-teal);
}

.planet-blue {
  --size: 19px;
  --distance: 132px;
  --angle: 150deg;
  --speed: 25s;
  --color: var(--orbit-blue);
}

.planet-gold {
  --size: 15px;
  --distance: 94px;
  --angle: 270deg;
  --speed: 15s;
  --color: var(--solar-gold);
}

.comet {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: white;
  box-shadow: -32px 0 26px rgba(255, 255, 255, 0.5);
  transform-origin: center;
  animation: cometLoop 11s linear infinite;
}

.constellation-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 218, 201, 0.55), transparent);
  transform-origin: left center;
  animation: constellationPulse 5s ease-in-out infinite;
}

.constellation-line-one {
  width: 34%;
  left: 20%;
  top: 31%;
  transform: rotate(28deg);
}

.constellation-line-two {
  width: 28%;
  right: 19%;
  bottom: 30%;
  transform: rotate(-38deg);
  animation-delay: -2s;
}

@keyframes orbit {
  from {
    transform: rotate(var(--angle)) translateX(var(--distance));
  }
  to {
    transform: rotate(calc(var(--angle) + 360deg)) translateX(var(--distance));
  }
}

@keyframes cometLoop {
  from {
    transform: rotate(38deg) translateX(238px) rotate(0deg);
    opacity: 0;
  }
  12%,
  76% {
    opacity: 0.85;
  }
  to {
    transform: rotate(398deg) translateX(238px) rotate(-360deg);
    opacity: 0;
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes solarPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.055);
  }
}

@keyframes constellationPulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes shoot {
  0%,
  72% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-28deg);
  }
  77% {
    opacity: 0.9;
  }
  86%,
  100% {
    opacity: 0;
    transform: translate3d(-36rem, 16rem, 0) rotate(-28deg);
  }
}

@keyframes nebulaFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4rem, -2rem, 0) scale(1.08);
  }
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2rem;
}

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

.card,
.legal-card,
.telemetry-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    rgba(8, 10, 15, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.card {
  min-height: 168px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, rgba(103, 218, 201, 0.18), transparent 38%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.card:hover::before {
  opacity: 1;
}

.card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.mission-section,
.product-console {
  position: relative;
}

.mission-grid,
.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.telemetry-panel {
  padding: 1.25rem;
}

.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.telemetry-row span {
  color: var(--muted);
}

.telemetry-row strong {
  color: var(--ink-strong);
}

.mini-orbit {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 1;
  margin: 1.4rem auto 0;
  border: 1px solid rgba(103, 218, 201, 0.24);
  border-radius: 50%;
}

.mini-orbit::before,
.mini-orbit::after {
  content: "";
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.mini-orbit::after {
  inset: 38%;
}

.mini-orbit span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px;
  border-radius: 50%;
  background: var(--boundary-teal);
  animation: miniOrbit 8s linear infinite;
}

.mini-orbit span:nth-child(2) {
  background: var(--solar-gold);
  animation-duration: 12s;
  animation-delay: -4s;
}

.mini-orbit span:nth-child(3) {
  background: var(--violet);
  animation-duration: 15s;
  animation-delay: -7s;
}

@keyframes miniOrbit {
  from {
    transform: rotate(0deg) translateX(92px);
  }
  to {
    transform: rotate(360deg) translateX(92px);
  }
}

.console-orbit {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-core,
.console-path,
.console-node {
  position: absolute;
  border-radius: 50%;
}

.console-core {
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px;
  background: radial-gradient(circle, #ffe8ad, var(--solar-gold));
  box-shadow: 0 0 50px rgba(243, 184, 77, 0.55);
}

.console-path {
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(-18deg);
}

.console-path-one {
  inset: 18%;
}

.console-path-two {
  inset: 32%;
}

.console-node {
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px;
  background: var(--boundary-teal);
  animation: consoleNodeOrbit 13s linear infinite;
}

.console-node-two {
  background: var(--orbit-blue);
  animation-duration: 18s;
  animation-delay: -5s;
}

.console-node-three {
  background: var(--cosmic-coral);
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes consoleNodeOrbit {
  from {
    transform: rotate(0deg) translateX(138px);
  }
  to {
    transform: rotate(360deg) translateX(138px);
  }
}

.legal-hero {
  padding-top: clamp(4rem, 8vw, 6rem);
}

.legal-card {
  padding: clamp(1.2rem, 4vw, 2rem);
  margin: 2rem 0 4rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(232, 244, 240, 0.9)),
    white;
  color: #172027;
}

.legal-card h2,
.legal-card h3 {
  color: #172027;
}

.legal-card h2 {
  margin-top: 2.2rem;
  font-size: 1.45rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #43515a;
}

.notice {
  padding: 1rem;
  border-left: 4px solid var(--boundary-teal);
  background: rgba(47, 127, 120, 0.11);
  border-radius: 8px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2rem 0;
  color: var(--muted);
  background: rgba(8, 10, 15, 0.5);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 1;
  transform: translateY(18px);
  transition: transform 700ms ease, filter 700ms ease;
  filter: saturate(0.8);
}

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

@media (max-width: 900px) {
  .hero,
  .mission-grid,
  .console-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .console-grid .section-header {
    order: -1;
  }

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

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    padding-inline: 0.55rem;
  }

  .orbit-stage {
    width: min(100%, 360px);
  }

  .planet-teal {
    --distance: 128px;
  }

  .planet-blue {
    --distance: 94px;
  }

  .planet-gold {
    --distance: 68px;
  }

  .comet {
    animation-name: cometLoopSmall;
  }

  .console-orbit {
    min-height: 280px;
  }

  .console-node {
    animation-name: consoleNodeOrbitSmall;
  }

  .mini-orbit span {
    animation-name: miniOrbitSmall;
  }
}

@keyframes cometLoopSmall {
  from {
    transform: rotate(38deg) translateX(154px) rotate(0deg);
    opacity: 0;
  }
  12%,
  76% {
    opacity: 0.85;
  }
  to {
    transform: rotate(398deg) translateX(154px) rotate(-360deg);
    opacity: 0;
  }
}

@keyframes consoleNodeOrbitSmall {
  from {
    transform: rotate(0deg) translateX(96px);
  }
  to {
    transform: rotate(360deg) translateX(96px);
  }
}

@keyframes miniOrbitSmall {
  from {
    transform: rotate(0deg) translateX(74px);
  }
  to {
    transform: rotate(360deg) translateX(74px);
  }
}

@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;
  }

  .reveal {
    transform: none;
    filter: none;
  }

  .shooting-star {
    display: none;
  }
}
