/* Nova Link immersive command-universe hero */
.site-header {
  background: rgba(2, 7, 15, 0.7);
  border-bottom-color: rgba(117, 199, 255, 0.12);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.site-header .navbar {
  min-height: 80px;
}

.site-header .nav-store,
.site-header .nav-quote,
.site-header .mobile-contact {
  border-radius: 999px;
}

.hero {
  --mx: 0;
  --my: 0;
  --hero-shift: 0px;
  isolation: isolate;
  min-height: min(860px, calc(100svh - 76px));
  background:
    radial-gradient(circle at 72% 50%, rgba(16, 95, 255, 0.14), transparent 29%),
    radial-gradient(circle at 78% 52%, rgba(126, 211, 33, 0.07), transparent 18%),
    linear-gradient(135deg, #02040a 0%, #030814 48%, #01040a 100%);
}

.hero::before {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(2, 5, 12, 0.93) 0%, rgba(2, 5, 12, 0.68) 43%, transparent 67%),
    radial-gradient(circle at 12% 25%, rgba(17, 123, 255, 0.17), transparent 28%),
    linear-gradient(0deg, rgba(2, 5, 12, 0.92), transparent 35%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(0deg, #071421 0%, rgba(7, 20, 33, 0.68) 32%, transparent 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.23;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.7) 0 0.6px, transparent 0.9px),
    radial-gradient(circle at 76% 18%, rgba(72, 180, 255, 0.78) 0 0.7px, transparent 1px),
    radial-gradient(circle at 62% 72%, rgba(255, 255, 255, 0.56) 0 0.55px, transparent 0.9px);
  background-size: 31px 31px, 47px 47px, 67px 67px;
  mask-image: linear-gradient(90deg, transparent 2%, #000 35%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 35%, #000 100%);
}

.hero .hero-grid {
  min-height: min(860px, calc(100svh - 76px));
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(22px, 3.5vw, 62px);
  padding: 66px 0 104px;
}

.hero .hero-copy {
  z-index: 5;
  max-width: 690px;
  padding: 0;
  transform: none;
}

.hero .eyebrow {
  margin-bottom: 22px;
  padding: 9px 16px;
  border-color: rgba(60, 183, 255, 0.3);
  background: rgba(7, 35, 63, 0.46);
  box-shadow: inset 0 0 24px rgba(43, 178, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero .hero-copy h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(54px, 6.4vw, 94px);
  line-height: 0.9;
  letter-spacing: -3.8px;
  text-wrap: balance;
  text-shadow: 0 0 45px rgba(65, 172, 255, 0.16);
}

.hero .hero-copy h1 span {
  display: block;
  margin-top: 12px;
  font-size: 0.47em;
  line-height: 1;
  letter-spacing: -1.3px;
  background: linear-gradient(90deg, #f6fbff 4%, #62c9ff 58%, #8ae53b 108%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .hero-copy h2 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(25px, 2.45vw, 39px);
  line-height: 1.12;
  font-weight: 760;
  color: #f5faff;
  text-wrap: balance;
}

.hero .hero-copy p {
  max-width: 650px;
  margin-bottom: 28px;
  color: #c6d5e5;
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.72;
}

.hero .hero-actions {
  position: relative;
  z-index: 6;
}

.hero .btn {
  min-height: 50px;
  border-radius: 999px;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #1688ff 0%, #0759c9 100%);
  box-shadow: 0 16px 38px rgba(17, 123, 255, 0.33), inset 0 1px rgba(255, 255, 255, 0.22);
}

.hero .btn-secondary {
  border-color: rgba(144, 210, 255, 0.32);
  background: rgba(8, 23, 43, 0.62);
  box-shadow: inset 0 0 22px rgba(38, 189, 255, 0.04);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.hero .btn-green {
  box-shadow: 0 16px 38px rgba(126, 211, 33, 0.2), inset 0 1px rgba(255, 255, 255, 0.26);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: #8da1b5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25px;
}

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

.hero-proof span:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin-inline-start: 9px;
  border-radius: 50%;
  background: #45bfff;
  box-shadow: 0 0 10px rgba(69, 191, 255, 0.85);
}

.hero-proof strong {
  color: #f4fbff;
  font-size: 12px;
}

.hero .cosmic-stage {
  position: relative;
  align-self: center;
  display: block;
  width: min(100%, 690px);
  min-height: 650px;
  margin-inline: auto;
  transform:
    perspective(1200px)
    rotateX(calc(var(--my) * -2.2deg))
    rotateY(calc(var(--mx) * 3.2deg))
    translate3d(calc(var(--mx) * 8px), calc(var(--my) * 8px + var(--hero-shift)), 0);
  transform-style: preserve-3d;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cosmic-stage::before {
  content: "";
  position: absolute;
  inset: 9% 4%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(86, 195, 255, 0.14), transparent 46%),
    radial-gradient(ellipse, rgba(17, 123, 255, 0.12), transparent 68%);
  filter: blur(8px);
}

.cosmic-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: saturate(1.16) contrast(1.05);
}

.cosmic-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  border: 1px solid rgba(80, 187, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  box-shadow: 0 0 24px rgba(30, 143, 255, 0.05), inset 0 0 18px rgba(30, 143, 255, 0.03);
}

.cosmic-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ed321;
  box-shadow: 0 0 16px #7ed321;
}

.cosmic-orbit--one {
  width: 69%;
  height: 38%;
  animation: orbit-breathe 7s ease-in-out infinite;
}

.cosmic-orbit--one::after {
  top: 4%;
  left: 28%;
}

.cosmic-orbit--two {
  width: 92%;
  height: 54%;
  border-color: rgba(126, 211, 33, 0.12);
  transform: translate(-50%, -50%) rotate(18deg);
  animation: orbit-breathe-two 9s ease-in-out infinite;
}

.cosmic-orbit--two::after {
  right: 13%;
  bottom: 11%;
  width: 5px;
  height: 5px;
  background: #43c9ff;
  box-shadow: 0 0 14px #43c9ff;
}

.cosmic-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(121, 205, 255, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 34%, rgba(255, 255, 255, 0.17), transparent 22%),
    radial-gradient(circle, rgba(8, 43, 81, 0.94), rgba(3, 14, 30, 0.86) 64%, rgba(2, 7, 16, 0.94));
  box-shadow:
    0 0 28px rgba(47, 173, 255, 0.32),
    0 0 80px rgba(17, 123, 255, 0.2),
    inset 0 0 35px rgba(55, 183, 255, 0.12);
  transform: translate(-50%, -50%) translateZ(38px);
  animation: core-float 5s ease-in-out infinite;
}

.cosmic-core::before,
.cosmic-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(75, 187, 255, 0.2);
}

.cosmic-core::before {
  inset: -14px;
}

.cosmic-core::after {
  inset: -29px;
  border-color: rgba(126, 211, 33, 0.09);
}

.cosmic-core img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(31, 163, 255, 0.52));
}

