/* AI, ML & IoT page — dark neural hero + AI effects on top of the shared mx-/sx-/ax- system */

.ml-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero */
.ml-hero,
.ml-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(79, 70, 229, 0.45), transparent 50%),
    radial-gradient(ellipse at 100% 30%, rgba(14, 165, 233, 0.22), transparent 45%),
    radial-gradient(ellipse at 50% 120%, rgba(124, 58, 237, 0.45), transparent 55%),
    #070b1f;
}
.ml-hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
}
.ml-hero::before,
.ml-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}
.ml-neural {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.ml-hero-glow i {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: mx-drift 14s ease-in-out infinite alternate;
}
.ml-hero-glow i:first-child {
  width: 420px;
  height: 420px;
  top: -140px;
  right: 10%;
  background: rgba(124, 58, 237, 0.45);
}
.ml-hero-glow i:last-child {
  width: 360px;
  height: 360px;
  bottom: -120px;
  left: -80px;
  background: rgba(14, 165, 233, 0.3);
  animation-delay: -6s;
}
.ml-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: -1;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(129, 140, 248, 0.08) 60%, rgba(165, 180, 252, 0.18) 98%, transparent);
  animation: ml-scan 7s linear infinite;
  pointer-events: none;
}
.ml-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.ml-crumbs,
.ml-crumbs a {
  color: #8f97bd !important;
}
.ml-crumbs b {
  color: #e0e7ff !important;
}
.ml-crumbs a:hover {
  color: #fff !important;
}
.ml-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(165, 180, 252, 0.3);
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.1);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.ml-badge-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
}
.ml-badge-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #34d399;
  animation: mx-ping 2s ease-out infinite;
}
.ml-main .ml-hero h1,
.ml-main .ml-cta h2 {
  color: #fff;
}
.ml-hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.ml-main .ml-hero h1 em,
.ml-main .ml-cta h2 em,
.ml-main .mx-dark h2 em {
  background: linear-gradient(100deg, #a5b4fc, #c084fc 30%, #7dd3fc 55%, #a5b4fc 80%, #c084fc);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ml-shimmer 6s linear infinite;
}
.ml-typed-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px !important;
  color: #8f97bd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}
.ml-typed-line > .bi {
  color: var(--mx-gold);
}
.ml-typed {
  color: #e0e7ff;
  font-weight: 600;
}
.ml-typed > i {
  display: inline-block;
  width: 9px;
  height: 18px;
  margin-left: 3px;
  vertical-align: -3px;
  background: #818cf8;
  animation: ml-caret 1s steps(1) infinite;
}
.ml-hero-copy > p:not(.ml-typed-line) {
  margin-top: 16px !important;
  max-width: 560px;
  color: #b6bcd8;
  font-size: 17px;
  line-height: 1.75;
}
.ml-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px !important;
}
.ml-hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
}
.ml-hero-chips .bi {
  color: #6ee7b7;
}
.ml-main .ml-ghost {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.ml-main .ml-ghost:hover {
  color: #fff;
  border-color: rgba(165, 180, 252, 0.6);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Hero form with animated AI border */
.ml-form {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 26px;
  background: rgba(13, 18, 48, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}
.ml-form-border {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--ml-angle, 0deg), #4f46e5, #7c3aed, #0ea5e9, #f3c843, #4f46e5);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ml-spin-border 6s linear infinite;
  pointer-events: none;
}
@property --ml-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.ml-form > :not(.ml-form-border) {
  position: relative;
  z-index: 1;
}
.ml-form header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.ml-form header > span {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--mx-grad);
  font-size: 20px;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.6);
}
.ml-main .ml-form h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.ml-form header p {
  margin-top: 4px !important;
  color: #9aa3c7;
  font-size: 13.5px;
  line-height: 1.5;
}
.ml-form header > b {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(243, 200, 67, 0.14);
  color: var(--mx-gold);
  font-size: 11px;
  white-space: nowrap;
}
.ml-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.ml-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: #c7cce6;
  font-size: 12.5px;
  font-weight: 600;
}
.ml-form label > span {
  position: relative;
  display: block;
}
.ml-form label > span > .bi {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #7c86b0;
  font-size: 14px;
  pointer-events: none;
}
.ml-form input,
.ml-form select,
.ml-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ml-form label > span input,
.ml-form label > span select {
  padding-left: 38px;
}
.ml-form select option {
  color: var(--mx-ink);
}
.ml-form input::placeholder,
.ml-form textarea::placeholder {
  color: #6f78a3;
}
.ml-form textarea {
  resize: vertical;
  min-height: 90px;
}
.ml-form input:focus,
.ml-form select:focus,
.ml-form textarea:focus {
  outline: none;
  border-color: #818cf8;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
}
.ml-form button.mx-btn {
  width: 100%;
  margin-top: 16px;
}
.ml-form > small {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  color: #8f97bd;
  font-size: 12.5px;
}
.ml-form > small .bi {
  color: #6ee7b7;
}

