/**
 * Website Migration Solution Page Stylesheet
 * Scoped under: .solution-migration-page
 * Fully responsive with native Dark and Light mode support.
 * Design tokens strictly following note.md.
 */

/* Container & Scope */
.solution-migration-page {
  overflow-x: hidden;
}

.solution-migration-page * {
  box-sizing: border-box;
}

.solution-migration-page .wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0;
}

.solution-migration-page .mig-section {
  padding: 84px 0;
  position: relative;
}

@media (max-width: 768px) {
  .solution-migration-page .mig-section {
    padding: 56px 0;
  }
}

/* Gradient text utility */
.mig-gradient-text {
  background: linear-gradient(135deg, var(--text) 30%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Common Badges */
.solution-migration-page .mig-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.solution-migration-page .tag-green {
  background: rgba(19, 165, 127, 0.14);
  color: #13a57f;
  border: 1px solid rgba(19, 165, 127, 0.25);
}

.solution-migration-page .tag-blue {
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.solution-migration-page .tag-purple {
  background: rgba(167, 139, 250, 0.14);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.solution-migration-page .tag-pink {
  background: rgba(244, 114, 182, 0.14);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.solution-migration-page .tag-yellow {
  background: rgba(250, 204, 21, 0.16);
  color: #b38800;
  border: 1px solid rgba(250, 204, 21, 0.25);
}

/* Section Header Typography */
.solution-migration-page .sec-head {
  margin-bottom: 48px;
}

.solution-migration-page .mig-section-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 16px;
}

.solution-migration-page .mig-section-lead {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text-dim);
  max-width: 740px;
  margin: 0;
}

@media (max-width: 768px) {
  .solution-migration-page .mig-section-title {
    font-size: 28px;
  }
  .solution-migration-page .mig-section-lead {
    font-size: 14.5px;
  }
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.mig-hero {
  padding: 88px 0 60px;
  position: relative;
  text-align: center;
}

.mig-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.mig-hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(96, 165, 250, 0.12) 0%, rgba(19, 165, 127, 0.06) 45%, transparent 75%);
  filter: blur(60px);
}

.mig-grid-pattern {
  display: none !important;
}

.mig-hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

.mig-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.mig-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #13a57f;
  box-shadow: 0 0 8px #13a57f;
}

.mig-hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 auto 20px;
  max-width: 960px;
}

.mig-hero-title .mig-title-top {
  display: block;
}

.mig-hero-title .mig-title-bottom {
  display: block;
}

@media (max-width: 768px) {
  .mig-hero-title {
    font-size: 32px;
    line-height: 1.2;
  }
}

.mig-hero-lead {
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 32px;
}

.mig-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.mig-hero-btn {
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 600;
}

.mig-hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.mig-hbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
}

.mig-hbadge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mig-icon-green { color: #13a57f; }
.mig-icon-blue { color: #60a5fa; }
.mig-icon-purple { color: #a78bfa; }

/* Cockpit Card Container */
/* ==========================================================================
   1. SWITCHBOARD & LIVE DATA CONDUIT CONSOLE
   ========================================================================== */
.mig-cockpit-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: left;
}

.mig-switchboard-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
}

.mig-switchboard-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
  gap: 14px;
  flex-wrap: wrap;
}

.mig-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mig-window-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mig-window-dots .red { background: #ef4444; opacity: 0.8; }
.mig-window-dots .yellow { background: #b38800; opacity: 0.8; }
.mig-window-dots .green { background: #22c55e; opacity: 0.8; }

.mig-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
}

.mig-live-ping {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
  animation: pingPulse 1.8s infinite ease-in-out;
}

@keyframes pingPulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.mig-bar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #60a5fa;
  font-family: monospace;
}

.mig-switchboard-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card-3);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}

.sw-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sw-tab-btn svg {
  width: 13px;
  height: 13px;
}

