:root {
  --hero-bg-image: url("./Image_1700712910868.png");
  --hero-overlay:
    linear-gradient(180deg, rgba(7, 15, 38, 0.24), rgba(8, 15, 34, 0.42)),
    radial-gradient(circle at 18% 20%, rgba(130, 207, 255, 0.16), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(114, 129, 255, 0.14), transparent 22%);
  --hero-text: rgba(255, 255, 255, 0.96);
  --hero-muted: rgba(255, 255, 255, 0.78);
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-hover: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "HarmonyOS Sans SC",
    "SF Pro Display",
    "PingFang SC",
    "Segoe UI",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  background: #09193f;
  color: var(--hero-text);
}

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

#page-header {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

#page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
}

.pl-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation:
    blur-to-clear 2s cubic-bezier(0.62, 0.21, 0.25, 1) 0s 1 backwards,
    scale-in 1.5s cubic-bezier(0.62, 0.21, 0.25, 1) 0s 1 both;
}

.pl-img,
.hero-grid {
  position: absolute;
  inset: 0;
}

.pl-img {
  opacity: 0;
  transition: opacity 1s;
  background-image: var(--hero-bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.pl-visible {
  opacity: 1;
}

.pl-blur {
  filter: blur(50px);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1));
}

#site-info {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: min(calc(100% - 32px), 1000px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-kicker {
  margin-bottom: 16px;
  color: var(--hero-muted);
  letter-spacing: 0.28em;
  font-size: 0.86rem;
}

#site-title {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0);
  animation: show-text 1.5s linear 1s 1 both;
}

#site-title::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  height: calc(100% - 22px);
  width: 110%;
  border-radius: 14px;
  animation:
    color-change 2s cubic-bezier(0.62, 0.21, 0.25, 1) 1.4s 1 both,
    swipe-box 2s cubic-bezier(0.62, 0.21, 0.25, 1) 1.4s 1 both;
}

#site-subtitle {
  position: relative;
  margin: 22px auto 0;
  min-height: 52px;
  font-size: clamp(1.1rem, 2.5vw, 1.85rem);
  color: rgba(255, 255, 255, 0);
  animation: show-text 1.5s linear 1s 1 both;
}

#site-subtitle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  width: 0;
  height: 100%;
  border-radius: 12px;
  animation:
    color-change 2s cubic-bezier(0.62, 0.21, 0.25, 1) 1.4s 1 both,
    swipe-box-2 2s cubic-bezier(0.62, 0.21, 0.25, 1) 1.4s 1 both;
}

.typed-cursor {
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-left: 0.12em;
  vertical-align: -0.1em;
  background: rgba(255, 255, 255, 0.9);
  animation: typed-blink 0.7s infinite;
}

.hero-description {
  width: min(90%, 42rem);
  margin: 18px auto 0;
  color: var(--hero-muted);
  line-height: 1.9;
  font-size: 1rem;
}

.hero-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.glass-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  color: white;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition:
    transform 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.glass-link:hover {
  transform: translateY(-3px);
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

@keyframes blur-to-clear {
  0% {
    filter: blur(50px);
    opacity: 1;
  }

  100% {
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes scale-in {
  0% {
    transform: scale(1.5) translateZ(0);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateZ(0);
    opacity: 1;
  }
}

@keyframes color-change {
  0% {
    background: white;
  }

  100% {
    background: #2f68ff;
  }
}

@keyframes swipe-box {
  0% {
    left: 0;
    width: 0;
  }

  50% {
    left: 0;
    width: 100%;
  }

  100% {
    left: 100%;
    width: 0;
  }
}

@keyframes swipe-box-2 {
  0% {
    left: 0;
    width: 0;
  }

  50% {
    left: 0;
    width: 72%;
  }

  100% {
    left: 0;
    width: 0;
  }
}

@keyframes show-text {
  0% {
    color: rgba(255, 255, 255, 0);
    text-shadow: transparent 2px 3px 10px;
  }

  81% {
    color: rgba(255, 255, 255, 0);
  }

  100% {
    color: white;
  }
}

@keyframes typed-blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 860px) {
  #site-info {
    width: min(calc(100% - 24px), 1000px);
  }

  #site-title {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  #site-title::after {
    top: 11px;
  }
}

@media (max-width: 560px) {
  #site-subtitle {
    min-height: 66px;
  }

  .hero-description {
    width: 100%;
  }

  .hero-links {
    flex-direction: column;
    align-items: stretch;
  }

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