:root {
  --social-glow: rgba(36, 160, 237, 0.18);
}

.brand {
  gap: 0.95rem;
}

.brand img {
  width: 68px !important;
  height: 68px !important;
}

.brand strong {
  font-size: 1.32rem !important;
  letter-spacing: -0.6px;
}

.social-icon-btn {
  min-width: 48px;
  justify-content: center;
  padding: 0.75rem 0.95rem !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.social-icon-btn svg {
  flex-shrink: 0;
}

.social-icon-btn:hover {
  border-color: rgba(36, 160, 237, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 0 1px var(--social-glow) inset;
}

.social-button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-button-row .btn {
  flex: 1 1 11rem;
  justify-content: center;
}

.footer-note {
  margin: 0.65rem 0 0;
  max-width: 38rem;
  font-size: 0.94rem;
}

.footer-trust {
  margin: 0.75rem 0 0;
}

.certification-strip {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.certification-strip--home {
  gap: 2rem;
}

.cert-badge {
  display: block;
  object-fit: contain;
}

.footer-links {
  justify-content: flex-end;
}

.service-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 1.5rem !important;
}

.service-card {
  grid-column: span 4;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card .list {
  margin-top: auto;
  padding-top: 1rem;
}

.service-card:nth-child(4) {
  animation-delay: 0.4s;
  grid-column: 3 / span 4;
}

.service-card:nth-child(5) {
  animation-delay: 0.5s;
  grid-column: 7 / span 4;
}

.proof-card {
  padding: 2rem;
  border: 1px solid rgba(36, 160, 237, 0.28);
  background:
    radial-gradient(120% 140% at 85% 15%, rgba(36, 160, 237, 0.14), transparent 45%),
    linear-gradient(135deg, rgba(36, 160, 237, 0.1), rgba(124, 58, 237, 0.1));
}

.proof-eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: #9ed8ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof-card--featured {
  display: grid;
  gap: 1.5rem;
}

.proof-header {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .9fr);
  gap: 1.5rem;
  align-items: center;
}

.proof-copy h2 {
  margin-bottom: 1rem;
}

.proof-lead {
  font-size: 1.08rem;
  line-height: 1.75;
}

.proof-logo-wrap {
  display: grid;
  place-items: center;
  padding: 1rem;
  min-height: 170px;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.proof-logo {
  width: min(100%, 280px);
  height: auto;
  display: block;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-stat {
  display: grid;
  gap: .35rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.proof-stat strong {
  font-size: 2rem;
  line-height: 1;
  color: #ffffff;
}

.proof-stat span {
  color: #c6d3df;
  font-size: 0.95rem;
  line-height: 1.5;
}

.proof-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
}

.section-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 1.75rem;
  align-items: center;
  padding: 1.8rem !important;
  margin: 0 auto 2rem;
}

.section-feature__content {
  display: grid;
  align-content: center;
  gap: 0.95rem;
  max-width: 38rem;
}

.section-feature__content h2 {
  margin: 0;
  max-width: 12ch;
  line-height: 1.12;
}

.section-feature__content p {
  margin: 0;
}

.section-feature__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.section-feature__chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d8e6ef;
  font-size: 0.84rem;
}

.section-feature__visual {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 120% at 82% 18%, rgba(36, 160, 237, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(36, 160, 237, 0.1), rgba(124, 58, 237, 0.08));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.section-feature__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: saturate(1.03) contrast(1.02) brightness(0.9);
}

.section-feature__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(6, 21, 32, 0.32) 0%, rgba(6, 21, 32, 0.08) 18%, rgba(6, 21, 32, 0.04) 100%),
    linear-gradient(180deg, rgba(6, 21, 32, 0.03) 0%, rgba(6, 21, 32, 0.1) 64%, rgba(6, 21, 32, 0.24) 100%);
}

