:root {
  color-scheme: light;
  --page-width: 1480px;
  --page-gutter: 16px;
  --ink: #3f536f;
  --ink-strong: #263854;
  --muted: #8792a5;
  --line: #c8d1de;
  --blue: #3975f3;
  --violet: #6658ef;
  --surface: #ffffff;
  --soft-surface: #f4f7fd;
  --header-surface: rgba(248, 251, 255, 0.9);
  --card-shadow: 0 8px 18px rgba(61, 83, 135, 0.08), 0 2px 6px rgba(61, 83, 135, 0.04);
  --banner-height: 823px;
  --banner-display-height: max(823px, 42.864583vw);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input {
  font: inherit;
}

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

button,
input {
  border: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
}

main {
  position: relative;
  display: flex;
  min-height: 1080px;
  min-height: max(1080px, 100svh);
  flex-direction: column;
  background: linear-gradient(180deg,
      #f5f9fc 0,
      #f5f9fc var(--banner-display-height),
      #fff 100%);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: #2f70f3;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  background: var(--header-surface);
  box-shadow: 0 12px 38px rgba(80, 100, 142, 0.08);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  transform: translateX(-50%);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(249, 251, 255, 0.97);
  box-shadow: 0 14px 40px rgba(65, 84, 130, 0.13);
}

.site-header__inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 30px;
}

.brand {
  flex: 0 0 auto;
  border-radius: 10px;
}

.brand img {
  width: 160px;
  height: auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 58px;
  margin-left: 88px;
  color: #344963;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.desktop-nav>a,
.nav-menu>button {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  transition: color 160ms ease;
}

.desktop-nav>a::after,
.nav-menu>button::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--violet), var(--blue));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.desktop-nav>a:hover,
.desktop-nav>a:focus-visible,
.nav-menu>button:hover,
.nav-menu>button:focus-visible {
  color: var(--blue);
}

.desktop-nav>a:hover::after,
.desktop-nav>a:focus-visible::after,
.nav-menu>button:hover::after,
.nav-menu>button:focus-visible::after,
.nav-menu.is-open>button::after {
  transform: scaleX(1);
}

.nav-menu {
  position: relative;
}

.nav-menu::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 12px;
  content: "";
}

.nav-menu>button {
  gap: 9px;
}

.nav-menu>button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #7c899b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.nav-menu.is-open>button svg {
  transform: rotate(180deg);
}

