/* Home page hero: drifting glow, column rules, copy and the globe stage.
   Globe: assets/js/pages/home-globe.js. Lower sections: home-sections.css. */

@keyframes home-drift-a {
  0%,
  100% { transform: translate(-8%, -5%) scale(1); }
  50% { transform: translate(12%, 8%) scale(1.28); }
}

@keyframes home-drift-b {
  0%,
  100% { transform: translate(8%, 10%) scale(1.12); }
  50% { transform: translate(-12%, -8%) scale(1); }
}

@keyframes chip-float {
  0%,
  100% { transform: translateY(-7px); }
  50% { transform: translateY(7px); }
}

/* ---------- hero ---------- */

.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 97px);
  overflow: hidden;
  background: var(--paper);
}

.home-hero__ambient { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.home-hero__ambient span { position: absolute; border-radius: 50%; }

.home-hero__ambient span:nth-child(1) {
  top: -12%;
  left: -6%;
  width: 70%;
  height: 82%;
  background: radial-gradient(circle, rgb(245 200 66 / 22%), rgb(245 200 66 / 0%) 65%);
  filter: blur(32px);
  animation: home-drift-a 22s ease-in-out infinite;
}

.home-hero__ambient span:nth-child(2) {
  right: -8%;
  bottom: -14%;
  width: 62%;
  height: 72%;
  background: radial-gradient(circle, rgb(80 140 240 / 30%), rgb(80 140 240 / 0%) 66%);
  filter: blur(36px);
  animation: home-drift-b 27s ease-in-out infinite;
}

.home-hero__ambient span:nth-child(3) {
  top: 24%;
  left: 30%;
  width: 46%;
  height: 56%;
  background: radial-gradient(circle, rgb(255 255 255 / 55%), rgb(255 255 255 / 0%) 60%);
  filter: blur(30px);
  animation: home-drift-a 31s ease-in-out infinite reverse;
}

.home-hero__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgb(251 251 249 / 34%), rgb(251 251 249 / 14%) 45%, rgb(251 251 249 / 55%));
}

.home-hero__rules {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgb(20 20 22 / 10%) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}

.home-hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px var(--gutter) 64px;
}

.home-hero__copy { position: relative; z-index: 10; display: flex; flex-direction: column; gap: 34px; }
.home-hero__eyebrow { margin: 0; text-transform: uppercase; }

.home-hero__title {
  font-weight: 800;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.06;
  letter-spacing: -2.2px;
}
.home-hero__title > span { white-space: nowrap; }

.home-hero__checks { display: flex; flex-direction: column; gap: 16px; }
.home-hero__checks li { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.5; color: var(--ink-3); }
.home-hero__checks li > span:last-child { white-space: nowrap; }
.home-hero__checks strong { font-weight: 600; color: var(--ink); }

.home-hero__cta { margin-top: 14px; }



.home-hero__stage { position: relative; z-index: 1; align-self: stretch; min-height: 560px; margin: 0 -80px 0 -140px; pointer-events: none; }
.home-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.globe-chip {
  position: absolute;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid #e7eaf5;
  border-radius: 10px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 10px 30px rgb(45 60 140 / 10%);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .1em;
  color: #2c3145;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  animation: chip-float 7.85s ease-in-out infinite;
  transition: opacity .5s ease;
}
.globe-chip.is-swapping { opacity: 0; }
.globe-chip svg { flex: none; }
.globe-chip--1 { top: 11%; left: 34%; }
.globe-chip--2 { top: 32%; left: 13%; animation-delay: -1.6s; }
.globe-chip--3 { top: 24%; left: 64%; animation-delay: -3.3s; }
.globe-chip--4 { top: 56%; left: 66%; animation-delay: -4.9s; }
.globe-chip--5 { top: 71%; left: 15%; animation-delay: -6.5s; }
.globe-chip--6 { top: 80%; left: 55%; animation-delay: -0.4s; }

@media (prefers-reduced-motion: reduce) {
  .home-hero__ambient span,
  .globe-chip { animation: none; }
}

@media (max-width: 1100px) {
  .home-hero { min-height: 0; }
  .home-hero__inner { grid-template-columns: 1fr; padding-top: 56px; }
  .home-hero__stage { min-height: 460px; margin: 0; }
  .home-hero__checks li > span:last-child { white-space: normal; }
}

@media (max-width: 720px) {
  .home-hero__title > span { white-space: normal; }
  .home-hero__checks li { font-size: 16px; }
  .home-hero__stage { min-height: 360px; overflow: hidden; }
  .globe-chip { gap: 7px; padding: 7px 10px; font-size: 10.5px; letter-spacing: .08em; }
  .globe-chip svg { width: 15px; height: 15px; }
  /* Chips on the right are pinned to the right edge, so longer keywords grow inward instead of off-screen. */
  .globe-chip--1 { top: 6%; left: 22%; }
  .globe-chip--2 { top: 30%; left: 2%; }
  .globe-chip--3 { top: 18%; right: 2%; left: auto; }
  .globe-chip--4 { top: 54%; right: 0; left: auto; }
  .globe-chip--5 { top: 70%; left: 2%; }
  .globe-chip--6 { top: 85%; right: 4%; left: auto; }
}
