/* OrbitShield rebuilt homepage interactive modules */
html,
body,
body.orbitshield-body {
  overflow-x: hidden;
}

.os-orbit-app-section,
.os-global-network-section {
  position: relative;
  isolation: isolate;
}

.os-orbit-app-section {
  padding-top: 3.5rem;
}

.os-orbit-app-shell,
.os-webgl-globe-panel {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(216, 180, 254, 0.14);
  background:
    radial-gradient(circle at 50% 18%, rgba(139, 92, 246, 0.18), transparent 30%),
    radial-gradient(circle at 84% 70%, rgba(96, 165, 250, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(9, 8, 18, 0.94), rgba(3, 3, 8, 0.98));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
}

.os-orbit-app-shell::before,
.os-webgl-globe-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.4px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 130px 130px, 64px 64px, 64px 64px;
  opacity: 0.2;
  pointer-events: none;
}

.os-orbit-app-shell {
  min-height: 720px;
  border-radius: 34px;
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.os-orbit-app-heading {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto 1.3rem;
  text-align: center;
}

.os-orbit-app-heading .os-eyebrow {
  color: #a5f3fc;
}

.os-orbit-app-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  line-height: 1.08;
  font-weight: 950;
}

.os-orbit-app-subtitle {
  margin: 1rem auto 0;
  max-width: 760px;
  color: rgba(237, 229, 255, 0.72);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.os-app-orbit-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  height: clamp(390px, 42vw, 500px);
  margin: 0 auto;
  overflow: visible;
}

.os-app-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(139, 92, 246, 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.os-app-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 90deg, transparent, rgba(168, 85, 247, 0.42), transparent 33%, rgba(96, 165, 250, 0.22), transparent 68%, rgba(216, 180, 254, 0.38), transparent);
  filter: blur(8px);
  opacity: 0.35;
}

.os-app-ring.r1 {
  width: min(34vw, 340px);
  height: min(34vw, 340px);
  animation: osOrbitSpin 28s linear infinite;
}

.os-app-ring.r2 {
  width: min(49vw, 500px);
  height: min(49vw, 500px);
  animation: osOrbitSpin 44s linear infinite reverse;
}

.os-app-ring.r3 {
  width: min(64vw, 650px);
  height: min(64vw, 650px);
  opacity: 0.82;
  animation: osOrbitSpin 58s linear infinite;
}

.os-app-ring.r4 {
  width: min(78vw, 820px);
  height: min(78vw, 820px);
  opacity: 0.48;
  animation: osOrbitSpin 76s linear infinite reverse;
}

@keyframes osOrbitSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.os-app-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(116px, 14vw, 164px);
  height: clamp(116px, 14vw, 164px);
  border: 1px solid rgba(216, 180, 254, 0.34);
  border-radius: 42px;
  background:
    radial-gradient(circle at 42% 30%, rgba(147, 197, 253, 0.4), transparent 33%),
    linear-gradient(145deg, rgba(18, 12, 40, 0.9), rgba(5, 4, 14, 0.92));
  box-shadow:
    0 0 46px rgba(139, 92, 246, 0.38),
    inset 0 0 40px rgba(96, 165, 250, 0.08);
  transform: translate(-50%, -50%);
  animation: osCenterPulse 4.6s ease-in-out infinite;
}

.os-app-center::before,
.os-app-center::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 46px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  opacity: 0.6;
}

.os-app-center::after {
  inset: -34px;
  border-color: rgba(168, 85, 247, 0.22);
  filter: blur(1px);
}

.os-app-center img {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 0 34px rgba(168, 85, 247, 0.5);
}

@keyframes osCenterPulse {
  0%, 100% {
    box-shadow: 0 0 42px rgba(139, 92, 246, 0.36), inset 0 0 40px rgba(96, 165, 250, 0.08);
  }
  50% {
    box-shadow: 0 0 68px rgba(168, 85, 247, 0.62), inset 0 0 52px rgba(96, 165, 250, 0.13);
  }
}

.os-app-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 5;
  display: grid;
  place-items: center;
  width: var(--size, 68px);
  height: var(--size, 68px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--node-bg, rgba(18, 18, 30, 0.88));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34), 0 0 28px rgba(139, 92, 246, 0.18);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.78rem, 1.4vw, 1rem);
  font-weight: 950;
  padding: 0;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease;
  animation: osAppFloat 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.os-app-node:hover,