/* Hero proof strip */
.ml-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--mx-radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.ml-proof > div {
  padding: 24px 28px;
}
.ml-proof > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.ml-proof strong {
  display: block;
  font-family: var(--font-primary, inherit);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #a5b4fc, #c4b5fd 50%, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ml-proof span {
  display: block;
  margin-top: 8px;
  color: #9aa3c7;
  font-size: 14px;
}

/* Spotlight cards (pointer-follow glow) */
.ml-spot {
  position: relative;
  overflow: hidden;
}
.ml-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, -40%), rgba(129, 140, 248, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.ml-spot:hover::after {
  opacity: 1;
}
.ax-exp-panel.ml-spot {
  position: sticky;
}
@media (max-width: 900px) {
  .ax-exp-panel.ml-spot {
    position: relative;
  }
}
.mx-dark .ml-spot::after,
.ax-exp-panel.ml-spot::after,
.ml-lab.ml-spot::after {
  background: radial-gradient(300px circle at var(--sx, 50%) var(--sy, -40%), rgba(165, 180, 252, 0.18), transparent 70%);
}

/* Intro + model lab */
.ml-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.ml-lab {
  padding: 28px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.28), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(124, 58, 237, 0.45), transparent 55%),
    var(--mx-dark);
  box-shadow: var(--mx-shadow-lg);
}
.ml-lab h3 {
  margin-top: 14px !important;
  color: #fff !important;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.ml-lab header p {
  margin-top: 8px !important;
  color: #b6bcd8;
  font-size: 14.5px;
  line-height: 1.65;
}
.ml-train {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(7, 11, 31, 0.55);
}
.ml-train-head {
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.ml-train-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c7d2fe;
}
.ml-train-head span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: mx-ping-dot 1.4s ease-in-out infinite;
}
.ml-train-head b {
  color: #7c86b0;
  font-weight: 500;
}
.ml-train svg {
  display: block;
  width: 100%;
  height: 120px;
  margin-top: 10px;
}
.ml-train-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-dasharray: 3 5;
}
.ml-train-line,
.ml-train-val {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  clip-path: inset(0 100% 0 0);
  vector-effect: non-scaling-stroke;
}
.ml-train-val {
  stroke: rgba(243, 200, 67, 0.65);
  stroke-width: 1.5;
}
.ml-train-area {
  opacity: 0;
  transition: opacity 1s ease 1.6s;
}
.ml-lab.is-in .ml-train-line,
.ml-main:not(.ec-motion) .ml-train-line {
  animation: ml-draw 2.2s cubic-bezier(0.3, 0.6, 0.2, 1) 0.3s forwards;
}
.ml-lab.is-in .ml-train-val,
.ml-main:not(.ec-motion) .ml-train-val {
  animation: ml-draw 2.4s cubic-bezier(0.3, 0.6, 0.2, 1) 0.6s forwards;
}
.ml-lab.is-in .ml-train-area,
.ml-main:not(.ec-motion) .ml-train-area {
  opacity: 1;
}
.ml-train-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.ml-train-metrics div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.ml-train-metrics small {
  display: block;
  color: #7c86b0;
  font-size: 11px;
}
.ml-train-metrics b {
  font-family: var(--font-primary, inherit);
  font-size: 19px;
}
.ml-train-metrics b.is-ok {
  color: #6ee7b7;
}
.ml-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 18px !important;
}
.ml-flow li {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #9aa3c7;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.ml-flow li span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(165, 180, 252, 0.25);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: #c7d2fe;
  font-size: 17px;
  animation: ml-flow-lit 6.5s ease-in-out var(--d) infinite;
}

/* Service explorer — AI tint */
.ml-explorer .ax-exp-panel {
  overflow: hidden;
}
.ml-panel-orb {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent 65%);
  filter: blur(10px);
  animation: ml-orb 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.ml-explorer .ax-exp-panel > :not(.ml-panel-orb) {
  position: relative;
}
.ml-explorer .ax-exp-panel header span {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.65);
}

