/* ===========================================
   TASKNORY V3 - AFRICAN AI SPECIALIST STYLESHEET
   =========================================== */

/* CSS Variables for Theme Switching */
:root {
  /* Brand Colors - African AI Premium Palette */
  --primary-blue: #4F46E5;     /* Deep Indigo - Trust, Tech */
  --success-green: #10B981;    /* Success, Growth */
  --accent-orange: #D97706;    /* Amber Gold - African premium feel */
  --accent-gold: #F59E0B;      /* Bright gold for highlights */
  --danger-red: #EF4444;       /* Warning, Important */
  --purple: #7C3AED;           /* Innovation, AI */
  
  /* Neutral Colors - Light Theme */
  --neutral-50: #F9FAFB;
  --neutral-100: #F3F4F6;
  --neutral-200: #E5E7EB;
  --neutral-300: #D1D5DB;
  --neutral-400: #9CA3AF;
  --neutral-500: #6B7280;
  --neutral-600: #4B5563;
  --neutral-700: #374151;
  --neutral-800: #1F2937;
  --neutral-900: #111827;
  
  /* Background & Text - Light Theme */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --bg-tertiary: #F3F4F6;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--purple));
  --gradient-success: linear-gradient(135deg, var(--success-green), #34D399);
  --gradient-accent: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  --gradient-dark: linear-gradient(135deg, var(--neutral-800), var(--neutral-900));
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Z-index layers */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-modal: 30;
  --z-popover: 40;
  --z-tooltip: 50;
  --z-toast: 60;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-primary: #0B0F19;
  --bg-secondary: #111827;
  --bg-tertiary: #1F2937;
  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --border-color: #1F2937;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ===========================================
   BASE STYLES & RESET
   =========================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
  padding-top: 70px;
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

::selection {
  background-color: rgba(79, 70, 229, 0.3);
  color: var(--text-primary);
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 { font-size: 3.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2.5rem; letter-spacing: -0.025em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::after { left: 100%; }

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

.btn-small { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-large { padding: 1rem 2rem; font-size: 1rem; }
.btn-xlarge {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-xlarge .btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-xlarge .btn-title { font-size: 1.25rem; font-weight: 700; }

/* ===========================================
   THEME TOGGLE
   =========================================== */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--primary-blue);
}

.theme-icon {
  position: absolute;
  transition: all var(--transition);
}

.theme-icon.sun { color: var(--accent-orange); }
.theme-icon.moon { color: var(--primary-blue); }

[data-theme="light"] .theme-icon.moon { opacity: 0; transform: scale(0); }
[data-theme="dark"] .theme-icon.sun { opacity: 0; transform: scale(0); }

/* ===========================================
   LOADING SCREEN
   =========================================== */
.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-toast);
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-content { text-align: center; color: white; }

.loading-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.logo-circle {
  width: 80px; height: 80px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  animation: pulse 2s infinite;
}

.loading-bar {
  width: 300px; height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.loading-progress {
  height: 100%; width: 0%;
  background: var(--gradient-primary);
  animation: loading 2.5s ease-in-out forwards;
}

.loading-text { font-size: 0.9rem; opacity: 0.8; letter-spacing: 0.1em; }

/* ===========================================
   FLOATING ACCESS
   =========================================== */
.floating-access {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: var(--z-sticky);
}

.floating-btn {
  width: 60px; height: 60px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.floating-btn span {
  position: absolute;
  top: -30px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  pointer-events: none;
  border: 1px solid var(--border-color);
}

.floating-btn:hover span { opacity: 1; transform: translateY(0); }

/* ===========================================
   NAVIGATION
   =========================================== */
.main-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(var(--bg-primary-rgb), 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1001;
  transition: all var(--transition);
  height: 70px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-mark {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.25rem;
  position: relative;
  flex-shrink: 0;
}

.logo-pulse {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  opacity: 0.5;
  animation: pulse 2s infinite;
}

.logo-text h1 {
  font-size: 1.25rem;
  margin-bottom: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: -2px;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  font-size: 0.95rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
}

/* ===========================================
   AFRICAN FLAGS STRIPE
   =========================================== */
.african-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
}

.african-strip__container { width: 100%; overflow: hidden; }

.african-strip__track {
  display: flex;
  gap: 2.5rem;
  padding: 0 1.5rem;
  width: max-content;
  animation: scrollStrip 30s linear infinite;
  will-change: transform;
}

.african-strip:hover .african-strip__track { animation-play-state: paused; }

.african-strip__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
  font-size: 0.9rem;
}

.african-strip__item:hover { color: var(--primary-blue); }

.african-strip__item .flag {
  font-size: 1.5rem;
  line-height: 1;
}

/* ===========================================
   TRUST STRIP
   =========================================== */
.trust-strip {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
}

.trust-strip__container { width: 100%; overflow: hidden; }

.trust-strip__track {
  display: flex;
  gap: 3rem;
  padding: 0 1.5rem;
  width: max-content;
  animation: scrollStrip 25s linear infinite;
  will-change: transform;
}

.trust-strip:hover .trust-strip__track { animation-play-state: paused; }

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-strip__item:hover { color: var(--primary-blue); }

.trust-strip__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 1.1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.trust-strip__item:hover .trust-strip__icon {
  border-color: var(--primary-blue);
  background: var(--primary-blue);
  color: white;
  transform: scale(1.05);
}

.trust-strip__label { font-weight: 500; font-size: 0.9rem; letter-spacing: -0.01em; }

/* ===========================================
   CASE STUDIES
   =========================================== */
.case-study-section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.case-study-container { max-width: 1100px; margin: 0 auto; width: 100%; }

.case-study-header { text-align: left; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.case-study-header .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.case-study-header h2 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; margin-bottom: 0.5rem; color: var(--text-primary); }

.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .case-studies-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.case-study-card {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.case-study-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.case-study-card:hover::before { opacity: 1; }
.case-study-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.case-study-content { display: flex; flex-direction: column; gap: 1rem; order: 2; }
.case-client-info { display: flex; align-items: center; gap: 0.875rem; }

.case-client-avatar {
  width: clamp(36px, 5vw, 44px);
  height: clamp(36px, 5vw, 44px);
  border-radius: var(--radius);
  background: var(--gradient-success);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: clamp(0.875rem, 2vw, 1rem);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.case-client-details strong { display: block; color: var(--text-primary); font-size: clamp(0.9rem, 2vw, 1rem); font-weight: 700; margin-bottom: 0.15rem; line-height: 1.3; }
.case-client-details span { font-size: clamp(0.75rem, 1.5vw, 0.85rem); color: var(--text-muted); font-weight: 500; }

.case-study-description { color: var(--text-secondary); font-size: clamp(0.9rem, 2vw, 0.95rem); line-height: 1.7; margin: 0; }

.case-study-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.5rem 0; }

.case-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: clamp(0.75rem, 1.5vw, 0.8rem);
  font-weight: 600;
  white-space: nowrap;
}

.case-badge.success { color: var(--success-green); background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }
.case-badge.accent { color: var(--accent-orange); background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); }
.case-badge i { font-size: 0.7rem; }

.case-study-cta { margin-top: 0.5rem; }
.case-study-cta .btn { width: 100%; justify-content: center; padding: 0.875rem 1.5rem; font-size: clamp(0.9rem, 2vw, 1rem); }

.case-study-media {
  order: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  position: relative;
  aspect-ratio: 16 / 10;
}

.case-study-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-slow); }
.case-study-card:hover .case-study-media img { transform: scale(1.03); }

.case-study-media::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.case-study-card:hover .case-study-media::after { opacity: 1; }

.case-media-caption {
  position: absolute;
  bottom: 0.75rem; left: 0.75rem; right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 2;
}

.case-study-card:hover .case-media-caption { opacity: 1; transform: translateY(0); }
.case-media-caption i { color: var(--accent-orange); font-size: 0.8rem; }

@media (min-width: 768px) {
  .case-study-card { flex-direction: row; align-items: center; gap: 2.5rem; }
  .case-study-content { flex: 1; order: 1; min-width: 0; }
  .case-study-media { flex: 1; order: 2; max-width: 50%; aspect-ratio: 4 / 3; }
  .case-study-cta .btn { width: auto; justify-content: flex-start; }
  .case-study-badges { gap: 1rem; }
}

@media (min-width: 1024px) {
  .case-study-card { gap: 3rem; padding: 2.5rem; }
  .case-study-media { aspect-ratio: 16 / 10; }
  .case-study-header h2 { font-size: 2rem; }
}

@media (min-width: 1280px) {
  .case-study-container { max-width: 1200px; }
  .case-study-card { gap: 3.5rem; }
}

/* ===========================================
   PROCESS SECTION
   =========================================== */
.process-section {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.section-badge {
  display: inline-block;
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-color);
}

.section-title { margin-bottom: var(--space-sm); }
.section-subtitle { color: var(--text-secondary); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

.process-steps { position: relative; max-width: 1200px; margin: 0 auto var(--space-3xl); }
.step-track { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); width: 4px; height: calc(100% - 120px); background: var(--border-color); }

.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.process-step:last-child { margin-bottom: 0; }
.step-number { font-size: 3rem; font-weight: 900; color: var(--text-muted); opacity: 0.3; text-align: right; font-family: var(--font-heading); }
.step-content { position: relative; }

.step-content::before {
  content: '';
  position: absolute;
  top: 30px; left: -36px;
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 4px solid var(--primary-blue);
  z-index: 1;
}

.step-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.step-title { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.step-description { margin-bottom: var(--space-sm); color: var(--text-secondary); }

.step-tip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.step-tip i { color: var(--accent-orange); }

/* Dashboard Preview */
.dashboard-preview {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preview-header { padding: var(--space-lg); text-align: center; border-bottom: 1px solid var(--border-color); }
.preview-header h3 { margin-bottom: 0.5rem; }
.preview-container { display: flex; min-height: 400px; }

/* ===========================================
   WHY AFRICA SECTION
   =========================================== */
.why-africa-section {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.why-africa-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--gradient-primary);
  opacity: 0.03;
  border-radius: 50%;
  pointer-events: none;
}

.why-africa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.why-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

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

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.why-card h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.why-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0; }

/* ===========================================
   PRICING SECTION
   =========================================== */
.pricing-section {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg-secondary);
}

