.migration-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(237, 139, 250, 0.22), transparent 24%),
    radial-gradient(circle at 18% 88%, rgba(255, 237, 2, 0.24), transparent 28%),
    linear-gradient(115deg, #fff 0%, #fff8e8 56%, #ebeae8 100%);
}

.migration-hero h1 {
  max-width: 820px;
  font-size: clamp(46px, 5.6vw, 82px);
}

.migration-visual {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1.5px solid #000;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--bno-shadow-panel);
}

.migration-console {
  min-height: 340px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 28px;
  color: #fff;
  border-radius: var(--radius);
  background: #000;
}

.migration-console img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}

.migration-console strong {
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 460;
  line-height: 0.94;
}

.migration-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.migration-flow article {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bno-cool-gray);
}

.migration-flow article:nth-child(2) {
  background: var(--bno-soft-orange);
}

.migration-flow article:nth-child(3) {
  background: var(--bno-soft-yellow);
}

.migration-flow span {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.migration-flow b {
  font-size: 14px;
  line-height: 1.05;
}

.migration-risk {
  color: #fff;
  background: #000;
}

.migration-risk .eyebrow,
.migration-risk .section-head h2 {
  color: #fff;
}

.migration-risk .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.migration-risk-grid,
.migration-headache-grid,
.platform-grid,
.migration-offer-grid,
.migration-steps,
.migration-table,
.adoption-board {
  display: grid;
  gap: 14px;
}

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

.migration-risk-grid article {
  min-height: 350px;
  padding: 28px;
  border-radius: var(--radius);
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.migration-risk-grid article:nth-child(2) {
  color: #000;
  background: var(--bno-soft-orange);
  border-color: transparent;
}

.migration-risk-grid article:nth-child(3) {
  color: #000;
  background: var(--bno-soft-yellow);
  border-color: transparent;
}

.migration-risk-grid span,
.platform-grid span,
.migration-offer-grid span,
.migration-steps span {
  display: inline-flex;
  margin-bottom: 44px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.migration-risk-grid h3,
.platform-grid h3,
.migration-offer-grid h3,
.migration-steps h3,
.migration-table h3 {
  margin: 0 0 14px;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 460;
  line-height: 0.96;
}

.migration-risk-grid p,
.migration-headache-grid p,
.platform-grid p,
.migration-offer-grid p,
.migration-steps p,
.migration-table p {
  margin: 0;
  color: inherit;
  line-height: 1.5;
}

.migration-headache {
  background: #f4f3f1;
}

.migration-headache-copy {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: 42px;
}

.migration-headache-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 460;
  line-height: 0.96;
}

.migration-headache-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(0, 0, 0, 0.72);
  font-weight: 750;
  line-height: 1.45;
}

.migration-headache-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.migration-headache-grid article {
  min-height: 240px;
  display: grid;
  align-content: space-between;
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.migration-headache-grid h3 {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 460;
  line-height: 0.98;
}

.headache-icon {
  width: 74px;
  height: 74px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  border: 3px solid currentColor;
  color: var(--bno-fiery-orange);
}

.headache-icon::before,
.headache-icon::after {
  content: "";
  display: block;
}

.headache-icon.data::before {
  width: 40px;
  height: 30px;
  border: 3px solid currentColor;
  border-radius: 8px;
  box-shadow: 0 -12px 0 -7px currentColor, 0 12px 0 -7px currentColor;
}

.headache-icon.integration {
  color: #000;
}

.headache-icon.integration::before {
  width: 44px;
  height: 44px;
  border-top: 4px solid currentColor;
  border-left: 4px solid currentColor;
  transform: rotate(45deg);
}

.headache-icon.process {
  color: var(--bno-fiery-orange);
}

.headache-icon.process::before {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid currentColor;
  box-shadow: 22px 0 0 -11px currentColor, -22px 0 0 -11px currentColor;
}

.migration-platform-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 237, 2, 0.18), transparent 26%),
    radial-gradient(circle at 82% 72%, rgba(237, 139, 250, 0.16), transparent 28%),
    var(--bno-cool-gray);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.migration-platform-map::before,
.migration-platform-map::after {
  content: "";
  position: absolute;
  inset: 76px 160px;
  border-top: 4px dashed var(--bno-fiery-orange);
  border-bottom: 4px dashed #000;
  border-radius: 50%;
  opacity: 0.9;
}

.migration-platform-map::after {
  inset: 132px 190px;
  border-top-color: var(--bno-mellow-yellow);
  border-bottom-color: var(--bno-lively-pink);
  transform: rotate(180deg);
}

.hubspot-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: min(280px, 42vw);
  min-height: 112px;
  border: 2px solid var(--bno-fiery-orange);
  border-radius: 12px;
  background: #fff7df;
  color: #000;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.source-pill {
  position: absolute;
  z-index: 4;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 950;
  box-shadow: var(--bno-shadow-soft);
}

