/* ============================================================
   Base / Reset
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-text: #212121;
  --color-text-muted: #929492;
  --color-accent: #6cb7ff;
  --color-accent-strong: #2f8df0;
  --color-dark: #1d1f24;
  --color-bg: #ffffff;
  --color-bg-soft: #E9F0F6;

  --radius-pill: 999px;

  /* Design tokens */
  --cards: linear-gradient(156deg, #E9F0F6 0.76%, #FFF 52.63%, #E9F0F6 116.83%);
  --Button: linear-gradient(92deg, #84C7FF -8.16%, #C3DDF7 52.29%, #84C7FF 103.61%);
  --hero-bg: url("../images/hero/hero-gradient.svg") center/cover no-repeat;
  --card-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

  --font-display: "DM Sans", system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-max: 1280px;
  --container-pad: 40px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 650px;
  background: var(--hero-bg);
  overflow: hidden;
}

.hero__bottom-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38%;
  max-width: 480px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 50px;
  padding-bottom: 80px;
}

.logo__text {
  font-weight: 900;
  font-size: 20px;
  color: var(--color-text);
}

/* Mobile-only logo lives inside .hero__text — hidden on desktop */
.logo__text--mobile {
  display: none;
}

.hero__content {
  margin-top: 80px;
}

.hero__text {
  max-width: 650px;
}

.hero__title {
  font-size: 54px;
  font-weight: 900;
  line-height: 64px;
  color: var(--color-text);
}

.hero__title--accent {
  display: block;
  background: linear-gradient(
    102.58deg,
    #84C7FF 31.83%,
    #C3DDF7 52.29%,
    #84C7FF 74.22%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title--dark {
  display: block;
  color: var(--color-text);
}

.hero__description {
  margin-top: 9px;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: var(--color-text);
  max-width: 608px;
}

.hero__actions {
  margin-top: 42px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 235px;
  height: 60px;
  padding: 10px 24px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  line-height: 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn--dark {
  background: linear-gradient(99deg, #212121 -53.3%, #4D4E4D 99.47%);
  border-color: #4b4c4b;
  color: #ffffff;
}

.btn--dark:hover {
  background: #ffffff;
  border-color: #212121;
    border-width: 2px;
  color: var(--color-text);
}

.btn--primary {
  background: var(--Button);
  border-color: #84C7FF;
  color: #ffffff;
  min-width: 300px;
}

.btn--primary:hover {
  background: #ffffff;
  border-color: #84C7FF;
    border-width: 2px;

  color: var(--color-text);
}

/* Hero visual — absolute, pinned to top-right corner of the hero card */
.hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  max-width: 720px;
  min-height: 520px;
  pointer-events: none;
  z-index: 1;
}

.hero__mesh-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__mesh {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero__icon {
  position: absolute;
  width: auto;
  height: auto;
  pointer-events: none;
}

.hero__icon--settings {
  top: 0;
  right: 28%;
  width: 32%;
  max-width: 200px;
}

.hero__icon--tools {
  top: 22%;
  left: 8%;
  width: 18%;
  max-width: 110px;
}

.hero__icon--stars {
  top: 28%;
  right: 4%;
  width: 22%;
  max-width: 140px;
}

.hero__icon--network {
  top: 52%;
  right: -2%;
  width: 28%;
  max-width: 180px;
}

/* ============================================================
   Section head (shared)
   ============================================================ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 54px;
}

.section-head__title {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-text);
  line-height: normal;
}

.section-head__subtitle {
  margin-top: 12px;
  font-size: 18px;
  color: var(--color-text);
}

.section-head__subtitle + .section-head__subtitle {
  margin-top: 16px;
}

.section-head--wide {
    position: relative;
    z-index: 2;
  max-width: 900px;
}

.section-head--light .section-head__title {
  color: #ffffff;
}

.section-head--light .section-head__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   About
   ============================================================ */
.about {
  padding: 80px 0 100px;
  background: linear-gradient(156deg, #DEECFA 0.76%, #9CCBF3 116.83%);
}

.about .section-head__subtitle {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  margin-top: 15px;
}

.stats {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 49px;
}

/* Soft white blur glow behind the middle card */
.stats::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 517px;
  height: 681px;
  border-radius: 681px;
  background: #FFF;
  filter: blur(200px);
  pointer-events: none;
}

.stat-card {
  position: relative;
  z-index: 1;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.37);
  padding: 56px 32px;
  min-height: 260px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stat-card__label {
  font-size: 22px;
  font-weight: 900;
  line-height: normal;
  color: var(--color-text);
}

.stat-card__value {
  font-size: 45px;
  font-weight: 900;
  line-height: normal;
  color: #6BBCFF;
}

/* ============================================================
   Services
   ============================================================ */
.services {
  padding: 80px 0 100px;
  background: #ffffff;
}

/* Services grid needs ~1280px of inner width to fit 4 × 307px cards + 3 × 17px gaps */
.services .container {
  max-width: 1360px;
}

.services .section-head__subtitle {
  margin-top: 5px;
}

.services__grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 17px;
  padding-top: 18px;
}

.service-card {
  position: relative;
  background: var(--color-bg-soft);
  border-radius: 20px;
  flex: 0 1 calc((100% - 3 * 17px) / 4);
  max-width: 307px;
  min-width: 0;
  padding: 47px 41px 54px 42px;
}

.service-card__icon {
  position: absolute;
  top: -36px;
  right: 0;
  width: 96px;
  height: auto;
  pointer-events: none;
}

.service-card__title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--color-text);
  margin-bottom: 26px;
  white-space: nowrap;
}

