/* =========================================
   SOFTWARE HUB: LAYOUT & VARIABLES
   ========================================= */

:root {
  /* Brand Colors tailored for the Hub (SaaS Vibe) */
  --hub-primary: #4338ca;      /* Deep Indigo */
  --hub-primary-light: #6366f1; /* Indigo */
  --hub-secondary: #0ea5e9;    /* Light Blue */
  --hub-accent: #f59e0b;       /* Amber */
  
  /* Backgrounds & Surfaces */
  --hub-bg: #f8fafc;
  --hub-surface: #ffffff;
  
  /* Text */
  --hub-text-main: #0f172a;
  --hub-text-muted: #64748b;
  --hub-text-light: #94a3b8;
  
  /* Utilities */
  --hub-border: #e2e8f0;
  --hub-radius: 12px;
  --hub-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --hub-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --hub-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
  background-color: var(--hub-bg);
  color: var(--hub-text-main);
}

/* -----------------------------------------
   Hero Header (Top Banner)
   ----------------------------------------- */
.hub-header {
  background: linear-gradient(135deg, var(--hub-primary) 0%, var(--hub-primary-light) 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.hub-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
}

.hub-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.hub-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* -----------------------------------------
   Main Container
   ----------------------------------------- */
.hub-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.hub-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--hub-text-main);
}

/* Category Grid on Hub Home */
.hub-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.hub-category-card {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--hub-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hub-category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hub-shadow-lg);
  border-color: var(--hub-primary-light);
}

.hub-category-icon {
  font-size: 48px;
  margin-bottom: 20px;
  background: #f1f5f9;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.hub-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hub-text-main);
  margin-bottom: 8px;
}

.hub-category-desc {
  font-size: 0.95rem;
  color: var(--hub-text-muted);
}
