@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   Design Tokens & Variables
   ========================================================================== */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette */
  --color-primary: #cc5600;
  --color-primary-hover: #b34a00;
  --color-primary-rgb: 204, 86, 0;
  --color-primary-light: #ffefe5;
  --color-accent: #fbf6f0;
  --color-accent-hover: #f5eae0;
  
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-surface-hover: #fcfcfd;
  
  --color-text-dark: #0f0f11;
  --color-text-muted: #5e5e6e;
  --color-text-light: #ffffff;
  
  --color-border: rgba(15, 15, 17, 0.08);
  --color-border-hover: rgba(15, 15, 17, 0.15);
  --color-border-dark: rgba(255, 255, 255, 0.12);
  
  /* Theme-specific custom variables */
  --color-header-bg: rgba(250, 250, 250, 0.8);
  --color-header-bg-scrolled: rgba(255, 255, 255, 0.9);
  --color-map-land: #f1f3f6;
  --color-map-border: #dcdfe6;
  --color-map-node: #ccd0da;
  --color-toast-bg: rgba(255, 255, 255, 0.95);
  --color-flow-line: rgba(15, 15, 17, 0.06);
  --color-hero-glow: radial-gradient(circle at 80% 20%, rgba(255, 239, 229, 0.6) 0%, rgba(250, 250, 250, 0) 50%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 15, 17, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 15, 17, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 15, 17, 0.08);
  --shadow-primary: 0 8px 24px rgba(204, 86, 0, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout */
  --container-max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* Automatic Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0a0a0c;
    --color-surface: #121318;
    --color-surface-hover: #181a20;
    
    --color-text-dark: #f3f4f6;
    --color-text-muted: #9ca3af;
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    
    --color-accent: #16171d;
    --color-accent-hover: #1e2029;
    
    --color-primary-light: rgba(204, 86, 0, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    
    --color-header-bg: rgba(10, 10, 12, 0.8);
    --color-header-bg-scrolled: rgba(18, 19, 24, 0.9);
    
    --color-map-land: #1a1b22;
    --color-map-border: #2d2f39;
    --color-map-node: #454854;
    --color-toast-bg: rgba(18, 19, 24, 0.95);
    --color-flow-line: rgba(255, 255, 255, 0.08);
    --color-hero-glow: radial-gradient(circle at 80% 20%, rgba(204, 86, 0, 0.15) 0%, rgba(10, 10, 12, 0) 60%);
  }
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea {
  font-family: inherit;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

.bg-accent { background-color: var(--color-accent); }
.bg-surface { background-color: var(--color-surface); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-medium);
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(204, 86, 0, 0.3);
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text-dark);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-border-hover);
  background-color: var(--color-bg);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

/* Section Header styling */
.section-header {
  max-width: 680px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 32px;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

header.scrolled {
  background-color: var(--color-header-bg-scrolled);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height var(--transition-fast);
}

header.scrolled .nav-container {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-dark);
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-text {
  letter-spacing: -0.03em;
}

.logo-dot {
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-dark);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px 40px;
    gap: 24px;
    transition: right var(--transition-medium);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-cta {
    display: none; /* In mobile menu, we can integrate it inside the list */
  }
  
  .nav-menu .mobile-cta {
    display: block;
    width: 100%;
    margin-top: 20px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 180px;
  padding-bottom: 100px;
  overflow: hidden;
  position: relative;
  background: var(--color-hero-glow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge-tag {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--color-text-dark);
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-primary) 30%, #ff8c3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-partners-strip {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.hero-partners-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.hero-partners-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0.7;
}

.partner-logo-item {
  height: 28px;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--color-text-dark);
}

.partner-logo-item span {
  color: var(--color-primary);
}

/* Hero Interactive Visualizer */
.hero-visualizer {
  position: relative;
  width: 100%;
  height: 480px;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.visualizer-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Background grid for technology product feel */
.visualizer-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(var(--color-border) 1px, transparent 1px),
    radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  opacity: 0.6;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-partners-logos {
    justify-content: center;
  }
  .hero-title {
    font-size: 44px;
  }
}

/* ==========================================================================
   Comment une livraison circule (Timeline Section)
   ========================================================================== */
.timeline-section {
  padding: 100px 0;
  background-color: var(--color-accent);
  position: relative;
  overflow: hidden;
}

.timeline-flow {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: rgba(204, 86, 0, 0.1);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-progress-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-hover));
  transform: translateX(-50%);
  z-index: 2;
  height: 0%;
  transition: height 0.1s linear;
}

.timeline-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  position: relative;
  z-index: 3;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

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

.timeline-step-icon-wrapper {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background-color: var(--color-surface);
  border: 4px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 4;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.timeline-step-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text-muted);
  stroke-width: 2;
  fill: none;
  transition: stroke var(--transition-fast), transform var(--transition-fast);
}

.timeline-step.active .timeline-step-icon-wrapper {
  background-color: var(--color-primary);
  border-color: var(--color-primary-light);
}

.timeline-step.active .timeline-step-icon-wrapper svg {
  stroke: var(--color-text-light);
  transform: scale(1.1);
}