.source-a { left: 8%; top: 16%; color: var(--bno-fiery-orange); }
.source-b { right: 8%; top: 16%; color: #000; }
.source-c { left: 8%; top: 42%; color: #000; }
.source-d { right: 8%; top: 42%; color: #000; }
.source-e { left: 11%; bottom: 18%; color: var(--bno-fiery-orange); }
.source-f { right: 9%; bottom: 18%; color: #000; }
.source-g { left: 31%; bottom: 10%; color: #000; }
.source-h { right: 31%; bottom: 10%; color: var(--bno-fiery-orange); }

.migration-proof {
  background: #fff;
}

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

.platform-grid article {
  min-height: 350px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bno-cool-gray);
  border-top: 7px solid var(--bno-fiery-orange);
}

.platform-grid article:nth-child(2) {
  border-top-color: var(--bno-mellow-yellow);
}

.platform-grid article:nth-child(3) {
  border-top-color: #000;
}

.platform-grid article:nth-child(4) {
  border-top-color: var(--bno-lively-pink);
}

.platform-grid h3 {
  font-size: clamp(23px, 2.05vw, 30px);
  line-height: 1.03;
}

.migration-offer {
  background: #fff8e8;
}

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

.migration-offer-grid article {
  min-height: 320px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.migration-offer-grid article:nth-child(2) {
  background: var(--bno-soft-orange);
}

.migration-offer-grid article:nth-child(3) {
  background: var(--bno-soft-yellow);
}

.migration-offer-grid article:nth-child(4) {
  color: #fff;
  background: #000;
}

.migration-offer-grid h3 {
  font-size: clamp(24px, 2.25vw, 32px);
  line-height: 1.03;
}

.migration-process {
  background: #fff;
}

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

.migration-steps article {
  min-height: 390px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bno-cool-gray);
  border-top: 7px solid var(--bno-fiery-orange);
}

.migration-steps article:nth-child(2) {
  border-top-color: var(--bno-mellow-yellow);
}

.migration-steps article:nth-child(3) {
  border-top-color: #000;
}

.migration-steps article:nth-child(4) {
  border-top-color: var(--bno-lively-pink);
}

.migration-steps b {
  display: block;
  margin-bottom: 12px;
  color: var(--bno-fiery-orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.migration-steps article > span {
  display: block;
  margin-bottom: 38px;
}

.migration-steps h3 {
  font-size: clamp(27px, 3vw, 38px);
}

.migration-map {
  background: #f4f3f1;
}

.migration-table {
  gap: 0;
  overflow: hidden;
  border: 1.5px solid #000;
  border-radius: var(--radius);
  background: #fff;
}

.migration-table .table-head,
.migration-table article {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 1fr;
  gap: 0;
}

.migration-table .table-head {
  color: #fff;
  background: #000;
}

.migration-table .table-head span,
.migration-table article > * {
  padding: 18px;
}

.migration-table .table-head span {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.migration-table article {
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.migration-table b,
.migration-table strong {
  font-size: 16px;
  line-height: 1.3;
}

.migration-table p {
  color: rgba(0, 0, 0, 0.72);
}

.migration-team {
  background: #fff;
}

.migration-team .team-photos figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ebeae8;
}

.migration-team .team-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-final {
  color: #fff;
  background: #000;
}

.cta-final .eyebrow,
.cta-final h2 {
  color: #fff;
}

.cta-final p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
}

.cta-final .btn-secondary {
  color: #000;
  background: #fff;
}

.cta-final .btn-secondary:hover,
.cta-final .btn-secondary:focus-visible {
  color: #000;
  background: var(--bno-soft-orange);
  border-color: var(--bno-fiery-orange);
}

@media (max-width: 1120px) {
  .platform-grid,
  .migration-headache-grid,
  .migration-offer-grid,
  .migration-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .migration-hero h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .migration-flow,
  .migration-headache-copy,
  .migration-headache-grid,
  .platform-grid,
  .migration-offer-grid,
  .migration-steps {
    grid-template-columns: 1fr;
  }

  .migration-headache-copy {
    gap: 18px;
  }

  .migration-headache-copy h2 {
    font-size: clamp(40px, 12vw, 60px);
  }

  .migration-platform-map {
    min-height: 480px;
  }

  .migration-platform-map::before,
  .migration-platform-map::after {
    inset: 80px 40px;
  }

  .hubspot-core {
    width: 210px;
    min-height: 90px;
    font-size: 32px;
  }

  .source-a { left: 5%; top: 8%; }
  .source-b { right: 5%; top: 16%; }
  .source-c { left: 5%; top: 31%; }
  .source-d { right: 5%; top: 43%; }
  .source-e { left: 5%; bottom: 30%; }
  .source-f { right: 5%; bottom: 19%; }
  .source-g { left: 7%; bottom: 7%; }
  .source-h { right: 7%; bottom: 7%; }

  .migration-console {
    min-height: 260px;
  }

  .migration-console strong {
    max-width: 12ch;
    font-size: clamp(34px, 10vw, 50px);
  }

  .migration-risk-grid article,
  .migration-headache-grid article,
  .platform-grid article,
  .migration-offer-grid article,
  .migration-steps article {
    min-height: auto;
  }

  .migration-table .table-head {
    display: none;
  }

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

  .migration-table article > * {
    padding: 14px 18px;
  }
}