.cosmic-core span {
  margin-top: -22px;
  color: #a9dfff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cosmic-node {
  position: absolute;
  z-index: 8;
  display: grid;
  grid-template-columns: 38px auto;
  gap: 10px;
  align-items: center;
  min-width: 148px;
  padding: 9px 12px 9px 9px;
  border: 1px solid rgba(109, 198, 255, 0.22);
  border-radius: 15px;
  background: rgba(4, 15, 30, 0.7);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25), inset 0 0 24px rgba(37, 166, 255, 0.04);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  transform: translateZ(64px);
  animation: node-drift 6s ease-in-out infinite;
}

.cosmic-node b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(31, 148, 255, 0.28), rgba(21, 75, 139, 0.12));
  color: #7fd3ff;
  font-size: 10px;
  letter-spacing: 0.6px;
}

.cosmic-node span {
  color: #dbeeff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.cosmic-node--security {
  top: 15%;
  left: 4%;
}

.cosmic-node--field {
  top: 23%;
  right: 0;
  animation-delay: -1.8s;
}

.cosmic-node--iot {
  bottom: 20%;
  left: 0;
  animation-delay: -3.2s;
}

.cosmic-node--finance {
  right: 4%;
  bottom: 13%;
  animation-delay: -4.5s;
}

.cosmic-status {
  position: absolute;
  top: 8%;
  right: 18%;
  z-index: 7;
  display: grid;
  grid-template-columns: 8px auto;
  column-gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(126, 211, 33, 0.2);
  border-radius: 13px;
  background: rgba(4, 15, 28, 0.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cosmic-status i {
  grid-row: 1 / 3;
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ed321;
  box-shadow: 0 0 14px rgba(126, 211, 33, 0.9);
  animation: status-pulse 1.8s ease-in-out infinite;
}

.cosmic-status span {
  color: #96df62;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 1px;
}

.cosmic-status strong {
  color: #d7e9f7;
  font-size: 9px;
}

.cosmic-caption {
  position: absolute;
  bottom: 4%;
  left: 50%;
  z-index: 6;
  color: rgba(205, 232, 250, 0.62);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-scroll {
  position: absolute;
  right: 32px;
  bottom: 42px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8ca3b8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transform: rotate(90deg);
  transform-origin: right bottom;
}

.hero-scroll i {
  position: relative;
  display: block;
  width: 48px;
  height: 1px;
  overflow: hidden;
  background: rgba(117, 199, 255, 0.2);
}

.hero-scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #42c4ff, transparent);
  animation: scroll-line 2s linear infinite;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}

html[dir="rtl"] .hero::before {
  background:
    linear-gradient(270deg, rgba(2, 5, 12, 0.93) 0%, rgba(2, 5, 12, 0.68) 43%, transparent 67%),
    radial-gradient(circle at 88% 25%, rgba(17, 123, 255, 0.17), transparent 28%),
    linear-gradient(0deg, rgba(2, 5, 12, 0.92), transparent 35%);
}

html[dir="rtl"] .hero-noise {
  mask-image: linear-gradient(270deg, transparent 2%, #000 35%, #000 100%);
  -webkit-mask-image: linear-gradient(270deg, transparent 2%, #000 35%, #000 100%);
}

html[dir="rtl"] .hero .hero-copy h1 {
  letter-spacing: 0;
  line-height: 1;
}

html[dir="rtl"] .hero .hero-copy h1 span {
  letter-spacing: 0;
}

html[dir="rtl"] .cosmic-caption,
html[dir="rtl"] .cosmic-core span,
html[dir="rtl"] .cosmic-status span {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .hero-scroll {
  right: auto;
  left: 32px;
  transform: rotate(-90deg);
  transform-origin: left bottom;
}

@keyframes orbit-breathe {
  0%, 100% { transform: translate(-50%, -50%) rotate(-16deg) scale(1); opacity: 0.62; }
  50% { transform: translate(-50%, -50%) rotate(-12deg) scale(1.035); opacity: 1; }
}

@keyframes orbit-breathe-two {
  0%, 100% { transform: translate(-50%, -50%) rotate(18deg) scale(1); opacity: 0.55; }
  50% { transform: translate(-50%, -50%) rotate(23deg) scale(0.98); opacity: 0.86; }
}

@keyframes core-float {
  0%, 100% { transform: translate(-50%, -50%) translateZ(38px) translateY(0); }
  50% { transform: translate(-50%, -50%) translateZ(38px) translateY(-8px); }
}

@keyframes node-drift {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes scroll-line {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@media (max-width: 1180px) {
  .hero .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  }

  .hero .hero-copy h1 {
    font-size: clamp(50px, 6vw, 74px);
  }

  .hero .cosmic-stage {
    min-height: 590px;
  }

  .cosmic-node {
    min-width: 132px;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero::before,
  html[dir="rtl"] .hero::before {
    background:
      linear-gradient(180deg, rgba(2, 5, 12, 0.93) 0%, rgba(2, 5, 12, 0.68) 49%, transparent 76%),
      radial-gradient(circle at 50% 22%, rgba(17, 123, 255, 0.17), transparent 36%);
  }

  .hero .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 72px 0 118px;
  }

  .hero .hero-copy {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  .hero .hero-copy h2,
  .hero .hero-copy p {
    margin-inline: auto;
  }

  .hero .eyebrow,
  .hero .hero-actions,
  .hero-proof {
    justify-content: center;
  }

  .hero .cosmic-stage {
    min-height: 560px;
    width: min(100%, 720px);
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 700px) {
  .site-header .navbar {
    min-height: 70px;
  }

  .hero .hero-grid {
    padding: 56px 0 92px;
  }

  .hero .hero-copy h1 {
    font-size: clamp(48px, 15vw, 68px);
    line-height: 0.92;
    letter-spacing: -2.4px;
  }

  .hero .hero-copy h1 span {
    font-size: 0.46em;
    letter-spacing: -0.6px;
  }

  .hero .hero-copy h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .hero .hero-copy p {
    max-width: 580px;
    font-size: 15.5px;
  }

  .hero-proof {
    gap: 9px 13px;
    margin-top: 22px;
  }

  .hero-proof span:not(:last-child)::after {
    display: none;
  }

  .hero .cosmic-stage {
    min-height: 460px;
    margin-top: 8px;
  }

  .cosmic-core {
    width: 116px;
    height: 116px;
  }

  .cosmic-core img {
    width: 58px;
    height: 58px;
  }

  .cosmic-node {
    grid-template-columns: 31px auto;
    min-width: 116px;
    gap: 7px;
    padding: 7px;
    border-radius: 12px;
  }

  .cosmic-node b {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: 8px;
  }

  .cosmic-node span {
    max-width: 76px;
    font-size: 8px;
  }

  .cosmic-node--security {
    top: 12%;
    left: 1%;
  }

  .cosmic-node--field {
    top: 18%;
    right: 0;
  }

  .cosmic-node--iot {
    bottom: 16%;
    left: 0;
  }

  .cosmic-node--finance {
    right: 1%;
    bottom: 11%;
  }

  .cosmic-status {
    top: 4%;
    right: 12%;
  }
}

@media (max-width: 430px) {
  .hero .eyebrow {
    font-size: 10px;
    letter-spacing: 0.6px;
  }

  .hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero .hero-actions .btn {
    width: 100%;
  }

  .hero .cosmic-stage {
    min-height: 410px;
    width: calc(100% + 16px);
    margin-inline: -8px;
  }

  .cosmic-node span {
    display: none;
  }

  .cosmic-node {
    min-width: auto;
    grid-template-columns: 31px;
  }

  .cosmic-status {
    right: 7%;
  }
}

@media (hover: none), (pointer: coarse) {
  .hero .cosmic-stage {
    transform: translate3d(0, var(--hero-shift), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cosmic-orbit,
  .cosmic-core,
  .cosmic-node,
  .cosmic-status i,
  .hero-scroll i::after {
    animation: none !important;
  }

  .hero .cosmic-stage {
    transform: none;
    transition: none;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