.sw-tab-btn.active {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

.mig-console-body {
  padding: 24px;
}

.mig-console-body.is-hidden {
  display: none !important;
}

/* 3-Column Switchboard Node Layout */
.mig-nodes-flex {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .mig-nodes-flex {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.mig-node-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.node-badge-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: monospace;
  margin-bottom: 8px;
  display: inline-block;
}

.node-badge-tag.tag-amber { color: #f59e0b; }
.node-badge-tag.tag-green { color: #13a57f; }

.node-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.node-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.node-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.node-icon-box.origin-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

.node-icon-box.target-icon {
  background: rgba(19, 165, 127, 0.14);
  color: #13a57f;
}

.node-icon-box svg {
  width: 20px;
  height: 20px;
}

.node-status-info {
  flex-grow: 1;
}

.node-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.node-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.04em;
}

.status-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-led.amber { background: #f59e0b; }
.status-led.green { background: #13a57f; }

.node-status.amber-pulse { color: #f59e0b; }
.node-status.green-pulse { color: #13a57f; }

.node-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nmetric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
}

.nlbl {
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.nval {
  font-weight: 600;
  color: var(--text);
  font-family: monospace;
  white-space: nowrap;
  flex-shrink: 0;
}

.nval.bad-speed {
  color: #ef4444;
}

.nval.optimal-speed {
  color: #13a57f;
  font-weight: 700;
}

.nval.text-green {
  color: #13a57f;
}

/* Center Conduit Pipeline Bridge */
.mig-conduit-col {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.conduit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 11px;
  font-family: monospace;
}

.conduit-lbl {
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
}

.conduit-speed {
  color: #60a5fa;
  font-weight: 700;
}

/* Conduit Cable Track & Packets */
.conduit-track {
  position: relative;
  margin: 10px 0 16px;
}

.conduit-cable {
  width: 100%;
  height: 6px;
  background: var(--card-3);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  margin-bottom: 18px;
}

.packet-stream {
  width: 100%;
  height: 100%;
  position: relative;
}

.data-packet {
  position: absolute;
  top: 0;
  height: 100%;
  width: 60px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #13a57f, #60a5fa, transparent);
  animation: packetFlow 2.8s infinite linear;
}

.data-packet.p1 { animation-delay: 0s; }
.data-packet.p2 { animation-delay: 0.7s; }
.data-packet.p3 { animation-delay: 1.4s; }
.data-packet.p4 { animation-delay: 2.1s; }

@keyframes packetFlow {
  0% { left: -60px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Pipeline Checkpoints (2x2 Grid) */
.conduit-checkpoints {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .conduit-checkpoints {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .conduit-checkpoints {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cgate-item {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cgate-icon-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.cgate-icon-dot.passed {
  background: rgba(19, 165, 127, 0.16);
  color: #13a57f;
}

.cgate-icon-dot.active {
  background: rgba(96, 165, 250, 0.16);
  color: #60a5fa;
  animation: pingPulse 1.5s infinite;
}

.cgate-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cgate-title {
  font-size: 9.5px;
  font-weight: 800;
  font-family: monospace;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.cgate-val {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Conduit Progress Wrap */
.conduit-progress-wrap {
  margin-top: 14px;
}

.conduit-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 6px;
  color: var(--text-dim);
}

.sync-pct {
  color: #13a57f;
  font-weight: 700;
  font-family: monospace;
}

.conduit-bar-track {
  width: 100%;
  height: 5px;
  background: var(--card-3);
  border-radius: 999px;
  overflow: hidden;
}

.conduit-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #60a5fa, #13a57f);
  border-radius: 999px;
}

/* Terminal Log Strip */
.mig-terminal-strip {
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: monospace;
  font-size: 11px;
  overflow-x: auto;
}

.term-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #13a57f;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.term-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #13a57f;
}

.term-ticker {
  display: flex;
  gap: 18px;
  color: var(--text-dim);
  white-space: nowrap;
}

.term-ticker .t-time {
  color: var(--text-faint);
}

.term-ticker .t-tag {
  color: #60a5fa;
  font-weight: 700;
}

/* View 2: Route Switchboard Table */
.route-switchboard-box {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}

.rsb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-family: monospace;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.rsb-count {
  color: #13a57f;
}

.rsb-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rsb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-family: monospace;
  font-size: 11.5px;
  overflow-x: auto;
}

.rsb-method {
  font-weight: 800;
  color: #60a5fa;
  flex-shrink: 0;
}

.rsb-old {
  color: #f87171;
  text-decoration: line-through;
  opacity: 0.85;
  white-space: nowrap;
}

.rsb-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
}

.rsb-new {
  color: #13a57f;
  font-weight: 600;
  white-space: nowrap;
}

.rsb-status {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.rsb-latency {
  color: var(--text-faint);
  font-size: 10.5px;
  flex-shrink: 0;
}


/* ==========================================================================
   2. MIGRATION TYPES MATRIX: 6 CARD GRID
   ========================================================================== */
.mig-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .mig-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mig-types-grid {
    grid-template-columns: 1fr;
  }
}

.mig-type-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.mig-type-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

html[data-theme="light"] .mig-type-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.mig-type-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.mig-type-icon-box svg {
  width: 22px;
  height: 22px;
}

.icon-cms { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.icon-ecom { background: rgba(250, 204, 21, 0.12); color: #b38800; }
.icon-domain { background: rgba(19, 165, 127, 0.12); color: #13a57f; }
.icon-cloud { background: rgba(167, 139, 250, 0.12); color: #a78bfa; }
.icon-headless { background: rgba(244, 114, 182, 0.12); color: #f472b6; }
.icon-db { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }

.mig-type-meta {
  margin-bottom: 12px;
}

.mig-type-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

.mig-type-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.mig-type-text {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-dim);
  margin: 0 0 20px;
  flex-grow: 1;
}

.mig-type-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.mig-type-list li {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mig-type-list li:last-child {
  margin-bottom: 0;
}

.mig-type-list li span {
  color: #60a5fa;
  font-weight: 700;
}


/* ==========================================================================
   3. PRE-MIGRATION AUDIT: 4 TIER LAB CARDS
   ========================================================================= */
.mig-audit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .mig-audit-grid {
    grid-template-columns: 1fr;
  }
}

.mig-audit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  gap: 20px;
  transition: border-color 0.25s ease;
}

.mig-audit-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="light"] .mig-audit-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.audit-step-num {
  font-size: 28px;
  font-weight: 800;
  color: #13a57f;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
}

.audit-content h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}

.audit-content p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.audit-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.audit-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
}


/* ==========================================================================
   4. URL/SEO MAPPING PROTOCOL: COMPARISON MATRIX
   ========================================================================= */
.mig-mapping-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.mig-mapbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.mapbox-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.mapbox-title svg {
  width: 18px;
  height: 18px;
  color: #b38800;
}

.mig-mapping-box .mig-badge {
  margin-bottom: 0;
}

.mig-mapping-table-wrap {
  padding: 16px 28px;
}

.mig-map-row {
  display: grid;
  grid-template-columns: 2.2fr 0.4fr 2.2fr 1.6fr;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  gap: 12px;
}

.mig-map-row:last-child {
  border-bottom: none;
}

.mig-map-head {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  padding-bottom: 10px;
}

.col-arrow {
  text-align: center;
  font-weight: 800;
  color: var(--text-dim);
}

.route-pill {
  font-family: monospace;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  word-break: break-all;
}

.route-pill.old {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.route-pill.new {
  background: rgba(19, 165, 127, 0.1);
  color: #13a57f;
  border: 1px solid rgba(19, 165, 127, 0.2);
}

.mig-map-row .mig-badge {
  margin-bottom: 0;
  font-size: 10.5px;
}

@media (max-width: 860px) {
  .mig-map-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }
  .mig-map-head {
    display: none;
  }
  .col-arrow {
    text-align: left;
    display: none;
  }
}

.mig-map-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 28px;
  background: var(--card-2);
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .mig-map-principles {
    grid-template-columns: 1fr;
  }
}

.principle-item {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-dim);
}

.principle-item strong {
  color: var(--text);
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}


/* ==========================================================================
   5. CONTENT & DATA MIGRATION: ETL PIPELINE CARDS
   ========================================================================== */
.mig-etl-pipeline {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

@media (max-width: 900px) {
  .mig-etl-pipeline {
    flex-direction: column;
  }
}

.etl-stage {
  flex: 1 1 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.etl-stage-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a78bfa;
  margin-bottom: 12px;
}

.etl-stage h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}

.etl-stage p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 20px;
  flex-grow: 1;
}

.etl-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.etl-bullets li {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.etl-bullets li::before {
  content: "•";
  color: #a78bfa;
  font-weight: 800;
  position: absolute;
  left: 0;
}

.etl-bullets li:last-child {
  margin-bottom: 0;
}

.etl-arrow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-faint);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .etl-arrow-divider {
    transform: rotate(90deg);
    padding: 8px 0;
  }
}


/* ==========================================================================
   6. REDIRECT ENGINE: 4 COLUMN GRID
   ========================================================================== */
.mig-redirect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .mig-redirect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mig-redirect-grid {
    grid-template-columns: 1fr;
  }
}

.mig-rcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.25s ease;
}

.mig-rcard:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="light"] .mig-rcard:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.mig-rcard-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(244, 114, 182, 0.12);
  color: #f472b6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.mig-rcard-icon svg {
  width: 20px;
  height: 20px;
}

.mig-rcard h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.35;
}

.mig-rcard p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}


