/**
 * Artifex Infotech - AI Ready Page Stylesheet
 * Combines the search-engine-optimization showcase design language
 * with the Domain-Wide IT & Manpower Solutions grid and interactive tools.
 */

:root {
  --ai-bg: #050716;
  --ai-bg2: #0a0f24;
  --ai-card: #0b1128;
  --ai-card-hi: #0f1735;
  --ai-line: rgba(133, 171, 255, 0.14);
  --ai-line2: rgba(133, 171, 255, 0.28);
  --ai-blue: #2563f5;
  --ai-blue-hot: #3b82ff;
  --ai-cyan: #00d2ff;
  --ai-purple: #a855f7;
  --ai-green: #10b981;
  --ai-white: #f4f6fb;
  --ai-mist: #8e9bb8;
  --ai-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ai-radius: 16px;
}

.ai-ready-main {
  background-color: var(--ai-bg);
  color: var(--ai-white);
  overflow-x: clip;
  font-family: "Archivo", sans-serif;
}

.ai-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.ai-section {
  position: relative;
  padding: 96px 0;
  border-top: 1px solid var(--ai-line);
}

/* Scroll Fade & Word-Split Reveal (SEO pattern) */
.ai-ready-main .lwd-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s var(--ai-ease);
}

.ai-ready-main .lwd-fade.on {
  opacity: 1;
  transform: none;
}

.ai-ready-main .lwd-fade-d1 { transition-delay: 0.12s; }
.ai-ready-main .lwd-fade-d2 { transition-delay: 0.24s; }

.ai-ready-main .lwd-split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.ai-ready-main .lwd-split .wi {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.8s var(--ai-ease);
}

.ai-ready-main .lwd-split.on .wi {
  transform: translateY(0);
}

.ai-ready-main .lwd-serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #7cc0ff;
}

.ai-ready-main .lwd-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ai-blue-hot);
  margin-bottom: 14px;
}

.ai-ready-main .lwd-kicker--purple {
  color: #c084fc;
}

/* Buttons matching SEO / site system */
.ai-ready-main .lwd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ai-ease), box-shadow 0.28s ease, background 0.25s ease, border-color 0.25s ease;
}

.ai-ready-main .lwd-btn--blue {
  background: linear-gradient(135deg, #0381f0, #2563f5);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 245, 0.38);
}

.ai-ready-main .lwd-btn--blue:hover {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(37, 99, 245, 0.52);
}

.ai-ready-main .lwd-btn--line {
  background: rgba(11, 17, 40, 0.72);
  color: var(--ai-white);
  border-color: var(--ai-line2);
}

.ai-ready-main .lwd-btn--line:hover {
  color: #fff;
  text-decoration: none;
  border-color: var(--ai-blue-hot);
  background: rgba(37, 99, 245, 0.12);
}

/* =========================================================
   1. HERO SECTION & INTERACTIVE SEO-STYLE DASHBOARD
========================================================= */
.ai-hero {
  position: relative;
  padding: 184px 0 88px;
  overflow: hidden;
  border-top: none;
}

.ai-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(960px 540px at 50% 82%, rgba(37, 99, 245, 0.24), transparent 64%),
    radial-gradient(640px 380px at 16% 14%, rgba(168, 85, 247, 0.14), transparent 60%);
  pointer-events: none;
}

#aiHeroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.ai-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.ai-hero .lwd-proof {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--ai-line2);
  background: rgba(11, 17, 40, 0.76);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ai-mist);
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.ai-hero .lwd-proof .stars {
  color: var(--ai-blue-hot);
  letter-spacing: 2px;
}

.ai-hero .lwd-proof b {
  color: var(--ai-white);
}

.ai-hero .lwd-proof i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ai-blue-hot);
}

.ai-hero-title {
  margin: 0;
  font-size: clamp(42px, 5.6vw, 70px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.4px;
  color: var(--ai-white);
}

.ai-hero-lead {
  margin: 26px auto 34px;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ai-mist);
}

.ai-hero-lead b {
  color: var(--ai-white);
  font-weight: 600;
}

.ai-hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ai-hero-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ai-mist);
}

