/* ===== 变量与基础 ===== */
:root {
  --bg: #0a0b0f;
  --bg-elevated: #12141c;
  --surface: #161922;
  --border: rgba(255, 255, 255, 0.06);
  --text: #e8eaef;
  --text-muted: #8b8f9a;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --accent-glow: rgba(0, 212, 170, 0.4);
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 背景层次 */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }

/* ===== 头部 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(10, 11, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
}

.logo-icon {
  color: var(--accent);
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #00e6b8;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-arrow { margin-left: 4px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 48px) 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner { position: relative; }

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.stat-num {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
  margin-right: 4px;
}

/* Hero 手机 mockup */
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
}

.phone-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.phone-screen {
  background: var(--bg-elevated);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9/19;
}

.mock-feed { padding: 20px; }
.mock-post {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.mock-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--purple-dim));
  flex-shrink: 0;
}
.mock-line {
  height: 10px;
  border-radius: 4px;
  background: var(--border);
  margin-bottom: 8px;
}
.mock-line:last-child { margin-bottom: 0; }
.w80 { width: 80%; }
.w60 { width: 60%; }
.w90 { width: 90%; }
.w70 { width: 70%; }
.w75 { width: 75%; }
.w50 { width: 50%; }

/* ===== 通用区块 ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(0, 212, 170, 0.25);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== How it works ===== */
.how { background: linear-gradient(180deg, transparent, var(--bg-elevated) 30%, transparent); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 32px 24px;
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Token ===== */
.token-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.token-card {
  background: linear-gradient(145deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.token-card:hover {
  border-color: var(--purple-dim);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.08);
}

.token-card h4 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--text);
}

.token-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.accordion { border-top: 1px solid var(--border); }

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.accordion-trigger:hover { color: var(--accent); }

.accordion-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.25s;
}

.accordion-item[data-open] .accordion-trigger .accordion-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.accordion-panel p {
  margin: 0 0 20px;
  padding-right: 32px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta-box {
  background: linear-gradient(135deg, var(--accent-dim), var(--purple-dim));
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.cta-box p {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== 动效 data-aos ===== */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .token-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: flex; }
  .header.nav-open .nav-links,
  .header.nav-open .nav-actions {
    display: flex;
  }
  .nav {
    flex-wrap: wrap;
  }
  .nav-open .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-open .nav-actions {
    position: absolute;
    top: calc(var(--header-h) + 200px);
    left: 24px;
    right: 24px;
    justify-content: center;
  }
  .hero-stats { flex-direction: column; gap: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; }
  .cta-box { padding: 36px 24px; }
  .footer-top { flex-direction: column; gap: 24px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
