/* ============================================================
   MCP Server Development - /service/mcp-development
   Prefix: mc-   Palette sampled from the owner's art: protocol blue
   #073DED (choose icons, MCP badge), periwinkle haze (hero-bg), with a
   deep navy ink for the integrations map and the final CTA.
   Mono (JetBrains Mono) is used only where the content is protocol
   traffic: the hero console and the inspector bar.
   ============================================================ */

.mc-page {
  --mc-ink: #0a1240;
  --mc-ink-2: #121c5c;
  --mc-blue: #073ded;
  --mc-blue-2: #2f6bff;
  --mc-cyan: #22c3ee;
  --mc-peri: #e6ecff;
  --mc-paper: #f6f8ff;
  --mc-text: #4a5378;
  --mc-muted: #6d7699;
  --mc-line: #e2e7f5;
  --mc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mc-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --mc-font: "Onest", system-ui, sans-serif;
  --mc-mono: "JetBrains Mono", ui-monospace, monospace;
  --mc-gap: clamp(72px, 9vw, 128px);
  --mc-hdr: 76px;

  font-family: var(--mc-font);
  color: var(--mc-text);
  background: #fff;
  overflow-x: clip;
  interpolate-size: allow-keywords;
}

/* style.css:2845 forces Gabarito !important on headings and p */
.mc-page :is(h1, h2, h3, p, li, button, summary, a, span) {
  font-family: var(--mc-font) !important;
}

.mc-page code {
  font-family: var(--mc-mono) !important;
}

.mc-page :is(h1, h2, h3) {
  margin: 0;
  color: var(--mc-ink);
  letter-spacing: -0.025em;
}

.mc-page h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

.mc-page p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.mc-page :is(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mc-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.mc-wrap {
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
}

.mc-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.mc-head p {
  color: var(--mc-muted);
}

.mc-head--light h2 {
  color: #fff;
}

.mc-head--light p {
  color: #b8c2ea;
}

/* ---------- button: arrow disc travels to the left on hover ---------- */
.mc-btn {
  --w: 44px;
  --in: 7px;

  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--w) + 2 * var(--in));
  max-width: 100%;
  padding: 0 calc(var(--w) + var(--in) + 14px) 0 26px;
  border-radius: 999px;
  background: var(--mc-blue);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(7, 61, 237, 0.28);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    padding 0.5s var(--mc-ease-io);
}

.mc-btn__label {
  min-width: 0;
  padding-block: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.mc-btn__icon {
  position: absolute;
  top: 50%;
  right: var(--in);
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: var(--w);
  height: var(--w);
  border-radius: 50%;
  background: #fff;
  color: var(--mc-blue);
  transition: right 0.5s var(--mc-ease-io);
}

.mc-btn__icon svg {
  width: 18px;
  height: 18px;
  transform: rotate(-45deg);
  transition: transform 0.45s var(--mc-ease-io);
}

.mc-btn:hover,
.mc-btn:focus-visible {
  padding-left: calc(var(--w) + var(--in) + 14px);
  padding-right: 26px;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(7, 61, 237, 0.36);
}

.mc-btn:hover .mc-btn__icon,
.mc-btn:focus-visible .mc-btn__icon {
  right: calc(100% - var(--w) - var(--in));
}

.mc-btn:hover .mc-btn__icon svg,
.mc-btn:focus-visible .mc-btn__icon svg {
  transform: rotate(0deg);
}

.mc-btn--light {
  background: #fff;
  color: var(--mc-ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.mc-btn--light:hover,
.mc-btn--light:focus-visible {
  color: var(--mc-ink);
}

.mc-btn--light .mc-btn__icon {
  background: var(--mc-blue);
  color: #fff;
}

.mc-page :is(a, button, summary):focus-visible {
  outline: 3px solid var(--mc-cyan);
  outline-offset: 3px;
}

/* ---------- entrance: hero load sequence + scroll reveals ---------- */
.mc-anim .mc-in {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.8s var(--mc-ease),
    translate 0.8s var(--mc-ease);
  transition-delay: calc(var(--d, 0) * 0.12s);
}

.mc-anim .is-ready .mc-in {
  opacity: 1;
  translate: none;
}

.mc-anim .mc-reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.9s var(--mc-ease),
    translate 0.9s var(--mc-ease),
    border-color 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
  transition-delay: calc(var(--d, 0) * 0.1s);
}

.mc-anim .mc-reveal.is-in {
  opacity: 1;
  translate: none;
}

/* ============================================================
   HERO
   ============================================================ */
.mc-hero {
  --mx: 0;
  --my: 0;

  position: relative;
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 6vw, 96px);
  background: url("../images/mcp-development/hero-bg.webp") center / cover no-repeat, var(--mc-paper);
  isolation: isolate;
}

/* Faint node grid with signals running along two of its lines */
.mc-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(7, 61, 237, 0.18) 1.2px, transparent 1.6px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
  animation: mc-drift 40s linear infinite;
}

@keyframes mc-drift {
  to {
    background-position: 34px 34px;
  }
}

.mc-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}

.mc-hero__copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.mc-hero h1 {
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.mc-hero__copy > p {
  max-width: 560px;
}

.mc-hero__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  width: 100%;
  max-width: 600px;
}

.mc-hero__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(7, 61, 237, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  color: var(--mc-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.mc-hero__points i {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--mc-blue);
  color: #fff;
  font-size: 17px;
}

.mc-hero__art {
  position: relative;
  translate: calc(var(--mx) * -14px) calc(var(--my) * -10px);
  transition: translate 0.6s var(--mc-ease);
}

.mc-hero__halo {
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.28), transparent 65%);
  filter: blur(20px);
  animation: mc-breathe 6s ease-in-out infinite;
}

@keyframes mc-breathe {
  50% {
    scale: 1.08;
    opacity: 0.7;
  }
}

.mc-hero__img {
  width: 100%;
  animation: mc-float 7s ease-in-out infinite;
}

@keyframes mc-float {
  50% {
    translate: 0 -10px;
  }
}

.mc-anim .mc-hero__img {
  opacity: 0;
  scale: 0.94;
  transition:
    opacity 1s var(--mc-ease) 0.2s,
    scale 1.2s var(--mc-ease) 0.2s;
}

.mc-anim .is-ready .mc-hero__img {
  opacity: 1;
  scale: 1;
}

/* scattered glass tiles; depth --z drives drift and pointer parallax */
.mc-hero__deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.mc-deco {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: calc(56px * var(--sz));
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(230, 236, 255, 0.55));
  box-shadow: 0 14px 30px rgba(7, 61, 237, 0.12);
  backdrop-filter: blur(6px);
  color: var(--mc-blue);
  font-size: calc(24px * var(--sz));
  opacity: calc(0.45 + var(--z) * 0.5);
  translate: calc(var(--mx) * var(--z) * -40px) calc(var(--my) * var(--z) * -30px);
  transition: translate 0.8s var(--mc-ease);
}

.mc-deco {
  animation: mc-bob calc(7s + var(--k) * 0.8s) ease-in-out infinite;
  animation-delay: calc(var(--k) * -1.1s);
}

@keyframes mc-bob {
  50% {
    transform: translateY(-12px) rotate(-6deg);
  }
}