.ai-hero-note a {
  color: var(--ai-white);
  font-weight: 600;
}

/* Telemetry Dashboard (adapted directly from SEO .lwd-seo-dash) */
.ai-ready-main .lwd-seo-dash {
  position: relative;
  z-index: 2;
  margin-top: 58px;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  color: var(--ai-white);
  perspective: 1200px;
}

.ai-ready-main .lwd-seo-dash .tile {
  position: relative;
  background: rgba(11, 17, 40, 0.92);
  border: 1px solid var(--ai-line2);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  min-width: 0;
  transition: transform 0.25s var(--ai-ease), border-color 0.25s ease;
  will-change: transform;
}

.ai-ready-main .lwd-seo-dash .tile:hover {
  border-color: rgba(59, 130, 255, 0.5);
}

.ai-ready-main .lwd-seo-dash .tile.traffic {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

.ai-ready-main .lwd-seo-dash .tile.ranks {
  grid-column: 2 / span 2;
  grid-row: 1;
}

.ai-ready-main .lwd-seo-dash .tile.health {
  grid-column: 2;
  grid-row: 2;
}

.ai-ready-main .lwd-seo-dash .tile.gbp {
  grid-column: 3;
  grid-row: 2;
}

.ai-ready-main .lwd-seo-dash .th {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-ready-main .lwd-seo-dash .th b {
  font-size: 14px;
  font-weight: 700;
  color: var(--ai-white);
}

.ai-ready-main .lwd-seo-dash .th span {
  font-size: 12px;
  color: var(--ai-mist);
}

.ai-ready-main .lwd-seo-dash .th em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--ai-blue-hot);
  background: rgba(37, 99, 245, 0.14);
  border: 1px solid rgba(59, 130, 255, 0.35);
  border-radius: 50px;
  padding: 4px 10px;
}

.ai-ready-main .lwd-seo-dash .big {
  display: block;
  margin-top: 14px;
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ai-ready-main .lwd-seo-dash .big small {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ai-mist);
  margin-left: 8px;
}

.ai-ready-main .lwd-seo-dash .traffic svg {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 112px;
  max-height: 146px;
  margin-top: 14px;
}

.ai-ready-main .lwd-seo-dash .traffic .grid line {
  stroke: var(--ai-line);
  stroke-width: 1;
}

.ai-ready-main .lwd-seo-dash .traffic .area {
  fill: url(#aiDashArea);
  opacity: 0;
}

.ai-ready-main .lwd-seo-dash.on .traffic .area {
  animation: aiDashFade 1.1s 1s forwards;
}

.ai-ready-main .lwd-seo-dash .traffic .line {
  fill: none;
  stroke: var(--ai-blue-hot);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.ai-ready-main .lwd-seo-dash.on .traffic .line {
  animation: aiDashDraw 1.6s var(--ai-ease) 0.25s forwards;
}

.ai-ready-main .lwd-seo-dash .traffic .dot {
  fill: var(--ai-blue-hot);
  stroke: var(--ai-bg);
  stroke-width: 3;
}

.ai-ready-main .lwd-seo-dash .traffic .pulse {
  fill: none;
  stroke: var(--ai-blue-hot);
  stroke-width: 2;
  opacity: 0;
}

.ai-ready-main .lwd-seo-dash.on .traffic .pulse {
  animation: aiDashPulse 2.4s ease-out 1.4s infinite;
}

.ai-ready-main .lwd-seo-dash .axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ai-mist);
}

.ai-ready-main .lwd-seo-dash .speed {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--ai-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-items: center;
}

.ai-ready-main .lwd-seo-dash .speed .sc {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-ready-main .lwd-seo-dash .speed .sc i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--ai-blue-hot);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 900;
  font-size: 14px;
  color: var(--ai-white);
  box-shadow: 0 0 0 4px rgba(59, 130, 255, 0.14);
}

.ai-ready-main .lwd-seo-dash .speed .sc div {
  font-size: 11.5px;
  color: var(--ai-mist);
  line-height: 1.35;
}

