* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* --- Dark hero background (landing + progress pages) --- */

body.hero-bg {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 50% -5%, rgba(62,166,255,0.25), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 15%, rgba(124,92,255,0.18), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 20%, rgba(255,92,168,0.12), transparent 60%),
    #060a18;
  color: #fff;
}

.beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.beams span {
  position: absolute;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to top, var(--c), transparent);
  box-shadow: 0 0 12px var(--c);
  opacity: 0.45;
}

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  min-height: 140px;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(10,16,38,0.9) 0, rgba(10,16,38,0.9) 40px,
      rgba(14,21,48,0.9) 40px, rgba(14,21,48,0.9) 46px,
      transparent 46px, transparent 90px
    );
  background-size: 90px 100%;
  background-position: bottom;
  -webkit-mask-image: linear-gradient(to top, black 0%, black 30%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, black 30%, transparent 100%);
  border-top: 1px solid rgba(62,166,255,0.25);
}

.center-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 3rem 1.5rem;
}

.hero-copy {
  max-width: 760px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(4rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.glow-word {
  color: #fff;
  text-shadow: 0 0 24px rgba(62,166,255,0.9), 0 0 60px rgba(62,166,255,0.5);
}

.hero-subtitle {
  color: #aab4d6;
  font-size: 1.5em;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

/* --- Card (shared by landing + progress) --- */

.card {
  background: rgba(12,18,40,0.75);
  border: 1px solid rgba(124,146,255,0.25);
  border-radius: 0;
  box-shadow: 0 0 60px rgba(62,166,255,0.12), 0 20px 40px rgba(0,0,0,0.35);
  padding: 2.5rem;
  backdrop-filter: blur(6px);
}

.audit-card {
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.audit-card h2 {
  margin: 0 0 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

#audit-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: stretch;
}

.input-row {
  display: flex;
  gap: 0.6rem;
  background: rgba(6,10,24,0.6);
  border: 1px solid rgba(124,146,255,0.4);
  border-radius: 0;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
}

.input-row:focus-within {
  border-color: #3ea6ff;
  box-shadow: 0 0 0 3px rgba(62,166,255,0.25);
}

#url {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0.7rem 0;
  font-size: 1rem;
  font: inherit;
}

#url::placeholder {
  color: #7c88b0;
}

#url:focus {
  outline: none;
}

button[type="submit"] {
  flex-shrink: 0;
  padding: 0.75rem 1.4rem;
  border: none;
  border-radius: 0;
  background: #fff;
  color: #1a2456;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

button[type="submit"]:hover {
  background: #e6ebff;
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error {
  color: #ff8fa3;
  font-size: 0.88rem;
  margin: 0;
  min-height: 1.2em;
  overflow-wrap: anywhere;
}

.fine-print {
  color: #7c88b0;
  font-size: 0.78rem;
  margin: 1.5rem 0 0;
}

.cf-turnstile {
  display: flex;
  justify-content: center;
}

/* --- Progress card --- */

.progress-card {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.progress-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #fff;
  overflow-wrap: anywhere;
}

.spinner {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 1.25rem;
  border: 3px solid rgba(124,146,255,0.25);
  border-top-color: #3ea6ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

#status-text {
  font-weight: 600;
  font-size: 2rem;
  margin: 0 0 0.4rem;
}

#status-detail {
  color: #aab4d6;
  font-size: 1.2rem;
  margin: 0;
  overflow-wrap: anywhere;
}
