/* =========================================================
   OrganicMetric — Global Footer
   PREMIUM DARK TECHNOLOGY FOOTER
   ========================================================= */

#om-global-footer.footer {
  --footer-bg: #07101f;
  --footer-bg-deep: #050b16;
  --footer-panel: rgba(20, 31, 55, .72);
  --footer-line: rgba(142, 164, 205, .16);
  --footer-text: #f5f7ff;
  --footer-muted: #aebbd2;
  --footer-soft: #8392ad;
  --footer-blue: #3f7cff;
  --footer-violet: #6947ff;
  --footer-lime: #c9ff4a;

  position: relative;
  width: 100%;
  margin: 0;
  padding: 78px 0 28px;
  overflow: hidden;
  display: block;
  box-sizing: border-box;
  isolation: isolate;

  background:
    radial-gradient(circle at 76% 14%, rgba(63,124,255,.10), transparent 24%),
    radial-gradient(circle at 92% 52%, rgba(105,71,255,.12), transparent 25%),
    radial-gradient(circle at 8% 85%, rgba(63,124,255,.055), transparent 25%),
    linear-gradient(145deg, var(--footer-bg) 0%, #091426 48%, var(--footer-bg-deep) 100%);

  color: var(--footer-text);
  border-top: 1px solid rgba(112, 136, 183, .18);
}

#om-global-footer *,
#om-global-footer *::before,
#om-global-footer *::after {
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   Decorative atmosphere
   --------------------------------------------------------- */

#om-global-footer .footer-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .6;
  z-index: -2;
}

#om-global-footer .footer-glow-one {
  width: 360px;
  height: 360px;
  right: -100px;
  top: 70px;
  background: rgba(58, 102, 255, .13);
}

#om-global-footer .footer-glow-two {
  width: 280px;
  height: 280px;
  left: -100px;
  bottom: -100px;
  background: rgba(104, 70, 255, .09);
}

#om-global-footer .footer-orbit-art {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -250px;
  top: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .85;
}

#om-global-footer .footer-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(74, 113, 255, .30);
  border-radius: 50%;
  transform-origin: center;
}

#om-global-footer .footer-orbit-a {
  width: 570px;
  height: 230px;
  transform: translate(-50%, -50%) rotate(-31deg);
}

#om-global-footer .footer-orbit-b {
  width: 520px;
  height: 300px;
  transform: translate(-50%, -50%) rotate(28deg);
  border-color: rgba(108, 74, 255, .24);
}

#om-global-footer .footer-orbit-c {
  width: 350px;
  height: 350px;
  transform: translate(-50%, -50%);
  border-color: rgba(75, 124, 255, .16);
}

#om-global-footer .footer-orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #477dff;
  box-shadow: 0 0 18px rgba(71,125,255,.8);
}

#om-global-footer .footer-orbit-dot-a {
  left: 18%;
  top: 32%;
}

#om-global-footer .footer-orbit-dot-b {
  right: 17%;
  top: 67%;
  width: 7px;
  height: 7px;
  background: #6e55ff;
}

/* ---------------------------------------------------------
   Footer container
   --------------------------------------------------------- */

#om-global-footer .footer-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   Main footer grid
   --------------------------------------------------------- */

#om-global-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.12fr;
  gap: 48px;
  align-items: start;
}

/* ---------------------------------------------------------
   Brand
   --------------------------------------------------------- */

#om-global-footer .footer-brand {
  min-width: 0;
}

#om-global-footer .footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin: 0 0 18px;
}

#om-global-footer .footer-brand img {
  display: block;
  width: 174px;
  height: auto;
  margin: 0;
  filter: brightness(0) invert(1);
  opacity: .96;
}

#om-global-footer .footer-brand p,
#om-global-footer .footer-newsletter p {
  margin: 0;
  color: var(--footer-muted);
  font: 400 15px/1.72 "DM Sans", sans-serif;
}

#om-global-footer .footer-brand p {
  max-width: 390px;
}

/* ---------------------------------------------------------
   Social buttons
   --------------------------------------------------------- */

#om-global-footer .footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

#om-global-footer .footer-socials a {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 161, 205, .16);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(30,43,69,.80), rgba(13,23,42,.76));
  color: #edf3ff;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 12px 28px rgba(0,0,0,.16);
  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease;
}

#om-global-footer .footer-socials a:hover {
  transform: translateY(-3px);
  border-color: rgba(74,124,255,.58);
  background: linear-gradient(145deg, rgba(34,55,94,.92), rgba(17,29,52,.92));
  box-shadow:
    0 12px 28px rgba(39,78,178,.18),
    0 0 24px rgba(63,124,255,.10);
}

#om-global-footer .footer-socials svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
}

#om-global-footer .footer-socials svg rect,
#om-global-footer .footer-socials svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

#om-global-footer .footer-socials .footer-youtube-play {
  fill: #0b1425;
}

