:root {
  --bg: #050608;
  --bg-2: #0a0d12;
  --fg: #e8ecf2;
  --muted: #8a93a3;
  --gold: #f0a830;
  --blue: #3aa0ff;
  --line: rgba(255, 255, 255, 0.08);
}

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

html, body {
  height: 100%;
}

body {
  background: radial-gradient(120% 90% at 50% 18%, var(--bg-2) 0%, var(--bg) 60%);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle starfield */
.stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 75% 20%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 50% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 85% 65%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1.5px 1.5px at 35% 50%, rgba(255,255,255,0.3), transparent);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Ambient glow behind the logo */
.glow {
  position: fixed;
  top: 22%;
  left: 50%;
  width: min(900px, 90vw);
  height: 480px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(58,160,255,0.10), transparent 70%),
    radial-gradient(closest-side, rgba(240,168,48,0.08), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vh 24px;
  gap: 30px;
}

.brand {
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo {
  width: min(760px, 90vw);
  aspect-ratio: 1600 / 826;
  background-image: url("assets/logo.png"); /* fallback for browsers without image-set */
  background-image: image-set(
    url("assets/logo.webp") type("image/webp"),
    url("assets/logo.png") type("image/png")
  );
  background-image: -webkit-image-set(
    url("assets/logo.webp") type("image/webp"),
    url("assets/logo.png") type("image/png")
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 10px 50px rgba(58, 160, 255, 0.18));
  /* download deterrents */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.slogan {
  font-family: "Exo 2", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: clamp(0.7rem, 2vw, 1.2rem);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 0.9em;
  justify-content: center;
  padding-left: 0.32em;
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.slogan .accent {
  background: linear-gradient(90deg, var(--gold), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

/* Lens-flare horizon line, echoing the brand slogan graphic */
.horizon {
  position: relative;
  width: min(900px, 92vw);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(240,168,48,0.25) 22%,
    var(--gold) 46%,
    #fff 50%,
    var(--blue) 54%,
    rgba(58,160,255,0.25) 78%,
    transparent 100%
  );
  margin: 4px 0 2px;
  animation: widen 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.horizon .flare {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 120px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,255,255,0.55), rgba(255,255,255,0.12) 30%, transparent 70%);
  filter: blur(4px);
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 26px 24px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(138, 147, 163, 0.6);
}

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

@keyframes widen {
  from { opacity: 0; transform: scaleX(0.3); }
  to { opacity: 1; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .brand, .slogan, .horizon {
    animation: none;
  }
}