.os-app-node:focus-visible,
.os-app-node.is-active {
  border-color: rgba(216, 180, 254, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 34px rgba(168, 85, 247, 0.72), 0 0 64px rgba(96, 165, 250, 0.2);
  filter: saturate(1.14);
  outline: 0;
  transform: translate(-50%, -50%) scale(1.1);
}

.os-app-node span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74%;
  height: 74%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}

.os-app-node::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  min-width: max-content;
  border: 1px solid rgba(216, 180, 254, 0.18);
  border-radius: 999px;
  background: rgba(8, 8, 16, 0.86);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  padding: 0.38rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.os-app-node:hover::after,
.os-app-node:focus-visible::after,
.os-app-node.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes osAppFloat {
  0%, 100% {
    margin-top: 0;
  }
  50% {
    margin-top: -9px;
  }
}

.os-app-detail-panel {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  width: min(100%, 820px);
  min-height: 122px;
  margin: 0.75rem auto 0;
  border: 1px solid rgba(216, 180, 254, 0.14);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.38);
  box-shadow: inset 0 0 32px rgba(139, 92, 246, 0.06);
  padding: 1rem 1.15rem;
}

.os-app-detail-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(96, 165, 250, 0.72));
  color: #fff;
  font-weight: 950;
}

.os-app-detail-panel p,
.os-app-detail-panel h3 {
  margin: 0;
}

.os-app-detail-panel h3 {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 950;
}

.os-app-detail-panel p {
  margin-top: 0.32rem;
  color: rgba(237, 229, 255, 0.72);
  line-height: 1.65;
}

.os-global-network-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.95fr);
  min-height: 520px;
  height: clamp(480px, 52vw, 620px);
  align-items: center;
  overflow: visible;
}

.os-global-network-hero .os-server-copy {
  max-width: 620px;
}

.os-global-network-hero .os-server-copy h2 {
  font-size: clamp(2.35rem, 4.7vw, 4.3rem);
}

.os-network-description {
  max-width: 620px;
  margin-top: 1rem;
  color: rgba(237, 229, 255, 0.7);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 600;
}

.os-network-note {
  max-width: 580px;
  margin: 1rem 0 0;
  color: rgba(165, 243, 252, 0.78);
  font-size: 0.82rem;
  line-height: 1.7;
}

.os-webgl-globe-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  height: clamp(480px, 44vw, 600px);
  margin-left: auto;
  border-radius: 34px;
  cursor: grab;
  touch-action: none;
}

.os-webgl-globe-panel.is-dragging {
  cursor: grabbing;
}

.os-webgl-globe-panel canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
}

.os-webgl-stars,
.os-webgl-ring,
.os-webgl-info,
.os-webgl-node-layer,
.os-webgl-fallback {
  position: absolute;
  z-index: 2;
}

.os-webgl-stars {
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.6px);
  background-size: 88px 88px;
  opacity: 0.16;
  pointer-events: none;
}

.os-webgl-ring {
  left: 50%;
  top: 50%;
  width: 74%;
  height: 24%;
  border: 1px solid rgba(216, 180, 254, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.25));
  pointer-events: none;
}

.os-webgl-ring.r2 {
  width: 92%;
  height: 34%;
  opacity: 0.42;
  transform: translate(-50%, -50%) rotate(18deg);
}

.os-webgl-node-layer {
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.os-globe-node {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: var(--visible, 1);
  padding: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transition: opacity 160ms ease, transform 160ms ease;
}

.os-globe-node::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8b4fe;
  box-shadow: 0 0 0 7px rgba(168, 85, 247, 0.14), 0 0 22px rgba(216, 180, 254, 0.9);
}

.os-globe-node:hover,
.os-globe-node:focus-visible,
.os-globe-node.is-active {
  --scale: 1.25;
  outline: 0;
}

.os-globe-node.is-active::before {
  background: #f0abfc;
  box-shadow: 0 0 0 9px rgba(217, 70, 239, 0.2), 0 0 34px rgba(240, 171, 252, 1), 0 0 56px rgba(96, 165, 250, 0.32);
}

.os-globe-node::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6rem);
  border: 1px solid rgba(216, 180, 254, 0.18);
  border-radius: 999px;
  background: rgba(8, 8, 16, 0.88);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  padding: 0.34rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.os-globe-node:hover::after,
