:root {
  --red: #e53935;
  --red-dark: #a9252c;
  --risk-blue: #1f78d1;
  --risk-green: #2f8f5b;
  --risk-black: #171717;
  --yellow: #ffd21a;
  --black: #101010;
  --ink: #1f1c1a;
  --muted: #6f6862;
  --warm: #f8f1e8;
  --warm-strong: #efe0cf;
  --surface: #ffffff;
  --line: #e7d9cb;
  --shadow: 0 24px 70px rgba(16, 16, 16, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  background: #fffaf4;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--black);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 16, 16, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 160px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: #ffffff;
}

.nav-links .nav-login {
  min-height: 40px;
  padding: 10px 16px;
  color: var(--black);
  background: var(--yellow);
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
}

.section {
  padding: 96px 0;
}

.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section-dark {
  color: #ffffff;
  background: var(--black);
}

.section-warm {
  background: var(--warm);
}

#risk-categories {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #ffffff;
}

#risk-categories::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.94)),
    url("images/risk_cat_bg.png") center / cover no-repeat;
}

#risk-categories::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at 18% 18%, rgba(31, 120, 209, 0.1), transparent 34%);
}

.hero {
  position: relative;
  min-height: 94vh;
  padding: 170px 0 110px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.92), rgba(16, 16, 16, 0.62)),
    linear-gradient(135deg, rgba(16, 16, 16, 0.7), rgba(229, 57, 53, 0.24)),
    radial-gradient(circle at 85% 18%, rgba(255, 210, 26, 0.24), transparent 30%),
    url("images/hero_bg.png") center / cover no-repeat;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero-route {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  transform-origin: left center;
  animation: routePulse 5s ease-in-out infinite;
}

.route-one {
  top: 38%;
  left: 18%;
  width: 62%;
  transform: rotate(13deg);
}

.route-two {
  top: 65%;
  left: 28%;
  width: 42%;
  transform: rotate(-18deg);
  animation-delay: 1.4s;
}

.hero-pins span {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(229, 57, 53, 0.18);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.76);
}

.hero-lede {
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.32;
}

.hero-copy {
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button-light {
  color: var(--black);
  background: var(--yellow);
  border-color: var(--yellow);
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.button-dark {
  color: #ffffff;
  background: var(--black);
  border-color: var(--black);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.incident-metric {
  display: grid;
  max-width: 760px;
  margin: -10px 0 34px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(229, 57, 53, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 210, 26, 0.16), transparent 42%),
    #ffffff;
  box-shadow: 0 18px 42px rgba(16, 16, 16, 0.08);
}

.metric-kicker,
.metric-label,
.metric-note {
  margin: 0;
}

.metric-kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-number {
  margin: 4px 0;
  color: var(--black);
  font-size: clamp(58px, 10vw, 118px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.metric-label {
  color: var(--black);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.18;
}

.metric-note {
  max-width: 560px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.map-layout,
.split-section,
.coverage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.map-card,
.map-panel,
.insight-stack article,
.risk-card,
.feature-card,
.service-card,
.pricing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(16, 16, 16, 0.08);
}

.map-card {
  min-height: 520px;
  overflow: hidden;
}

.sample-map {
  width: 100%;
  min-height: 520px;
  height: 100%;
}

.map-panel {
  padding: 28px;
}

.preview-note {
  padding: 14px;
  color: var(--ink);
  font-size: 14px;
  background: #fff5cd;
  border-left: 4px solid var(--yellow);
}

.map-legend {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.map-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.legend-dot,
.risk-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.risk-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  box-shadow: 0 0 0 10px rgba(16, 16, 16, 0.04);
}

.terrorist {
  background: var(--red);
}

.unrest {
  background: var(--risk-blue);
}

.kidnapping {
  background: var(--risk-black);
}

.crime {
  background: var(--risk-green);
}

.sample-popup h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.sample-popup p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
}

.map-error {
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(229, 57, 53, 0.08), rgba(255, 210, 26, 0.14)),
    #fffaf2;
}

.insight-stack {
  display: grid;
  gap: 14px;
}

.insight-stack article {
  padding: 22px;
}

.insight-stack strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.insight-stack span {
  color: var(--muted);
  line-height: 1.55;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.risk-card,
.feature-card,
.service-card,
.pricing-card {
  padding: 26px;
}

.coverage-layout {
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1fr);
  align-items: center;
}

.coverage-visual {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(229, 57, 53, 0.12), rgba(255, 210, 26, 0.16)),
    #fffaf2;
  border: 1px solid var(--line);
}

.africa-coverage-image {
  width: min(86%, 380px);
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(16, 16, 16, 0.16));
}