.timeline-step-number {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.timeline-step-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.timeline-step-desc {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* Grid alignment toggle for left-right flow */
.timeline-step:nth-child(even) .timeline-step-card {
  grid-column: 2;
}
.timeline-step:nth-child(odd) .timeline-step-card {
  grid-column: 1;
}

@media (max-width: 768px) {
  .timeline-flow {
    margin-left: 20px;
  }
  .timeline-line, .timeline-progress-line {
    left: 20px;
    transform: none;
  }
  .timeline-step {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-left: 40px;
    margin-bottom: 50px;
  }
  .timeline-step:nth-child(even) .timeline-step-card,
  .timeline-step:nth-child(odd) .timeline-step-card {
    grid-column: 1;
  }
  .timeline-step-icon-wrapper {
    left: -20px;
    transform: translate(-50%, -20%);
    width: 48px;
    height: 48px;
    top: 24px;
  }
}

/* ==========================================================================
   Pourquoi les livreurs choisissent Naɓanam (Bento Grid)
   ========================================================================== */
.bento-section {
  padding: 100px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 24px;
}

.bento-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

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

.bento-card-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 480px;
  justify-content: space-between;
}

.bento-card-medium {
  grid-row: span 2;
  min-height: 480px;
  justify-content: space-between;
}

.bento-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.bento-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
}

.bento-card-title {
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.bento-card-desc {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* Embedded illustrations inside bento boxes */
.bento-illustration {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  background-color: var(--color-accent);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: 24px;
}

/* Bento Aggregation List simulation */
.bento-list-simulation {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.simulation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUpRow 6s infinite;
}

.simulation-row:nth-child(1) { animation-delay: 0s; }
.simulation-row:nth-child(2) { animation-delay: 1.5s; }
.simulation-row:nth-child(3) { animation-delay: 3s; }

.sim-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.sim-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.sim-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-dark);
}

.sim-time {
  color: var(--color-text-muted);
  font-size: 11px;
}

@keyframes slideUpRow {
  0% { transform: translateY(30px); opacity: 0; }
  10%, 90% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-30px); opacity: 0; }
}

@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-card-large, .bento-card-medium {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ==========================================================================
   Interactive Dakar Map Section
   ========================================================================== */
.map-section {
  padding: 100px 0;
  background-color: var(--color-accent);
}

.map-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.map-content {
  max-width: 500px;
}

.map-visualizer {
  position: relative;
  width: 100%;
  height: 520px;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Map notifications popups overlay */
.map-notifications {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 260px;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-toast {
  background-color: var(--color-toast-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  transform: translateX(-150%);
  opacity: 0;
  transition: all var(--transition-medium);
}

.map-toast.active {
  transform: translateX(0);
  opacity: 1;
}

.map-toast-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
}

.map-toast-body {
  color: var(--color-text-muted);
}

@media (max-width: 992px) {
  .map-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .map-content {
    text-align: center;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Pour les entreprises (API Section)
   ========================================================================== */
.api-section {
  padding: 100px 0;
}

.api-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.api-features-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
}

.api-feature-icon {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  fill: none;
  margin-top: 2px;
}

/* Code Editor Window */
.code-window {
  background-color: #0d0e12;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-dark);
  overflow: hidden;
}

.code-header {
  background-color: #16171d;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dots {
  display: flex;
  gap: 8px;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.code-title {
  color: #8f929d;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
}

.code-tabs {
  display: flex;
  background-color: #121319;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-tab {
  background: transparent;
  border: none;
  color: #8f929d;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.code-tab:hover {
  color: var(--color-text-light);
  background-color: rgba(255, 255, 255, 0.02);
}

.code-tab.active {
  color: var(--color-text-light);
  background-color: #0d0e12;
  border-bottom: 2px solid var(--color-primary);
}

.code-content {
  padding: 24px;
  overflow-x: auto;
}

.code-block {
  font-family: 'SFMono-Regular', Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
  display: none;
}

.code-block.active {
  display: block;
}

/* Code Syntax Coloring */
.code-keyword { color: #f43f5e; } /* red */
.code-string { color: #10b981; }  /* green */
.code-key { color: #38bdf8; }     /* blue */
.code-number { color: #f59e0b; }  /* amber */
.code-comment { color: #64748b; font-style: italic; }

@media (max-width: 992px) {
  .api-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .api-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  .api-features-list {
    align-items: flex-start;
    text-align: left;
  }
}

/* ==========================================================================
   Statistiques Section
   ========================================================================== */
.stats-section {
  padding: 80px 0;
  background-color: var(--color-text-dark);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-primary) 30%, #ff8c3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 15px;
  color: #a3a3a3;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .stat-number {
    font-size: 40px;
  }
}

/* ==========================================================================
   Call To Action (CTA) Section
   ========================================================================== */
.cta-section {
  padding: 100px 0;
}

.cta-box {
  background: linear-gradient(135deg, #16171d 0%, #0d0e12 100%);
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border-dark);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(204, 86, 0, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-tag {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  display: inline-block;
}

.cta-title {
  color: var(--color-text-light);
  font-size: 44px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  color: #a3a3a3;
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-size: 18px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-surface);
  color: var(--color-text-dark);
  border: 1px solid var(--color-border);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  gap: 12px;
  text-align: left;
  transition: all var(--transition-medium);
}

.app-store-btn:hover {
  background-color: var(--color-bg);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.app-store-icon {
  width: 28px;
  height: 28px;
}

.app-store-btn-text span {
  display: block;
}

.app-store-btn-text span:first-child {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.app-store-btn-text span:last-child {
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .cta-box {
    padding: 60px 24px;
  }
  .cta-title {
    font-size: 32px;
  }
  .cta-subtitle {
    font-size: 16px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 80px 0 40px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-logo {
  margin-bottom: 20px;
}

.footer-brand-desc {
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-text-muted);
  stroke-width: 2;
  fill: none;
}

.social-link:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.social-link:hover svg {
  stroke: var(--color-text-light);
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-dark);
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
