/* ===== CSS Variables ===== */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
}

/* ===== Font Face ===== */
@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ===== Global Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Background Video ===== */
.bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* ===== Page Layout ===== */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  overflow: hidden;
}

/* ===== Header ===== */
.header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  max-width: 720px;
  width: 100%;
  z-index: 10;
}

/* Logo */
.logo {
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.04);
}

.logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

/* Nav Pill */
.nav-pill {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  height: clamp(44px, 5.2vw, 48px);
  max-width: 430px;
  flex: 1;
  padding: 4px 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.active {
  opacity: 1;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: var(--nav-text);
  border-radius: 50%;
  box-shadow: -5px 0 0 var(--nav-text), 5px 0 0 var(--nav-text);
}

/* Sign In Button */
.sign-in {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(16px, 2vw, 24px);
  background: var(--pill-dark);
  color: var(--sign-in-text);
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  cursor: pointer;
  box-shadow: var(--nav-shadow);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.sign-in:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

/* ===== Hero Section ===== */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
  z-index: 1;
}

/* Trust Row */
.trust-row {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
  --trust-size: clamp(36px, 4.5vw, 42px);
}

.avatar {
  position: relative;
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  transition: transform 0.35s ease;
  z-index: 1;
}

.avatar:not(:first-child) {
  margin-left: calc(var(--trust-size) * -0.42);
}

.avatar:nth-child(2) {
  z-index: 2;
}

.avatar:nth-child(3) {
  z-index: 4;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}

.avatar-inner i {
  font-size: calc(var(--trust-size) * 0.34);
  color: #111;
}

.avatar:nth-child(1):hover {
  transform: translateY(-2px);
}

.avatar:nth-child(2):hover {
  transform: translateY(-4px);
}

.avatar:nth-child(3):hover {
  transform: translateY(-2px);
}

/* Trust Pill */
.trust-pill {
  display: flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: clamp(12px, 1.5vw, 16px);
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  z-index: 3;
}

.trust-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  color: var(--trust-text);
  white-space: nowrap;
}

/* Headline */
.headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 6.2vw, 80px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: clamp(12px, 2vh, 20px);
}

.headline span {
  display: block;
}

/* Subhead */
.subhead {
  max-width: min(500px, 92%);
  font-family: var(--font-sans);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  color: #d0d0d0;
  opacity: 0.8;
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: clamp(20px, 3vh, 32px);
}

/* CTA Button */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  background: #fff;
  color: #000;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 22px rgba(255,255,255,0.32), 0 0 44px rgba(255,255,255,0.12);
  transition: all 0.3s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 0 32px rgba(255,255,255,0.4), 0 0 60px rgba(255,255,255,0.15);
}

/* ===== Stats Footer ===== */
.stats {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
  max-width: 920px;
  width: 100%;
  z-index: 1;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  color: var(--text);
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--text);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.2vw, 12.5px);
  color: var(--muted);
  margin-top: 2px;
}

/* ===== Animations ===== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes headlineFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  70% {
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Animation Classes */
.header {
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.headline.anim span:nth-child(1) {
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.12s;
}

.headline.anim span:nth-child(2) {
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.3s;
}

.headline.anim span {
  opacity: 0;
  transform: translateY(14px);
}

.cta.anim {
  animation: revealPulse 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0.4s);
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pill-dark);
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow: var(--nav-shadow);
  z-index: 60;
}

.mobile-menu-btn span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
  top: calc(50% - 6.5px);
}

.mobile-menu-btn span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.mobile-menu-btn span:nth-child(3) {
  top: calc(50% + 6.5px);
}

.mobile-menu-btn.active {
  background: #fff;
}

.mobile-menu-btn.active span {
  background: #000;
}

.mobile-menu-btn.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: calc(100% - 32px);
  max-width: 400px;
  background: #fff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 55;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav.active {
  transform: translateX(-50%) translateY(80px);
}

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--nav-text);
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease;
  position: relative;
}

.mobile-nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-nav-link.active {
  font-weight: 600;
}

.mobile-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: var(--nav-text);
  border-radius: 50%;
  box-shadow: -5px 0 0 var(--nav-text), 5px 0 0 var(--nav-text);
}

.mobile-sign-in {
  display: block;
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  background: var(--pill-dark);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-sign-in:hover {
  background: #323234;
}

/* Mobile Nav Stagger */
.mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-sign-in { transition-delay: 0.25s; }

/* ===== Mobile Responsive ===== */
@media (max-width: 720px) {
  .nav-pill,
  .sign-in {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header {
    justify-content: space-between;
    padding: 0 4px;
  }

  .trust-row {
    --trust-size: 34px;
  }

  .trust-text {
    font-size: 12px;
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 420px) {
  .headline {
    font-size: clamp(24px, 10vw, 36px);
    letter-spacing: -0.09em;
    line-height: 1.04;
  }

  .trust-row {
    --trust-size: 34px;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .headline span {
    opacity: 1 !important;
    transform: none !important;
  }

  .anim {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Body menu open state */
body.menu-open {
  overflow: hidden;
}

/* ===== ICP备案样式 ===== */
.icp-footer {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.icp-footer a {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.icp-footer a:hover {
  color: rgba(255, 255, 255, 0.7);
}