:root {
  --bg: #04060a;
  --cyan: #38e1ff;
  --ink: #e8f4fb;
  --muted: #7d94a8;
  --edge: rgba(56, 225, 255, 0.18);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Canvas fills the viewport; everything else floats on top. */
#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Subtle vignette so the map fades into the edges. */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 38%, rgba(2, 4, 8, 0.55) 78%, #02040a 100%);
  z-index: 1;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  padding: clamp(20px, 4vw, 48px);
}

.overlay > * { pointer-events: auto; }

/* ---- top bar / wordmark ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 30px; width: auto; display: block; }
.brand .wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand .dot {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(56, 225, 255, 0.8);
}

/* ---- centre hero ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(56, 225, 255, 0.06);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(34px, 6.4vw, 78px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 16ch;
  overflow-wrap: break-word;
  background: linear-gradient(180deg, #ffffff 0%, #b9d8e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(56, 225, 255, 0.12);
}
.hero h1 .accent {
  background: linear-gradient(180deg, #7fe9ff 0%, #1aa9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 52ch;
  font-size: clamp(15px, 1.9vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: break-word;
}

/* ---- footer / locations ticker ---- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.locations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  max-width: 70%;
}
.locations span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.04em;
}
.locations span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  opacity: 0.85;
}
.copyright { white-space: nowrap; opacity: 0.7; }

@media (max-width: 640px) {
  .locations { display: none; }
  .footer { justify-content: center; }

  .overlay { padding: 22px 18px 26px; }

  /* Map sits in the upper third (positioned by main.js); keep the text
     block anchored to the bottom so the two never overlap. */
  .hero {
    justify-content: flex-end;
    gap: 13px;
    padding-bottom: max(4vh, 12px);
  }
  .hero h1 {
    font-size: clamp(27px, 8.2vw, 40px);
    line-height: 1.08;
    max-width: 100%;
  }
  .hero p {
    font-size: 14.5px;
    line-height: 1.55;
    max-width: 100%;
  }
  .badge {
    font-size: 11px;
    padding: 6px 13px;
    letter-spacing: 0.14em;
  }
  .brand img { height: 26px; }
  .brand .wordmark { font-size: 19px; }
}
