/* ============================================================
   OM SAI — hero.css
   Hero stage, 3D canvas, floating chips, marquee
   ============================================================ */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 64px) 0 84px;
  overflow: hidden;
  isolation: isolate;
}

#three-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* CSS atmosphere on top of the WebGL canvas */
.hero-glow {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.55;
}

.hero-glow.g1 {
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  right: -6vw;
  top: 4vw;
  background: radial-gradient(circle, rgba(49, 130, 255, 0.28), transparent 66%);
}

.hero-glow.g2 {
  width: 34vw;
  height: 34vw;
  max-width: 460px;
  max-height: 460px;
  right: 18vw;
  bottom: -12vw;
  background: radial-gradient(circle, rgba(55, 230, 178, 0.16), transparent 68%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(130, 180, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 180, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 72% 46%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 60% at 72% 46%, #000 0%, transparent 72%);
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg) 96%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 44px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 660px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px 6px 7px;
  margin-bottom: 30px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.115);
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4d9ef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pill-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(72, 233, 182, 0.1);
  border: 1px solid rgba(72, 233, 182, 0.22);
}

.pill-dot span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(72, 233, 182, 0.5);
  animation: pillPulse 2.2s ease-out infinite;
}

@keyframes pillPulse {
  0%   { box-shadow: 0 0 0 0 rgba(72, 233, 182, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(72, 233, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(72, 233, 182, 0); }
}

.hero h1 {
  position: relative;
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.1vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: #f4f9ff;
}

.hero h1 .line {
  display: block;
}

.hero h1 .line:nth-child(1) {
  color: rgba(230, 241, 255, 0.82);
}

.hero h1 em {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  padding-right: 0.1em;
  background: linear-gradient(100deg, #93efff 0%, #8fa8ff 48%, #74f5c9 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.h1-spark {
  position: absolute;
  top: 0.02em;
  margin-left: 0.12em;
  width: 0.3em;
  height: 0.3em;
  color: var(--mint);
  filter: drop-shadow(0 0 12px rgba(72, 233, 182, 0.65));
  animation: sparkle 4.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.85; }
  50%      { transform: rotate(45deg) scale(1.15); opacity: 1; }
}

.hero-sub {
  max-width: 530px;
  margin-bottom: 36px;
  font-size: clamp(14.5px, 1.25vw, 16px);
  line-height: 1.78;
  color: var(--muted);
}

.hero-sub strong {
  color: #e6f2ff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 38px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 12px;
  font-weight: 600;
  color: #93a6bd;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta .icon {
  width: 14px;
  height: 14px;
  color: var(--mint);
}

/* Floating glass chips over the 3D scene */
.hero-visual {
  position: relative;
  z-index: 4;
  min-height: 520px;
  pointer-events: none;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px 11px 11px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(145deg, rgba(17, 28, 48, 0.72), rgba(7, 13, 24, 0.52));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 22px 50px -22px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  animation: floaty 7.5s ease-in-out infinite;
  pointer-events: auto;
}

.float-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f0f8ff;
}

.float-chip small {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #8b9fb8;
}

.chip-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(95, 216, 255, 0.25);
  background: linear-gradient(150deg, rgba(95, 216, 255, 0.16), rgba(79, 125, 255, 0.05));
  color: #9eeaff;
}

.chip-icon .icon {
  width: 16px;
  height: 16px;
}

.float-chip.chip-a { top: -8%; left: -14%; animation-delay: 0s; }
.float-chip.chip-b { bottom: 9%; left: -5%; animation-delay: -2.6s; }
.float-chip.chip-c { bottom: 1%; right: 0; animation-delay: -5.1s; }

.chip-b .chip-icon {
  border-color: rgba(72, 233, 182, 0.25);
  background: linear-gradient(150deg, rgba(72, 233, 182, 0.15), rgba(16, 185, 129, 0.04));
  color: #8df5d1;
}

.chip-c .chip-icon {
  border-color: rgba(255, 199, 118, 0.25);
  background: linear-gradient(150deg, rgba(255, 199, 118, 0.14), rgba(245, 158, 11, 0.04));
  color: #ffd79b;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-0.2deg); }
  50%      { transform: translateY(-11px) rotate(0.4deg); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(168, 190, 216, 0.5);
  pointer-events: none;
}

.cue-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, rgba(95, 216, 255, 0.85), transparent);
  animation: cueMove 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cueMove {
  0%       { transform: scaleY(0.2); opacity: 0; }
  35%      { transform: scaleY(1); opacity: 1; }
  70%, 100% { transform: scaleY(1) translateY(8px); opacity: 0; }
}

/* WebGL fallback orb */
.hero-fallback {
  display: none;
  position: absolute;
  top: 50%;
  right: 9%;
  z-index: 2;
  width: 400px;
  height: 400px;
  transform: translateY(-50%);
  pointer-events: none;
  perspective: 900px;
}

body.no-webgl .hero-fallback {
  display: block;
}

.hero-fallback .orb {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), transparent 18%),
    radial-gradient(circle at 38% 32%, #7cecff, #4f7dff 46%, #182b55 74%, #070c16 100%);
  box-shadow:
    inset -30px -40px 60px rgba(0, 0, 0, 0.65),
    0 0 90px rgba(79, 125, 255, 0.45);
  animation: orbFloat 7s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-16px) rotate(2deg); }
}

.orb-ring {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 1px solid rgba(95, 216, 255, 0.3);
  transform-style: preserve-3d;
}

.orb-ring.r1 {
  animation: orbRing1 14s linear infinite;
  border-color: rgba(95, 216, 255, 0.28);
}

.orb-ring.r2 {
  inset: -2%;
  border-color: rgba(72, 233, 182, 0.2);
  animation: orbRing2 18s linear infinite reverse;
}

@keyframes orbRing1 {
  from { transform: rotateX(68deg) rotateY(8deg) rotateZ(0deg); }
  to   { transform: rotateX(68deg) rotateY(8deg) rotateZ(360deg); }
}

@keyframes orbRing2 {
  from { transform: rotateX(74deg) rotateY(-16deg) rotateZ(0deg); }
  to   { transform: rotateX(74deg) rotateY(-16deg) rotateZ(360deg); }
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  position: relative;
  z-index: 3;
  display: flex;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-track {
  display: flex;
  flex: none;
  min-width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee span {
  display: flex;
  align-items: center;
  gap: 38px;
  padding-right: 38px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(205, 223, 245, 0.55);
}

.marquee i {
  font-style: normal;
  color: var(--cyan);
  opacity: 0.8;
  font-size: 11px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   LOCATION STRIP
   ============================================================ */

.location-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 19px 24px;
  border-radius: 20px;
}

.location-strip-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pin-badge {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(95, 216, 255, 0.09);
  border: 1px solid rgba(95, 216, 255, 0.18);
  color: #9eeaff;
}

.pin-badge .icon {
  width: 18px;
  height: 18px;
}

.location-strip-left strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #e8f4ff;
}

.location-strip-left span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: #8b9db5;
}
