@font-face {
  font-family: "Kalman Pool Rounded SC";
  src: url("/fonts/kalman-pool-rounded-sc-title.woff2?v=71a624a9f440") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #0c0a18;
  color: #eeebf0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
[hidden] { display: none !important; }
.site-header {
  height: calc(76px + env(safe-area-inset-top));
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: env(safe-area-inset-top) max(40px, env(safe-area-inset-right)) 0 24px;
}
.language-switch { display: flex; align-items: center; font-size: 12px; color: #77717f; }
.language-switch button {
  min-width: 36px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  color: #aaa4b2;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { color: #eeebf0; }
main { display: grid; place-items: center; min-width: 0; padding: 0 0 28px; }
.hero { width: 100%; display: grid; justify-items: center; gap: 28px; }
.hero-media {
  position: relative;
  width: min(960px, calc(100vw - 96px), max(180px, calc(100svh - 320px)));
  aspect-ratio: 1;
  background: #0c0a18;
  overflow: hidden;
}
.hero-media img, .hero-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-media video { opacity: 0; }
.hero-media.is-playing video { opacity: 1; }
.hero-copy { padding: 0 20px; text-align: center; }
h1 {
  margin: 0;
  font-family: "Kalman Pool Rounded SC", "Avenir Next", sans-serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.tagline { margin: 15px 0 0; color: #b5afbf; font-size: 14px; line-height: 1.6; }
.tagline [lang="zh-CN"] { display: none; }
html[lang="zh-CN"] .tagline [lang="en"] { display: none; }
html[lang="zh-CN"] .tagline [lang="zh-CN"] { display: inline; }
.site-footer { padding: 0 24px max(27px, env(safe-area-inset-bottom)); }
.site-footer nav { display: flex; justify-content: center; align-items: center; gap: clamp(24px, 4vw, 52px); }
a { color: #a9a3b2; text-decoration: none; font-size: 12px; line-height: 44px; white-space: nowrap; }
@media (hover: hover) { a:hover { color: #ff3d8b; } }
a:focus-visible, button:focus-visible { outline: 1px solid #eeebf0; outline-offset: 5px; }

@media (max-width: 600px) {
  .site-header { height: calc(62px + env(safe-area-inset-top)); padding-right: max(15px, env(safe-area-inset-right)); }
  main { padding-bottom: 24px; }
  .hero { gap: 26px; }
  .hero-media { width: 100%; max-width: 960px; height: min(100vw, max(120px, calc(100svh - 276px))); aspect-ratio: auto; }
  h1 { font-size: clamp(43px, 11.5vw, 62px); }
  .tagline { margin-top: 14px; font-size: 13px; }
  .site-footer { padding-right: 16px; padding-left: 16px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .site-footer nav { gap: clamp(20px, 6vw, 36px); }
  a { font-size: 11px; }
}

@media (max-height: 620px) and (max-width: 600px) {
  .site-header { height: calc(54px + env(safe-area-inset-top)); }
  main { padding-bottom: 16px; }
  .hero { gap: 20px; }
  .hero-media { height: min(100vw, max(120px, calc(100svh - 220px))); }
  .tagline { margin-top: 12px; }
  .site-footer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

@media (max-height: 620px) and (min-width: 601px) {
  .site-header { height: 48px; }
  main { padding-bottom: 12px; }
  .hero { gap: 16px; }
  .hero-media { width: min(960px, calc(100vw - 96px), max(120px, calc(100svh - 200px))); }
  h1 { font-size: 40px; }
  .tagline { margin-top: 8px; font-size: 12px; }
  .site-footer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
