@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --bg: #FAFBFF;
  --text-dark: #111827;
  --text-body: #374151;
  --text-muted: #6B7280;
  --card-bg: #FFFFFF;
  --border: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
  --blue: #3B82F6;
  --indigo: #6366F1;
  --emerald: #10B981;
  --red: #EF4444;
  --violet: #8B5CF6;
  --amber: #F59E0B;
  --pink: #EC4899;
  --cyan: #06B6D4;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-dark);
  margin: 0;
}

.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

/* ---- Geometric Background Decorations ---- */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}
body::before {
  width: 500px;
  height: 500px;
  top: -120px;
  right: -180px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
}
body::after {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -150px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1), transparent 70%);
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 251, 255, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navInner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
.logo { height: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.navInner .btn {
  background: var(--text-dark);
  color: #fff;
}
.navInner .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }

/* ---- Hero ---- */
.hero {
  padding: 4.5rem 0 2.5rem;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: -2rem;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(236,72,153,0.08));
  transform: rotate(15deg);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 1rem;
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(99,102,241,0.1));
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--indigo);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-dark) 60%, var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero > p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---- Category Color Map ---- */
.tag-getting-started { --tag-color: var(--emerald); --tag-bg: rgba(16, 185, 129, 0.1); }
.tag-security        { --tag-color: var(--red);     --tag-bg: rgba(239, 68, 68, 0.1); }
.tag-channels        { --tag-color: var(--violet);  --tag-bg: rgba(139, 92, 246, 0.1); }
.tag-operations      { --tag-color: var(--amber);   --tag-bg: rgba(245, 158, 11, 0.1); }
.tag-troubleshooting { --tag-color: var(--pink);    --tag-bg: rgba(236, 72, 153, 0.1); }
.tag-scaling         { --tag-color: var(--cyan);    --tag-bg: rgba(6, 182, 212, 0.1); }

/* ---- Blog Grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

/* ---- Blog Card ---- */
a.card { text-decoration: none; color: inherit; display: block; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--tag-color, var(--blue));
  border-radius: var(--radius) 0 0 var(--radius);
  transition: width 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before { width: 6px; }

.tag {
  margin: 0 0 0.8rem;
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: var(--tag-bg, rgba(59, 130, 246, 0.1));
  color: var(--tag-color, var(--blue));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.7rem;
  color: var(--text-dark);
}
.card > p {
  color: var(--text-body);
  line-height: 1.65;
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
}
.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.card li {
  padding: 0.3rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tag-color, var(--blue));
}

/* ---- CTA Section ---- */
.cta {
  margin: 1rem 0 3.5rem;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--text-dark) 0%, #1E293B 100%);
  color: #fff;
}
.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent 70%);
  pointer-events: none;
}
.cta h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}
.cta p {
  margin: 0 0 1.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}
.cta .btn {
  background: #fff;
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}
.cta .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }

/* ---- Responsive ---- */
@media (max-width: 840px) {
  .grid { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 640px) {
  .navInner { flex-direction: column; padding: 0.7rem 0; }
  .hero { padding: 3rem 0 2rem; }
  h1 { font-size: 2rem; }
  .hero::after { display: none; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
  .card::before { transition: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
