:root {
  --bg: #f6fbff;
  --surface: #ffffff;
  --ink: #09213f;
  --muted: #55708e;
  --line: #d7e9f7;
  --blue: #137cf7;
  --cyan: #18c5d9;
  --mint: #26d4a4;
  --soft-blue: #eaf6ff;
  --soft-mint: #e9fbf5;
  --shadow: 0 24px 70px rgba(13, 103, 185, 0.14);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffaf2 0%, #f8fcff 34%, #eaf7ff 68%, #f8fcff 100%);
  font-family: ui-sans-serif, system-ui, "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 44px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 68px;
  padding: 0 max(22px, calc((100vw - var(--container)) / 2));
  background:
    linear-gradient(135deg, rgba(9, 33, 63, 0.98), rgba(7, 20, 36, 0.96)),
    var(--ink);
  border-bottom: 1px solid rgba(24, 197, 217, 0.22);
  box-shadow: 0 18px 46px rgba(9, 33, 63, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
  font-size: 18px;
  letter-spacing: 0;
  text-shadow: none;
  animation: brand-enter 1400ms cubic-bezier(0.16, 0.9, 0.18, 1) both;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.brand-bounce {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transform-origin: center bottom;
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.brand.is-bouncing .brand-bounce {
  animation: brand-marble-bounce 1120ms cubic-bezier(0.22, 0.78, 0.28, 1) both;
}

.brand-mark {
  width: 42px;
  height: 46px;
  background: url("./assets/logo-mark.png") center / contain no-repeat;
  animation: brand-mark-pop 1400ms cubic-bezier(0.16, 0.9, 0.18, 1) both;
}

.brand-bounce span:last-child {
  position: relative;
  overflow: hidden;
}

.brand-bounce span:last-child::after {
  content: none;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.site-nav a:hover {
  color: #fff;
}

.header-action,
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 1000;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-action {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(19, 124, 247, 0.24);
}

.btn:hover,
.header-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(19, 124, 247, 0.2);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--line);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
  flex-shrink: 0;
}

.nav-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

@keyframes brand-enter {
  0% {
    opacity: 0;
    transform: translateX(-84px) scale(0.86);
    filter: blur(8px);
  }
  42% {
    opacity: 1;
    transform: translateX(12px) scale(1.08);
    filter: blur(0);
  }
  66% {
    opacity: 1;
    transform: translateX(-4px) scale(0.99);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes brand-mark-pop {
  0% {
    transform: rotate(-10deg) scale(0.78);
  }
  45% {
    transform: rotate(3deg) scale(1.16);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes brand-marble-bounce {
  0% {
    transform: translateY(0) scale(1);
  }
  18% {
    transform: translateY(15px) scaleX(1.05) scaleY(0.86);
  }
  31% {
    transform: translateY(-13px) scaleX(0.96) scaleY(1.07);
  }
  44% {
    transform: translateY(8px) scaleX(1.03) scaleY(0.92);
  }
  56% {
    transform: translateY(-7px) scaleX(0.98) scaleY(1.04);
  }
  68% {
    transform: translateY(4px) scaleX(1.015) scaleY(0.96);
  }
  80% {
    transform: translateY(-3px) scaleX(0.99) scaleY(1.02);
  }
  91% {
    transform: translateY(1px) scaleX(1.005) scaleY(0.99);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes heroGradientLoop {
  0% {
    background-position: 0% 12%, 88% 8%, 62% 86%, 0% 50%;
  }
  50% {
    background-position: 18% 24%, 70% 18%, 80% 68%, 100% 50%;
  }
  100% {
    background-position: 8% 36%, 96% 30%, 56% 72%, 0% 50%;
  }
}

@keyframes brand-shine {
  0% {
    left: -48%;
    opacity: 0;
  }
  24% {
    opacity: 1;
  }
  100% {
    left: 112%;
    opacity: 0;
  }
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(213, 240, 255, 0.82) 0%, rgba(213, 240, 255, 0) 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 250, 242, 0.82) 0%, rgba(255, 250, 242, 0) 34%),
    radial-gradient(circle at 68% 78%, rgba(226, 246, 255, 0.72) 0%, rgba(226, 246, 255, 0) 36%),
    linear-gradient(120deg, #eaf7ff 0%, #f6fbff 38%, #fffaf2 74%, #fffdf8 100%);
  background-size: 140% 140%, 150% 150%, 160% 160%, 220% 220%;
  animation: heroGradientLoop 18s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  display: grid;
  width: min(calc(100% - 44px), 1280px);
  grid-template-columns: minmax(420px, 0.92fr) minmax(560px, 1.08fr);
  gap: clamp(28px, 4vw, 48px);
  min-height: 760px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 62px;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

h2 {
  margin-bottom: 16px;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.25;
}

.hero-copy p:not(.eyebrow),
.section-head span,
.contact-copy span {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-tabs {
  display: inline-flex;
  gap: 2px;
  margin: 6px 0 28px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(215, 233, 247, 0.72);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(13, 103, 185, 0.1);
  backdrop-filter: blur(10px);
}

.hero-tabs button {
  min-height: 40px;
  padding: 8px 20px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-tabs button.is-active {
  color: #fff;
  background: #050b13;
  box-shadow: 0 10px 24px rgba(9, 33, 63, 0.18);
}

.hero-rotator {
  height: 144px;
  overflow: hidden;
}

.hero-rotator-track {
  display: grid;
  transition: transform 880ms cubic-bezier(0.16, 0.9, 0.18, 1);
  will-change: transform;
}

.hero-rotator h1 {
  display: flex;
  height: 144px;
  margin: 0;
  align-items: center;
}

.hero-dynamic-copy {
  min-height: 96px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-dynamic-copy.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.hero-showcase {
  position: relative;
  display: flex;
  width: 630px;
  max-width: 52vw;
  height: 700px;
  margin-left: auto;
  gap: 24px;
  overflow: hidden;
  border-radius: 0;
  mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.hero-showcase::before,
.hero-showcase::after {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 110px;
  content: "";
  pointer-events: none;
}

.hero-showcase::before {
  top: 0;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.84), transparent);
}

.hero-showcase::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(255, 250, 242, 0.86), transparent);
}

.showcase-lane {
  display: flex;
  width: 194px;
  flex: 0 0 194px;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
  will-change: transform;
}

.showcase-card {
  position: relative;
  width: 194px;
  height: 260px;
  flex: 0 0 260px;
  overflow: hidden;
  color: #fff;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(9, 33, 63, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.showcase-card--text {
  display: flex;
  height: 73px;
  flex-basis: 73px;
  padding: 14px 16px;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  background: #fff;
}

.showcase-card--text strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.showcase-card--text span {
  color: #52657c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(9, 33, 63, 0.16);
}

.service-body p {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.service-body p {
  color: #9ff8ff;
  text-shadow: 0 1px 8px rgba(0, 46, 76, 0.8);
}

.showcase-visual {
  position: absolute;
  inset: 0;
  background: url("./assets/youzan-showcase/01-dushi-liren.jpg") center / cover no-repeat;
  transition: opacity 180ms ease, transform 180ms ease;
}

.showcase-visual::before {
  content: none;
}

.showcase-visual::after {
  content: none;
}

.showcase-card:hover .showcase-visual {
  opacity: 0.92;
  transform: scale(1.035);
}

.showcase-card--image strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.showcase-card--image p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.card-agent .showcase-visual {
  background-image: url("./assets/youzan-showcase/02-daogou-ai.jpg");
}

.card-global .showcase-visual {
  background-image: url("./assets/youzan-showcase/03-neican.jpg");
}

.card-commerce .showcase-visual {
  background-image: url("./assets/youzan-showcase/04-siyu-service.jpg");
}

.card-retail .showcase-visual {
  background-image: url("./assets/youzan-showcase/05-brand-growth.jpg");
}

.card-workflow .showcase-visual {
  background-image: url("./assets/youzan-showcase/06-youzan-ai.jpg");
}

.card-content .showcase-visual {
  background-image: url("./assets/youzan-showcase/07-solutions.jpg");
}

.card-data .showcase-visual {
  background-image: url("./assets/youzan-showcase/08-allvalue.jpg");
}

.card-customer .showcase-visual {
  background-image: url("./assets/youzan-showcase/09-douyin.jpg");
}

.card-store .showcase-visual {
  background-image: url("./assets/youzan-showcase/10-huitouke-a.jpeg");
}

.card-market .showcase-visual {
  background-image: url("./assets/youzan-showcase/11-pengpeng.jpg");
}

.card-oversea .showcase-visual {
  background-image: url("./assets/youzan-showcase/12-huitouke-b.jpeg");
}

.section {
  padding: 96px 0;
}

.services {
  background:
    radial-gradient(circle at 16% 6%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 86% 28%, rgba(185, 231, 255, 0.34) 0%, rgba(185, 231, 255, 0) 30%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.08) 0%, #f9fcff 42%, #eef8ff 100%);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.compact {
  margin-inline: auto;
  text-align: center;
}

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

.service-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(13, 103, 185, 0.08);
}

.service-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(6, 26, 50, 0.12) 0%, rgba(6, 26, 50, 0.34) 42%, rgba(4, 18, 36, 0.94) 100%),
    linear-gradient(90deg, rgba(19, 124, 247, 0.22), rgba(5, 18, 36, 0.18));
  pointer-events: none;
}

.service-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 220ms ease;
}

.service-card:hover .service-art {
  transform: scale(1.035);
}

.art-advisory {
  background-image: url("./assets/module-back-compressed.jpg");
  background-position: center 43%;
}

.art-software {
  background-image: url("./assets/module-back-compressed.jpg");
  background-position: 54% center;
}

.art-global {
  background-image: url("./assets/out_cn.jpeg");
  background-position: 46% center;
}

.art-commerce {
  background-image: url("./assets/module-back-compressed.jpg");
  background-position: center 58%;
}

.service-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 210px;
  padding: 24px;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  text-shadow: 0 2px 12px rgba(3, 12, 24, 0.5);
}

.service-body span {
  display: block;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.55;
  font-weight: 650;
}

.service-body h3 {
  color: #fff;
  text-shadow: 0 3px 16px rgba(3, 12, 24, 0.78);
}

.service-body a {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  margin-top: 18px;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(2, 14, 28, 0.2);
  font-weight: 1000;
  text-shadow: 0 2px 10px rgba(3, 12, 24, 0.68);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.service-body a::after {
  content: "→";
  font-size: 15px;
  line-height: 1;
}

.service-body a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.9);
}

.bright-band {
  background: linear-gradient(135deg, #ffffff, #eaf7ff 52%, #e9fbf5);
}

.split,
.contact-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: 52px;
  align-items: start;
}

.value-list,
.process-grid {
  display: grid;
  gap: 14px;
}

.value-list article,
.process-grid article,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(13, 103, 185, 0.07);
}

.value-list article {
  padding: 22px;
}

.value-list b,
.process-grid b {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.value-list span,
.process-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.process {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 250, 242, 0.84) 0%, rgba(255, 250, 242, 0) 30%),
    radial-gradient(circle at 78% 8%, rgba(24, 197, 217, 0.12) 0%, rgba(24, 197, 217, 0) 32%),
    linear-gradient(180deg, #eef8ff 0%, #fbfdff 46%, #f3fbff 100%);
}

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

.process-grid article {
  padding: 24px;
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-weight: 1000;
}

.legacy-detail {
  overflow: hidden;
}

.page-first-section {
  padding-top: 126px;
}

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

.legacy-dark {
  color: #fff;
  background: linear-gradient(180deg, #07090d 0%, #111927 100%);
}

.legacy-light {
  background:
    radial-gradient(circle at 18% 16%, rgba(19, 124, 247, 0.1), transparent 30%),
    linear-gradient(180deg, #f6fbff 0%, #edf6ff 100%);
}

.advisory-hero {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 250, 242, 0.92) 0%, rgba(255, 250, 242, 0) 30%),
    radial-gradient(circle at 88% 20%, rgba(185, 231, 255, 0.54) 0%, rgba(185, 231, 255, 0) 34%),
    linear-gradient(135deg, #fffaf2 0%, #f8fcff 46%, #eaf7ff 100%);
}

.advisory-hero-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(215, 233, 247, 0.82);
  border-radius: 26px;
  box-shadow: 0 26px 76px rgba(9, 33, 63, 0.16);
}

.advisory-hero-card img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
}

.advisory-hero-card div {
  padding: 24px;
}

.advisory-hero-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.advisory-hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.advisory-band {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #f4fbff 0%, #fbfdff 50%, #eef8ff 100%);
}

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

.advisory-grid article {
  min-height: 230px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(215, 233, 247, 0.82);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(13, 103, 185, 0.08);
}

.advisory-grid span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 1000;
}

