:root {
  color-scheme: light;
  --ink: #122a46;
  --ink-soft: #425e7e;
  --line: rgba(27, 62, 101, 0.26);
  --glass: rgba(242, 248, 255, 0.62);
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f8fbff;
}

body {
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 36rem;
  isolation: isolate;
  overflow: hidden;
  background: #f8fbff;
}

.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #f8fbff;
}

.parallax-layer {
  --layer-x: 0px;
  --layer-y: 0px;
  position: absolute;
  inset: -4%;
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--layer-x), var(--layer-y), 0);
  transform-origin: center;
  transition: opacity 720ms var(--ease-out);
  will-change: transform;
}

.parallax-layer.is-visible {
  opacity: 1;
}

.layer-sky {
  transition-duration: 900ms;
}

.parallax-layer img {
  display: block;
  user-select: none;
}

.layer-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.desktop-art {
  display: block;
}

.planet-sprite,
.observatory-sprite,
.platform-sprite,
.spaceplane-sprite,
.mirror-half,
.foliage-corner {
  position: absolute;
  width: auto;
  height: auto;
  object-fit: contain;
}

.planet-sprite {
  top: 4.5%;
  right: 11%;
  width: clamp(10rem, 14vw, 17rem);
  opacity: 0.86;
}

.mirrored-art,
.foliage-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mirror-half {
  bottom: -1%;
  width: calc(50% + 0.5px);
  backface-visibility: hidden;
}

.mirror-half--left {
  left: 0;
}

.mirror-half--right {
  right: 0;
  transform: scaleX(-1);
}

.mountains-art .mirror-half {
  bottom: 21%;
  opacity: 0.82;
}

.clouds-art .mirror-half {
  bottom: -6%;
  opacity: 0.9;
}

.observatory-sprite {
  right: 1.5%;
  bottom: 1%;
  width: min(43%, 52rem);
}

.platform-sprite {
  left: 1%;
  bottom: 1%;
  width: min(35%, 45rem);
}

.spaceplane-sprite {
  top: 13%;
  left: 18%;
  width: min(24%, 29rem);
}

.foliage-corner--primary {
  top: -2%;
  left: -1%;
  width: clamp(16rem, 27vw, 30rem);
}

.foliage-corner--opposite {
  right: -2%;
  bottom: -1%;
  width: clamp(12rem, 21vw, 23rem);
  opacity: 0.76;
  transform: rotate(180deg);
}

.layer-sky {
  z-index: 1;
}

.layer-planet {
  z-index: 2;
}

.layer-mountains {
  z-index: 3;
}

.layer-clouds {
  z-index: 4;
}

.layer-observatory {
  z-index: 5;
}

.layer-platform {
  z-index: 6;
}

.layer-aircraft {
  z-index: 7;
}

.layer-foliage {
  z-index: 8;
}

.scene-veil {
  position: absolute;
  inset: 0;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 46%,
      rgba(248, 252, 255, 0.36) 0,
      rgba(248, 252, 255, 0.12) 23%,
      transparent 52%
    ),
    linear-gradient(180deg, rgba(239, 247, 255, 0.08), transparent 32%);
  transition: opacity 900ms var(--ease-out);
}

.background-ready .scene-veil {
  opacity: 1;
}

.hero-content {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 20;
  width: min(46rem, calc(100vw - 3rem));
  text-align: center;
  transform: translate(-50%, -50%);
  opacity: 1;
  filter: drop-shadow(0 1px 6px rgba(245, 251, 255, 0.84));
  animation: ui-arrive 560ms var(--ease-out) both;
}

.hero-meta,
.hero-content h1 {
  margin: 0;
}

.hero-content h1 {
  margin-top: 0;
}

.hero-name {
  display: flex;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.18em;
  font-family: var(
    --font-handwritten,
    ui-rounded, "PingFang SC", "Microsoft YaHei", cursive, sans-serif
  );
  font-size: clamp(3.25rem, 6vw, 6.25rem);
  font-style: normal;
  font-weight: 600;
  font-kerning: normal;
  font-synthesis: none;
  line-height: 1.05;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgba(245, 248, 255, 0.94);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74),
    0 0.18rem 0.8rem rgba(92, 112, 164, 0.34),
    0 0.75rem 2.2rem rgba(49, 77, 124, 0.2);
  user-select: none;
}

.hero-name__part {
  display: block;
}

.hero-rule {
  display: grid;
  width: min(15rem, 54vw);
  margin: 1.35rem auto 1rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
}

.hero-rule span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 70, 105, 0.34));
}

.hero-rule span:last-child {
  background: linear-gradient(90deg, rgba(35, 70, 105, 0.34), transparent);
}

.hero-rule i {
  width: 0.32rem;
  height: 0.32rem;
  border: 1px solid rgba(35, 70, 105, 0.5);
  transform: rotate(45deg);
}

.hero-meta {
  font-size: clamp(0.56rem, 0.64vw, 0.64rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(36, 70, 105, 0.62);
}

.hero-actions {
  display: flex;
  margin-top: 1.3rem;
  justify-content: center;
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
}

.hero-action {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-width: 9.6rem;
  min-height: 3.1rem;
  padding: 0.82rem 1.35rem;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 0.7rem;
  background: rgba(239, 248, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  color: rgba(20, 52, 84, 0.84);
  -webkit-backdrop-filter: blur(3px) saturate(106%);
  backdrop-filter: blur(3px) saturate(106%);
  text-decoration: none;
  transition:
    transform 260ms var(--ease-out),
    border-color 260ms ease,
    background 280ms ease,
    box-shadow 300ms ease,
    color 300ms ease;
}

.hero-action::before {
  position: absolute;
  top: 0;
  right: 100%;
  left: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(
    90deg,
    #5f9db5,
    #879bd0 48%,
    #d9b9d2 78%,
    transparent
  );
  content: "";
  transition: right 620ms var(--ease-out);
}

.hero-action::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    120deg,
    rgba(103, 165, 182, 0.07),
    rgba(151, 151, 203, 0.065),
    rgba(226, 191, 209, 0.065)
  );
  content: "";
  opacity: 0;
  transition: opacity 360ms ease;
}

