:root {
  --yx-chrome-bg: #12263f;
  --yx-chrome-on: #ffffff;
  --yx-chrome-muted: rgba(255, 255, 255, 0.8);
  --yx-chrome-muted-60: rgba(255, 255, 255, 0.6);
  --yx-chrome-gold: #b8860b;
  --yx-chrome-on-gold: #12263f;
  --yx-chrome-max: 1280px;
  --yx-chrome-pad: 96px;
  --yx-chrome-pad-sm: 24px;
  --yx-chrome-h: 80px;
}

#site-header,
#site-footer {
  display: contents;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--yx-chrome-h);
  background: var(--yx-chrome-bg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  color: var(--yx-chrome-on);
}

.site-header__inner {
  height: 100%;
  max-width: var(--yx-chrome-max);
  margin: 0 auto;
  padding: 0 var(--yx-chrome-pad-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding: 0 var(--yx-chrome-pad);
  }
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--yx-chrome-on);
  flex-shrink: 0;
}

.site-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
  flex-shrink: 0;
}

.site-brand__name {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 32px;
  height: 100%;
  margin-left: 48px;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    flex: 1;
  }
}

.site-nav__link {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--yx-chrome-muted);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}

.site-nav__link:hover {
  color: var(--yx-chrome-on);
}

.site-nav__link--active {
  color: var(--yx-chrome-gold);
  font-weight: 700;
  border-bottom-color: var(--yx-chrome-gold);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yx-chrome-gold);
  color: var(--yx-chrome-on-gold);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.site-cta:hover {
  opacity: 0.85;
}

.site-header__cta-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .site-header__cta-desktop {
    display: inline-flex;
  }
}

.site-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--yx-chrome-on);
  cursor: pointer;
  padding: 0;
}

@media (min-width: 1024px) {
  .site-menu-toggle {
    display: none;
  }
}

.site-menu-toggle__icon {
  font-size: 24px;
  line-height: 1;
  font-family: "Material Symbols Outlined", sans-serif;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.site-drawer {
  position: fixed;
  inset: var(--yx-chrome-h) 0 0 0;
  z-index: 49;
  pointer-events: none;
  visibility: hidden;
}

.site-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.site-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.site-drawer.is-open .site-drawer__backdrop {
  opacity: 1;
}

.site-drawer__panel {
  position: relative;
  background: #0d1a2d;
  padding: 16px 24px 24px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-drawer.is-open .site-drawer__panel {
  transform: translateY(0);
  opacity: 1;
}

.site-drawer .site-nav__link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-drawer .site-nav__link--active {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -2px 0 var(--yx-chrome-gold);
}

.site-drawer__cta {
  margin-top: 16px;
  width: 100%;
}

body.site-chrome-lock {
  overflow: hidden;
}

.site-footer {
  width: 100%;
  background: var(--yx-chrome-bg);
  color: var(--yx-chrome-on);
  padding: 96px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__inner {
  max-width: var(--yx-chrome-max);
  margin: 0 auto;
  padding: 0 var(--yx-chrome-pad-sm);
}

@media (min-width: 1024px) {
  .site-footer__inner {
    padding: 0 var(--yx-chrome-pad);
  }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 2fr;
    gap: 32px;
  }
}

.site-footer__logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: #f8fafc;
  margin-bottom: 24px;
}

.site-footer__blurb {
  font-size: 16px;
  line-height: 1.6;
  color: var(--yx-chrome-muted-60);
  max-width: 280px;
}

.site-footer__title {
  position: relative;
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 8px;
  color: var(--yx-chrome-on);
}

.site-footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--yx-chrome-gold);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__link {
  font-size: 16px;
  color: var(--yx-chrome-muted-60);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__link:hover {
  color: var(--yx-chrome-gold);
}

.site-footer__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 16px;
  color: var(--yx-chrome-muted-60);
  line-height: 1.6;
}

.site-footer__beian,
.site-footer__meta-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__beian:hover,
.site-footer__meta-link:hover {
  color: var(--yx-chrome-gold);
}

@media (min-width: 640px) {
  .site-footer__meta {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 14px;
  color: var(--yx-chrome-muted-60);
}

/* Page section anchor nav (solutions etc.) */
.site-anchor-nav {
  position: sticky;
  top: var(--yx-chrome-h);
  z-index: 40;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.08);
}

.site-anchor-nav__inner {
  max-width: var(--yx-chrome-max);
  margin: 0 auto;
  padding: 0 var(--yx-chrome-pad-sm);
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-anchor-nav__inner::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .site-anchor-nav__inner {
    padding: 0 var(--yx-chrome-pad);
    gap: 8px;
  }
}

.site-anchor-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  padding: 0 14px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #4a5568;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.site-anchor-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: transparent;
  border-radius: 2px 2px 0 0;
  transition: background-color 0.15s ease;
}

.site-anchor-nav__link:hover {
  color: var(--yx-chrome-bg);
}

.site-anchor-nav__link:hover::after {
  background: rgba(184, 134, 11, 0.45);
}

.site-anchor-nav__link.is-active {
  color: var(--yx-chrome-gold);
}

.site-anchor-nav__link.is-active::after {
  background: var(--yx-chrome-gold);
}

/* Solution module blocks: image + detailed copy */
.site-module {
  scroll-margin-top: calc(var(--yx-chrome-h) + 72px);
}

.site-module__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

@media (min-width: 960px) {
  .site-module__hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .site-module--reverse .site-module__copy {
    order: 2;
  }

  .site-module--reverse .site-module__media {
    order: 1;
  }
}

.site-module__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--yx-chrome-gold);
  margin-bottom: 12px;
}

.site-module__title {
  margin: 0 0 16px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: #12263f;
}

.site-module__lead {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
  color: #12263f;
}

.site-module__body {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
  color: #64748b;
}

.site-module__points {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-module__points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
}

.site-module__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--yx-chrome-gold);
}

.site-module__cta {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--yx-chrome-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.site-module__cta:hover {
  border-bottom-color: var(--yx-chrome-gold);
}

.site-module__media {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 18px 40px rgba(18, 38, 63, 0.12);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.site-module__media img,
.site-module__diagram {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 8px;
}

.site-module__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(18, 38, 63, 0.88);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.site-module__badge .material-symbols-outlined {
  color: var(--yx-chrome-gold);
  font-size: 20px;
}

.site-module__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .site-module__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.site-module__card {
  background: #f7f9fb;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.site-module__card:hover {
  border-color: rgba(18, 38, 63, 0.16);
  transform: translateY(-2px);
}

.site-module__card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #191c1e;
}

.site-module__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
}

.site-hero-visual {
  margin: 0;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  background: #0b1a2e;
}

.site-hero-visual img,
.site-hero-visual__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Customer cases on custom services page */
.site-cases {
  width: 100%;
  background: #f7f9fb;
  padding: 96px 24px;
}

.site-cases__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.site-cases__head {
  margin-bottom: 40px;
  max-width: 720px;
}

.site-cases__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #b8860b;
  margin-bottom: 12px;
}

.site-cases__title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: #12263f;
}

.site-cases__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #64748b;
}

.site-cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .site-cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-cases__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.site-case {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-case:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(18, 38, 63, 0.12);
}

.site-case__cover {
  aspect-ratio: 16 / 10;
  background: #12263f;
  overflow: hidden;
}

.site-case__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-case__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-case__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #b8860b;
}

.site-case__name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #12263f;
}
