:root {
  --brand: #FF004D;
  --brand-2: #E84118;
  --bg-deep: #0D0D1A;
  --bg-2: #1A1A2E;
  --bg-3: #2D2D3F;
  --accent: #00D4FF;
  --accent-2: #7B61FF;
  --text: #FFFFFF;
  --text-2: #E8E8E8;
  --text-muted: #9AA0B5;
  --safe: #00D68F;
  --news: #FFB800;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.mono { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; }

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

.brand-red { color: var(--brand); }

.section { padding: 88px 0; }
.section-title { font-size: 34px; font-weight: 800; color: var(--text); margin-bottom: 14px; letter-spacing: -0.5px; }
.section-sub { color: var(--text-muted); font-size: 16px; max-width: 720px; margin-bottom: 44px; }
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.tag-official { background: rgba(255, 0, 77, 0.15); color: var(--brand); }
.tag-update { background: rgba(0, 212, 255, 0.12); color: var(--accent); }
.tag-eco { background: rgba(0, 214, 143, 0.12); color: var(--safe); }
.tag-news { background: rgba(255, 184, 0, 0.12); color: var(--news); }
.tag-warn { background: rgba(255, 0, 77, 0.15); color: var(--brand); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 0, 77, 0.35);
}
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 12px 36px rgba(255, 0, 77, 0.5); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: scale(1.02); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 38px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .3s ease, box-shadow .3s ease;
}
.header.scrolled {
  background: rgba(13, 13, 26, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.logo span small { display: block; font-size: 10px; color: var(--text-muted); font-weight: 500; letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 8px 15px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.lang-switch:hover { background: rgba(255,255,255,0.06); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 0, 77, 0.14), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(0, 212, 255, 0.12), transparent 45%),
    radial-gradient(circle at 60% 30%, rgba(123, 97, 255, 0.10), transparent 40%);
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.3);
  color: var(--safe);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 { font-size: 52px; line-height: 1.18; font-weight: 900; color: var(--text); letter-spacing: -1px; margin-bottom: 20px; }
.hero p.lead { font-size: 18px; color: var(--text-muted); margin-bottom: 26px; max-width: 540px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-trust span {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  color: var(--text-2);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.simulator {
  position: relative;
  width: 320px;
  border-radius: 32px;
  background: linear-gradient(160deg, #23233a, #131322);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  padding: 24px 20px 20px;
}
.simulator .sim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.simulator .sim-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text); }
.simulator .sim-brand img { width: 22px; height: 22px; border-radius: 6px; }
.simulator .sim-net { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(0,212,255,0.12); color: var(--accent); font-weight: 600; }
.sim-balance {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 18px;
  padding: 20px 18px;
  margin-bottom: 16px;
  color: #fff;
}
.sim-balance .label { font-size: 12px; opacity: 0.85; }
.sim-balance .amount { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.sim-balance .usd { font-size: 13px; opacity: 0.9; }
.sim-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.sim-actions .act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  font-size: 11px;
  color: var(--text-2);
  cursor: pointer;
  transition: background .2s ease;
}
.sim-actions .act:hover { background: rgba(255,255,255,0.1); }
.sim-actions .act .ic { font-size: 20px; }
.sim-token { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.04); margin-bottom: 8px; }
.sim-token .tk { display: flex; align-items: center; gap: 10px; }
.sim-token .tk .avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; }
.sim-token .tk .name { font-size: 14px; font-weight: 600; color: var(--text); }
.sim-token .tk .sym { font-size: 11px; color: var(--text-muted); }
.sim-token .val { text-align: right; }
.sim-token .val .n { font-weight: 700; color: var(--text); font-size: 14px; }
.sim-token .val .u { font-size: 11px; color: var(--text-muted); }

