:root {
  --background: #080f1d;
  --panel: #142238;
  --text: #f3eee2;
  --muted: #b6c4d6;
  --accent: #ebc773;
  --accent-deep: #c99a3c;
  --glow: #5fe3e0;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--background);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Sterrenhemel en nevel, zonder externe bestanden. */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 33%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 58%, #dfe8ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 79% 24%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 46%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 54%, #dfe8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 90%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 93% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 50% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 19% 40%, #fff 50%, transparent 51%),
    radial-gradient(ellipse 60% 45% at 15% 10%, rgba(120, 70, 190, 0.35), transparent 70%),
    radial-gradient(ellipse 55% 40% at 90% 15%, rgba(40, 110, 190, 0.28), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(235, 199, 115, 0.12), transparent 70%),
    linear-gradient(180deg, #060b16 0%, var(--background) 55%, #0b1628 100%);
  animation: twinkle 7s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}

.planet {
  position: fixed;
  z-index: 0;
  width: min(70vw, 620px);
  right: max(-22vw, -200px);
  bottom: max(-24vw, -210px);
  opacity: 0.7;
  filter: drop-shadow(0 0 60px rgba(95, 227, 224, 0.25));
  pointer-events: none;
}

.bar,
.hero {
  position: relative;
  z-index: 1;
}

.bar {
  padding: max(16px, env(safe-area-inset-top)) 20px 0;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(235, 199, 115, 0.35);
  border-radius: 999px;
  background: rgba(20, 34, 56, 0.6);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.back:hover,
.back:focus-visible {
  border-color: var(--accent);
  background: rgba(28, 48, 74, 0.85);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px 64px;
}

.ship {
  width: min(78vw, 380px);
  height: auto;
  margin-bottom: -12px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 30px rgba(95, 227, 224, 0.18));
  animation: drift 6s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-family: 'Cinzel', 'Trajan Pro', 'Optima', 'Palatino Linotype', Georgia, serif;
  font-size: clamp(2.3rem, 9vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6dc 0%, var(--accent) 55%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(235, 199, 115, 0.25);
}

.sub {
  margin: 18px 0 34px;
  max-width: 30ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  line-height: 1.5;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 16px 34px;
  border: 1px solid #fff1c8;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6dc97 0%, var(--accent) 50%, var(--accent-deep) 100%);
  color: #1a1408;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow:
    0 0 0 4px rgba(235, 199, 115, 0.15),
    0 12px 32px rgba(235, 199, 115, 0.3);
  transition:
    transform 0.15s,
    box-shadow 0.2s;
}

.download svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download:hover,
.download:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 6px rgba(235, 199, 115, 0.22),
    0 16px 40px rgba(235, 199, 115, 0.4);
}

.download:focus-visible,
.back:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
}

.meta {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .ship,
  .sky {
    animation: none;
  }
}
