@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans CN Normal";
  src: url("../assets/fonts/SourceHanSansCN-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 350;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #ffffff;
  --text: #05070c;
  --muted: #5f6775;
  --soft: #8790a4;
  --line: #dfe4ed;
  --line-strong: #cfd7e5;
  --blue: #6ca6ff;
  --blue-soft: #eef6ff;
  --panel: #f8faff;
  --page-x: clamp(28px, 6.95vw, 134px);
  --page-max: 1200px;
  --font-sans: "Inter", "Source Han Sans CN Normal";
  --font-display: "Inter", "Source Han Sans CN Normal";
  --font-mono: "Geist Mono", "Source Han Sans CN Normal";
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
}

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

button,
input,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.career-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  min-height: 80px;
  padding: 0 var(--page-x);
  border-bottom: 1px solid rgba(20, 31, 52, 0.12);
  background: transparent;
  transform: translate3d(0, 0, 0);
  transition: min-height 260ms ease, border-color 260ms ease, background-color 260ms ease, opacity 260ms ease, transform 300ms ease;
  will-change: transform;
}

.career-header.is-compact {
  min-height: 64px;
  border-bottom-color: rgba(10, 10, 10, 0.16);
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  backdrop-filter: blur(14px) saturate(1.04);
}

.career-header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -140%, 0);
}

.career-brand {
  display: inline-flex;
  align-items: center;
  min-width: 178px;
  color: #10131a;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1;
  white-space: nowrap;
}

.career-header .career-brand {
  min-width: 0;
  letter-spacing: 0.28em;
}

.career-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #141821;
  font-size: 14px;
  font-weight: 500;
}

.career-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #0a0a0a;
  line-height: 1;
  white-space: nowrap;
  transition: color 170ms ease, background-color 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.career-nav .career-nav-join,
.career-nav .zh-career-contact {
  min-width: 92px;
  padding: 0 16px;
  border-color: #0a0a0a;
}

.career-nav .career-nav-join,
.career-nav .career-nav-join.is-active {
  background: transparent;
  color: #0a0a0a;
}

.career-nav .zh-career-contact {
  background: #0a0a0a;
  color: #fff;
}

.career-nav a:hover {
  transform: translateY(-2px);
}

.career-nav .career-nav-join:hover {
  border-color: #0a0a0a;
  background: rgba(255, 255, 255, 0.72);
  color: #0a0a0a;
}

.career-nav .zh-career-contact:hover {
  border-color: #2b2b2b;
  background: #2b2b2b;
  color: #fff;
}

.career-mobile-nav a {
  position: relative;
  transition: color 180ms ease;
}

.career-mobile-nav a:hover,
.career-mobile-nav a.is-active {
  color: #0a0a0a;
}

.career-menu {
  display: none;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #131722;
  font-size: 12px;
  font-weight: 600;
}

.career-mobile-nav {
  position: fixed;
  top: 76px;
  right: 16px;
  left: 16px;
  z-index: 35;
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(30, 45, 80, 0.13);
  backdrop-filter: blur(18px);
}

.career-mobile-nav.open {
  display: grid;
}

.career-mobile-nav a {
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #121722;
  font-size: 14px;
  font-weight: 600;
}

.career-mobile-nav a:hover,
.career-mobile-nav a.is-active {
  background: var(--blue-soft);
}

.career-hero {
  position: relative;
  isolation: isolate;
  min-height: 468px;
  padding: 158px var(--page-x) 42px;
  overflow: hidden;
}

.career-earth {
  position: absolute;
  top: 104px;
  right: -74px;
  z-index: -1;
  width: min(890px, 63vw);
  height: 342px;
  overflow: hidden;
  pointer-events: none;
}

.career-earth::after {
  content: "";
  position: absolute;
  inset: 46% 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), #fff 68%);
}

.career-earth img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.88;
  mix-blend-mode: multiply;
  transform: translateY(0);
  mask-image: linear-gradient(180deg, #000 0 48%, rgba(0, 0, 0, 0.28) 66%, transparent 86%);
}

.career-hero-copy {
  position: relative;
  z-index: 2;
  width: min(900px, 68vw);
}

.career-hero h1 {
  margin: 0;
  color: #05070c;
  font-size: clamp(40px, 5.2vw, 88px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
  white-space: nowrap;
}

.career-intro {
  position: relative;
  z-index: 2;
  max-width: min(900px, 70vw);
  margin-top: clamp(112px, 10vw, 156px);
}

.intro-copy p {
  margin: 0;
  color: #151a24;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.82;
}

.intro-copy p + p {
  margin-top: 18px;
}

.roles-section {
  padding: 0 var(--page-x) 72px;
}

.roles-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 48px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.roles-sidebar {
  display: grid;
  align-content: start;
  gap: 38px;
}

.role-search {
  position: relative;
  display: block;
}

.role-search input {
  width: 100%;
  height: 42px;
  padding: 0 18px 0 50px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  outline: 0;
  background: #fff;
  color: #121722;
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.role-search input::placeholder {
  color: #a5adbc;
}

.role-search input:focus {
  border-color: rgba(108, 166, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(108, 166, 255, 0.09);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 15px;
  height: 15px;
  border: 1.8px solid #77839a;
  border-radius: 50%;
  transform: translateY(-55%);
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 1.8px;
  border-radius: 999px;
  background: #77839a;
  transform: rotate(45deg);
  transform-origin: left center;
}

.role-filters {
  display: grid;
  gap: 18px;
}

.filter-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  padding: 0 8px 0 6px;
  border: 0;
  background: transparent;
  color: #344052;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
}

.filter-button::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--blue);
}

