:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050711;
  color: #eef6ff;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at 70% 20%, #182848 0, #080b18 42%, #03040a 100%);
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

.scene {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 7vw, 96px);
  padding: clamp(28px, 6vw, 86px);
}

.hud {
  max-width: 520px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.eyebrow {
  margin: 0 0 14px;
  color: #8bd3ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  color: #c8d8ea;
  font-size: clamp(16px, 2vw, 20px);
}

.status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #59ffbd;
  box-shadow: 0 0 0 7px rgba(89, 255, 189, 0.12), 0 0 22px rgba(89, 255, 189, 0.8);
}

.ship-wrap {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.ship {
  position: relative;
  width: min(32vw, 260px);
  min-width: 190px;
  aspect-ratio: 1 / 2.1;
  transform: rotate(44deg);
  animation: drift 5.5s ease-in-out infinite;
  filter: drop-shadow(0 30px 44px rgba(33, 132, 255, 0.28));
}

.body {
  position: absolute;
  inset: 16% 28% 18%;
  border-radius: 48% 48% 28% 28%;
  background: linear-gradient(135deg, #f4fbff 0%, #a9c4e7 50%, #5a6e97 100%);
  box-shadow: inset -18px -26px 32px rgba(18, 30, 61, 0.38), inset 14px 12px 24px rgba(255, 255, 255, 0.78);
}

.nose {
  position: absolute;
  left: 33%;
  right: 33%;
  top: 2%;
  height: 26%;
  border-radius: 50% 50% 12% 12%;
  background: linear-gradient(145deg, #ff6d7a 0%, #d72d5b 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.window {
  position: absolute;
  left: 39%;
  top: 30%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff 0 12%, #7de6ff 13% 42%, #17629b 43% 100%);
  border: 5px solid rgba(33, 45, 78, 0.62);
  box-shadow: 0 0 24px rgba(92, 219, 255, 0.5);
}

.wing {
  position: absolute;
  bottom: 25%;
  width: 30%;
  height: 32%;
  background: linear-gradient(145deg, #3b8cff, #173f9d);
  box-shadow: inset -8px -12px 18px rgba(0, 0, 0, 0.28);
}

.wing-left {
  left: 9%;
  clip-path: polygon(100% 0, 0 100%, 100% 78%);
}

.wing-right {
  right: 9%;
  clip-path: polygon(0 0, 100% 100%, 0 78%);
}

.engine {
  position: absolute;
  left: 36%;
  bottom: 11%;
  width: 28%;
  height: 14%;
  border-radius: 0 0 42% 42%;
  background: #26324f;
}

.flame {
  position: absolute;
  left: 38%;
  bottom: -8%;
  width: 24%;
  height: 24%;
  border-radius: 50% 50% 50% 50%;
  transform-origin: 50% 0;
  clip-path: polygon(50% 100%, 100% 0, 50% 18%, 0 0);
  animation: burn 0.18s ease-in-out infinite alternate;
}

.flame-a { background: #ffdf57; }
.flame-b { bottom: -4%; background: #ff6b35; transform: scale(0.65); }

.orbit {
  position: absolute;
  border: 1px solid rgba(123, 197, 255, 0.18);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit-a {
  width: min(46vw, 560px);
  aspect-ratio: 1;
  animation: pulse 4s ease-in-out infinite;
}

.orbit-b {
  width: min(34vw, 410px);
  aspect-ratio: 1;
  animation: pulse 4s ease-in-out infinite 1.2s;
}

@keyframes drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -22px; rotate: -2deg; }
}

@keyframes burn {
  from { scale: 0.86 1; opacity: 0.82; }
  to { scale: 1.08 1.22; opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; scale: 1; }
  50% { opacity: 0.55; scale: 1.04; }
}

@media (max-width: 760px) {
  body { overflow: auto; }
  .scene {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 10px;
    min-height: 100svh;
  }
  .ship-wrap { min-height: 360px; order: -1; }
  .hud { max-width: 100%; }
}