.service-card__text {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text);
}

/* ============================================================
   Process (How We Work)
   ============================================================ */
.process {
    position: relative;
    z-index: 2;
  padding: 80px 0;
  background: linear-gradient(99deg, #343434 -0.99%, #4A4B4A 116.43%);
}

.process .section-head {
  margin-bottom: 64px;
}

.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 71px;
  position: relative;
}

.process-card {
  position: relative;
  background: #E9F0F6;
  border-radius: 20px;
  padding: 36px 28px 36px 27px;
}

/* Dashed connector between cards */
.process-card + .process-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -53px;
  width: 35px;
  height: 3px;
  background: url("../images/how-we-work/dashed-line.svg") no-repeat center / 35px 3px;
  transform: translateY(-50%);
}

.process-card__icon {
  position: absolute;
  top: -40px;
  right: -40px;
  height: auto;
  pointer-events: none;
}

.process-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--color-text);
  margin-bottom: 11px;
  text-align: center;
}

.process-card__text {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text);
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  padding: 80px 0 126px;
  background: #ffffff;
}

.contact .section-head__subtitle {
  margin-top: 7px;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 38px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact__item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #A7D0F4;
  color: #fff;
  border-radius: 50%;
}

.contact__item-text {
  font-size: 20px;
  line-height: 24px;
  color: var(--color-text);
  width: 300px;
}

a.contact__item-text:hover {
  text-decoration: underline;
}

.contact__why {
  margin-top: 88px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact__why-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 12px;
  line-height: 24px;
}

.contact__why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__why-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-text);
}

.contact__why-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #212121 0%, #505150 100%);
  color: #ffffff;
  border-radius: 50%;
}

/* ============================================================
   Cooperation
   ============================================================ */
.cooperation {
  position: relative;
  overflow: hidden;
  background: linear-gradient(99deg, #212121 -0.99%, #2C2C2C 116.43%);
  padding: 114px 0 82px;
  min-height: 651px;
}

.cooperation__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.cooperation__visual {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: min(65vw, 930px);
  pointer-events: none;
  z-index: 0;
}

.cooperation__image {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile-only icons overlay (hidden on desktop) */
.cooperation__icons {
  display: none;
}

.cooperation__content {
  position: relative;
  z-index: 1;
  grid-column: 2;
  max-width: 620px;
}

.cooperation__title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 27px;
  line-height: normal;
}

.cooperation__text {
  font-size: 18px;
  line-height: 28px;
  color: #FFF;
  font-weight: 400;
  margin-top: 3px;
}

.cooperation__text + .cooperation__text {
  margin-top: 20px;
}

.cooperation .btn--primary {
  margin-top: 39px;
  width: 424px;
}

.btn--wide {
  min-width: 320px;
}

/* ============================================================
   Legal pages (Privacy Policy, Terms)
   ============================================================ */
.legal-header {
  background: var(--hero-bg);
  padding: 32px 0;
  border-bottom: 1px solid rgba(33, 33, 33, 0.08);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header__back {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  transition: opacity 0.2s ease;
}

.legal-header__back:hover {
  opacity: 0.7;
}

.legal {
  padding: 64px 0 96px;
  background: #ffffff;
}

.legal__inner {
  max-width: 820px;
}

.legal__title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal__updated {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 48px;
}

.legal__section + .legal__section {
  margin-top: 36px;
}

.legal__heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.legal__text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
}

.legal__text + .legal__text {
  margin-top: 12px;
}

.legal__list {
  margin-top: 12px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
}

.legal__link {
  color: var(--color-accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__link:hover {
  opacity: 0.8;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  overflow: hidden;
  background: #212121;
  color: #ffffff;
  padding: 33px 80px 40px 80px;
}

.footer__bg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  pointer-events: none;
  z-index: 0;
}

.footer__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 85px;
  padding: 0;
}

.footer__nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 54px;
}

