/* OpenBotMap: shared + desktop styles. Phone/tablet rules live in mobile.css (never applied on desktop).
   Parent-brand tokens from ElseSpark, plus the product colour Map Blue. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/inter-v20-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-v20-400-latin.woff2") format("woff2"); }

:root {
  --night: #070b18;
  --night-2: #0c1224;
  --ivory: #f3efe7;
  --muted: rgba(243, 239, 231, .66);
  --faint: rgba(243, 239, 231, .42);
  --line: rgba(243, 239, 231, .12);
  --amber: #f6b267;
  --amber-soft: #ffd59a;
  --map-blue: #8cadff;
  --gutter: clamp(20px, 6vw, 96px);
  --max: 1280px;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font: 300 16px/1.6 var(--sans);
  color: var(--ivory);
  /* Plain Night: the globe canvas clears to the same colour, so it has no visible edge */
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, p, figure, ol { margin: 0; }
::selection { background: var(--map-blue); color: var(--night); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.brand svg { width: 28px; height: 28px; }
.by { font-size: 14px; color: var(--faint); transition: color .3s; }
.by b { font-weight: 500; color: var(--ivory); }

/* Hero */
.hero { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: 24px 48px; }
.status { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--faint); }
.status span { width: 7px; height: 7px; border-radius: 50%; background: var(--map-blue); box-shadow: 0 0 10px var(--map-blue); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
/* The copy column is a size container so the wordmark scales with its column, not the window:
   on very wide screens a vw-only size overflowed into the globe canvas and got covered. */
.copy { position: relative; z-index: 1; container-type: inline-size; }  /* text always paints above the globe canvas */
h1 { margin-top: 24px; font-size: min(clamp(56px, 7.4vw, 120px), 17cqi); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.tagline { margin-top: 18px; font-size: clamp(19px, 1.8vw, 24px); color: var(--map-blue); }
.body { margin-top: 28px; max-width: 32em; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-top: 36px; padding: 0; list-style: none; font: 400 12px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.flow li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.flow li + li::before { content: "↔"; margin: 0 12px; color: var(--faint); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.human { background: #fff; box-shadow: 0 0 8px #fff; }
.dot.agent { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.dot.state { background: var(--map-blue); box-shadow: 0 0 8px var(--map-blue); }
.dot.real { border: 1px solid var(--muted); }

.cta-link {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 44px; padding-bottom: 6px;
  font-size: 15px; font-weight: 400; border-bottom: 1px solid rgba(243, 239, 231, .35);
  transition: border-color .3s, gap .3s, color .3s;
}

.world { position: relative; aspect-ratio: 1; max-width: 100%; width: 100%; }
#globe { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe.is-dragging { cursor: grabbing; }
.world figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 11px/1 var(--mono); letter-spacing: .08em; color: var(--faint); }
.legend { display: flex; align-items: center; gap: 8px; }
.legend .dot.agent { margin-left: 10px; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer a { color: var(--muted); border-bottom: 1px solid var(--line); }

/* Entrance: content rises in once, quietly. It never starts invisible, so a slow device
   that stalls the animation still shows readable text. */
[data-in] { animation: rise 1.4s cubic-bezier(.16, 1, .3, 1) both; }
.copy [data-in]:nth-child(2) { animation-delay: .08s; }
.copy [data-in]:nth-child(3) { animation-delay: .16s; }
.copy [data-in]:nth-child(4) { animation-delay: .24s; }
.copy [data-in]:nth-child(5) { animation-delay: .32s; }
.copy [data-in]:nth-child(6) { animation-delay: .4s; }
.world[data-in] { animation-name: appear; animation-duration: 2s; }
@keyframes rise { from { opacity: .4; transform: translateY(18px); } }
@keyframes appear { from { opacity: .4; transform: scale(.96); } }

@media (hover: hover) {
  .by:hover { color: var(--ivory); }
  .cta-link:hover { gap: 18px; color: var(--amber-soft); border-color: var(--amber); }
  .footer a:hover { color: var(--ivory); }
}
@media (prefers-reduced-motion: reduce) {
  [data-in], .status span { animation: none; }
}

/* Cursor (fine pointers only; js/cursor.js adds html.has-cursor) */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor { position: fixed; inset: 0; z-index: 200; pointer-events: none; transition: opacity .3s; }
.cursor.is-hidden { opacity: 0; }
.cursor-ring, .cursor-dot, .cursor-label { position: fixed; top: 0; left: 0; will-change: transform; }
.cursor-ring-shape {
  position: absolute; width: 34px; height: 34px; transform: translate(-50%, -50%);
  border: 1px solid rgba(243, 239, 231, .45); border-radius: 50%;
  transition: width .45s cubic-bezier(.2, .8, .2, 1), height .45s cubic-bezier(.2, .8, .2, 1), border-color .3s, background-color .3s, scale .2s;
}
.cursor-ring-shape i { position: absolute; background: var(--map-blue); opacity: 0; transition: opacity .3s, translate .45s cubic-bezier(.2, .8, .2, 1); }
.cursor-ring-shape i:nth-child(1) { left: 50%; top: -9px; width: 1px; height: 6px; translate: 0 -6px; }
.cursor-ring-shape i:nth-child(2) { left: 50%; bottom: -9px; width: 1px; height: 6px; translate: 0 6px; }
.cursor-ring-shape i:nth-child(3) { top: 50%; left: -9px; width: 6px; height: 1px; translate: -6px 0; }
.cursor-ring-shape i:nth-child(4) { top: 50%; right: -9px; width: 6px; height: 1px; translate: 6px 0; }
/* The dot is drawn in ::before: the element itself is positioned with transform, and the CSS
   scale property would also scale that position, pulling the dot away from the pointer. */
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
.cursor-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ivory); transition: scale .3s, background-color .3s; }
.cursor-label { padding: 30px 0 0 30px; font: 400 11px/1 var(--mono); letter-spacing: .08em; white-space: pre; color: var(--map-blue); }
.cursor.is-down .cursor-ring-shape { scale: .8; }
.cursor.is-link .cursor-ring-shape { width: 64px; height: 64px; border-color: rgba(246, 178, 103, .7); background-color: rgba(246, 178, 103, .08); }
.cursor.is-link .cursor-dot::before { scale: 0; }
.cursor.is-reticle .cursor-ring-shape { width: 46px; height: 46px; border-color: rgba(140, 173, 255, .45); }
.cursor.is-reticle .cursor-ring-shape i { opacity: .9; translate: 0 0; }
.cursor.is-reticle .cursor-dot::before { scale: .6; background: var(--map-blue); }
