:root {
  --bg: #05030d;
  --bg-soft: #11071f;
  --panel: rgba(21, 14, 39, 0.84);
  --panel-strong: #1a102f;
  --text: #f7f3ff;
  --muted: #c9bddf;
  --accent: #b46cff;
  --accent-2: #6f48ff;
  --line: rgba(180, 108, 255, 0.34);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --radius: 8px;
}



* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  background: #000;
  overflow-x: hidden;
}

.page-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: -1;
  pointer-events: none;
}

img,
video,
iframe {
  max-width: 100%;
}

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

.site-header,
.site-footer {
  background: rgba(5, 3, 13, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap,
.footer-wrap,
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #b46cff;
  text-shadow: 0 0 16px rgba(180, 108, 255, 0.6);
}

.brand span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-inline-start: 2px;
}

.brand-image {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.mode-toggle,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-links a {
  display: inline-flex;
  padding: 12px 10px 9px;
  border-top: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  border-top-color: var(--accent);
  background: rgba(180, 108, 255, 0.1);
}

.ghost-btn {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 12px 18px;
  font-weight: 700;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.section {
  padding: 72px 0;
}

.section.compact {
  padding-top: 36px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.section-title {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.section-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.page-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::before,
.hero::after {
    display: none;
}

.hero::after {
  -webkit-transform: rotate(24deg) scale(1.15);
  transform: rotate(24deg) scale(1.15);
  animation-duration: 42s;
  opacity: 0.44;
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-inline-start: 32px;
  margin-inline-end: 16px;
  max-width: 680px;
}

.hero h1 {
  margin: 0 0 16px 0;
  color: #ffffff;
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 0.95;
  text-shadow: 0 0 28px rgba(180, 108, 255, 0.52), 0 0 14px rgba(0, 0, 0, 0.8);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-content > p:first-of-type {
  margin: 0 0 20px 0;
  color: #b46cff;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-content > p:not(:first-of-type) {
  margin: 0 0 28px 0;
  color: #f7f3ff;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero .ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

@keyframes driftStars {
  from {
    -webkit-transform: translate3d(0, 0, 0) rotate(0deg);
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    -webkit-transform: translate3d(90px, -120px, 0) rotate(8deg);
    transform: translate3d(90px, -120px, 0) rotate(8deg);
  }
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
}

.gallery-grid .card {
  flex: 0 0 calc(33.333% - 15px);
  max-width: calc(33.333% - 15px);
}

@media (max-width: 920px) {
  .gallery-grid .card {
    flex-basis: calc(50% - 11px);
    max-width: calc(50% - 11px);
  }
}

@media (max-width: 640px) {
  .gallery-grid .card {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.nebula-types-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.nebula-types-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nebula-types-grid .card:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 560px);
}

@media (max-width: 720px) {
  .nebula-types-grid {
    grid-template-columns: 1fr;
  }

  .nebula-types-grid .card:last-child {
    grid-column: auto;
    width: 100%;
  }
}

.card {
  flex: 1 1 280px;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 24px 58px rgba(103, 55, 194, 0.32);
}

.section.compact > .card + .card {
  margin-top: 24px;
}

.section > .featured-card + .card,
.section > .card + .card {
  margin-top: 24px;
}

.featured-card {
  flex: 1 1 100%;
  padding: 28px;
}

.featured-card h3 {
  margin-bottom: 14px;
}

.card img,
.card video,
.card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 0;
}

.card-body {
  padding: 20px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 10px;
}

.card-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.planet-card {
  flex-basis: 245px;
}

.planet-card img {
  aspect-ratio: 1 / 1;
  background: #030107;
}

.fact-list {
  padding-left: 19px;
  margin: 12px 0 0;
  color: var(--muted);
}

.sky-map-frame {
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #02020a;
}

.sky-map-frame iframe {
  width: 100%;
  min-height: 720px;
  border: 0;
  display: block;
  background: #02020a;
}

@media (max-width: 720px) {
  .sky-map-frame iframe {
    min-height: 560px;
  }
}

.split {
  display: flex;
  gap: 28px;
  align-items: stretch;
  flex-wrap: wrap;
}

.split > * {
  flex: 1 1 340px;
}

.info-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  overflow: hidden;
  border-radius: var(--radius);
}

.feature-table th,
.feature-table td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.feature-table th {
  background: var(--panel-strong);
}

.model-stage {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle, rgba(180, 108, 255, 0.26), transparent 46%),
    #030107;
  overflow: hidden;
}

.rocket-model {
  width: 84px;
  height: 230px;
  position: relative;
  -webkit-transform: rotate(-8deg);
  transform: rotate(-8deg);
  animation: hoverRocket 3s ease-in-out infinite;
}

.rocket-body {
  position: absolute;
  inset: 0 18px;
  background: linear-gradient(#ffffff, #d8d1ea);
  border-radius: 48% 48% 10px 10px;
}

.rocket-window {
  position: absolute;
  top: 52px;
  left: 31px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #5126ca;
  border: 4px solid #bdb4d9;
}

.rocket-fin {
  position: absolute;
  bottom: 20px;
  width: 26px;
  height: 58px;
  background: var(--accent);
}

.rocket-fin.left {
  left: 0;
  border-radius: 18px 0 4px 18px;
}

.rocket-fin.right {
  right: 0;
  border-radius: 0 18px 18px 4px;
}

.rocket-flame {
  position: absolute;
  bottom: -42px;
  left: 29px;
  width: 26px;
  height: 58px;
  background: linear-gradient(#ffe9a8, #ff7a3d, transparent);
  border-radius: 50%;
}

@keyframes hoverRocket {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-16px) rotate(-8deg);
  }
}

.login-shell {
  min-height: calc(100vh - 151px);
  display: flex;
  align-items: center;
}

.login-card {
  width: min(480px, 100%);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-text {
  min-height: 24px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.footer-wrap {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
}

.float-note {
  float: right;
  max-width: 320px;
  margin: 0 0 16px 18px;
  padding: 14px;
  border-left: 4px solid var(--accent);
  background: rgba(180, 108, 255, 0.1);
}

.clear {
  clear: both;
}

@media (max-width: 760px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    padding-left: 8px;
    padding-right: 8px;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    min-height: 78vh;
  }

  .float-note {
    float: none;
    max-width: none;
    margin-left: 0;
  }
}
