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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#0b1120 0%, #101a33 55%, #16224a 100%);
  color: #e8ecf4;
  padding: 24px;
  overflow: hidden;
}

/* ---------- night sky ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.stars span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #cfe0ff;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle { 50% { opacity: 0.25; } }

.moon {
  position: absolute;
  top: 8%; right: 10%;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fdf6e3, #e8dcc0 70%);
  box-shadow: 0 0 40px 12px rgba(253, 246, 227, 0.18);
}

.cloud {
  position: absolute;
  height: 26px;
  border-radius: 999px;
  background: rgba(160, 180, 220, 0.10);
  filter: blur(6px);
  animation: drift 46s linear infinite;
}
.cloud-1 { top: 16%; left: -200px; width: 180px; }
.cloud-2 { top: 31%; left: -300px; width: 260px; animation-duration: 70s; animation-delay: -24s; }
@keyframes drift { to { transform: translateX(135vw); } }

/* ---------- ground ---------- */
.ground {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 16vh; z-index: 1;
  background: linear-gradient(#131c36, #0a0f22);
  border-top: 1px solid rgba(140, 160, 200, 0.12);
  pointer-events: none;
}

/* ---------- the doxie ---------- */
.doxie-runner {
  position: fixed;
  bottom: 8.5vh; left: 0;
  z-index: 2;
  width: clamp(280px, 36vw, 440px);
  animation: trot-across 18s linear infinite;
}
@keyframes trot-across {
  from { transform: translateX(-45vw); }
  to   { transform: translateX(115vw); }
}

.doxie { width: 100%; height: auto; display: block; cursor: pointer; }

.dog-bob { animation: bob 0.55s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.leg {
  transform-box: fill-box;
  transform-origin: 50% 8%;
  animation: leg-swing 0.55s ease-in-out infinite alternate;
}
.leg-a { animation-delay: 0s; }
.leg-b { animation-delay: -0.275s; }
@keyframes leg-swing {
  from { transform: rotate(-22deg); }
  to   { transform: rotate(22deg); }
}

.tail {
  transform-box: fill-box;
  transform-origin: 90% 90%;
  animation: wag 0.38s ease-in-out infinite alternate;
}
@keyframes wag {
  from { transform: rotate(-16deg); }
  to   { transform: rotate(20deg); }
}

.doxie.boop { animation: hop 0.55s ease; }
@keyframes hop {
  30% { transform: translateY(-34px) rotate(-4deg); }
  60% { transform: translateY(0); }
  75% { transform: translateY(-12px); }
}

/* ---------- content ---------- */
.card {
  text-align: center;
  max-width: 520px;
  position: relative;
  z-index: 3;
}

.badge {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #9fb3d9;
  border: 1px solid #2b3a5c;
  border-radius: 999px;
  padding: 8px 20px;
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.sub {
  font-size: 17px;
  line-height: 1.6;
  color: #a9b8d4;
  margin-bottom: 32px;
}

.contact {
  display: inline-block;
  color: #e8ecf4;
  text-decoration: none;
  border: 1px solid #3b507c;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
}

.contact:hover {
  background: #16223c;
  border-color: #5a739f;
}

footer {
  position: fixed;
  bottom: 20px;
  font-size: 13px;
  color: #5c6f93;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .doxie-runner { animation: none; left: 50%; transform: translateX(-50%); bottom: 12vh; }
  .dog-bob, .leg, .tail, .stars span, .cloud { animation: none; }
}
