:root {
  --bg-dark: #050914;
  --bg-glow: radial-gradient(circle at top, rgba(110, 201, 255, 0.3), transparent 45%);
  --panel: rgba(18, 26, 52, 0.85);
  --panel-outline: rgba(113, 199, 255, 0.5);
  --accent: #78f0ff;
  --accent-strong: #ffb347;
  --status-warn: #fdd835;
  --status-error: #ff6b6b;
  --status-success: #4ade80;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-dark);
  color: #f4fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: var(--bg-glow), linear-gradient(135deg, rgba(32, 55, 98, 0.75), rgba(3, 7, 20, 1));
  animation: pulse 12s ease-in-out infinite;
  filter: blur(40px);
  z-index: 0;
}

@keyframes pulse {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.2) translateY(-12px); }
  100% { transform: scale(1) translateY(0); }
}

.app-shell {
  width: min(1100px, 100%);
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(5, 9, 20, 0.95), rgba(18, 26, 52, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 120px rgba(5, 9, 20, 0.85), 0 0 40px rgba(120, 240, 255, 0.08);
  overflow: hidden;
}

.app-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 32px;
  border: 1px solid rgba(120, 240, 255, 0.2);
  mix-blend-mode: screen;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 2.9rem);
}

.hero__subhead {
  margin: 0.25rem 0 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.hero__button {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(120deg, rgba(120, 240, 255, 0.4), rgba(255, 183, 71, 0.6));
  color: #03050f;
  box-shadow: 0 15px 20px rgba(120, 240, 255, 0.18);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px rgba(120, 240, 255, 0.3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.captcha-card {
  background: var(--panel);
  border-radius: 24px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.captcha-card::after {
  content: '';
  position: absolute;
  inset: auto -30% -40% 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 60%);
  filter: blur(18px);
  z-index: 0;
}

.captcha-card > * {
  position: relative;
  z-index: 2;
}

.card__badge {
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
}

.captcha-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.card__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.turnstile-placeholder {
  min-height: 110px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 20, 0.6);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  padding: 1rem;
}

.card__status {
  margin: auto 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.recaptcha-pulse {
  width: 100%;
  height: 68px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02));
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.recaptcha-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(120, 240, 255, 0.4), transparent 60%);
  animation: orbit 6s linear infinite;
}

@keyframes orbit {
  from {
    transform: translate(-40%, -40%);
  }
  to {
    transform: translate(40%, 40%);
  }
}

.primary-button {
  width: 100%;
  padding: 1.1rem;
  border-radius: 18px;
  border: none;
  background: linear-gradient(120deg, #78f0ff, #ffb347);
  color: #050914;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(7, 8, 16, 0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 1rem;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 45px rgba(7, 8, 16, 0.8);
}

.status-panel {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.status-panel[data-state='success'] {
  border-color: var(--status-success);
  color: var(--status-success);
}

.status-panel[data-state='warn'] {
  border-color: var(--status-warn);
  color: var(--status-warn);
}

.status-panel[data-state='error'] {
  border-color: var(--status-error);
  color: var(--status-error);
}

.status-panel[data-state='info'] {
  border-color: rgba(149, 233, 255, 0.75);
  color: rgba(149, 233, 255, 0.9);
}

.footer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

@media (max-width: 640px) {
  .app-shell {
    padding: 1.5rem;
  }
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__button {
    width: 100%;
    text-align: center;
  }
}