.mc-anim .mc-hero__deco {
  opacity: 0;
  scale: 0.96;
  transition:
    opacity 1.4s var(--mc-ease) 0.5s,
    scale 1.4s var(--mc-ease) 0.5s;
}

.mc-anim .is-ready .mc-hero__deco {
  opacity: 1;
  scale: 1;
}


/* wires from the scattered systems into the laptop's MCP icon (drawn in JS) */
.mc-hero__wires {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.mc-hero__wires path {
  fill: none;
  stroke: rgba(7, 61, 237, 0.18);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
}

.mc-hero__wires path.is-pkt {
  stroke: var(--mc-blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0.04 0.96;
  animation: mc-ride 3.2s linear infinite;
  animation-delay: calc(var(--k) * -0.7s);
}

.mc-anim .mc-hero__wires {
  opacity: 0;
  transition: opacity 1.2s var(--mc-ease) 1s;
}

.mc-anim .is-ready .mc-hero__wires {
  opacity: 1;
}

.mc-hero__port {
  position: absolute;
  left: 45.8%;
  top: 47%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  translate: -50% -50%;
  pointer-events: none;
}

.mc-hero__port::before,
.mc-hero__port::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(47, 107, 255, 0.55);
  border-radius: 50%;
  opacity: 0;
  animation: mc-sonar 3.2s var(--mc-ease) infinite;
}

.mc-hero__port::after {
  animation-delay: 1.6s;
}

@keyframes mc-sonar {
  0% {
    opacity: 0.9;
    scale: 0.5;
  }

  100% {
    opacity: 0;
    scale: 2;
  }
}

/* ============================================================
   STATS: every number gets its own small instrument
   ============================================================ */
.mc-stats {
  padding: clamp(48px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--mc-line);
}

.mc-page .mc-stats__title {
  margin-bottom: 36px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  text-align: center;
}

.mc-stats__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mc-stat {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 26px 18px 24px;
  border: 1px solid var(--mc-line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, var(--mc-paper));
  text-align: center;
}

.mc-stat__num {
  color: var(--mc-blue);
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.mc-stat__label {
  color: var(--mc-ink);
  font-size: 16px;
  font-weight: 600;
}

.mc-stat__viz {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 60px;
}

/* 10+: ten nodes on a wire, lighting one after another */
.mc-stat__viz--nodes {
  position: relative;
  gap: 9px;
}

.mc-stat__viz--nodes::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 2px;
  background: var(--mc-peri);
}

.mc-stat__viz--nodes i {
  position: relative;
  width: 10px;
  height: 10px;
  border: 2px solid var(--mc-blue);
  border-radius: 50%;
  background: #fff;
  animation: mc-node 3.2s linear infinite;
  animation-delay: calc(var(--i) * 0.18s);
}

@keyframes mc-node {
  0%,
  8% {
    background: var(--mc-blue);
    box-shadow: 0 0 0 5px rgba(7, 61, 237, 0.15);
  }

  30%,
  100% {
    background: #fff;
    box-shadow: none;
  }
}

/* 3: the three clouds the copy names */
.mc-stat__viz--clouds {
  gap: 10px;
}

.mc-stat__viz--clouds span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(10, 18, 64, 0.1);
  animation: mc-hop 3s var(--mc-ease) infinite;
  animation-delay: calc(var(--i) * 0.3s);
}

.mc-stat__viz--clouds img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

@keyframes mc-hop {
  0%,
  30%,
  100% {
    translate: 0 0;
  }

  15% {
    translate: 0 -8px;
  }
}

/* 6: six stage segments filling in order */
.mc-stat__viz--stages {
  gap: 5px;
}

.mc-stat__viz--stages i {
  width: 22px;
  height: 10px;
  border-radius: 4px;
  background: var(--mc-peri);
  overflow: hidden;
}

.mc-stat__viz--stages i::before {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mc-cyan), var(--mc-blue));
  transform: scaleX(0);
  transform-origin: left;
  animation: mc-seg 4.2s var(--mc-ease) infinite;
  animation-delay: calc(var(--i) * 0.35s);
}

@keyframes mc-seg {
  0% {
    transform: scaleX(0);
  }

  12%,
  80% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

/* 360°: a dial that draws its full turn */
.mc-stat__viz--dial svg {
  width: 60px;
  height: 60px;
  overflow: visible;
}

.mc-stat__viz--dial circle {
  fill: none;
  stroke: var(--mc-peri);
  stroke-width: 4;
}

.mc-stat__viz--dial .mc-stat__arc {
  stroke: var(--mc-blue);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: mc-arc 4s var(--mc-ease-io) infinite;
}

.mc-stat__viz--dial .mc-stat__dot {
  fill: var(--mc-cyan);
  stroke: none;
  transform-origin: 30px 30px;
  animation: mc-dial 4s var(--mc-ease-io) infinite;
}

/* same timing curve and keyframe stops as mc-arc, so the dot rides the arc's tip */
@keyframes mc-dial {
  0% {
    rotate: 0deg;
  }

  70%,
  100% {
    rotate: 360deg;
  }
}

@keyframes mc-arc {
  0% {
    stroke-dashoffset: 1;
  }

  70%,
  100% {
    stroke-dashoffset: 0;
  }
}

/* ============================================================
   INTRO: point-to-point tangle -> one MCP server
   ============================================================ */
.mc-build {
  padding: var(--mc-gap) 0;
}

.mc-build__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.mc-build__copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.mc-build__copy .mc-btn {
  margin-top: 8px;
}

.mc-mesh {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 22px;
  border: 1px solid var(--mc-line);
  border-radius: 32px;
  background:
    radial-gradient(circle, rgba(7, 61, 237, 0.1) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    var(--mc-paper);
}

.mc-mesh__toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(10, 18, 64, 0.06);
}

.mc-mesh__toggle button {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mc-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}

.mc-mesh__toggle button[aria-pressed="true"] {
  background: var(--mc-ink);
  color: #fff;
}

.mc-mesh__board {
  position: relative;
  width: 100%;
  aspect-ratio: 520 / 400;
}

.mc-mesh__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mc-mesh__wires path {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.mc-mesh__wires .is-wire {
  stroke: var(--mc-wire, #f08a6b);
  stroke-dasharray: 5 5;
  opacity: 0.75;
}

.mc-mesh__wires .is-pkt {
  stroke: var(--mc-blue);
  stroke-width: 3;
  stroke-dasharray: 0.05 0.95;
  opacity: var(--mc-t, 0);
  animation: mc-ride 2.4s linear infinite;
}

.mc-mesh__col {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30%;
}

.mc-mesh__col--l {
  left: 0;
}

.mc-mesh__col--r {
  right: 0;
  align-items: flex-end;
}

.mc-mesh__col li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--mc-line);
  border-radius: 14px;
  background: #fff;
  color: var(--mc-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(10, 18, 64, 0.06);
}

.mc-mesh__col li i {
  color: var(--mc-blue);
  font-size: 16px;
}

.mc-mesh__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 16px 12px;
  border-radius: 20px;
  background: #fff;
  color: var(--mc-ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    0 0 0 6px rgba(7, 61, 237, calc(var(--mc-t, 0) * 0.15)),
    0 14px 34px rgba(7, 61, 237, calc(var(--mc-t, 0) * 0.35));
  opacity: var(--mc-t, 0);
  translate: -50% -50%;
  scale: calc(0.6 + var(--mc-t, 0) * 0.4);
}

.mc-mesh__count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--mc-ink);
  font-weight: 600;
}

