/* layout.css — page-level layout + responsive rules */

/* ── Background layers (z-index: nebula 0, stars 1, comets 2, floaters 3, content 10) ── */
#starfield,
#floaters {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;     /* mouse parallax */
}

#floaters {
  z-index: 3;
  overflow: hidden;
}

/* ── Nebula (diffuse drifting clouds) ── */
.nebula {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  will-change: transform;     /* mouse parallax */
}

.nebula-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.nebula-orb-1 {
  width: 640px;
  height: 640px;
  top: -180px;
  left: -160px;
  background: radial-gradient(circle, rgba(207, 255, 4, 0.20) 0%, transparent 60%);
  animation: nebula-drift-1 90s ease-in-out infinite;
}

.nebula-orb-2 {
  width: 560px;
  height: 560px;
  bottom: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(159, 204, 3, 0.18) 0%, transparent 60%);
  animation: nebula-drift-2 120s ease-in-out infinite;
}

.nebula-orb-3 {
  width: 420px;
  height: 420px;
  top: 35%;
  left: 55%;
  background: radial-gradient(circle, rgba(223, 255, 51, 0.10) 0%, transparent 60%);
  animation: nebula-drift-3 150s ease-in-out infinite;
}

/* ── Comets (shooting stars) ── */
.comets {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  will-change: transform;     /* mouse parallax */
}

.comet {
  position: absolute;
  width: 400px;
  height: 30px;
  left: -440px;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 6px rgba(207, 255, 4, 0.6));
}

.comet-1 {
  top: 18%;
  animation: comet-streak-1 14s linear 0s infinite;
}

.comet-2 {
  top: 55%;
  animation: comet-streak-2 18s linear 5s infinite;
}

.comet-3 {
  top: 32%;
  animation: comet-streak-3 11s linear 9s infinite;
}

/* ── Top bar ── */
.top-bar {
  position: relative;
  z-index: 10;
  height: var(--top-bar-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 10;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px var(--gutter);
  min-height: 0;                /* allow flex shrink */
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 10;
  flex: 0 0 auto;
  padding: 18px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .top-bar {
    height: 56px;
  }

  .brand-name {
    font-size: 10px;
  }

  .footer-divider {
    display: none;
  }

  .comet {
    width: 280px;
    height: 22px;
  }

  .nebula-orb-1 { width: 380px; height: 380px; }
  .nebula-orb-2 { width: 340px; height: 340px; }
  .nebula-orb-3 { width: 260px; height: 260px; }
}
