/* Relay Engineering Design System - Inspired by Linear & Vercel */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-main: #08090d;
  --bg-subtle: #0d1017;
  --bg-card: rgba(13, 16, 23, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.35);
  --accent-cyan: #38bdf8;
  --accent-blue: #6366f1;
  --text-muted: #8b949e;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: #e6edf3;
  letter-spacing: -0.011em;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Subtle dot grid background */
.bg-grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Linear-style Hairline Cards */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05), 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Radial Glow Spotlight */
.hero-spotlight {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(circle 450px at center, rgba(56, 189, 248, 0.1) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Code Container */
.ide-window {
  background: #090c12;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #21262d;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #30363d;
}

/* Sidebar Active State */
.sidebar-link {
  color: #8b949e;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.sidebar-link:hover {
  color: #f0f6fc;
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-link.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border-left-color: #38bdf8;
  font-weight: 500;
}

/* Badges */
.badge-tag {
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  border: 1px solid;
}
