/* ─── Reset & tokens ─── */
:root {
  --bg: #0a0a0a;
  --surface: rgba(26, 26, 26, 0.7);
  --surface-solid: #1a1a1a;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(249, 115, 22, 0.4);
  --text: #f0f0f0;
  --text-muted: #888;
  --text-faint: #555;
  --primary: #f97316;
  --primary-dim: rgba(249, 115, 22, 0.12);
  --ok: #22c55e;
  --ok-dim: rgba(34, 197, 94, 0.12);
  --bad: #ef4444;
  --bad-dim: rgba(239, 68, 68, 0.12);
  --warn: #eab308;
  --warn-dim: rgba(234, 179, 8, 0.12);
  --info: #3b82f6;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* ─── Accessibility ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -50px; left: 1rem;
  background: var(--primary); color: #fff;
  padding: 0.5rem 1rem; border-radius: 0 0 8px 8px;
  font-weight: 600; z-index: 200; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── Typography ─── */
h1, h2, h3 { font-family: 'Sora', sans-serif; font-weight: 700; line-height: 1.2; }

/* ─── Glass card ─── */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ─── Header ─── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.logo svg { flex-shrink: 0; }
.site-header nav { display: flex; align-items: center; gap: 0.25rem; }
.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.site-header nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* ─── Hero ─── */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Search ─── */
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 520px;
  margin: 0 auto;
}
.search-form input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-form input::placeholder { color: var(--text-faint); }
.search-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.search-form button {
  padding: 0.875rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.search-form button:hover { opacity: 0.9; }
.search-form button:active { transform: scale(0.97); }

/* ─── Service grid ─── */
.watchlist { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.watchlist h2 { font-size: 1.125rem; margin-bottom: 0.375rem; color: var(--text); }
.watchlist-desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.25rem; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.625rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(249,115,22,0.08);
}
.service-name { font-weight: 600; font-size: 0.9375rem; }
.service-cat {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.site-footer a { color: var(--primary); text-decoration: none; transition: opacity 0.15s; }
.site-footer a:hover { opacity: 0.8; }

/* ─── Animations ─── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-in 0.4s ease-out; }

/* ─── Dot helpers ─── */
.dot-up { color: var(--ok); }
.dot-blocked { color: var(--bad); }
.dot-down { color: var(--warn); }
.dot-unknown { color: var(--text-muted); }
