﻿.migration-page {
  background: #fff;
  color: var(--ink);
}

.migration-page .container {
  max-width: 1180px;
}

.migration-hero {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 28px;
  align-items: center;
  padding: 62px 0 42px;
}

.migration-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff2ec;
  border: 1px solid #ffd6c9;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.migration-hero h1 {
  margin: 26px 0 18px;
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: .98;
  letter-spacing: 0;
}

.migration-hero h1 span {
  color: var(--orange);
}

.migration-hero p {
  max-width: 470px;
  color: #4b5566;
  font-size: 17px;
  line-height: 1.7;
}

.migration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 26px 0;
}

.migration-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 580px;
}

.migration-proof span {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #111827;
  font-weight: 900;
  line-height: 1.15;
}

.migration-proof small {
  display: block;
  color: #5b6475;
  font-size: 12px;
  font-weight: 700;
}

.migration-proof svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: var(--orange);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.migration-visual {
  position: relative;
}

.migration-visual::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 92px;
  background: linear-gradient(110deg, #fff 0%, rgba(255,255,255,.92) 42%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.migration-visual img,
.migration-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.migration-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #fff 0%, transparent 8%, transparent 92%, #fff 100%),
              linear-gradient(180deg, #fff 0%, transparent 8%, transparent 90%, #fff 100%);
}

.migration-stack {
  display: grid;
  gap: 46px;
  padding: 28px 0 58px;
}

.migration-section {
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 18px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--orange);
  border-radius: 999px;
}

.migration-card-grid,
.benefit-grid,
.industry-mini-grid,
.capability-grid,
.journey-grid {
  display: grid;
  gap: 24px;
}

.migration-card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.migration-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.migration-card,
.industry-mini-grid > article,
.industry-mini-grid > a,
.capability-grid > article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
}

.migration-card.center {
  min-height: 205px;
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: center;
}

.migration-card h3,
.benefit-card h3,
.industry-mini-grid h3,
.capability-grid h3,
.journey-step h3 {
  margin: 12px 0 7px;
  font-size: 17px;
}

.feature-icon {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.feature-icon.large {
  width: 92px;
  height: 86px;
}

.feature-icon.small {
  width: 58px;
  height: 58px;
}

.cta-cube-img {
  width: 140px;
  height: 86px;
  object-fit: contain;
  display: block;
}

.migration-card p,
.benefit-card p,
.industry-mini-grid p,
.capability-grid p,
.journey-step p {
  margin: 0;
  color: #4b5566;
  line-height: 1.55;
  font-size: 14px;
}

.migration-img-icon {
  width: 82px;
  height: 74px;
  display: inline-block;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 61, 10, .18), transparent 42%),
    linear-gradient(135deg, #fff, #f5f7fb);
  border: 1px solid #edf0f5;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  position: relative;
}

.migration-img-icon::before,
.migration-img-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}

