:root {
  --ink: #0e0e0e;
  --paper: #f5f0e8;
  --warm-white: #faf8f3;
  --ochre: #c8873a;
  --ochre-light: #e8a95a;
  --terra: #8b3a2a;
  --sage: #4a6741;
  --gold: #d4a843;
  --gold-dim: rgba(212, 168, 67, 0.15);
  --muted: #6b6560;
  --border: rgba(14, 14, 14, 0.1);
  --border-warm: rgba(200, 135, 58, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-mark::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ochre);
  border-radius: 50%;
}

.logo-mark::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.logo-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost {
  padding: 9px 22px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--warm-white);
}

.btn-primary {
  padding: 9px 22px;
  border: none;
  border-radius: 2px;
  background: var(--ochre);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--terra);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(
      ellipse 60% 50% at 70% 60%,
      rgba(200, 135, 58, 0.06) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 60% at 20% 30%,
      rgba(74, 103, 65, 0.04) 0%,
      transparent 60%
    );
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero-left {
  padding: 80px 60px 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--ochre);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-title em {
  font-style: italic;
  color: var(--ochre);
}

.hero-title .line-accent {
  display: block;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-top: 8px;
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-large {
  padding: 14px 32px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.25s;
}
.btn-large.filled {
  background: var(--ink);
  color: var(--warm-white);
  border: 1.5px solid var(--ink);
}
.btn-large.filled:hover {
  background: var(--ochre);
  border-color: var(--ochre);
}
.btn-large.outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-large.outline:hover {
  background: var(--ink);
  color: var(--warm-white);
}

.hero-stats {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 40px;
  animation: fadeUp 0.8s 0.4s ease both;
}

.stat-item {
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.stat-num span {
  color: var(--ochre);
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* Hero right — visual */
.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  animation: fadeIn 1.2s 0.3s ease both;
}

.africa-map-container {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.map-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 168, 67, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.map-svg-wrapper {
  position: relative;
  z-index: 1;
  opacity: 0.92;
}

.map-svg-wrapper svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(139, 58, 42, 0.15));
}

.floating-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  animation: float 4s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 10%;
  left: -8%;
  animation-delay: 0s;
}
.floating-card.card-2 {
  bottom: 20%;
  right: -5%;
  animation-delay: 2s;
}

.card-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.card-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}
.card-desc {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

/* ── SEARCH BAR ── */
.search-section {
  background: var(--ink);
  padding: 50px 60px;
  position: relative;
  overflow: hidden;
}

.search-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.01) 10px,
    rgba(255, 255, 255, 0.01) 11px
  );
}

.search-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.search-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: white;
  white-space: nowrap;
  font-style: italic;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  padding: 4px 4px 4px 20px;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  padding: 10px 0;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.search-submit {
  background: var(--ochre);
  color: white;
  border: none;
  padding: 12px 28px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  border-radius: 1px;
  transition: background 0.2s;
}
.search-submit:hover {
  background: var(--ochre-light);
}

.search-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 16px auto 0;
}

.search-tag-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
}
.tag:hover {
  border-color: var(--ochre);
  color: var(--ochre-light);
}

/* ── FEATURES ── */
.section {
  padding: 100px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  color: var(--ochre);
}

.section-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
.section-link:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-card {
  background: var(--warm-white);
  padding: 40px 36px;
  transition: background 0.25s;
  cursor: default;
}
.feature-card:hover {
  background: var(--paper);
}

.feature-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 24px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  font-size: 1.1rem;
  background: var(--gold-dim);
  transition: all 0.25s;
}
.feature-card:hover .feature-icon {
  background: var(--ochre);
  filter: saturate(1.2);
}

.feature-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.2;
}

.feature-desc {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ── WORKFLOW ── */
.workflow-section {
  background: var(--ink);
  padding: 100px 60px;
  position: relative;
  overflow: hidden;
}

.workflow-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 135, 58, 0.06) 0%,
    transparent 60%
  );
}

.workflow-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.workflow-header {
  margin-bottom: 64px;
}
.workflow-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 12px;
}
.workflow-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: white;
  line-height: 1.15;
}
.workflow-title em {
  font-style: italic;
  color: var(--ochre);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.workflow-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ochre),
    var(--ochre),
    transparent
  );
  opacity: 0.3;
}

.workflow-step {
  padding: 0 24px 0 0;
}

.step-num {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(200, 135, 58, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--ochre);
  margin-bottom: 28px;
  background: rgba(200, 135, 58, 0.05);
}

.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}

/* ── USE CASES ── */
.usecases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.usecase-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  cursor: default;
}
.usecase-card:hover {
  border-color: var(--border-warm);
  background: var(--paper);
}

.usecase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.usecase-card:hover::before {
  transform: scaleX(1);
}

.usecase-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
}

.usecase-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.2;
}

.usecase-desc {
  font-size: 0.84rem;
  line-height: 1.72;
  color: var(--muted);
}

.usecase-tag {
  display: inline-block;
  margin-top: 20px;
  padding: 4px 12px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--ochre);
  letter-spacing: 0.05em;
}

/* ── INSTITUTIONS ── */
.institutions-section {
  background: var(--paper);
  padding: 80px 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.institutions-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.inst-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.inst-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--muted);
}

.inst-divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.inst-logos {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.inst-logo-placeholder {
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  background: white;
  transition: all 0.2s;
}
.inst-logo-placeholder:hover {
  border-color: var(--ochre);
  color: var(--ink);
}

/* ── STANDARDS ── */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.std-card {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.25s;
  cursor: default;
}
.std-card:hover {
  border-color: var(--ochre);
  background: var(--gold-dim);
}
.std-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 4px;
}
.std-region {
  font-size: 0.67rem;
  color: var(--muted);
}

/* ── CTA ── */
.cta-section {
  background: var(--ink);
  padding: 120px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 50% 60% at 50% 50%,
      rgba(200, 135, 58, 0.08) 0%,
      transparent 60%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.02) 79px,
      rgba(255, 255, 255, 0.02) 80px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.02) 79px,
      rgba(255, 255, 255, 0.02) 80px
    );
}

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

.cta-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 24px;
}

.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
}
.cta-title em {
  font-style: italic;
  color: var(--gold);
}

.cta-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  background: #080808;
  padding: 64px 60px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 32px;
}

.footer-brand {
}
.footer-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.35);
  max-width: 280px;
}
.footer-contact {
  margin-top: 28px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}
.footer-contact a {
  color: var(--ochre);
  text-decoration: none;
}

.footer-col-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 16px 24px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-right {
    display: none;
  }
  .hero-left,
  .section {
    padding: 60px 24px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .workflow-steps {
    grid-template-columns: 1fr 1fr;
  }
  .usecases-grid {
    grid-template-columns: 1fr;
  }
  .standards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .search-section {
    padding: 40px 24px;
  }
  .search-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .workflow-section {
    padding: 80px 24px;
  }
  .institutions-section {
    padding: 60px 24px;
  }
  .cta-section {
    padding: 80px 24px;
  }
  footer {
    padding: 48px 24px 24px;
  }
}
