:root {
  --bg-1: #01040a;
  --bg-2: #020813;
  --text-main: #e8f8ff;
  --text-muted: #a5c4d1;
  --line: rgba(122, 229, 255, 0.2);
  --glass: rgba(7, 19, 30, 0.55);
  --cyan: #60ecff;
  --focus-ring: rgba(152, 242, 255, 0.9);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", "Roboto", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 20% 12%, #0b1d31 0%, transparent 35%), linear-gradient(180deg, var(--bg-2), var(--bg-1) 60%);
}

.landing {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 1.2rem 1.2rem 2rem;
  overflow: hidden;
}

.hangar,
.bokeh,
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hangar {
  background:
    radial-gradient(ellipse at 50% 76%, rgba(6, 24, 40, 0.95) 0%, rgba(2, 8, 14, 0.82) 50%, transparent 72%),
    linear-gradient(165deg, rgba(84, 98, 118, 0.18), transparent 42%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 25%);
  filter: blur(1.8px);
  transform: scale(1.05);
}

.hangar::before {
  content: "";
  position: absolute;
  inset: -12% -5%;
  background:
    radial-gradient(circle at 68% 38%, rgba(120, 228, 255, 0.12), transparent 26%),
    radial-gradient(circle at 35% 55%, rgba(255, 176, 87, 0.08), transparent 23%),
    repeating-linear-gradient(
      112deg,
      rgba(255, 255, 255, 0.025) 0 1px,
      rgba(0, 0, 0, 0.02) 1px 6px
    );
}

.bokeh {
  opacity: 0.55;
  background:
    radial-gradient(circle at 8% 22%, rgba(158, 231, 255, 0.34) 0 1.1rem, transparent 2.4rem),
    radial-gradient(circle at 74% 18%, rgba(158, 231, 255, 0.24) 0 0.7rem, transparent 1.7rem),
    radial-gradient(circle at 88% 34%, rgba(255, 179, 92, 0.2) 0 0.6rem, transparent 1.4rem),
    radial-gradient(circle at 16% 67%, rgba(122, 196, 255, 0.18) 0 0.9rem, transparent 2.2rem);
  filter: blur(0.9px);
}

.grid-overlay {
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(109, 159, 197, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 159, 197, 0.13) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.navbar {
  position: relative;
  z-index: 25;
  margin: 0 auto;
  max-width: 1260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 12, 20, 0.68);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #d2fbff 0 30%, var(--cyan) 31% 100%);
  box-shadow: 0 0 16px rgba(96, 236, 255, 0.9);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav-links a {
  text-decoration: none;
  color: #acc7d4;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: #ebfbff;
}

.brand:focus-visible,
.nav-links a:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 8px;
}

.nav-state {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #cce7f2;
  font-size: 0.88rem;
}

.state-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #79f5ff;
  box-shadow: 0 0 14px #79f5ff;
}

.hero-grid {
  position: relative;
  z-index: 20;
  margin: 2.4rem auto 0;
  max-width: 1260px;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(260px, 1.05fr) minmax(290px, 1fr) minmax(250px, 0.88fr);
  align-items: center;
}

.hero-copy h1 {
  margin: 0.65rem 0 0;
  font-size: clamp(2rem, 5.5vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.19em;
  color: #8eb0bf;
}

.subtext {
  margin: 1rem 0 0;
  max-width: 46ch;
  color: #b8d4e1;
  font-size: 1.03rem;
  line-height: 1.55;
}

.cta {
  margin-top: 1.4rem;
  border: 1px solid rgba(120, 241, 255, 0.7);
  background: linear-gradient(135deg, rgba(46, 232, 255, 0.24), rgba(14, 80, 112, 0.35));
  color: #dcf9ff;
  padding: 0.78rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(70, 222, 255, 0.45);
  animation: neon-pulse 1.9s ease-in-out infinite;
}

.metrics-inline {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(11px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.38);
  padding: 0.9rem;
}

.label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.value {
  margin: 0.44rem 0 0;
  font-size: 1.45rem;
  font-weight: 650;
  color: #edfcff;
}

.small {
  margin: 0.5rem 0 0;
  color: #96b2bf;
  font-size: 0.9rem;
  line-height: 1.55;
}

.last-updated {
  margin-top: 0.35rem;
  color: #a9c6d3;
  font-size: 0.83rem;
}

.skeleton-line {
  margin-top: 0.62rem;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(69, 88, 99, 0.4) 0%, rgba(151, 204, 227, 0.45) 45%, rgba(69, 88, 99, 0.4) 100%);
  background-size: 220% 100%;
  animation: skeleton-shift 2.1s linear infinite;
}

.skeleton-line.short {
  width: 65%;
}

.core-wrap {
  min-height: 480px;
  display: grid;
  place-items: center;
}

.core-tilt {
  transition: transform 0.28s ease-out;
  transform-style: preserve-3d;
}

