:root {
  color-scheme: dark;
  --text: #f8fbff;
  --muted: #b9c7df;
  --cyan: #5ce8ff;
  --pink: #ff92d1;
  --line: rgba(205, 222, 255, 0.24);
  background: #020611;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #020611;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #020611 url("/assets/galaxy-milky-way.webp") center center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 51%, rgba(45, 119, 255, 0.05), rgba(1, 5, 18, 0.42) 34%, transparent 56%),
    linear-gradient(90deg, rgba(1, 6, 20, 0.91) 0%, rgba(2, 8, 25, 0.78) 37%, rgba(2, 7, 22, 0.34) 68%, rgba(1, 5, 16, 0.52) 100%),
    linear-gradient(180deg, rgba(2, 7, 21, 0.28), rgba(1, 5, 16, 0.53));
}

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

a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 5px;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 72px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.65);
}

.brand img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(93, 225, 255, 0.26);
}

.old-entry {
  padding: 10px 0;
  color: #c6d2e8;
  font-size: 13px;
  transition: color 160ms ease, transform 160ms ease;
}

.old-entry:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
  align-items: center;
  gap: clamp(50px, 7vw, 110px);
  padding: clamp(36px, 6vh, 66px) 0 clamp(48px, 7vh, 80px);
}

.hero-copy {
  max-width: 570px;
}

.hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(53px, 5.7vw, 82px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.72);
}

.hero-copy p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding: 17px 25px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(105deg, var(--cyan), #a99aff 55%, var(--pink));
  color: #06132f;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 18px 54px rgba(76, 190, 255, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 62px rgba(76, 190, 255, 0.36);
}

.hero-art {
  position: relative;
  min-height: clamp(380px, 55vh, 500px);
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: min(480px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 174, 255, 0.26), rgba(91, 85, 255, 0.1) 42%, transparent 70%);
  filter: blur(18px);
}

.avatar-frame {
  position: relative;
  width: min(370px, 82%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  isolation: isolate;
}

.avatar-frame::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 210deg, rgba(90, 235, 255, 0.8), rgba(118, 109, 255, 0.26), rgba(255, 141, 210, 0.72), rgba(90, 235, 255, 0.8));
  filter: blur(9px);
  opacity: 0.8;
}

.avatar-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  object-fit: cover;
  filter: contrast(1.045) saturate(1.04);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
}

.footer {
  min-height: 82px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b7c5de;
  font-size: 13px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.footer a:hover {
  color: #ffffff;
}

@media (max-width: 820px) {
  body {
    background-attachment: scroll;
    background-position: 56% center;
  }

  body::before {
    background: linear-gradient(180deg, rgba(1, 6, 20, 0.78) 0%, rgba(2, 8, 25, 0.66) 48%, rgba(1, 5, 16, 0.72) 100%);
  }

  .page {
    width: min(calc(100% - 32px), 620px);
  }

  .topbar {
    min-height: 76px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 54px 0 64px;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 13vw, 58px);
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-art {
    min-height: 350px;
  }

  .avatar-frame {
    width: min(320px, 82vw);
  }

  .footer {
    min-height: 70px;
  }

  .old-entry {
    font-size: 12px;
  }
}

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