/* IoT */
.ml-iot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ml-iot-grid article {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--mx-radius);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.ml-iot-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(165, 180, 252, 0.45);
}
.ml-iot-grid header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ml-iot-grid header > span {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--mx-grad);
  font-size: 22px;
}
.ml-iot-grid .ml-ring {
  position: absolute;
  inset: -6px;
  border: 1.5px solid rgba(129, 140, 248, 0.6);
  border-radius: 20px;
  animation: ml-signal 2.6s ease-out infinite;
}
.ml-iot-grid article:nth-child(2) .ml-ring {
  animation-delay: -0.65s;
}
.ml-iot-grid article:nth-child(3) .ml-ring {
  animation-delay: -1.3s;
}
.ml-iot-grid article:nth-child(4) .ml-ring {
  animation-delay: -1.95s;
}
.ml-iot-grid header b {
  color: var(--mx-gold);
  font-family: var(--font-primary, inherit);
  font-size: 15px;
}
.ml-iot-grid h3 {
  font-size: 19px;
}
.ml-iot-grid article > p {
  margin: 8px 0 18px !important;
  font-size: 14.5px;
  line-height: 1.6;
}
.ml-iot-grid .mx-stack-items span {
  font-size: 12.5px;
  padding: 6px 11px;
}

/* Industries */
.ml-industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ml-industries article {
  padding: 26px;
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.ml-industries article:hover {
  transform: translateY(-6px);
  border-color: #d4d6f7;
  box-shadow: var(--mx-shadow-lg);
}
.ml-industries header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ml-industries header span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--mx-indigo);
  background: linear-gradient(140deg, #eef0ff, #f4ecff);
  font-size: 22px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.ml-industries article:hover header span {
  color: #fff;
  background: var(--mx-grad);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.45);
}
.ml-industries header b {
  color: #c3c7d8;
  font-family: var(--font-primary, inherit);
  font-size: 15px;
}
.ml-industries h3 {
  font-size: 20px;
}
.ml-industries article > p {
  margin-top: 6px !important;
  color: var(--mx-muted);
  font-size: 14.5px;
}
.ml-industries ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px dashed var(--mx-line);
}
.ml-industries li {
  display: flex;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}
.ml-industries li .bi {
  flex: none;
  margin-top: 2px;
  color: var(--mx-mint);
}

/* Why */
.ml-why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ml-why article {
  padding: 22px;
  border: 1px solid var(--mx-line);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ml-why article:hover {
  transform: translateY(-4px);
  box-shadow: var(--mx-shadow);
}
.ml-why article > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--mx-indigo);
  background: #f0f0ff;
  font-size: 19px;
}
.ml-why h3 {
  margin-top: 16px !important;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.ml-why p {
  margin-top: 5px !important;
  color: var(--mx-muted);
  font-size: 14px;
  line-height: 1.55;
}
.ml-why article.is-stat {
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.35), transparent 50%),
    linear-gradient(160deg, #4338ca, #6d28d9);
}
.ml-why article.is-stat:nth-child(2) {
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.3), transparent 50%),
    var(--mx-dark);
}
.ml-why article.is-stat > span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.ml-why article.is-stat h3 {
  color: #fff;
  font-size: 22px;
}
.ml-why article.is-stat p {
  color: #dcd8ff;
}
.ml-why article:nth-child(4) {
  grid-column: span 1;
}

