:root {
  --bg: #0b0f19;
  --surface: #131a2c;
  --surface-light: #1e2942;
  --border: #1e2942;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #3b82f6;
  --accent-ms: #00a4ef;
  --accent-success: #10b981;
  --accent-gold: #f59e0b;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
.site-header {
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.nav-btn:hover,
.nav-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.nav-btn.secondary:hover {
  background: var(--surface-light);
  color: var(--text);
  border-color: var(--accent);
}

/* ========== MAIN LAYOUT ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  flex: 1;
}

/* ========== HERO ========== */
.hero {
  margin-bottom: 3.5rem;
}
.meta-badge-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: monospace;
}
.badge.verified { border-color: var(--accent-success); color: var(--accent-success); }
.badge.ms-id { border-color: rgba(0,164,239,0.4); color: var(--accent-ms); }
.badge.eu { border-color: #003399; color: #6699ff; }
.badge.gold { border-color: var(--accent-gold); color: var(--accent-gold); }

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.title-sub {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.role-line {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ========== SECTIONS ========== */
section { margin-bottom: 3.5rem; }
h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Metrics */
.metrics-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.metric-card {
  background: linear-gradient(145deg, var(--surface), #17223b);
  border: 1px solid var(--border);
  padding: 1.4rem 1rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s ease;
}
.metric-card:hover { transform: translateY(-3px); }
.metric-value {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent);
  font-family: monospace;
  line-height: 1.1;
}
.metric-value.ms-color { color: var(--accent-ms); }
.metric-value.gold { color: var(--accent-gold); }
.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

/* Vendor tabs & filters */
.vendor-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}
.vendor-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.vendor-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.vendor-tab.active-ibm { color: var(--accent); background: rgba(59,130,246,0.12); }
.vendor-tab.active-ms { color: var(--accent-ms); background: rgba(0,164,239,0.12); }

.filter-menu {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.95rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-btn.active.ms-theme { background: var(--accent-ms); border-color: var(--accent-ms); }

/* Tables */
.registry-wrapper {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 1.5rem;
}
.registry-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.registry-table th {
  background: #0d1524;
  padding: 0.85rem 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.registry-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #162035;
  vertical-align: middle;
}
.registry-table tr:last-child td { border-bottom: none; }
.registry-table tr.hidden { display: none; }

.level-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 0.72rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-weight: 500;
}
.level-tag.advanced { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.level-tag.intermediate { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.level-tag.infrastructure { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.level-tag.microsoft { background: rgba(0,164,239,0.15); color: #38bdf8; border: 1px solid rgba(0,164,239,0.3); }

.code-span { font-family: monospace; color: var(--text-muted); font-size: 0.8rem; }
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-success);
  font-size: 0.8rem;
  font-family: monospace;
}
.status-dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-success);
  border-radius: 50%;
}

/* EU Widget & cards */
.eu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.eu-card h3 { margin-bottom: 0.75rem; color: #6699ff; }
.widget-container {
  background: #0d1524;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
  min-height: 120px;
}

/* Buttons */
.btn-group { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2563eb; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ms { background: var(--accent-ms); color: #fff; }
.btn-ms:hover { background: #0086c3; }

/* Lists */
.highlight-list { list-style: none; }
.highlight-list li {
  margin-bottom: 0.65rem;
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-muted);
}
.highlight-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: #080c16;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.identifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 0.75rem;
  font-family: monospace;
  font-size: 0.75rem;
}

/* Utility */
.vendor-panel { display: none; }
.vendor-panel.active { display: block; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }

/* Responsive */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav-buttons { width: 100%; }
  .nav-btn { flex: 1 1 auto; text-align: center; }
  h1 { font-size: 1.8rem; }
}