.mc-page .mc-mesh__count {
  font-size: 15px;
}

.mc-mesh__count b {
  color: var(--mc-blue);
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   SERVICES: pinned stage, the server gets assembled
   ============================================================ */
.mc-svc {
  position: relative;
  padding: var(--mc-gap) 0;
  background: var(--mc-paper);
  overflow: clip;
}

.mc-svc .mc-head {
  margin-bottom: clamp(28px, 3vw, 44px);
}

.mc-svc__shell {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  align-items: stretch;
}

/* ---- module rail: scrolls on its own, as tall as the stage ---- */
.mc-svc__rail {
  position: relative;
  min-height: 420px;
}

/* The list is not scrollable on its own: JS slides it (--y) in step with the pinned scroll,
   keeping the active module centred. .mc-svc prefix beats the `.mc-page :is(ul, ol)` reset. */
/* rail is pulled out 28px and the list padded back by the same, so card shadows have room
   inside the clip instead of being sliced at the edges */
.mc-svc__rail {
  margin-left: -28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 22px, #000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(transparent, #000 22px, #000 calc(100% - 22px), transparent);
}

.mc-svc .mc-svc__index {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  gap: 10px;
  padding: 34px 30px 40px 28px;
  translate: 0 calc(-1 * var(--y, 0px));
}

/* not pinned (short screens): clicks glide the list instead */
.mc-svc:not(.is-pinned) .mc-svc__index {
  transition: translate 0.6s var(--mc-ease);
}

.mc-mod {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--mc-line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.4s,
    border-color 0.3s,
    box-shadow 0.4s,
    translate 0.4s var(--mc-ease);
}

.mc-mod:hover {
  border-color: rgba(7, 61, 237, 0.3);
  translate: 4px 0;
}

.mc-mod__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mc-paper);
  color: var(--mc-blue);
  font-size: 22px;
  transition:
    background 0.4s,
    color 0.4s,
    box-shadow 0.4s;
}

/* passed modules get a green "connected" badge */
.mc-mod__tick {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #11875a;
  color: #fff;
  font-size: 11px;
  scale: 0;
  transition: scale 0.4s var(--mc-ease);
}

.mc-mod.is-done .mc-mod__tick {
  scale: 1;
}

.mc-mod__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mc-mod__title {
  color: var(--mc-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.4s;
}

/* active module: dark, glowing, wired into the stage */
.mc-mod.is-on {
  border-color: transparent;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(47, 107, 255, 0.45), transparent 60%),
    var(--mc-ink);
  box-shadow: 0 12px 24px rgba(10, 18, 64, 0.26);
  translate: 0 0;
}

.mc-mod.is-on .mc-mod__icon {
  background: var(--mc-blue);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(47, 107, 255, 0.25), 0 8px 20px rgba(7, 61, 237, 0.6);
}

.mc-mod.is-on .mc-mod__title {
  color: #fff;
}

/* progress through the active service */
.mc-mod__bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--mc-cyan), var(--mc-blue-2));
  transform: scaleX(var(--f, 0));
  transform-origin: left;
  opacity: 0;
}

.mc-mod.is-on .mc-mod__bar {
  opacity: 1;
}

/* port: a lead from the card edge across the gap to the stage */
.mc-mod__port {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 31px;
  height: 2px;
  background: linear-gradient(90deg, var(--mc-cyan), var(--mc-blue));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    opacity 0.3s,
    transform 0.5s var(--mc-ease);
}

.mc-mod__port::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mc-cyan);
  box-shadow: 0 0 10px var(--mc-cyan);
}

.mc-mod__port::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: mc-port 1.2s linear infinite;
}

@keyframes mc-port {
  from {
    left: 0;
  }

  to {
    left: 100%;
  }
}

.mc-mod.is-on .mc-mod__port {
  opacity: 1;
  transform: scaleX(1);
}

.mc-svc__stage {
  position: relative;
  display: grid;
  border: 1px solid var(--mc-line);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(10, 18, 64, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.mc-scene {
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 28px 30px 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s var(--mc-ease),
    visibility 0s 0.5s;
}

.mc-scene.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--mc-ease);
}

.mc-scene__text {
  display: grid;
  gap: 8px;
  max-width: 640px;
}

.mc-scene__no {
  position: absolute;
  top: 14px;
  right: 28px;
  color: transparent;
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1.5px var(--mc-peri);
  pointer-events: none;
}

.mc-scene__text h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
}

.mc-scene__text p {
  max-width: 560px;
}

.mc-page .mc-scene__text p {
  font-size: 16px;
}

/* the map: core in the middle, bullets on an ellipse, wires between */
.mc-scene__map {
  position: relative;
  height: clamp(330px, 46vh, 420px);
  margin-top: 8px;
}

.mc-scene__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mc-scene__wires line {
  stroke: var(--mc-peri);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.mc-scene__wires line.is-flow {
  stroke: var(--mc-blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0.08 0.92;
  stroke-dashoffset: 0;
  animation: mc-in-flow 1.8s linear infinite;
  animation-delay: calc(var(--i) * -0.35s);
}

/* packets travel from the bullet into the core */
@keyframes mc-in-flow {
  to {
    stroke-dashoffset: -1;
  }
}

.mc-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  width: 116px;
  height: 116px;
  border-radius: 32px;
  background: linear-gradient(150deg, #fff, #e6ecff);
  box-shadow:
    0 0 0 8px rgba(7, 61, 237, 0.08),
    0 20px 40px rgba(7, 61, 237, 0.22);
  color: var(--mc-ink);
  font-size: 12px;
  translate: -50% -50%;
}

.mc-core b {
  font-weight: 700;
}

.mc-scene.is-on .mc-core {
  animation: mc-core-in 0.7s var(--mc-ease) both;
}

@keyframes mc-core-in {
  from {
    scale: 0.85;
  }
}

.mc-scene__chips li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 210px;
  padding: 9px 13px;
  border: 1px solid var(--mc-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(10, 18, 64, 0.08);
  color: var(--mc-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  translate: -50% -50%;
}

.mc-scene__chips i {
  flex: none;
  color: var(--mc-blue);
  font-size: 17px;
}

/* bullets plug in one by one when the scene arrives */
.mc-anim .mc-scene.is-on .mc-scene__chips li {
  animation: mc-plug 0.6s var(--mc-ease) both;
  animation-delay: calc(0.15s + var(--i) * 0.09s);
}

@keyframes mc-plug {
  from {
    opacity: 0;
    scale: 0.7;
  }
}

.mc-anim .mc-scene.is-on .mc-scene__wires line:not(.is-flow) {
  animation: mc-wire-in 0.8s var(--mc-ease) both;
  animation-delay: calc(0.1s + var(--i) * 0.09s);
}

@keyframes mc-wire-in {
  from {
    opacity: 0;
  }
}

/* ---- per-service pieces round the core ---- */
.mc-act {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 0;
  height: 0;
}

.mc-sat {
  --r: 96px;

  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))) translate(-50%, -50%);
}

