:root {
  --bg: #0a0e13;
  --bg-soft: #0e141c;
  --card: #111927;
  --card-border: #1e2a3a;
  --text: #e9eff6;
  --muted: #8fa0b5;
  --accent: #2dd4bf;
  --accent-ink: #052e28;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap.narrow { max-width: 720px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 19, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 5px;
  border: 2.5px solid var(--accent-ink);
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) translate(1px, -1px);
}
.nav { display: none; }
.lang-switch {
  margin-left: auto;
  display: flex;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  padding: 7px 14px;
  cursor: pointer;
}
.lang-switch button.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}
.lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 30px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn:hover { filter: brightness(1.08); }
.hero-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); }
.section h2 {
  font-size: 26px;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}
.section .lede { margin: 0 0 36px; }
#community .wrap, #developers .wrap { text-align: center; }
#community .lede, #developers .lede { margin-left: auto; margin-right: auto; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin: 14px 0 10px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

/* ---------- whitepaper ---------- */
.wp-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.token-line { color: var(--text) !important; font-weight: 700; margin-bottom: 16px !important; }
.alloc { list-style: none; margin: 0 0 16px; padding: 0; }
.alloc li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--card-border);
  font-size: 14px;
}
.alloc li:last-child { border-bottom: none; }
.alloc b { color: var(--accent); font-variant-numeric: tabular-nums; }
.fine { font-size: 12.5px; color: var(--muted); }
.wp-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.wp-download .btn { margin-top: 10px; }

/* ---------- roadmap ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 4px;
}
.phase-now { border-color: var(--accent); }

/* ---------- community ---------- */
.x-logo { width: 18px; height: 18px; flex: none; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 32px 0 40px;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-inner p { margin: 0; }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  .nav {
    display: flex;
    gap: 22px;
    margin-left: 12px;
  }
  .nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
  }
  .nav a:hover { color: var(--text); }
  .hero { padding: 110px 0 80px; }
  .hero h1 { font-size: 46px; }
  .lede { font-size: 17px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .wp-grid { grid-template-columns: 1.2fr 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: baseline; }
}

@media (min-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
}