.footer__nav-list--secondary {
  margin-top: 31px;
  gap: 39px;
}

.footer__link {
  font-size: 22px;
  font-weight: 900;
  color: #E9F0F6;
  line-height: normal;
  transition: opacity 0.2s ease;
}

.footer__link:hover {
  opacity: 0.7;
}

.footer__link--small {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: normal;
}

.footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #fff;
    font-weight: 500;
}

.footer__company,
.footer__address {
  margin: 0;
}

.footer__company {
    font-size: 16px;
    line-height: normal;
}

.footer__address {
    font-size: 18px;
    line-height: 30px;

}

/* ============================================================
   Responsive
   ============================================================ */
/* Services switch to 2x2 earlier so cards keep a comfortable size */
@media (max-width: 1340px) {
  .services__grid {
    gap: 32px 24px;
  }

  .service-card {
    flex: 0 1 calc((100% - 24px) / 2);
    max-width: none;
  }
}

@media (max-width: 1100px) {
  /* Tablet: nudge the lower hero icon so it sits better inside the visual area */
  .hero__icon--network {
    top: 64%;
    right: -10%;
    width: 24%;
  }

  .process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 71px;
  }

  /* Reset desktop connectors, draw them only between horizontal neighbours */
  .process-card + .process-card::before {
    display: none;
  }

  .process-card:nth-child(2n)::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: -53px;
    width: 35px;
    height: 3px;
    background: url("../images/how-we-work/dashed-line.svg") no-repeat center / 35px 3px;
    transform: translateY(-50%);
  }
}