.mc-act__ring {
  position: absolute;
  left: -86px;
  top: -86px;
  width: 172px;
  height: 172px;
  border: 1.5px solid var(--mc-peri);
  border-radius: 50%;
}

.mc-act__ring.is-dashed {
  border-style: dashed;
  border-color: rgba(7, 61, 237, 0.35);
}

.mc-act__ring.is-turning,
.mc-act__spin {
  animation: mc-spin 16s linear infinite;
}

.mc-act__spin {
  position: absolute;
  inset: 0;
}

.mc-act__spin.is-slow {
  animation-duration: 9s;
}

/* arch: the three things a server exposes */
.mc-sat--tag {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--mc-ink);
  color: #fff;
  font-family: var(--mc-mono) !important;
  font-size: 11px;
  white-space: nowrap;
}

.mc-scene--arch .mc-scene__map {
  background:
    linear-gradient(rgba(7, 61, 237, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(7, 61, 237, 0.06) 1px, transparent 1px) 0 0 / 28px 28px;
  border-radius: 20px;
}

/* agents: three agents orbit the shared server */
.mc-sat--agent {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mc-blue);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(7, 61, 237, 0.35);
}

.mc-sat--agent i {
  animation: mc-spin 16s linear infinite reverse;
}

/* legacy: an old system bridged in through middleware */
.mc-sat--box {
  gap: 2px;
  width: 74px;
  height: 64px;
  border: 2px dashed #9aa4c8;
  border-radius: 12px;
  background: #f1f2f7;
  color: #6d7699;
  font-size: 11px;
  font-weight: 700;
}

.mc-sat--box i {
  font-size: 22px;
}

.mc-act__bridge {
  position: absolute;
  right: 40px;
  top: -6px;
  display: flex;
  gap: 6px;
}

.mc-act__bridge i {
  width: 10px;
  height: 10px;
  border-top: 3px solid var(--mc-blue);
  border-right: 3px solid var(--mc-blue);
  rotate: 45deg;
  animation: mc-chev 1.2s linear infinite;
  animation-delay: calc(var(--k, 0) * 0.2s);
}

.mc-act__bridge i:nth-child(2) {
  --k: 1;
}

.mc-act__bridge i:nth-child(3) {
  --k: 2;
}

@keyframes mc-chev {
  0%,
  100% {
    opacity: 0.2;
  }

  40% {
    opacity: 1;
  }
}

/* auth: lock on the core, a key circling the access ring */
.mc-act__lock {
  position: absolute;
  left: 30px;
  top: -70px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #11875a;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 6px 14px rgba(17, 135, 90, 0.4);
  animation: mc-snap 2.6s var(--mc-ease) infinite;
}

@keyframes mc-snap {
  0%,
  100% {
    scale: 1;
  }

  10% {
    scale: 1.25;
  }

  20% {
    scale: 1;
  }
}

.mc-sat--key {
  --r: 86px;

  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffc54d;
  color: var(--mc-ink);
  font-size: 15px;
}

/* custom: two pieces dock into the core */
.mc-sat--piece {
  color: var(--mc-blue);
  font-size: 40px;
  animation: mc-dock 3.2s var(--mc-ease-io) infinite;
}

.mc-sat--piece.is-r {
  color: var(--mc-cyan);
  --dx: -24px;
}

.mc-sat--piece.is-l {
  --dx: 24px;
}

@keyframes mc-dock {
  0%,
  100% {
    translate: 0 0;
  }

  45%,
  60% {
    translate: var(--dx) 0;
  }
}

/* test: a scan bar sweeps the map, bullets tick as it passes */
.mc-act__scan {
  display: none;
}

.mc-scene--test .mc-scene__map::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  width: 70px;
  background: linear-gradient(90deg, transparent, rgba(34, 195, 238, 0.25), transparent);
  border-right: 2px solid var(--mc-cyan);
  animation: mc-scan 3.4s var(--mc-ease-io) infinite;
  pointer-events: none;
}

@keyframes mc-scan {
  from {
    left: -70px;
  }

  to {
    left: 100%;
  }
}

.mc-scene--test .mc-scene__chips i,
.mc-scene--qa .mc-scene__chips i {
  animation: mc-tick 3.4s linear infinite;
  animation-delay: calc(var(--i) * 0.2s);
}

@keyframes mc-tick {
  0%,
  40% {
    color: var(--mc-peri);
  }

  50%,
  100% {
    color: #11875a;
  }
}

/* cloud: the three clouds and the container */
.mc-sat--logo {
  --r: 92px;

  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(10, 18, 64, 0.12);
  animation: mc-hop 3s var(--mc-ease) infinite;
  animation-delay: calc(var(--i) * 0.25s);
}

.mc-sat--logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* devops: commits run along a branch line through the core */
.mc-act__branch {
  position: absolute;
  left: -112px;
  width: 224px;
  height: 2px;
  background: linear-gradient(90deg, #9aa4c8, var(--mc-blue));
}

.mc-act__branch i {
  position: absolute;
  top: -5px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--mc-blue);
  border-radius: 50%;
  background: #fff;
  animation: mc-commit 3s linear infinite;
  animation-delay: calc(var(--k, 0) * -1s);
}

.mc-act__branch i:nth-child(2) {
  --k: 1;
}

.mc-act__branch i:nth-child(3) {
  --k: 2;
}

@keyframes mc-commit {
  from {
    left: 0;
    opacity: 0;
  }

  15%,
  85% {
    opacity: 1;
  }

  to {
    left: calc(100% - 12px);
    opacity: 0;
  }
}

.mc-sat--git {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mc-ink);
  color: #fff;
  font-size: 19px;
}

/* qa: results bars grow, a bug turns into a pass */
.mc-act__bars {
  position: absolute;
  left: 70px;
  top: 30px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
}

.mc-act__bars i {
  width: 9px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(var(--mc-cyan), var(--mc-blue));
  animation: mc-bars 2.8s var(--mc-ease) infinite alternate;
}

.mc-act__bars i:nth-child(1) {
  height: 40%;
}

.mc-act__bars i:nth-child(2) {
  height: 70%;
  animation-delay: 0.2s;
}

.mc-act__bars i:nth-child(3) {
  height: 55%;
  animation-delay: 0.4s;
}

.mc-act__bars i:nth-child(4) {
  height: 95%;
  animation-delay: 0.6s;
}

@keyframes mc-bars {
  from {
    transform: scaleY(0.3);
  }
}

.mc-act__bars i {
  transform-origin: bottom;
}

.mc-sat--bug {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffe1e1;
  color: #d93f3f;
  font-size: 19px;
  animation: mc-bug 3.4s var(--mc-ease) infinite;
}

.mc-sat--bug i {
  grid-area: 1 / 1;
}

.mc-sat--bug i + i {
  color: #fff;
  opacity: 0;
  animation: mc-bug-fix 3.4s var(--mc-ease) infinite;
}

.mc-sat--bug i:first-child {
  animation: mc-bug-out 3.4s var(--mc-ease) infinite;
}

@keyframes mc-bug {
  0%,
  40% {
    background: #ffe1e1;
  }

  55%,
  100% {
    background: #11875a;
  }
}

@keyframes mc-bug-out {
  0%,
  40% {
    opacity: 1;
  }

  55%,
  100% {
    opacity: 0;
  }
}

