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

html {
  scroll-behavior: smooth;
  
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: #EBEFF5;
  color: #090C0C;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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


@font-face {
  font-family: "Geist Mono";
  src: local("Geist Mono"), local("GeistMono");
}


:root {
  --bg: #EBEFF5;
  --text-primary: #090C0C;
  --text-secondary: #000000;
  --accent: #725CFF;
  --white: #FFFFFF;
  --rainbow: radial-gradient(circle at 100% 0%, #33ADFF 0%, #0A8DFF 15%, #3D4AFF 40%, #281BE0 60%, #6531F5 85%, #9D5CFF 100%);
  --glass-white-12: rgba(255, 255, 255, 0.12);
  --glass-white-30: rgba(255, 255, 255, 0.3);
  --glass-white-50: rgba(255, 255, 255, 0.5);
  --black-6: rgba(0, 0, 0, 0.06);
  --shadow-card: -16px 24px 48px -24px rgba(37, 47, 184, 0.12);
  --shadow-button: 0px 24px 48px -24px rgba(37, 47, 184, 0.12);
  --radius-card: 32px;
  --radius-pill: 9999px;
  --container: 1440px;
  --content: 1024px;
}


.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 208px;
}

.content {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

@media (max-width: 1280px) {
  .container {
    padding: 0 80px;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}


.heading-xl {
  font-size: 64px;
  font-weight: 500;
  line-height: 80px;
  letter-spacing: -0.02em;
}

.heading-lg {
  
  font-size: clamp(28px, 5.6vw, 48px);
  font-weight: 500;
  line-height: 1.4;
}

.heading-md {
  font-size: 40px;
  font-weight: 500;
  line-height: 56px;
}

.heading-sm {
  font-size: 30px;
  font-weight: 500;
  line-height: 42px;
}

.body-lg {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
}

.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.body-sm {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(153deg, #725CFF 0%, #090C0C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 1024px) {
  .heading-xl { font-size: 48px; line-height: 60px; }
  .heading-md { font-size: 32px; line-height: 44px; }
}

@media (max-width: 768px) {
  .heading-xl { font-size: 36px; line-height: 44px; }
  .heading-md { font-size: 24px; line-height: 34px; }
  .heading-sm { font-size: 22px; line-height: 30px; }
  .body-lg { font-size: 16px; line-height: 26px; }
}


.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  max-width: 1024px;
  height: 56px;
  padding: 4px;
  background: var(--glass-white-50);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
}

.nav__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #33ADFF 0%, #3D4AFF 50%, #9D5CFF 100%);
}

.nav__logo-img {
  height: 24px;
  width: auto;
}

.nav__items {
  display: flex;
  align-items: center;
}

.nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.nav__item:hover,
.nav__item.active {
  background: rgba(255, 255, 255, 0.7);
}

.nav__hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

.nav__hamburger svg {
  width: 24px;
  height: 24px;
}

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 16px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.nav__mobile-menu.open {
  display: flex;
}

.nav__mobile-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.nav__mobile-item:hover,
.nav__mobile-item.active {
  background: rgba(114, 92, 255, 0.08);
}


.nav__auth {
  display: flex;
  align-items: center;
  align-self: center;
}

.nav__auth-mobile {
  display: none;
}


.nav__right {
  display: none;
  align-items: center;
  align-self: center;
  gap: 4px;
}


.auth-login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 9999px;
  background: #040620;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-login:hover {
  opacity: 0.88;
}


.auth-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(-45deg, #476AFF 0%, #725CFF 100%);
  color: #FFFFFF;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-avatar:hover {
  opacity: 0.88;
}

.auth-avatar__char {
  font-size: 22px;
  font-weight: 500;
  line-height: 26px;
}


[hidden] {
  display: none !important;
}


.auth-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1001;
  display: none;
  flex-direction: column;
  gap: 16px;
  width: 394px;
  max-width: calc(100vw - 40px);
  padding: 12px;
  background: #FFFFFF;
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(9, 12, 12, 0.12);
}

.auth-popup--open {
  display: flex;
}


.auth-popup--editing > *:not(.auth-edit) {
  visibility: hidden;
}


.auth-edit {
  position: absolute;
  top: -12px;
  right: -12px;
  left: -12px;
  z-index: 2;
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
  background: #FFFFFF;
  border-radius: 32px;
}

