:root {
  color-scheme: light;
  --ink: #1b1f3b;
  --ink2: #454b72;
  --cream: #fff8e8;
  --gold: #ffc21a;
  --gold-dk: #e08a00;
  --red: #ff4757;
  --sky: #2f9bfa;
  --sky2: #bfe9ff;
  --hill-back: #a9ee82;
  --hill-front: #68d947;
  --ground-dk: #45bb38;
  --display: "Lilita One", "Arial Black", Impact, sans-serif;
  --ui: "Fredoka", ui-rounded, "Avenir Next", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ground-dk); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; overflow-x: hidden;
  font: 500 18px/1.45 var(--ui); color: var(--ink);
  background: linear-gradient(var(--sky), #6cc3ff 55%, var(--sky2));
}

/* Sky */
.sky { position: absolute; inset: 0 0 auto 0; height: 100vh; pointer-events: none; overflow: hidden; }
.cloud { position: absolute; height: auto; animation: drift 26s ease-in-out infinite alternate; }
.c1 { width: clamp(130px, 18vw, 260px); left: -2%; top: 9%; }
.c2 { width: clamp(100px, 13vw, 190px); right: 3%; top: 22%; animation-duration: 32s; animation-delay: -9s; }
.c3 { width: clamp(70px, 8vw, 120px); left: 10%; top: 44%; animation-duration: 22s; animation-delay: -4s; }
@keyframes drift { from { transform: translateX(-18px); } to { transform: translateX(18px); } }

/* Content */
main {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(24px, 5vh, 56px) 20px 24px; text-align: center;
}
h1 { margin: 0; line-height: 0; }
.logo {
  width: min(560px, 88vw); height: auto;
  filter: drop-shadow(0 10px 0 rgba(27, 31, 59, .18));
  animation: pop .7s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes pop { from { transform: scale(.6) rotate(-4deg); opacity: 0; } }
.card {
  margin-top: clamp(10px, 2.5vh, 24px); max-width: 36rem; padding: 18px 26px 20px;
  background: var(--cream); border: 4px solid var(--ink); border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink);
}
.pitch { text-wrap: balance; margin: 0; font: 400 clamp(1.3rem, 4.4vw, 1.7rem)/1.15 var(--display); letter-spacing: .01em; }
.pitch span { display: block; text-wrap: balance; }
.sub { text-wrap: balance; margin: 10px 0 0; color: var(--ink2); font-size: 1rem; }
.soon {
  margin: 18px 0 0; padding: 9px 20px 8px;
  font: 400 1.05rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
  background: var(--gold); border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 4px 0 var(--gold-dk), 0 4px 0 3px var(--ink);
}

/* Land: hills, rigs, ground to the bottom edge */
.land {
  --hill-h: 160px; --rig-line: 68.5px; /* front-hill crest height at 28% / 72% across */
  position: relative; z-index: 1; margin-top: 48px;
  padding-top: var(--hill-h); min-height: calc(var(--hill-h) + 80px);
  background: linear-gradient(transparent calc(var(--hill-h) - 1px), var(--hill-front) calc(var(--hill-h) - 1px), var(--ground-dk));
}
.hills { position: absolute; top: 0; left: 0; width: 100%; height: var(--hill-h); overflow: visible; }
.back { fill: var(--hill-back); }
.front { fill: var(--hill-front); }
.back-edge, .front-edge { fill: none; stroke: var(--ink); stroke-width: 5; vector-effect: non-scaling-stroke; }

.rig { position: absolute; top: var(--rig-line); width: clamp(130px, 17vw, 230px); transform: translate(-50%, -93%); }
.rig img { display: block; width: 100%; height: auto; position: relative; }
.rig::before { /* contact shadow on the grass */
  content: ""; position: absolute; left: 14%; right: 14%; top: 89%; height: 8%;
  background: rgba(27, 31, 59, .22); border-radius: 50%;
}
.you { left: 28%; }
.rival { left: 72%; }
.rival img { transform: scaleX(-1); }
.you img { animation: bob 1.6s ease-in-out infinite; }
.rival img { animation: bob-flip 1.6s ease-in-out -.8s infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes bob-flip { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(-3px); } }

/* Outgoing missile: flies left to right, nearly level, plume off the tail */
.missile { position: absolute; top: -34px; left: 0; width: 100%; height: 0; pointer-events: none; }
.missile .tilt {
  position: absolute; left: 0; transform: translateX(-200px) rotate(-5deg);
  animation: fly 9s linear infinite;
}
.missile img { display: block; width: 64px; height: 64px; transform: rotate(45deg); }
.plume {
  position: absolute; right: 52px; top: 50%; width: 200px; height: 7px; margin-top: -3px;
  border-radius: 7px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.95));
}
@keyframes fly {
  0% { transform: translateX(-200px) rotate(-5deg); }
  50%, 100% { transform: translateX(calc(100vw + 80px)) rotate(-5deg); }
}

footer {
  position: relative; padding: 0 20px 18px; padding-bottom: max(18px, env(safe-area-inset-bottom));
  text-align: center; font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 0 rgba(27, 31, 59, .35);
}
footer a { color: inherit; }

@media (max-width: 560px) {
  .land { --hill-h: 120px; --rig-line: 51.4px; margin-top: 50px; }
  .soon { font-size: .86rem; padding: 9px 16px 8px; }
  .card { padding: 16px 18px 18px; }
  .you { left: 26%; }
  .rival { left: 74%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .missile { display: none; }
}

.logo.small { width: min(360px, 80vw); }
.sub a { color: var(--ink); font-weight: 600; }
