:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d1015;
  color: #f5f7fa;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    #0d1015;
  background-size: 32px 32px;
}

main {
  width: min(100%, 460px);
  border: 1px solid #343b47;
  border-top: 3px solid #f07b35;
  padding: 30px;
  background: #141922;
  box-shadow: 0 24px 70px rgb(0 0 0 / 35%);
}

.host {
  margin: 0 0 18px;
  color: #f09a63;
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

#status {
  min-height: 24px;
  margin: 14px 0 22px;
  color: #aeb7c5;
  line-height: 1.5;
}

.progress {
  height: 3px;
  overflow: hidden;
  background: #2a303b;
}

.progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: #f07b35;
  animation: scan 1.1s ease-in-out infinite alternate;
}

body.is-success .progress span {
  width: 100%;
  animation: none;
  background: #65c18c;
}

body.is-error .progress span {
  width: 100%;
  animation: none;
  background: #e26969;
}

button {
  width: 100%;
  margin-top: 20px;
  border: 1px solid #f07b35;
  padding: 12px 16px;
  color: #fff;
  background: #b84e17;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover { background: #ce5b20; }
.honeypot { position: fixed; left: -10000px; }

@keyframes scan {
  from { transform: translateX(-15%); }
  to { transform: translateX(155%); }
}

@media (prefers-reduced-motion: reduce) {
  .progress span { animation-duration: 2.5s; }
}