/* ---------------------------------------------------------
   Stats
   --------------------------------------------------------- */

#om-global-footer .footer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--footer-line);
  max-width: 530px;
}

#om-global-footer .footer-stat {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

#om-global-footer .footer-stat-icon {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  color: var(--footer-blue);
}

#om-global-footer .footer-stat-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
}

#om-global-footer .footer-stat > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#om-global-footer .footer-stat strong {
  color: #f4f7ff;
  font: 700 20px/1.05 "Space Grotesk", sans-serif;
}

#om-global-footer .footer-stat small {
  margin-top: 5px;
  color: #9eacc5;
  font: 500 11px/1.25 "DM Sans", sans-serif;
}

/* ---------------------------------------------------------
   Column headings
   --------------------------------------------------------- */

#om-global-footer h4 {
  margin: 0 0 9px;
  color: #f5f7ff;
  font: 700 18px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: -.3px;
}

#om-global-footer .footer-heading-line {
  display: block;
  width: 34px;
  height: 3px;
  margin: 0 0 19px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--footer-blue), var(--footer-violet));
  box-shadow: 0 0 12px rgba(72,112,255,.30);
}

/* ---------------------------------------------------------
   Service / company lists
   --------------------------------------------------------- */

#om-global-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#om-global-footer li,
#om-global-footer li a {
  color: #aebbd1;
  font: 500 15px/1.82 "DM Sans", sans-serif;
  text-decoration: none;
}

#om-global-footer li {
  margin: 0;
}

#om-global-footer li a {
  display: inline-block;
  transition: color .2s ease, transform .2s ease;
}

#om-global-footer li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* ---------------------------------------------------------
   Newsletter
   --------------------------------------------------------- */

#om-global-footer .footer-newsletter p {
  max-width: 330px;
  margin-bottom: 27px;
}

#om-global-footer .footer-email {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 380px;
}

#om-global-footer .footer-email input {
  min-width: 0;
  width: 100%;
  height: 58px;
  border: 1px solid rgba(131, 153, 198, .20);
  border-radius: 14px;
  padding: 0 18px;
  background: rgba(23, 34, 57, .76);
  color: #f4f7ff;
  font: 500 14px "DM Sans", sans-serif;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#om-global-footer .footer-email input::placeholder {
  color: #8998b2;
}

#om-global-footer .footer-email input:focus {
  border-color: rgba(82,126,255,.70);
  background: rgba(26,39,65,.92);
  box-shadow:
    0 0 0 4px rgba(63,124,255,.09),
    0 12px 30px rgba(0,0,0,.12);
}

#om-global-footer .footer-email button {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #3f7cff, #6046ff);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 14px 30px rgba(55,81,213,.28),
    inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

#om-global-footer .footer-email button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px rgba(55,81,213,.38),
    0 0 26px rgba(71,104,255,.18);
}

#om-global-footer .footer-email button svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

#om-global-footer .footer-newsletter-note {
  display: block;
  margin-top: 15px;
  color: #7f8da6;
  font: 500 12px/1.4 "DM Sans", sans-serif;
}

/* ---------------------------------------------------------
   Handwritten brand statement
   --------------------------------------------------------- */

#om-global-footer .footer-quote {
  margin-top: 36px;
  color: #4f7dff;
  font-family: cursive;
  font-size: 25px;
  line-height: 1.05;
  font-style: italic;
  transform: rotate(-4deg);
  text-shadow: 0 0 18px rgba(65,116,255,.14);
}

#om-global-footer .footer-quote span {
  display: block;
}

#om-global-footer .footer-quote span:nth-child(2) {
  margin-left: 12px;
}

#om-global-footer .footer-quote span:nth-child(3) {
  margin-left: 23px;
}

/* ---------------------------------------------------------
   Copyright row
   --------------------------------------------------------- */

#om-global-footer .copy {
  position: relative;
  z-index: 2;
  margin-top: 58px;
  padding-top: 25px;
  border-top: 1px solid var(--footer-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #8998b1;
  font: 500 13px/1.5 "DM Sans", sans-serif;
}

#om-global-footer .footer-copy-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

#om-global-footer .footer-copy-right b {
  color: #4b80ff;
  font-weight: 700;
}

#om-global-footer .footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 28px;
  color: #c0cade;
  text-decoration: none;
  transition: color .2s ease;
}

#om-global-footer .footer-back-top:hover {
  color: #ffffff;
}

#om-global-footer .footer-back-top > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(90,117,178,.34);
  border-radius: 50%;
  color: #75a0ff;
  font-size: 22px;
  line-height: 1;
}

/* ---------------------------------------------------------
   Focus states
   --------------------------------------------------------- */