/* ==========================================================================
   7. TESTING & VALIDATION: 4 PILLAR CARDS
   ========================================================================== */
.mig-testing-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .mig-testing-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mig-testing-pillars {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pillar-header {
  margin-bottom: 12px;
}

.pillar-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.pillar-status.pass {
  background: rgba(19, 165, 127, 0.14);
  color: #13a57f;
  border: 1px solid rgba(19, 165, 127, 0.25);
}

.pillar-header h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.pillar-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 20px;
  flex-grow: 1;
}

.pillar-stat {
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.pillar-stat .stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #13a57f;
}

.pillar-stat .stat-lbl {
  font-size: 11px;
  color: var(--text-dim);
}


/* ==========================================================================
   8. LAUNCH PROTOCOL: TIMELINE RUNBOOK
   ========================================================================== */
.mig-runbook-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.runbook-step {
  display: flex;
  gap: 24px;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
}

.marker-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-2);
  border: 2px solid #13a57f;
  color: #13a57f;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-line {
  flex-grow: 1;
  width: 2px;
  background: var(--border);
  margin-top: 8px;
}

.step-card {
  flex-grow: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.step-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.step-badge.active {
  background: rgba(19, 165, 127, 0.14);
  color: #13a57f;
  border-color: rgba(19, 165, 127, 0.3);
}

.step-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.step-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}

