:root {
  color-scheme: light;
  --ink: #0d004d;
  --navy: #0d004d;
  --text: #4e5a70;
  --accent: #aa004b;
  --pink: #e80566;
  --paper: #fff;
  --surface: #f7f7fd;
  --border: #e1deeb;
  --cyan: #b3eff3;
  --panel-shadow: 0 10px 40px -14px rgb(13 0 77 / 24%);
  --content: 1276px;
  --gutter: clamp(18px, 5.7vw, 82px);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.7;
}

h1, h2, h3, p, dl, dd, ol {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.23;
  font-weight: 800;
}

h1 {
  font-size: clamp(34px, 4.35vw, 62px);
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -.035em;
}

h3 {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -.02em;
}

p, dd {
  color: var(--text);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: 20px;
}

.inner {
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: var(--gutter);
  transform: translateY(-200%);
  background: var(--paper);
  color: var(--navy);
  padding: 8px 14px;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  color: var(--ink);
}

.header-layout {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  min-height: 88px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  white-space: nowrap;
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 750;
  letter-spacing: .02em;
  min-height: 44px;
}

.brand-mark {
  width: 38px;
  height: 36px;
  overflow: hidden;
  flex: none;
}

.brand-mark img {
  display: block;
  width: 176px;
  height: auto;
  max-width: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 2.4vw, 29px);
}

.site-nav a {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 44px;
  padding-inline: 4px;
  white-space: nowrap;
  color: inherit;
  font-weight: 650;
  font-size: 16px;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  content: "";
  inset: auto 4px 0;
  height: 2px;
  background: var(--accent);
}

.site-nav a:hover, .text-link:hover, .scenario-grid a:hover, .section-nav a:hover {
  color: var(--accent);
}

.header-action, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 2px solid transparent;
  border-radius: 3px;
  padding: 11px 17px;
  font-size: 14px;
  font-weight: 700;
}

.header-action {
  justify-self: end;
  white-space: nowrap;
  background: var(--pink);
  color: var(--paper);
}

.header-action:hover, .button.secondary:hover {
  background: var(--accent);
  color: var(--paper);
}

.header-action[aria-current="page"] {
  border-color: var(--paper);
  background: var(--navy);
  color: var(--paper);
}

.inner-page .site-header {
  color: var(--paper);
}

.inner-page .brand-mark {
  background: var(--paper);
  border-radius: 3px;
}

.inner-page .site-nav a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.inner-page .site-nav a[aria-current="page"]::after {
  background: #ffc4e2;
}

.inner-page :is(.site-header, .page-intro) :focus-visible {
  outline-color: var(--paper);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #ecfcff 0% 40%, #b2fcff 40% 60%, #5edfff 60% 72%, var(--navy) 72%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 33%;
  left: 3.5%;
  width: clamp(100px, 14vw, 204px);
  aspect-ratio: 1;
  border-radius: 9px;
  background: rgb(232 5 102 / 9%);
  transform: rotate(45deg);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  min-height: clamp(500px, 43.5vw, 640px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.7vw, 42px);
  align-items: center;
  padding-block: clamp(122px, 10.6vw, 153px) clamp(26px, 3.2vw, 48px);
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: clamp(14px, 2vw, 24px);
}

.hero-copy h1 {
  text-shadow: 0 4px 12px rgb(13 0 77 / 10%);
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 720;
}

.lead {
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 20px);
}

.hero-copy strong {
  display: inline-block;
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.hero .button {
  padding-block: 13px;
  font-size: 15px;
}

.button.primary {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}

.button.primary:hover {
  border-color: #39286d;
  background: #39286d;
}

.button.secondary {
  background: var(--pink);
  color: var(--paper);
}

.hero-image {
  position: relative;
  isolation: isolate;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0 1% 0 43%;
  z-index: -1;
  background: url("dots-shape.png") center / contain no-repeat;
  opacity: .7;
}

.hero-image::after {
  content: "";
  position: absolute;
  left: 1%;
  top: 1%;
  width: 20px;
  aspect-ratio: 1;
  background: var(--pink);
  transform: rotate(45deg);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding-block: clamp(40px, 6vw, 85px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 10px clamp(24px, 5vw, 70px);
  margin-bottom: clamp(20px, 3.1vw, 40px);
}

.section-heading > .text-link {
  justify-self: end;
}

.section-heading p {
  max-width: 39em;
}

.section-heading h2 {
  padding-top: 16px;
  background: linear-gradient(to right, var(--navy) 0 20px, transparent 20px 30px, var(--pink) 30px) top left / 70px 5px no-repeat;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 48px);
}

.company-overview {
  align-items: center;
  padding-block: clamp(46px, 7.5vw, 108px) clamp(32px, 5vw, 72px);
}

.company-image {
  position: relative;
  isolation: isolate;
  width: min(100%, 540px);
  justify-self: end;
  margin: 0;
}

.company-image::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 5%;
  left: 0;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
}

