/* ==========================================================================
   Haadi.org - Islamic AI for the Ummah Design System
   Colors: Emerald Green (#047857), Warm Gold (#d97706), Ivory Canvas (#fdfbf7)
   ========================================================================== */

:root {
  --bg-canvas: #fdfbf7;
  --bg-surface: #ffffff;
  --bg-subtle: #f8f6f0;
  --bg-emerald-subtle: #ecfdf5;
  --bg-gold-subtle: #fefce8;
  
  --border-color: #e7e2d6;
  --border-emerald: rgba(4, 120, 87, 0.25);
  --border-gold: rgba(217, 119, 6, 0.25);
  
  --primary: #047857;
  --primary-hover: #065f46;
  --primary-dark: #064e3b;
  --primary-light: #ecfdf5;
  --primary-glow: rgba(4, 120, 87, 0.15);
  
  --gold: #d97706;
  --gold-hover: #b45309;
  --gold-light: #fef3c7;
  --gold-dark: #92400e;
  
  --secondary: #0284c7;
  --secondary-light: #e0f2fe;
  --accent: #b91c1c;
  
  --text-heading: #0f291e;
  --text-body: #2d3748;
  --text-muted: #576574;
  --text-dim: #8c9ba5;
  
  --font-arabic: 'Amiri', serif;
  --font-title: 'Cinzel', 'Plus Jakarta Sans', serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(4, 120, 87, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px -2px rgba(4, 120, 87, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 16px 36px -6px rgba(6, 78, 59, 0.1), 0 6px 18px -4px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(4, 120, 87, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(217, 119, 6, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(253, 251, 247, 0.8) 0%, transparent 100%);
  background-attachment: fixed;
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  text-decoration: none;
  font-family: var(--font-title);
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #047857, #064e3b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
  text-decoration: none;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.staging-pill {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  background: var(--bg-gold-subtle);
  color: var(--gold-dark);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-heading);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-gold {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

/* Guardrail Banner */
.guardrail-banner {
  background: #fffbeb;
  border: 1px solid #fef08a;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.guardrail-icon {
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Cards & Badges */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  background: var(--bg-emerald-subtle);
  color: var(--primary-dark);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 41, 30, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 85vh;
  overflow-y: auto;
}

.footer {
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  padding: 2.5rem 0;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