/* Final CTA */
.ml-cta {
  padding: clamp(88px, 10vw, 140px) 0;
  text-align: center;
}
.ml-cta-inner {
  position: relative;
  max-width: 900px;
}
.ml-main .ml-cta h2 {
  margin-top: 20px;
  font-size: clamp(36px, 4.8vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.ml-cta-inner > p {
  max-width: 720px;
  margin: 18px auto 0 !important;
  color: #b6bcd8;
  font-size: 17px;
  line-height: 1.75;
}
.ml-cta-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px !important;
}
.ml-cta-checks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  font-weight: 600;
}
.ml-cta-checks .bi {
  color: var(--mx-gold);
}
.ml-cta-actions {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 32px;
}
.ml-cta-actions .ax-consult {
  width: min(100%, 620px);
  margin: 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.ml-nda {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px !important;
  color: #9aa3c7;
  font-size: 13.5px;
}
.ml-nda .bi {
  color: #6ee7b7;
}

/* Keyframes */
@keyframes ml-scan {
  from {
    transform: translateY(-160px);
  }
  to {
    transform: translateY(1100px);
  }
}
@keyframes ml-shimmer {
  to {
    background-position: -220% 0;
  }
}
@keyframes ml-caret {
  50% {
    opacity: 0;
  }
}
@keyframes ml-spin-border {
  to {
    --ml-angle: 360deg;
  }
}
@keyframes ml-draw {
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes ml-flow-lit {
  0%,
  22%,
  100% {
    color: #c7d2fe;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
  }
  6%,
  16% {
    color: #fff;
    background: linear-gradient(120deg, #4f46e5, #7c3aed);
    box-shadow: 0 0 22px rgba(124, 58, 237, 0.7);
  }
}
@keyframes ml-orb {
  to {
    transform: translate(-60px, 40px) scale(1.2);
  }
}
@keyframes ml-signal {
  0% {
    opacity: 0.9;
    transform: scale(0.85);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .ml-iot-grid,
  .ml-why {
    grid-template-columns: repeat(2, 1fr);
  }
  .ml-industries {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .ml-hero-grid,
  .ml-intro {
    grid-template-columns: 1fr;
  }
  .ml-proof {
    grid-template-columns: repeat(2, 1fr);
  }
  .ml-proof > div:nth-child(3) {
    border-left: 0;
  }
  .ml-proof > div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}
@media (max-width: 640px) {
  .ml-hero h1 {
    font-size: 40px;
  }
  .ml-form-grid,
  .ml-iot-grid,
  .ml-why,
  .ml-industries {
    grid-template-columns: 1fr;
  }
  .ml-form header > b {
    display: none;
  }
  .ml-flow {
    grid-template-columns: repeat(5, 1fr);
  }
  .ml-flow li {
    font-size: 10.5px;
  }
  .ml-flow li span {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .ml-train-metrics b {
    font-size: 16px;
  }
  .ml-hero .mx-actions > a {
    width: 100%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ml-scan {
    display: none;
  }
  .ml-hero-glow i,
  .ml-badge-dot::after,
  .ml-typed > i,
  .ml-form-border,
  .ml-flow li span,
  .ml-panel-orb,
  .ml-iot-grid .ml-ring,
  .ml-train-head span i,
  .ml-main .ml-hero h1 em,
  .ml-main .ml-cta h2 em,
  .ml-main .mx-dark h2 em {
    animation: none !important;
  }
  .ml-train-line,
  .ml-train-val {
    clip-path: none;
    animation: none !important;
  }
  .ml-train-area {
    opacity: 1;
  }
}

/* ===== v2 content sections ===== */

/* Hero additions */
.ml-kicker {
  display: block;
  margin-top: 16px;
  color: #e0e7ff;
  font-family: var(--font-primary, inherit);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.ml-hero .ml-hero-copy > p.ml-hero-sub {
  margin-top: 10px !important;
  font-size: 15px;
  color: #9aa3c7;
}
.ml-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--mx-gold);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
}
.ml-text-link:hover {
  color: #ffe08a;
}
.ml-hero .ml-hero-lab {
  background: rgba(13, 18, 48, 0.72);
  border: 1px solid rgba(165, 180, 252, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 60px -20px rgba(124, 58, 237, 0.5);
}
.ml-hero-lab > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ml-lab-model {
  color: #8f97bd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
}
.ml-hero-lab .ml-train {
  margin-top: 16px;
}
.ml-predict {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed rgba(243, 200, 67, 0.45);
  border-radius: 14px;
  background: rgba(243, 200, 67, 0.07);
}
.ml-predict > span {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(243, 200, 67, 0.16);
  color: var(--mx-gold);
}
.ml-predict small {
  display: block;
  color: #8f97bd;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ml-predict b {
  font-size: 13.5px;
}

/* Spacing helpers */
.ml-gap {
  margin-top: 36px;
}
.ml-gap-sm {
  margin-top: 24px;
}

/* ML learning types */
.ml-learn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ml-learn article {
  position: relative;
  padding: 28px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.3), transparent 45%),
    linear-gradient(150deg, #312e81, #4c1d95);
  overflow: hidden;
}
.ml-learn article.is-unsup {
  background:
    radial-gradient(circle at 100% 0%, rgba(243, 200, 67, 0.18), transparent 45%),
    var(--mx-dark);
}
.ml-learn-viz {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 140px;
  height: 100px;
  opacity: 0.85;
}
.ml-learn-viz i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a5b4fc;
  left: var(--x);
  top: var(--y);
  animation: ml-float-dot 4s ease-in-out calc(var(--k) * -0.3s) infinite alternate;
}
.ml-learn article:not(.is-unsup) .ml-learn-viz i:nth-child(odd) {
  background: var(--mx-gold);
}
.ml-learn article:not(.is-unsup) .ml-learn-viz::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px dashed rgba(255, 255, 255, 0.45);
  transform: rotate(-18deg);
}
.ml-learn article.is-unsup .ml-learn-viz i:nth-child(3n) {
  background: #6ee7b7;
}
.ml-learn article.is-unsup .ml-learn-viz i:nth-child(3n + 1) {
  background: #f9a8d4;
}
.ml-learn header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 70px;
}
.ml-learn header > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
}
.ml-main .ml-learn h3 {
  color: #fff;
  font-size: 24px;
}
.ml-learn article > p {
  position: relative;
  margin-top: 10px !important;
  color: #dcd8ff;
  font-size: 15px;
  line-height: 1.65;
}
.ml-learn article > small {
  display: block;
  margin-top: 18px;
  color: var(--mx-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ml-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ml-pill-row span {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
}
.ml-model-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.ml-model-types article {
  padding: 22px;
  border: 1px solid var(--mx-line);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ml-model-types article:hover {
  transform: translateY(-5px);
  box-shadow: var(--mx-shadow-lg);
}
.ml-model-types article:hover .mx-icon {
  color: #fff;
  background: var(--mx-grad);
}
.ml-model-types h3 {
  margin-top: 16px !important;
  font-size: 17px;
}
.ml-model-types p {
  margin-top: 6px !important;
  color: var(--mx-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Predictive analytics */
.ml-predict-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}
.ml-forecast {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(7, 11, 31, 0.5);
}
.ml-forecast header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ml-forecast header small {
  display: block;
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ml-forecast header b {
  font-size: 17px;
}
.ml-forecast header span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9aa3c7;
  font-size: 12px;
}
.ml-forecast header span i {
  width: 16px;
  height: 3px;
  margin-left: 8px;
  border-radius: 2px;
  background: #818cf8;
}
.ml-forecast header span i.is-forecast {
  background: repeating-linear-gradient(90deg, var(--mx-gold) 0 4px, transparent 4px 7px);
}
.ml-forecast svg {
  display: block;
  width: 100%;
  height: 200px;
  margin-top: 14px;
}
.ml-fc-actual,
.ml-fc-forecast {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.ml-fc-actual {
  stroke: #818cf8;
  clip-path: inset(0 100% 0 0);
}
.ml-fc-forecast {
  stroke: var(--mx-gold);
  stroke-dasharray: 3 3;
  opacity: 0;
}
.ml-fc-band,
.ml-fc-dot {
  opacity: 0;
  transition: opacity 0.8s ease 1.8s;
}
.ml-fc-dot {
  fill: var(--mx-gold);
  stroke: #070b1f;
  stroke-width: 3;
}
.ml-forecast.is-in .ml-fc-actual,
.ml-main:not(.ec-motion) .ml-fc-actual {
  animation: ml-draw 1.8s cubic-bezier(0.3, 0.6, 0.2, 1) 0.2s forwards;
}
.ml-forecast.is-in .ml-fc-forecast,
.ml-main:not(.ec-motion) .ml-fc-forecast {
  animation: ml-fade-in 0.8s ease 1.9s forwards, ml-dash 1.2s linear 1.9s infinite;
}
.ml-forecast.is-in .ml-fc-band,
.ml-forecast.is-in .ml-fc-dot,
.ml-main:not(.ec-motion) .ml-fc-band,
.ml-main:not(.ec-motion) .ml-fc-dot {
  opacity: 1;
}
.ml-forecast footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  color: #9aa3c7;
  font-size: 12.5px;
}
.ml-forecast footer .bi {
  color: var(--mx-gold);
}
.ml-dark-list {
  margin-top: 0 !important;
}
.ml-dark-list > div {
  grid-template-columns: 1fr 1fr !important;
}
.ml-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ml-examples article {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.ml-examples article:hover {
  transform: translateY(-4px);
  border-color: rgba(165, 180, 252, 0.45);
}
.ml-examples article > span {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--mx-grad);
  font-size: 18px;
}
.ml-examples h3 {
  font-size: 16px;
}
.ml-examples p {
  margin-top: 4px !important;
  font-size: 13.5px !important;
  line-height: 1.55;
}

/* Data science */
.ml-data {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
}
.ml-sources {
  padding: 26px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.28), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(124, 58, 237, 0.4), transparent 55%),
    var(--mx-dark);
  box-shadow: var(--mx-shadow-lg);
}
.ml-sources > small {
  color: var(--mx-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ml-sources > p {
  margin-top: 6px !important;
  color: #b6bcd8;
  font-size: 14px;
}
.ml-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ml-source-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
  animation: ml-source-pulse 5.4s ease-in-out var(--d) infinite;
}
.ml-source-list .bi {
  color: #a5b4fc;
}
.ml-source-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
}
.ml-source-arrow i {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #818cf8, transparent);
  background-size: 200% 100%;
  animation: ml-flow-line 2s linear infinite;
}
.ml-source-arrow span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ml-source-out {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--mx-grad);
  font-weight: 700;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}
#ml-data .mx-outcome {
  margin-top: 22px;
}

/* NLP demo */
.ml-nlp-demo {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid #e3e1fb;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--mx-shadow);
}
.ml-nlp-demo > small {
  color: var(--mx-indigo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ml-nlp-demo > p {
  margin-top: 8px !important;
  font-size: 16px;
  line-height: 1.7;
}
.ml-nlp-demo mark {
  padding: 2px 6px;
  border-radius: 6px;
  color: inherit;
  background: #eef0ff;
  box-shadow: inset 0 -2px 0 #818cf8;
}
.ml-nlp-demo mark.is-pos {
  background: #e8faf3;
  box-shadow: inset 0 -2px 0 #34d399;
}
.ml-nlp-demo > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ml-nlp-demo > div span {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--mx-soft);
  color: var(--mx-muted);
  font-size: 12px;
  font-weight: 700;
}
.ml-nlp-demo > div span.is-pos {
  background: #e8faf3;
  color: #047857;
}
#ml-nlp .ix-panel + .mx-outcome {
  margin-top: 16px;
}

/* Computer vision */
.ml-cv {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}
.ml-cv-viz {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(7, 11, 31, 0.5);
}
.ml-cv-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(circle at 30% 40%, #334155, #0f172a 70%);
}
.ml-cv-box {
  position: absolute;
  border: 2px solid #34d399;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
  animation: ml-box-in 4.8s ease-in-out infinite;
}
.ml-cv-box b {
  position: absolute;
  top: -24px;
  left: -2px;
  padding: 2px 8px;
  border-radius: 6px 6px 6px 0;
  background: #34d399;
  color: #052e1c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  white-space: nowrap;
}
.ml-cv-box::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 6px;
  background: linear-gradient(140deg, rgba(148, 163, 184, 0.35), rgba(71, 85, 105, 0.25));
}
.ml-cv-box.is-a {
  left: 10%;
  top: 22%;
  width: 42%;
  height: 52%;
}
.ml-cv-box.is-b {
  left: 60%;
  top: 18%;
  width: 28%;
  height: 26%;
  border-color: #818cf8;
  box-shadow: 0 0 18px rgba(129, 140, 248, 0.4);
  animation-delay: 0.6s;
}
.ml-cv-box.is-b b {
  background: #818cf8;
  color: #fff;
}
.ml-cv-box.is-c {
  left: 62%;
  top: 60%;
  width: 24%;
  height: 26%;
  border-color: var(--mx-gold);
  border-style: dashed;
  box-shadow: 0 0 18px rgba(243, 200, 67, 0.4);
  animation-delay: 1.2s;
}
.ml-cv-box.is-c b {
  background: var(--mx-gold);
  color: #1d1c18;
}
.ml-cv-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #7dd3fc, transparent);
  box-shadow: 0 0 16px #38bdf8;
  animation: ml-cv-scan 3.2s ease-in-out infinite;
}
.ml-cv-viz footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #c7d2fe;
  font-size: 12.5px;
  font-weight: 600;
}
.ml-cv-viz footer .bi {
  color: #6ee7b7;
}
.ml-cv-viz footer .is-warn,
.ml-cv-viz footer .is-warn .bi {
  color: var(--mx-gold);
}
.ml-cv-tags span {
  font-size: 13px;
}
.ml-cv-apps {
  display: grid;
  gap: 10px;
}
.ml-cv-apps article {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.ml-cv-apps article > .bi {
  flex: none;
  margin-top: 2px;
  color: #a5b4fc;
  font-size: 18px;
}
.ml-cv-apps b {
  font-size: 14.5px;
}
.ml-cv-apps p {
  margin-top: 2px !important;
  font-size: 13.5px !important;
  line-height: 1.5;
}

/* Recommendations + anomaly */
.ml-twin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.ml-twin > article {
  padding: 28px;
  border: 1px solid var(--mx-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--mx-shadow);
}
.ml-twin > article > header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ml-twin > article > header > span {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--mx-grad);
  font-size: 22px;
}
.ml-twin > article.is-anomaly > header > span {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.ml-twin header small,
.ml-twin > article > small,
.ml-twin-cols small {
  display: block;
  color: var(--mx-indigo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ml-twin h3 {
  margin-top: 4px !important;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.ml-reco-demo {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}
.ml-reco-demo span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--mx-soft);
  animation: ml-reco-in 5s ease-in-out infinite;
}
.ml-reco-demo span:nth-child(2) {
  animation-delay: 0.4s;
}
.ml-reco-demo span:nth-child(3) {
  animation-delay: 0.8s;
}
.ml-reco-demo i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(140deg, #c7d2fe, #e9d5ff);
}
.ml-reco-demo b {
  font-size: 14px;
}
.ml-reco-demo em {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8faf3;
  color: #047857;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}
.ml-twin-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ml-twin-cols .ix-checks {
  margin-top: 10px;
}
.ix-checks.is-alt .bi {
  background: var(--mx-indigo);
}
.ml-twin-note {
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px dashed var(--mx-line);
  color: var(--mx-muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.ml-anomaly-demo {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  margin: 20px 0;
  padding: 12px 12px 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafbfe, #f3f4fb);
  border: 1px solid var(--mx-line);
}
.ml-anomaly-demo::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 52%;
  border-top: 1.5px dashed rgba(239, 68, 68, 0.45);
}
.ml-anomaly-demo i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #a5b4fc, #c7d2fe);
}
.ml-anomaly-demo i.is-flag {
  background: linear-gradient(180deg, #ef4444, #f59e0b);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55);
  animation: ml-flag 1.8s ease-in-out infinite;
}
.ml-anomaly-demo span {
  position: absolute;
  top: 10px;
  left: 50%;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
}
.ml-twin > article.is-anomaly > small {
  color: #c2410c;
}
.ml-twin > article.is-anomaly .ix-checks {
  margin-top: 10px;
}
.ml-twin > article.is-anomaly .mx-outcome {
  margin-top: 18px;
}

/* GenAI RAG card */
#ml-genai .ix-panel {
  margin-top: 24px;
}
.ml-rag {
  padding: 28px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.3), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(124, 58, 237, 0.45), transparent 55%),
    var(--mx-dark);
  box-shadow: var(--mx-shadow-lg);
}
.ml-main .ml-rag h3 {
  margin-top: 14px;
  color: #fff;
  font-size: 24px;
}
.ml-rag > p {
  margin-top: 8px !important;
  color: #b6bcd8;
  font-size: 14.5px;
  line-height: 1.65;
}
.ml-rag ol {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 20px !important;
}
.ml-rag ol::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, #818cf8, #a78bfa, #38bdf8);
  opacity: 0.45;
}
.ml-rag li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ml-rag li > span {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(165, 180, 252, 0.3);
  border-radius: 50%;
  background: #141a3a;
  color: #c7d2fe;
  font-size: 17px;
  animation: ml-flow-lit 4.5s ease-in-out var(--d) infinite;
}
.ml-rag li b {
  display: block;
  font-size: 15px;
}
.ml-rag li small {
  color: #9aa3c7;
  font-size: 12.5px;
}
#ml-genai .ml-rag + .mx-outcome {
  margin-top: 16px;
}

