.migration-page {
  background: #f7f9fd;
  color: #08162d;
}

.migration-page section[id] {
  scroll-margin-top: 104px;
}

.migration-page .main-nav .nav-active {
  color: #ffffff;
}

.migration-page .main-nav .nav-active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 5px;
  background: linear-gradient(90deg, #ff7a1a, #00b7ff);
}

.migration-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 94px;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 102, 31, .12), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(35, 92, 255, .15), transparent 31%),
    linear-gradient(140deg, #ffffff 0%, #f1f6ff 52%, #e9f2ff 100%);
  border-bottom: 1px solid rgba(35, 92, 255, .12);
}

.migration-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(35, 92, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 92, 255, .04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 92%);
}

.migration-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
  color: #667b99;
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  color: #164bcf;
  text-decoration: underline;
  text-decoration-color: rgba(35, 92, 255, .25);
  text-underline-offset: 3px;
}

.migration-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, .82fr);
  gap: clamp(48px, 6vw, 82px);
  align-items: center;
}

.migration-hero-copy h1 {
  max-width: 790px;
  margin: 0;
  color: #071226;
  font-size: clamp(48px, 5.5vw, 74px);
  line-height: .99;
  letter-spacing: -.058em;
}

.migration-lede {
  max-width: 720px;
  margin: 28px 0 0;
  color: #405b7d;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.62;
}

.migration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.migration-secondary {
  color: #0b2346;
  background: rgba(255, 255, 255, .78);
  border-color: rgba(11, 35, 70, .18);
  box-shadow: 0 12px 32px rgba(17, 38, 74, .08);
}

.migration-secondary:hover,
.migration-secondary:focus-visible {
  border-color: rgba(35, 92, 255, .42);
  background: #ffffff;
}

.migration-signals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 44px 0 0;
  padding: 0;
  border-top: 1px solid rgba(35, 92, 255, .18);
  border-bottom: 1px solid rgba(35, 92, 255, .18);
}

.migration-signals div {
  min-width: 0;
  padding: 17px 14px;
}

.migration-signals div + div {
  border-left: 1px solid rgba(35, 92, 255, .14);
}

.migration-signals dt {
  color: #071226;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.migration-signals dd {
  margin: 5px 0 0;
  color: #667b99;
  font-size: 12px;
  line-height: 1.35;
}

.migration-map {
  padding: 26px;
  border: 1px solid rgba(35, 92, 255, .24);
  border-radius: 8px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 6%, rgba(0, 183, 255, .18), transparent 30%),
    linear-gradient(150deg, #061226 0%, #0a2658 64%, #0d3b86 100%);
  box-shadow: 0 32px 84px rgba(17, 38, 74, .22);
}

.map-kicker {
  margin: 0 0 22px;
  color: #66dbff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.map-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: stretch;
}

.map-side {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
}

.map-target {
  border-color: rgba(0, 183, 255, .48);
  background: rgba(0, 183, 255, .11);
}

.map-side small {
  display: block;
  color: #8edfff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-side strong {
  display: block;
  min-height: 54px;
  margin-top: 8px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.25;
}

.map-side ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  list-style: none;
}

.map-side li {
  color: rgba(230, 239, 255, .72);
  font-size: 12px;
  line-height: 1.35;
}

.map-direction {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  color: #ff914d;
}

.map-direction span {
  height: 2px;
  background: linear-gradient(90deg, #ff914d, #4bdcff);
}

.map-direction b {
  color: #4bdcff;
  font-size: 24px;
  line-height: 1;
}

.map-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: rgba(230, 239, 255, .7);
  font-size: 12px;
}

.map-rule span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #70f2be;
  box-shadow: 0 0 14px rgba(112, 242, 190, .6);
}

.migration-scope,
.migration-stack {
  padding: 104px 0;
  background: #ffffff;
}

.migration-heading {
  max-width: 790px;
}

.migration-heading h2,
.proof-copy h2 {
  margin: 0;
  color: #071226;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.03;
  letter-spacing: -.052em;
}

.migration-heading > p:not(.eyebrow),
.proof-copy > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: #526984;
  font-size: 18px;
  line-height: 1.65;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 62px;
  border-top: 1px solid rgba(35, 92, 255, .19);
  border-bottom: 1px solid rgba(35, 92, 255, .19);
}

.scope-grid article {
  min-width: 0;
  padding: 30px 30px 34px;
  border-right: 1px solid rgba(35, 92, 255, .14);
}

.scope-grid article:first-child { padding-left: 0; }
.scope-grid article:last-child { padding-right: 0; border-right: 0; }

.scope-grid span {
  color: #df501e;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scope-grid h3 {
  margin: 18px 0 12px;
  color: #071226;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.scope-grid p {
  margin: 0;
  color: #526984;
  font-size: 15px;
  line-height: 1.62;
}

.migration-approach {
  padding: 104px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 183, 255, .16), transparent 28%),
    linear-gradient(130deg, #06111f, #0a2248 62%, #0b3677);
}

