:root {
  --ink: #0a0818;
  --void: #050814;
  --mist: #d7c6b4;
  --fog: #f0e6d8;
  --cyan: #3ec8e8;
  --horizon-warm: #d4a070;
  --horizon-peach: #c48962;
  --mid-purple: #3d2d4f;
  --font-display: "Chakra Petch", sans-serif;
  --font-body: "Sora", sans-serif;
  --land-height: 40vh;
  --land-height-dynamic: 40dvh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--fog);
  font-family: var(--font-body);
  background: var(--void);
  overflow-x: hidden;
}

/* --- Sky: indigo → purple → warm peach (matches SOL1080bg mood) --- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Warm peach carries behind the land silhouette so the join stays soft */
  background: linear-gradient(
    180deg,
    #050814 0%,
    #0c1028 20%,
    #1a1638 42%,
    #3d2d4f 58%,
    #8a5a4a 70%,
    #c48962 82%,
    #d4a070 92%,
    #d4a070 100%
  );
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.45;
  mix-blend-mode: screen;
}

.nebula-a {
  width: min(42vw, 28rem);
  height: min(28vw, 18rem);
  top: 6%;
  left: 4%;
  background:
    radial-gradient(ellipse at 40% 45%, rgba(255, 248, 230, 0.55) 0%, transparent 62%),
    radial-gradient(ellipse at 70% 55%, rgba(220, 200, 255, 0.25) 0%, transparent 55%);
  animation: nebula-drift 95s ease-in-out infinite alternate;
}

.nebula-b {
  width: min(36vw, 24rem);
  height: min(22vw, 14rem);
  top: 10%;
  right: 6%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 250, 235, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 60%, rgba(200, 180, 255, 0.2) 0%, transparent 50%);
  animation: nebula-drift 110s ease-in-out infinite alternate-reverse;
}

.nebula-c {
  width: min(22vw, 14rem);
  height: min(14vw, 9rem);
  top: 38%;
  right: 22%;
  opacity: 0.35;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 245, 220, 0.55) 0%, transparent 65%);
  animation: nebula-drift 80s ease-in-out infinite alternate;
}

.stars {
  position: absolute;
  inset: 0;
  bottom: 28%;
  background-repeat: repeat;
  animation: drift 90s linear infinite;
}

.stars-a {
  opacity: 0.85;
  background-image:
    radial-gradient(1px 1px at 8% 12%, rgba(255, 250, 240, 0.95) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 16% 28%, rgba(255, 248, 220, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 24% 8%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 36%, rgba(255, 240, 210, 0.55) 50%, transparent 51%),
    radial-gradient(2px 2px at 41% 18%, rgba(255, 252, 235, 1) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 6%, rgba(255, 255, 255, 0.65) 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 30%, rgba(255, 245, 220, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 14%, rgba(255, 250, 230, 0.95) 50%, transparent 51%),
    radial-gradient(1px 1px at 81% 40%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 22%, rgba(255, 248, 220, 0.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 12% 48%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 52%, rgba(255, 240, 210, 0.4) 50%, transparent 51%);
  background-size: 380px 300px;
}

.stars-b {
  opacity: 0.55;
  animation-duration: 130s;
  animation-direction: reverse;
  background-image:
    radial-gradient(1px 1px at 5% 20%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 19% 44%, rgba(255, 245, 220, 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 37% 10%, rgba(255, 250, 230, 0.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 38%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 8%, rgba(255, 240, 210, 0.55) 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 32%, rgba(255, 252, 240, 0.95) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 58%, rgba(255, 255, 255, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 55%, rgba(255, 248, 220, 0.4) 50%, transparent 51%);
  background-size: 460px 340px;
}

.stars-c {
  opacity: 0.4;
  animation-duration: 70s;
  bottom: 32%;
  background-image:
    radial-gradient(1px 1px at 14% 16%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 26%, rgba(255, 240, 210, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 69% 12%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 42%, rgba(255, 248, 220, 0.7) 50%, transparent 51%);
  background-size: 280px 220px;
  animation-name: drift-twinkle;
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  /* Overlap into the land so there is no hard glow cutoff at the art edge */
  bottom: 0;
  height: 48%;
  background:
    radial-gradient(ellipse 110% 70% at 50% 72%, rgba(255, 190, 130, 0.32) 0%, transparent 70%),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(212, 160, 112, 0.12) 45%,
      rgba(212, 160, 112, 0.2) 70%,
      transparent 100%
    );
  animation: pulse-glow 8s ease-in-out infinite;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Land strip: bottom third, full width (stretch / cover as needed) */

.land {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: var(--land-height);
  height: var(--land-height-dynamic);
  /* Keep art proportions; on narrow viewports show the left of the strip */
  object-fit: cover;
  object-position: left bottom;
  pointer-events: none;
  user-select: none;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 380px 0; }
}

@keyframes drift-twinkle {
  0% {
    background-position: 0 0;
    opacity: 0.28;
  }
  50% {
    background-position: 140px 0;
    opacity: 0.5;
  }
  100% {
    background-position: 280px 0;
    opacity: 0.28;
  }
}

@keyframes nebula-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2.5%, 1.5%, 0) scale(1.05); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Hero: sits in the sky above the land --- */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Equal side padding; extra bottom padding lifts the flex center to ~3/5 from the bottom */
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 3rem);
  padding-bottom: calc(clamp(1.5rem, 4vw, 3rem) + 20vh);
  gap: clamp(0.85rem, 2.2vw, 1.35rem);
}

.brand {
  display: block;
  width: min(92vw, 36rem);
  height: auto;
  margin-bottom: 0.2rem;
  animation: rise 0.9s ease-out both;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--mist);
  text-shadow: 0 2px 14px rgba(5, 8, 20, 0.5);
  animation: rise 0.9s ease-out 0.12s both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1rem;
  margin-top: 0.55rem;
  animation: rise 0.9s ease-out 0.24s both;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.action-primary {
  color: var(--void);
  background: var(--cyan);
  border-color: var(--cyan);
}

.action-primary:hover,
.action-primary:focus-visible {
  background: #6ad7ef;
  border-color: #6ad7ef;
  outline: none;
}

.action-secondary {
  color: var(--cyan);
  background: rgba(5, 8, 20, 0.25);
  border-color: rgba(62, 200, 232, 0.65);
  backdrop-filter: blur(4px);
}

.action-secondary:hover,
.action-secondary:focus-visible {
  color: var(--fog);
  border-color: var(--cyan);
  background: rgba(62, 200, 232, 0.12);
  outline: none;
}

.footer {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 1.25rem 0.85rem;
  text-align: center;
  pointer-events: none;
}

.footer p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 230, 216, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

@media (max-width: 520px) {
  .actions {
    flex-direction: column;
    width: min(100%, 18rem);
  }

  .action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stars,
  .nebula,
  .horizon,
  .brand,
  .headline,
  .actions {
    animation: none;
  }
}
