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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 max(clamp(24px, 5vw, 80px), env(safe-area-inset-right)) 0 max(clamp(24px, 5vw, 80px), env(safe-area-inset-left));
}

.ambient {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 95%, #11151e 0, #08090d 36%, #050507 70%);
}

.horizon {
  position: absolute;
  z-index: 1;
  width: max(1200px, 150vw);
  height: 80%;
  top: 79%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #050507;
  box-shadow: 0 -1px 2px #b8caff30, 0 -12px 40px #8195ba12;
  animation: horizon-arrive 2.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.horizon::before,
.horizon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 -1px 3px #dce7ffb3, 0 -12px 28px #a5b7d766, 0 -38px 80px #7189b43d;
  mask-image: linear-gradient(90deg, transparent 10%, #000 50%, transparent 90%);
  mask-size: 200% 100%;
  mask-position: 50% 0;
  mask-clip: no-clip;
  animation: rim-travel 14s -4s ease-in-out infinite alternate;
}

.horizon::after {
  box-shadow: 0 -24px 48px #b4c0d640, 0 -64px 110px #7186ac30;
  mask-size: 160% 100%;
  animation-duration: 23s;
  animation-direction: alternate-reverse;
  animation-delay: -11s;
}

.site-header,
.site-footer {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

.site-header {
  padding-top: max(40px, env(safe-area-inset-top));
  padding-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.brand-name {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.brand-english {
  color: #a1a1aa;
  border-left: 1px solid #ffffff24;
  padding-left: 20px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.hero {
  align-self: center;
  padding: 28px 0 72px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 clamp(26px, 4vh, 44px);
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.34em;
  animation: text-arrive 1.4s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 6.6vw, 96px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.14em;
}

.title-line {
  display: block;
  padding-left: 0.14em;
  white-space: nowrap;
  animation: text-arrive 1.6s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.title-line:last-child {
  color: #bec7d8;
  animation-delay: 0.45s;
}

.punctuation {
  display: inline-block;
  width: 0.55em;
  font-size: 0.7em;
  font-weight: 300;
  letter-spacing: 0;
}

.tagline {
  margin: clamp(28px, 4vh, 44px) 0 0;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: text-arrive 1.6s 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0 max(28px, env(safe-area-inset-bottom));
  color: #94949f;
  font-size: 11px;
  line-height: 1.6;
}

.copyright {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer a {
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #f5f5f7;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer a:focus-visible {
  outline: 2px solid #b8caff;
  outline-offset: 5px;
  border-radius: 2px;
}

@media (max-width: 600px) {
  .site-header {
    padding-top: max(24px, env(safe-area-inset-top));
  }

  .hero {
    padding: 24px 0 52px;
  }

  h1 {
    font-size: clamp(42px, 10.5vw, 62px);
    line-height: 1.65;
    letter-spacing: 0.1em;
  }

  .eyebrow {
    margin-bottom: 28px;
    font-size: 10px;
  }

  .tagline {
    margin-top: 30px;
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .site-footer,
  .copyright {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .site-footer {
    text-align: center;
    font-size: 11px;
  }
}

@media (max-height: 540px) {
  .site-header {
    padding-block: 18px;
  }

  .hero {
    padding: 12px 0 24px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.4;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .tagline {
    margin-top: 12px;
    font-size: 10px;
  }

  .site-footer {
    padding-block: 14px;
  }
}

@keyframes text-arrive {
  from { opacity: 0; transform: translateY(18px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes horizon-arrive {
  from { opacity: 0; transform: translate(-50%, 28px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes rim-travel {
  0% { mask-position: 85% 0; opacity: 0.55; }
  50% { opacity: 1; }
  100% { mask-position: 15% 0; opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