.migration-img-icon.server::before { width: 46px; height: 35px; border: 3px solid #b8c0cc; border-radius: 8px; box-shadow: 0 13px 0 #d6dce5, 0 -13px 0 #d6dce5; }
.migration-img-icon.app::before { width: 46px; height: 44px; border: 3px solid #b8c0cc; border-radius: 8px; background: linear-gradient(#f97316 0 18%, transparent 18%); }
.migration-img-icon.app::after { width: 25px; height: 18px; border-left: 3px solid var(--orange); border-right: 3px solid var(--orange); transform: skew(-14deg); }
.migration-img-icon.data::before { width: 48px; height: 32px; border-radius: 50%; border: 3px solid #b8c0cc; box-shadow: 0 18px 0 #d6dce5; }
.migration-img-icon.hybrid::before { width: 48px; height: 30px; border-radius: 50px 50px 14px 14px; border: 3px solid #c9d0da; border-bottom: 0; }
.migration-img-icon.hybrid::after { width: 44px; height: 20px; border: 3px solid var(--orange); border-top: 0; border-radius: 0 0 14px 14px; top: 34px; }

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefit-card {
  min-height: 120px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 15px;
  align-items: center;
  border-radius: 14px;
  padding: 20px;
}

.benefit-card .feature-icon,
.industry-mini-grid .feature-icon,
.capability-grid .feature-icon,
.model .feature-icon,
.more-solutions .feature-icon {
  grid-row: 1 / span 2;
}

.benefit-card h3,
.benefit-card p,
.industry-mini-grid h3,
.industry-mini-grid p,
.capability-grid h3,
.capability-grid p,
.model h3,
.model p,
.more-solutions h3,
.more-solutions p {
  grid-column: 2;
}

.benefit-card.warm { background: #fff5ef; }
.benefit-card.green { background: #f2fff5; }
.benefit-card.blue { background: #f2f7ff; }
.benefit-card.purple { background: #f7f3ff; }

.line-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: #fff3ee;
  color: var(--orange);
  border: 1px solid #ffd8ca;
  position: relative;
  flex: 0 0 auto;
}

.line-icon::before,
.line-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}

.line-icon.bolt::before { width: 22px; height: 38px; background: currentColor; clip-path: polygon(54% 0, 18% 44%, 48% 44%, 34% 100%, 82% 36%, 52% 36%); }
.line-icon.dollar::before { content: "$"; font-size: 36px; font-weight: 900; color: currentColor; text-align: center; line-height: 58px; }
.line-icon.globe::before { width: 34px; height: 34px; border: 3px solid currentColor; border-radius: 50%; }
.line-icon.globe::after { width: 34px; height: 12px; border-top: 3px solid currentColor; border-bottom: 3px solid currentColor; }
.line-icon.shield::before,
.line-icon.secure::before { width: 30px; height: 36px; border: 3px solid currentColor; border-radius: 16px 16px 20px 20px; clip-path: polygon(50% 0, 100% 18%, 88% 82%, 50% 100%, 12% 82%, 0 18%); }
.line-icon.cart::before { width: 34px; height: 25px; border: 3px solid currentColor; border-top: 0; transform: skew(-10deg); }
.line-icon.cart::after { width: 30px; height: 10px; border-bottom: 3px solid currentColor; border-left: 3px solid currentColor; top: -26px; }
.line-icon.media::before { width: 34px; height: 28px; border: 3px solid currentColor; border-radius: 4px; }
.line-icon.media::after { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid currentColor; left: 4px; }
.line-icon.bank::before { width: 40px; height: 30px; border-bottom: 4px solid currentColor; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 12px); }
.line-icon.bank::after { width: 42px; height: 18px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); top: -34px; }
.line-icon.building::before { width: 34px; height: 40px; border: 3px solid currentColor; background: repeating-linear-gradient(180deg, transparent 0 8px, currentColor 8px 10px); }
.line-icon.game::before { width: 42px; height: 28px; border: 3px solid currentColor; border-radius: 16px; }
.line-icon.game::after { width: 26px; height: 15px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; left: 16px; top: 18px; }
.line-icon.gear::before { width: 34px; height: 34px; border: 4px solid currentColor; border-radius: 50%; }
.line-icon.timer::before { width: 34px; height: 34px; border: 3px solid currentColor; border-radius: 50%; }
.line-icon.timer::after { width: 14px; height: 18px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(30deg); }
.line-icon.truck::before { width: 40px; height: 27px; border: 3px solid currentColor; border-radius: 5px; }
.line-icon.chart::before { width: 37px; height: 31px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; }
.line-icon.chart::after { width: 30px; height: 18px; border-top: 4px solid currentColor; border-right: 4px solid currentColor; transform: skew(-18deg); }
.line-icon.backup::before { width: 34px; height: 34px; border: 3px solid currentColor; border-radius: 6px; }
.line-icon.devops::before { width: 36px; height: 28px; border: 3px solid currentColor; border-radius: 5px; }
.line-icon.devops::after { content: "</>"; font-size: 14px; font-weight: 900; color: currentColor; text-align: center; line-height: 58px; }
.line-icon.network::before { width: 36px; height: 36px; border: 3px solid currentColor; border-radius: 50%; }
.line-icon.docs::before { width: 30px; height: 38px; border: 3px solid currentColor; border-radius: 5px; box-shadow: 8px -8px 0 -2px #fff, 8px -8px 0 1px currentColor; }
.line-icon.users::before { width: 34px; height: 20px; border-radius: 22px 22px 0 0; border: 4px solid currentColor; border-bottom: 0; }
.line-icon.cloud::before { width: 38px; height: 22px; border: 3px solid currentColor; border-radius: 18px; }
.line-icon.ai::before { width: 35px; height: 35px; border: 3px solid currentColor; border-radius: 12px; }
.green-icon, .benefit-card.green .line-icon { color: #08b927; background: #effff2; border-color: #c8f2cf; }
.blue-icon, .benefit-card.blue .line-icon { color: #1769ff; background: #eff5ff; border-color: #d3e3ff; }
.purple-icon, .benefit-card.purple .line-icon { color: #7c3cff; background: #f6f0ff; border-color: #e1d2ff; }

.journey-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.journey-step {
  text-align: center;
  position: relative;
}

.journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 58px;
  right: -34px;
  width: 64px;
  border-top: 2px dashed var(--orange);
}

.journey-step b {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  margin-bottom: 8px;
}

.migration-img-icon.assess::before { width: 38px; height: 38px; border: 4px solid #bcc4cf; border-radius: 50%; }
.migration-img-icon.assess::after { width: 28px; height: 20px; border-left: 4px solid var(--orange); border-bottom: 4px solid var(--orange); transform: rotate(-20deg); top: 13px; }
.migration-img-icon.plan::before { width: 38px; height: 48px; border: 3px solid #bcc4cf; border-radius: 8px; }
.migration-img-icon.migrate::before { width: 45px; height: 28px; border: 3px solid #bcc4cf; border-radius: 18px; }
.migration-img-icon.migrate::after { width: 18px; height: 24px; border-left: 4px solid var(--orange); border-top: 4px solid var(--orange); transform: rotate(45deg); top: 16px; }
.migration-img-icon.optimize::before { width: 42px; height: 38px; border-left: 3px solid #bcc4cf; border-bottom: 3px solid #bcc4cf; }
.migration-img-icon.optimize::after { width: 30px; height: 18px; border-top: 4px solid var(--orange); border-right: 4px solid var(--orange); transform: skew(-16deg); }

.industry-mini-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.industry-mini-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.industry-mini-grid > article,
.industry-mini-grid > a,
.capability-grid > article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .05);
}

.capability-grid > article {
  box-shadow: none;
}

.infra-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}

.infra-copy p {
  position: relative;
  margin: 0 0 14px;
  padding-left: 26px;
  color: #4b5566;
  font-weight: 700;
}

.infra-copy p::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 900;
}

.infra-map {
  min-height: 260px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 61, 10, .08), transparent 35%),
    linear-gradient(140deg, transparent 0 32%, rgba(148, 163, 184, .16) 32% 34%, transparent 34% 100%),
    repeating-radial-gradient(circle at 50% 50%, #d9dee8 0 1px, transparent 1px 11px);
  position: relative;
  overflow: hidden;
}

.node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 8px rgba(255, 61, 10, .12), 0 0 24px rgba(255,61,10,.6);
}

.n1 { left: 16%; top: 65%; }
.n2 { left: 38%; top: 42%; }
.n3 { left: 58%; top: 33%; }
.n4 { left: 73%; top: 53%; }
.n5 { left: 86%; top: 69%; }
.arc {
  position: absolute;
  border: 2px solid rgba(255, 61, 10, .45);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}
.a1 { left: 13%; top: 35%; width: 32%; height: 38%; transform: rotate(-6deg); }
.a2 { left: 35%; top: 22%; width: 28%; height: 36%; transform: rotate(6deg); }
.a3 { left: 53%; top: 24%; width: 28%; height: 42%; transform: rotate(10deg); }
.a4 { left: 70%; top: 42%; width: 19%; height: 25%; transform: rotate(8deg); }

.infra-stats {
  width: min(680px, 100%);
  margin: -22px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
  overflow: hidden;
}

.infra-stats span {
  padding: 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.infra-stats span:last-child { border-right: 0; }
.infra-stats strong { display: block; color: var(--orange); font-size: 30px; }
.infra-stats small { color: #4b5566; font-weight: 700; }

.migration-final-cta {
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  align-items: center;
  gap: 22px;
  background: linear-gradient(90deg, #fff1ea, #fff7f3);
  border: 1px solid #ffd7c8;
  border-radius: 16px;
  padding: 22px 26px;
}

.migration-final-cta h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.migration-final-cta p {
  margin: 0;
  color: #4b5566;
}

.cube-art {
  width: 118px;
  height: 86px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #ff3d0a, #ff8c5f);
  box-shadow: 22px 18px 0 #ffd8c9, -18px 18px 0 #fff0e9;
  transform: perspective(400px) rotateX(55deg) rotateZ(45deg);
}

.model {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.more-solutions {
  margin-top: -10px;
}

.migration-cta {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 22px;
  align-items: center;
  padding: 22px 28px;
  border-radius: 16px;
  background: linear-gradient(90deg, #fff2eb, #fff7f2);
  border: 1px solid #ffd6c9;
}

.migration-cta img {
  width: 145px;
  max-width: 100%;
  border-radius: 14px;
}

.migration-cta h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.migration-cta p {
  margin: 0;
  color: #4b5566;
}

@media (max-width: 1000px) {
  .migration-hero,
  .migration-cta {
    grid-template-columns: 1fr;
  }

  .migration-proof,
  .benefit-grid,
  .migration-card-grid.four,
  .journey-grid,
  .industry-mini-grid,
  .industry-mini-grid.four,
  .capability-grid,
  .infra-layout,
  .migration-final-cta {
    grid-template-columns: 1fr 1fr;
  }

  .migration-card-grid.three,
  .infra-layout {
    grid-template-columns: 1fr;
  }

  .journey-step::after {
    display: none;
  }

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

@media (max-width: 640px) {
  .migration-hero {
    padding-top: 42px;
  }

  .migration-actions {
    flex-direction: column;
  }

  .migration-proof {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .migration-card-grid.four,
  .migration-card-grid.three,
  .journey-grid,
  .industry-mini-grid,
  .industry-mini-grid.four,
  .capability-grid,
  .infra-stats,
  .migration-final-cta {
    grid-template-columns: 1fr;
  }

  .migration-stack {
    gap: 24px;
  }
}