.homepage-card-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.homepage-card-row .card {
  flex: 1 1 230px;
  max-width: 255px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.homepage-card-row .card a {
  margin-top: auto !important;
}

@media (max-width: 860px) {
  .certification-strip {
    gap: 1rem;
  }

  .footer-trust {
    text-align: center;
  }

  .footer-note {
    margin-top: 0;
    text-align: center;
  }

  .proof-header {
    grid-template-columns: 1fr;
  }

  .proof-logo-wrap {
    min-height: 0;
  }

  .proof-stats {
    grid-template-columns: 1fr;
  }

  .section-feature {
    grid-template-columns: 1fr;
  }

  .section-feature__content h2 {
    max-width: none;
  }

  .section-feature__visual {
    min-height: 300px;
  }
}

@keyframes orbitRocketLaunch {
  0% {
    transform: translateY(0) rotate(10deg) scale(1);
  }
  34% {
    transform: translateY(-10px) rotate(7deg) scale(1.02);
  }
  100% {
    transform: translateY(-48px) rotate(4deg) scale(0.94);
  }
}

@keyframes orbitRocketFlame {
  0% {
    transform: translateX(-50%) scaleY(0.88);
  }
  100% {
    transform: translateX(-50%) scaleY(1.4);
  }
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  width: 60px;
  height: 76px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 30px 30px 16px 16px / 40px 40px 18px 18px !important;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.96) 0 11%, rgba(255, 255, 255, 0.16) 12% 20%, transparent 21%),
    linear-gradient(180deg, #49b8ff 0%, #6b6cff 54%, #ef4aa7 100%) !important;
  box-shadow: 0 18px 36px rgba(7, 20, 31, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  color: transparent !important;
  font-size: 0 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(18px) rotate(10deg) scale(0.92);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.back-to-top::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 42px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(180deg, rgba(10, 26, 40, 0.24), rgba(10, 26, 40, 0.42)),
    linear-gradient(90deg, rgba(55, 187, 255, 0.9) 0 28%, rgba(107, 108, 255, 0.95) 28% 72%, rgba(239, 74, 167, 0.9) 72% 100%);
  clip-path: polygon(0 100%, 14% 46%, 28% 82%, 38% 18%, 62% 18%, 72% 82%, 86% 46%, 100% 100%, 76% 100%, 66% 76%, 50% 100%, 34% 76%, 24% 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.back-to-top::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 18px;
  height: 34px;
  transform: translateX(-50%) scaleY(0.55);
  transform-origin: top center;
  opacity: 0;
  background: linear-gradient(180deg, rgba(255, 244, 163, 0.98) 0%, rgba(255, 164, 87, 0.96) 38%, rgba(251, 113, 133, 0.88) 72%, rgba(251, 113, 133, 0) 100%);
  clip-path: polygon(50% 0, 15% 42%, 0 100%, 35% 78%, 50% 100%, 65% 78%, 100% 100%, 85% 42%);
  filter: drop-shadow(0 10px 14px rgba(244, 114, 182, 0.32));
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) rotate(10deg) scale(1);
}

.back-to-top:hover {
  transform: translateY(-5px) rotate(6deg) scale(1.02);
  box-shadow: 0 24px 42px rgba(7, 20, 31, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.back-to-top:hover::after {
  opacity: 0.72;
  transform: translateX(-50%) scaleY(0.9);
}

.back-to-top:active {
  transform: translateY(-2px) rotate(8deg) scale(0.98);
}

.back-to-top.is-launching {
  animation: orbitRocketLaunch 0.68s cubic-bezier(0.22, 0.7, 0.24, 1) both;
}

.back-to-top.is-launching::before {
  transform: translateX(-50%) translateY(6px);
}

.back-to-top.is-launching::after {
  opacity: 1;
  transform: translateX(-50%) scaleY(1.38);
  animation: orbitRocketFlame 0.26s ease-in-out 0s 2 alternate;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .brand img {
    width: 60px !important;
    height: 60px !important;
  }

  .brand strong {
    font-size: 1.16rem !important;
  }

  .social-button-row .btn {
    flex-basis: 100%;
  }

  .section-feature {
    padding: 1.4rem !important;
  }

  .section-feature__visual {
    min-height: 240px;
  }


  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 68px;
  }
}

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr !important;
  }
}


