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

html,
body {
  height: 100%;
}

/* Global */
body {
  background: radial-gradient(circle at top, #020617 0%, #000000 55%, #000000 100%);
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Roboto", Arial, sans-serif;
  overflow-x: hidden;  /* allow vertical scroll, no horizontal */
  position: relative;
}

/* Subtle film grain */
.noise-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  z-index: 0;
}

/* Slight horizon glow on bottom */
.glow {
  position: fixed;
  left: 50%;
  bottom: -80px;
  transform: translateX(-50%);
  width: 120%;
  height: 220px;
  background: radial-gradient(circle at center top, rgba(148, 163, 184, 0.25), transparent 70%);
  opacity: 0.7;
  filter: blur(10px);
  z-index: 0;
}

/* Poster frame */
.frame {
  position: relative;
  inset: 0;
  min-height: 100vh; /* can grow taller if needed */
  width: 100vw;
  padding-inline: clamp(32px, 7vw, 96px);
  padding-block: clamp(48px, 8vh, 80px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 1;
}

/* Left side text block */
.left-panel {
  max-width: 520px;
}

/* Main ROWND wordmark */
.logo {
  font-size: clamp(34px, 6vw, 70px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 500;
  color: #f9fafb;
  white-space: nowrap;
  margin-bottom: 10px;
}

/* Tagline – big serif style */
.tagline {
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #e5e7eb;
  margin-bottom: 18px;
}

/* Small caption line */
.caption {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #9ca3af;
  max-width: 360px;
}

/* Distant moon / planet */
.moon {
  position: fixed;
  width: min(360px, 40vw);
  height: min(360px, 40vw);
  border-radius: 50%;
  top: 12%;
  right: 6%;
  background:
    radial-gradient(circle at 28% 30%, #f9fafb, #d4d4d8 40%, #71717a 72%, #18181b 100%);
  opacity: 0.25;
  filter: blur(0.5px);
  box-shadow:
    0 0 40px rgba(248, 250, 252, 0.15),
    0 0 140px rgba(148, 163, 184, 0.25);
  pointer-events: none;
  z-index: 0;
}

/* HUD bottom-right */
.hud {
  position: fixed;
  inset-inline: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  padding-inline: clamp(18px, 5vw, 40px);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  pointer-events: none;
  z-index: 2;
}

.hud-right {
  margin-left: auto;
  text-align: right;
}

.hud-line {
  color: #e5e7eb;
  margin-bottom: 3px;
}

.hud-muted {
  color: #6b7280;
}

/* --------- Responsive --------- */
@media (max-width: 768px) {
  .frame {
    align-items: center;        /* center content vertically on tablets/phones */
    padding-block: 40px;
  }

  .left-panel {
    max-width: 100%;
  }

  .moon {
    width: 240px;
    height: 240px;
    top: 8%;
    right: -4%;
  }
}

@media (max-width: 480px) {
  .frame {
    align-items: center;
    padding-inline: 20px;
  }

  .logo {
    font-size: 30px;
    letter-spacing: 0.25em;
    white-space: normal;       /* allow wrap on very small screens */
  }

  .tagline {
    letter-spacing: 0.06em;
  }

  .caption {
    letter-spacing: 0.12em;
  }

  .moon {
    width: 200px;
    height: 200px;
    top: 6%;
    right: -10%;
  }

  .hud {
    font-size: 10px;
  }
}
