:root {
  --bg-top: #05070f;
  --bg-mid: #070b18;
  --bg-bottom: #02030a;
  --accent: #f0a55a;
  --accent-glow: rgba(240, 165, 90, 0.55);
  --text: #c9d2e3;
  --text-muted: #6b7689;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(120% 80% at 50% 0%, #0b1226 0%, transparent 55%),
    radial-gradient(140% 100% at 50% 120%, #0a0f22 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
  color: var(--text);
  overflow: hidden;
  position: relative;
}

/* Starfield canvas */
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Faint EW radar-sweep scanline drifting down the screen */
.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(240, 165, 90, 0.04) 48%,
    rgba(240, 165, 90, 0.09) 50%,
    rgba(240, 165, 90, 0.04) 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: sweep 9s linear infinite;
  mix-blend-mode: screen;
}

@keyframes sweep {
  0% { background-position: 0 -120%; }
  100% { background-position: 0 120%; }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(80% 70% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
}

/* Stage / logo */
.stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.logo-wrap {
  position: relative;
  animation: rise 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo-wrap::after {
  content: "";
  position: absolute;
  inset: -22% -14%;
  background: radial-gradient(closest-side, rgba(120, 150, 220, 0.12), transparent 78%);
  z-index: -1;
  filter: blur(10px);
}

.logo {
  width: min(66vw, 760px);
  height: auto;
  display: block;
  /* The source PNG has a solid black background — "screen" makes black
     pixels transparent so only the logo sits on the cosmic sky. */
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 26px rgba(180, 200, 255, 0.14))
          drop-shadow(0 0 70px rgba(240, 165, 90, 0.12));
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 26px rgba(180, 200, 255, 0.12)) drop-shadow(0 0 55px rgba(240, 165, 90, 0.08)); }
  50% { filter: drop-shadow(0 0 34px rgba(180, 200, 255, 0.20)) drop-shadow(0 0 80px rgba(240, 165, 90, 0.16)); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Contact */
.contact {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2rem 1.5rem 2.4rem;
  display: flex;
  justify-content: center;
  animation: fade 2s ease 0.6s both;
}

.contact-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.15rem;
  font-size: clamp(0.8rem, 1.6vw, 0.98rem);
  letter-spacing: 0.03em;
}

.contact-item {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.contact-item.muted {
  color: var(--text-muted);
}

.contact-item.primary {
  color: var(--accent);
  font-weight: 500;
}

.contact-item.primary:hover {
  text-shadow: 0 0 14px var(--accent-glow);
}

.sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.55;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .logo { width: 86vw; }
  .sep { display: none; }
  .contact-inner { flex-direction: column; gap: 0.55rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .logo-wrap, .scanline, .contact { animation: none; }
}
