/* BIGBANG — coming soon */

/* Fonts are bundled locally (SIL Open Font License, see fonts/) */
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #08061a;          /* deep space behind the nebula */
  --brand: #00afef;         /* logo blue */
  --brand-glow: #6fd6ff;
  --nebula: #d9489c;        /* pink from the background nebula */
  --star: #f3f1ff;          /* headline / primary text */
  --dust: #b4b0d6;          /* secondary text */

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 6vw, 96px);
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--void);
  color: var(--star);
  font-family: var(--body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Sky: photo + legibility wash + live starfield ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(100deg, rgba(8, 6, 26, 0.92) 0%, rgba(8, 6, 26, 0.65) 45%, rgba(8, 6, 26, 0.15) 100%),
    linear-gradient(to top, rgba(8, 6, 26, 0.85) 0%, rgba(8, 6, 26, 0) 35%),
    url("images/background.jpg") center top / cover no-repeat;
  animation: drift 60s ease-in-out infinite alternate;
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes drift {
  from { background-position: 0 0, 0 0, 50% 0%; }
  to   { background-position: 0 0, 0 0, 50% 12%; }
}

/* ---------- Page frame ---------- */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--gutter);
  overflow: hidden;   /* exhaust trail and liftoff never cause scrollbars */
}

.top {
  padding-top: clamp(28px, 5vh, 56px);
}

.logo {
  display: block;
  width: 130px;
  height: auto;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 4vw;
}

.message {
  max-width: 44rem;
  padding: 6vh 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(0, 175, 239, 0.35);
  border-radius: 999px;
  background: rgba(0, 175, 239, 0.08);
  color: var(--brand-glow);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--brand);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0%   { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

h1 {
  margin-top: 1.75rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 30%, #c9d6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.lede {
  margin-top: 1.5rem;
  max-width: 30rem;
  color: var(--dust);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

/* ---------- Rocket: the one big moment ---------- */

.launch {
  position: relative;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* soft planet-glow the rocket rises out of */
.launch::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6vh;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, 62%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 175, 239, 0.22), rgba(217, 72, 156, 0.08) 60%, transparent 100%);
  filter: blur(10px);
  pointer-events: none;
}

.rocket {
  position: relative;
  width: clamp(120px, 14vw, 190px);
  transform: rotate(14deg);
  animation:
    liftoff 2.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both,
    hover 5s ease-in-out 2.9s infinite;
}

.rocket img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(111, 214, 255, 0.35));
}

/* bright core of the engine burn */
.flame {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 80%;
  width: 26%;
  height: 22%;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: radial-gradient(ellipse at 50% 20%, #fff7d6 0%, #ffc857 35%, rgba(255, 120, 60, 0.6) 65%, transparent 75%);
  filter: blur(3px);
  animation: flicker 0.12s steps(2) infinite alternate;
}

/* long exhaust trail */
.trail {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 88%;
  width: 22%;
  height: 120vh;
  transform: translateX(-50%);
  transform-origin: top center;
  background: linear-gradient(
    to bottom,
    rgba(255, 214, 140, 0.85) 0%,
    rgba(111, 214, 255, 0.45) 8%,
    rgba(0, 175, 239, 0.18) 30%,
    rgba(217, 72, 156, 0.06) 60%,
    transparent 85%
  );
  border-radius: 50% 50% 0 0;
  filter: blur(8px);
  animation: trail 2.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes liftoff {
  from { transform: translateY(70vh) rotate(14deg); }
  to   { transform: translateY(0) rotate(14deg); }
}

@keyframes hover {
  0%, 100% { transform: translateY(0) rotate(14deg); }
  50%      { transform: translateY(-14px) rotate(12deg); }
}

@keyframes trail {
  from { transform: translateX(-50%) scaleY(0.15); opacity: 0; }
  to   { transform: translateX(-50%) scaleY(1); opacity: 1; }
}

@keyframes flicker {
  from { opacity: 0.85; transform: translateX(-50%) scale(0.96, 0.92); }
  to   { opacity: 1;    transform: translateX(-50%) scale(1.04, 1.08); }
}

/* text settles in as the rocket clears the horizon */
.message > * {
  animation: settle 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.message > :nth-child(1) { animation-delay: 1.1s; }
.message > :nth-child(2) { animation-delay: 1.25s; }
.message > :nth-child(3) { animation-delay: 1.4s; }

@keyframes settle {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */

.bottom {
  padding: 24px 0 clamp(20px, 4vh, 36px);
  color: rgba(180, 176, 214, 0.7);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0;
  }

  .launch {
    order: -1;
    min-height: 0;
    height: auto;
    padding-top: 4vh;
    justify-content: flex-start;
  }

  .launch::before {
    display: none;
  }

  .rocket {
    width: 92px;
    margin-left: 4px;
  }

  .trail {
    height: 38vh;
  }

  .message {
    padding: 3vh 0 4vh;
  }

  h1 {
    margin-top: 1.25rem;
  }

  .sky {
    background:
      linear-gradient(to bottom, rgba(8, 6, 26, 0.55) 0%, rgba(8, 6, 26, 0.88) 55%, rgba(8, 6, 26, 0.95) 100%),
      url("images/background.jpg") 60% top / cover no-repeat;
    animation: none;
  }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
