:root {
  --bg: #0b0f16;
  --bg-alt: #101724;
  --panel: #141c2b;
  --border: #22304a;
  --text: #e6edf7;
  --muted: #93a4bf;
  --accent: #4da3ff;
  --accent-dim: #1e4d7a;
  --ok: #46d18b;
  --bad: #ff6b6b;
  --radius: 12px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow { max-width: 720px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), #7b5cff);
  color: #061018;
  font-size: 13px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #04121e;
}

.btn-primary:hover { background: #6fb6ff; }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--accent-dim); }

.btn-danger {
  background: transparent;
  border-color: #4a2530;
  color: var(--bad);
}

.btn-sm { padding: 6px 12px; font-size: 13px; }

.hero {
  padding: 92px 0 72px;
  background:
    radial-gradient(900px 380px at 50% -80px, rgba(77, 163, 255, 0.18), transparent),
    radial-gradient(600px 300px at 85% 20%, rgba(123, 92, 255, 0.12), transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 44px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.status-card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.status-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.status-value {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
}

.status-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
}

.status-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid var(--border);
}

.status-list .mono {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.1;
  letter-spacing: -1.2px;
}

.lede {
  margin: 0 0 28px;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.section { padding: 64px 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin: 0 0 28px;
  font-size: 26px;
  letter-spacing: -0.4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #0d1522;
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.88em;
}

.code-block {
  margin: 18px 0;
  padding: 18px;
  overflow-x: auto;
  background: #0d1522;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #cfe3ff;
}

.muted { color: var(--muted); font-size: 14.5px; }

.faq dt {
  margin-top: 20px;
  font-weight: 600;
}

.faq dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

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

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.panel {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.panel-head h1 {
  margin: 0;
  font-size: 21px;
}

.identity {
  color: var(--muted);
  font-size: 14px;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 34px;
  margin-bottom: 22px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover,
.dropzone.drag {
  border-color: var(--accent);
  background: rgba(77, 163, 255, 0.06);
  color: var(--text);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 11px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.table td.mono {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(70, 209, 139, 0.12);
  color: var(--ok);
  border: 1px solid rgba(70, 209, 139, 0.3);
}

.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

.status {
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
}

.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }

.hidden { display: none !important; }

.divider {
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 48px 0; }
  .table th:nth-child(3),
  .table td:nth-child(3) { display: none; }
}
