/* ============================================================
   CIEL AFRICA — Design System
   "Ciel" (sky): altitude, clear air, engineered calm.
   ============================================================ */

/* ---- Fonts (self-hostable later; CDN for now) ---- */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&f[]=cabinet-grotesk@700,800,900&display=swap');

:root {
  /* Palette — atmospheric depth */
  --midnight:      #0A0E1A;
  --slate-deep:    #0F1626;
  --slate:         #161F33;
  --slate-line:    #24304B;
  --ink:           #0A0E1A;

  --white-soft:    #F7F8FA;
  --white-warm:    #ECEEF3;
  --grey-300:      #C3CAD6;
  --grey-400:      #9AA4B6;
  --grey-500:      #6B7688;
  --grey-600:      #454F63;

  /* Accents — the horizon line */
  --blue:          #3D7EFF;
  --blue-bright:   #5B93FF;
  --cyan:          #5EEAD4;
  --cyan-dim:      #34B8A6;

  /* Semantic */
  --bg:            var(--midnight);
  --bg-raised:     var(--slate-deep);
  --bg-card:       #101728;
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.13);
  --text:          var(--white-soft);
  --text-dim:      var(--grey-400);
  --text-faint:    var(--grey-500);

  /* Type */
  --font-display: 'Cabinet Grotesk', 'General Sans', system-ui, sans-serif;
  --font-body:    'General Sans', system-ui, -apple-system, sans-serif;

  /* Scale (major third-ish, tuned) */
  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0:  clamp(0.95rem, 0.90rem + 0.25vw, 1.05rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4:  clamp(2.5rem, 1.9rem + 3vw, 4.25rem);
  --step-5:  clamp(3.2rem, 2.2rem + 5vw, 6rem);

  /* Space */
  --sp-1: 0.5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;
  --sp-4: 2rem;    --sp-5: 3rem;   --sp-6: 4rem;
  --sp-7: 6rem;    --sp-8: 8rem;

  --radius-s: 8px;
  --radius:   14px;
  --radius-l: 22px;
  --maxw: 1240px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmospheric base gradient — subtle sky at the top */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 50% -300px, rgba(61,126,255,0.14), transparent 70%),
    radial-gradient(900px 500px at 85% -200px, rgba(94,234,212,0.06), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; }
h4 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }

p { color: var(--text-dim); max-width: 62ch; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
strong { color: var(--text); font-weight: 600; }

/* ---- Layout primitives ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.section { position: relative; z-index: 1; padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--step--1); font-weight: 500; color: var(--cyan);
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--cyan-dim);
}

.lead { font-size: var(--step-1); color: var(--grey-300); max-width: 54ch; line-height: 1.5; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin: 0.9rem 0 1rem; }

/* ---- Buttons ---- */
.btn {
  --_bg: var(--blue);
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  padding: 0.85rem 1.5rem; border-radius: 100px; border: 1px solid transparent;
  background: var(--_bg); color: #fff; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--blue-bright); box-shadow: 0 10px 40px -12px rgba(61,126,255,0.6); }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--grey-500); box-shadow: none; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--step-1); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--step--1); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}

.arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--text); font-weight: 500; border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.link-arrow:hover { color: var(--blue-bright); }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--sp-4);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border-strong); }

/* ---- Utility ---- */
.grid { display: grid; gap: var(--sp-3); }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-faint); }
.center { text-align: center; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* thin horizon rule used as a motif */
.horizon {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--blue) 30%, var(--cyan) 60%, transparent);
  opacity: 0.5;
}

/* Reveal animation base */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
