/* Header and footer share one visible brand axis across desktop layouts. */
@media (min-width: 901px) {
  .site-header {
    padding-right: 7vw !important;
    padding-left: 7vw !important;
  }
  .site-header > .brand {
    margin-left: 0 !important;
  }
}

.marketing-system-section {
  position: relative;
  overflow: hidden;
  padding: 88px max(32px, calc((100vw - 1440px) / 2)) 96px;
  color: #071735;
  background-color: #f8fbff;
  background-image: linear-gradient(rgba(31, 83, 162, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 83, 162, .065) 1px, transparent 1px);
  background-size: 46px 46px;
}

.marketing-system-section::before {
  content: "SYSTEM";
  position: absolute;
  top: 36px;
  right: -30px;
  color: rgba(24, 86, 197, .045);
  font: 800 clamp(92px, 13vw, 210px)/.8 Manrope, sans-serif;
  letter-spacing: -.08em;
  pointer-events: none;
}

.marketing-system-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  align-items: end;
  gap: 64px;
  margin-bottom: 48px;
}

.marketing-system-heading .eyebrow { color: #225bca; }
.marketing-system-heading > div { min-width: 0; }
.marketing-system-heading h2 { max-width: 100%; margin: 14px 0 0; font-size: clamp(42px, 3.9vw, 62px); line-height: 1.02; letter-spacing: -.055em; }
.marketing-system-heading h2 em { color: #235dcc; font-family: Georgia, serif; font-weight: 500; }
.marketing-system-heading > p { max-width: 570px; margin: 0 0 5px; color: #52627d; font-size: clamp(17px, 1.15vw, 20px); line-height: 1.65; }

.marketing-system-flow { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.marketing-system-flow::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; border-top: 2px dashed rgba(39, 91, 180, .2); z-index: -1; }

.system-step {
  --step: #2867dc;
  position: relative;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 34px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--step) 28%, white);
  border-radius: 30px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 20px 55px rgba(26, 54, 104, .09);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.system-step::after { content: ""; position: absolute; inset: auto -45px -65px auto; width: 170px; height: 170px; border-radius: 50%; background: color-mix(in srgb, var(--step) 10%, transparent); }
.system-step:hover { transform: translateY(-8px) rotate(-.35deg); border-color: color-mix(in srgb, var(--step) 55%, white); box-shadow: 0 28px 68px rgba(24, 53, 105, .16); }
.system-number { color: var(--step); font: 800 42px/1 Manrope, sans-serif; letter-spacing: -.05em; }
.system-icon { position: absolute; top: 28px; right: 28px; display: grid; width: 52px; height: 52px; place-items: center; border-radius: 17px; color: white; background: var(--step); font-size: 24px; box-shadow: 0 12px 25px color-mix(in srgb, var(--step) 30%, transparent); }
.system-step > p { margin: 40px 0 8px; color: var(--step); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.system-step h3 { margin: 0 0 15px; font-size: clamp(25px, 2vw, 33px); line-height: 1.08; letter-spacing: -.045em; }
.system-step > span:not(.system-number):not(.system-icon) { color: #52627a; font-size: 16px; line-height: 1.65; }
.system-step > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 24px; }
.system-step b { padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--step) 28%, white); border-radius: 999px; color: var(--step); background: color-mix(in srgb, var(--step) 6%, white); font-size: 11px; letter-spacing: .03em; }
.system-frame { --step: #7458d6; }
.system-create { --step: #cf507d; }
.system-distribute { --step: #ee6d35; }
.system-measure { --step: #148d70; }
.system-optimize { --step: #1689b7; }

.marketing-system-loop { position: relative; z-index: 1; display: flex; width: fit-content; align-items: center; gap: 18px; margin: 42px auto 0; padding: 15px 22px; border: 1px solid rgba(35, 93, 204, .2); border-radius: 999px; color: #60708a; background: rgba(255, 255, 255, .78); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 12px 32px rgba(25, 56, 111, .07); }
.marketing-system-loop i { color: #8aa7d9; font-style: normal; }
.marketing-system-loop strong { color: #225bca; }

@media (max-width: 900px) {
  .marketing-system-section { padding: 76px 24px 84px; }
  .marketing-system-heading { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .marketing-system-heading > p { max-width: 700px; }
  .marketing-system-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .marketing-system-section { padding: 64px 18px 72px; background-size: 34px 34px; }
  .marketing-system-heading h2 { font-size: clamp(38px, 10.5vw, 50px); }
  .marketing-system-heading > p { font-size: 17px; line-height: 1.65; }
  .marketing-system-flow { grid-template-columns: 1fr; gap: 14px; padding-left: 14px; }
  .marketing-system-flow::before { top: 20px; bottom: 20px; left: 0; right: auto; border-top: 0; border-left: 2px dashed rgba(39, 91, 180, .22); }
  .system-step { min-height: 295px; padding: 28px; border-radius: 25px; }
  .system-step > p { margin-top: 32px; }
  .system-step:hover { transform: translateY(-5px); }
  .marketing-system-loop { width: 100%; justify-content: center; gap: 8px; padding: 14px 10px; font-size: 9px; }
}
