* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: #f8fbff;
  overflow: hidden;
}

body {
  position: relative;
  background: #0a0f1b;
}

.background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.background img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.03);
  animation: drift 24s ease-in-out infinite alternate;
}

.overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(circle at 14% 20%, rgba(201, 125, 56, 0.28), transparent 45%),
    radial-gradient(circle at 86% 82%, rgba(147, 95, 58, 0.24), transparent 42%),
    linear-gradient(130deg, rgba(10, 11, 16, 0.82), rgba(14, 12, 10, 0.9));
  backdrop-filter: blur(2px);
}

.layout {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 48px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 22px;
}

.hero {
  align-self: center;
  max-width: 760px;
}

.label {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(242, 223, 205, 0.82);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  color: #fff4e9;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

h2 {
  margin: 12px 0 0;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 600;
  color: #d89a63;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.description {
  margin: 16px 0 0;
  max-width: 620px;
  color: rgba(238, 246, 255, 0.88);
  font-size: 16px;
  line-height: 1.65;
}

.card {
  background: rgba(13, 22, 40, 0.66);
  border: 1px solid rgba(217, 155, 104, 0.28);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-title {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 211, 184, 0.88);
}

.tip-text {
  margin: 0;
  min-height: 52px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: #f6eee6;
  transition: opacity 0.28s ease;
}

.tip-dots {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.tip-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(229, 184, 142, 0.34);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tip-dots span.active {
  background: #e1a36b;
  transform: scale(1.3);
}

.progress-line {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(219, 172, 132, 0.24);
  overflow: hidden;
}

.progress-runner {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #be7a47, #e4b17a);
  filter: drop-shadow(0 0 8px rgba(216, 145, 89, 0.55));
  animation: loadmove 2s ease-in-out infinite;
}

.small-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(239, 212, 188, 0.8);
}

@keyframes loadmove {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(330%);
  }
}

@keyframes drift {
  0% {
    transform: scale(1.03) translateX(0);
  }
  100% {
    transform: scale(1.08) translateX(-12px);
  }
}

@media (max-width: 900px) {
  .layout {
    padding: 34px 24px;
  }

  .description {
    font-size: 15px;
  }

  .tip-text {
    min-height: 64px;
    font-size: 16px;
  }
}