@keyframes mc-bug-fix {
  0%,
  40% {
    opacity: 0;
  }

  55%,
  100% {
    opacity: 1;
  }
}

/* pinned scroll mode: JS adds .is-pinned only when the stage fits the screen */
.mc-svc.is-pinned .mc-svc__track {
  height: calc(var(--mc-pin-h, 100vh) + var(--n) * 55vh);
}

.mc-svc.is-pinned .mc-svc__pin,
.mc-pipe.is-pinned .mc-pipe__pin {
  position: sticky;
  top: var(--mc-pin-top, 76px);
}

/* ---- CTA 1 sits in its own band ---- */
.mc-band {
  padding-bottom: 0;
}

.mc-band .mc-cta {
  margin-top: var(--mc-gap);
  margin-bottom: var(--mc-gap);
}

/* ============================================================
   CTAs (all three share one size)
   ============================================================ */
.mc-cta {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 300px;
  margin-top: var(--mc-gap);
  padding: 40px clamp(24px, 5vw, 64px);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
}

.mc-page .mc-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.6s var(--mc-ease);
}

.mc-cta:hover .mc-cta__bg {
  scale: 1.04;
}

.mc-cta {
  justify-items: center;
  text-align: center;
}

.mc-cta__copy {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: 600px;
}

.mc-cta__copy h2,
.mc-page .mc-cta__copy h2 {
  font-size: clamp(28px, 2.8vw, 38px);
}

.mc-cta--two .mc-cta__copy {
  max-width: 520px;
}

.mc-cta__copy .mc-btn {
  margin-top: 8px;
}

/* soft wash in the blurred centre of the photos keeps the copy legible */
.mc-cta--one::before,
.mc-cta--two::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 42% 90% at 50% 50%, rgba(246, 248, 255, 0.94) 35%, rgba(246, 248, 255, 0.55) 70%, transparent);
}

.mc-cta--final {
  --sx: 50%;
  --sy: 50%;

  background: var(--mc-ink);
}

.mc-cta--final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(500px circle at var(--sx) var(--sy), rgba(47, 107, 255, 0.35), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 48px;
}

.mc-cta--final h2 {
  color: #fff;
}

.mc-cta--final p {
  color: #b8c2ea;
}

/* packets running along the grid lines */
.mc-cta__net {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.mc-cta__net i {
  position: absolute;
  top: calc(48px * (var(--k) + 1) - 1px);
  left: 0;
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mc-cyan));
  border-radius: 2px;
  animation: mc-packet calc(4s + var(--k) * 0.7s) linear infinite;
  animation-delay: calc(var(--k) * -1.3s);
}

.mc-cta__net i:nth-child(even) {
  background: linear-gradient(270deg, transparent, var(--mc-blue-2));
  animation-direction: reverse;
}

@keyframes mc-packet {
  from {
    translate: -100px 0;
  }

  to {
    translate: 1400px 0;
  }
}

/* the art sits beside the copy so the panel keeps the shared 300px CTA height */
.mc-page .mc-cta__art {
  position: absolute;
  left: 3%;
  top: 50%;
  width: 230px;
  margin-top: -86px;
  filter: drop-shadow(0 20px 40px rgba(47, 107, 255, 0.45));
  animation: mc-float 7s ease-in-out infinite;
}

/* ============================================================
   INTEGRATIONS: hub + spokes
   ============================================================ */
.mc-int {
  position: relative;
  padding: var(--mc-gap) 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(7, 61, 237, 0.4), transparent 70%),
    var(--mc-ink);
  color: #b8c2ea;
}

.mc-int__map {
  --wire: clamp(40px, 6vw, 96px);

  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(170px, 18vw, 240px) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  column-gap: var(--wire);
  row-gap: 22px;
  align-items: center;
}

.mc-int__hub {
  position: relative;
  display: grid;
  grid-column: 2;
  grid-row: 1 / 4;
  place-items: center;
  aspect-ratio: 1;
}

.mc-int__ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(184, 194, 234, 0.35);
  border-radius: 50%;
  animation: mc-spin 30s linear infinite;
}

.mc-int__ring + .mc-int__ring {
  inset: 18%;
  border-style: solid;
  border-color: rgba(34, 195, 238, 0.35);
  animation-duration: 18s;
  animation-direction: reverse;
}

.mc-int__ring::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mc-cyan);
  box-shadow: 0 0 14px var(--mc-cyan);
}

@keyframes mc-spin {
  to {
    rotate: 1turn;
  }
}

.mc-int__core {
  display: grid;
  place-items: center;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 28%;
  background: linear-gradient(145deg, #fff, #dfe6ff);
  box-shadow:
    0 0 0 8px rgba(7, 61, 237, 0.25),
    0 0 60px rgba(47, 107, 255, 0.8);
  animation: mc-breathe 4s ease-in-out infinite;
}

.mc-int__core img {
  width: 52%;
}

.mc-int__card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  transition:
    border-color 0.3s,
    background 0.3s;
}

.mc-int__card.is-left {
  grid-column: 1;
  grid-row: var(--r);
}

.mc-int__card.is-right {
  grid-column: 3;
  grid-row: var(--r);
}

.mc-int__card:hover {
  border-color: rgba(34, 195, 238, 0.55);
  background: rgba(255, 255, 255, 0.08);
}


.mc-int__card h3 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.mc-int__card p {
  font-size: 15px;
  line-height: 1.6;
}

.mc-int__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--mc-blue);
  box-shadow: 0 10px 24px rgba(7, 61, 237, 0.5);
  color: #fff;
  font-size: 26px;
}

.mc-int__icon img {
  width: 28px;
  height: 28px;
}

/* curved wires from each card into the hub, drawn in JS from live rects */
.mc-int__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.mc-anim .mc-int__wires {
  opacity: 0;
  transition: opacity 1s var(--mc-ease) 0.5s;
}

.mc-anim .mc-int__map.is-lit .mc-int__wires {
  opacity: 1;
}

.mc-int__wires path {
  fill: none;
  stroke: rgba(184, 194, 234, 0.3);
  stroke-width: 1.2;
}

.mc-int__wires path.is-packet {
  stroke: var(--mc-cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0.06 0.94;
  filter: drop-shadow(0 0 4px var(--mc-cyan));
  animation: mc-ride 2.6s linear infinite;
  animation-delay: calc(var(--k) * -0.45s);
}

.mc-int__wires path.is-hot {
  animation-duration: 0.9s;
}

@keyframes mc-ride {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -1;
  }
}

/* the integration being served right now, cycling */
.mc-int__now {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  padding: 6px 12px;
  border: 1px solid rgba(34, 195, 238, 0.4);
  border-radius: 999px;
  background: rgba(10, 18, 64, 0.8);
  color: var(--mc-cyan);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  translate: -50% 0;
  transition: opacity 0.3s;
}

.mc-int__now.is-swap {
  opacity: 0;
}

.mc-int__card.is-live {
  border-color: rgba(34, 195, 238, 0.6);
  background: rgba(47, 107, 255, 0.14);
}

.mc-int__card.is-live .mc-int__icon {
  box-shadow: 0 0 0 6px rgba(34, 195, 238, 0.2), 0 10px 24px rgba(7, 61, 237, 0.5);
}

