:root {
  --night: #14152c;
  --ink: #101126;
  --cream: #fdf6e3;
  --parchment: #f2e7c9;
  --gold: #d9a441;
  --gold-deep: #a8792f;
  --gold-pale: #f2cd85;

  --font-pixel-display: "Pixelify Sans", sans-serif;
  --font-pixel-body: "VT323", monospace;
  --font-pixel-caps: "Press Start 2P", monospace;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  background: #3f92dd;
}

/* One screen, no scroll: the animated pixel Sundered Sea */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3.5rem;
  color: var(--cream);
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* ---- Scene animation ---- */

.clouds-a { animation: drift 90s linear infinite; }
.clouds-b { animation: drift 150s linear infinite; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-480px); }
}

.ship-track { animation: sail 75s linear infinite; animation-delay: -35s; }

@keyframes sail {
  from { transform: translateX(-70px); }
  to { transform: translateX(550px); }
}

.ship-bob { animation: bob 3s ease-in-out infinite alternate; }

@keyframes bob {
  from { transform: translateY(0); }
  to { transform: translateY(2px); }
}

.spark-a { animation: blink 2.4s steps(1, end) infinite; }
.spark-b { animation: blink 2.4s steps(1, end) infinite reverse; }

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}

@media (prefers-reduced-motion: reduce) {
  .clouds-a, .clouds-b, .ship-track, .ship-bob, .spark-a, .spark-b {
    animation: none;
  }
}

/* soft tint behind the copy so cream text stays readable on a bright sky */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(13, 24, 48, 0.55) 0%, rgba(13, 24, 48, 0.28) 45%, rgba(13, 24, 48, 0) 75%);
}

.nav,
.pitch {
  position: relative;
  z-index: 2;
}

/* ---- Nav ---- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-pixel-caps);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(180deg, var(--cream) 0%, var(--gold-pale) 45%, var(--gold) 70%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.45));
}

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

.pitch {
  max-width: 44rem;
  margin-top: auto;
  margin-bottom: auto;
  padding-left: 5.5rem;
}

.pitch h1 {
  font-family: var(--font-pixel-display);
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--cream);
  text-shadow: 4px 4px 0 rgba(16, 22, 44, 0.55);
}

.pitch p {
  font-family: var(--font-pixel-body);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.4;
  max-width: 32rem;
  margin-top: 1.5rem;
  color: var(--cream);
  text-shadow: 2px 2px 0 rgba(16, 22, 44, 0.55);
}

@media (max-width: 720px) {
  .hero {
    padding: 1.5rem;
  }

  .pitch {
    padding-left: 0;
  }
}
