/* Hero and footer shared by the homepage and the ad landing page (both have <body class="globe-hero">),
   loaded after styles.css. The cursor globe itself is drawn by hero-globe.js. */

/* ── HERO — the footer's look: dark plum glowing to pink at the bottom, grain, and the cursor globe ── */
.globe-hero .hero-bg { background: var(--plum); }
.globe-hero .hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(70,29,120,0) 45%, #5E3283 68%, #8C639E 86%, #C79EBC 100%);
}
.globe-hero .hero-bg::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); mix-blend-mode: overlay; opacity: .25; }
.globe-hero .hero .frame { position: relative; z-index: 1; }
.globe-hero .hero-copy .eyebrow { color: rgba(255,255,255,.7); }
.globe-hero .hero-copy h1 { color: #fff; }
.globe-hero .hero-side .lede { color: rgba(255,255,255,.8); }
.globe-hero .hero-ctas .btn { margin-top: 0; }

/* Desktop hero height: the copy ends ~480px down, so 620px leaves a short band under the buttons (no empty
   lower half) and the globe still fills the right side. --after-hero is the space between the hero and the
   problems card: white space here, the client-logo strip on the landing page (mockup.css). */
.globe-hero {
  --after-hero: 56px;
  --hero-h: 620px;
  --hero-cut: calc(831px - var(--hero-h));   /* the page below sat under an 831px hero; it moves up by this */
}
.globe-hero .hero { height: var(--hero-h); }
.globe-hero .problems { margin-top: var(--after-hero); }
/* The desktop glows are placed in page coordinates for an 831px hero, so they move with the page */
.globe-hero .page-glows img { translate: 0 calc(var(--after-hero) - var(--hero-cut)); }

.hero-globe { pointer-events: none; }
.hero-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Desktop: a simple two-column hero, the copy stacked on the left (high in the hero, under the nav) and
   a big globe on the right, cropped by the hero's right and bottom edges (its box spans the hero;
   hero-globe.js places the globe) */
@media (min-width: 901px) {
  .globe-hero .hero .frame { display: flex; flex-direction: column; justify-content: flex-start; padding: 168px 0 0 80px; }
  .globe-hero .hero-copy, .globe-hero .hero-side { position: static; width: 660px; }   /* the headline keeps its two lines */
  .globe-hero .hero-copy h1 { margin-top: 24px; }
  .globe-hero .hero-side { margin-top: 28px; }
  .globe-hero .hero-side .lede { width: 460px; line-height: 26px; }
  .globe-hero .hero-ctas { margin: 32px 0 0; }
  .hero-globe { position: absolute; top: 80px; bottom: 0; left: 0; right: 0; }
}

/* Events on the globe: a see-through chip on a stem above a pulsing city, e.g. "+2 demo requests · Austin" */
.globe-events { position: absolute; inset: 0; }
.globe-event {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; will-change: transform, opacity;
  display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 7px; border-radius: 999px;
  background: rgba(40,12,76,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);   /* see-through (the globe clears its cursors from behind it), a fine white rim */
  font: 300 13px/1 var(--body); color: rgba(255,255,255,.75);
}
.globe-event svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; background: rgba(255,255,255,.18); }
.globe-event b { font-weight: 500; color: #fff; }
.globe-event span::before { content: '·'; margin-right: 6px; color: rgba(255,255,255,.45); }
.ge-demo svg, .ge-calls svg { background: rgba(46,159,107,.85); }   /* the money moments in green */

/* The nav sits on the plum: white logo, links and Contact button */
.globe-hero .nav .nav-logo span { color: #fff; }
.globe-hero .nav .nav-logo .mark img { filter: brightness(0) invert(1); }
.globe-hero .nav-links a { color: rgba(255,255,255,.85); }

/* ── FOOTER — compact, no globe (the hero has it). The canvas stays in the markup because site.js sets it
   up, but hidden it never counts as on screen, so the footer globe never runs. ── */
.globe-hero .footer-globe { display: none; }
.globe-hero .footer-inner { padding-top: 64px; padding-bottom: 28px; }
.globe-hero .footer-bottom { margin-top: 56px; }

@media (max-width: 900px) {
  .globe-hero .hero { height: auto; padding-bottom: 0; }
  .globe-hero .problems { margin-top: 28px; }   /* white space between the hero and the problems card */
  .hero-globe { position: relative; height: 260px; margin-top: 40px; }   /* room between the buttons and the globe (a chip can rise above the dome) */
  .globe-event { height: 28px; gap: 6px; padding: 0 10px 0 6px; font-size: 12px; }
  .globe-event svg { width: 18px; height: 18px; }
  .globe-hero .footer-inner { padding-top: 48px; padding-bottom: 24px; }
  .globe-hero .footer-bottom { margin-top: 40px; }
}
