* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  color: #f7fbff;
  background: #070b14;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  overflow: hidden;
}

.splash {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 64px 8vw;
  overflow: hidden;
  isolation: isolate;
}

.splash-video,
.splash-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splash-video {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 1800ms ease;
  z-index: -4;
}

.splash-video.is-active {
  opacity: 1;
  transform: scale(1);
}

.splash-fallback {
  z-index: -5;
  background: #070b14 url("../pictures/welcome-poster.jpg") center / cover no-repeat;
}

.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.9), rgba(3, 8, 18, 0.38) 54%, rgba(3, 8, 18, 0.78)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 110px);
}

.splash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%, rgba(0, 0, 0, 0.62));
}

.splash-content {
  width: min(820px, 100%);
}

.splash-kicker {
  margin: 0 0 18px;
  color: #5ef2c2;
  font-size: 15px;
  font-weight: 700;
}

.splash h1 {
  margin: 0;
  font-size: 62px;
  line-height: 1.08;
  font-weight: 800;
}

.splash-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #d8e4f0;
  font-size: 18px;
  line-height: 1.9;
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.splash-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.splash-button.primary {
  border-color: rgba(94, 242, 194, 0.72);
  color: #04110d;
  background: #5ef2c2;
}

.splash-meter {
  position: fixed;
  left: 8vw;
  right: 8vw;
  bottom: 34px;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.splash-meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #5ef2c2, #f6c65b, #5ca8ff);
}

@media (max-width: 720px) {
  .splash {
    padding: 48px 22px;
  }

  .splash h1 {
    font-size: 38px;
  }

  .splash-copy {
    font-size: 16px;
  }

  .splash-button {
    width: 100%;
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  .splash {
    align-items: start;
    padding-top: 32px;
    overflow-y: auto;
  }

  .splash h1 {
    font-size: 34px;
  }

  .splash-copy {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
  }

  .splash-actions {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-video,
  .splash-meter span {
    transition: none;
  }
}
