:root {
  --bg:         #070a0e;
  --surface:    #0c1018;
  --border:     #1a2030;
  --border-hi:  #252d3d;
  --text:       #cdd6e0;
  --muted:      #4a5568;
  --dim:        #1e2738;
  --blue:       #00c8ff;
  --blue-glow:  rgba(0, 200, 255, .12);
  --blue-hi:    rgba(0, 200, 255, .22);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  -webkit-font-smoothing: antialiased;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.shell {
  width: 100%;
  max-width: 520px;
}

/* ── wordmark ─────────────────────────────────────────────────────── */

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
}

.wordmark-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(0, 200, 255, .6);
  flex-shrink: 0;
}

.wordmark-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
}

.wordmark-sep {
  color: var(--muted);
  margin: 0 2px;
}

.wordmark-sub {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ── heading ──────────────────────────────────────────────────────── */

.heading {
  margin-bottom: 32px;
}

.heading h1 {
  font-size: clamp(40px, 8.5vw, 70px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.05em;
  line-height: .93;
  color: var(--text);
}

.heading h1 em {
  font-style: normal;
  color: var(--blue);
}

.heading p {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-top: 14px;
  line-height: 1.85;
  max-width: 400px;
}

/* ── search ───────────────────────────────────────────────────────── */

.input-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  background: var(--surface);
  margin-bottom: 10px;
}

.input-row:focus-within {
  border-color: rgba(0, 200, 255, .3);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.input-row input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  caret-color: var(--blue);
}

.input-row input::placeholder {
  color: var(--muted);
}

.input-row input:focus::placeholder {
  opacity: .4;
}

#go {
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  padding: 0 18px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s;
  white-space: nowrap;
}

#go:hover:not(:disabled) {
  background: var(--blue-glow);
}

#go:disabled {
  opacity: .25;
  cursor: not-allowed;
}

/* ── status ───────────────────────────────────────────────────────── */

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
  height: 16px;
  margin-bottom: 44px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  transition: background .3s, box-shadow .3s;
}

.status-dot.ok {
  background: #48bb78;
  box-shadow: 0 0 6px rgba(72, 187, 120, .7);
}

.status-dot.err {
  background: #f56565;
  box-shadow: 0 0 6px rgba(245, 101, 101, .7);
}

.status-dot.loading {
  animation: pulse .85s step-end infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .15; }
}

/* ── divider ──────────────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

/* ── quick links ──────────────────────────────────────────────────── */

.section-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.quick-link {
  font-family: inherit;
  font-size: 11px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
  letter-spacing: .04em;
}

.quick-link:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, .02);
}

/* ── footer ───────────────────────────────────────────────────────── */

.footer {
  margin-top: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: .06em;
}

.footer span { transition: color .12s; }
.footer span:hover { color: var(--muted); }

/* ── shield badge ─────────────────────────────────────────────────── */

.shield {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .06em;
}

.shield-icon {
  font-size: 11px;
  opacity: .5;
}
