:root {
  --bg: #071018;
  --ink: #e8f4ff;
  --muted: rgba(232, 244, 255, 0.62);
  --line: rgba(120, 200, 255, 0.22);
  --cyan: #3ee0ff;
  --cyan-deep: #1aa8c8;
  --font: "Space Grotesk", sans-serif;
  --display: "Syne", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(62, 224, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(30, 90, 140, 0.35), transparent 50%),
    linear-gradient(165deg, #0a1622 0%, #071018 50%, #050d14 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 8s ease-in-out infinite;
}

.orb-a {
  width: 280px;
  height: 280px;
  top: 12%;
  left: -60px;
  background: rgba(62, 224, 255, 0.22);
}

.orb-b {
  width: 220px;
  height: 220px;
  right: -40px;
  bottom: 10%;
  background: rgba(80, 120, 255, 0.18);
  animation-delay: -3s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 224, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 224, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.verify {
  width: min(100%, 420px);
  text-align: center;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.scan {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 1.25rem;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(62, 224, 255, 0.06);
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan);
  animation: scanMove 2.2s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0.85rem 0 1.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.captcha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.15rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 20, 32, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.captcha:hover {
  border-color: rgba(62, 224, 255, 0.45);
}

.captcha.is-loading,
.captcha.is-done {
  border-color: rgba(62, 224, 255, 0.65);
  background: rgba(62, 224, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(62, 224, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.check-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.check-row input:focus-visible + .box {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.box {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 2px solid rgba(232, 244, 255, 0.4);
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}

.tick {
  width: 17px;
  height: 17px;
  color: #041018;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.spinner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(62, 224, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  opacity: 0;
}

.captcha.is-loading .box {
  border-color: transparent;
}

.captcha.is-loading .spinner {
  opacity: 1;
  animation: spin 0.7s linear infinite;
}

.captcha.is-done .box {
  background: linear-gradient(180deg, #7af0ff, var(--cyan-deep));
  border-color: var(--cyan);
}

.captcha.is-done .tick {
  opacity: 1;
  transform: scale(1);
}

.check-label {
  font-size: 0.98rem;
  font-weight: 600;
}

.captcha-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 1.6s ease-in-out infinite;
}

.status {
  min-height: 1.25rem;
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cyan);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}

@keyframes scanMove {
  0%,
  100% {
    top: 18%;
    opacity: 0.35;
  }
  50% {
    top: 72%;
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
