@font-face {
  font-family: "Linxi Kit Sans";
  src: url("/assets/fonts/kit-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Linxi MiSans Han";
  src: url("/assets/fonts/misans-title-ni.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
  font-variation-settings: "wght" 700;
  unicode-range: U+4F60;
}

@font-face {
  font-family: "Linxi MiSans Han";
  src: url("/assets/fonts/misans-title-dai.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
  font-variation-settings: "wght" 700;
  unicode-range: U+5E26;
}

@font-face {
  font-family: "Linxi MiSans Han";
  src: url("/assets/fonts/misans-title-wan.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
  font-variation-settings: "wght" 700;
  unicode-range: U+73A9;
}

@font-face {
  font-family: "Linxi MiSans Han";
  src: url("/assets/fonts/misans-title-zhuan.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
  font-variation-settings: "wght" 700;
  unicode-range: U+8D5A;
}

.linxi-kit-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #020a0f 0, #144264 1946px);
  background: linear-gradient(180deg in oklab, #020a0f 0, #144264 1946px);
}

.linxi-kit-announcement {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 16px;
  min-height: 40px;
  padding: 7px 52px;
  background: linear-gradient(90deg, #2b1136, #4a265a);
  color: #e8d3ef;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .6px;
}

.linxi-kit-announcement p { min-width: 0; }
.linxi-kit-announcement strong { color: #fff; font-weight: 700; }

.linxi-kit-announcement a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 24px;
  padding: 0 10px;
  border-radius: 5px;
  background: #e4acf5;
  color: #281330;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  transition: background-color .2s;
}

.linxi-kit-announcement a:hover { background: #f1d0ff; }
.linxi-kit-announcement a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.linxi-kit-announcement-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: #e8d3ef;
  transition: background-color .2s, color .2s;
}

.linxi-kit-announcement-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.linxi-kit-announcement-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.linxi-kit-announcement-dismissed .linxi-kit-announcement { display: none; }

.linxi-kit-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url("/assets/kit-grain.svg") repeat;
  background-size: 128px 128px;
}

.linxi-kit-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: #44b1ff;
}

@media (min-width: 768px) {
  body:has(.linxi-kit-announcement, .linxi-activity-page) nav.fixed {
    top: calc(12px + var(--linxi-kit-nav-offset, 40px) + var(--linxi-kit-nav-extra, 8px));
  }

  body:has(.linxi-kit-hero, .linxi-activity-page) nav.fixed .interactive-glow-card {
    transition: padding .45s cubic-bezier(.2, 1.25, .35, 1),
      background-color .7s ease-in-out,
      border-color .7s ease-in-out,
      box-shadow .7s ease-in-out,
      backdrop-filter .7s ease-in-out !important;
  }

  body:has(.linxi-kit-hero, .linxi-activity-page) nav.fixed button.whitespace-nowrap:not(.rounded-full) {
    transition: color .16s ease-in-out .22s;
  }

  body:has(.linxi-kit-hero, .linxi-activity-page) nav.fixed .hidden.md\:flex > .absolute:first-child {
    transition: background-color .7s ease-in-out,
      border-color .7s ease-in-out,
      box-shadow .7s ease-in-out;
  }

  body:has(.linxi-kit-hero, .linxi-activity-page) nav.fixed button.whitespace-nowrap.rounded-full {
    background-color: #38ADF7 !important;
  }

  body:has(.linxi-kit-hero, .linxi-activity-page):not(.linxi-kit-nav-scrolled) nav.fixed .interactive-glow-card {
    border-color: rgba(193, 225, 242, .27) !important;
    background: rgba(5, 23, 35, .28) !important;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .38),
      inset 0 0 0 1px rgba(255, 255, 255, .045),
      0 10px 26px rgba(0, 0, 0, .14) !important;
    backdrop-filter: blur(16px) saturate(125%);
  }

  body:has(.linxi-kit-hero, .linxi-activity-page).linxi-kit-nav-scrolled nav.fixed .interactive-glow-card {
    border-color: rgba(62, 87, 105, .2) !important;
    background: rgba(248, 252, 255, .28) !important;
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, .38),
      inset 0 0 0 1px rgba(0, 0, 0, .045),
      0 10px 26px rgba(0, 0, 0, .14) !important;
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
  }

  body:has(.linxi-kit-hero, .linxi-activity-page):not(.linxi-kit-nav-scrolled) nav.fixed button.whitespace-nowrap:not(.rounded-full) {
    color: #fff !important;
  }

  body:has(.linxi-kit-hero, .linxi-activity-page):not(.linxi-kit-nav-scrolled) nav.fixed .hidden.md\:flex > .absolute:first-child {
    border-color: rgba(112, 196, 247, .4) !important;
    background: rgba(48, 124, 179, .4) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .16);
  }
}

.heo-hero-shell.linxi-kit-hero,
body.dark .heo-hero-shell.linxi-kit-hero {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  flex: none;
  margin-top: auto;
  height: auto;
  min-height: 0;
  padding: 128px 24px 0;
  overflow: hidden;
  background: transparent;
  color: #fff;
}

.heo-hero-shell.linxi-kit-hero::before,
body.dark .heo-hero-shell.linxi-kit-hero::before {
  display: none;
}

.linxi-kit-hero .heo-hero-content {
  width: min(100%, 980px);
  padding-top: 0;
}

.linxi-kit-hero .heo-hero-title {
  gap: 0;
  color: #fff;
  font-family: "Linxi Kit Sans", "Linxi Title Han", "PingFang SC", sans-serif;
  font-size: clamp(3.6rem, 5.45vw, 5rem);
  font-weight: 500;
  font-synthesis: none;
  line-height: .98;
  letter-spacing: 0;
}

.linxi-kit-hero .heo-hero-title > span,
body.dark .linxi-kit-hero .heo-hero-title > span {
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  font-size: 1em;
  transform: none;
  white-space: nowrap;
}

/* Match the Chinese ink height and bottom edge to Kit Sans capitals. */
.linxi-kit-hero .heo-hero-title .linxi-title-han {
  position: relative;
  top: -.075em;
  font-family: "Linxi MiSans Han", "Linxi Title Han", sans-serif;
  font-size: .8em;
  font-weight: 900;
}

.linxi-kit-hero .heo-hero-description,
body.dark .linxi-kit-hero .heo-hero-description {
  width: min(100%, 740px);
  margin-top: 29px;
  color: #c8d2d9;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
}

.linxi-kit-hero .heo-hero-actions {
  margin-top: 34px;
}

.linxi-kit-hero .heo-hero-primary-link,
body.dark .linxi-kit-hero .heo-hero-primary-link {
  min-width: 180px;
  min-height: 60px;
  padding: 0 26px;
  border-radius: 11px;
  background: #39adf7;
  box-shadow: none;
  color: #072238;
  font-size: 19px;
  font-weight: 800;
}

.linxi-kit-hero .heo-hero-primary-link:hover {
  background: #71c8ff;
  box-shadow: none;
}

.linxi-kit-hero .heo-hero-primary-link:focus-visible {
  outline: 3px solid #e3b9ed;
  outline-offset: 4px;
}

.linxi-kit-footnote {
  margin: 14px 0 0;
  color: #a5b8c5;
  font-size: 13px;
  line-height: 1.5;
}

.linxi-kit-tools-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 86px;
}