.mechanical-core {
  width: min(74vw, 420px);
  aspect-ratio: 1;
  position: relative;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(236, 248, 255, 0.34), rgba(134, 163, 184, 0.18) 30%, rgba(34, 49, 61, 0.92) 70%),
    radial-gradient(circle at 72% 70%, rgba(255, 182, 100, 0.19), transparent 45%),
    linear-gradient(145deg, #8f9faf 0%, #6a7e93 18%, #46576a 37%, #2f3d4f 58%, #171f2b 100%);
  box-shadow:
    inset -28px -30px 56px rgba(0, 0, 0, 0.62),
    inset 14px 15px 24px rgba(221, 237, 249, 0.15),
    0 36px 52px rgba(0, 0, 0, 0.55),
    0 0 44px rgba(69, 203, 240, 0.22);
  animation: core-float 6.4s ease-in-out infinite;
}

.mechanical-core::before,
.mechanical-core::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  inset: 5%;
}

.mechanical-core::before {
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.09) 0 1px, rgba(255, 255, 255, 0) 1px 7px),
    repeating-linear-gradient(34deg, rgba(0, 0, 0, 0.28) 0 2px, rgba(0, 0, 0, 0) 2px 10px),
    radial-gradient(circle at 30% 40%, rgba(209, 235, 249, 0.18), transparent 40%);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.mechanical-core::after {
  inset: -7%;
  background: radial-gradient(circle, rgba(76, 232, 255, 0.33), rgba(76, 232, 255, 0) 70%);
  filter: blur(16px);
  z-index: -1;
}

.ring,
.plate,
.energy,
.hub {
  position: absolute;
  border-radius: 999px;
}

.ring {
  border: 1px solid rgba(132, 159, 181, 0.65);
}

.ring-outer {
  inset: 10%;
  border-width: 2px;
  box-shadow: inset 0 0 20px rgba(169, 205, 225, 0.28);
  animation: spin-slow 11s linear infinite;
}

.ring-middle {
  inset: 22%;
  border-color: rgba(103, 235, 255, 0.62);
  animation: spin-reverse 7s linear infinite;
}

.ring-inner {
  inset: 34%;
  border-color: rgba(194, 218, 237, 0.64);
  animation: spin-slow 4.6s linear infinite;
}

.plate {
  background: linear-gradient(138deg, rgba(223, 240, 252, 0.36), rgba(95, 117, 136, 0.9) 48%, rgba(27, 39, 49, 0.95) 100%);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.44);
}

.plate-a {
  width: 43%;
  height: 15%;
  top: 31%;
  left: 29%;
  transform: rotate(22deg);
}

.plate-b {
  width: 37%;
  height: 13%;
  bottom: 28%;
  left: 22%;
  transform: rotate(-26deg);
}

.plate-c {
  width: 30%;
  height: 11%;
  bottom: 38%;
  right: 21%;
  transform: rotate(46deg);
}

.energy {
  background: linear-gradient(90deg, rgba(103, 252, 255, 0.03), rgba(103, 252, 255, 0.95) 35%, rgba(103, 252, 255, 0.03));
  filter: drop-shadow(0 0 7px rgba(96, 236, 255, 0.95));
}

.energy-a {
  width: 48%;
  height: 2px;
  top: 44%;
  left: 26%;
  transform: rotate(16deg);
}

.energy-b {
  width: 43%;
  height: 2px;
  top: 56%;
  left: 29%;
  transform: rotate(-32deg);
}

.energy-c {
  width: 33%;
  height: 2px;
  top: 34%;
  right: 17%;
  transform: rotate(-62deg);
}

.hub {
  width: 28%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 40% 35%, rgba(222, 251, 255, 0.88) 0 18%, rgba(114, 249, 255, 0.62) 34%, rgba(27, 57, 72, 0.95) 82%),
    linear-gradient(145deg, #bed6e5, #42596d 65%);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(108, 243, 255, 0.62);
}

.telemetry-stack {
  display: grid;
  gap: 0.85rem;
}

.hud-card {
  min-height: 145px;
}

.state-active {
  color: #8ef6ff;
  text-shadow: 0 0 16px rgba(142, 246, 255, 0.65);
}

.state-sync {
  color: #ffd687;
}

.floating-card {
  position: absolute;
  z-index: 18;
  width: min(280px, 62vw);
  animation: drift 6.8s ease-in-out infinite;
}

.left-float {
  left: clamp(0.7rem, 4.2vw, 4rem);
  top: clamp(8rem, 28vh, 17.5rem);
}

.right-float {
  right: clamp(0.8rem, 4.5vw, 4rem);
  bottom: clamp(1.5rem, 8vh, 5rem);
  animation-delay: -3.1s;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes core-float {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(11px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes neon-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(70, 222, 255, 0.46);
  }
  50% {
    box-shadow: 0 0 36px rgba(70, 222, 255, 0.83);
  }
}

@keyframes skeleton-shift {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: -100% 50%;
  }
}

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .core-wrap {
    min-height: 400px;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 0.85rem;
  }
}

@media (max-width: 760px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 0.2rem;
  }

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

@media (min-width: 1121px) and (max-height: 860px) {
  .landing {
    overflow: auto;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .core-tilt {
    transition: none;
  }
}