.pricing-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.pricing-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition);
}

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

.pricing-header { padding: var(--space-xl); border-bottom: 1px solid var(--border-color); }
.pricing-header h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.pricing-header .description { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

.pricing-body { padding: var(--space-xl); }
.price { font-size: 2.1rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: var(--space-sm); }
.delivery { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.875rem; color: var(--success-green); margin-bottom: var(--space-lg); }

.pricing-features { list-style: none; }
.pricing-features li { display: flex; align-items: flex-start; gap: var(--space-sm); margin-bottom: var(--space-sm); font-size: 0.9rem; color: var(--text-secondary); }
.pricing-features li i { color: var(--success-green); margin-top: 0.25rem; }

.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  margin-top: 40px;
  gap: 20px;
}

.pricing-cta-note { color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 1024px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ===========================================
   ECONOMY SECTION
   =========================================== */
.economy-section {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg-primary);
  position: relative;
}

.economy-features { max-width: 1200px; margin: 0 auto var(--space-3xl); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

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

.feature-icon {
  width: 70px; height: 70px;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

.feature-title { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.feature-description { margin-bottom: var(--space-lg); color: var(--text-secondary); }

.feature-example {
  background: var(--bg-primary);
  padding: var(--space-md);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.feature-example code { font-family: monospace; color: var(--primary-blue); font-weight: 600; display: block; margin-bottom: 0.25rem; }
.feature-example span { font-size: 0.875rem; color: var(--text-muted); }

.withdrawal-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }

.option {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.option:hover { border-color: var(--primary-blue); transform: translateY(-2px); }
.option i { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--primary-blue); }
.option span { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.option small { font-size: 0.75rem; color: var(--text-muted); }

.protection-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.protection-badge i { color: var(--success-green); }

.milestone-flow { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); }

.flow-step {
  width: 50px; height: 50px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.flow-step.active { border-color: var(--success-green); background: var(--success-green); color: white; }
.flow-step span { font-size: 1.125rem; font-weight: 700; }
.flow-step small { font-size: 0.625rem; margin-top: 0.125rem; }
.flow-arrow { color: var(--text-muted); }

.withdrawal-info {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
}

.withdrawal-info h3 { text-align: center; margin-bottom: var(--space-xl); }

.terms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }

.term-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.term-item.positive { border-left: 4px solid var(--success-green); }
.term-item.warning { border-left: 4px solid var(--accent-orange); }
.term-item.negative { border-left: 4px solid var(--danger-red); }
.term-item.note { border-left: 4px solid var(--primary-blue); }

.term-item i { font-size: 1.25rem; margin-top: 0.125rem; }
.term-item.positive i { color: var(--success-green); }
.term-item.warning i { color: var(--accent-orange); }
.term-item.negative i { color: var(--danger-red); }
.term-item.note i { color: var(--primary-blue); }

.term-content strong { display: block; margin-bottom: 0.25rem; }
.term-content p { margin-bottom: 0; font-size: 0.875rem; color: var(--text-muted); }

/* ===========================================
   FEATURES SECTION
   =========================================== */
.features-section {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-block {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  position: relative;
}

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

.feature-block .feature-icon {
  width: 60px; height: 60px;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.feature-badge {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

/* ===========================================
   TRUST SIGNALS
   =========================================== */
.trust-section {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-item i { color: var(--success-green); }

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--gradient-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

.cta-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.cta-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(60px);
  opacity: 0.2;
}

.cta-orb.orb-1 { width: 400px; height: 400px; background: var(--primary-blue); top: -200px; right: -200px; }
.cta-orb.orb-2 { width: 300px; height: 300px; background: var(--purple); bottom: -150px; left: -150px; }

.cta-content { text-align: center; }

.cta-title { font-size: 3rem; margin-bottom: var(--space-md); color: white; }
.cta-subtitle { font-size: 1.25rem; opacity: 0.9; max-width: 800px; margin: 0 auto var(--space-2xl); color: rgba(255, 255, 255, 0.9); }

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

.cta-guarantee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  opacity: 0.9;
}

.guarantee-item i { color: var(--accent-orange); }

/* ===========================================
   FOOTER
   =========================================== */
.main-footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding-top: var(--space-3xl);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-2xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand { padding-right: var(--space-xl); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.footer-logo .logo-mark { width: 50px; height: 50px; }
.footer-logo h3 { margin-bottom: 0.25rem; }

.logo-tagline { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }

.footer-description { margin-bottom: var(--space-lg); color: var(--text-secondary); }

.footer-social { display: flex; gap: var(--space-sm); }

.social-link {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}

.social-link:hover { background: var(--primary-blue); color: white; border-color: var(--primary-blue); transform: translateY(-2px); }

.link-group { margin-bottom: var(--space-lg); }
.link-title { font-size: 1.125rem; margin-bottom: var(--space-md); color: var(--text-primary); }

.link-item {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: var(--space-sm);
  transition: color var(--transition);
}

.link-item:hover { color: var(--primary-blue); }

.footer-newsletter { margin-bottom: var(--space-lg); }
.newsletter-title { font-size: 1.125rem; margin-bottom: var(--space-md); }
.newsletter-text { margin-bottom: var(--space-md); color: var(--text-secondary); font-size: 0.95rem; }

.newsletter-form .form-group {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.newsletter-form input:focus { outline: none; border-color: var(--primary-blue); }
.newsletter-form button { width: 50px; padding: 0; border-radius: var(--radius); }

.newsletter-note { font-size: 0.75rem; color: var(--text-muted); }

.footer-bottom { padding: var(--space-lg); border-top: 1px solid var(--border-color); }

.bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copyright { color: var(--text-muted); font-size: 0.875rem; }
.bottom-links { display: flex; gap: var(--space-xl); }

.bottom-link { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; transition: color var(--transition); }
.bottom-link:hover { color: var(--primary-blue); }

/* ===========================================
   ANIMATIONS & KEYFRAMES
   =========================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes loading {
  0% { width: 0%; }
  70% { width: 90%; }
  100% { width: 100%; }
}

@keyframes lineFlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, -55%); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes stackFloat {
  0%, 100% { transform: translateY(0) scale(var(--scale, 1)); }
  50% { transform: translateY(-6px) scale(var(--scale, 1)); }
}

.freelancer-card.card-2 { --scale: 0.95; }
.freelancer-card.card-3 { --scale: 0.9; }

@keyframes pulseLine {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes badgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes scrollStrip {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }
  
  .hero-content { padding-right: 0; }
  .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-visual { min-height: 450px; }
  .mockup-float-badge { right: 20px; bottom: 10px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  body { padding-top: 60px; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  
  .main-nav { height: 60px; min-height: 60px; }
  .nav-container { padding: 0 1rem; height: 60px; }
  
  .nav-logo { flex: 1; }
  .logo-mark { width: 35px; height: 35px; font-size: 1rem; }
  .logo-text h1 { font-size: 1.1rem; white-space: nowrap; }
  .logo-subtitle { font-size: 0.6rem; }
  
  .nav-menu {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg-primary);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    display: flex;
    gap: 0;
  }
  
  .nav-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
  
  .nav-link { width: 100%; padding: 1rem; border-bottom: 1px solid var(--border-color); margin: 0; }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }
  .nav-link:hover { background: var(--bg-secondary); color: var(--primary-blue); }
  
  .menu-toggle { display: flex; margin-left: 0.5rem; }
  
  .nav-actions { gap: 0.5rem; }
  .nav-actions .btn { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
  
  .theme-toggle { width: 40px; height: 40px; margin-left: 0.5rem; }
  
  .hero-section { padding: 6rem 1rem 3rem; }
  .hero-actions { flex-direction: column; gap: 1rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  
  .process-step { grid-template-columns: 1fr; gap: var(--space-md); }
  .step-number { text-align: left; }
  .step-content::before { display: none; }
  
  .preview-container { flex-direction: column; }
  .preview-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
  
  .floating-access { bottom: 1rem; right: 1rem; }
  .floating-btn { width: 50px; height: 50px; }
  .floating-btn span { top: -35px; font-size: 0.7rem; padding: 0.2rem 0.5rem; }
  
  .why-africa-grid { grid-template-columns: 1fr; }
  
  .terms-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .term-item { padding: 1rem; margin-bottom: 0.5rem; }
  .withdrawal-info { padding: 1rem; margin: 1rem 0; }
  .withdrawal-info h3 { font-size: 1.25rem; margin-bottom: 1rem; }
}

@media (max-width: 640px) {
  .hero-stats { flex-direction: column; gap: var(--space-md); }
  .stat-divider { width: 100%; height: 1px; }
  .hero-actions { flex-direction: column; }
  .currency-display { flex-direction: column; gap: var(--space-md); }
  .currency-equals { transform: rotate(90deg); }
  .footer-container { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-brand { padding-right: 0; }
  .bottom-content { flex-direction: column; gap: var(--space-md); text-align: center; }
  .cta-actions { width: 100%; }
  .btn-xlarge { width: 100%; justify-content: space-between; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { padding-top: 56px; }
  .main-nav { height: 56px; min-height: 56px; }
  .nav-container { height: 56px; padding: 0 0.75rem; }
  .nav-menu { top: 56px; }
  
  .logo-mark { width: 32px; height: 32px; }
  .logo-text h1 { font-size: 1rem; }
  .logo-subtitle { font-size: 0.55rem; }
  .menu-toggle { width: 36px; height: 36px; font-size: 1rem; }
  .nav-actions .btn { font-size: 0.7rem; padding: 0.35rem 0.7rem; }
  
  .mockup-card { width: 260px; padding: 1rem; }
  .mockup-freelancers { width: 260px; }
  .mockup-float-badge { font-size: 0.8rem; padding: 0.5rem 1rem; right: 10px; }
  .hero-visual { min-height: 400px; }
  
  .features-grid { grid-template-columns: 1fr; }
  .why-africa-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }

/* Fix overflow issues */
html, body { max-width: 100%; overflow-x: hidden; }

.container, .nav-container, .hero-container, .process-steps, 
.economy-features, .features-grid, .why-africa-grid,
.cta-container, .footer-container, .case-study-container {
  max-width: 100%;
  overflow-x: hidden;
}

/* Scrollbar styling */
.version-cards, .african-strip__track, .trust-strip__track {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-blue) var(--bg-secondary);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .african-strip__track, .trust-strip__track {
    animation: none;
  }
  
  .case-study-card, .case-study-media img, .case-media-caption, .case-study-card::before {
    transition: none;
    animation: none;
  }
  
  .case-study-card:hover { transform: none; }
  .case-study-card:hover .case-study-media img { transform: none; }
}

/* Print styles */
@media print {
  .theme-toggle, .floating-access, .menu-toggle, .btn, .african-strip { display: none !important; }
  body { font-size: 12pt; line-height: 1.5; color: black !important; background: white !important; }
  .hero-section, .cta-section { break-inside: avoid; }
}

/* CASE STUDIES: Always single column, never squeezed side-by-side */
.case-studies-grid {
  grid-template-columns: 1fr !important;
  max-width: 800px;
  margin: 0 auto;
}

.case-study-card {
  flex-direction: column !important;
}

.case-study-media {
  max-width: 100% !important;
  order: 1 !important;
}

.case-study-content {
  order: 2 !important;
}

@media (min-width: 768px) {
  .case-study-card {
    flex-direction: row !important;
    align-items: center;
    gap: 2.5rem;
  }
  .case-study-content {
    flex: 1;
    order: 1 !important;
    min-width: 0;
  }
  .case-study-media {
    flex: 1;
    order: 2 !important;
    max-width: 50%;
    aspect-ratio: 4 / 3;
  }
  .case-study-cta .btn {
    width: auto;
    justify-content: flex-start;
  }
}

/* FORCE COLOR EMOJI FLAGS ON DESKTOP & MOBILE */
.african-strip__item .flag {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  font-size: 1.75rem;
  line-height: 1;
  display: inline-block;
  min-width: 1.75rem;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  font-variant-emoji: emoji;
}

/* SLIMMER MOBILE NAV BUTTONS */
@media (max-width: 768px) {
  .nav-actions .btn {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.6rem !important;
    white-space: nowrap;
  }
  
  .nav-actions .btn-small {
    padding: 0.3rem 0.5rem !important;
  }
  
  .nav-actions {
    gap: 0.35rem;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    margin-left: 0.25rem;
  }
  
  .menu-toggle {
    width: 36px;
    height: 36px;
    margin-left: 0.25rem;
  }
}

/* CENTER CASE STUDY SECTION HEADER TO MATCH CENTERED CARDS BELOW */
.case-study-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================================
   REAL FREELANCER DASHBOARD PREVIEW
   =========================================== */

.preview-container.real-dashboard {
    display: flex;
    min-height: 500px;
    background: var(--bg-primary);
}

/* Sidebar */
.preview-sidebar {
    width: 220px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0;
}

.sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    list-style: none;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left-color: var(--primary-blue);
}

.sidebar-item.active {
    background: var(--bg-primary);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    font-weight: 600;
}

.sidebar-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.nav-badge {
    margin-left: auto;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.theme-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.theme-row i {
    font-size: 1rem;
}

/* Main Content */
.preview-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mobile-hamburger {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-hamburger span {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

.main-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.jobs-list {
    flex: 1;
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Real Job Cards */
.real-job-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all var(--transition);
    animation: slideUp 0.4s ease;
}

.real-job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.job-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.real-match-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    flex-shrink: 0;
}

.job-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.meta-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-val {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 700;
}

.single-tag {
    color: var(--primary-blue);
    background: rgba(79, 70, 229, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.milestone-tag {
    color: var(--accent-orange);
    background: rgba(217, 119, 6, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.job-card-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.job-card-status i {
    color: var(--success-green);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.status-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success-green);
}

.status-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.job-card-actions {
    display: flex;
    gap: 0.75rem;
}

.job-card-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .preview-container.real-dashboard {
        flex-direction: column;
    }
    
    .preview-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }
    
    .mobile-hamburger {
        display: flex;
    }
    
    .jobs-list {
        padding: 1rem;
    }
    
    .job-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .real-match-badge {
        align-self: flex-start;
    }
    
    .job-card-meta {
        gap: 1rem;
    }
    
    .job-card-actions {
        flex-direction: column;
    }
    
    .job-card-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .real-job-card {
        padding: 1rem;
    }
    
    .job-card-title {
        font-size: 1rem;
    }
    
    .meta-val {
        font-size: 0.85rem;
    }
}

/* ===========================================
   CUSTOM SCROLLBAR
   =========================================== */

/* Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--neutral-400);
  border-radius: 4px;
  border: 2px solid var(--bg-secondary);
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

::-webkit-scrollbar-corner {
  background: var(--bg-secondary);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--neutral-400) var(--bg-secondary);
}

/* Dark mode thumb brightens slightly */
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--neutral-600);
  border-color: var(--bg-secondary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

[data-theme="dark"] * {
  scrollbar-color: var(--neutral-600) var(--bg-secondary);
}

/* ===========================================
   NICHE WAITLIST — CLEAN REFRESH
   =========================================== */
.niche-waitlist-section {
    padding: 4rem 1.5rem;
    background: var(--gradient-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.niche-waitlist-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    opacity: 0.04;
    border-radius: 50%;
    pointer-events: none;
}

.niche-container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.niche-content {
    text-align: center;
}

.niche-waitlist-section .section-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.niche-waitlist-section .section-title {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.niche-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.niche-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.niche-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-field {
    text-align: left;
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all var(--transition);
    height: 42px;
}

.form-field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.12);
}

.form-field select option {
    background: var(--neutral-800);
    color: white;
}

.niche-form .btn-primary {
    width: 100%;
    justify-content: center;
    background: var(--gradient-accent);
    border: none;
    padding: 0.875rem;
    font-size: 0.95rem;
}

.niche-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.25);
}

.niche-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.niche-note i {
    color: var(--success-green);
    font-size: 0.75rem;
}

.niche-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.niche-stat {
    text-align: center;
}

.niche-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-orange);
    margin-bottom: 0.15rem;
    line-height: 1;
}

.niche-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
    .niche-form-grid {
        grid-template-columns: 1fr;
    }
    .niche-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .niche-waitlist-section {
        padding: 3rem 1rem;
    }
    .niche-form {
        padding: 1.25rem;
    }
}

/* ===========================================
   WHY AFRICA — WIDER CARDS (2-UP ON DESKTOP)
   =========================================== */
.why-africa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.why-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

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

.why-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.why-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .why-africa-grid {
        grid-template-columns: 1fr;
    }
    .why-card {
        padding: 1.5rem;
    }
}

/* ===========================================
   RECENT DELIVERIES SECTION — THEME SAFE
   =========================================== */
.recent-deliveries-section {
    padding: 60px 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.recent-deliveries-container {
    max-width: 1100px;
    margin: 0 auto;
}

.recent-deliveries-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.recent-deliveries-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.recent-deliveries-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.recent-deliveries-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

.deliveries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.delivery-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 300ms;
    position: relative;
    overflow: hidden;
}

.delivery-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.delivery-card--blue:hover { border-color: var(--primary-blue); }
.delivery-card--orange:hover { border-color: var(--accent-orange); }
.delivery-card--green:hover { border-color: var(--success-green); }
.delivery-card--purple:hover { border-color: var(--purple); }

.delivery-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.delivery-client {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.delivery-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.delivery-avatar--blue { background: var(--gradient-primary); }
.delivery-avatar--orange { background: var(--gradient-accent); }
.delivery-avatar--green { background: linear-gradient(135deg, #10B981, #059669); }
.delivery-avatar--purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }

.delivery-client-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.delivery-client-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.delivery-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* NEW — use this */
.delivery-status--delivered {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success-green);
}

.delivery-status--pilot {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--primary-blue);
}

.delivery-status--dev {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
}

.delivery-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.delivery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.delivery-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.delivery-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

.delivery-tag--pilot {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--primary-blue);
}

.delivery-tag--live {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success-green);
}