.linxi-kit-about {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 96px));
  margin: 52px auto auto;
  padding-top: 30px;
  padding-bottom: 64px;
  border-top: 1px solid rgba(132, 184, 217, .22);
}

.linxi-kit-about > .flex { width: 100% !important; }

.linxi-kit-about .avatar-description {
  display: flex;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.linxi-kit-about .avatar-description-text {
  display: block;
  width: min(100%, 800px);
  margin: 0 auto 28px;
}

.linxi-kit-about .avatar-description-text p {
  margin: 0;
  color: #c5d8e4;
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
  text-wrap: balance;
}

.linxi-kit-about .avatar-description > .border-t { justify-content: center; border: 0; padding-top: 0; }
.linxi-kit-about .avatar-description > .border-t > .flex { gap: 14px; max-width: 100%; }
.linxi-kit-about .avatar-image {
  width: 48px;
  box-shadow: 0 0 0 1px rgba(160, 199, 228, .25);
  filter: none;
}

.linxi-kit-about .avatar-name { color: #f4f9fc; font-size: 17px; line-height: 1.5; letter-spacing: 0; }
.linxi-kit-about .avatar-title { margin-top: 3px; color: #8eaabd; font-size: 12px; line-height: 1.7; letter-spacing: 0; text-wrap: balance; }

@media (max-width: 767px) {
  .linxi-kit-announcement { gap: 10px; padding: 8px 42px 8px 14px; font-size: 12px; }
  .linxi-kit-announcement-close { right: 6px; }

  .heo-hero-shell.linxi-kit-hero,
  body.dark .heo-hero-shell.linxi-kit-hero {
    padding: 56px 18px 0;
  }

  .linxi-kit-hero .heo-hero-title { font-size: clamp(2.25rem, 10vw, 3.25rem); line-height: 1.05; }
  .linxi-kit-hero .heo-hero-description { margin-top: 24px; font-size: 15px; line-height: 1.55; }
  .linxi-kit-hero .heo-hero-actions { margin-top: 26px; }
  .linxi-kit-hero .heo-hero-primary-link { min-width: 156px; min-height: 52px; font-size: 16px; }
  .linxi-kit-footnote { margin-top: 13px; font-size: 12px; }
  .linxi-kit-about { width: calc(100% - 48px); margin: 36px auto auto; padding-top: 24px; padding-bottom: 96px; }
  .linxi-kit-about .avatar-description-text p { font-size: 14px; line-height: 1.9; text-align: left; text-wrap: pretty; }
  .linxi-kit-about .avatar-title { font-size: 12px; line-height: 1.75; }
  .linxi-kit-about .avatar-image { width: 44px; }
}

@media (max-width: 360px) {
  .linxi-kit-hero .heo-hero-description { font-size: 14px; }
  .linxi-kit-hero .heo-hero-actions { margin-top: 20px; }
}

@media (max-height: 540px) {
  .heo-hero-shell.linxi-kit-hero,
  body.dark .heo-hero-shell.linxi-kit-hero { padding: 84px 18px 0; }
  .linxi-kit-hero .heo-hero-title { font-size: 36px; line-height: 1.05; }
  .linxi-kit-hero .heo-hero-description { margin-top: 16px; font-size: 14px; }
  .linxi-kit-hero .heo-hero-actions { margin-top: 18px; }
  .linxi-kit-hero .heo-hero-primary-link { min-height: 44px; font-size: 16px; }
  .linxi-kit-footnote { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .linxi-kit-hero .heo-hero-primary-link { transition: none; }
  body:has(.linxi-kit-hero, .linxi-activity-page) nav.fixed .interactive-glow-card,
  body:has(.linxi-kit-hero, .linxi-activity-page) nav.fixed button.whitespace-nowrap:not(.rounded-full),
  body:has(.linxi-kit-hero, .linxi-activity-page) nav.fixed .hidden.md\:flex > .absolute:first-child {
    transition: none !important;
  }
}