/* ============================================================
   INDUSTRIES: stacking sheets
   ============================================================ */
.mc-ind {
  padding: var(--mc-gap) 0;
}

.mc-ind__stack {
  display: grid;
  gap: 24px;
}

.mc-ind__card {
  --s: 1;

  position: sticky;
  top: calc(var(--mc-hdr) + 24px + var(--i) * 16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: 380px;
  border: 1px solid var(--mc-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 -10px 40px rgba(10, 18, 64, 0.06);
  overflow: hidden;
  transform-origin: 50% 0;
  scale: var(--s);
}

.mc-ind__copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(28px, 4vw, 56px);
}

.mc-ind__copy h3 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.mc-ind__copy p {
  max-width: 440px;
}

/* The photo sits under the copy column and fades itself out with an eased mask
   (no white overlay: that left a hairline whenever the sheet was scaled). */
.mc-ind__copy {
  position: relative;
  z-index: 1;
}

.mc-ind__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 64%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.04) 8%, rgba(0, 0, 0, 0.14) 16%, rgba(0, 0, 0, 0.32) 25%, rgba(0, 0, 0, 0.56) 34%, rgba(0, 0, 0, 0.8) 44%, #000 56%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.04) 8%, rgba(0, 0, 0, 0.14) 16%, rgba(0, 0, 0, 0.32) 25%, rgba(0, 0, 0, 0.56) 34%, rgba(0, 0, 0, 0.8) 44%, #000 56%);
}

.mc-page .mc-ind__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--mc-ease);
}

.mc-ind__card:hover .mc-ind__media img {
  scale: 1.06;
}

/* ============================================================
   TECH STACK
   ============================================================ */
.mc-tech {
  padding: var(--mc-gap) 0;
  background: var(--mc-paper);
}

/* Category switcher: pill tabs over a stage whose logo tiles flip in */
.mc-tech__box {
  display: grid;
  gap: 28px;
  justify-items: center;
}

.mc-tech__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--mc-line);
  border-radius: 24px;
  background: #fff;
}

.mc-tech__tab {
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mc-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}

.mc-tech__tab:hover {
  background: var(--mc-paper);
  color: var(--mc-ink);
}

.mc-tech__tab[aria-selected="true"] {
  background: var(--mc-blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(7, 61, 237, 0.3);
}

.mc-tech__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  padding: 28px 20px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(47, 107, 255, 0.1), transparent 70%),
    radial-gradient(circle, rgba(7, 61, 237, 0.12) 1.2px, transparent 1.6px) 0 0 / 26px 26px,
    #fff;
  border: 1px solid var(--mc-line);
  perspective: 900px;
}

.mc-tech__tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.mc-tech__tiles[hidden] {
  display: none;
}

.mc-tech__tiles li {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  width: 168px;
  min-height: 168px;
  padding: 22px 12px;
  border: 1px solid var(--mc-line);
  border-radius: 24px;
  background: linear-gradient(160deg, #fff, var(--mc-paper));
  color: var(--mc-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 12px 30px rgba(10, 18, 64, 0.06);
  transition:
    translate 0.4s var(--mc-ease),
    box-shadow 0.4s,
    border-color 0.3s;
  animation: mc-flip 0.7s var(--mc-ease) both;
  animation-delay: calc(var(--i) * 0.08s);
}

.mc-tech__tiles li:hover {
  translate: 0 -6px;
  border-color: rgba(7, 61, 237, 0.3);
  box-shadow: 0 22px 40px rgba(7, 61, 237, 0.14);
}

@keyframes mc-flip {
  from {
    opacity: 0;
    transform: rotateX(-75deg) translateY(20px);
  }
}

.mc-tech__logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--mc-line);
  color: var(--mc-blue);
  font-size: 34px;
  transition: rotate 0.5s var(--mc-ease);
}

.mc-tech__tiles li:hover .mc-tech__logo {
  rotate: -8deg;
}

.mc-tech__logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* ============================================================
   PROCESS: a build pipeline that runs as you scroll
   ============================================================ */
.mc-pipe {
  position: relative;
  padding: var(--mc-gap) 0;
  overflow: clip;
}

.mc-pipe__board {
  --p: 0;

  position: relative;
  padding: 34px 28px 30px;
  border-radius: 32px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--mc-ink);
  box-shadow: 0 30px 70px rgba(10, 18, 64, 0.25);
}

.mc-pipe__track {
  position: absolute;
  left: calc(100% / (var(--n) * 2) + 28px);
  right: calc(100% / (var(--n) * 2) + 28px);
  top: 62px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.mc-pipe__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mc-cyan), var(--mc-blue-2));
  transform: scaleX(var(--p));
  transform-origin: left;
}

.mc-pipe__packet {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 100%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(34, 195, 238, 0.3), 0 0 20px var(--mc-cyan);
  translate: -50% -50%;
}

.mc-pipe__stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 14px;
}

/* node, status, card: the card row takes the rest so every card is as tall as the tallest */
.mc-pipe__stage {
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.mc-pipe__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: var(--mc-ink-2);
  color: #7f8bc4;
  font-size: 24px;
  transition:
    background 0.5s,
    border-color 0.5s,
    color 0.5s,
    box-shadow 0.5s;
}

.mc-pipe__node i {
  grid-area: 1 / 1;
  transition:
    opacity 0.4s,
    scale 0.4s var(--mc-ease);
}

.mc-pipe__tick {
  opacity: 0;
  scale: 0.4;
}

.mc-pipe__stage.is-run .mc-pipe__node {
  border-color: var(--mc-cyan);
  background: var(--mc-blue);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(34, 195, 238, 0.18), 0 0 30px rgba(47, 107, 255, 0.6);
}

.mc-pipe__stage.is-run .mc-pipe__node::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid transparent;
  border-top-color: var(--mc-cyan);
  border-radius: 22px;
  animation: mc-spin 1.4s linear infinite;
}

.mc-pipe__stage.is-done .mc-pipe__node {
  border-color: #3ddc97;
  background: #11875a;
  color: #fff;
}

.mc-pipe__stage.is-done .mc-pipe__node i:first-child {
  opacity: 0;
  scale: 0.4;
}

.mc-pipe__stage.is-done .mc-pipe__tick {
  opacity: 1;
  scale: 1;
}

