.market-page {
  background: #0b0b11;
  color: #f4f9ff;
}
.market-page header, .market-page footer {
  background: #121923;
  border-color: #203542;
}
.market-page nav .navlinks a, .market-page footer a, .market-page footer p {
  color: #e7f2f8;
}
.market, .market-promo {
  --market-ink: #f4f9ff;
  --market-copy: #c6d6e2;
  --market-line: #203542;
  --market-accent: #75e1ff;
  background: #0b0b11;
  color: var(--market-ink);
}
.market-wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.market h1, .market h2, .market h3, .market-promo h2 { color: var(--market-ink); }
.market h1, .market-promo h2 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  letter-spacing: -.06em;
  line-height: 1.04;
  overflow-wrap: anywhere;
  margin: .2em 0;
}
.market h2 { font-size: clamp(1.65rem, 3.4vw, 2.55rem); line-height: 1.13; }
.market p, .market li, .market-promo p { color: var(--market-copy); }
.market .market-lead { font-size: clamp(1.2rem, 2.4vw, 1.65rem); line-height: 1.36; max-width: 34ch; }
.market-kicker { color: var(--market-accent) !important; font-size: .84rem; font-weight: 750; letter-spacing: .1em; }
.market-hero, .market-promo {
  padding-block: clamp(2.75rem, 8vw, 6.25rem);
  background: linear-gradient(124deg, #0b0b11 32%, #102b39 100%);
}
.market-split, .market-grid {
  display: grid;
  align-items: stretch;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.market-split, .market-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.market-split { gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.market-section { padding-block: clamp(2rem, 5vw, 4rem); border-top: 0; }
.market #solutions, .market #consultation { scroll-margin-top: 6rem; }
.market-card, .market-visual, .market-fields {
  background: #121923;
  border: 1px solid var(--market-line);
  border-radius: 18px;
  padding: clamp(1rem, 2.6vw, 1.6rem);
}
.market-card { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.market-card h2, .market-card h3 { margin-block: .35rem; }
.market-card:hover:is(a) { border-color: var(--market-accent); }
.market-tag { font-size: .75rem; font-weight: 750; color: var(--market-accent); letter-spacing: .04em; }
.market-link { margin-top: auto; color: var(--market-accent); font-weight: 750; }
.market-button {
  display: inline-block;
  padding: .78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(110deg, #075da8, #00798f);
  color: #fff;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}
.market-button:hover:is(a) { background: #084e91; color: #fff; }
.market-back { display: inline-block; margin-bottom: 1rem; color: var(--market-accent); }
.market-visual { margin: 0; box-shadow: 0 16px 38px #0005; }
.market-visual img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 11px; }
.market-visual figcaption { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding-top: .7rem; font-size: .86rem; color: var(--market-copy); }
.market-visual figcaption span { border-radius: 8px; background: #162430; padding: .7rem; }
.market-visual strong { display: block; color: var(--market-ink); }
.market-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; padding-left: 0; list-style: none; counter-reset: market-step; }
.market-steps li { background: #121923; padding: .9rem; border: 1px solid var(--market-line); border-radius: 12px; counter-increment: market-step; }
.market-steps li::before { content: counter(market-step); display: block; font-weight: 800; color: var(--market-accent); }
.market details { background: #121923; color: var(--market-ink); border-color: var(--market-line); }
.market summary { color: var(--market-ink); cursor: pointer; }
.market-fields { max-width: 54rem; }
.market-fields fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.market-fields legend { margin-bottom: 1rem; font-weight: 700; }
.market-fields label { min-width: 0; color: var(--market-copy); font-weight: 650; }
.market-fields :is(input, select, textarea) {
  display: block;
  width: 100%;
  font: inherit;
  padding: .6rem;
  margin-top: .35rem;
  background: #17212c;
  color: var(--market-copy);
  border: 1px solid var(--market-line);
  border-radius: 8px;
  opacity: 1;
}
.market-fields button { margin-top: 1rem; background: #223646; color: #c6d6e2; }
.market-wide { grid-column: 1 / -1; }
.market :focus-visible, .market-promo :focus-visible { outline: 3px solid #1685e2; outline-offset: 4px; }
@media (max-width: 850px) {
  .market-grid, .market-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .market-split, .market-grid, .market-steps { grid-template-columns: minmax(0, 1fr); }
  .market-page nav { flex-wrap: wrap; justify-content: center; gap: .5rem; }
  .market-page .navlinks { justify-content: center; flex-wrap: wrap; gap: .45rem .85rem; }
}
.market-visual figcaption .market-chart, .market-visual figcaption .market-product {
  display: flex;
  gap: .28rem;
  padding: .25rem 0;
  height: 2.8rem;
  align-items: end;
}
.market-chart i { flex: 1; border-radius: 4px; background: #2b82d2; height: 50%; }
.market-chart i:nth-child(2n) { height: 75%; background: #78b5ed; }
.market-chart i:last-child { height: 100%; }
.market-visual .market-product { align-items: center; }
.market-visual .market-product img { width: 42px; height: 30px; border-radius: 4px; }
.market-product i { min-width: 0; height: 6px; flex: 1; border-radius: 6px; background: #9bbbd9; }
.market-page header nav {
  padding-block: .55rem;
  gap: .5rem 1.25rem;
}
.market-page header .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.market-page header .brand img {
  display: block;
  width: 80px;
  height: 64px;
  object-fit: contain;
}
.market h1 { font-size: clamp(2rem, 5vw, 4.1rem); }
.market .market-hero { padding-block: clamp(2rem, 4.5vw, 4rem); }
.market-promo { padding-block: clamp(2.5rem, 6vw, 5rem); }
.market-promo .market-visual { max-width: 580px; }
@media (max-width: 600px) {
  .market-page header .brand img { width: 64px; height: 48px; }
  .market-page header .navlinks a { font-size: .86rem; }
}

/* Match the public site's shared dark surfaces after its global section rules. */
body.market-page > header, body.market-page > footer {
  background: #0b0b11;
  border-color: #203542;
}
body.market-page main.market > section {
  background: #0b0b11;
  border: 0;
}
body.market-page main.market > .market-hero, body main > section.market-promo {
  background: radial-gradient(ellipse at 83% 48%, #102b39, #0b0b11 70%);
  border: 0;
}
.market .market-button, .market-promo .market-button { color: #fff; }
.market .market-fields button:disabled { background: #223646; color: #c6d6e2; }
.market .market-card, .market .market-steps li, .market .market-visual,
.market-promo .market-visual { background-color: #14171f; }
.market details { border: 1px solid var(--market-line); border-radius: 12px; }

.market-promo {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.market-promo .market-visual {
  position: relative;
  overflow: hidden;
}
.market-promo .market-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 39%, #81e9ff24 49%, transparent 60%);
  opacity: 0;
}
@keyframes market-arrive {
  from { opacity: .35; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes market-flare {
  0% { opacity: 0; transform: translateX(-78%); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateX(78%); }
}
@keyframes market-chart-rise {
  from { transform: scaleY(.12); }
  to { transform: scaleY(1); }
}
@keyframes market-halo {
  0%, 100% { box-shadow: 0 16px 38px #0005; }
  55% { box-shadow: 0 12px 48px #0182ae60; border-color: #4e9cbb; }
}
@media (prefers-reduced-motion: no-preference) {
  .market-promo.market-in-view .market-split > div {
    animation: market-arrive .85s ease-out both;
  }
  .market-promo.market-in-view .market-visual {
    animation: market-arrive 1s .15s ease-out both, market-halo 2.8s .2s ease-in-out both;
  }
  .market-promo.market-in-view .market-visual::after {
    animation: market-flare 1.65s .4s ease-in-out both;
  }
  .market-promo.market-in-view .market-chart i {
    transform-origin: bottom;
    animation: market-chart-rise 1s .48s cubic-bezier(.2,.75,.25,1) both;
  }
  .market-promo.market-in-view .market-chart i:nth-child(2) { animation-delay: .61s; }
  .market-promo.market-in-view .market-chart i:nth-child(3) { animation-delay: .74s; }
  .market-promo.market-in-view .market-chart i:nth-child(4) { animation-delay: .87s; }
  .market-promo.market-in-view .market-chart i:nth-child(5) { animation-delay: 1s; }
  .market-promo .market-button { transition: transform .22s ease, box-shadow .22s ease; }
  .market-promo .market-button:is(:hover, :focus-visible) {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px #008cbb68;
  }
}

.market-scene {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  container-type: inline-size;
}
.market-scene .market-shoe {
  position: absolute;
  inset: 0;
  clip-path: polygon(50.5% 49%, 53% 46%, 55% 43%, 58% 40%, 60% 40%, 61% 44%, 61% 50%, 59% 53%, 50.5% 56%);
  transform-origin: 56% 50%;
  pointer-events: none;
}
.market-orbit {
  position: absolute;
  left: 15%;
  top: 4%;
  width: 39%;
  height: 43%;
  transform: rotate(-18deg);
  pointer-events: none;
}
.market-orbit i {
  position: absolute;
  inset: 46% auto auto 49%;
  width: clamp(4px, 1.4cqw, 8px);
  aspect-ratio: 1;
  opacity: .85;
  background: #d5fcff;
  clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 39%);
}
.market-orbit i:nth-child(2) { top: 20%; left: 27%; }
.market-orbit i:nth-child(3) { top: 74%; left: 82%; }
.market-notes {
  position: absolute;
  left: 42%;
  top: 50%;
  pointer-events: none;
  color: #a9f7ff;
  font-size: clamp(12px, 4cqw, 24px);
  text-shadow: 0 0 8px #00d9ff;
}
.market-notes i { position: absolute; font-style: normal; opacity: 0; }
.market-scene-toggle {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  z-index: 1;
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #79d3e886;
  border-radius: 50%;
  color: #f4f9ff;
  background: #0b1725e8;
  cursor: pointer;
}
@keyframes market-star-orbit {
  from { transform: rotate(0deg) translateX(15cqw) rotate(0deg); }
  to { transform: rotate(360deg) translateX(15cqw) rotate(-360deg); }
}
@keyframes market-note-float {
  0% { opacity: 0; transform: translate(0, 0) rotate(-10deg); }
  20% { opacity: 1; }
  68% { opacity: .85; }
  100% { opacity: 0; transform: translate(6cqw, -15cqw) rotate(16deg); }
}
@keyframes market-shoe-dance {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-1.1cqw) rotate(-8deg); }
  55% { transform: translateY(-.2cqw) rotate(4deg); }
  75% { transform: translateY(-.65cqw) rotate(-4deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .market-scene-toggle:not([hidden]) { display: inline-grid; place-items: center; }
  .market-orbit i { animation: market-star-orbit 6s linear infinite; }
  .market-orbit i:nth-child(2) { animation-delay: -2s; }
  .market-orbit i:nth-child(3) { animation-delay: -4s; }
  .market-notes i { animation: market-note-float 2.15s ease-out infinite; }
  .market-notes i:nth-child(2) { animation-delay: -.72s; }
  .market-notes i:nth-child(3) { animation-delay: -1.44s; }
  .market-scene .market-shoe { animation: market-shoe-dance 1.65s ease-in-out infinite; }
  .market-promo:not(.market-in-view) .market-scene :is(.market-orbit i, .market-notes i, .market-shoe),
  .market-scene.is-paused :is(.market-orbit i, .market-notes i, .market-shoe) {
    animation-play-state: paused;
  }
}

.market-promo .market-scene > img {
  aspect-ratio: 1100 / 619;
}
.market-scene {
  --market-shoe-outline: polygon(51.5% 48.6%, 52.1% 46.8%, 54.8% 44.5%, 56% 41.5%, 57.4% 42.6%, 59.1% 42.3%, 59.9% 45.9%, 59.7% 49.3%, 57.5% 50.6%, 53.8% 51.1%, 51.5% 50.4%);
}
.market-scene .market-shoe { clip-path: var(--market-shoe-outline); }
.market-orbit { left: 16%; top: 6%; width: 38%; height: 35%; }
.market-notes { left: 44%; top: 49%; }
@media (prefers-reduced-motion: no-preference) {
  .market-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0b2630 48%, #153843 57%);
    clip-path: var(--market-shoe-outline);
    pointer-events: none;
  }
}
