/* ===== GeoHub — design tokens ===== */
:root {
  --bg: #070b14;
  --bg-soft: #0d1424;
  --ink: #e8eef7;
  --ink-dim: #9aabc4;
  --accent: #36e0c0;     /* geocode teal */
  --accent-2: #6f8cff;   /* route blue */
  --accent-3: #ff8a5c;   /* cluster orange */
  --line: rgba(255,255,255,0.08);
  --panel: rgba(10,16,28,0.72);
  --radius: 16px;
  --maxw: 1180px;
  font-synthesis: none;
}

/* ===== Bright / light theme (opt-in via body.light) ===== */
body.light {
  --bg: #eef3f9;
  --bg-soft: #ffffff;
  --ink: #0f1d31;
  --ink-dim: #4d617e;
  --accent: #0fb89a;     /* deeper teal for contrast on light */
  --accent-2: #3a5bdb;
  --accent-3: #e8722f;
  --line: rgba(15, 29, 49, 0.10);
  --panel: rgba(255, 255, 255, 0.82);
}
body.light #map-wrap::after {
  background:
    radial-gradient(120% 80% at 75% 30%, transparent 45%, rgba(238,243,249,0.65) 100%),
    linear-gradient(90deg, rgba(238,243,249,0.94) 0%, rgba(238,243,249,0.55) 40%, rgba(238,243,249,0) 62%);
}
body.light #nav {
  background: linear-gradient(180deg, rgba(238,243,249,0.92), rgba(238,243,249,0));
}
body.light .cta { color: #fff; }
body.light .btn.solid { color: #fff; }
body.light .panel { box-shadow: 0 24px 60px -30px rgba(20,40,80,0.35); }
body.light footer { background: var(--bg); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }

/* ===== Fixed map background ===== */
#map-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  transition: opacity 1.1s ease;
}

/* ===== Digital-twin (Cesium) final slide — cross-fades over the flat map ===== */
#twin-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
}
#twin-wrap.active { opacity: 1; pointer-events: auto; }
#cesiumContainer { position: absolute; inset: 0; }
#twin-wrap .cesium-viewer-bottom,
#twin-wrap .cesium-widget-credits,
#twin-wrap .cesium-viewer-animationContainer,
#twin-wrap .cesium-viewer-timelineContainer { display: none !important; }
/* when the twin is active, fade the flat map out underneath it */
body.twin-on #map-wrap { opacity: 0; }
/* let pointer events reach the globe on the final section (panel stays clickable) */
#twin.section { pointer-events: none; }
#twin .panel { pointer-events: auto; }
#map { position: absolute; inset: 0; }
/* dark vignette so text stays legible over the map */
#map-wrap::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 75% 30%, transparent 40%, rgba(7,11,20,0.78) 100%),
    linear-gradient(90deg, rgba(7,11,20,0.92) 0%, rgba(7,11,20,0.55) 38%, rgba(7,11,20,0) 60%);
}

/* phase indicator chip on the map */
#phase-chip {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 3;
  display: flex; gap: 8px; align-items: center;
  padding: 9px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--ink-dim);
}
#phase-chip b { color: var(--ink); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* ===== Foreground content scrolls over the map ===== */
#content { position: relative; z-index: 2; }
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 14vh 6vw;
}
.panel {
  max-width: 520px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 34px 30px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.8);
}

/* nav */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6vw;
  background: linear-gradient(180deg, rgba(7,11,20,0.85), rgba(7,11,20,0));
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; }
.brand .glyph {
  width: 26px; height: 26px; border-radius: 7px;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 0 18px rgba(54,224,192,0.5);
}
#nav nav { display: flex; gap: 26px; font-size: 14px; color: var(--ink-dim); }
#nav nav a { text-decoration: none; transition: color .2s; }
#nav nav a:hover { color: var(--ink); }
.cta {
  text-decoration: none;
  padding: 9px 16px; border-radius: 10px;
  background: var(--accent); color: #042; font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 24px -8px rgba(54,224,192,0.6);
  transition: transform .15s;
}
.cta:hover { transform: translateY(-1px); }

/* typography */
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 12px; font-weight: 600; color: var(--accent);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04; margin: 0 0 18px; font-weight: 800;
  letter-spacing: -0.02em;
}
h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 14px; letter-spacing: -0.01em; }
.lead { font-size: 17px; color: var(--ink-dim); margin: 0 0 22px; }
p { color: var(--ink-dim); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  text-decoration: none; padding: 12px 20px; border-radius: 11px; font-weight: 600; font-size: 15px;
}
.btn.solid { background: var(--accent); color: #042; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }

.stats { display: flex; gap: 28px; margin-top: 26px; }
.stat .n { font-size: 26px; font-weight: 800; color: var(--ink); }
.stat .l { font-size: 12.5px; color: var(--ink-dim); }

.tag {
  display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-dim); margin-bottom: 16px;
}
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-list li { padding: 9px 0 9px 26px; position: relative; color: var(--ink); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}

/* pricing */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: var(--maxw); width: 100%; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; backdrop-filter: blur(14px);
}
.card.featured { border-color: rgba(54,224,192,0.5); box-shadow: 0 0 0 1px rgba(54,224,192,0.25) inset; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card .price { font-size: 30px; font-weight: 800; margin: 6px 0 4px; }
.card .price span { font-size: 14px; font-weight: 500; color: var(--ink-dim); }
.card ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; }
.card ul li { padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink-dim); }

footer {
  position: relative; z-index: 2;
  padding: 40px 6vw; border-top: 1px solid var(--line);
  background: var(--bg);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: var(--ink-dim); font-size: 14px;
}

@media (max-width: 820px) {
  #map-wrap::after { background: linear-gradient(180deg, rgba(7,11,20,0.55), rgba(7,11,20,0.9)); }
  .cards { grid-template-columns: 1fr; }
  #nav nav { display: none; }
}