/* status pill: three words stacked, the current one slides into view */
.mc-pipe__status {
  display: grid;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mc-pipe__status span {
  grid-area: 1 / 1;
  color: #7f8bc4;
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  translate: 0 0;
  transition:
    translate 0.45s var(--mc-ease),
    opacity 0.45s;
}

.mc-pipe__status span + span {
  translate: 0 100%;
  opacity: 0;
}

.mc-pipe__stage.is-run .mc-pipe__status {
  background: rgba(34, 195, 238, 0.16);
}

.mc-pipe__stage.is-run .mc-pipe__status span:nth-child(1),
.mc-pipe__stage.is-done .mc-pipe__status span:nth-child(-n + 2) {
  translate: 0 -100%;
  opacity: 0;
}

.mc-pipe__stage.is-run .mc-pipe__status span:nth-child(2) {
  translate: 0 0;
  opacity: 1;
  color: var(--mc-cyan);
}

.mc-pipe__stage.is-done .mc-pipe__status {
  background: rgba(61, 220, 151, 0.14);
}

.mc-pipe__stage.is-done .mc-pipe__status span:nth-child(3) {
  translate: 0 0;
  opacity: 1;
  color: #3ddc97;
}

.mc-pipe__body {
  display: grid;
  align-content: start;
  align-self: stretch;
  width: 100%;
  gap: 8px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    background 0.5s,
    border-color 0.5s,
    opacity 0.5s,
    translate 0.6s var(--mc-ease);
}

.mc-pipe__no {
  color: #7f8bc4;
  font-size: 13px;
  font-weight: 700;
}

.mc-pipe__body h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.mc-pipe__body p {
  color: #b8c2ea;
}

.mc-page .mc-pipe__body p {
  font-size: 14.5px;
  line-height: 1.6;
}

.mc-anim .mc-pipe__stage:not(.is-run):not(.is-done) .mc-pipe__body {
  opacity: 0.45;
  translate: 0 10px;
}

.mc-pipe__stage.is-run .mc-pipe__body {
  border-color: rgba(34, 195, 238, 0.45);
  background: rgba(47, 107, 255, 0.14);
}

.mc-pipe.is-pinned .mc-pipe__track-wrap {
  height: calc(var(--mc-pin-h, 100vh) + 160vh);
}

/* ============================================================
   WHY: a server rack, six units power on
   ============================================================ */
.mc-why {
  padding: var(--mc-gap) 0;
  background: var(--mc-paper);
}

.mc-rack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 26px 46px;
  border-radius: 28px;
  background: linear-gradient(180deg, #1a2468, var(--mc-ink));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 70px rgba(10, 18, 64, 0.3);
}

/* mounting rails with holes */
.mc-rack__rail {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 14px;
  width: 16px;
  border-radius: 4px;
  background:
    radial-gradient(circle, #0a1240 2.5px, transparent 3px) 50% 0 / 16px 22px,
    #2a3576;
}

.mc-rack__rail + .mc-rack__rail {
  left: auto;
  right: 14px;
}

.mc-unit {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 20px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #eef2ff);
  box-shadow: inset 0 -3px 0 rgba(10, 18, 64, 0.08);
  transition:
    translate 0.5s var(--mc-ease),
    box-shadow 0.5s;
}

.mc-unit:hover {
  translate: 0 -4px;
  box-shadow:
    inset 0 -3px 0 rgba(10, 18, 64, 0.08),
    0 18px 30px rgba(0, 0, 0, 0.35);
}

.mc-unit__screw {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #9aa4c8);
  box-shadow: inset 0 0 0 1px rgba(10, 18, 64, 0.2);
}

.mc-unit__screw:last-child {
  display: none;
}

.mc-unit__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--mc-peri);
  transition: rotate 0.6s var(--mc-ease);
}

.mc-unit:hover .mc-unit__icon {
  rotate: -10deg;
}

.mc-unit__icon img {
  width: 28px;
  height: 28px;
}

.mc-unit__text {
  display: grid;
  gap: 6px;
}

.mc-unit h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.mc-page .mc-unit p {
  font-size: 15px;
  line-height: 1.6;
}

.mc-unit__leds {
  display: grid;
  gap: 6px;
  align-self: start;
  padding-top: 4px;
}

.mc-unit__leds i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8cee6;
  transition: background 0.3s;
}

/* units power on one after another once the rack is in view */
.mc-rack.is-in .mc-unit__leds i:nth-child(1) {
  animation: mc-led-on 0.3s calc(0.4s + var(--i) * 0.25s) forwards, mc-led 2.4s calc(1s + var(--i) * 0.31s) infinite;
}

.mc-rack.is-in .mc-unit__leds i:nth-child(2) {
  animation: mc-led-amber 1.3s calc(0.6s + var(--i) * 0.17s) infinite steps(2);
}

.mc-rack.is-in .mc-unit__leds i:nth-child(3) {
  animation: mc-led-on 0.3s calc(0.5s + var(--i) * 0.25s) forwards;
}

@keyframes mc-led-on {
  to {
    background: #3ddc97;
    box-shadow: 0 0 8px #3ddc97;
  }
}

@keyframes mc-led {
  50% {
    opacity: 0.35;
  }
}

@keyframes mc-led-amber {
  50% {
    background: #2f6bff;
    box-shadow: 0 0 8px #2f6bff;
  }
}

.mc-unit__vent {
  display: none;
}

.mc-anim .mc-rack .mc-unit {
  opacity: 0;
  translate: -18px 0;
  transition:
    opacity 0.6s var(--mc-ease),
    translate 0.6s var(--mc-ease),
    box-shadow 0.5s;
  transition-delay: calc(0.2s + var(--i) * 0.1s), calc(0.2s + var(--i) * 0.1s), 0s;
}

.mc-anim .mc-rack.is-in .mc-unit {
  opacity: 1;
  translate: none;
}

.mc-anim .mc-rack.is-in .mc-unit:hover {
  translate: 0 -4px;
  transition-delay: 0s;
}

/* ============================================================
   FAQ: questions are requests, the panel shows the response
   ============================================================ */
.mc-faq {
  padding: var(--mc-gap) 0;
  background:
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(47, 107, 255, 0.08), transparent 70%),
    #fff;
}

.mc-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.mc-faq__list {
  display: grid;
  gap: 10px;
}

.mc-faq__item {
  position: relative;
  border: 1px solid var(--mc-line);
  border-radius: 18px;
  background: #fff;
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}

/* lit edge on the open question */
.mc-faq__item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--mc-cyan), var(--mc-blue));
  transform: scaleY(0);
  transition: transform 0.4s var(--mc-ease);
}

.mc-faq__item:hover {
  border-color: rgba(7, 61, 237, 0.3);
}

.mc-faq__item[open] {
  border-color: rgba(7, 61, 237, 0.35);
  background: var(--mc-paper);
  box-shadow: 0 14px 34px rgba(10, 18, 64, 0.07);
}

.mc-faq__item[open]::before {
  transform: scaleY(1);
}

.mc-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 18px 22px;
  color: var(--mc-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.mc-faq__item summary::-webkit-details-marker {
  display: none;
}

.mc-faq__mark {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--mc-paper);
  transition:
    background 0.3s,
    rotate 0.4s var(--mc-ease);
}

.mc-faq__mark::before,
.mc-faq__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--mc-blue);
  translate: -50% -50%;
  transition: rotate 0.4s var(--mc-ease);
}

.mc-faq__mark::after {
  rotate: 90deg;
}

.mc-faq__item[open] .mc-faq__mark {
  background: var(--mc-blue);
  rotate: 180deg;
}

.mc-faq__item[open] .mc-faq__mark::before,
.mc-faq__item[open] .mc-faq__mark::after {
  background: #fff;
}

.mc-faq__item[open] .mc-faq__mark::after {
  rotate: 0deg;
}

/* the answer arrives as a response bubble from the server */
.mc-faq__a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 20px 20px 22px;
}

.mc-faq__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(10, 18, 64, 0.1);
}

.mc-faq__a p {
  padding: 12px 16px;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--mc-line);
}

.mc-page .mc-faq__a p {
  font-size: 16px;
}