.filter-button.is-active::after {
  background: var(--blue);
  box-shadow: 0 0 10px rgba(108, 166, 255, 0.4);
}

.roles-main {
  min-height: 354px;
  padding-left: 48px;
  border-left: 1px solid var(--line);
}

.role-list {
  display: grid;
}

.role-card {
  border-bottom: 1px solid var(--line);
}

.role-card:first-child {
  border-top: 0;
}

.role-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 24px;
  align-items: center;
  width: 100%;
  min-height: 142px;
  padding: 34px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.role-title-group {
  min-width: 0;
}

.role-title {
  display: block;
  margin: 0 0 18px;
  color: #07090e;
  font-size: clamp(23px, 2vw, 28px);
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 11px;
  border: 1px solid rgba(108, 166, 255, 0.65);
  border-radius: 7px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.role-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.role-button:hover .role-arrow,
.role-button:focus-visible .role-arrow,
.role-card.is-expanded .role-arrow {
  transform: translateX(6px);
}

.role-button:focus-visible {
  outline: 2px solid rgba(108, 166, 255, 0.75);
  outline-offset: 6px;
}

.role-details {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 46px;
  padding: 0 74px 42px 0;
}

.role-card.is-expanded .role-details {
  display: grid;
}

.role-positioning {
  grid-column: 1 / -1;
  max-width: 920px;
}

.role-details h3 {
  margin: 0 0 16px;
  color: #0e1420;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.role-details p {
  max-width: 920px;
  margin: 0;
  color: #303949;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.72;
}

.role-details ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.role-details li {
  position: relative;
  padding-left: 18px;
  color: #303949;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.68;
}

.role-details li::before {
  content: "";
  position: absolute;
  top: 0.76em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.empty-roles {
  margin: 42px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.careers-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 var(--page-x);
  padding: 58px 0 72px;
  border-top: 1px solid var(--line);
}

.careers-cta p {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.careers-cta h2 {
  margin: 0;
  color: #060910;
  font-size: clamp(42px, 4vw, 72px);
  font-weight: 520;
  line-height: 1;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid rgba(108, 166, 255, 0.42);
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.cta-link:hover {
  border-color: rgba(108, 166, 255, 0.9);
  box-shadow: 0 12px 28px rgba(108, 166, 255, 0.13);
  transform: translateY(-1px);
}

.career-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--page-x) 34px;
  border-top: 1px solid var(--line);
  color: #40495a;
}

.career-footer .career-brand {
  font-size: 17px;
}

.career-footer p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 1040px) {
  .career-nav {
    gap: 24px;
  }

  .career-earth {
    right: -190px;
    width: 780px;
    opacity: 0.76;
  }

  .career-hero-copy {
    width: min(760px, 78vw);
  }

  .roles-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
  }

  .roles-main {
    padding-left: 34px;
  }
}

@media (max-width: 820px) {
  .career-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 0 var(--page-x);
  }

  .career-header.is-compact {
    min-height: 56px;
  }

  .career-nav {
    display: none;
  }

  .career-menu {
    display: inline-flex;
    align-items: center;
  }

  .career-brand {
    min-width: 0;
    font-size: 17px;
    letter-spacing: 0.24em;
  }

  .career-hero {
    min-height: 0;
    padding-top: 134px;
  }

  .career-earth {
    top: 72px;
    right: -260px;
    width: 680px;
    height: 260px;
    opacity: 0.54;
  }

  .career-hero-copy {
    width: min(100%, 560px);
  }

  .career-hero h1 {
    font-size: clamp(40px, 9vw, 70px);
  }

  .career-intro {
    max-width: min(100%, 720px);
    margin-top: 64px;
  }

  .roles-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .roles-sidebar {
    gap: 20px;
  }

  .role-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .filter-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
  }

  .filter-button::after {
    display: none;
  }

  .filter-button.is-active {
    border-color: rgba(108, 166, 255, 0.45);
    background: var(--blue-soft);
  }

  .roles-main {
    padding-left: 0;
    border-left: 0;
  }

  .role-button {
    grid-template-columns: minmax(0, 1fr) 36px;
    min-height: 116px;
    padding: 26px 0;
  }

  .role-arrow {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .role-details {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-right: 0;
  }

  .role-positioning {
    grid-column: auto;
  }

  .careers-cta,
  .career-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  :root {
    --page-x: 18px;
  }

  .career-brand {
    font-size: 15px;
    letter-spacing: 0.24em;
  }

  .career-menu {
    min-height: 36px;
    padding: 7px 12px;
  }

  .career-hero {
    padding-top: 122px;
    padding-bottom: 34px;
  }

  .career-earth {
    top: 84px;
    right: -318px;
    width: 600px;
    opacity: 0.42;
  }

  .intro-copy p {
    font-size: 15px;
  }

  .roles-section {
    padding-bottom: 52px;
  }

  .roles-layout {
    padding-top: 30px;
  }

  .role-title {
    margin-bottom: 14px;
    font-size: 22px;
  }

  .role-badge {
    min-height: 24px;
    font-size: 13px;
  }

  .role-details li {
    font-size: 13px;
  }

  .careers-cta {
    padding-top: 46px;
    padding-bottom: 54px;
  }

  .cta-link {
    width: 100%;
  }
}
