:root {
  --bg-1: #05131f;
  --bg-2: #102a3d;
  --bg-3: #1c4253;
  --text-main: #e9fbff;
  --text-soft: #b9dce6;
  --line: rgba(162, 229, 244, 0.26);
  --card-bg: rgba(10, 28, 44, 0.52);
  --accent-1: #2ed2ff;
  --accent-2: #7cffa9;
  --accent-3: #ffa65b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 16% 18%, rgba(46, 210, 255, 0.2), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(255, 166, 91, 0.16), transparent 26%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 48%, var(--bg-3));
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  opacity: 0.22;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(124, 255, 169, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 255, 169, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 88%);
  opacity: 0.45;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  pointer-events: none;
  animation: floatGlow 10s ease-in-out infinite alternate;
}

.bg-glow--one {
  width: 320px;
  height: 320px;
  left: -80px;
  bottom: -70px;
  background: rgba(46, 210, 255, 0.34);
}

.bg-glow--two {
  width: 280px;
  height: 280px;
  right: -70px;
  top: -45px;
  background: rgba(255, 166, 91, 0.36);
  animation-delay: 1.4s;
}

.hero {
  width: min(700px, 92vw);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  box-shadow:
    0 28px 75px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 1;
  animation: intro 0.9s ease both;
  perspective: 1100px;
  transform-style: preserve-3d;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgba(46, 210, 255, 0.55), rgba(124, 255, 169, 0.35), rgba(255, 166, 91, 0.4));
  mask:
    linear-gradient(white 0 0) content-box,
    linear-gradient(white 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero > :not(.fx-3d) {
  position: relative;
  z-index: 2;
}

.fx-3d {
  width: 220px;
  height: 220px;
  position: absolute;
  right: -36px;
  top: -30px;
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 1;
  animation: fxDrift 8s ease-in-out infinite alternate;
}

.fx-cube {
  position: absolute;
  width: 98px;
  height: 98px;
  left: 60px;
  top: 56px;
  transform-style: preserve-3d;
  animation: cubeSpin 13s linear infinite;
}

.face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(46, 210, 255, 0.45);
  box-shadow: inset 0 0 22px rgba(46, 210, 255, 0.17);
  background:
    linear-gradient(135deg, rgba(46, 210, 255, 0.2), rgba(124, 255, 169, 0.12)),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 70%);
  backdrop-filter: blur(2px);
}

.front {
  transform: translateZ(49px);
}

.back {
  transform: rotateY(180deg) translateZ(49px);
}

.right {
  transform: rotateY(90deg) translateZ(49px);
}

.left {
  transform: rotateY(-90deg) translateZ(49px);
}

.top {
  transform: rotateX(90deg) translateZ(49px);
}

.bottom {
  transform: rotateX(-90deg) translateZ(49px);
}

.fx-ring {
  position: absolute;
  inset: 45px;
  border-radius: 50%;
  border: 2px solid rgba(124, 255, 169, 0.28);
  transform-style: preserve-3d;
}

.fx-ring--one {
  transform: rotateX(74deg) rotateY(14deg) translateZ(-12px);
  animation: ringSpin 12s linear infinite;
}

.fx-ring--two {
  inset: 32px;
  border-color: rgba(255, 166, 91, 0.32);
  transform: rotateY(76deg) rotateX(24deg) translateZ(18px);
  animation: ringSpinReverse 9s linear infinite;
}

.tag {
  margin: 0;
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 255, 169, 0.35);
  color: #d7ffee;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  background: rgba(124, 255, 169, 0.11);
}

h1 {
  margin: 1rem 0 0.8rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.05rem);
  line-height: 1.1;
  text-wrap: balance;
}

.lead {
  margin: 0 0 1.45rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.7;
  max-width: 62ch;
}

.status-card {
  margin-top: 0.7rem;
  padding: 1rem 1.1rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(46, 210, 255, 0.22);
  background: rgba(5, 20, 34, 0.6);
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  color: #d4f4fd;
  margin-bottom: 0.55rem;
}

#progressValue {
  font-weight: 700;
  color: #f8fff7;
}

.progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(46, 210, 255, 0.3);
  background: rgba(8, 38, 55, 0.82);
  overflow: hidden;
}

#progressBar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 18px rgba(124, 255, 169, 0.38);
  transition: width 0.55s ease;
}

#statusText {
  margin: 0.72rem 0 0;
  color: #b5d7e2;
  font-size: 0.92rem;
}

.ghost-link {
  margin-top: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(233, 251, 255, 0.8);
  border-radius: 999px;
  padding: 0.62rem 1.05rem;
  font-family: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  cursor: not-allowed;
}

@keyframes intro {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatGlow {
  from {
    transform: translateY(0) translateX(0) scale(1);
  }

  to {
    transform: translateY(-18px) translateX(8px) scale(1.08);
  }
}

@keyframes cubeSpin {
  from {
    transform: rotateX(-20deg) rotateY(0deg) rotateZ(8deg);
  }

  to {
    transform: rotateX(-20deg) rotateY(360deg) rotateZ(8deg);
  }
}

@keyframes ringSpin {
  from {
    transform: rotateX(74deg) rotateY(14deg) rotateZ(0deg) translateZ(-12px);
  }

  to {
    transform: rotateX(74deg) rotateY(14deg) rotateZ(360deg) translateZ(-12px);
  }
}

@keyframes ringSpinReverse {
  from {
    transform: rotateY(76deg) rotateX(24deg) rotateZ(0deg) translateZ(18px);
  }

  to {
    transform: rotateY(76deg) rotateX(24deg) rotateZ(-360deg) translateZ(18px);
  }
}

@keyframes fxDrift {
  from {
    transform: translateY(0) translateX(0) rotateX(0deg);
  }

  to {
    transform: translateY(8px) translateX(-5px) rotateX(7deg);
  }
}

@media (max-width: 640px) {
  .hero {
    border-radius: 20px;
    padding: 1.25rem;
  }

  .fx-3d {
    width: 150px;
    height: 150px;
    right: -35px;
    top: -35px;
    opacity: 0.62;
  }

  .fx-cube {
    width: 70px;
    height: 70px;
    left: 42px;
    top: 44px;
  }

  .front {
    transform: translateZ(35px);
  }

  .back {
    transform: rotateY(180deg) translateZ(35px);
  }

  .right {
    transform: rotateY(90deg) translateZ(35px);
  }

  .left {
    transform: rotateY(-90deg) translateZ(35px);
  }

  .top {
    transform: rotateX(90deg) translateZ(35px);
  }

  .bottom {
    transform: rotateX(-90deg) translateZ(35px);
  }

  .status-row {
    font-size: 0.88rem;
  }

  .ghost-link {
    width: 100%;
  }
}