.mc-faq__item::details-content {
  block-size: 0;
  overflow: clip;
  transition:
    block-size 0.45s var(--mc-ease),
    content-visibility 0.45s allow-discrete;
}

.mc-faq__item[open]::details-content {
  block-size: auto;
}

/* ---- response panel (desktop) ---- */
.mc-faq__panel {
  position: sticky;
  top: calc(var(--mc-hdr) + 24px);
  display: grid;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 60% at 80% 0%, rgba(47, 107, 255, 0.35), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--mc-ink);
  box-shadow: 0 30px 70px rgba(10, 18, 64, 0.25);
  overflow: hidden;
}

.mc-faq__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9d3ff;
  font-size: 13px;
  font-weight: 600;
}

.mc-faq__bar > span:not(.mc-faq__link) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.mc-faq__bar i {
  color: var(--mc-cyan);
  font-size: 15px;
}

.mc-faq__bar img {
  filter: brightness(0) invert(1);
}

/* three dots shuttle between client and server */
.mc-faq__link {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.mc-faq__link i {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mc-cyan);
  box-shadow: 0 0 10px var(--mc-cyan);
  animation: mc-shuttle 2.4s var(--mc-ease-io) infinite;
}

.mc-faq__link i:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0.6;
}

.mc-faq__link i:nth-child(3) {
  animation-delay: 0.4s;
  opacity: 0.3;
}

@keyframes mc-shuttle {
  0%,
  100% {
    left: 0;
  }

  50% {
    left: calc(100% - 8px);
  }
}

.mc-faq__chat {
  display: grid;
  gap: 18px;
  min-height: 300px;
  align-content: start;
  padding: 28px 24px;
}

.mc-faq__req {
  justify-self: end;
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 18px 18px 4px 18px;
  background: var(--mc-blue);
  box-shadow: 0 12px 26px rgba(7, 61, 237, 0.45);
  color: #fff;
  font-weight: 600;
}

.mc-page .mc-faq__req {
  font-size: 17px;
  line-height: 1.45;
}

.mc-faq__res {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mc-faq__res p {
  padding: 16px 18px;
  border-radius: 4px 18px 18px 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #e3e8ff;
}

.mc-page .mc-faq__res p {
  font-size: 17px;
  line-height: 1.65;
}

/* on change: the question drops in, the answer streams word by word */
.mc-faq__panel.is-swap .mc-faq__req {
  animation: mc-req 0.5s var(--mc-ease) both;
}

.mc-faq__res p span {
  animation: mc-word 0.4s var(--mc-ease) both;
  animation-delay: calc(0.35s + var(--i) * 0.03s);
}

@keyframes mc-req {
  from {
    opacity: 0;
    translate: 0 -12px;
    scale: 0.96;
  }
}

@keyframes mc-word {
  from {
    opacity: 0;
    filter: blur(4px);
  }
}

.mc-faq__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #b8c2ea;
  font-size: 15px;
  font-weight: 500;
}

.mc-faq__foot .mc-btn {
  flex: none;
}

/* desktop: the open answer is read from the panel; keep it for screen readers only */
@media (min-width: 992px) {
  .mc-faq__a {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
  .mc-scene__no {
    display: none;
  }

  .mc-pipe__stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 26px;
  }

  .mc-pipe__track {
    display: none;
  }

  .mc-page .mc-cta__art {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .mc-hero__inner,
  .mc-build__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc-hero__art {
    order: -1;
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }

  .mc-deco:nth-child(n + 4),
  .mc-hero__wires {
    display: none;
  }

  .mc-stats__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mc-mesh {
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }

  /* services: no stage, each service is a card with its bullets */
  .mc-svc__shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc-svc__rail {
    display: none;
  }

  .mc-svc__stage {
    gap: 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .mc-scene {
    grid-area: auto;
    gap: 14px;
    padding: 26px 24px;
    border: 1px solid var(--mc-line);
    border-radius: 24px;
    background: #fff;
    opacity: 1;
    visibility: visible;
  }

  .mc-scene__map {
    height: auto;
    margin: 0;
    background: none !important;
  }

  .mc-scene__wires,
  .mc-core,
  .mc-act,
  .mc-scene__no,
  .mc-scene--test .mc-scene__map::after {
    display: none;
  }

  .mc-scene__chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mc-scene__chips li {
    position: static;
    width: auto;
    max-width: none;
    box-shadow: none;
    translate: none;
  }

  .mc-anim .mc-scene.is-on .mc-scene__chips li {
    animation: none;
  }

  /* integrations: hub on top, cards below with wires dropped */
  .mc-int__map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .mc-int__hub {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 180px;
    margin: 0 auto 48px;
  }

  .mc-int__card.is-left,
  .mc-int__card.is-right {
    grid-column: auto;
    grid-row: auto;
  }

  .mc-int__wires {
    display: none;
  }

  .mc-ind__card {
    position: relative;
    top: 0;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    scale: none;
  }

  .mc-ind__media {
    position: relative;
    inset: auto;
    width: auto;
    order: -1;
    -webkit-mask-image: linear-gradient(#000 0%, #000 70%, rgba(0, 0, 0, 0.5) 88%, transparent);
    mask-image: linear-gradient(#000 0%, #000 70%, rgba(0, 0, 0, 0.5) 88%, transparent);
    aspect-ratio: 16 / 9;
  }

  /* process: stages stack, the board keeps its colours */
  .mc-pipe__stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mc-rack {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 40px;
  }

  .mc-faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc-faq__panel {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .mc-scene__chips,
  .mc-int__map {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc-cta--one::before,
  .mc-cta--two::before {
    background: rgba(246, 248, 255, 0.7);
  }

  .mc-mesh__col li {
    padding: 7px 9px;
    font-size: 11px;
  }

  .mc-mesh__col li i {
    display: none;
  }

  .mc-mesh__hub {
    padding: 10px 10px 8px;
    font-size: 11px;
  }

  .mc-unit {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .mc-unit__screw {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .mc-wrap {
    width: calc(100% - 32px);
  }

  .mc-page p {
    font-size: 16px;
  }

  .mc-hero__points,
  .mc-stats__row,
  .mc-pipe__stages {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc-mesh {
    padding: 16px 12px;
  }

  .mc-mesh__toggle button {
    padding: 8px 12px;
    font-size: 13px;
  }

  .mc-mesh__count {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
  }

  .mc-tech__tiles {
    gap: 12px;
  }

  .mc-tech__tiles li {
    width: calc(50% - 6px);
    min-height: 140px;
  }

  .mc-tech__tab {
    padding: 8px 14px;
    font-size: 14px;
  }

  .mc-cta {
    padding: 32px 22px;
  }

  .mc-pipe__board {
    padding: 24px 16px;
  }

  .mc-rack {
    padding: 16px 12px;
  }

  .mc-rack__rail {
    display: none;
  }

  .mc-unit {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px;
  }

  .mc-unit__icon {
    grid-column: 1 / -1;
    width: 48px;
    height: 48px;
  }

  .mc-faq__item summary {
    padding: 16px;
    font-size: 16px;
  }

  .mc-faq__a {
    padding: 0 16px 16px;
  }

  .mc-faq__avatar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-page *,
  .mc-page *::before,
  .mc-page *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