.ai-ready-main .lwd-seo-dash .speed .sc div b {
  display: block;
  color: var(--ai-white);
  font-size: 12.5px;
}

.ai-ready-main .lwd-seo-dash .speed .vt {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--ai-line);
}

.ai-ready-main .lwd-seo-dash .speed .v {
  font-size: 11px;
  color: var(--ai-mist);
}

.ai-ready-main .lwd-seo-dash .speed .v b {
  display: block;
  color: var(--ai-white);
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
}

.ai-ready-main .lwd-seo-dash .speed .v b em {
  font-style: normal;
  color: var(--ai-green);
  font-size: 10.5px;
  font-weight: 700;
  margin-left: 4px;
}

.ai-ready-main .lwd-seo-dash .ranks ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ai-ready-main .lwd-seo-dash .ranks li {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 7px 0;
  border-top: 1px solid var(--ai-line);
}

.ai-ready-main .lwd-seo-dash .ranks li .kw {
  color: var(--ai-white);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-ready-main .lwd-seo-dash .ranks li .was {
  color: var(--ai-mist);
  text-decoration: line-through;
  text-decoration-color: rgba(133, 171, 255, 0.4);
  font-size: 12px;
}

.ai-ready-main .lwd-seo-dash .ranks li .arr {
  color: var(--ai-blue-hot);
}

.ai-ready-main .lwd-seo-dash .ranks li .now {
  min-width: 76px;
  text-align: center;
  background: var(--ai-blue);
  color: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  transform: scale(0.72);
  opacity: 0;
  transition: transform 0.5s var(--ai-ease), opacity 0.4s ease;
}

.ai-ready-main .lwd-seo-dash.on .ranks li .now {
  transform: none;
  opacity: 1;
}

.ai-ready-main .lwd-seo-dash.on .ranks li:nth-child(1) .now { transition-delay: 0.45s; }
.ai-ready-main .lwd-seo-dash.on .ranks li:nth-child(2) .now { transition-delay: 0.6s; }
.ai-ready-main .lwd-seo-dash.on .ranks li:nth-child(3) .now { transition-delay: 0.75s; }
.ai-ready-main .lwd-seo-dash.on .ranks li:nth-child(4) .now { transition-delay: 0.9s; }
.ai-ready-main .lwd-seo-dash.on .ranks li:nth-child(5) .now { transition-delay: 1.05s; }

.ai-ready-main .lwd-seo-dash .ranks li .now.lwd-top {
  background: linear-gradient(135deg, #00c48c, #059669);
}

.ai-ready-main .lwd-seo-dash .ring {
  position: relative;
  width: 114px;
  height: 114px;
  margin: 14px auto 0;
}

.ai-ready-main .lwd-seo-dash .ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ai-ready-main .lwd-seo-dash .ring .track {
  fill: none;
  stroke: var(--ai-line);
  stroke-width: 9;
}

.ai-ready-main .lwd-seo-dash .ring .prog {
  fill: none;
  stroke: var(--ai-blue-hot);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  filter: drop-shadow(0 0 8px rgba(59, 130, 255, 0.5));
  transition: stroke-dashoffset 1.5s var(--ai-ease) 0.45s;
}

.ai-ready-main .lwd-seo-dash.on .ring .prog {
  stroke-dashoffset: calc(314 - 314 * var(--p) / 100);
}

.ai-ready-main .lwd-seo-dash .ring b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
}

.ai-ready-main .lwd-seo-dash .ring b small {
  font-size: 12px;
  color: var(--ai-mist);
  font-weight: 600;
  margin: 8px 0 0 2px;
}

.ai-ready-main .lwd-seo-dash .health .was {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ai-mist);
}

.ai-ready-main .lwd-seo-dash .bars {
  margin-top: 16px;
  display: grid;
  gap: 13px;
}

.ai-ready-main .lwd-seo-dash .bars div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ai-mist);
}

.ai-ready-main .lwd-seo-dash .bars div span {
  min-width: 78px;
}

.ai-ready-main .lwd-seo-dash .bars div i {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ai-blue), var(--ai-cyan));
  transform: scaleX(0);
  transform-origin: left;
  width: var(--w);
  transition: transform 1.1s var(--ai-ease) 0.5s;
}