.coverage-stat {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 150px;
  padding: 18px;
  color: #ffffff;
  background: var(--black);
  border-radius: var(--radius);
}

.coverage-stat strong {
  display: block;
  font-size: 44px;
  line-height: 1;
}

.coverage-stat span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.35;
}

.country-search {
  display: grid;
  max-width: 420px;
  gap: 8px;
  margin: 34px 0 18px;
}

.country-search label {
  color: var(--ink);
  font-weight: 900;
}

.country-search input {
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.country-grid span {
  padding: 8px 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.country-grid span[hidden] {
  display: none;
}

.why-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 900;
  background: var(--black);
  border-radius: 50%;
}

.partners {
  background: #ffffff;
}

.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
  gap: 18px;
}

.partner-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  align-content: start;
  min-height: 240px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 120, 209, 0.06), rgba(229, 57, 53, 0.06)),
    var(--surface);
  box-shadow: 0 18px 40px rgba(16, 16, 16, 0.08);
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.partner-card img {
  width: min(220px, 80%);
  height: 64px;
  object-fit: contain;
  object-position: center;
}

.packages {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 210, 26, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(229, 57, 53, 0.2), transparent 42%),
    var(--black);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 34px 32px;
  color: var(--ink);
  overflow: hidden;
  background: #fffdf9;
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
  border-color: rgba(255, 210, 26, 0.92);
  transform: translateY(-14px);
  box-shadow:
    0 30px 64px rgba(0, 0, 0, 0.28),
    0 0 0 2px rgba(255, 210, 26, 0.28);
}

.pricing-card.featured::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.pricing-card-top {
  display: flex;
  min-height: 50px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pricing-card h3 {
  margin: 0;
  color: #2b2825;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.package-label {
  display: inline-flex;
  margin: 0;
  padding: 8px 12px;
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(135deg, var(--yellow), #ffe878);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 210, 26, 0.32);
}

.price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  margin: 28px 0 26px;
  padding: 0;
  color: #0a0a0a;
  font-weight: 900;
  line-height: 1.1;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.price-currency {
  color: #4a423c;
  font-size: 18px;
  font-weight: 900;
}

.price-amount {
  color: #050505;
  font-size: clamp(48px, 5vw, 66px);
  letter-spacing: 0;
}

.price-period {
  color: #514b45;
  font-size: 20px;
  font-weight: 900;
}

.pricing-card ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0 0 34px;
  list-style: none;
}

.pricing-card li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #4f4943;
  font-weight: 750;
  line-height: 1.45;
}

.pricing-card li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin: 0;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.pricing-card.featured li::before {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 210, 26, 0.22);
}

.pricing-card .button {
  width: 100%;
  margin-top: auto;
}

.pricing-card.featured .button {
  color: var(--black);
  background: var(--yellow);
  border-color: var(--yellow);
}

.pricing-card.featured .button:hover,
.pricing-card.featured .button:focus {
  background: #ffe878;
  border-color: #ffe878;
}

.site-footer {
  padding: 54px 0;
  color: rgba(255, 255, 255, 0.76);
  background: #0b0b0b;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 28px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand img {
  width: 180px;
  height: auto;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer a {
  display: block;
  width: max-content;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--yellow);
}

.copyright {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes routePulse {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
  }

  .nav-toggle span:not(.sr-only) {
    width: 19px;
    height: 2px;
    background: #ffffff;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(16, 16, 16, 0.98);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
  }

  .map-layout,
  .split-section,
  .coverage-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .service-list,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 88vh;
    padding: 136px 0 80px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .card-grid,
  .service-list,
  .pricing-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .map-card,
  .sample-map {
    min-height: 420px;
  }

  .coverage-visual {
    min-height: 360px;
  }
}
