/* The Code Kettle — Coming Soon page */

body {
  margin: 0;
  background: #1c1512;
}

a {
  color: #dd9a55;
}
a:hover {
  color: #e8b579;
}

@keyframes steamSquiggle {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  10% {
    opacity: 0.9;
    transform: translate(3px, -16px);
  }
  25% {
    transform: translate(8px, -42px);
  }
  40% {
    transform: translate(-6px, -70px);
  }
  55% {
    transform: translate(7px, -98px);
    opacity: 0.55;
  }
  70% {
    transform: translate(-6px, -124px);
  }
  85% {
    transform: translate(5px, -148px);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translate(-2px, -170px);
  }
}

@keyframes glowRoamA {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.9);
  }
  12% {
    opacity: 1;
    transform: translate(20px, 10px) scale(1);
  }
  30% {
    opacity: 0;
    transform: translate(50px, 30px) scale(1.05);
  }
  33% {
    transform: translate(500px, 320px) scale(0.85);
  }
  45% {
    opacity: 1;
    transform: translate(520px, 300px) scale(1);
  }
  63% {
    opacity: 0;
    transform: translate(540px, 270px) scale(1.08);
  }
  66% {
    transform: translate(260px, -40px) scale(0.9);
  }
  78% {
    opacity: 1;
    transform: translate(240px, -20px) scale(1);
  }
  96% {
    opacity: 0;
    transform: translate(220px, 10px) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.9);
  }
}

@keyframes glowRoamB {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.9);
  }
  14% {
    opacity: 1;
    transform: translate(-24px, -12px) scale(1);
  }
  32% {
    opacity: 0;
    transform: translate(-50px, -30px) scale(1.06);
  }
  35% {
    transform: translate(-480px, -260px) scale(0.85);
  }
  47% {
    opacity: 1;
    transform: translate(-500px, -240px) scale(1);
  }
  65% {
    opacity: 0;
    transform: translate(-520px, -210px) scale(1.08);
  }
  68% {
    transform: translate(-200px, 60px) scale(0.9);
  }
  80% {
    opacity: 1;
    transform: translate(-180px, 40px) scale(1);
  }
  97% {
    opacity: 0;
    transform: translate(-160px, 10px) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.9);
  }
}

@keyframes brewFill {
  0%,
  100% {
    width: 76%;
  }
  50% {
    width: 88%;
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, #2a211b 0%, #241c17 45%, #1c1512 100%);
  color: #ede5da;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: Lora, Georgia, serif;
}

.glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
}

.glow-a {
  left: -140px;
  top: -100px;
  width: 560px;
  height: 560px;
  background: radial-gradient(
    circle,
    rgba(196, 124, 70, 0.26) 0%,
    rgba(196, 124, 70, 0) 65%
  );
  animation: glowRoamA 18s ease-in-out infinite;
}

.glow-b {
  right: -160px;
  bottom: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(
    circle,
    rgba(224, 168, 110, 0.2) 0%,
    rgba(224, 168, 110, 0) 65%
  );
  animation: glowRoamB 22s 3s ease-in-out infinite;
}

.steam {
  position: relative;
  width: 440px;
  height: 110px;
  margin-bottom: 2px;
}

.steam span {
  position: absolute;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  animation-name: steamSquiggle;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0;
}

.steam span:nth-child(1) {
  left: 450px;
  bottom: -100px;
  font-size: 30px;
  color: #dd9a55;
  animation-duration: 4.6s;
}
.steam span:nth-child(2) {
  left: 450px;
  bottom: -100px;
  font-size: 23px;
  color: #b08560;
  animation-duration: 4.6s;
  animation-delay: 1.5s;
}
.steam span:nth-child(3) {
  left: 450px;
  bottom: -100px;
  font-size: 20px;
  color: #8a6f57;
  animation-duration: 4.6s;
  animation-delay: 3s;
}
.steam span:nth-child(4) {
  left: 450px;
  bottom: -100px;
  font-size: 18px;
  color: #b08560;
  animation-duration: 5.4s;
  animation-delay: 0.8s;
}
.steam span:nth-child(5) {
  left: 450px;
  bottom: -100px;
  font-size: 17px;
  color: #8a6f57;
  animation-duration: 5.4s;
  animation-delay: 2.2s;
}
.steam span:nth-child(6) {
  left: 450px;
  bottom: -100px;
  font-size: 16px;
  color: #dd9a55;
  animation-duration: 5.4s;
  animation-delay: 3.8s;
}
.steam span:nth-child(7) {
  left: 450px;
  bottom: -100px;
  font-size: 15px;
  color: #8a6f57;
  animation-duration: 6.2s;
  animation-delay: 4.6s;
}

.logo {
  position: relative;
  width: 440px;
  max-width: 78vw;
  display: block;
  filter: invert(1) brightness(0.92) sepia(0.18);
}

.tagline {
  position: relative;
  margin: 24px 20px 0;
  font-style: italic;
  font-size: 26px;
  color: #b5a591;
  text-align: center;
}

.progress {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  width: 400px;
  max-width: 78vw;
}

.progress-track {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: rgba(237, 229, 218, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #b3552e, #dd9a55);
  animation: brewFill 7s ease-in-out infinite;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #dd9a55;
}

.progress-labels .pulse {
  animation: dotPulse 1.4s infinite;
}