.ai-ready-main .lwd-seo-dash.on .bars div i {
  transform: scaleX(1);
}

.ai-ready-main .lwd-seo-dash .bars div b {
  color: var(--ai-white);
  font-weight: 700;
}

@keyframes aiDashDraw { to { stroke-dashoffset: 0; } }
@keyframes aiDashFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes aiDashPulse {
  0% { opacity: 0.85; r: 6; }
  100% { opacity: 0; r: 22; }
}

/* =========================================================
   2. CORE EXPERTISE: DOMAIN-WIDE IT & MANPOWER SOLUTIONS
   (Matches attached screenshot with interactive filter + glow)
========================================================= */
.ai-head-center {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.ai-head-center h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ai-white);
}

.ai-head-center p {
  margin: 16px auto 0;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ai-mist);
}

.ai-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.ai-filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--ai-line2);
  background: rgba(11, 17, 40, 0.72);
  color: var(--ai-mist);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.22s var(--ai-ease);
}

.ai-filter-btn:hover {
  color: #fff;
  border-color: var(--ai-blue-hot);
}

.ai-filter-btn.is-active {
  background: linear-gradient(135deg, #2563f5, #3b82ff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(37, 99, 245, 0.35);
}

.ai-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ai-cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  background: rgba(11, 16, 36, 0.9);
  border: 1px solid rgba(133, 171, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ai-ease), border-color 0.3s ease, opacity 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.ai-cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 255, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ai-cap-card:hover {
  transform: translateY(-5px);
  border-color: rgba(133, 171, 255, 0.36);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.ai-cap-card:hover::before {
  opacity: 1;
}

.ai-cap-card.is-dimmed {
  opacity: 0.26;
  filter: grayscale(0.5);
  transform: scale(0.98);
}

.ai-cap-card.is-selected {
  border-color: var(--ai-blue-hot);
  box-shadow: 0 0 0 1px rgba(59, 130, 255, 0.45), 0 24px 60px rgba(37, 99, 245, 0.22);
}

.ai-cap-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.ai-cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-cap-icon.tone-purple { background: rgba(168, 85, 247, 0.14); color: #c084fc; border-color: rgba(168, 85, 247, 0.3); }
.ai-cap-icon.tone-pink   { background: rgba(236, 72, 153, 0.14); color: #f472b6; border-color: rgba(236, 72, 153, 0.3); }
.ai-cap-icon.tone-cyan   { background: rgba(16, 185, 129, 0.14); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.ai-cap-icon.tone-indigo { background: rgba(99, 102, 241, 0.14); color: #818cf8; border-color: rgba(99, 102, 241, 0.3); }
.ai-cap-icon.tone-blue   { background: rgba(59, 130, 255, 0.14); color: #60a5fa; border-color: rgba(59, 130, 255, 0.3); }
.ai-cap-icon.tone-rose   { background: rgba(244, 63, 94, 0.14);  color: #fb7185; border-color: rgba(244, 63, 94, 0.3); }

.ai-cap-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ai-white);
}

.ai-cap-desc {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--ai-mist);
  min-height: 70px;
}

.ai-cap-sub {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(133, 171, 255, 0.12);
}

.ai-cap-sublabel {
  display: block;
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #64748b;
}

.ai-cap-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.ai-cap-checks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 500;
  color: #cbd5e1;
}

.ai-cap-checks li .chk {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  flex: none;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #34d399;
}

/* =========================================================
   3. SEO-STYLE CHAPTER SPLIT: DIAGNOSTIC AUDIT & SPEED GAUGES
========================================================= */
.ai-split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.ai-ready-main .lwd-mk {
  position: relative;
  background: var(--ai-card);
  border: 1px solid var(--ai-line2);
  border-radius: var(--ai-radius);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.ai-ready-main .lwd-mk .mh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ai-line);
  font-size: 13px;
  color: var(--ai-mist);
}

.ai-ready-main .lwd-mk .mh b {
  color: var(--ai-white);
  font-weight: 700;
  font-size: 14.5px;
}

.ai-ready-main .lwd-mk .mh em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ai-blue-hot);
  background: rgba(37, 99, 245, 0.14);
  border: 1px solid rgba(59, 130, 255, 0.35);
  border-radius: 50px;
  padding: 4px 10px;
}

.ai-ready-main .mk-crawl .rows {
  display: grid;
}

.ai-ready-main .mk-crawl .lwd-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ai-line);
  font-size: 14px;
  color: var(--ai-white);
}

