:root {
  --page-bg: #030827;
  --primary: #dc95ff;
  --text: #fff;
  --text-muted: #a0a3b5;
  --button-text: #1c1d2b;
  --content-width: 1200px;
  --page-gutter: 80px;
  --font-sans:
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  min-width: 320px;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--button-text);
  background: var(--text);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--content-width), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}

.eyebrow {
  color: var(--primary);
  font-size: 16px;
  line-height: 1.5;
}

.section-title {
  margin-top: 12px;
  font-size: clamp(32px, 2.5vw, 48px);
  font-weight: 500;
  line-height: 1.25;
}

.section-description {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.7;
  text-align: center;
}

.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1360px, calc(100% - var(--page-gutter) * 2));
  height: 70px;
  margin-inline: auto;
  padding-inline: 0;
  border-radius: 35px;
  transition:
    padding 0.3s ease,
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  padding-inline: 30px;
  background: linear-gradient(270deg, #ffffff26 0%, #ffffff14 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  color: var(--text);
  font-size: 24px;
  text-decoration: none;
}

.logo img {
  width: 50px;
  height: 50px;
  margin-right: 12px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  color: var(--text);
  font-size: 18px;
  text-decoration: none;
}

a.nav-link {
  transition: color 0.2s ease;
}

.nav-link-disabled {
  color: #a0a3b599;
  cursor: not-allowed;
}

.nav-header,
.menu-toggle,
.menu-close {
  display: none;
}

.hero {
  position: relative;
  min-height: 640px;
  height: 100vh;
  height: 100svh;
  scroll-margin-top: 0;
  overflow: visible;
}

.hero-background,
.footer-visual {
  display: block;
}

.hero-background {
  position: absolute;
  inset: 0;
}

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

.hero-content {
  position: absolute;
  top: 50%;
  left: 14%;
  z-index: 10;
  transform: translateY(-50%);
}

.hero-title {
  margin-top: 13px;
  font-size: clamp(48px, 3.45vw, 66px);
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  margin-top: 13px;
  font-size: clamp(30px, 2.1vw, 40px);
  line-height: 1.4;
}

.hero-description {
  margin-top: 13px;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.5;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 194px;
  min-height: 56px;
  padding: 12px 24px;
  color: var(--button-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  background: linear-gradient(
    90deg,
    #dc95ff 0%,
    #b6adff 24%,
    #66ffeb 50%,
    #b6adff 76%,
    #dc95ff 100%
  );
  background-size: 200% 100%;
  border: 0;
  border-radius: 28px;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-position 0.3s ease;
}

.download-button:active {
  transform: scale(0.97);
}

.download-action {
  position: relative;
  width: max-content;
  margin-top: 40px;
  z-index: 20;
}

.download-popup {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 5;
  width: 220px;
  padding: 10px;
  color: var(--button-text);
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px #00000040;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, -10px) scale(0.96);
  transform-origin: top center;
  transition:
    opacity 0.24s ease,
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 0.24s;
}
.download-popup p {
  margin-top: 3px;
  font-size: 16px;
}

.download-action.is-open .download-popup {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition-delay: 0s;
}

.download-popup img {
  width: 200px;
  height: 200px;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 4px;
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 14%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.scroll-hint img {
  width: 32px;
  height: 42px;
}

.intro {
  margin-top: clamp(64px, 5.2vw, 100px);
  text-align: center;
}

.about-section {
  margin-top: clamp(88px, 6.5vw, 124px);
}

.about-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.about-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 153px;
  padding: 72px 12px 20px;
  background:
    radial-gradient(86% 71% at 53% 100%, #9e69e639 0%, #9e69e600 100%),
    #15183880;
  border: 1px solid #3a3a67;
  border-radius: 12px;
}

.about-icon {
  position: absolute;
  top: -44px;
  width: 96px;
  height: 96px;
}

.about-item h3 {
  font-size: 20px;
  line-height: 1.5;
}

.about-item p {
  margin-top: 6px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.reveal-pending .about-icon {
  opacity: 0;
  transform: translateY(-30px);
}

.reveal-pending h3,
.reveal-pending p {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-pending .about-icon,
.reveal-pending h3,
.reveal-pending p {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal-pending h3 {
  transition-delay: 0.15s;
}

.reveal-pending p {
  transition-delay: 0.25s;
}

.reveal-pending.is-visible .about-icon,
.reveal-pending.is-visible h3,
.reveal-pending.is-visible p {
  opacity: 1;
  transform: translateY(0);
}

.download {
  position: relative;
  margin-top: clamp(72px, 5.2vw, 100px);
  scroll-margin-top: 110px;
}

.download-visual {
  display: block;
  overflow: hidden;
  border-radius: 2px;
}

.download-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 2400 / 912;
  object-fit: cover;
}

.download-content {
  position: absolute;
  top: 50%;
  left: 70px;
  z-index: 1;
  transform: translateY(-50%);
}

.download-description {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 20px;
}

.download-content .download-action {
  margin-top: 30px;
}

.footer-visual {
  width: 100%;
  margin-top: -97px;
  overflow: hidden;
}

.footer-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3840 / 1232;
  object-fit: cover;
}

.site-footer {
  margin-top: 70px;
  margin-bottom: 48px;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 36px;
}

.contact-list li {
  display: flex;
  align-items: center;
  font-size: 16px;
}

.contact-list img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.contact-list a,
.copyright a {
  color: var(--text);
  line-height: 1.6;
  text-decoration: none;
}

.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin-top: 16px;
  color: #8b8b9d;
  font-size: 12px;
  text-align: center;
}

.copyright a {
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .download-button:hover {
    background-position-x: 75%;
    transform: scale(1.05);
  }

  a.nav-link:hover,
  .contact-list a:hover,
  .copyright a:hover {
    color: var(--primary);
  }
}

@media (min-width: 1601px) and (min-height: 900px) {
  .hero-content {
    left: max(14%, calc((100% - 1360px) / 2));
  }

  .scroll-hint {
    left: max(14%, calc((100% - 1360px) / 2));
  }
}

@media (max-width: 1360px) and (min-width: 901px) {
  :root {
    --page-gutter: 50px;
  }

  .site-header {
    width: calc(100% - 100px);
  }

  .hero-content,
  .scroll-hint {
    left: 8%;
  }

  .download-content {
    left: clamp(32px, 5vw, 70px);
  }
}

@media (max-width: 1140px) and (min-width: 901px) {
  .download-content .section-title {
    font-size: clamp(28px, 3.5vw, 40px);
  }

  .download-description {
    font-size: 16px;
  }

  .download-content .download-action {
    margin-top: 18px;
  }

  .download-content .download-button {
    min-height: 48px;
    font-size: 16px;
  }

  .about-list {
    gap: 15px;
  }

  .about-item {
    padding-inline: 8px;
  }

  .about-item p {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