/* MLOps loop */
.ml-ops {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.ml-ops-loop {
  container-type: inline-size;
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.ml-ops-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px dashed #d4d6f7;
}
.ml-ops-ring::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #7c3aed;
  border-right-color: #4f46e5;
  animation: mx-spin 4s linear infinite;
}
.ml-ops-core {
  position: absolute;
  inset: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 30% 20%, #6d63ff, #3b2fb8 55%, #1e1b4b);
  box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.08), 0 30px 60px -24px rgba(79, 70, 229, 0.65);
}
.ml-ops-core .bi {
  color: var(--mx-gold);
  font-size: 26px;
}
.ml-ops-core b {
  margin-top: 4px;
  font-family: var(--font-primary, inherit);
  font-size: 17px;
}
.ml-ops-core small {
  color: #c7d2fe;
  font-size: 11.5px;
}
.ml-ops-node {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 80px;
  margin: -32px 0 0 -40px;
  transform: rotate(var(--a)) translate(38cqw) rotate(calc(-1 * var(--a)));
}
.ml-ops-node i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mx-line);
  border-radius: 15px;
  background: #fff;
  color: var(--mx-indigo);
  font-size: 19px;
  font-style: normal;
  box-shadow: var(--mx-shadow);
  animation: ml-node-lit 3s ease-in-out var(--d) infinite;
}
.ml-ops-node b {
  font-size: 12.5px;
}
#ml-mlops .ix-checks {
  margin-top: 4px;
}
#ml-mlops .mx-outcome {
  margin-top: 20px;
}

