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

:root {
  --ice: #d6ecff;
  --ice-soft: rgba(214, 236, 255, 0.65);
  --ice-faint: rgba(214, 236, 255, 0.16);
  --bg: #000;
  --glass: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  --glass-border: rgba(214, 236, 255, 0.18);
  --font-main: 'Sora', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font-main);
  color: #e8f2fb;
  overflow-x: hidden;
  position: relative;
}

/* ── pitch black background + stars ── */
.bg-layer { position: fixed; inset: 0; z-index: 0; background: #000; }

.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.star {
  position: absolute; border-radius: 50%;
  background: var(--ice);
  opacity: 0.1;
  animation: twinkle ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.08; transform: scale(1); }
  50%      { opacity: 0.8;  transform: scale(1.4); }
}

/* ── astronaut ── */
.astro {
  position: fixed; left: 0; top: 0;
  width: 30px; height: 37px;
  z-index: 1; pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 0 6px rgba(214, 236, 255, 0.35));
}
.astro svg { width: 100%; height: 100%; overflow: visible; }
.astro .arm-l { transform-origin: 38px 62px; animation: swingL 3.2s ease-in-out infinite; }
.astro .arm-r { transform-origin: 82px 62px; animation: swingR 3.2s ease-in-out infinite; }
.astro .leg-l { transform-origin: 50px 108px; animation: swingR 4s ease-in-out infinite; }
.astro .leg-r { transform-origin: 70px 108px; animation: swingL 4s ease-in-out infinite; }
@keyframes swingL { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
@keyframes swingR { 0%,100% { transform: rotate(8deg); }  50% { transform: rotate(-10deg); } }

/* ── nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ice-faint);
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 4px;
  color: var(--ice); opacity: 0.8; text-decoration: none;
}
.nav-home {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 3px;
  color: var(--ice-soft); text-decoration: none;
  border: 1px solid var(--ice-faint);
  padding: 8px 16px; border-radius: 999px;
  transition: all 0.3s ease;
}
.nav-home:hover {
  color: #fff; border-color: var(--ice);
  background: rgba(214, 236, 255, 0.08);
}

/* ── layout ── */
main {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto;
  padding: 160px 40px 100px;
}

.headline {
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 60px;
  color: #fff;
  opacity: 0; transform: translateY(30px);
  animation: reveal 0.9s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
.headline span { color: var(--ice); }
.headline .dim { color: rgba(255, 255, 255, 0.22); }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* ── glassmorphism cards ── */
.glass-card {
  position: relative; overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 40px;
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.14);
  margin-bottom: 28px;
  opacity: 0; transform: translateY(24px);
  animation: reveal 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice), transparent);
  opacity: 0.5;
}
.glass-card:nth-child(2) { animation-delay: 0.35s; }
.glass-card:nth-child(3) { animation-delay: 0.5s; }
.glass-card:nth-child(4) { animation-delay: 0.65s; }

.card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 4px;
  color: var(--ice); opacity: 0.7;
  margin-bottom: 16px; text-transform: uppercase;
}
.card-text { font-size: 1.02rem; line-height: 1.8; color: #d4e0ea; }
.card-text a {
  color: var(--ice); text-decoration: none;
  border-bottom: 1px solid rgba(214,236,255,0.35);
  transition: border-color 0.2s;
}
.card-text a:hover { border-color: var(--ice); }

/* ── credits ── */
.credits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.credit-item {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(214, 236, 255, 0.14);
  border-radius: 16px; padding: 28px;
  transition: border-color 0.3s, background 0.3s;
}
.credit-item:hover {
  border-color: rgba(214, 236, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}
.credit-name { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.credit-handle {
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--ice); opacity: 0.75; letter-spacing: 1px;
}
.credit-dot {
  position: absolute; top: 20px; right: 20px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ice); opacity: 0.7;
  box-shadow: 0 0 10px var(--ice);
}
.credit-dot.alt { background: #fff; box-shadow: 0 0 10px #fff; }

.divider {
  width: 60px; height: 1px; margin: 32px 0; opacity: 0.5;
  background: linear-gradient(90deg, var(--ice), transparent);
}

@media (max-width: 600px) {
  main { padding: 120px 20px 80px; }
  nav { padding: 16px 20px; }
  .credits-grid { grid-template-columns: 1fr; }
  .glass-card { padding: 28px 24px; }
  .astro { width: 26px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
