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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --pink: #d4577a;
  --fuchsia: #ff3388;
  --pink-soft: rgba(212, 87, 122, 0.35);
  --bg: #0b1221;
  --panel-bg: linear-gradient(165deg,
    rgba(75, 40, 60, 0.14) 0%,
    rgba(40, 28, 48, 0.18) 35%,
    rgba(16, 14, 28, 0.35) 100%
  );
}

body {
  background: var(--bg);
  overflow: hidden;
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  color: #ffffff;
  min-height: 100dvh;
}

/* === Loader === */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(212, 87, 122, 0.15);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Page Layout — 50/50 === */
.page-layout {
  display: flex;
  height: 100dvh;
  width: 100vw;
}

/* === Content Panel (left 50%) === */
.content-panel {
  width: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--panel-bg);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.content-panel::-webkit-scrollbar { display: none; }

.content-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 68px 60px 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Eyebrow — "GLOBAL REACH" in bright fuchsia */
.eyebrow {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--fuchsia);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: block;
}

/* Hero heading — THE WORLD STAGE. */
.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}
.heading-line {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: clamp(3.2rem, 5.5vw, 6rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Tagline */
.hero-tagline {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  opacity: 0.7;
  margin-bottom: 12px;
}

/* Body copy */
.hero-body {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
  opacity: 0.55;
  max-width: 480px;
  margin-bottom: 24px;
}
.hero-body strong {
  font-weight: 500;
  opacity: 1;
  color: rgba(255, 255, 255, 0.85);
}

/* Divider */
.section-divider {
  width: 48px;
  height: 2px;
  background: var(--pink);
  margin-bottom: 14px;
}

/* Markets label */
.markets-label {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--fuchsia);
  opacity: 1;
  margin-bottom: 20px;
}

/* City grid — 2 columns */
.city-grid {
  display: flex;
  gap: 40px;
}
.city-col {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.city-col li {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  padding: 6px 0;
  opacity: 0.75;
  position: relative;
  padding-left: 18px;
  transition: opacity 0.2s ease;
}
.city-col li:hover {
  opacity: 1;
}
/* Pink dot bullet */
.city-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.6;
}

/* === Globe Area (right 50%) === */
.globe-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

/* Background Atmospheric Glow — pink→purple→navy */
.globe-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(212, 87, 122, 0.15) 0%,
    rgba(185, 65, 105, 0.08) 15%,
    rgba(150, 50, 90, 0.02) 30%,
    rgba(110, 38, 75, 0.004) 45%,
    transparent 60%
  );
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

/* Canvas */
#globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: grab;
}
#globe-canvas:active { cursor: grabbing; }

/* Globe stats footer */
.globe-stats {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.25;
  pointer-events: none;
}

/* === City Labels (CSS2D overlay) === */
.label-renderer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.city-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.6);
  transform: translate(8px, -16px);
  transition: opacity 0.25s ease;
}

/* === Mobile Layout === */
@media (max-width: 900px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .page-layout {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
  }

  .content-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .content-inner {
    padding: 56px 28px 32px;
    max-width: unset;
    margin: 0;
    justify-content: flex-start;
  }

  .heading-line {
    font-size: clamp(3.2rem, 12vw, 4.5rem);
  }

  .hero-body {
    max-width: unset;
  }

  .city-grid {
    gap: 24px;
  }

  .globe-area {
    flex: none;
    height: 55vh;
    min-height: 380px;
  }

  .globe-bg-glow {
    width: 90%;
    height: 90%;
  }

  .city-label {
    font-size: 8px;
  }

  .globe-stats {
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .content-inner {
    padding: 28px 20px 24px;
  }
  .heading-line {
    font-size: 2.2rem;
  }
  .city-col li {
    font-size: 0.7rem;
  }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  .loader-ring { animation: none; }
  #loader { transition: none; }
}