.migration-heading-light h2 { color: #ffffff; }

.migration-heading-light > p:not(.eyebrow) {
  color: rgba(230, 239, 255, .72);
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 62px 0 0;
  padding: 0;
  border-top: 1px solid rgba(112, 210, 255, .26);
  border-bottom: 1px solid rgba(112, 210, 255, .26);
  list-style: none;
}

.approach-steps li {
  min-width: 0;
  padding: 30px 26px 34px;
  border-right: 1px solid rgba(112, 210, 255, .18);
}

.approach-steps li:first-child { padding-left: 0; }
.approach-steps li:last-child { padding-right: 0; border-right: 0; }

.approach-steps span {
  color: #5fddff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
}

.approach-steps h3 {
  margin: 22px 0 12px;
  color: #ffffff;
  font-size: 24px;
}

.approach-steps p {
  margin: 0;
  color: rgba(230, 239, 255, .7);
  font-size: 15px;
  line-height: 1.62;
}

.migration-stack {
  background:
    linear-gradient(rgba(35, 92, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 92, 255, .035) 1px, transparent 1px),
    #f4f7fc;
  background-size: 56px 56px;
}

.stack-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(440px, 1fr);
  gap: clamp(54px, 7vw, 96px);
  align-items: start;
}

.ai-note {
  padding: 22px 0 0;
  border-top: 1px solid rgba(35, 92, 255, .18);
  font-size: 15px !important;
}

.ai-note strong { color: #0e3fa7; }

.stack-table {
  border-top: 3px solid #235cff;
  border-bottom: 1px solid rgba(35, 92, 255, .18);
  background: rgba(255, 255, 255, .64);
}

.stack-table div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 24px;
  padding: 24px 22px;
  border-bottom: 1px solid rgba(35, 92, 255, .14);
}

.stack-table div:last-child { border-bottom: 0; }

.stack-table span {
  color: #df501e;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stack-table strong {
  color: #0b2346;
  font-size: 16px;
  line-height: 1.45;
}

.migration-proof {
  padding: 90px 0;
  color: #ffffff;
  background: #071226;
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .48fr);
  gap: clamp(56px, 8vw, 110px);
  align-items: center;
}

.proof-copy h2 { color: #ffffff; }

.proof-copy > p:not(.eyebrow) {
  color: rgba(230, 239, 255, .72);
}

.proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.proof-links a {
  color: #66dbff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(102, 219, 255, .35);
  text-underline-offset: 4px;
}

.proof-action {
  padding: 32px 0 32px 32px;
  border-left: 3px solid #ff7a1a;
}

.proof-action p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .88);
  font-size: 20px;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .migration-hero-grid,
  .stack-layout,
  .proof-layout {
    grid-template-columns: 1fr;
  }

  .migration-map { max-width: 760px; }
  .stack-table { max-width: 820px; }
  .proof-action { max-width: 620px; }
}

@media (max-width: 860px) {
  .migration-signals,
  .approach-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .migration-signals div:nth-child(3),
  .migration-signals div:nth-child(4),
  .approach-steps li:nth-child(3),
  .approach-steps li:nth-child(4) {
    border-top: 1px solid rgba(35, 92, 255, .14);
  }

  .migration-signals div:nth-child(3),
  .approach-steps li:nth-child(3) {
    border-left: 0;
  }

  .approach-steps li:nth-child(2) { border-right: 0; }
  .approach-steps li:nth-child(3) { padding-left: 0; }

  .scope-grid {
    grid-template-columns: 1fr;
  }

  .scope-grid article,
  .scope-grid article:first-child,
  .scope-grid article:last-child {
    padding: 28px 0;
    border-top: 1px solid rgba(35, 92, 255, .14);
    border-right: 0;
  }

  .scope-grid article:first-child { border-top: 0; }
}

@media (max-width: 760px) {
  .migration-page section[id] { scroll-margin-top: 94px; }

  .migration-hero {
    padding: 126px 0 72px;
  }

  .breadcrumb {
    margin-bottom: 32px;
    font-size: 12px;
  }

  .migration-hero-copy h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .migration-lede { font-size: 17px; }

  .migration-actions {
    display: grid;
  }

  .migration-actions .button { width: 100%; }

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

  .migration-map {
    padding: 20px;
  }

  .map-flow {
    grid-template-columns: 1fr;
  }

  .map-direction {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 42px;
  }

  .map-direction span {
    width: 2px;
    height: 26px;
    background: linear-gradient(#ff914d, #4bdcff);
  }

  .map-direction b {
    transform: rotate(90deg);
    margin-top: -8px;
  }

  .map-side strong { min-height: auto; }

  .migration-scope,
  .migration-approach,
  .migration-stack,
  .migration-proof {
    padding: 76px 0;
  }

  .migration-heading h2,
  .proof-copy h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .migration-heading > p:not(.eyebrow),
  .proof-copy > p:not(.eyebrow) {
    font-size: 16.5px;
  }

  .approach-steps {
    grid-template-columns: 1fr;
  }

  .approach-steps li,
  .approach-steps li:first-child,
  .approach-steps li:nth-child(3),
  .approach-steps li:last-child {
    padding: 26px 0 30px;
    border-top: 1px solid rgba(112, 210, 255, .18);
    border-right: 0;
  }

  .approach-steps li:first-child { border-top: 0; }

  .stack-table div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 16px;
  }

  .proof-action {
    padding: 28px 0 0;
    border-top: 3px solid #ff7a1a;
    border-left: 0;
  }

  .proof-action .button { width: 100%; }
}