.advisory-grid h3 {
  margin: 14px 0 10px;
  font-size: 22px;
}

.advisory-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.advisory-method {
  background:
    radial-gradient(circle at 82% 12%, rgba(24, 197, 217, 0.13) 0%, rgba(24, 197, 217, 0) 32%),
    linear-gradient(180deg, #eef8ff 0%, #f9fcff 56%, #f4fbff 100%);
}

.advisory-process {
  grid-template-columns: repeat(3, 1fr);
}

.advisory-deliverables .legacy-product-card {
  min-height: 260px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
}

.advisory-cta {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 250, 242, 0.9) 0%, rgba(255, 250, 242, 0) 28%),
    radial-gradient(circle at 82% 30%, rgba(185, 231, 255, 0.44) 0%, rgba(185, 231, 255, 0) 34%),
    linear-gradient(180deg, #eef8ff 0%, #fbfdff 100%);
}

.advisory-actions {
  justify-content: center;
}

.legacy-copy {
  max-width: 720px;
}

.legacy-copy h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.1;
}

.legacy-copy h1 {
  max-width: none;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
}

.legacy-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.75;
}

.legacy-light .legacy-copy p:not(.eyebrow) {
  color: var(--muted);
}

.legacy-centered {
  max-width: 860px;
  margin: 0 auto 36px;
  text-align: center;
}

