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

:root {
  --bg: #000;
  --bg-surface: #0A0A0A;
  --bg-elevated: #141414;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);

  --text: #F5F5F7;
  --text-2: rgba(245, 245, 247, 0.72);
  --text-3: rgba(245, 245, 247, 0.52);
  --text-4: rgba(245, 245, 247, 0.38);

  --accent: #A78BFA;
  --accent-2: #FBBF24;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'HarmonyOS Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --max-w: 1120px;
  --max-w-narrow: 760px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ========== Mobile banner ========== */
.mobile-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(167, 139, 250, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  color: #0A0E1A;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.mobile-banner-inner {
  max-width: 100%;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}
.mobile-banner-text { flex: 1; line-height: 1.4; }
.mobile-banner-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid rgba(10, 14, 26, 0.35);
  border-radius: 6px;
  background: rgba(10, 14, 26, 0.1);
  color: #0A0E1A;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mobile-banner-btn:active { background: rgba(10, 14, 26, 0.2); }

/* 手机端整体顶部偏移，避开 banner */
body.is-mobile .nav { top: 44px; }
body.is-mobile .hero { padding-top: 160px; }

/* 平台提示小字 */
.hero-platform-note {
  font-size: 13px;
  color: #FBBF24;
  margin-top: 10px;
  padding: 8px 16px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 20px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-w-narrow); }

/* ========== Reveal Animation ========== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.brand-icon { width: 26px; height: 26px; border-radius: 6px; }
.brand-name { letter-spacing: -0.02em; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--text-2);
}
.nav-links a {
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(167, 139, 250, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 90%, rgba(167, 139, 250, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: bgShift 20s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 3%) scale(1.06); }
}

.hero-inner {
  max-width: 900px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  text-align: center;
}
.hero-line {
  display: block;
  text-align: center;
}

.hero-gradient {
  background: linear-gradient(110deg, #A78BFA 0%, #F5F5F7 40%, #FBBF24 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-sub {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-2);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 48px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

/* Buttons */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: #F5F5F7;
  color: #000;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}
.btn-primary .btn-arrow {
  transition: transform 0.3s var(--ease);
  display: inline-block;
}
.btn-primary:hover .btn-arrow {
  transform: translateY(3px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost .btn-arrow-right {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn-ghost:hover .btn-arrow-right {
  transform: translateX(4px);
}

.hero-meta {
  font-size: 13px;
  color: var(--text-4);
  letter-spacing: 0;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-4), transparent);
  animation: scrollDown 2.4s ease-in-out infinite;
}
@keyframes scrollDown {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ========== Sections common ========== */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text-2);
  font-weight: 400;
}

/* ========== Showcase (Product visual) ========== */
.showcase {
  padding: 140px 24px;
  background: var(--bg-surface);
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.showcase-title {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
}
.showcase-sub {
  font-size: 20px;
  color: var(--text-2);
  line-height: 1.5;
}

/* Mock window visualization */
.mock-window {
  background: #0F1422;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5),
              0 0 80px rgba(167, 139, 250, 0.15);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.mock-window:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.mock-header {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 6px;
}
.mock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3A4563;
}
.mock-dot:first-child { background: #EF4444; }
.mock-dot:nth-child(2) { background: #F59E0B; }
.mock-dot:nth-child(3) { background: #22C55E; }

.mock-body { padding: 20px; }
.mock-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mock-loser {
  padding: 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0.04));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mock-loser::before {
  content: '';
  position: absolute;
  top: 0; left: 12px; right: 12px; height: 2px;
  background: linear-gradient(90deg, transparent, #EF4444, transparent);
}
.mock-loser-name {
  font-size: 17px;
  font-weight: 700;
  color: #EF4444;
  margin-bottom: 4px;
}
.mock-loser-sub {
  font-size: 12px;
  color: #FCA5A5;
}
.mock-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  background: #151B2E;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.mock-team.lose {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, rgba(239,68,68,0.05), #151B2E);
}
.mock-team-name { font-weight: 600; }
.mock-team-score {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mock-team.lose .mock-team-score { color: #EF4444; }

/* ========== Features ========== */
.features {
  padding: 140px 24px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.feat-card {
  padding: 40px 32px;
  background: var(--bg);
  transition: background 0.3s var(--ease);
  min-height: 200px;
}
.feat-card:hover { background: var(--bg-elevated); }
.feat-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.8;
}
.feat-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feat-card p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ========== How-to ========== */
.howto {
  padding: 140px 24px;
  background: var(--bg-surface);
}
.steps {
  list-style: none;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.step {
  display: flex;
  gap: 32px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.step-num {
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 32px;
  font-weight: 300;
  color: var(--text-4);
  letter-spacing: -0.02em;
  min-width: 64px;
  line-height: 1;
  padding-top: 4px;
}
.step-content h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step-content p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}
.step-note {
  margin-top: 8px;
  font-size: 13px !important;
  color: var(--text-3) !important;
}

/* ========== FAQ ========== */
.faq-section {
  padding: 140px 24px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item {
  background: var(--bg);
  transition: background 0.3s var(--ease);
}
.faq-item:hover { background: var(--bg-elevated); }
.faq-item[open] { background: var(--bg-elevated); }

.faq-item summary {
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
}
.faq-toggle::before {
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-toggle {
  color: var(--accent);
}
.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item p {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 680px;
}

/* ========== Closing CTA ========== */
.close-cta {
  padding: 160px 24px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(167, 139, 250, 0.15) 0%, transparent 70%),
    var(--bg);
  text-align: center;
}
.close-inner h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 40px;
}

/* ========== Footer ========== */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
}
.footer-icon { width: 22px; height: 22px; border-radius: 5px; }
.footer-links {
  display: flex;
  gap: 28px;
  color: var(--text-2);
}
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  color: var(--text-4);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 48px; }
  .mock-window { transform: none; max-width: 440px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-links { gap: 16px; font-size: 12px; }
  .nav-links a:nth-child(1), .nav-links a:nth-child(2) { display: none; }

  .hero { padding: 100px 20px 40px; min-height: auto; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta a { width: 100%; justify-content: center; }
  .hero-scroll { display: none; }

  .showcase, .features, .howto, .faq-section { padding: 80px 20px; }
  .close-cta { padding: 100px 20px; }

  .section-header { margin-bottom: 48px; }
  .step { flex-direction: column; gap: 12px; padding: 24px; }
  .step-num { font-size: 24px; min-width: auto; }

  .footer-inner { flex-direction: column; text-align: center; }
}