@media (max-width: 960px) {
  :root {
    --container-pad: 30px;
  }

  .hero__inner {
    padding-top: 32px;
    padding-bottom: 55px;
  }

  /* Hero: swap logo placement and drop the bottom decoration */
  .logo--desktop {
    display: none;
  }

  .logo__text--mobile {
    display: block;
    margin-bottom: 16px;
  }

  .hero__bottom-bg {
    display: none;
  }

  .hero__content {
    margin-top: 320px;
  }

  .hero__visual {
    width: 100%;
    max-width: none;
    min-height: 300px;
  }

  .hero__mesh-wrap {
    width: 100%;
  }

  .logo__text--mobile {
    font-size: 16px;
    margin-bottom: 2px;
    line-height: normal;
  }

  .hero__title {
    font-size: 36px;
    line-height: 44px;
    width: 280px;
  }

  .hero__title--accent,
  .hero__title--dark {
    display: inline;
    font-size: 38px;
    line-height: 44px;
  }

  .hero__description {
    font-size: 18px;
    line-height: 24px;
    margin-top: 11px;
    width: 330px;
  }

  .hero__actions {
    margin-top: 21px;
    gap: 16px;
  }

  .btn {
    min-width: 160px;
    padding: 14px 24px;
  }

  .services {
    padding: 50px 0 85px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .cooperation {
    padding: 50px 0 0;
    min-height: 0;
  }

  .cooperation__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  /* On mobile, text comes first, illustration goes below */
  .cooperation__content {
    order: 1;
    max-width: none;
    text-align: center;
  }

  .cooperation__visual {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    z-index: auto;
    width: calc(100% + 2 * var(--container-pad));
    max-width: none;
    margin-left: calc(-1 * var(--container-pad));
    margin-right: calc(-1 * var(--container-pad));
    margin-bottom: 0;
    order: 2;
    line-height: 0;
    font-size: 0;
  }

  .cooperation__visual picture,
  .cooperation__visual picture img,
  .cooperation__image {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Icons overlay on top of bg-mobile, centered horizontally, pinned to bottom */
  .cooperation__icons {
    display: block;
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    height: auto;
    pointer-events: none;
  }

  .cooperation .btn--primary {
    margin: 32px auto 0;
    width: 341px;
  }

  .contact {
    padding: 50px 0 80px;
  }

  .contact .section-head__subtitle {
    margin-top: 15px;
  }

  .contact .section-head {
    margin-bottom: 30px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Mobile: wrap both lists in a single flex column so they share width & alignment */
  .contact__info {
    display: flex;
    flex-direction: column;
    gap: 58px;
    padding: 0 6px;
  }

  /* Mobile order: "Why connect now?" → email + address */
  .contact__why {
    order: 1;
    margin: 0;
    max-width: none;
    padding: 0;
  }

  .contact__why-title {
    margin-bottom: 18px;
  }

  .contact__list {
    order: 2;
    margin: 0;
    max-width: none;
    padding: 0;
    align-items: flex-start;
  }

  .contact__why-list {
    gap: 32px;
  }

  .contact__why-item {
    line-height: 22px;
    font-size: 16px;
  }

  .contact__item-text {
    font-size: 16px;
      width: 100%;
  }

  .footer {
    padding: 47px 0 30px;
  }

  .footer__bg {
    top: 3%;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .footer__bg img {
    object-fit: cover;
    object-position: bottom right;
  }

  /* Stacked layout: nav on top (right-aligned), meta below (left-aligned) */
  .footer__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 var(--container-pad);
  }

  .footer__nav-list {
    flex-direction: column;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 53px;
  }

  .footer__nav-list--secondary {
    gap: 25px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .footer__meta {
    margin-top: 34px;
    flex-direction: column;
    align-items: flex-start;
    gap: 27px;
  }

  /* Address comes before company on mobile */
  .footer__address {
    order: 1;
    width: 190px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
  }

  .footer__company {
    order: 2;
    font-size: 14px;
    line-height: normal;
    font-weight: 500;
  }
}

@media (max-width: 520px) {
  .btn--wide {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 900px) {

    .section-head__title {
        width: 280px;
        margin: 0 auto;
    }
  .stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Mobile: blur stretches vertically from first to last card */
  .stats::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 309px;
    height: 722px;
    border-radius: 722px;
    filter: blur(250px);
  }

  .stat-card {
    min-height: 0;
    height: 170px;
    padding: 46px 58px 36px;
    gap: 0;
  }

  .stat-card__value {
    font-size: 56px;
  }

  .about {
    padding: 50px 0 85px;
  }

    .about .section-head__subtitle {
        line-height: 24px;
    }

    .about .container {
        padding: 0 34px;
    }

    .cooperation__title {
        margin-bottom: 15px;
    }

    .cooperation__text {
        line-height: 24px;
    }
}

@media (max-width: 767px) {
  .services .section-head__subtitle {
    margin-top: 15px;
  }

  .services__grid {
    gap: 36px;
  }

  .service-card {
    flex: 0 1 100%;
    width: 100%;
    max-width: 341px;
    min-height: 0;
    padding: 47px 40px 39px 42px;
    text-align: left;
  }

  /* Mobile: icon moves to top-right and title is centered */
  .service-card__icon {
    left: auto;
    right: 8px;
  }

  .service-card__title {
    text-align: center;
    margin-bottom: 18px;
  }
}

@media (max-width: 999px) {
  /* Process: zigzag layout with alternating sides and dashed connectors */
  .process {
    padding: 50px 0 80px;
    overflow: hidden;
  }

  .process__steps {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .process-card {
    width: 82%;
    max-width: 340px;
    min-height: 0;
    text-align: center;
  }

  .process-card:nth-child(odd) {
    justify-self: start;
  }

  .process-card:nth-child(even) {
    justify-self: end;
  }

  /* Reset 1100px-tablet connector */
  .process-card:nth-child(2n)::before {
    display: none;
  }

  /* Zigzag dashed connectors at the vertical middle of each card,
     extending outward to the viewport edge (clipped by .process overflow) */
  .process-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100vw;
    height: 3px;
    background: url("../images/how-we-work/dashed-line.svg") repeat-x left center / auto 3px;
    transform: translateY(-50%);
  }

  .process-card:nth-child(odd):not(:last-child)::after {
    left: 100%;
  }

  .process-card:nth-child(even):not(:last-child)::after {
    right: 100%;
  }

  /* Proposal, Development, Delivery get a line going outward from one side
     so the dashed connector visually flows into them too */
  .process-card:nth-child(2)::before,
  .process-card:nth-child(3)::before,
  .process-card:nth-child(4)::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: auto;
    right: auto;
    width: 100vw;
    height: 3px;
    background: url("../images/how-we-work/dashed-line.svg") repeat-x left center / auto 3px;
    transform: translateY(-50%);
    border-top: none;
  }

  .process-card:nth-child(2)::before {
    /* Proposal: ::after goes left, so ::before goes right */
    left: 100%;
  }

  .process-card:nth-child(3)::before {
    /* Development: ::after goes right, so ::before goes left */
    right: 100%;
  }

  .process-card:nth-child(4)::before {
    /* Delivery (last, right-aligned): line on the left edge going outward */
    right: 100%;
  }
}

@media (max-width: 520px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* On mobile, primary CTA (Get in Touch) comes first */
  .hero__actions .btn--primary {
    order: 1;
  }

  .hero__actions .btn--dark {
    order: 2;
  }

  .btn {
    width: 100%;
  }
}