.auth-edit--open {
  display: flex;
}

.auth-edit__field {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 12px 4px 12px 12px;
  border: 1px solid #040620;
  border-radius: 16px;
}

.auth-edit__field--error {
  border-color: #FF3333;
}

.auth-edit__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  line-height: 26px;
  color: #090C0C;
}

.auth-edit__input::placeholder {
  color: #707375;
}

.auth-edit__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  line-height: 24px;
  color: #707375;
}

.auth-edit__hint img {
  flex: none;
  width: 24px;
  height: 24px;
}

.auth-edit__error {
  padding: 0 12px;
  font-size: 16px;
  line-height: 20px;
  color: #FF3333;
}

.auth-edit__actions {
  display: flex;
  gap: 16px;
}

.auth-edit__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  cursor: pointer;
}

.auth-edit__btn--cancel {
  background: #F4F5F6;
  color: #090C0C;
}

.auth-edit__btn--cancel:hover {
  background: #ECEDEF;
}

.auth-edit__btn--confirm {
  background: #040620;
  color: #FFFFFF;
}


.auth-edit__btn--confirm:disabled {
  background: rgba(4, 6, 32, 0.4);
  cursor: not-allowed;
}


.auth-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translate(-50%, -8px);
  z-index: 1100;
  padding: 10px 20px;
  border-radius: 9999px;
  background: rgba(4, 6, 32, 0.9);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 20px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.auth-toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.auth-popup__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-avatar--popup {
  flex: none;
  cursor: default;
}

.auth-avatar--popup:hover {
  opacity: 1;
}

.auth-popup__name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding-right: 12px;
}

.auth-popup__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: var(--text-primary, #090C0C);
}


.auth-popup__edit {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.auth-popup__edit img {
  width: 20px;
  height: 20px;
}

.auth-popup__divider {
  height: 1px;
  margin: 0 12px;
  background: #E8E8E8;
}

.auth-popup__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}

.auth-popup__label {
  font-size: 16px;
  line-height: 20px;
  color: #707375;
}


.auth-popup__cert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 12px;
  border-radius: 8px;
  background: #040620;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

.auth-popup__cert img {
  width: 16px;
  height: 16px;
}


.auth-popup__cert--done {
  background: linear-gradient(90deg, #EBF0FD 0%, #B3BEFA 44%, #D6DBFB 100%);
  color: #09090B;
  cursor: pointer;
}

.auth-popup__logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 20px;
  background: #F4F5F6;
  color: #707375;
  font-size: 16px;
  line-height: 20px;
  cursor: pointer;
}

.auth-popup__logout:hover {
  background: #ECEDEF;
}

.auth-popup__logout img {
  width: 24px;
  height: 24px;
}


.download-qr-wrap {
  position: relative;
  display: inline-flex;
}

.download-qr-wrap:hover {
  z-index: 200;
}

.download-qr-popup {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 100;
  text-align: center;
  min-width: 160px;
}

.download-qr-wrap:hover .download-qr-popup {
  display: block;
}

.download-qr-popup img {
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
}

.download-qr-popup span {
  font-size: 12px;
  color: var(--text-primary);
  opacity: 0.7;
}


.magic-rings-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 0;
}

.magic-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(114, 92, 255, 0.15);
  animation: ring-expand 3s ease-out infinite;
}

.magic-ring:nth-child(1) { width: 100px; height: 100px; animation-delay: 0s; }
.magic-ring:nth-child(2) { width: 100px; height: 100px; animation-delay: 0.6s; }
.magic-ring:nth-child(3) { width: 100px; height: 100px; animation-delay: 1.2s; }
.magic-ring:nth-child(4) { width: 100px; height: 100px; animation-delay: 1.8s; }
.magic-ring:nth-child(5) { width: 100px; height: 100px; animation-delay: 2.4s; }

@keyframes ring-expand {
  0% { width: 80px; height: 80px; opacity: 0.6; border-color: rgba(114, 92, 255, 0.4); }
  100% { width: 400px; height: 400px; opacity: 0; border-color: rgba(114, 92, 255, 0); }
}

