/* ============================================
   joselobby — tokens
   ============================================ */
:root {
  --bg: #0b0c0e;
  --surface: #17181b;
  --surface-hover: #1d1f23;
  --border: #26282c;

  --text-primary: #f2f3f5;
  --text-secondary: #9a9da6;
  --text-muted: #5b5e66;

  --accent: #7c8cff;
  --accent-soft: #1d2040;

  --green: #4ade80;
  --green-soft: #163524;
  --red: #f87171;
  --red-soft: #3a1f1f;

  --heading: 'Manrope', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: ui-monospace, monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem 2.5rem;
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}

.hero__title {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0.8rem 0 0;
}

/* ============================================
   Main
   ============================================ */
.main {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.main__empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem 0;
}

/* ============================================
   Login
   ============================================ */
.login {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  animation: fadeIn 0.4s ease;
}

.login__card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login__title {
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.login__desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: -0.5rem 0 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.field input {
  font-family: var(--body);
  font-size: 0.95rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  color: var(--text-primary);
}

.field input:focus-visible {
  border-color: var(--accent);
  outline-offset: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.check input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}

.button {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--accent);
  color: #0b0c0e;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.button:hover { filter: brightness(1.08); }
.button:active { transform: scale(0.98); }
.button:disabled { opacity: 0.6; cursor: wait; }

.login__error {
  font-size: 0.85rem;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin: 0;
}

/* ============================================
   Dashboard / categories
   ============================================ */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  animation: fadeIn 0.4s ease;
}

.category__label {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.category__desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0.2rem 0 1rem;
}

.category__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
}

/* ============================================
   Card
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  background: var(--surface-hover);
  border-color: #34363b;
  transform: translateY(-2px);
}

.card__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.card[data-status="checking"] .dot {
  background: var(--text-muted);
  animation: pulse 1.1s ease-in-out infinite;
}
.card[data-status="online"] .dot { background: var(--green); }
.card[data-status="offline"] .dot { background: var(--red); }

.card__status-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card__name {
  font-weight: 600;
  font-size: 1rem;
}

.card__desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

.card__tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.3rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 2rem 1.5rem 3rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .login, .dashboard, .card { animation: none !important; transition: none !important; }
  .dot[class] { animation: none !important; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 520px) {
  .hero { padding: 3.5rem 1.2rem 2rem; }
  .category__grid { grid-template-columns: 1fr; }
}
