:root {
  --bg-a: #ffffff;
  --bg-b: #f5f5f7;
  --text: #3a3a3c;
  --muted: #6b7280;
  --line: #e5e5ea;
  --dot: #d1d1d6;
  --cyan: #14b8e6;
  --green: #8ccb2f;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Plus Jakarta Sans", sans-serif;
  background: radial-gradient(circle at center, var(--bg-a) 0%, var(--bg-b) 100%);
}

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.arc {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.arc.a1 {
  width: 150vw;
  height: 150vw;
  top: -60%;
  left: -25%;
  background: radial-gradient(circle at 70% 30%, transparent 70%, rgba(255, 255, 255, 0.4) 100%);
}

.arc.a2 {
  width: 120vw;
  height: 120vw;
  bottom: -50%;
  right: -20%;
  background: radial-gradient(circle at 30% 70%, transparent 60%, rgba(0, 0, 0, 0.01) 100%);
}

.main {
  width: 100%;
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero {
  position: relative;
  width: 100%;
  height: 86vw;
  min-height: 240px;
  max-height: 300px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-box {
  position: relative;
  width: 86vw;
  height: 86vw;
  min-width: 240px;
  min-height: 240px;
  max-width: 300px;
  max-height: 300px;
}

.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 12s linear infinite, hue 8s ease-in-out infinite;
}

.ring-track {
  fill: none;
  stroke: #f0f0f2;
  stroke-width: 0.5;
}

.ring-anim {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dot);
}

.dot.t {
  top: 2.5%;
  left: 50%;
  transform: translateX(-50%);
}

.dot.r {
  right: 2.5%;
  top: 50%;
  transform: translateY(-50%);
}

.dot.b {
  bottom: 2.5%;
  left: 50%;
  transform: translateX(-50%);
}

.dot.l {
  left: 2.5%;
  top: 50%;
  transform: translateY(-50%);
}

.logo {
  position: relative;
  z-index: 2;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  background: #fff;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: pop 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

.logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: scale(1.1);
}

.msg {
  width: 100%;
  padding: 0 0.5rem;
  display: grid;
  gap: 1.5rem;
}

.title {
  margin: 0;
  opacity: 0;
  color: var(--text);
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.24em;
  animation: up 1.2s ease-out 0.5s forwards;
}

.progress {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  opacity: 0;
  animation: up 1.2s ease-out 0.5s forwards;
}

.track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: visible;
}

.fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(to right, var(--cyan), var(--green));
  animation: fill 4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.house {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  transform: translate(-50%, -50%);
  animation: run 4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.house span {
  display: block;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  animation: bob 6s ease-in-out infinite;
}

.tag {
  margin: 0;
  opacity: 0;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.2em;
  animation: up 1.2s ease-out 0.8s forwards;
}

.copy {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 5;
  margin: 0;
  color: rgba(107, 114, 128, 0.9);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
  user-select: none;
}

@media (min-width: 640px) {
  .hero {
    height: 420px;
    min-height: 0;
    max-height: none;
    margin-bottom: 3rem;
  }

  .ring-box {
    width: 420px;
    height: 420px;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
  }

  .logo {
    width: 14rem;
    height: 14rem;
    padding: 1.6rem;
  }

  .title {
    font-size: 1.5rem;
    letter-spacing: 0.3em;
  }

  .tag {
    font-size: 11px;
    letter-spacing: 0.32em;
  }

  .copy {
    right: 1rem;
    bottom: 1rem;
    font-size: 12px;
  }

  .dot {
    width: 4px;
    height: 4px;
  }
}

@media (min-width: 768px) {
  .hero {
    height: 500px;
    margin-bottom: 5rem;
  }

  .ring-box {
    width: 500px;
    height: 500px;
  }

  .logo {
    width: 20rem;
    height: 20rem;
    padding: 3rem;
  }

  .msg {
    gap: 2.5rem;
    padding: 0 1rem;
  }

  .title {
    font-size: 3rem;
    letter-spacing: 0.55em;
  }

  .progress {
    max-width: 520px;
  }

  .track {
    height: 6px;
  }

  .house span {
    font-size: 2.25rem;
  }

  .tag {
    font-size: 13px;
    letter-spacing: 0.58em;
  }
}

@media (max-width: 767px) {
  .arc.a1 {
    width: 190vw;
    height: 190vw;
    top: -68%;
    left: -48%;
  }

  .arc.a2 {
    width: 170vw;
    height: 170vw;
    right: -42%;
    bottom: -68%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .logo,
  .title,
  .progress,
  .tag {
    opacity: 1;
  }

  .fill {
    width: 60%;
  }

  .house {
    left: 60%;
  }
}

@keyframes draw {
  0% {
    stroke-dashoffset: 600;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -600;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hue {
  0%,
  100% {
    filter: hue-rotate(0deg) saturate(1);
  }
  50% {
    filter: hue-rotate(30deg) saturate(1.2);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fill {
  from {
    width: 0%;
  }
  to {
    width: 60%;
  }
}

@keyframes run {
  from {
    left: 0;
  }
  to {
    left: 60%;
  }
}