.sim-float {
  position: absolute;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(26, 26, 46, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  font-size: 13px;
  color: var(--text);
  z-index: 3;
}
.sim-float.f1 { top: 8%; right: -6%; }
.sim-float.f2 { bottom: 12%; left: -8%; }
.sim-float .f-ic { color: var(--safe); font-weight: 800; }

.marquee { border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.marquee-item .num { font-size: 24px; font-weight: 800; color: var(--text); }
.marquee-item .lbl { color: var(--text-muted); font-size: 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.metric-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: transform .3s ease, border-color .3s ease;
}
.metric-card:hover { transform: translateY(-6px); border-color: rgba(0, 212, 255, 0.4); }
.metric-card .num { font-size: 42px; font-weight: 900; color: var(--text); letter-spacing: -1px; }
.metric-card .num small { font-size: 22px; }
.metric-card .lbl { color: var(--text-muted); margin-top: 8px; font-size: 15px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-grid.reverse { direction: rtl; }
.feature-grid.reverse > * { direction: ltr; }
.feature-grid .f-text h3 { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.feature-grid .f-text p { color: var(--text-muted); margin-bottom: 16px; }
.feature-highlight { margin-top: 8px; padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(0,212,255,0.06); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--text-2); }
.feature-grid .f-visual {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon { font-size: 60px; }

.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.security-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .3s ease;
}
.security-card:hover { transform: translateY(-6px); }
.security-card .ic { font-size: 34px; margin-bottom: 14px; }
.security-card h4 { color: var(--text); font-size: 18px; margin-bottom: 10px; }
.security-card p { color: var(--text-muted); font-size: 14px; }

.warning-box {
  margin-top: 40px;
  border: 1px solid rgba(255, 0, 77, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 0, 77, 0.06);
  padding: 28px;
}
.warning-box h4 { color: var(--brand); font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.warning-box ul { padding-left: 4px; }
.warning-box li { color: var(--text-2); font-size: 14px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.warning-box li:last-child { border-bottom: none; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.news-card .meta { display: flex; align-items: center; justify-content: space-between; }
.news-card .date { font-size: 13px; color: var(--text-muted); }
.news-card h4 { color: var(--text); font-size: 16px; line-height: 1.5; }
.news-card p { color: var(--text-muted); font-size: 14px; flex: 1; }

.partner-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.partner-chip {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all .25s ease;
}
.partner-chip:hover { color: var(--text); border-color: var(--accent); }

.footer {
  background: #08080f;
  border-top: 1px solid var(--card-border);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer h5 { color: var(--text); font-size: 15px; margin-bottom: 16px; }
.footer .f-desc { color: var(--text-muted); font-size: 14px; margin-top: 12px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--text-muted); font-size: 14px; transition: color .2s ease; }
.footer ul li a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-bottom .legal a { color: var(--text-muted); margin-left: 18px; }
.footer-bottom .legal a:hover { color: var(--text); }
.friend-links { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--card-border); }
#my-friend-links { color: var(--text-muted); font-size: 13px; }
#my-friend-links a { color: var(--text-muted); margin-right: 14px; }
#my-friend-links a:hover { color: var(--accent); }

.page-hero {
  padding: 150px 0 60px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 0, 77, 0.14), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.12), transparent 45%);
  text-align: center;
}
.page-hero h1 { font-size: 44px; font-weight: 900; color: var(--text); margin-bottom: 16px; letter-spacing: -1px; }
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 680px; margin: 0 auto; }

.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.download-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: transform .3s ease, border-color .3s ease;
}
.download-card:hover { transform: translateY(-8px); border-color: rgba(255, 0, 77, 0.4); }
.download-card .platform { font-size: 46px; margin-bottom: 16px; }
.download-card h3 { color: var(--text); font-size: 20px; margin-bottom: 8px; }
.download-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; min-height: 44px; }
.download-card .ver { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

.qa-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 18px;
}
.qa-item .q { color: var(--text); font-size: 18px; font-weight: 700; margin-bottom: 14px; display: flex; gap: 10px; }
.qa-item .q .cat { flex-shrink: 0; }
.qa-steps { padding-left: 2px; }
.qa-steps li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 14px;
}
.qa-steps li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--card-border); }
.timeline-item { position: relative; margin-bottom: 28px; padding-left: 14px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 0, 77, 0.2);
}
.timeline-item .y { color: var(--brand); font-weight: 800; font-size: 18px; }
.timeline-item h4 { color: var(--text); font-size: 17px; margin: 6px 0; }
.timeline-item p { color: var(--text-muted); font-size: 14px; }

.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sitemap-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; }
.sitemap-card h4 { color: var(--text); font-size: 16px; margin-bottom: 12px; }
.sitemap-card a { display: block; color: var(--text-muted); font-size: 14px; padding: 6px 0; }
.sitemap-card a:hover { color: var(--accent); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--card-border); }
th { color: var(--text); background: rgba(255,255,255,0.04); font-weight: 700; }
td { color: var(--text-muted); }

.code-block {
  background: #0a0a14;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
  overflow-x: auto;
  font-size: 13px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  margin: 16px 0;
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-grid, .feature-grid.reverse { grid-template-columns: 1fr; }
  .feature-grid.reverse { direction: ltr; }
  .metrics, .news-grid, .security-grid, .download-grid, .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: rgba(13, 13, 26, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 30px;
    gap: 4px;
    transition: right .3s ease;
    backdrop-filter: blur(16px);
  }
  .nav.open { right: 0; }
  .nav a { width: 100%; font-size: 17px; padding: 14px 12px; }
  .burger { display: flex; }
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .metrics, .news-grid, .security-grid, .download-grid, .sitemap-grid, .footer-grid { grid-template-columns: 1fr; }
  .simulator { width: 270px; }
  .sim-float.f1 { right: -2%; }
  .sim-float.f2 { left: -2%; }
}
