@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap");

/* --- GLOBAL STYLES & RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Nunito", sans-serif;
  color: #2c3742;
  background: linear-gradient(
    177deg,
    #2f3c54 0%,
    #455872 36%,
    #7d8fa0 58%,
    #d9b68a 80%,
    #f3b873 92%,
    #f9cd92 100%
  );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- BRAND HEADER --- */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
}
.logo-sphere {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e8eef4 60%, #c3d0db);
  box-shadow:
    0 2px 8px rgba(20, 30, 45, 0.35),
    inset 0 -3px 6px rgba(150, 170, 190, 0.5);
}
.logo-text {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 3em;
  color: #fff;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 10px rgba(20, 30, 45, 0.4);
}

.highlight {
  color: #ffce86;
}

/* --- CONSTRUCTION BOX PANEL --- */
.construction-container {
  position: relative;
  z-index: 10;
  background: rgba(43, 56, 74, 0.96); /* Deep dark slate blue */
  border: 2px solid rgba(255, 206, 134, 0.3); /* Soft gold glowing border */
  border-radius: 28px;
  max-width: 580px;
  width: 90%;
  margin: auto;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(10, 15, 25, 0.5);
}

/* Cozy Retro Hazard Stripe Borders */
.hazard-stripes {
  height: 14px;
  width: 100%;
  margin: 20px 0;
  border-radius: 4px;
  background: repeating-linear-gradient(-45deg, #e1853a, #e1853a 15px, #ffce86 15px, #ffce86 30px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.construction-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 42px);
  color: #ffffff;
  margin: 16px 0 12px;
  letter-spacing: -0.5px;
}

.construction-text {
  font-size: 16.5px;
  color: #cedae5;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 26px;
}

/* --- 90S DIGIT COUNTER BOX --- */
.counter-box {
  background: #313f54;
  padding: 14px 20px;
  border-radius: 14px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 28px;
}
.counter-label {
  font-family: "Fredoka", sans-serif;
  font-size: 12px;
  color: #ffce86;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.counter-digits {
  display: flex;
  gap: 4px;
}
.counter-digits span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 800;
  font-size: 22px;
  background: #1e2735;
  color: #e1853a;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-shadow: 0 0 6px rgba(225, 133, 58, 0.6);
}

/* --- EMAIL CAPTURE ZONE --- */

.signup-zone {
  display: none;
}
.signup-hint {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #ffce86;
  margin-bottom: 12px;
}
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.signup-input {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(90, 120, 155, 0.25);
  background: #fbfbfb;
  color: #2c3742;
  outline: none;
  transition: border-color 0.2s;
}
.signup-input:focus {
  border-color: #e1853a;
  background: #fff;
}

.btn-primary {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #5b3a1e;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #ffce86, #f3a247);
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow:
    0 6px 16px rgba(225, 140, 50, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ffe0b3, #f6b162);
}

@media (min-width: 480px) {
  .signup-form {
    flex-direction: row;
  }
  .signup-input {
    flex: 1;
  }
}

/* ====== STOLEN HERO C ENVIRONMENT GRAPHICS ====== */
.hero-sun-glow {
  position: absolute;
  left: 50%;
  bottom: 20%;
  transform: translateX(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 214, 150, 0.95),
    rgba(255, 190, 120, 0.45) 38%,
    transparent 66%
  );
  animation: glow 7s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
.horizon-treeline {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 100%;
  height: 130px;
  z-index: 2;
  opacity: 0.4;
  pointer-events: none;
}
.horizon-snow-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32%;
  z-index: 3;
  pointer-events: none;
}
#snow-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.snowflake {
  position: absolute;
  top: -14px;
  border-radius: 50%;
  background: #fff;
  filter: blur(0.3px);
  animation: snowfall linear infinite;
}

/* ====== PHYSICS-ACCURATE DECOUPLED ANIMATIONS ====== */
.worker-graphic-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: -10px;
}

.shovel-worker-svg {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 4px 8px rgba(40, 55, 75, 0.12));
}

/* Worker Body: Ambient, slow breathing rhythm */
.worker-body-idle {
  transform-origin: 90px 160px;
  animation: bodyBreathe 4.5s ease-in-out infinite;
}

/* Shovel Arm: Snappy independent digging pattern */
.worker-arm-dig {
  transform-origin: 85px 125px;
  animation: armDigLoop 2.5s cubic-bezier(0.4, 0, 0.3, 1) infinite;
}

/* 1. HORIZONTAL TRACK: Moves left-to-right at a perfectly steady speed */
.snowball-x-axis {
  position: absolute;
  left: 56%;
  top: 75px;
  pointer-events: none;
  z-index: 15;

  /* Synchronized to the shovel, running a linear path */
  animation: throwX 2.5s linear infinite;
}

/* 2. VERTICAL TRACK: Holds the actual snowball visual, handling gravity bounce */
.snowball-y-axis {
  display: block;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(40, 55, 75, 0.15);

  /* Running custom gravity eases for a true rounded launch and drop */
  animation: throwY 2.5s linear infinite;
}

/* --- SEPARATED PHYSICS KEYFRAMES --- */

/* X-Axis: Hidden, then slides right smoothly, then hides again */
@keyframes throwX {
  0%,
  40% {
    transform: translateX(0);
    opacity: 0;
  }
  42% {
    opacity: 1;
  }
  80% {
    transform: translateX(90px);
    opacity: 1;
  }
  81%,
  100% {
    transform: translateX(90px);
    opacity: 0;
  }
}

/* Y-Axis: Rises up with ease-out (slowing down), falls down with ease-in (speeding up) */
@keyframes throwY {
  0%,
  40% {
    transform: translateY(0) scale(0.7);
  }

  /* Launch point to Apex (Upward Flight) */
  42% {
    transform: translateY(0) scale(1);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth ease-out */
  }

  /* Peak point: Notice there's no sharp corner here, it floats horizontally */
  61% {
    transform: translateY(-50px) scale(1.1);
    animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53); /* Smooth ease-in */
  }

  /* Impact point on ground */
  80% {
    transform: translateY(12px) scale(0.8);
  }
  100% {
    transform: translateY(12px) scale(0.8);
  }
}

/* Ambient environment loops */
@keyframes bodyBreathe {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.97) translateY(1px);
  }
}
@keyframes armDigLoop {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(14deg) translateY(-1px);
  }
  40% {
    transform: rotate(-22deg) translateX(-2px);
  }
  65%,
  85% {
    transform: rotate(0deg);
  }
}

@keyframes snowfall {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(105vh) translateX(var(--drift, 20px));
  }
}
@keyframes glow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
}
