/* Customer globe (_includes/marketing/globe.html, assets/js/marketing-globe.js).
   Self-contained so it works on marketing pages and on the older Bootstrap pages alike.
   Industry colors follow the app dashboard palette; MSPs & IT take a sky blue so they
   read apart from Defense. The script reads these same variables for the dots. */
.globe {
  --globe-other: #475569;
  --globe-defense: #2c4bff;
  --globe-manufacturing: #16a36b;
  --globe-construction: #c98210;
  --globe-msp: #0ea5e9;
  --globe-university: #8b5cf6;
  --globe-muted: #475569;
  --globe-chip-line: rgba(15, 23, 42, .1);
  --globe-chip-bg: rgba(255, 255, 255, .8);
  display: grid;
  justify-items: center;
  text-align: center;
}
.globe--dark {
  --globe-other: #a3b1c9;
  --globe-defense: #7f95ff;
  --globe-manufacturing: #3dd68c;
  --globe-construction: #f5b54a;
  --globe-msp: #38bdf8;
  --globe-university: #b79cff;
  --globe-muted: #94a3b8;
  --globe-chip-line: rgba(255, 255, 255, .14);
  --globe-chip-bg: rgba(255, 255, 255, .05);
  color: #fff;
}

.globe-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 44px;
  margin: 0;
}
.globe-stats div { display: grid; gap: 8px; }
.globe-stats dt {
  order: 2;
  color: var(--globe-muted);
  font: 600 11px/1 ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.globe-stats dd {
  margin: 0;
  font-size: 34px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.02em;
}

.globe-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.globe-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--globe-chip-line);
  border-radius: 999px;
  background: var(--globe-chip-bg);
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.globe-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--key); }
a.globe-key:hover,
a.globe-key:focus-visible {
  border-color: var(--key);
  box-shadow: inset 0 0 0 1px var(--key);
  color: inherit;
  text-decoration: none;
}
a.globe-key:focus-visible { outline: 2px solid var(--key); outline-offset: 2px; }
.globe-key--other { border-color: transparent; background: none; }
.globe-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The canvas shows the top of the globe; the rest sits below the stage. */
.globe-stage {
  width: min(100%, 880px);
  aspect-ratio: 16 / 9;
  margin-top: 36px;
  opacity: 0;
  transition: opacity .6s ease;
}
.globe.is-ready .globe-stage { opacity: 1; }
.globe-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe-canvas.is-dragging { cursor: grabbing; }
/* Inside a section, fade the bottom edge out instead of cutting it. */
.globe--fade .globe-stage {
  -webkit-mask-image: linear-gradient(#000 58%, transparent);
  mask-image: linear-gradient(#000 58%, transparent);
}

/* Phones: the stage runs edge to edge and the script draws the globe past the sides,
   so the dots stay readable. The section around it clips the overflow. */
@media (max-width: 560px) {
  .globe-stage { width: 100vw; margin-inline: calc(50% - 50vw); }
}
@media (max-width: 700px) {
  .globe-stats { gap: 12px 28px; }
  .globe-stats dd { font-size: 28px; }
  .globe-key { min-height: 34px; font-size: 13px; }
  .globe-stage { margin-top: 28px; }
}
/* Phones: the four stats sit two by two instead of three and one. */
@media (max-width: 520px) {
  .globe-stats { display: grid; grid-template-columns: repeat(2, auto); gap: 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .globe-stage { transition: none; }
}