.company-image img {
  display: block;
  width: 93%;
  height: auto;
  margin-inline-start: auto;
  border: clamp(8px, 1.3vw, 18px) solid var(--navy);
  border-radius: 63% 37% 30% 70% / 50% 45% 55% 50%;
}

.company-copy .button {
  margin-top: 6px;
}

.company-copy, .info-panel {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
}

.info-panel {
  padding: clamp(17px, 3vw, 36px);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--panel-shadow);
}

.info-panel h2 {
  font-size: clamp(22px, 2.3vw, 29px);
}

.profile-facts {
  width: 100%;
}

.profile-facts > div {
  display: grid;
  grid-template-columns: minmax(76px, .43fr) minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.email-link {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.email-link:hover {
  color: var(--accent);
}

.contact-checklist {
  margin: 0;
  padding-left: 1.25em;
  color: var(--text);
}

.contact-checklist li + li {
  margin-top: 5px;
}

.service-grid, .scenario-grid, .delivery-steps {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.home-services {
  position: relative;
  isolation: isolate;
}

.home-services::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: min(65%, 460px);
  background: url("enso.png") top left / contain no-repeat;
  opacity: .15;
  pointer-events: none;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(18px, 3.2vw, 40px);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--panel-shadow);
}

.service-card .text-link {
  margin-top: auto;
}

.service-facts {
  display: grid;
  gap: 7px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.service-facts > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
}

.service-mark {
  display: grid;
  place-items: center;
  width: clamp(60px, 6vw, 90px);
  aspect-ratio: 1;
  margin-bottom: 4px;
  border-block: 3px solid var(--border);
  border-radius: 30% 0 30% 0;
  color: var(--navy);
}

.service-card:is(:hover, :focus-within) .service-mark {
  border-top-color: var(--navy);
  border-bottom-color: var(--pink);
  color: var(--accent);
}

.service-mark span {
  display: block;
  position: relative;
  width: 23px;
  height: 23px;
  transform: scale(1.4);
}

.icon-workflow {
  background:
    linear-gradient(currentColor, currentColor) 4px 6px / 2px 12px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 16px / 13px 2px no-repeat;
}

.icon-workflow::before, .icon-workflow::after {
  position: absolute;
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 1px;
  background: var(--paper);
}

.icon-workflow::before {
  top: 1px;
  left: 1px;
}

.icon-workflow::after {
  right: 1px;
  bottom: 2px;
}

.icon-chart {
  border-bottom: 1px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) 2px bottom / 4px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 9px bottom / 4px 13px no-repeat,
    linear-gradient(currentColor, currentColor) 16px bottom / 4px 20px no-repeat;
}

.icon-integration::before, .icon-integration::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
  border: 2px solid currentColor;
  border-radius: 1px;
}

.icon-integration::after {
  top: 8px;
  background: var(--paper);
  z-index: -1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--pink);
}

.soft-section {
  background: var(--surface);
}

.service-grid, .scenario-grid, .delivery-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scenario-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: clamp(17px, 2.5vw, 28px);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}

.category {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.scenario-grid h3 a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  min-height: 44px;
}

.scenario-grid h3 span {
  color: var(--accent);
  font-size: .7em;
}

.delivery-steps {
  counter-reset: phase;
  padding: 0;
  list-style: none;
}