/* Orbit structure refactor */
.orbit-nav-group {
  position: relative;
  display: flex;
  align-items: center;
}

.orbit-nav-group::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 0.55rem;
}

.orbit-nav-group > a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.orbit-nav-caret {
  font-size: 0.72rem;
  opacity: 0.74;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.orbit-nav-group:focus-within .orbit-nav-caret,
.orbit-nav-group.is-open .orbit-nav-caret {
  opacity: 1;
  transform: rotate(180deg);
}

.orbit-services-mega-menu {
  position: absolute;
  top: calc(100% + 0.18rem);
  left: 0;
  width: min(760px, calc(100vw - 3rem));
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 36, 51, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.orbit-nav-group:focus-within .orbit-services-mega-menu,
.orbit-nav-group.is-open .orbit-services-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.orbit-services-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.orbit-services-mega-link {
  display: grid;
  gap: 0.45rem;
  min-height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.orbit-services-mega-link strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.orbit-services-mega-link span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.orbit-services-mega-link:hover,
.orbit-services-mega-link.is-active {
  transform: translateY(-3px);
  border-color: rgba(36, 160, 237, 0.3);
  background: rgba(36, 160, 237, 0.08);
}

.orbit-service-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
}

.orbit-services-mega-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

.orbit-services-mega-footer a {
  color: var(--ink);
  white-space: nowrap;
}

.mobile-submenu-group {
  display: none;
}

.mobile-submenu-toggle {
  width: 100%;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.mobile-submenu-toggle:hover,
.mobile-submenu-group.is-open .mobile-submenu-toggle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.mobile-submenu-group.is-current .mobile-submenu-toggle {
  color: var(--ink);
}

.mobile-submenu-caret {
  font-size: 0.76rem;
  transition: transform 0.25s ease;
}

.mobile-submenu-group.is-open .mobile-submenu-caret {
  transform: rotate(180deg);
}

.mobile-submenu-panel {
  display: none;
  padding: 0.2rem 0 0.55rem 0.75rem;
}

.mobile-submenu-group.is-open .mobile-submenu-panel {
  display: block;
}

.mobile-submenu-panel a {
  font-size: 0.95rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: inherit;
  opacity: 0.88;
}

.breadcrumbs span {
  opacity: 0.68;
}

.detail-pill-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.detail-split-grid {
  display: grid;
  gap: 2rem;
}

.detail-stack {
  display: grid;
  gap: 1.5rem;
}

.detail-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.detail-aside {
  display: grid;
  gap: 1.5rem;
}

.detail-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.detail-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  padding: 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.detail-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 160, 237, 0.28);
  background: rgba(36, 160, 237, 0.05);
}

.detail-link-card strong {
  color: var(--ink);
}

.detail-link-card span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.detail-mini-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.gradient-text {
  display: inline-block;
  max-width: 100%;
  background-repeat: no-repeat;
  background-size: 220% 100% !important;
  animation: orbitGradientSweep 7.6s ease-in-out infinite;
}

@keyframes orbitGradientSweep {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body[data-page="index"] .hero .gradient-text {
  display: inline;
  white-space: normal;
}

@media (min-width: 1180px) {
  body[data-page="index"] .hero-grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.58fr);
    gap: 2.2rem;
  }
}

.detail-aside .card .btn {
  margin-top: 0.85rem;
}

.detail-pricing-note {
  margin-top: 1.35rem;
  max-width: 32ch;
  font-size: 0.85rem;
  line-height: 1.72;
  color: var(--muted);
}

@media (min-width: 901px) {
  .detail-split-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.92fr);
  }
}

@media (max-width: 900px) {
  .orbit-services-mega-menu {
    display: none;
  }

  .mobile-submenu-group {
    display: block;
  }
}

@media (max-width: 720px) {
  .orbit-services-mega-grid,
  .detail-link-grid,
  .detail-card-grid {
    grid-template-columns: 1fr;
  }

  .orbit-services-mega-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