.ai-ready-main .mk-crawl .lwd-row:last-child {
  border-bottom: none;
}

.ai-ready-main .mk-crawl .lwd-row i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ai-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11.5px;
  color: #fff;
}

.ai-ready-main .mk-crawl .lwd-row small {
  font-size: 12px;
  color: var(--ai-mist);
  font-variant-numeric: tabular-nums;
}

.ai-ready-main .mk-crawl .lwd-row small b {
  color: var(--ai-blue-hot);
}

.ai-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.ai-mode-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--ai-line2);
  background: rgba(11, 17, 40, 0.85);
  color: var(--ai-mist);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ai-ease);
}

.ai-mode-btn.is-active {
  background: rgba(37, 99, 245, 0.2);
  color: #fff;
  border-color: var(--ai-blue-hot);
}

.ai-split-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.16;
  color: var(--ai-white);
}

.ai-split-copy p {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ai-mist);
}

.ai-split-copy p b {
  color: var(--ai-white);
}

/* Before / After Speed Gauges (SEO .mk-speed adaptation) */
.ai-ready-main .mk-speed {
  margin-top: 24px;
}

.ai-ready-main .mk-speed .g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.ai-ready-main .mk-speed .gauge {
  text-align: center;
  padding: 16px 10px;
  border: 1px solid var(--ai-line);
  border-radius: 14px;
  background: var(--ai-bg);
}

.ai-ready-main .mk-speed .gauge .ring {
  position: relative;
  width: 98px;
  height: 98px;
  margin: 0 auto;
}

.ai-ready-main .mk-speed .gauge .ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ai-ready-main .mk-speed .gauge .ring circle {
  fill: none;
  stroke-width: 9;
}

.ai-ready-main .mk-speed .gauge .ring .t {
  stroke: var(--ai-line);
}

.ai-ready-main .mk-speed .gauge .ring .p {
  stroke: var(--ai-mist);
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: calc(314 - 314 * var(--p) / 100);
  transition: stroke-dashoffset 1s var(--ai-ease);
}

.ai-ready-main .mk-speed .gauge.after .ring .p {
  stroke: var(--ai-blue-hot);
  filter: drop-shadow(0 0 8px rgba(59, 130, 255, 0.55));
}

.ai-ready-main .mk-speed .gauge .ring b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: var(--ai-white);
}

.ai-ready-main .mk-speed .gauge span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ai-mist);
  font-weight: 700;
}

.ai-ready-main .mk-speed .gauge.after span {
  color: var(--ai-blue-hot);
}

/* =========================================================
   4. SCROLL-DRIVEN ROADMAP RAIL & READINESS SIMULATOR
========================================================= */
.ai-roadmap-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}

.ai-steps-rail {
  position: relative;
  padding-left: 34px;
  display: grid;
  gap: 20px;
}

.ai-steps-rail::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--ai-line);
}

.ai-rail-fill {
  position: absolute;
  left: 11px;
  top: 12px;
  width: 2px;
  height: 0;
  max-height: calc(100% - 24px);
  background: linear-gradient(180deg, var(--ai-blue-hot), var(--ai-cyan));
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.45);
  transition: height 0.14s linear;
}

.ai-step-card {
  position: relative;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--ai-line);
  background: rgba(11, 17, 40, 0.72);
  transition: border-color 0.28s ease, background 0.28s ease, transform 0.28s var(--ai-ease);
}

.ai-step-card::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ai-bg2);
  border: 2px solid var(--ai-line2);
  transition: all 0.28s ease;
}

.ai-step-card.is-on {
  border-color: rgba(59, 130, 255, 0.5);
  background: rgba(15, 23, 53, 0.92);
}

