:root {
  --bg: #0b0e11;
  --bg-panel: #12161b;
  --bg-panel-2: #171c22;
  --line: #232a32;
  --text: #e7ebee;
  --muted: #838f9b;
  --green: #35d67c;
  --green-dim: #1c3d2c;
  --red: #ef5350;
  --red-dim: #3d1e1e;
  --amber: #f5b942;
  --blue: #4f8cff;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --max: 1080px;
  --pad: clamp(18px, 5vw, 56px);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
a { color: var(--blue); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: -0.01em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Header */
header.site { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad); max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 17px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(53,214,124,.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53,214,124,.55); }
  70% { box-shadow: 0 0 0 8px rgba(53,214,124,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,214,124,0); }
}
.nav a.navlink { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 26px; }
.nav a.navlink:hover { color: var(--text); }

/* Hero */
.hero { padding: 70px var(--pad) 30px; text-align: center; }
.hero .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); margin-top: 16px; max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero p { color: var(--muted); max-width: 56ch; margin: 16px auto 0; font-size: 16.5px; }

/* Register card */
.register { padding: 30px var(--pad) 80px; }
.panel {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 10px;
  max-width: 640px; margin: 0 auto; padding: 30px;
}
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 11px 13px; color: var(--text); font-family: var(--sans); font-size: 14.5px;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 6px;
  border: none; cursor: pointer; font-weight: 600; font-size: 14.5px; text-decoration: none; font-family: var(--sans);
}
.btn--green { background: var(--green); color: #08130d; }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.form-status { font-family: var(--mono); font-size: 13px; margin-top: 10px; min-height: 18px; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

.result-box { display: none; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.result-box.show { display: block; }
.result-box code {
  display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--text); white-space: pre-wrap; word-break: break-all;
}

/* Directory */
.directory { padding: 20px var(--pad) 90px; }
.dir-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; max-width: var(--max); margin-left: auto; margin-right: auto; flex-wrap: wrap; gap: 10px; }
.dir-head h2 { font-size: 24px; }
.dir-head span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
table.dirtable { width: 100%; border-collapse: collapse; max-width: var(--max); margin: 0 auto; }
table.dirtable th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.dirtable td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.dirtable a.site-link { color: var(--text); text-decoration: none; font-weight: 600; }
table.dirtable a.site-link:hover { color: var(--blue); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.status-dot.up { background: var(--green); }
.status-dot.down { background: var(--red); }
.status-dot.unknown { background: var(--muted); }
.uptime-pct { font-family: var(--mono); color: var(--muted); }

/* Explainer */
.explain { padding: 70px var(--pad); border-top: 1px solid var(--line); }
.explain .wrap { max-width: 760px; }
.explain h2 { font-size: 26px; margin-bottom: 20px; }
.explain h3 { font-size: 18px; margin: 26px 0 8px; }
.explain p, .explain li { color: var(--muted); font-size: 15.5px; }
.explain ul { padding-left: 20px; }
.explain code { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; font-family: var(--mono); font-size: 13px; color: var(--green); }

footer { border-top: 1px solid var(--line); padding: 30px var(--pad); font-size: 13px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; max-width: var(--max); margin: 0 auto; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--blue); }
