/* ArcX×HOST — design tokens
   Palette: void #0B0E14, panel #12161F, panel-raised #171C28, line #232A38,
            signal (teal) #4FE3C1, signal-dim #2B8C77, amber #F5A623, red #FF5D5D,
            text #E7EAF0, muted #7C8698
   Type: display "Space Grotesk" / body "IBM Plex Sans" / mono "JetBrains Mono"
   Signature: the deploy pulse — a live ping-line on every project card that
   ticks when a request lands, so the dashboard visibly breathes. */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --void: #0b0e14;
  --panel: #12161f;
  --panel-raised: #171c28;
  --line: #232a38;
  --signal: #4fe3c1;
  --signal-dim: #2b8c77;
  --amber: #f5a623;
  --red: #ff5d5d;
  --text: #e7eaf0;
  --muted: #7c8698;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(79, 227, 193, 0.07), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(245, 166, 35, 0.05), transparent 35%);
}

h1, h2, h3, .display {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.01em;
  margin: 0;
}

code, .mono, .subdomain, .path {
  font-family: "JetBrains Mono", monospace;
}

a { color: inherit; }

.muted { color: var(--muted); }
.signal { color: var(--signal); }
.amber { color: var(--amber); }
.red { color: var(--red); }

/* --- shell -------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.brand .mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--signal), var(--signal-dim));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--void); font-size: 12px; font-weight: 700;
}

.brand .x { color: var(--muted); font-weight: 500; }

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 28px 100px;
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-raised);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--signal-dim); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--signal);
  color: #05231d;
  border-color: var(--signal);
}
.btn-primary:hover { background: #6bf0d3; }
.btn-danger { color: var(--red); }
.btn-danger:hover { border-color: var(--red); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }

/* --- cards / panels ------------------------------------------------------- */

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

.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  transition: border-color .15s;
}
.project-card:hover { border-color: var(--signal-dim); }

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
  background: var(--muted);
  box-shadow: 0 0 0 0 rgba(79,227,193,0.6);
}
.status-dot.ready { background: var(--signal); animation: pulse 2.4s infinite; }
.status-dot.empty { background: var(--muted); }
.status-dot.error { background: var(--red); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,227,193,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(79,227,193,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,227,193,0); }
}

/* --- forms ------------------------------------------------------------- */

input, select {
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--void);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
}
input:focus, select:focus, .btn:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
}
label { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 6px; }
.field { margin-bottom: 16px; }

/* --- modal --------------------------------------------------------------- */

.overlay {
  position: fixed; inset: 0;
  background: rgba(6, 8, 12, 0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
}
.modal {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  width: min(440px, 92vw);
}

/* --- misc ------------------------------------------------------------- */

.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .status-dot.ready { animation: none; }
}
