/* Home page only. Built on site.css tokens and components. */

/* Hero: rotating globe (hero-globe.js) */
.home-hero {
  --hero-bg: #04090f;
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(620px, calc(100svh - var(--header-h)), 1080px); /* fill the first screen so the next section starts below the fold */
  display: flex; align-items: center;
  padding-block: clamp(3rem, 7vw, 5rem);
  background: radial-gradient(60rem 40rem at 85% 55%, #0c2340 0%, transparent 65%), radial-gradient(30rem 24rem at 10% 0%, rgba(54, 122, 12, .22), transparent 70%), var(--hero-bg);
}
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(4, 9, 15, .86) 0%, rgba(4, 9, 15, .55) 38%, transparent 62%); }
.globe-stage { position: absolute; inset: 0; z-index: 0; }
.home-hero__canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; touch-action: pan-y; cursor: grab; }
.home-hero__canvas.is-drag { cursor: grabbing; }
.home-hero.is-ready .home-hero__canvas { opacity: 1; }
/* Static planet for browsers without WebGL only: hidden while the 3D globe loads (so it never
   flashes on reload), and placed where hero-globe.js draws the Earth (centre 78% / 47%, radius 34% of the hero height) */
.home-hero__fallback {
  position: absolute; z-index: 0; width: min(calc((100svh - var(--header-h)) * .68), 50vw); aspect-ratio: 1; left: 78%; top: 47%; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0; transition: opacity .9s ease;
  background: radial-gradient(circle at 32% 30%, #3b88c9 0%, #1b5f96 38%, #0b2c52 70%, #04101f 100%); box-shadow: 0 0 80px rgba(70, 150, 255, .35), inset -30px -20px 60px rgba(0, 0, 0, .55);
}
.home-hero.is-fallback .home-hero__fallback { opacity: 1; }
.home-hero.is-fallback .home-hero__canvas { display: none; }

.home-hero__inner { position: relative; z-index: 2; pointer-events: none; }
.home-hero__text { max-width: 35rem; pointer-events: none; }
.home-hero__text a, .home-hero__text button { pointer-events: auto; }
.home-hero__badge { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 var(--sp-5); padding: .45rem .95rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: #d6f5bd; background: rgba(20, 32, 26, .82); border: 1px solid rgba(255, 255, 255, .16); }
.home-hero__ping { position: relative; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #4ade80; flex: none; }
.home-hero__ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4ade80; animation: home-ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes home-ping { 75%, 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .home-hero__ping::after { animation: none; } }
.home-hero h1 { color: #fff; font-size: clamp(2.25rem, 5.2vw, 3.75rem); line-height: 1.06; }
.home-hero__accent { background: linear-gradient(90deg, #b6ee8f, #5eead4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
@media (forced-colors: active) { .home-hero__accent { background: none; -webkit-text-fill-color: currentColor; color: inherit; } }
.home-hero .lead { color: rgba(255, 255, 255, .8); max-width: 31rem; font-size: 1.1875rem; }
.btn--hero { background: linear-gradient(135deg, #5fd32a, #2fb88a); color: #04140a; font-weight: 700; box-shadow: 0 8px 30px rgba(79, 185, 24, .35); }
.btn--hero:hover { color: #04140a; transform: translateY(-1px); box-shadow: 0 10px 36px rgba(79, 185, 24, .5); }
.btn--hero .icon { width: 1.15em; height: 1.15em; margin-left: .35rem; }
.btn--glass { color: #fff; background: rgba(24, 34, 30, .82); border: 1px solid rgba(255, 255, 255, .28); }
.btn--glass:hover { color: #fff; background: rgba(44, 58, 52, .95); }

/* Country labels that follow their stations on the globe; they glow while a satellite link is open */
.globe-pin { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; will-change: transform; }
.globe-pin__label { position: absolute; left: 14px; top: -14px; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .2rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 600; color: #fff; background: rgba(4, 9, 15, .85); border: 1px solid rgba(190, 255, 150, .5); transition: opacity .25s, border-color .3s, box-shadow .3s; }
.globe-pin__icon { width: .45rem; height: .45rem; border-radius: 50%; background: #c8ff9a; box-shadow: 0 0 6px #c8ff9a; }
.globe-pin__count { font-weight: 500; color: rgba(255, 255, 255, .6); }
.globe-pin__link { display: none; font-weight: 700; color: #5eead4; }
.globe-pin.is-hidden .globe-pin__label { opacity: 0; }
.globe-pin.is-linked .globe-pin__label { border-color: rgba(94, 234, 212, .85); box-shadow: 0 0 14px rgba(94, 234, 212, .3); }
.globe-pin.is-linked .globe-pin__icon { background: #5eead4; box-shadow: 0 0 6px #5eead4; }
.globe-pin.is-linked .globe-pin__link { display: inline; }

/* Satellite position pill under the Earth (desktop; the globe is centred at 78% in hero-globe.js) and controls */
.globe-hud { display: none; position: absolute; z-index: 2; left: 78%; bottom: 1.1rem; transform: translateX(-50%); align-items: center; gap: .9rem; padding: .5rem .85rem; border-radius: 999px; background: rgba(20, 32, 26, .82); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.globe-hud__title { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #b6ee8f; }
.globe-hud__rows { margin: 0; display: flex; gap: .9rem; }
.globe-hud__rows div { display: flex; gap: .4rem; font-size: .75rem; }
.globe-hud__rows dt { color: rgba(255, 255, 255, .6); }
.globe-hud__rows dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.globe-controls { position: absolute; z-index: 3; right: max(var(--gutter, 1rem), calc((100vw - 1200px) / 2 + var(--gutter, 1rem))); top: 1rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.globe-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .4rem .9rem; border-radius: 999px; font: inherit; font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .85); background: rgba(18, 28, 34, .85); border: 1px solid rgba(255, 255, 255, .22); cursor: pointer; }
.globe-btn::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.globe-btn.is-on::before { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.globe-btn:hover { background: rgba(255, 255, 255, .16); }
.home-hero :focus-visible { outline: 2px solid #b6ee8f; outline-offset: 3px; box-shadow: none; }

@media (min-width: 900px) { .globe-hud { display: flex; } }
@media (max-width: 899px) {
  .home-hero { display: block; min-height: 0; padding-top: 2.5rem; padding-bottom: 460px; }
  .home-hero::after { background: linear-gradient(180deg, rgba(4, 9, 15, .75) 0%, transparent 55%); }
  .globe-stage { inset: auto 0 0 0; height: 460px; }
  .home-hero__fallback { width: min(68vw, 312px); right: auto; left: 50%; top: auto; bottom: 230px; transform: translate(-50%, 50%); }
  .globe-controls { top: auto; bottom: .9rem; right: var(--gutter, 1rem); }
  .globe-controls .globe-btn:not([data-globe-spin]) { display: none; }   /* phones keep only Pause */
  .globe-pin__label { left: 10px; top: -12px; padding: .15rem .5rem; font-size: .65rem; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .home-hero { padding-bottom: 560px; }
  .globe-stage { height: 560px; }
  .home-hero__fallback { bottom: 280px; }
}

/* Bars replace inline widths on the mock cards */
.home-bar-32 { --w: 32%; }
.home-bar-70 { --w: 70%; }
.home-mock-warn { color: #9A5B07; }

/* Satellite spotlight */
.home-map-frame { background: #0b140d; }
.home-map__legend { margin-top: var(--sp-4); }
.home-map__note { margin: var(--sp-2) 0 0; font-size: var(--fs-small); color: rgba(255,255,255,.7); }

/* Platform peek */
.home-features { list-style: none; padding: 0; margin: var(--sp-6) 0; display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .home-features { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-5); } }
.home-features .feature--row p { font-size: var(--fs-small); }
.home-features .feature--row h3 { font-size: 1.0625rem; }