.delivery-steps li {
  counter-increment: phase;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.delivery-steps li::before {
  display: block;
  content: counter(phase, decimal-leading-zero);
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 750;
  color: var(--accent);
}

.delivery-steps p {
  margin-top: 8px;
}

.page-intro {
  color: var(--paper);
  background:
    linear-gradient(132deg, rgb(13 0 77 / 72%) 10%, rgb(37 22 105 / 84%) 52%, rgb(171 0 76 / 84%)),
    url("banner-2.jpg") center / cover no-repeat;
  padding-block: clamp(130px, 11vw, 158px) clamp(46px, 6.5vw, 92px);
}

.page-intro .inner {
  display: grid;
  justify-items: center;
  gap: clamp(12px, 2vw, 20px);
  text-align: center;
}

.page-intro h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.page-intro .lead {
  max-width: 40em;
  color: var(--paper);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.section-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 680;
  border: 1px solid rgb(255 255 255 / 68%);
  background: rgb(13 0 77 / 30%);
  border-radius: 3px;
}

.section-nav a:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--navy);
}

.service-details {
  display: grid;
  gap: clamp(18px, 2.5vw, 34px);
  padding-block: clamp(36px, 6vw, 80px);
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(16px, 5vw, 65px);
  padding: clamp(21px, 4vw, 51px);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--panel-shadow);
}

.detail-heading, .case-heading {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 12px;
}

.detail-heading h2, .case-heading h2 {
  font-size: clamp(25px, 3.1vw, 37px);
}

.detail-facts {
  display: grid;
  gap: 12px;
}

.detail-facts > div {
  display: grid;
  gap: 3px 14px;
  grid-template-columns: minmax(110px, .36fr) minmax(0, 1fr);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.detail-facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.project-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
}

.project-faq > div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

dt {
  font-weight: 700;
}

.case-list {
  display: grid;
  gap: clamp(19px, 3vw, 38px);
}

.case {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .66fr) minmax(0, 1.34fr);
  box-shadow: var(--panel-shadow);
}

.case::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 70px;
  height: 70px;
  border-top: 2px solid var(--pink);
  border-left: 2px solid var(--pink);
  pointer-events: none;
}

.case-heading, .case-body {
  padding: clamp(17px, 3.2vw, 43px);
}

.case-heading {
  background: linear-gradient(145deg, #ecfcff, var(--surface) 62%);
  border-inline-end: 1px solid var(--border);
}

.case-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.case-body h3:not(:first-child) {
  margin-top: 17px;
}

.case-steps {
  padding-left: 1.25em;
  color: var(--text);
}

.case-steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

.case-steps li + li {
  margin-top: 4px;
}

.case-delivery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 14px;
}

.case-delivery dd {
  margin-top: 3px;
}

.site-footer {
  background: linear-gradient(124deg, var(--navy) 82%, #200b62 82%);
  color: var(--paper);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  min-height: 138px;
  padding-block: 24px;
}

.footer-brand {
  display: grid;
  gap: 2px;
}

.footer-brand strong {
  font-size: 20px;
}

.footer-brand span {
  color: #cfc6e5;
  font-size: 14px;
}

.footer-layout nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(10px, 3vw, 30px);
}

.footer-layout nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}

.footer-layout nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer :focus-visible {
  outline-color: var(--cyan);
}

@media (max-width: 800px) {
  .hero-layout {
    gap: 23px;
  }

  .detail-facts > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .site-header {
    background: rgb(236 252 255 / 88%);
  }

  .inner-page .site-header {
    background: rgb(13 0 77 / 32%);
  }

  .header-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    gap: 2px 8px;
    padding-block: 7px 4px;
  }

  .header-action {
    grid-column: 2;
    grid-row: 1;
    padding-inline: 9px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .site-nav a {
    font-size: 14px;
  }

  .hero-layout, .section-heading, .info-grid, .service-grid, .scenario-grid,
  .delivery-steps, .detail, .project-faq, .case {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    background: linear-gradient(145deg, #ecfcff 0% 58%, #b2fcff 58% 72%, #5edfff 72% 83%, var(--navy) 83%);
  }

  .hero-layout {
    min-height: 0;
    padding-block: 126px 20px;
  }

  .hero-image {
    width: min(100%, 480px);
    justify-self: center;
  }

  .company-image {
    width: min(100%, 430px);
    justify-self: center;
  }

  .page-intro {
    padding-block: 124px 36px;
  }

  .section-heading > .text-link {
    justify-self: start;
  }

  .case-heading {
    border-inline-end: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 380px) {
  .case-delivery {
    grid-template-columns: minmax(0, 1fr);
  }
}
