/* ============================================
   Remote Hive - Home Hero Section
   Spotlight BG + Retro Grid | Magic UI Highlighter | Orbits
   ============================================ */

/* --- Section --- */
.rh-homehero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
  background: #ffffff;
}

/* ============================================
   Spotlight Background
   ============================================ */
.rh-homehero-spotlight-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.rh-homehero-spotlight {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.rh-homehero-spotlight--1 {
  width: 700px;
  height: 700px;
  top: -20%;
  left: -10%;
  background: radial-gradient(
    circle,
    rgba(0, 119, 182, 0.18) 0%,
    rgba(0, 119, 182, 0.08) 40%,
    rgba(0, 119, 182, 0.02) 65%,
    transparent 80%
  );
  filter: blur(40px);
  animation: rh-homehero-spotlight-drift-1 7s ease-in-out infinite alternate;
}

.rh-homehero-spotlight--2 {
  width: 650px;
  height: 650px;
  top: 10%;
  right: -10%;
  background: radial-gradient(
    circle,
    rgba(26, 188, 156, 0.16) 0%,
    rgba(26, 188, 156, 0.07) 40%,
    rgba(26, 188, 156, 0.02) 65%,
    transparent 80%
  );
  filter: blur(40px);
  animation: rh-homehero-spotlight-drift-2 8s ease-in-out infinite alternate;
}

.rh-homehero-spotlight--3 {
  width: 550px;
  height: 550px;
  bottom: -15%;
  left: 25%;
  background: radial-gradient(
    circle,
    rgba(0, 150, 170, 0.14) 0%,
    rgba(0, 150, 170, 0.06) 40%,
    rgba(0, 150, 170, 0.01) 65%,
    transparent 80%
  );
  filter: blur(50px);
  animation: rh-homehero-spotlight-drift-3 9s ease-in-out infinite alternate;
}

@keyframes rh-homehero-spotlight-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 60px) scale(1.15); }
}

@keyframes rh-homehero-spotlight-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 50px) scale(1.1); }
}

@keyframes rh-homehero-spotlight-drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.2); }
}


/* ============================================
   Retro Grid — Fine, Charcoal Grey, Crisp
   ============================================ */
.rh-homehero-retro-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  perspective: 300px;
}

.rh-homehero-retro-grid-inner {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -20%;
  height: 70%;
  transform: rotateX(45deg);
  transform-origin: center top;
}

.rh-homehero-retro-grid-plane {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 119, 182, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 119, 182, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: rh-homehero-retro-grid-scroll 8s linear infinite;
}

@keyframes rh-homehero-retro-grid-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(28px); }
}

.rh-homehero-retro-grid-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      #ffffff 0%,
      #ffffff 30%,
      rgba(255, 255, 255, 0.9) 45%,
      rgba(255, 255, 255, 0.4) 60%,
      rgba(255, 255, 255, 0) 72%,
      rgba(255, 255, 255, 0) 80%,
      rgba(255, 255, 255, 0.5) 90%,
      rgba(255, 255, 255, 0.95) 100%
    ),
    linear-gradient(to right,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 12%,
      rgba(255, 255, 255, 0) 88%,
      rgba(255, 255, 255, 1) 100%
    );
}


/* --- Container --- */
.rh-homehero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* --- Left Side --- */
.rh-homehero-left {
  flex: 1;
  max-width: 600px;
}

.rh-homehero-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  color: #1a1a1a;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.rh-homehero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #666666;
  margin-bottom: 36px;
  max-width: 520px;
}

/* --- CTA --- */
.rh-homehero-buttons {
  display: flex;
}

.rh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.rh-btn-primary {
  background: #0077B6;
  color: #ffffff;
}

.rh-btn-primary:hover {
  background: #0077B6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 119, 182, 0.4), 0 0 40px rgba(0, 119, 182, 0.2);
}


/* ============================================
   MAGIC UI HIGHLIGHTER
   ============================================ */

.rh-homehero-highlighter {
  position: relative;
  display: inline;
}

.rh-homehero-highlighter-text {
  position: relative;
  z-index: 1;
}

.rh-homehero-highlighter[data-action="underline"] {
  color: #0077B6;
  white-space: nowrap;
}

.rh-homehero-highlighter-underline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  overflow: visible;
  pointer-events: none;
}

.rh-homehero-highlighter-underline path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: none;
}

.rh-homehero-highlighter[data-action="underline"].rh-homehero-hl-active .rh-homehero-highlighter-underline path {
  animation: rh-homehero-magic-underline 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes rh-homehero-magic-underline {
  0%   { stroke-dashoffset: 400; }
  100% { stroke-dashoffset: 0; }
}

.rh-homehero-highlighter[data-action="highlight"] {
  color: #1a1a1a;
  white-space: nowrap;
}

.rh-homehero-highlighter-bg {
  position: absolute;
  top: 0;
  left: -4px;
  right: -4px;
  bottom: 0;
  background: #1ABC9C;
  opacity: 0.2;
  border-radius: 4px;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: none;
}

.rh-homehero-highlighter[data-action="highlight"].rh-homehero-hl-active .rh-homehero-highlighter-bg {
  animation: rh-homehero-magic-highlight 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes rh-homehero-magic-highlight {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}


/* ============================================
   Orbiting Circles
   ============================================ */
.rh-homehero-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 550px;
}

.rh-homehero-orbiting-wrapper {
  position: relative;
  width: 500px;
  height: 500px;
}

.rh-homehero-orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.rh-homehero-center-logo {
  object-fit: contain;
  display: block;
}

.rh-homehero-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}