.nav-menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  width: 150px;
  padding: 8px;
  border: 1px solid rgba(205, 214, 229, 0.8);
  border-radius: 14px;
  visibility: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 32px rgba(56, 75, 118, 0.15);
  transform: translate(-50%, -8px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.nav-menu__panel a {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
}

.nav-menu__panel a:hover,
.nav-menu__panel a:focus-visible {
  color: var(--blue);
  background: #f1f5ff;
}

.nav-menu.is-open .nav-menu__panel {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.header-actions {
  --header-control-height: 40px;
  --header-control-radius: 13px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.header-search {
  display: flex;
  align-items: center;
  width: 276px;
  height: var(--header-control-height);
  padding: 0 15px;
  border: 1px solid #c8d1df;
  border-radius: var(--header-control-radius);
  background: rgba(247, 249, 253, 0.66);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-search:focus-within {
  border-color: #7ea4f8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(57, 117, 243, 0.11);
}

.header-search svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-right: 9px;
  fill: none;
  stroke: #63768f;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.header-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  outline: none;
  color: #40536d;
  background: transparent;
  font-size: 14px;
}

.header-search input::placeholder {
  color: #a5afbe;
}

.login-button {
  display: grid;
  width: 84px;
  height: var(--header-control-height);
  place-items: center;
  border-radius: var(--header-control-radius);
  color: #fff;
  background: linear-gradient(180deg, #6658ee 0%, #3475f2 100%);
  box-shadow: 0 6px 12px rgba(61, 104, 236, 0.18);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.login-button:hover,
.login-button:focus-visible {
  box-shadow: 0 8px 18px rgba(61, 104, 236, 0.28);
}

.mobile-nav-toggle,
.mobile-nav {
  display: none;
}

.hero {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: var(--banner-display-height);
  min-height: 0;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 174px;
}

.hero__copy {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  transform: translateY(40px);
}

.hero__eyebrow {
  display: grid;
  min-width: 420px;
  height: 56px;
  margin: 0;
  padding: 0 34px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, #6658ef 0%, #2f76f3 100%);
  box-shadow: 0 10px 24px rgba(64, 100, 232, 0.14);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero h1 {
  display: flex;
  align-items: baseline;
  gap: 26px;
  margin: 42px 0 0;
  color: #405671;
  font-size: clamp(52px, 3.75vw, 72px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

.hero h1 b {
  color: #405671;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 em {
  color: #3f6bf2;
  background: linear-gradient(110deg, #6759ed 10%, #2878f4 92%);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
  -webkit-text-fill-color: transparent;
}

.hero__divider {
  width: min(820px, 62vw);
  height: 1px;
  margin-top: 38px;
  border-top: 1px dashed rgba(111, 131, 155, 0.42);
}

.hero__description {
  margin: 32px 0 0;
  color: #60728b;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.hero__description-en {
  margin: 14px 0 0;
  color: rgba(101, 119, 145, 0.34);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 30px;
}

.hero__actions {
  display: flex;
  gap: 56px;
  margin-top: 58px;
}

.button {
  display: grid;
  width: 188px;
  height: 56px;
  place-items: center;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 160ms ease, box-shadow 160ms ease, border-color 160ms ease,
    color 160ms ease;
}

.button--primary {
  color: #fff;
  background: linear-gradient(180deg, #6757ec 0%, #2f76f3 100%);
  box-shadow: 0 8px 13px rgba(47, 118, 243, 0.25);
}

.button--secondary {
  border: 1px solid #70819a;
  color: #40536d;
  background: rgba(255, 255, 255, 0.44);
}

.button:hover,
.button:focus-visible {
  transform: none;
}

.button--primary:hover,
.button--primary:focus-visible {
  box-shadow: 0 11px 22px rgba(47, 118, 243, 0.3);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: #3975f3;
  color: #3975f3;
  box-shadow: 0 8px 20px rgba(61, 83, 135, 0.08);
}

.document-grid {
  position: absolute;
  z-index: 2;
  top: 760px;
  bottom: auto;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  height: 208px;
  margin: 0;
  transform: translateX(-50%);
}

.document-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  height: 208px;
  min-height: 208px;
  padding: 34px 32px 32px;
  overflow: hidden;
  border: 1px solid rgba(237, 241, 248, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--card-shadow);
  column-gap: 22px;
  scroll-margin-top: 130px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.document-card:hover,
.document-card:focus-visible {
  border-color: rgba(75, 120, 241, 0.2);
  box-shadow: 0 16px 30px rgba(53, 84, 150, 0.14);
  transform: translateY(-5px);
}

.document-card img {
  width: 64px;
  height: 64px;
}

.document-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-top: 1px;
}

.document-card__content strong {
  color: #303c52;
  font-size: 21px;
  font-weight: 600;
  line-height: 30px;
}

.document-card__content>span {
  margin-top: 15px;
  color: #8b93a2;
  font-size: 16px;
  line-height: 27px;
}

.document-card>i {
  position: absolute;
  right: 70px;
  bottom: 30px;
  left: 31px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3478f4 0%, #8fb3fc 58%, rgba(143, 179, 252, 0) 100%);
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 240ms ease;
}

.document-card:hover>i,
.document-card:focus-visible>i {
  transform: scaleX(1);
}

.updates {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 50px;
  left: 0;
  margin: 0;
  padding: 0;
}

.updates__bar {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 88px;
  align-items: center;
  height: 72px;
  padding: 12px 8px;
  border-radius: 16px;
  color: #4a5d78;
  background: #f3f6fc;
}

.updates__label {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 12px;
  padding: 0 18px;
  border-radius: 10px;
  color: #3975f3;
  background: #fff;
}

.updates__label img {
  width: 24px;
  height: 24px;
}

.updates__label strong {
  font-size: 14px;
  white-space: nowrap;
}

.updates__bar p {
  min-width: 0;
  margin: 0;
  padding: 0 18px;
  overflow: hidden;
  font-size: 14px;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.updates__bar>a {
  justify-self: end;
  padding-right: 18px;
  color: #3975f3;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.updates__bar>a:hover,
.updates__bar>a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.search-message {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 13px 18px;
  border: 1px solid rgba(78, 113, 195, 0.18);
  border-radius: 12px;
  color: #31445f;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(56, 76, 123, 0.16);
  font-size: 14px;
}

@media (max-width: 1460px) {
  .desktop-nav {
    gap: 42px;
    margin-left: 58px;
  }

  .header-search {
    width: 230px;
  }
}

@media (max-width: 1260px) {
  .header-search {
    display: none;
  }

  .desktop-nav {
    margin-left: 72px;
  }
}

@media (max-width: 1020px) {
  main {
    --banner-display-height: 760px;
    min-height: 100vh;
    min-height: 100svh;
  }

  .site-header {
    height: 78px;
    border-radius: 20px;
  }

  .site-header__inner {
    padding: 0 20px;
  }

  .desktop-nav,
  .login-button {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #c8d1df;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
  }

  .mobile-nav-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 99px;
    background: #455873;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    padding: 12px;
    border: 1px solid rgba(205, 214, 229, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 42px rgba(61, 82, 128, 0.16);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    color: #3975f3;
    background: #f1f5ff;
  }

  .mobile-nav__login {
    margin-top: 6px;
    color: #fff !important;
    text-align: center;
    background: linear-gradient(180deg, #6658ee, #3475f2) !important;
  }

  .hero {
    position: relative;
    z-index: auto;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    flex: 0 0 760px;
    height: 760px;
    min-height: 760px;
    background-size: auto 760px;
  }

  .hero__inner {
    padding-top: 150px;
  }

  .hero__copy {
    transform: none;
  }

  .hero h1 {
    gap: 16px;
  }

  .hero__description {
    max-width: 720px;
  }

  .document-grid {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    height: auto;
    margin-top: -80px;
    transform: none;
  }

  .document-card {
    height: auto;
  }

  .updates {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 32px;
    padding-bottom: 50px;
  }
}

@media (max-width: 680px) {
  main {
    --banner-display-height: 610px;
  }

  html {
    scroll-padding-top: 110px;
  }

  .page-width,
  .site-header {
    width: calc(100% - 24px);
  }

  .site-header {
    top: 12px;
    height: 68px;
    border-radius: 18px;
  }

  .site-header__inner {
    padding: 0 14px;
  }

  .brand img {
    width: 124px;
    height: auto;
  }

  .hero {
    flex: 0 0 610px;
    height: 610px;
    min-height: 610px;
    background-size: auto 610px;
  }

  .hero__inner {
    padding-top: 120px;
  }

  .hero__eyebrow {
    min-width: 0;
    width: min(330px, 100%);
    height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 16px;
  }

  .hero h1 {
    align-items: center;
    flex-direction: column;
    gap: 2px;
    margin-top: 28px;
    font-size: clamp(42px, 14vw, 58px);
    letter-spacing: 0;
  }

  .hero h1 b {
    display: none;
  }

  .hero__divider {
    width: 80%;
    margin-top: 28px;
  }

  .hero__description {
    margin-top: 26px;
    font-size: 16px;
    line-height: 27px;
  }

  .hero__description-en {
    display: none;
  }

  .hero__actions {
    width: 100%;
    gap: 12px;
    margin-top: 34px;
  }

  .button {
    width: 50%;
    height: 48px;
    font-size: 16px;
  }

  .document-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: -24px;
  }

  .document-card {
    min-height: 172px;
    padding: 28px 24px;
  }

  .document-card>i {
    right: 54px;
    bottom: 23px;
    left: 24px;
  }

  .updates {
    padding: 28px 0 50px;
  }

  .updates__bar {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .updates__label {
    align-self: center;
    height: 48px;
  }

  .updates__bar p {
    display: none;
  }

  .updates__bar>a {
    padding-right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Coral theme ----------------------------------------------------------- */
body {
  --page-width: 1600px;
  --ink: #3a4459;
  --ink-strong: #30394d;
  --muted: #8b8d99;
  --line: #f3aaa8;
  --blue: #f16662;
  --violet: #ff826e;
  --header-surface: #ffffff;
  --card-shadow: 0 10px 24px rgba(236, 102, 104, 0.1);
  color: #3a4459;
  background: #fffdfd;
}

body main {
  background: #fff;
}

body .brand img {
  width: 160px;
  height: auto;
}

body #product-guide>img {
  content: url("./img/红色产品指南.png");
}

body #deployment-guide>img {
  content: url("./img/红色部署.png");
}

body #api-reference>img {
  content: url("./img/红色api.png");
}

body #ai-assistant>img {
  content: url("./img/红色ai.png");
}

body .updates__label img {
  content: url("./img/红色通知.svg");
}

body .desktop-nav,
body .nav-menu>button,
body .header-search input {
  color: #3a4459;
}

body .desktop-nav>a::after,
body .nav-menu>button::after,
body .document-card>i {
  background: linear-gradient(90deg, #f16662 0%, #ff9b98 54%, rgba(255, 203, 202, 0) 100%);
}

body .desktop-nav>a[aria-current="page"] {
  color: #f16662;
}

body .desktop-nav>a[aria-current="page"]::after {
  transform: scaleX(1);
}

body .desktop-nav>a:hover,
body .desktop-nav>a:focus-visible,
body .nav-menu>button:hover,
body .nav-menu>button:focus-visible {
  color: #f16662;
}

body .nav-menu__panel a:hover,
body .nav-menu__panel a:focus-visible,
body .mobile-nav a:hover,
body .mobile-nav a:focus-visible {
  color: #f16662;
  background: #fff2f1;
}

body .header-search:focus-within {
  border-color: #f28a87;
  box-shadow: 0 0 0 3px rgba(241, 102, 98, 0.1);
}

body .login-button {
  width: 104px;
  border-radius: var(--header-control-radius);
  background: #f16662;
  box-shadow: none;
}

body .login-button:hover,
body .login-button:focus-visible {
  background: #e95754;
  box-shadow: 0 8px 18px rgba(225, 85, 82, 0.2);
}

body .hero__eyebrow,
body .button--primary {
  background: linear-gradient(100deg, #fe866f 0%, #f76a87 100%);
}

body .hero__eyebrow {
  box-shadow: none;
}

body .hero h1,
body .hero h1 b,
body .hero__description {
  color: #3a4459;
}

body .hero h1 em {
  color: #f16662;
  background: linear-gradient(100deg, #ff806e 0%, #f5617f 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body .hero__divider {
  border-color: rgba(241, 102, 98, 0.58);
}

body .hero__description-en {
  color: #59667c;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

body .button--primary {
  box-shadow: 0 9px 18px rgba(239, 96, 103, 0.2);
}

body .button--primary:hover,
body .button--primary:focus-visible {
  box-shadow: 0 12px 24px rgba(239, 96, 103, 0.28);
}

body .button--secondary {
  border-color: #f16662;
  color: #f16662;
  background: rgba(255, 255, 255, 0.5);
}

body .button--secondary:hover,
body .button--secondary:focus-visible {
  border-color: #e95754;
  color: #e95754;
  box-shadow: 0 8px 20px rgba(225, 85, 82, 0.1);
}

body .document-card {
  border-color: rgba(255, 243, 243, 0.96);
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

body .document-card:hover,
body .document-card:focus-visible {
  border-color: rgba(241, 102, 98, 0.2);
  box-shadow: 0 16px 30px rgba(224, 92, 94, 0.16);
}

body .document-card__content strong {
  color: #3a4459;
}

body .document-card__content>span {
  color: #8b8d99;
}

body .updates__bar {
  color: #4b4b51;
  background: #fef1f2;
}

body .updates__label {
  color: #f16662;
  background: #ffffff;
}

body .updates__bar>a {
  color: #f16662;
}

@media (min-width: 1021px) {

  body .site-header,
  body .site-header.is-scrolled {
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    border: 0;
    border-bottom: 1px solid #f8eeee;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
  }

  body .site-header__inner {
    width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
    margin-inline: auto;
    padding: 0;
  }

  body .desktop-nav {
    gap: 60px;
    margin-left: 60px;
  }

  body .desktop-nav>a,
  body .nav-menu>button {
    height: 64px;
  }

  body .desktop-nav>a::after,
  body .nav-menu>button::after {
    bottom: 0;
    height: 3px;
  }

  body .nav-menu>button svg {
    display: none;
  }

  body .header-actions {
    gap: 20px;
  }

  body .header-search {
    width: 276px;
    height: 40px;
    border-color: #ccd2dc;
    background: #ffffff;
  }

  body .hero {
    top: auto;
    height: auto;
    background-color: #fff;
  }

  body .hero::before {
    display: none;
  }

  body .hero__inner {
    padding-top: 0;
  }

  body .hero__copy {
    position: relative;
    z-index: 1;
    width: auto;
    align-items: flex-start;
    text-align: left;
    transform: none;
  }

  body .document-grid {
    top: auto;
    height: clamp(144px, 19.259vh, 208px);
  }

  body .document-card>i {
    transform: none;
  }
}

@media (max-width: 1020px) {
  body main {
    background: linear-gradient(180deg, #fff7f6 0, #fff 760px, #fff 100%);
  }

  body .hero {
    background-color: transparent;
    background-image: none;
  }

  body .hero::before {
    display: none;
  }

  body .mobile-nav-toggle {
    border-color: #f2c6c4;
    background: rgba(255, 255, 255, 0.76);
  }

  body .mobile-nav__login {
    background: linear-gradient(100deg, #ff826e, #f85f87) !important;
  }
}

/* Desktop viewport fit: common laptop and desktop screens stay on one page. */
@media (min-width: 1021px) {
  :root {
    --page-gutter: clamp(32px, 4vw, 72px);
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  main {
    --banner-display-height: auto;
    display: flex;
    width: 100%;
    min-width: 0;
    height: 100vh;
    height: 100svh;
    min-height: 720px;
    flex-direction: column;
    padding-top: 64px;
    overflow: hidden;
  }

  body .hero {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  body .hero__inner {
    position: relative;
    z-index: 1;
    display: block;
    width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
    padding-top: clamp(20px, 3.2vh, 40px);
    padding-bottom: clamp(12px, 2.2vh, 28px);
    overflow: hidden;
  }

  body .hero__copy {
    position: relative;
    z-index: 1;
    width: auto;
  }

  body .hero__media {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    display: block;
    width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
    height: 100%;
    margin-inline: auto;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(var(--page-gutter));

  }

  .hero__eyebrow {
    min-width: clamp(320px, 38.889vh, 420px);
    height: clamp(40px, 5.185vh, 56px);
    padding-inline: clamp(24px, 3.148vh, 34px);
    border-radius: clamp(11px, 1.481vh, 16px);
    font-size: clamp(15px, 1.852vh, 20px);
  }

  .hero h1 {
    gap: clamp(17px, 2.407vh, 26px);
    margin-top: clamp(28px, 3.889vh, 42px);
    font-size: clamp(46px, 6.667vh, 72px);
  }

  .hero__divider {
    width: min(100%, 520px);
    margin-top: clamp(25px, 3.519vh, 38px);
  }

  .hero__description {
    margin-top: clamp(21px, 2.963vh, 32px);
    font-size: clamp(14px, 1.667vh, 18px);
    line-height: clamp(22px, 2.593vh, 28px);
  }

  .hero__description-en {
    margin-top: clamp(9px, 1.296vh, 14px);
    font-size: clamp(11.5px, 1.389vh, 15px);
    line-height: clamp(20px, 2.778vh, 30px);
  }

  .hero__actions {
    gap: clamp(36px, 5.185vh, 56px);
    margin-top: clamp(38px, 5.37vh, 58px);
  }

  .button {
    width: clamp(140px, 17.407vh, 188px);
    height: clamp(40px, 5.185vh, 56px);
    border-radius: clamp(10px, 1.204vh, 13px);
    font-size: clamp(14px, 1.667vh, 18px);
  }

  body .document-grid {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    flex: 0 0 auto;
    gap: clamp(16px, 1.25vw, 24px);
    height: clamp(144px, 19.259vh, 208px);
    margin: 0 auto clamp(12px, 2vh, 24px);
    transform: none;
  }

  .document-card {
    grid-template-columns: clamp(48px, 5.926vh, 64px) minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    padding: clamp(22px, 3.148vh, 34px) clamp(20px, 1.667vw, 32px) clamp(20px, 2.963vh, 32px);
    border-radius: clamp(12px, 1.481vh, 16px);
    column-gap: clamp(14px, 2.037vh, 22px);
  }

  .document-card img {
    width: clamp(48px, 5.926vh, 64px);
    height: clamp(48px, 5.926vh, 64px);
  }

  .document-card__content strong {
    font-size: clamp(17px, 1.944vh, 21px);
    line-height: clamp(24px, 2.778vh, 30px);
  }

  .document-card__content>span {
    margin-top: clamp(8px, 1.389vh, 15px);
    font-size: clamp(13px, 1.481vh, 16px);
    line-height: clamp(20px, 2.5vh, 27px);
  }

  .document-card>i {
    right: clamp(40px, 6.481vh, 70px);
    bottom: clamp(18px, 2.778vh, 30px);
    left: clamp(20px, 2.87vh, 31px);
  }

  .updates {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    flex: 0 0 auto;
    margin-top: auto;
    padding-bottom: clamp(16px, 3vh, 32px);
  }

  .updates__bar {
    grid-template-columns: clamp(126px, 14.815vh, 160px) minmax(0, 1fr) clamp(76px, 8.148vh, 88px);
    height: clamp(54px, 6.667vh, 72px);
    padding-block: clamp(8px, 1.111vh, 12px);
    border-radius: clamp(12px, 1.481vh, 16px);
  }
}

@media (min-width: 1021px) and (max-width: 1279px) {
  .site-header {
    position: absolute;
  }
}

@media (min-width: 1021px) and (max-width: 1460px) {
  body .desktop-nav {
    gap: clamp(29px, 2.875vw, 42px);
    margin-left: clamp(40px, 3.973vw, 58px);
  }

  body .header-actions {
    gap: clamp(12px, 1.1vw, 16px);
  }

  body .header-search {
    width: clamp(190px, 15.75vw, 230px);
  }
}

@media (max-width: 1020px) {
  .document-grid {
    margin-inline: auto;
  }
}

/* Document 3.0 desktop video and theme alignment ----------------------- */
.theme-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: var(--header-control-height);
  padding: 0;
  place-items: center;
  cursor: pointer;
  border-radius: var(--header-control-radius);
  background: transparent;
  transition: opacity 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  opacity: 0.78;
}

.theme-toggle img {
  display: block;
  width: 58px;
  height: var(--header-control-height);
}

.hero__media {
  display: none;
}

.hero__video {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center right;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

body:not(.is-dark) .hero__video--light,
body.is-dark .hero__video--dark {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1021px) {
  :root {
    --page-gutter: clamp(32px, 4vw, 72px);
  }

  body {
    overflow: auto;
  }

  main {
    min-width: 1100px;
  }

  body .site-header__inner {
    width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
  }

  body .hero {
    overflow: hidden;
    background-color: #fff;
  }

  body .hero__copy {
    width: auto;
  }

  body .hero__media {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
    transform: translateX(var(--page-gutter));

    height: 100%;
    margin-inline: auto;
  }

  .hero__video {
    object-fit: fill;
    object-position: center right;
    -webkit-mask-image: linear-gradient(180deg,
        #000 0%,
        #000 72%,
        rgba(0, 0, 0, 0.92) 82%,
        rgba(0, 0, 0, 0.55) 92%,
        transparent 100%);
    mask-image: linear-gradient(180deg,
        #000 0%,
        #000 72%,
        rgba(0, 0, 0, 0.92) 82%,
        rgba(0, 0, 0, 0.55) 92%,
        transparent 100%);
  }
}

@media (max-width: 1020px) {
  .theme-toggle {
    display: none;
  }

  .hero__media,
  .hero__video {
    display: none !important;
  }
}

@media (min-width: 1800px) {
  body .hero__media {
    transform: none;

  }
}

@media (min-width: 1920px) {
  body .hero__media {
    transform: translateX(0%);

  }
}

@media (min-width: 2000px) and (max-width: 2560px) {
  body .hero__media {
    transform: translateX(-2vw);

  }
}

body.is-dark {
  --header-surface: rgba(62, 62, 62, 0.96);
  --ink: #eeeeee;
  --ink-strong: #ffffff;
  --blue: #ff827c;
  --violet: #fe866f;
  --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  color: var(--ink);
  color-scheme: dark;
  background: #363636;
}

body.is-dark main {
  background: #363636;
}

body.is-dark .site-header,
body.is-dark .site-header.is-scrolled {
  border-color: rgba(255, 130, 124, 0.14);
  background: rgba(62, 62, 62, 0.96);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
}

body.is-dark .brand img {
  content: url("./img/idcsmart-logo.png");
  filter: none;
  opacity: 1;
}

body.is-dark .theme-toggle img {
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

body.is-dark .desktop-nav,
body.is-dark .nav-menu>button,
body.is-dark .header-search input {
  color: #e8e8e8;
}

body.is-dark .desktop-nav>a[aria-current="page"],
body.is-dark .desktop-nav>a:hover,
body.is-dark .desktop-nav>a:focus-visible,
body.is-dark .nav-menu>button:hover,
body.is-dark .nav-menu>button:focus-visible {
  color: #ff827c;
}

body.is-dark .desktop-nav>a[aria-current="page"]::after {
  transform: scaleX(1);
}

body.is-dark .desktop-nav>a::after,
body.is-dark .nav-menu>button::after,
body.is-dark .document-card>i {
  background: linear-gradient(90deg, #fe866f 0%, #f76a87 58%, rgba(247, 106, 135, 0) 100%);
}

body.is-dark .header-search {
  border-color: rgba(255, 193, 190, 0.2);
  background: rgba(48, 48, 48, 0.72);
}

body.is-dark .header-search:focus-within {
  border-color: #ff827c;
  background: rgba(55, 55, 55, 0.96);
  box-shadow: 0 0 0 3px rgba(255, 130, 124, 0.16);
}

body.is-dark .header-search svg,
body.is-dark .nav-menu>button svg {
  stroke: #c8c8c8;
}

body.is-dark .header-search input::placeholder {
  color: #aaaaaa;
}

body.is-dark .header-search input {
  caret-color: #ff827c;
}

body.is-dark .login-button,
body.is-dark .hero__eyebrow,
body.is-dark .button--primary {
  background: linear-gradient(100deg, #fe866f 0%, #f76a87 100%);
}

body.is-dark .login-button {
  box-shadow: none;
}

body.is-dark .login-button:hover,
body.is-dark .login-button:focus-visible {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

body.is-dark .hero {
  background-color: #363636;
  background-image: none;
}

body.is-dark .hero h1,
body.is-dark .hero h1 b,
body.is-dark .hero__description {
  color: #f2f2f2;
}

body.is-dark .hero h1 em {
  color: #ff827c;
  background: linear-gradient(100deg, #ff947f 0%, #f76a87 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.is-dark .hero__divider {
  border-color: rgba(255, 130, 124, 0.45);
}

body.is-dark .hero__description-en {
  color: rgba(242, 242, 242, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.48);
}

body.is-dark .button--secondary {
  border-color: #ff827c;
  color: #ff9994;
  background: rgba(255, 130, 124, 0.05);
}

body.is-dark .button--secondary:hover,
body.is-dark .button--secondary:focus-visible {
  border-color: #ffaaa6;
  color: #ffaaa6;
  background: rgba(255, 130, 124, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

body.is-dark .document-card {
  border: 0;
  background: #484848;
  box-shadow: var(--card-shadow);
}

body.is-dark .document-card:hover,
body.is-dark .document-card:focus-visible {
  border: 0;
  background: #505050;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

body.is-dark .document-card__content strong {
  color: #f5f5f5;
}

body.is-dark .document-card__content>span {
  color: #c6c6c6;
}

body.is-dark .updates__bar {
  border: 0;
  color: #d0d0d0;
  background: #484848;
}

body.is-dark .updates__label {
  border: 0;
  color: #ff827c;
  background: #555555;
}

body.is-dark .updates__bar>a {
  color: #ff827c;
}

body.is-dark .nav-menu__panel,
body.is-dark .mobile-nav {
  border-color: rgba(255, 130, 124, 0.16);
  background: rgba(72, 72, 72, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

body.is-dark .nav-menu__panel a,
body.is-dark .mobile-nav a {
  color: #e8e8e8;
}

body.is-dark .nav-menu__panel a:hover,
body.is-dark .nav-menu__panel a:focus-visible,
body.is-dark .mobile-nav a:hover,
body.is-dark .mobile-nav a:focus-visible {
  color: #ff827c;
  background: rgba(255, 130, 124, 0.1);
}

body.is-dark .mobile-nav__login {
  color: #fff !important;
  background: linear-gradient(100deg, #fe866f, #f76a87) !important;
}

body.is-dark .mobile-nav-toggle {
  border-color: rgba(255, 193, 190, 0.2);
  background: rgba(72, 72, 72, 0.9);
}

body.is-dark .mobile-nav-toggle span {
  background: #f2f2f2;
}

body.is-dark .search-message {
  border-color: rgba(255, 130, 124, 0.18);
  color: #eeeeee;
  background: rgba(72, 72, 72, 0.97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

@media (min-width: 1021px) {

  body.is-dark .site-header,
  body.is-dark .site-header.is-scrolled {
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    border: 0;
    border-bottom: 1px solid rgba(255, 130, 124, 0.14);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
  }

  body.is-dark .site-header__inner {
    width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
    margin-inline: auto;
    padding: 0;
  }

  body.is-dark .brand img {
    width: 160px;
    height: auto;
  }

  body.is-dark .desktop-nav {
    gap: 60px;
    margin-left: 60px;
  }

  body.is-dark .desktop-nav>a,
  body.is-dark .nav-menu>button {
    height: 64px;
  }

  body.is-dark .desktop-nav>a::after,
  body.is-dark .nav-menu>button::after {
    bottom: 0;
    height: 3px;
  }

  body.is-dark .nav-menu>button svg {
    display: none;
  }

  body.is-dark .header-actions {
    gap: 20px;
  }

  body.is-dark .header-search {
    width: 276px;
    height: 40px;
  }

  body.is-dark .login-button {
    width: 104px;
    border-radius: var(--header-control-radius);
  }

  body.is-dark .hero__copy {
    width: auto;
    align-items: flex-start;
    text-align: left;
    transform: none;
  }

  body.is-dark .document-card>i {
    transform: none;
  }
}
