:root {
  color-scheme: dark;
  --bg: #070a0f;
  --panel: rgba(16, 23, 36, 0.9);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #9aa5c1;
  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.15);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.16), transparent 30%),
    linear-gradient(180deg, #0b1120 0%, #06080f 100%);
  color: var(--text);
}

html, body {
  height: 100vh;
}

body {
  display: grid;
  place-items: center;
  padding: 16px;
}

.page-shell {
  width: min(1120px, 100%);
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(124, 58, 237, 0.18), transparent 24%),
    radial-gradient(circle at 82% 40%, rgba(14, 165, 233, 0.12), transparent 20%);
  pointer-events: none;
}

.panel-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.status-tag {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #d8dfff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.top-banner {
  width: 100%;
  display: block;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.top-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 40vh;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.banner-text {
  background: rgba(0,0,0,0.55);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.description {
  margin: 22px 0 32px;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.details-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-label {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
}

.footer {
  margin-top: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #eef2ff;
  font-weight: 600;
}

.footer-link {
  color: #7c3aed;
  text-decoration: none;
  position: relative;
  transition: transform 0.28s ease, color 0.28s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  inset: 100% 0 0 0;
  height: 2px;
  background: rgba(124, 58, 237, 0.8);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.footer-link:hover {
  color: #c4b5fd;
  transform: translateY(-1px);
}

.footer-link:hover::after {
  transform: scaleX(1);
}

.astro-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.warp-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 15%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.97), rgba(10, 16, 32, 0.98));
  overflow: hidden;
  transition: opacity 0.12s ease;
}

.warp-overlay::before,
.warp-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.warp-overlay::before {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.95) 1px, transparent 15%),
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 0.8px, transparent 12%);
  background-size: 10px 10px, 24px 24px;
  opacity: 0.95;
  filter: blur(0.2px);
  animation: warp-stars 5s linear forwards;
}

.warp-overlay::after {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%);
  opacity: 0.85;
  filter: blur(1.4px);
  transform: translateY(-45%);
  animation: warp-lens 5s ease-in-out forwards;
}

.warp-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.14) 0.5%, rgba(255, 255, 255, 0) 1%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 0.8%, rgba(255, 255, 255, 0) 1.8%);
  background-size: 100% 18px, 100% 42px;
  background-position: 0 0, 0 10px;
  opacity: 0;
  transform: scale(0.4) translateY(10%);
  animation: warp-tunnel 5s ease-in-out forwards;
}

.warp-visible {
  opacity: 1;
}

body.warp-active .warp-overlay {
  opacity: 1;
}

@keyframes warp-tunnel {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(20%);
  }
  10% {
    opacity: 0.35;
    transform: scale(0.75) translateY(5%);
  }
  40% {
    opacity: 0.85;
    transform: scale(1.55) translateY(-55%);
  }
  70% {
    opacity: 0.8;
    transform: scale(2.8) translateY(-135%);
  }
  100% {
    opacity: 0;
    transform: scale(4.8) translateY(-280%);
  }
}

@keyframes warp-lens {
  0% {
    transform: translateY(-45%) scaleY(1);
    opacity: 0.75;
  }
  30% {
    transform: translateY(-75%) scaleY(1.2);
    opacity: 0.95;
  }
  70% {
    transform: translateY(-170%) scaleY(2.4);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-270%) scaleY(4);
    opacity: 0;
  }
}

@keyframes warp-stars {
  0% {
    background-position: 50% 0%;
    transform: scale(0.9);
    opacity: 0.2;
  }
  15% {
    background-position: 50% 35%;
    transform: scale(1.1);
    opacity: 0.6;
  }
  35% {
    background-position: 50% 105%;
    transform: scale(1.9);
    opacity: 0.95;
  }
  60% {
    background-position: 50% 190%;
    transform: scale(3.1);
    opacity: 0.95;
  }
  100% {
    background-position: 50% 380%;
    transform: scale(5.4);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .panel {
    padding: 32px 24px;
  }

  .status-tag {
    font-size: 0.8rem;
    padding: 10px 16px;
  }

  .description {
    margin-bottom: 24px;
  }
}