.legacy-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legacy-product-card {
  min-height: 510px;
  padding: 18px 18px 26px;
  color: var(--ink);
  background: #f6f8fb;
  border: 1px solid rgba(215, 233, 247, 0.72);
  border-radius: 18px;
  box-shadow: 0 20px 52px rgba(9, 22, 40, 0.16);
}

.legacy-product-card img {
  width: 100%;
  aspect-ratio: 1.78;
  margin-bottom: 22px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.legacy-product-card p {
  color: var(--muted);
  line-height: 1.65;
}

.legacy-product-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 1000;
}

.legacy-split-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 48px;
  align-items: center;
}

.legacy-mini-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.stat-centered {
  justify-content: center;
  margin: 0 auto 32px;
}

.legacy-mini-stats span {
  padding: 14px 16px;
  color: var(--muted);
  background: #fff;
  border: 1px solid rgba(215, 233, 247, 0.72);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(9, 22, 40, 0.1);
}

.legacy-mini-stats strong {
  display: block;
  color: #e73535;
  font-size: 28px;
}

.legacy-pain-stack {
  display: grid;
  gap: 16px;
}

.legacy-pain-stack img,
.legacy-mosaic figure,
.legacy-case-stage img,
.legacy-case-row article,
.legacy-about-intro article,
.legacy-about-gallery article {
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(9, 22, 40, 0.16);
}