.delivery-tag--dev {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
}

.delivery-link {
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.delivery-link:hover { opacity: 0.8; }
.delivery-link--blue { color: var(--primary-blue); }
.delivery-link--orange { color: var(--accent-orange); }
.delivery-link--green { color: var(--success-green); }

.delivery-private {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.delivery-private i {
    font-size: 0.65rem;
}

.delivery-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 0 0 0 60px;
    pointer-events: none;
    opacity: 0.03;
}

.delivery-glow--blue { background: var(--primary-blue); }
.delivery-glow--orange { background: var(--accent-orange); }
.delivery-glow--green { background: var(--success-green); }
.delivery-glow--purple { background: #8B5CF6; }

/* Delivery Stats Bar */
.delivery-stats-bar {
    margin-top: 2.5rem;
    padding: 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
}

.delivery-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.delivery-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.delivery-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ===========================================
   BOOKING BETA SECTION — REFACTORED, NO INLINE
   =========================================== */
.booking-beta-section {
    padding: 60px 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.booking-beta-grid {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.booking-beta-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.booking-beta-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.booking-beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.booking-beta-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.booking-beta-title span {
    color: var(--primary-blue);
}

.booking-beta-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.booking-beta-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.booking-beta-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.booking-beta-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.booking-beta-feature-icon--green {
    background: rgba(16, 185, 129, 0.2);
}

.booking-beta-feature-icon--green i {
    color: var(--success-green);
    font-size: 0.7rem;
}

.booking-beta-feature-icon--blue {
    background: rgba(79, 70, 229, 0.2);
}

.booking-beta-feature-icon--blue i {
    color: var(--primary-blue);
    font-size: 0.7rem;
}

.booking-beta-feature-icon--orange {
    background: rgba(217, 119, 6, 0.2);
}

.booking-beta-feature-icon--orange i {
    color: var(--accent-orange);
    font-size: 0.7rem;
}

.booking-beta-note {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

.booking-beta-note i {
    font-size: 0.7rem;
}

/* Booking Card Visual */
.booking-card-wrapper {
    position: relative;
}

.booking-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.booking-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.booking-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.booking-card-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.booking-card-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.booking-card-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-card-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.booking-card-step-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.booking-card-step-left i {
    color: var(--success-green);
}

.booking-card-step-left i.blue {
    color: var(--primary-blue);
}

.booking-card-step-left i.orange {
    color: var(--accent-orange);
}

.booking-card-step-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.booking-card-step-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.booking-card-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.booking-card-available {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success-green);
}

.booking-card-glow-1 {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--primary-blue);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.booking-card-glow-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: var(--accent-orange);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .booking-beta-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .booking-beta-title {
        font-size: 1.6rem;
    }
    .deliveries-grid {
        grid-template-columns: 1fr;
    }
    .delivery-stats-bar {
        gap: 1.5rem;
    }
    .delivery-stat-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .recent-deliveries-section {
        padding: 40px 1rem;
    }
    .booking-beta-section {
        padding: 40px 1rem;
    }
    .delivery-stats-bar {
        gap: 1rem;
    }
}

.delivery-avatar--pink {
    background: linear-gradient(135deg, #EC4899, #BE185D);
}

.delivery-avatar--teal {
    background: linear-gradient(135deg, #14B8A6, #0D9488);
}

.delivery-card--pink:hover { border-color: #EC4899; }
.delivery-card--teal:hover { border-color: #14B8A6; }

.delivery-glow--pink { background: #EC4899; }
.delivery-glow--teal { background: #14B8A6; }

.delivery-link--pink { color: #EC4899; }
.delivery-link--teal { color: #14B8A6; }



/* ===========================================
   HERO SECTION — REFACTORED
   =========================================== */
.hero-section {
  position: relative;
  padding: var(--space-3xl) var(--space-lg);
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-background {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: 
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.1;
}

.hero-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(40px);
  opacity: 0.3;
}

.orb-1 { width: 300px; height: 300px; background: var(--primary-blue); top: -100px; right: -100px; }
.orb-2 { width: 200px; height: 200px; background: var(--accent-orange); bottom: -50px; left: 20%; }
.orb-3 { width: 150px; height: 150px; background: var(--purple); top: 50%; right: 10%; }

.hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: center;
  z-index: 1;
}

.hero-content { padding-right: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border-color);
}

.badge-text { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); }
.badge-dot { width: 4px; height: 4px; border-radius: var(--radius-full); background: var(--accent-orange); }

.hero-title { margin-bottom: var(--space-md); }
.title-line { display: block; }
.title-line.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  max-width: 100%;
}

/* Trust badges in hero */
.hero-trust-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.trust-badge--green {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success-green);
}

.trust-badge--blue {
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--primary-blue);
}

.trust-badge--orange {
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: var(--accent-orange);
}

.trust-badge i { font-size: 0.7rem; }

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.hero-note i { color: var(--accent-orange); font-size: 1.25rem; margin-top: 0.125rem; }
.hero-note p { margin-bottom: 0; color: var(--text-secondary); font-size: 0.95rem; }

/* ===========================================
   HERO PATH CARDS — VERTICAL STACK ON RIGHT
   =========================================== */
.hero-paths {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.hero-path-card {
  display: block;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.hero-path-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  transition: width var(--transition);
}

.hero-path-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.path-post::before { background: var(--gradient-primary); }
.path-post:hover { border-color: var(--primary-blue); }
.path-post .hero-path-icon { background: var(--gradient-primary); }

.path-call::before { background: var(--gradient-accent); }
.path-call:hover { border-color: var(--accent-orange); }
.path-call .hero-path-icon { background: var(--gradient-accent); }

.path-join::before { background: var(--gradient-success); }
.path-join:hover { border-color: var(--success-green); }
.path-join .hero-path-icon { background: var(--gradient-success); }

.hero-path-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-path-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.hero-path-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.hero-path-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
}

.hero-path-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.875rem;
}

.hero-path-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-path-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.path-post .hero-path-cta { color: var(--primary-blue); }
.path-call .hero-path-cta { color: var(--accent-orange); }
.path-join .hero-path-cta { color: var(--success-green); }

.hero-path-arrow {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.hero-path-card:hover .hero-path-arrow {
  transform: translateX(4px);
  color: var(--text-primary);
}

/* ===========================================
   MATCHING DEMO SECTION (moved from hero)
   =========================================== */
.matching-demo-section {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.matching-demo-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.matching-demo-header {
  margin-bottom: var(--space-2xl);
}

.matching-demo-header .section-badge {
  display: inline-block;
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-color);
}

.matching-demo-header .section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.matching-demo-header .section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.matching-demo-visual {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* Mockup styles reused from original */
.mockup-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  width: 320px;
  transition: all var(--transition);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.mockup-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.client-avatar { background: var(--gradient-success); }

.mockup-info { flex: 1; min-width: 0; }
.mockup-title { font-weight: 700; color: var(--text-primary); font-size: 0.95rem; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mockup-name { font-weight: 700; color: var(--text-primary); font-size: 0.95rem; margin-bottom: 0.25rem; }
.mockup-meta { font-size: 0.8rem; color: var(--text-muted); }
.mockup-status { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border-color); font-size: 0.75rem; color: var(--accent-orange); font-weight: 500; }

.job-card { position: relative; z-index: 3; animation: floatCard 4s ease-in-out infinite; }

.mockup-connections {
  position: relative;
  height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conn-line {
  position: absolute;
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--border-color), var(--primary-blue), var(--border-color));
  opacity: 0.6;
}

.line-1 { transform: rotate(-25deg) translateX(-30px); animation: pulseLine 2s ease-in-out infinite; }
.line-2 { height: 70px; opacity: 1; background: var(--gradient-primary); animation: pulseLine 2s ease-in-out infinite 0.3s; }
.line-3 { transform: rotate(25deg) translateX(30px); animation: pulseLine 2s ease-in-out infinite 0.6s; }

.match-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: pulse 2s infinite;
}

.mockup-freelancers { position: relative; width: 320px; height: 180px; }
.freelancer-card { position: absolute; width: 100%; animation: stackFloat 4s ease-in-out infinite; }
.freelancer-card.card-1 { top: 0; z-index: 3; animation-delay: 0s; }
.freelancer-card.card-2 { top: 20px; z-index: 2; transform: scale(0.95); opacity: 0.9; filter: brightness(0.95); animation-delay: 0.2s; }
.freelancer-card.card-3 { top: 40px; z-index: 1; transform: scale(0.9); opacity: 0.8; filter: brightness(0.9); animation-delay: 0.4s; }

.match-score {
  background: var(--gradient-success);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.mockup-float-badge {
  position: absolute;
  bottom: 10px;
  right: 50%;
  transform: translateX(50%);
  background: var(--gradient-success);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-xl);
  animation: badgeBounce 2s infinite;
  z-index: 10;
  white-space: nowrap;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero-content { padding-right: 0; }
  .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-trust-badges { justify-content: center; }
  .hero-note { justify-content: center; }

  .hero-paths {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-path-card:hover { transform: translateY(-4px); }
  .hero-path-card::before { width: 100%; height: 3px; }

  .matching-demo-visual { min-height: 450px; }
}

@media (max-width: 768px) {
  .hero-section { padding: 6rem 1rem 3rem; }
  .hero-path-card { padding: 1rem 1.25rem; }
  .hero-path-title { font-size: 1rem; }
  .hero-path-desc { font-size: 0.8rem; }

  .matching-demo-header .section-title { font-size: 1.5rem; }
  .mockup-card { width: 280px; }
  .mockup-freelancers { width: 280px; }
  .mockup-float-badge { font-size: 0.8rem; padding: 0.5rem 1rem; }
}

@media (max-width: 480px) {
  .hero-path-card { padding: 0.875rem 1rem; }
  .hero-path-icon { width: 32px; height: 32px; font-size: 0.8rem; }
  .hero-path-tag { font-size: 0.7rem; }
  .hero-path-title { font-size: 0.95rem; }
  .hero-path-desc { font-size: 0.8rem; margin-bottom: 0.5rem; }
  .hero-path-cta { font-size: 0.75rem; }

  .mockup-card { width: 260px; padding: 1rem; }
  .mockup-freelancers { width: 260px; }
  .matching-demo-visual { min-height: 400px; }
}

/* .vetted {
  color: var(--success-green);
  font-size: 3.9rem;
} */

.hero-section{
  padding-top: 2.5rem;
}