#om-global-footer a:focus-visible,
#om-global-footer button:focus-visible,
#om-global-footer input:focus-visible {
  outline: 2px solid #6d8fff;
  outline-offset: 3px;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1000px) {
  #om-global-footer .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 38px;
  }

  #om-global-footer .footer-newsletter {
    grid-column: 1 / -1;
    max-width: 620px;
  }

  #om-global-footer .footer-quote {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {
  #om-global-footer.footer {
    padding: 58px 0 24px;
  }

  #om-global-footer .footer-inner {
    width: calc(100% - 38px);
  }

  #om-global-footer .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 25px;
  }

  #om-global-footer .footer-brand,
  #om-global-footer .footer-newsletter {
    grid-column: 1 / -1;
  }

  #om-global-footer .footer-brand img {
    width: 166px;
  }

  #om-global-footer .footer-brand p {
    max-width: 480px;
  }

  #om-global-footer .footer-stats {
    gap: 10px;
  }

  #om-global-footer .footer-stat strong {
    font-size: 18px;
  }

  #om-global-footer .footer-stat small {
    font-size: 10px;
  }

  #om-global-footer .footer-newsletter {
    max-width: none;
  }

  #om-global-footer .footer-newsletter p {
    max-width: 470px;
  }

  #om-global-footer .footer-quote {
    position: static;
    margin-top: 30px;
  }

  #om-global-footer .copy {
    display: block;
    margin-top: 42px;
  }

  #om-global-footer .footer-copy-right {
    flex-wrap: wrap;
    margin-top: 16px;
  }

  #om-global-footer .footer-back-top {
    margin-left: 0;
    margin-top: 12px;
  }

  #om-global-footer .footer-orbit-art {
    width: 430px;
    height: 430px;
    right: -270px;
    top: 30px;
    opacity: .55;
  }
}

/* =========================================================
   Small mobile
   ========================================================= */

@media (max-width: 470px) {
  #om-global-footer .foot-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  #om-global-footer .footer-brand,
  #om-global-footer .footer-newsletter {
    grid-column: auto;
  }

  #om-global-footer .footer-stats {
    grid-template-columns: 1fr;
    gap: 17px;
    max-width: 260px;
  }

  #om-global-footer .footer-socials a {
    width: 48px;
    height: 48px;
  }

  #om-global-footer .footer-email input,
  #om-global-footer .footer-email button {
    height: 54px;
  }

  #om-global-footer .footer-email button {
    flex-basis: 54px;
    width: 54px;
  }

  #om-global-footer .footer-copy-right {
    display: block;
  }

  #om-global-footer .footer-back-top {
    margin-top: 15px;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  #om-global-footer *,
  #om-global-footer *::before,
  #om-global-footer *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   Animated right-side star field
   Works inside the existing decorative orbit artwork.
   ========================================================= */

#om-global-footer .footer-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  opacity: .92;
}

#om-global-footer .footer-orbit,
#om-global-footer .footer-orbit-dot {
  z-index: 1;
}

#om-global-footer .footer-quote {
  position: relative;
  z-index: 3;
}

/* Keep the quote above the animated particles on tablet/mobile. */
@media (max-width: 1000px) {
  #om-global-footer .footer-orbit-art {
    z-index: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #om-global-footer .footer-stars {
    display: none;
  }
}


/* =========================================================
   Footer star canvas — visibility fix
   The artwork sits above the footer background but below
   the real footer content.
   ========================================================= */

#om-global-footer .footer-orbit-art {
  z-index: 0;
}

#om-global-footer .footer-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#om-global-footer .footer-orbit,
#om-global-footer .footer-orbit-dot {
  z-index: 1;
}

#om-global-footer .footer-quote,
#om-global-footer .footer-inner {
  position: relative;
  z-index: 2;
}

@media (max-width: 1000px) {
  #om-global-footer .footer-orbit-art {
    z-index: 0;
  }
}

/* =========================================================
   OrganicMetric — Animated Galaxy Rings
   ---------------------------------------------------------
   Keeps the existing footer design.
   Only the decorative orbital rings move.
   ========================================================= */

#om-global-footer .footer-orbit-a,
#om-global-footer .footer-orbit-b,
#om-global-footer .footer-orbit-c {
  transform-origin: center center;
  will-change: transform;
}

/* Large outer orbit */
#om-global-footer .footer-orbit-a {
  animation: omFooterOrbitA 24s linear infinite;
}

/* Middle orbit — opposite direction */
#om-global-footer .footer-orbit-b {
  animation: omFooterOrbitB 31s linear infinite;
}

/* Inner circular orbit */
#om-global-footer .footer-orbit-c {
  animation: omFooterOrbitC 18s linear infinite;
}

@keyframes omFooterOrbitA {
  from {
    transform: translate(-50%, -50%) rotate(-31deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(329deg);
  }
}

@keyframes omFooterOrbitB {
  from {
    transform: translate(-50%, -50%) rotate(28deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(-332deg);
  }
}

@keyframes omFooterOrbitC {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  #om-global-footer .footer-orbit-a,
  #om-global-footer .footer-orbit-b,
  #om-global-footer .footer-orbit-c {
    animation: none !important;
  }
}