.step-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}


/* ==========================================================================
   9. POST-LAUNCH MONITORING: 4 CARDS
   ========================================================================== */
.mig-mon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .mig-mon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mig-mon-grid {
    grid-template-columns: 1fr;
  }
}

.mig-mon-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mon-header {
  margin-bottom: 12px;
}

.mon-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.mon-icon-circle svg {
  width: 18px;
  height: 18px;
}

.mon-icon-circle.green { background: rgba(19, 165, 127, 0.14); color: #13a57f; }
.mon-icon-circle.blue { background: rgba(96, 165, 250, 0.14); color: #60a5fa; }
.mon-icon-circle.purple { background: rgba(167, 139, 250, 0.14); color: #a78bfa; }

.mon-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

.mig-mon-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 18px;
  flex-grow: 1;
}

.mon-tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

.mon-tag-row span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--card-2);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--border-soft);
}


/* ==========================================================================
   10. FAQ SECTION (HOMEPAGE COMPLIANT)
   ========================================================================== */
.solution-migration-page #faq {
  padding: 80px 0;
}

.solution-migration-page #faq .sec-head {
  margin-bottom: 40px;
}

/* ==========================================================================
   11. CTA SECTION (HOMEPAGE COMPLIANT)
   ========================================================================== */
.solution-migration-page #quote.cta-section {
  padding-bottom: 100px;
}