.os-globe-node:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.os-webgl-info {
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  width: min(230px, calc(100% - 2rem));
  border: 1px solid rgba(216, 180, 254, 0.16);
  border-radius: 20px;
  background: rgba(5, 5, 12, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  padding: 0.9rem;
  pointer-events: none;
}

.os-webgl-info span {
  display: block;
  color: rgba(165, 243, 252, 0.84);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.os-webgl-info strong {
  display: block;
  margin-top: 0.28rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.os-webgl-info p {
  margin: 0.34rem 0 0;
  color: rgba(237, 229, 255, 0.66);
  font-size: 0.78rem;
  line-height: 1.55;
}

.os-webgl-fallback {
  inset: 16%;
  display: none;
  border: 1px solid rgba(216, 180, 254, 0.28);
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(216, 180, 254, 0.08) 29px 30px),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(147, 197, 253, 0.06) 31px 32px),
    radial-gradient(circle at 30% 24%, rgba(216, 180, 254, 0.28), transparent 18%),
    linear-gradient(145deg, rgba(54, 25, 116, 0.86), rgba(4, 8, 24, 0.96));
  box-shadow: inset -34px -26px 70px rgba(0, 0, 0, 0.7), 0 0 54px rgba(168, 85, 247, 0.28);
}

.os-webgl-globe-panel.is-fallback canvas,
.os-webgl-globe-panel.is-fallback .os-webgl-node-layer {
  display: none;
}

.os-webgl-globe-panel.is-fallback .os-webgl-fallback {
  display: block;
}

.os-scenario-section {
  overflow-x: hidden;
  background: #000;
}

.os-scenario-section .os-operation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
  overflow: visible;
  text-align: center;
  transform: none !important;
  transform-style: flat !important;
  perspective: none !important;
  transition: opacity 520ms ease;
  will-change: opacity;
}

.os-scenario-section .os-operation-card > div {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.os-scenario-section .os-operation-card::before,
.os-scenario-section .os-operation-card::after {
  display: none !important;
}

.os-scenario-section .os-operation-card h2 {
  margin: 0;
}

.os-scenario-section .os-operation-card p:not(.os-eyebrow) {
  max-width: 1100px;
  margin: 0.8rem auto 0;
  color: rgba(237, 229, 255, 0.72);
  line-height: 1.85;
  text-align: center;
}

.os-operation-card .os-operation-satellite {
  display: block;
  width: 70%;
  max-width: 1100px;
  height: auto;
  max-height: none;
  margin: clamp(1.2rem, 3vw, 2rem) auto 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none;
  object-fit: contain;
  object-position: center;
  transform: none !important;
  animation: none !important;
}

@media (max-width: 1080px) {
  .os-orbit-app-shell {
    min-height: 680px;
  }

  .os-global-network-hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    gap: 2rem;
  }

  .os-webgl-globe-panel {
    margin: 0 auto;
    height: clamp(480px, 74vw, 590px);
  }
}

@media (max-width: 760px) {
  .os-orbit-app-section {
    padding-top: 2.5rem;
  }

  .os-orbit-app-shell {
    min-height: 620px;
    border-radius: 26px;
    padding: 1rem;
  }

  .os-app-orbit-stage {
    height: 390px;
  }

  .os-app-ring.r1 {
    width: 190px;
    height: 190px;
  }

  .os-app-ring.r2 {
    width: 270px;
    height: 270px;
  }

  .os-app-ring.r3 {
    width: 350px;
    height: 350px;
  }

  .os-app-ring.r4 {
    width: 430px;
    height: 430px;
  }

  .os-app-node {
    width: var(--mobile-size, 48px);
    height: var(--mobile-size, 48px);
    font-size: 0.7rem;
  }

  .os-app-node:nth-of-type(n + 11) {
    display: none;
  }

  .os-app-detail-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0.95rem;
  }

  .os-app-detail-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .os-webgl-globe-panel {
    width: min(100%, 360px);
    height: 480px;
    border-radius: 28px;
  }

  .os-webgl-info {
    left: 1rem;
    right: 1rem;
    bottom: 0.8rem;
    width: auto;
  }

  .os-operation-card .os-operation-satellite {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 520px) {
  .os-app-orbit-stage {
    height: 330px;
  }

  .os-app-center {
    width: 102px;
    height: 102px;
    border-radius: 32px;
  }

  .os-app-node {
    --mobile-size: 42px;
  }

  .os-app-node::after {
    display: none;
  }

  .os-webgl-globe-panel {
    height: 430px;
  }

  .os-globe-node::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .os-app-ring,
  .os-app-center,
  .os-app-node {
    animation: none !important;
  }
}