.hero-action span {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-align: center;
  text-indent: 0.26em;
}

.hero-action:is(:hover, :focus-visible) {
  border-color: rgba(95, 136, 168, 0.4);
  background: rgba(247, 251, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 0.7rem 1.5rem rgba(51, 91, 126, 0.08),
    0 0 1.4rem rgba(138, 144, 203, 0.08);
  color: rgba(11, 43, 76, 0.96);
  transform: translateY(-2px);
}

.hero-action:is(:hover, :focus-visible)::before {
  right: 0;
}

.hero-action:is(:hover, :focus-visible)::after {
  opacity: 0.78;
}

.hero-action:active {
  transform: translateY(0) scale(0.98);
}

.hero-action:focus-visible {
  outline: 2px solid rgba(41, 91, 137, 0.68);
  outline-offset: 3px;
}

.sensor-control {
  position: absolute;
  left: 50%;
  bottom: calc(max(1.35rem, env(safe-area-inset-bottom)) + 1.65rem);
  z-index: 32;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.sensor-button {
  min-height: 2.65rem;
  padding: 0.72rem 1.05rem;
  border: 1px solid rgba(30, 65, 100, 0.2);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 0.7rem 2rem rgba(36, 67, 100, 0.1);
  backdrop-filter: blur(16px) saturate(120%);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.sensor-button:hover {
  border-color: rgba(30, 65, 100, 0.38);
  background: rgba(248, 252, 255, 0.78);
  transform: translateY(-1px);
}

.sensor-button:focus-visible {
  outline: 2px solid rgba(41, 91, 137, 0.7);
  outline-offset: 3px;
}

.sensor-button__icon {
  display: inline-block;
  width: 0.62rem;
  height: 0.92rem;
  margin-right: 0.55rem;
  border: 1px solid currentColor;
  border-radius: 0.16rem;
  vertical-align: -0.18rem;
}

.filing-record {
  position: absolute;
  right: max(1.75rem, env(safe-area-inset-right));
  bottom: max(1.35rem, env(safe-area-inset-bottom));
  z-index: 22;
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: none;
  color: rgba(239, 247, 255, 0.78);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 8px rgba(12, 31, 52, 0.42);
  white-space: nowrap;
}

.filing-record a {
  color: inherit;
  text-decoration: none;
}

.filing-record a:hover,
.filing-record a:focus-visible {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.filing-record i {
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.58;
}

.noscript-note {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.75rem;
}

@keyframes ui-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 0.5rem));
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-aspect-ratio: 3/4) {
  .hero {
    min-height: 32rem;
  }

  .parallax-layer {
    inset: -3.5%;
  }

  .layer-sky img {
    object-position: 50% center;
    transform: scale(1.08);
  }

  .planet-sprite {
    top: 5%;
    right: -7%;
    width: clamp(8.5rem, 43vw, 13rem);
  }

  .mountains-art .mirror-half {
    bottom: 29%;
    width: 92%;
  }

  .mountains-art .mirror-half--left {
    left: -42%;
  }

  .mountains-art .mirror-half--right {
    right: -42%;
  }

  .clouds-art .mirror-half {
    bottom: -3%;
    width: 100%;
  }

  .clouds-art .mirror-half--left {
    left: -50%;
  }

  .clouds-art .mirror-half--right {
    right: -50%;
  }

  .observatory-sprite {
    right: -43%;
    bottom: 2%;
    width: 120%;
  }

  .platform-sprite {
    left: -42%;
    bottom: 8%;
    width: 108%;
  }

  .spaceplane-sprite {
    top: 13%;
    left: -8%;
    width: 70%;
  }

  .foliage-corner--primary {
    top: -2%;
    left: -22%;
    width: 80%;
  }

  .foliage-corner--opposite {
    right: -24%;
    bottom: -2%;
    width: 70%;
  }

  .hero-content {
    top: 38%;
    width: calc(100vw - 2.25rem);
  }

  .hero-content h1 {
    margin-top: 0;
  }

  .hero-name {
    flex-direction: column;
    align-items: center;
    row-gap: 0;
    font-size: clamp(2.4rem, 12vw, 4rem);
    line-height: 0.86;
    white-space: normal;
  }

  .hero-rule {
    margin-top: 1.05rem;
    margin-bottom: 0.82rem;
  }

  .hero-meta {
    font-size: 0.5rem;
    letter-spacing: 0.16em;
  }

  .hero-actions {
    margin-top: 1.1rem;
    gap: clamp(0.65rem, 3vw, 0.95rem);
  }

  .hero-action {
    min-width: min(8.65rem, 42vw);
    min-height: 2.9rem;
    padding: 0.74rem 0.8rem;
  }

  .hero-action span {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }

  .filing-record {
    right: 50%;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1.25rem);
    justify-content: center;
    gap: 0.35rem 0.5rem;
    font-size: clamp(0.46rem, 2vw, 0.55rem);
    letter-spacing: 0.08em;
    transform: translateX(50%);
  }

  .sensor-control {
    width: max-content;
    max-width: calc(100vw - 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer {
    transform: none !important;
    transition-duration: 1ms;
  }

  .hero-content {
    animation: none;
  }

  .hero-action,
  .hero-action::before,
  .hero-action::after,
  .hero-action span {
    transition-duration: 1ms;
  }
}