/* Contact (dark CTA + wide form) */
.ml-contact {
  padding: clamp(80px, 9vw, 128px) 0;
  text-align: left;
}
.ml-contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.ml-contact-copy {
  position: sticky;
  top: 96px;
}
.ml-main .ml-contact h2 {
  margin-top: 20px;
  color: #fff;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.ml-contact-copy > p {
  margin-top: 18px !important;
  color: #b6bcd8;
  font-size: 16.5px;
  line-height: 1.75;
}
.ml-cta-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.ml-form-wide fieldset {
  margin: 0;
  padding: 16px 0 4px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
  display: grid;
  gap: 12px;
}
.ml-form-wide legend {
  float: left;
  width: 100%;
  margin-bottom: 2px;
  padding: 0;
  color: #fff;
  font-family: var(--font-primary, inherit);
  font-size: 14.5px;
  font-weight: 700;
}
.ml-form-wide .ml-form-grid {
  margin-bottom: 0;
}
.ml-form-grid.is-three {
  grid-template-columns: repeat(3, 1fr);
}
.ml-main .ml-form h3 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  letter-spacing: -0.02em;
}

/* v2 keyframes */
@keyframes ml-float-dot {
  to {
    translate: 4px -6px;
  }
}
@keyframes ml-fade-in {
  to {
    opacity: 1;
  }
}
@keyframes ml-dash {
  to {
    stroke-dashoffset: -12;
  }
}
@keyframes ml-source-pulse {
  0%,
  20%,
  100% {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
  }
  8%,
  14% {
    border-color: rgba(165, 180, 252, 0.7);
    background: rgba(129, 140, 248, 0.2);
  }
}
@keyframes ml-flow-line {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@keyframes ml-box-in {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  45% {
    opacity: 0.55;
    transform: scale(0.97);
  }
}
@keyframes ml-cv-scan {
  0%,
  100% {
    top: 4%;
  }
  50% {
    top: 94%;
  }
}
@keyframes ml-reco-in {
  0%,
  100% {
    transform: none;
  }
  8% {
    transform: translateX(4px);
    background: #eef0ff;
  }
  16% {
    transform: none;
  }
}
@keyframes ml-flag {
  50% {
    filter: brightness(1.25);
  }
}
@keyframes ml-node-lit {
  0%,
  30%,
  100% {
    color: var(--mx-indigo);
    background: #fff;
  }
  10%,
  20% {
    color: #fff;
    background: linear-gradient(120deg, #4f46e5, #7c3aed);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.5);
  }
}

@media (max-width: 1100px) {
  .ml-model-types,
  .ml-examples {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .ml-learn,
  .ml-predict-grid,
  .ml-data,
  .ml-cv,
  .ml-twin,
  .ml-ops,
  .ml-contact-grid {
    grid-template-columns: 1fr;
  }
  .ml-contact-copy {
    position: static;
  }
}
@media (max-width: 640px) {
  .ml-model-types,
  .ml-examples,
  .ml-twin-cols,
  .ml-dark-list > div,
  .ml-form-grid.is-three {
    grid-template-columns: 1fr !important;
  }
  .ml-learn-viz {
    width: 100px;
    height: 70px;
  }
  .ml-ops-node {
    width: 64px;
    margin: -28px 0 0 -32px;
  }
  .ml-ops-node i {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .ml-ops-node b {
    font-size: 11px;
  }
  .ml-ops-core b {
    font-size: 14px;
  }
  .ml-ops-core small {
    display: none;
  }
  .ml-cta-actions-row > a {
    width: 100%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ml-learn-viz i,
  .ml-source-list span,
  .ml-source-arrow i,
  .ml-cv-box,
  .ml-cv-scan,
  .ml-reco-demo span,
  .ml-anomaly-demo i,
  .ml-rag li > span,
  .ml-ops-ring::after,
  .ml-ops-node i,
  .ml-fc-forecast {
    animation: none !important;
  }
  .ml-fc-actual {
    clip-path: none;
  }
  .ml-fc-forecast,
  .ml-fc-band,
  .ml-fc-dot {
    opacity: 1;
  }
}