.legacy-pain-stack img:nth-child(2) {
  margin-left: 10%;
}

.legacy-pain-stack img:nth-child(3) {
  width: 86%;
}

.legacy-pain-stack img:nth-child(4) {
  width: 92%;
  margin-left: 6%;
}

.legacy-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.legacy-mosaic figure {
  position: relative;
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.legacy-mosaic figure {
  grid-column: span 2;
}

.legacy-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-mosaic figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 900;
}

.legacy-case-stage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.legacy-case-stage img,
.legacy-case-row img {
  width: 100%;
  object-fit: cover;
}

.legacy-case-row {
  display: flex;
  gap: 14px;
}

.legacy-case-row article {
  flex: 1;
  overflow: hidden;
  background: #fff;
}

.legacy-case-row img {
  aspect-ratio: 1.78;
}

.legacy-case-row h3 {
  margin: 14px 16px 18px;
  font-size: 18px;
}

.legacy-about .legacy-copy h2 {
  color: var(--blue);
}

.legacy-about-intro {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
}

.about-capability-grid {
  margin: 30px 0;
}

.legacy-about-intro article,
.legacy-about-gallery article {
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.96);
}

.legacy-about-intro h3,
.legacy-about-gallery h3 {
  color: var(--blue);
  font-size: clamp(24px, 2.4vw, 34px);
}

