/* ═══════════════════════════════════════════════════════════════════
   AD COLLAB — /industries "THE DIAGNOSTIC BAY"
   Namespace: dx-  ·  Requires machine.css first (tokens, chrome,
   primitives). Fail-open doctrine: animation start-states only under
   .mx-js, everything neutralized under prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════════ */

body.mx {
  margin: 0;
  font-family: var(--mx-font);
  color: var(--mx-on-dark);
  background: var(--mx-navy-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.mx ::selection { background: var(--mx-cyan); color: var(--mx-navy-950); }
.mx *, .mx *::before, .mx *::after { box-sizing: border-box; }
.mx img, .mx svg { display: block; max-width: 100%; }
.mx a { color: inherit; text-decoration: none; }
.mx h1, .mx h2, .mx h3, .mx h4, .mx p, .mx ul, .mx ol, .mx figure { margin: 0; }
.mx ul, .mx ol { padding: 0; list-style: none; }
.mx :focus-visible { outline: 3px solid var(--mx-cyan); outline-offset: 2px; border-radius: 4px; }

/* ── HERO ── */
.dx-hero {
  position: relative; overflow: hidden;
  padding: clamp(104px, 13vh, 148px) 0 clamp(36px, 5vw, 56px);
  background:
    radial-gradient(110% 70% at 78% -12%, rgba(0, 212, 255, 0.13) 0%, transparent 48%),
    radial-gradient(80% 60% at -10% 22%, rgba(10, 108, 255, 0.12) 0%, transparent 52%),
    linear-gradient(172deg, var(--mx-navy-900) 0%, var(--mx-navy-950) 100%);
}
.dx-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    linear-gradient(rgba(127,230,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,230,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(110% 80% at 60% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(110% 80% at 60% 0%, #000 0%, transparent 75%);
}
.dx-hero > .mx-wrap { position: relative; z-index: 1; }
.dx-hero-head { max-width: 860px; }
.dx-flag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 100px; margin-bottom: 22px;
  background: rgba(127,230,255,0.08); border: 1px solid rgba(127,230,255,0.2);
  font-family: var(--mx-mono); font-size: 12px; font-weight: 600; color: var(--mx-cyan-soft);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.dx-flag i { width: 7px; height: 7px; border-radius: 50%; background: var(--mx-cyan); box-shadow: 0 0 0 0 rgba(0,212,255,0.7); animation: dx-pulse 2.4s infinite; }
@keyframes dx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,212,255,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(0,212,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
}
.dx-hero h1 {
  font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.035em; color: #fff; text-wrap: balance;
}
.dx-hero-sub { font-size: 18.5px; line-height: 1.65; color: var(--mx-on-dark-2); margin-top: 18px; max-width: 62ch; }

/* ── THE DIAGNOSTIC ── */
.dx-diag { padding: clamp(20px, 3vw, 36px) 0 clamp(56px, 8vw, 88px); }

.dx-picker { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dx-picker-label { font-family: var(--mx-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mx-on-dark-3); flex: none; }
.dx-picker-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.dx-pill {
  padding: 8px 15px; border-radius: 100px; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  color: var(--mx-on-dark-2); font-family: inherit; font-size: 13.5px; font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--mx-ease);
}
.dx-pill:hover { color: #fff; border-color: rgba(127,230,255,0.45); transform: translateY(-1px); }
.dx-pill.active { background: var(--mx-cyan); border-color: var(--mx-cyan); color: var(--mx-navy-950); }

.dx-stage {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px;
}
@media (max-width: 880px) { .dx-stage { grid-template-columns: 1fr; } }

/* the ad preview screen (light SERP panel) */
.dx-screen {
  background: #fff; color: #202124;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(127,230,255,0.22);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.55);
}
.dx-screen-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: #F1F3F4; border-bottom: 1px solid #E3E6E8;
}
.dx-screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D2D8DC; }
.dx-screen-bar span { font-size: 12px; color: #5f6368; font-family: var(--mx-mono); }
.dx-screen-body { padding: 20px 22px 24px; }
.dx-query {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #DFE1E5; border-radius: 100px;
  padding: 11px 18px; margin-bottom: 18px;
  font-size: 15.5px; color: #202124;
}
.dx-query svg { width: 16px; height: 16px; stroke: #9AA0A6; flex: none; }
.dx-caret { display: inline-block; width: 1.5px; height: 17px; background: #1a73e8; margin-left: 1px; animation: dx-blink 1.1s steps(1) infinite; }
@keyframes dx-blink { 50% { opacity: 0; } }

.dx-ad { border: 1px solid #E8EAED; border-radius: 12px; padding: 15px 17px; }
.dx-ad-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.dx-ad-badge { font-size: 11.5px; font-weight: 700; color: #202124; }
.dx-ad-display { font-size: 12.5px; color: #202124; }
.dx-ad-title { display: block; font-size: 17.5px; color: #1a0dab; font-weight: 500; line-height: 1.35; margin: 4px 0 5px; }
.dx-ad-desc { font-size: 13.5px; color: #4d5156; line-height: 1.55; }
.dx-ad-call {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 11px;
  font-size: 13.5px; font-weight: 600; color: #1a73e8;
}
.dx-ad-call svg { width: 14px; height: 14px; fill: #1a73e8; }

/* dials */
.dx-readout {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--mx-navy-900);
  border: 1px solid var(--mx-dark-line); border-radius: 16px;
  padding: 22px;
}
.dx-readout-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dx-readout-title { font-family: var(--mx-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mx-cyan); }
.dx-readout-sub { font-size: 12px; color: var(--mx-on-dark-3); }
.dx-dials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 420px) { .dx-dials { grid-template-columns: 1fr; } }
.dx-dial {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(127,230,255,0.16); border-radius: 12px;
  padding: 14px 12px 12px; text-align: center;
}
.dx-dial-v {
  font-family: var(--mx-mono); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700;
  color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.dx-dial-l { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mx-on-dark-3); margin-top: 6px; }
.dx-readout-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.dx-readout-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--mx-cyan-soft);
}
.dx-readout-links a svg { width: 14px; height: 14px; transition: transform 0.25s var(--mx-ease); }
.dx-readout-links a:hover svg { transform: translateX(3px); }
.dx-readout-note { font-size: 12px; color: var(--mx-on-dark-3); margin-top: auto; }
.dx-readout-note a { color: var(--mx-on-dark-2); text-decoration: underline; text-underline-offset: 2px; }

/* ── CARD GRID ── */
.dx-section { padding: clamp(56px, 8vw, 96px) 0; }
.dx-section--alt { background: var(--mx-navy-900); border-top: 1px solid var(--mx-dark-line); }
.dx-section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 42px); }
.dx-label {
  display: inline-block; font-family: var(--mx-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mx-cyan); margin-bottom: 14px;
}
.dx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .dx-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dx-grid { grid-template-columns: 1fr; } }

.dx-card {
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--mx-dark-line); border-radius: 14px;
  padding: 22px 20px;
  transition: transform 0.3s var(--mx-ease), border-color 0.3s, background 0.3s;
}
.dx-card:hover { transform: translateY(-4px); border-color: rgba(127,230,255,0.4); background: rgba(255,255,255,0.05); }
.dx-card h3 { font-size: 18.5px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.dx-card p { font-size: 14px; line-height: 1.6; color: var(--mx-on-dark-2); flex: 1; }
.dx-card-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dx-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(127,230,255,0.09); border: 1px solid rgba(127,230,255,0.18);
  font-family: var(--mx-mono); font-size: 11px; color: var(--mx-cyan-soft);
  font-variant-numeric: tabular-nums;
}
.dx-chip--track { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); color: var(--mx-on-dark-2); }
.dx-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--mx-cyan-soft); margin-top: 2px; }
.dx-card-link svg { width: 13px; height: 13px; transition: transform 0.25s var(--mx-ease); }
.dx-card:hover .dx-card-link svg { transform: translateX(3px); }

/* ── CTA ── */
.dx-cta {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(80% 130% at 50% 0%, rgba(0,212,255,0.15) 0%, transparent 55%),
    linear-gradient(180deg, var(--mx-navy-800), var(--mx-navy-950));
  color: #fff; padding: clamp(64px, 9vw, 104px) 0;
}
.dx-cta h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin: 0 auto 14px; max-width: 24ch; text-wrap: balance; }
.dx-cta > .mx-wrap > p { font-size: 17.5px; color: var(--mx-on-dark-2); margin: 0 auto 32px; max-width: 56ch; }
.dx-cta-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .dx-hero *, .dx-diag *, .dx-section *, .dx-cta * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .dx-caret { display: none; }
}