@media (max-width: 768px) {
  .nav {
    max-width: calc(100% - 40px);
    height: 48px;
  }
  .nav__brand {
    padding: 0 12px;
    font-size: 16px;
  }
  .nav__logo {
    width: 24px;
    height: 24px;
  }
  .nav__items {
    display: none;
  }
  
  .nav__auth {
    display: none;
  }
  .nav__right {
    display: flex;
  }
  .nav__auth-mobile {
    display: flex;
    align-items: center;
  }
  .nav__auth-mobile .auth-login {
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }
  .nav__auth-mobile .auth-avatar {
    width: 36px;
    height: 36px;
  }
  .nav__auth-mobile .auth-avatar__char {
    font-size: 16px;
    line-height: 20px;
  }
  .nav__hamburger {
    display: flex;
  }
  .magic-rings-container {
    width: 280px;
    height: 280px;
  }
  @keyframes ring-expand {
    0% { width: 60px; height: 60px; opacity: 0.6; }
    100% { width: 280px; height: 280px; opacity: 0; }
  }
}


.footer {
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 28px;
  border-top: 1px solid var(--black-6);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__left,
.footer__right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 12px;
  line-height: 16px;
  opacity: 0.8;
}

.footer__link {
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.footer__link:hover {
  opacity: 0.7;
}

.footer__dot {
  width: 1px;
  height: 12px;
  background: #DCE0DF;
}

@media (max-width: 1024px) {
  .footer {
    padding: 32px 20px;
  }
  
  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .footer__left,
  .footer__right {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 4px;
  }
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--rainbow);
  color: #F6F8F8;
  box-shadow: var(--shadow-button);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text-primary);
}

.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--rainbow);
  color: var(--white);
}

.icon-arrow {
  width: 20px;
  height: 20px;
}


.glass {
  background: var(--glass-white-30);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


.aurora-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.7;
}

.aurora-bg__blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

.aurora-bg__blob--1 {
  width: 700px;
  height: 600px;
  top: -10%;
  left: -5%;
  background: radial-gradient(ellipse at 40% 50%, rgba(114, 92, 255, 0.65) 0%, rgba(175, 71, 255, 0.3) 50%, transparent 80%);
  animation: aurora-breathe-1 10s ease-in-out infinite alternate;
}

.aurora-bg__blob--2 {
  width: 600px;
  height: 500px;
  top: 10%;
  right: -8%;
  background: radial-gradient(ellipse at 60% 40%, rgba(51, 173, 255, 0.55) 0%, rgba(91, 76, 255, 0.25) 55%, transparent 85%);
  animation: aurora-breathe-2 12s ease-in-out infinite alternate;
}

.aurora-bg__blob--3 {
  width: 500px;
  height: 450px;
  bottom: -5%;
  left: 20%;
  background: radial-gradient(ellipse at 50% 60%, rgba(157, 92, 255, 0.5) 0%, rgba(51, 173, 255, 0.2) 50%, transparent 80%);
  animation: aurora-breathe-3 14s ease-in-out infinite alternate;
}

.aurora-bg__blob--4 {
  width: 400px;
  height: 380px;
  top: 30%;
  left: 40%;
  background: radial-gradient(ellipse at 50% 50%, rgba(175, 71, 255, 0.4) 0%, rgba(114, 92, 255, 0.15) 60%, transparent 90%);
  animation: aurora-breathe-4 11s ease-in-out infinite alternate;
}

.aurora-bg__blob--5 {
  width: 550px;
  height: 480px;
  bottom: 10%;
  right: 15%;
  background: radial-gradient(ellipse at 45% 55%, rgba(91, 76, 255, 0.45) 0%, rgba(157, 92, 255, 0.2) 50%, transparent 85%);
  animation: aurora-breathe-5 13s ease-in-out infinite alternate;
}

@keyframes aurora-breathe-1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(40px, 30px) scale(1.15); opacity: 0.85; }
}

@keyframes aurora-breathe-2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(-35px, 25px) scale(1.12); opacity: 0.75; }
}

@keyframes aurora-breathe-3 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  100% { transform: translate(30px, -20px) scale(1.1); opacity: 0.7; }
}

@keyframes aurora-breathe-4 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  100% { transform: translate(-25px, -30px) scale(1.18); opacity: 0.6; }
}

@keyframes aurora-breathe-5 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  100% { transform: translate(20px, 35px) scale(1.08); opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-bg__blob {
    animation: none !important;
    opacity: 0.5;
  }
}