.legacy-about-intro p {
  color: #4f5b6b;
  line-height: 1.9;
}

.legacy-about-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.legacy-about-gallery img {
  width: 100%;
  aspect-ratio: 1.38;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.contact {
  padding: 96px 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 250, 242, 0.88) 0%, rgba(255, 250, 242, 0) 28%),
    radial-gradient(circle at 82% 26%, rgba(185, 231, 255, 0.42) 0%, rgba(185, 231, 255, 0) 32%),
    linear-gradient(180deg, #f3fbff 0%, #f9fcff 48%, #eaf7ff 100%);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 1000;
}

.contact-form input,
.contact-form select {
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(24, 197, 217, 0.16);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #0d8f78;
  font-weight: 900;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #09213f;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  line-height: 1.7;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 76px 16px auto;
    display: none;
    padding: 16px;
    flex-direction: column;
    gap: 4px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(9, 33, 63, 0.96);
    border: 1px solid rgba(24, 197, 217, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(9, 33, 63, 0.24);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px;
  }

  .header-action {
    display: none;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    width: 100%;
    max-width: 100%;
    height: 560px;
    justify-content: center;
  }

  .hero-image {
    background:
      radial-gradient(circle at 20% 16%, rgba(213, 240, 255, 0.84) 0%, rgba(213, 240, 255, 0) 32%),
      radial-gradient(circle at 78% 24%, rgba(255, 250, 242, 0.82) 0%, rgba(255, 250, 242, 0) 38%),
      linear-gradient(145deg, #eaf7ff 0%, #f7fbff 42%, #fffaf2 100%);
    background-size: 145% 145%, 155% 155%, 220% 220%;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legacy-product-grid,
  .legacy-split-grid,
  .legacy-case-stage,
  .legacy-about-gallery,
  .advisory-grid,
  .advisory-process {
    grid-template-columns: 1fr;
  }

  .legacy-case-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .legacy-mosaic {
    grid-template-columns: 1fr;
  }

  .legacy-mosaic figure {
    grid-column: auto;
  }
}

@media (max-width: 1180px) and (min-width: 1041px) {
  .hero-grid {
    width: min(calc(100% - 36px), 1120px);
    grid-template-columns: minmax(380px, 0.9fr) minmax(520px, 1.1fr);
    gap: 24px;
  }

  .hero-copy {
    max-width: 520px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-showcase {
    width: 588px;
    max-width: 58vw;
    gap: 18px;
  }

  .showcase-lane {
    width: 184px;
    flex-basis: 184px;
    gap: 20px;
  }

  .showcase-card {
    width: 184px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero,
  .hero-grid {
    min-height: 720px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-bottom: 22px;
    border-radius: 22px;
  }

  .hero-tabs button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 15px;
  }

  .hero-rotator,
  .hero-rotator h1 {
    height: 94px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-dynamic-copy {
    min-height: 118px;
  }

  h2 {
    font-size: 30px;
  }

  .section,
  .contact {
    padding: 66px 0;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-body {
    min-height: 190px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-showcase {
    height: 460px;
    justify-content: flex-start;
    gap: 14px;
  }

  .showcase-lane {
    width: 160px;
    flex-basis: 160px;
    gap: 14px;
    padding-top: 14px;
  }

  .showcase-card {
    width: 160px;
    height: 214px;
    flex-basis: 214px;
    border-radius: 20px;
  }

  .showcase-card--text {
    height: 70px;
    flex-basis: 70px;
    padding: 12px 13px;
    border-radius: 18px;
  }

  .showcase-card--image strong {
    font-size: 17px;
  }

  .showcase-card--text strong {
    font-size: 14px;
  }

  .showcase-card--text span {
    font-size: 11px;
    line-height: 1.25;
  }

  .legacy-product-card {
    min-height: auto;
  }

  .legacy-case-row {
    grid-template-columns: 1fr;
  }

  .legacy-pain-stack img,
  .legacy-pain-stack img:nth-child(2),
  .legacy-pain-stack img:nth-child(3),
  .legacy-pain-stack img:nth-child(4) {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .brand-mark,
  .hero-image,
  .brand.is-bouncing .brand-bounce,
  .brand-bounce span:last-child::after {
    animation: none;
  }
}
