.channel-section {
  padding: 82px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(116, 95, 247, 0.1), transparent 58%),
    linear-gradient(180deg, #fbfaff 0%, #fff 100%);
  border-top: 1px solid #f0eff9;
  border-bottom: 1px solid #f0eff9;
}

.channel-intro {
  max-width: 650px;
  margin: 0 auto 34px;
  text-align: center;
}

.channel-intro h2 {
  margin: 10px 0 12px;
  font-family: Manrope, sans-serif;
  font-size: clamp(29px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.channel-intro p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.channel-visual {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 34px 25px;
  overflow: hidden;
  border: 1px solid #e8e5fb;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 65px rgba(48, 36, 124, 0.08);
}

.channel-sources {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.channel-source {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eeedf5;
  border-radius: 13px;
  background: #fff;
  color: #34344e;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(30, 26, 73, 0.035);
}

.channel-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.channel-connectors {
  display: block;
  width: 100%;
  height: 106px;
  overflow: visible;
}

.channel-connectors path {
  fill: none;
  stroke: #b6acef;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 9;
  animation: channel-flow 1.7s linear infinite;
}

.channel-connectors path:nth-child(even) {
  animation-delay: -0.85s;
}

@keyframes channel-flow {
  to {
    stroke-dashoffset: -26;
  }
}

.channel-hub {
  display: flex;
  width: fit-content;
  min-width: 245px;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: -2px auto 0;
  padding: 12px 23px;
  border: 1px solid #ded9fc;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(73, 54, 233, 0.12);
}

.channel-hub img {
  display: block;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  object-fit: cover;
}

.channel-hub strong,
.channel-hub span {
  display: block;
}

.channel-hub strong {
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.channel-hub span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.channel-caption {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.channel-cta {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.channel-cta:hover {
  text-decoration: underline;
}

.courier-network {
  padding: 82px 0;
  background: #fff;
  border-bottom: 1px solid #f0eff9;
}

.courier-flow {
  display: grid;
  grid-template-columns: minmax(205px, 0.8fr) minmax(100px, 0.42fr) minmax(340px, 1.2fr);
  align-items: center;
  gap: 20px;
  max-width: 930px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #e8e5fb;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(116, 95, 247, 0.09), transparent 35%),
    #fff;
  box-shadow: 0 22px 65px rgba(48, 36, 124, 0.07);
}

.courier-origin {
  position: relative;
  display: grid;
  min-height: 208px;
  align-content: center;
  justify-items: center;
  padding: 18px;
  border: 1px solid #ded9fc;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(73, 54, 233, 0.1);
  text-align: center;
}

.courier-origin-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.courier-origin-brand img {
  display: block;
  width: 35px;
  height: 35px;
  border-radius: 9px;
}

.courier-parcel {
  display: block;
  width: 104px;
  height: 85px;
  margin: 13px 0 7px;
}

.courier-origin-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.courier-flow-lines {
  width: 100%;
  height: 180px;
  overflow: visible;
}

.courier-flow-lines path {
  fill: none;
  stroke: #b6acef;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 8;
  animation: channel-flow 1.7s linear infinite;
}

.courier-flow-lines circle {
  fill: #7056ff;
  animation: courier-dot 2s ease-in-out infinite;
}

.courier-flow-lines circle:nth-of-type(2) {
  animation-delay: 0.45s;
}

.courier-flow-lines circle:nth-of-type(3) {
  animation-delay: 0.9s;
}

.courier-flow-lines circle:nth-of-type(4) {
  animation-delay: 1.35s;
}

@keyframes courier-dot {
  0% {
    opacity: 0;
    transform: translateX(0);
  }

  20%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(95px);
  }
}

.courier-destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.courier-destination {
  display: grid;
  min-height: 92px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid #eeedf5;
  border-radius: 13px;
  background: #fff;
  color: #34344e;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 5px 16px rgba(30, 26, 73, 0.035);
}

.courier-destination-logo {
  display: block;
  width: auto;
  max-width: min(100%, 112px);
  height: 38px;
  object-fit: contain;
}

.courier-destination small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.courier-note {
  max-width: 770px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.fulfillment-flow-section {
  padding: 82px 0 76px;
  overflow: hidden;
  border-bottom: 1px solid #f0eff9;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(116, 95, 247, 0.1), transparent 55%),
    #fbfaff;
}

.fulfillment-flow-intro {
  max-width: 690px;
  margin: 0 auto 36px;
  text-align: center;
}

.fulfillment-flow-intro h2 {
  margin: 12px 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(29px, 4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.fulfillment-flow-intro p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.fulfillment-service-banner {
  display: flex;
  max-width: 900px;
  align-items: center;
  gap: 13px;
  margin: 0 auto 18px;
  padding: 15px 18px;
  border: 1px solid #ded9fc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(48, 36, 124, 0.045);
}

.fulfillment-service-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  background: #f0eeff;
  color: #5846d9;
  font-size: 18px;
}

.fulfillment-service-banner > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.fulfillment-service-banner strong {
  color: #37374d;
  font-size: 11px;
}

.fulfillment-service-banner small {
  color: #77798c;
  font-size: 10px;
  line-height: 1.5;
}

.fulfillment-service-banner a {
  margin-left: auto;
  color: #5141d4;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.fulfillment-infographic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.fulfillment-stage {
  position: relative;
  min-width: 0;
  min-height: 218px;
  padding: 19px 16px 16px;
  border: 1px solid #e8e5f4;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(48, 36, 124, 0.055);
}

.fulfillment-stage-number {
  display: block;
  color: #9999aa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.fulfillment-stage-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin: 13px 0;
  place-items: center;
  border-radius: 12px;
  background: #f0eeff;
  color: #5846d9;
}

.fulfillment-stage-icon svg {
  width: 28px;
  height: 28px;
}

.pick-stage-icon {
  background: #edf5ff;
  color: #4871c4;
}

.pack-stage-icon {
  background: #f4edff;
  color: #7952bd;
}

.handoff-stage-icon {
  background: #fff4e8;
  color: #b97828;
}

.track-stage-icon {
  background: #eaf8f1;
  color: #27845f;
}

.fulfillment-stage h3 {
  margin: 0 0 7px;
  color: #34344e;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  letter-spacing: -0.035em;
}

.fulfillment-stage p {
  min-height: 53px;
  margin: 0 0 10px;
  color: #77798c;
  font-size: 10px;
  line-height: 1.65;
}

.fulfillment-stage-status {
  display: inline-flex;
  padding: 5px 7px;
  border-radius: 6px;
  background: #f3f1ff;
  color: #5a4aca;
  font-size: 8px;
  font-weight: 800;
}

.fulfillment-stage-connector {
  position: relative;
  display: block;
  height: 2px;
  background: #d8d2f3;
}

.fulfillment-stage-connector::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #9387e7;
  border-right: 2px solid #9387e7;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.fulfillment-stage-connector i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #725ee5;
  animation: fulfillment-flow-dot 2s ease-in-out infinite;
}

.fulfillment-stage-connector:nth-of-type(4) i {
  animation-delay: 0.35s;
}

.fulfillment-stage-connector:nth-of-type(6) i {
  animation-delay: 0.7s;
}

.fulfillment-stage-connector:nth-of-type(8) i {
  animation-delay: 1.05s;
}

@keyframes fulfillment-flow-dot {
  0% {
    left: 0;
    opacity: 0;
  }

  15%,
  75% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 7px);
    opacity: 0;
  }
}

.fulfillment-flow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 18px 0 0;
  padding: 13px 16px;
  border: 1px solid #e8e5f4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
}

.fulfillment-flow-footer > p {
  margin: 0;
  color: #55566d;
  font-size: 11px;
  font-weight: 700;
}

.fulfillment-courier-logos {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fulfillment-courier-logos > span {
  color: #8a8b9c;
  font-size: 9px;
  font-weight: 700;
}

.fulfillment-courier-logos img {
  width: auto;
  max-width: 68px;
  height: 22px;
  object-fit: contain;
}

.fulfillment-courier-logos img[src$="redx.png"] {
  width: 20px;
  height: 20px;
}

.fulfillment-flow-note {
  max-width: 800px;
  margin: 12px auto 0;
  color: #8b8c9e;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 1100px) {
  .fulfillment-infographic {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
  }

  .fulfillment-stage {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 11px;
    min-height: 0;
    padding: 14px;
  }

  .fulfillment-stage-number {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    padding-top: 3px;
  }

  .fulfillment-stage-icon {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 38px;
    height: 38px;
    margin: 0;
  }

  .fulfillment-stage-icon svg {
    width: 25px;
    height: 25px;
  }

  .fulfillment-stage h3 {
    grid-column: 3;
    margin: 0;
  }

  .fulfillment-stage p {
    grid-column: 3;
    min-height: 0;
    margin: 5px 0 7px;
  }

  .fulfillment-stage-status {
    grid-column: 3;
    justify-self: start;
  }

  .fulfillment-stage-connector {
    width: 2px;
    height: 21px;
    justify-self: center;
    background: #d8d2f3;
  }

  .fulfillment-stage-connector::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: -3px;
    transform: rotate(135deg);
  }

  .fulfillment-stage-connector i {
    top: 0;
    left: -3px;
    animation-name: fulfillment-flow-dot-vertical;
  }

  @keyframes fulfillment-flow-dot-vertical {
    0% {
      top: 0;
      opacity: 0;
    }

    15%,
    75% {
      opacity: 1;
    }

    100% {
      top: calc(100% - 7px);
      opacity: 0;
    }
  }
}

@media (max-width: 720px) {
  .courier-network {
    padding: 62px 0;
  }

  .fulfillment-flow-section {
    padding: 62px 0;
  }

  .fulfillment-infographic {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 510px;
    margin: 0 auto;
  }

  .fulfillment-stage {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    column-gap: 11px;
    min-height: 0;
    padding: 14px;
  }

  .fulfillment-stage-number {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    padding-top: 3px;
  }

  .fulfillment-stage-icon {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 38px;
    height: 38px;
    margin: 0;
  }

  .fulfillment-stage-icon svg {
    width: 25px;
    height: 25px;
  }

  .fulfillment-stage h3 {
    grid-column: 3;
    margin: 0;
  }

  .fulfillment-stage p {
    grid-column: 3;
    min-height: 0;
    margin: 5px 0 7px;
  }

  .fulfillment-stage-status {
    grid-column: 3;
    justify-self: start;
  }

  .fulfillment-stage-connector {
    width: 2px;
    height: 21px;
    justify-self: center;
    background: #d8d2f3;
  }

  .fulfillment-stage-connector::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: -3px;
    transform: rotate(135deg);
  }

  .fulfillment-stage-connector i {
    top: 0;
    left: -3px;
    animation-name: fulfillment-flow-dot-vertical;
  }

  .fulfillment-stage-connector:nth-of-type(4) i,
  .fulfillment-stage-connector:nth-of-type(6) i,
  .fulfillment-stage-connector:nth-of-type(8) i {
    animation-name: fulfillment-flow-dot-vertical;
  }

  @keyframes fulfillment-flow-dot-vertical {
    0% {
      top: 0;
      opacity: 0;
    }

    15%,
    75% {
      opacity: 1;
    }

    100% {
      top: calc(100% - 7px);
      opacity: 0;
    }
  }

  .fulfillment-flow-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .fulfillment-service-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 13px;
  }

  .fulfillment-service-banner > span:nth-child(2) {
    flex: 1;
  }

  .fulfillment-service-banner a {
    margin-left: 51px;
  }

  .fulfillment-courier-logos {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .courier-flow {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 18px;
    border-radius: 17px;
  }

  .courier-origin {
    min-height: 155px;
  }

  .courier-parcel {
    width: 82px;
    height: 67px;
    margin: 7px 0 4px;
  }

  .courier-flow-lines {
    width: 54px;
    height: 66px;
    justify-self: center;
    transform: rotate(90deg);
  }

  .courier-destinations {
    gap: 9px;
  }

  .courier-destination {
    min-height: 82px;
    gap: 4px;
    padding: 9px;
    font-size: 11px;
  }

  .courier-destination-logo {
    max-width: min(100%, 100px);
    height: 34px;
  }
}

@media (max-width: 680px) {
  .channel-section {
    padding: 62px 0;
  }

  .channel-visual {
    padding: 18px 16px 21px;
    border-radius: 17px;
  }

  .channel-sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .channel-source {
    min-height: 64px;
    gap: 8px;
    padding: 9px;
    font-size: 12px;
  }

  .channel-connectors {
    position: relative;
    height: 64px;
  }

  .channel-connectors svg {
    display: none;
  }

  .channel-connectors::before {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    border-left: 2px dashed #b6acef;
    content: "";
    transform: translateX(-50%);
  }

  .channel-connectors::after {
    position: absolute;
    top: 12px;
    left: calc(50% - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple);
    content: "";
    animation: channel-pulse 1.7s ease-in-out infinite;
  }

  @keyframes channel-pulse {
    to {
      transform: translateY(36px);
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .channel-connectors path,
  .channel-connectors::after,
  .courier-flow-lines path,
  .courier-flow-lines circle,
  .fulfillment-stage-connector i {
    animation: none;
  }
}