.ai-step-card.is-on::before {
  background: var(--ai-cyan);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.22);
}

.ai-step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ai-cyan);
  margin-bottom: 6px;
}

.ai-step-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ai-white);
}

.ai-step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ai-mist);
}

/* Interactive Readiness Simulator Card */
.ai-sim-card {
  background: var(--ai-card);
  border: 1px solid var(--ai-line2);
  border-radius: var(--ai-radius);
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.ai-sim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ai-line);
}

.ai-sim-score-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-sim-ring {
  position: relative;
  width: 78px;
  height: 78px;
  flex: none;
}

.ai-sim-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ai-sim-ring circle {
  fill: none;
  stroke-width: 8;
}

.ai-sim-ring .track { stroke: var(--ai-line); }
.ai-sim-ring .prog {
  stroke: var(--ai-cyan);
  stroke-linecap: round;
  stroke-dasharray: 214;
  stroke-dashoffset: calc(214 - 214 * var(--sim-p, 78) / 100);
  transition: stroke-dashoffset 0.55s var(--ai-ease);
}

.ai-sim-ring b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.ai-sim-checks {
  margin: 20px 0;
  display: grid;
  gap: 10px;
}

.ai-sim-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--ai-line);
  background: rgba(5, 7, 22, 0.7);
  cursor: pointer;
  color: var(--ai-white);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ai-sim-toggle.is-checked {
  border-color: rgba(0, 210, 255, 0.45);
  background: rgba(37, 99, 245, 0.14);
}

.ai-sim-toggle span:last-child {
  font-size: 11.5px;
  color: var(--ai-cyan);
  font-weight: 700;
}

.ai-sim-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--ai-line);
  margin-bottom: 20px;
}

.ai-sim-stat {
  background: rgba(5, 7, 22, 0.65);
  border: 1px solid var(--ai-line);
  border-radius: 10px;
  padding: 12px 14px;
}

.ai-sim-stat small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ai-mist);
}

.ai-sim-stat b {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  color: var(--ai-white);
}

/* =========================================================
   5. FAQ & FINAL CTA BANNER
========================================================= */
.ai-faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.ai-faq-list details {
  background: var(--ai-card);
  border: 1px solid var(--ai-line);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color 0.25s ease;
}

.ai-faq-list details[open] {
  border-color: rgba(59, 130, 255, 0.48);
}

.ai-faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ai-white);
}

.ai-faq-list summary::-webkit-details-marker {
  display: none;
}

.ai-faq-list summary svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ai-blue-hot);
  transition: transform 0.25s ease;
}

.ai-faq-list details[open] summary svg {
  transform: rotate(180deg);
}

.ai-faq-list details p {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ai-mist);
}

.ai-cta-box {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  padding: 58px 36px;
  border-radius: 22px;
  background: radial-gradient(820px 380px at 50% 0%, rgba(37, 99, 245, 0.26), transparent 68%), var(--ai-card);
  border: 1px solid var(--ai-line2);
}

.ai-cta-box h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  color: var(--ai-white);
}

.ai-cta-box p {
  margin: 14px auto 28px;
  max-width: 600px;
  color: var(--ai-mist);
  font-size: 16px;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .ai-expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-ready-main .lwd-seo-dash {
    grid-template-columns: 1fr 1fr;
  }
  .ai-ready-main .lwd-seo-dash .tile.traffic {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .ai-ready-main .lwd-seo-dash .tile.ranks {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .ai-ready-main .lwd-seo-dash .tile.health,
  .ai-ready-main .lwd-seo-dash .tile.gbp {
    grid-column: auto;
    grid-row: auto;
  }
  .ai-split-grid,
  .ai-roadmap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ai-hero {
    padding: 138px 0 64px;
  }
  .ai-section {
    padding: 68px 0;
  }
  .ai-expertise-grid,
  .ai-ready-main .lwd-seo-dash {
    grid-template-columns: 1fr;
  }
  .ai-cap-checks,
  .ai-sim-meta,
  .ai-ready-main .mk-speed .g {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-ready-main .lwd-fade,
  .ai-ready-main .lwd-split .wi {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