.rh-homehero-orbit-ring--outer {
  width: 420px;
  height: 420px;
  margin-top: -210px;
  margin-left: -210px;
  border: 1.5px solid rgba(0, 119, 182, 0.2);
  animation: rh-homehero-orbit-spin 30s linear infinite;
}

.rh-homehero-orbit-ring--inner {
  width: 240px;
  height: 240px;
  margin-top: -120px;
  margin-left: -120px;
  border: 1.5px solid rgba(26, 188, 156, 0.2);
  animation: rh-homehero-orbit-spin 20s linear infinite reverse;
}

@keyframes rh-homehero-orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.rh-homehero-orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(calc(360deg / var(--total) * var(--index))) translateX(var(--ring-radius));
}

.rh-homehero-orbit-ring--outer .rh-homehero-orbit-item { --ring-radius: 210px; }
.rh-homehero-orbit-ring--inner .rh-homehero-orbit-item { --ring-radius: 120px; }

.rh-homehero-orbit-ring--outer .rh-homehero-orbit-item-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(0, 119, 182, 0.15);
  box-shadow: 0 2px 12px rgba(0, 119, 182, 0.06);
  transition: all 0.3s ease;
  animation: inherit;
  animation-direction: reverse;
}

.rh-homehero-orbit-ring--inner .rh-homehero-orbit-item-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(26, 188, 156, 0.15);
  box-shadow: 0 2px 12px rgba(26, 188, 156, 0.06);
  transition: all 0.3s ease;
  animation: inherit;
  animation-direction: normal;
}

.rh-homehero-orbit-ring--outer .rh-homehero-orbit-item-inner:hover {
  border-color: rgba(0, 119, 182, 0.5);
  box-shadow: 0 4px 18px rgba(0, 119, 182, 0.12);
  transform: scale(1.1);
}

.rh-homehero-orbit-ring--inner .rh-homehero-orbit-item-inner:hover {
  border-color: rgba(26, 188, 156, 0.5);
  box-shadow: 0 4px 18px rgba(26, 188, 156, 0.12);
  transform: scale(1.1);
}

.rh-homehero-orbit-ring--outer .rh-homehero-orbit-item-inner svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.rh-homehero-orbit-ring--inner .rh-homehero-orbit-item-inner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
  .rh-homehero-orbiting-wrapper { width: 420px; height: 420px; }
  .rh-homehero-orbit-ring--outer { width: 350px; height: 350px; margin-top: -175px; margin-left: -175px; }
  .rh-homehero-orbit-ring--outer .rh-homehero-orbit-item { --ring-radius: 175px; }
  .rh-homehero-orbit-ring--inner { width: 200px; height: 200px; margin-top: -100px; margin-left: -100px; }
  .rh-homehero-orbit-ring--inner .rh-homehero-orbit-item { --ring-radius: 100px; }
}

@media (max-width: 991px) {
  .rh-homehero-container { flex-direction: column; text-align: center; }
  .rh-homehero-left { max-width: 100%; order: 1; }
  .rh-homehero-right { max-width: 100%; order: 2; margin-top: 40px; margin-bottom: 0; }
  .rh-homehero-description { max-width: 100%; margin-left: auto; margin-right: auto; }
  .rh-homehero-buttons { justify-content: center; }
  .rh-homehero-orbiting-wrapper { width: 380px; height: 380px; }
  .rh-homehero-orbit-ring--outer { width: 320px; height: 320px; margin-top: -160px; margin-left: -160px; }
  .rh-homehero-orbit-ring--outer .rh-homehero-orbit-item { --ring-radius: 160px; }
  .rh-homehero-orbit-ring--inner { width: 180px; height: 180px; margin-top: -90px; margin-left: -90px; }
  .rh-homehero-orbit-ring--inner .rh-homehero-orbit-item { --ring-radius: 90px; }

  .rh-homehero-retro-grid-plane { background-size: 24px 24px; }
}

@media (max-width: 576px) {
  .rh-homehero-section { padding: 60px 0; }
  .rh-homehero-container { padding: 0 20px; }
  .rh-homehero-heading { font-size: 1.75rem; }

  .rh-homehero-spotlight--1 { width: 300px; height: 300px; }
  .rh-homehero-spotlight--2 { width: 260px; height: 260px; }
  .rh-homehero-spotlight--3 { width: 220px; height: 220px; }

  .rh-homehero-retro-grid-plane { background-size: 20px 20px; }

  .rh-homehero-orbiting-wrapper { width: 300px; height: 300px; }
  .rh-homehero-orbit-ring--outer { width: 260px; height: 260px; margin-top: -130px; margin-left: -130px; }
  .rh-homehero-orbit-ring--outer .rh-homehero-orbit-item { --ring-radius: 130px; }
  .rh-homehero-orbit-ring--inner { width: 150px; height: 150px; margin-top: -75px; margin-left: -75px; }
  .rh-homehero-orbit-ring--inner .rh-homehero-orbit-item { --ring-radius: 75px; }
  .rh-homehero-orbit-ring--outer .rh-homehero-orbit-item-inner { width: 42px; height: 42px; margin-left: -21px; margin-top: -21px; }
  .rh-homehero-orbit-ring--inner .rh-homehero-orbit-item-inner { width: 36px; height: 36px; margin-left: -18px; margin-top: -18px; }
  .rh-btn { width: 100%; max-width: 280px; }
}