/* OMT V14 — live market ticker + final hero gateway */

/* The ticker occupies the deliberate 40px gap above the navigation. */
header {
  position: relative;
  z-index: 60;
}

.omt-market-ticker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 100;
  color: #fff;
  background: rgba(4, 19, 43, .96);
  border-bottom: 1px solid rgba(248, 200, 0, .22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
  font-family: Inter, Arial, sans-serif;
}

.omt-market-ticker__live {
  position: relative;
  z-index: 2;
  height: 100%;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 22px;
  font-family: 'ClashDisplay-Semibold', Inter, Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .11em;
  color: #F8C800;
  background: #061426;
  border-right: 1px solid rgba(248, 200, 0, .22);
  white-space: nowrap;
}

.omt-market-ticker__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35e77b;
  box-shadow: 0 0 0 0 rgba(53, 231, 123, .52);
  animation: omt-market-pulse 1.8s ease-out infinite;
}

.omt-market-ticker__viewport {
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
}

.omt-market-ticker__track {
  width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
  will-change: transform;
  animation: omt-market-scroll 34s linear infinite;
}

.omt-market-ticker:hover .omt-market-ticker__track {
  animation-play-state: paused;
}

.omt-market-ticker__group {
  height: 100%;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-right: 26px;
}

.omt-market-ticker__item {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .015em;
  color: rgba(255, 255, 255, .74);
}

.omt-market-ticker__item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .13);
}

.omt-market-ticker__code {
  font-family: 'ClashDisplay-Semibold', Inter, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .06em;
  color: #fff;
}

.omt-market-ticker__price {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .72);
}

.omt-market-ticker__change {
  min-width: 56px;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.omt-market-ticker__change.is-up { color: #46df86; }
.omt-market-ticker__change.is-down { color: #ff6262; }

@keyframes omt-market-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes omt-market-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(53, 231, 123, .52); }
  65%  { box-shadow: 0 0 0 6px rgba(53, 231, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 231, 123, 0); }
}

/* Existing navigation remains directly below the ticker. */
.tp-header-2-area {
  margin-top: 40px !important;
}

/* The final OMT cover is now the OMT gateway visual instead of the logo. */
.mxd-hero-02__cover-img {
  overflow: hidden;
  background: #061426;
}

.mxd-hero-02__cover-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  padding: 0;
  filter: none;
  transform: translateZ(0);
}

.mxd-hero-02__cover-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(3, 13, 34, .06) 0%, rgba(2, 9, 27, .18) 52%, rgba(1, 6, 20, .43) 100%),
    linear-gradient(180deg, rgba(1, 7, 23, .18) 0%, rgba(3, 14, 39, .08) 45%, rgba(1, 7, 24, .34) 100%);
}

/* Keep the outro text and scroll cue over the final image. */
.mxd-hero-02__outro,
.mxd-hero-02__bottom {
  z-index: 20;
}

@media (max-width: 767px) {
  .omt-market-ticker {
    height: 30px;
  }
  .omt-market-ticker__live {
    padding: 0 10px 0 12px;
    font-size: 9px;
    letter-spacing: .08em;
  }
  .omt-market-ticker__item {
    gap: 6px;
    padding: 0 12px;
    font-size: 10px;
  }
  .omt-market-ticker__code { font-size: 10px; }
  .omt-market-ticker__change { min-width: 48px; font-size: 9px; }
  .omt-market-ticker__track { animation-duration: 27s; }
  .tp-header-2-area { margin-top: 36px !important; }
  .mxd-hero-02__cover-img img {
    object-position: 58% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .omt-market-ticker__track,
  .omt-market-ticker__pulse {
    animation: none !important;
  }
}
