* { box-sizing: border-box; margin: 0; padding: 0; }

.hidden { display: none !important; }

:root {
  --bg: #05070a;
  --surface: #0c1018;
  --border: #1a2332;
  --text: #e4e8ef;
  --text-dim: #6b7a90;
  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.15);
  --purple: #a855f7;
  --blue: #3b82f6;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.glow-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.glow-orb.teal {
  background: var(--accent);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.15;
}

.glow-orb.purple {
  background: var(--purple);
  bottom: -300px;
  right: -200px;
  opacity: 0.1;
}

.container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

header {
  text-align: center;
  margin-bottom: 80px;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 32px;
  box-shadow: 0 0 40px var(--accent-glow);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-top: 16px;
  font-weight: 400;
}

.services {
  display: grid;
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  position: relative;
}

.service-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.service-info {
  flex: 1;
  position: relative;
}

.service-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.service-name code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0, 212, 170, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.service-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

.arrow {
  color: var(--text-dim);
  font-size: 1.5rem;
  transition: transform 0.3s, color 0.3s;
  position: relative;
}

.service-card:hover .arrow {
  transform: translateX(6px);
  color: var(--accent);
}

footer {
  text-align: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.hub-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 48px 24px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.hub-error {
  color: #f87171;
  text-align: center;
  padding: 24px;
}

@media (max-width: 640px) {
  .container { padding: 48px 16px; }
  h1 { font-size: 2rem; }
  .tagline { font-size: 1rem; }
  .service-card { padding: 20px; gap: 16px; }
  .service-icon { width: 44px; height: 44px; font-size: 20px; }
  .service-name { font-size: 1.1rem; }
}
