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

:root {
  --bg:        #0d1117;
  --surface:   #161b22;
  --surface2:  #21262d;
  --border:    #30363d;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --accent:    #58a6ff;
  --cyan:      #39d0f5;
  --green:     #3fb950;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
#main { flex: 1; }

/* ── Header ── */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.hdr-inner {
  display: flex; align-items: center; gap: 14px;
  height: 56px;
}
.logo-link { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.logo-img  { width: 32px; height: 32px; }
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.logo-text .accent { color: var(--cyan); }

.nav { display: flex; gap: 2px; margin-left: 22px; flex: 1; }
.nav-link {
  color: var(--muted); text-decoration: none;
  padding: 5px 11px; border-radius: 6px;
  font-size: 0.875rem; transition: color .12s, background .12s;
}
.nav-link:hover { color: var(--text); background: var(--surface2); }

.badge-testnet {
  font-size: 0.72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--yellow, #d29922); background: rgba(210,153,34,.12);
  border: 1px solid rgba(210,153,34,.35);
  padding: 3px 9px; border-radius: 20px; flex-shrink: 0;
}

/* ── Hero ── */
.hero {
  background: radial-gradient(ellipse 900px 400px at 50% -10%, rgba(57,208,245,.16), transparent),
              linear-gradient(135deg, #1c3a8a 0%, #0d1117 90%);
  border-bottom: 1px solid var(--border);
  padding: 76px 0 56px;
  text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero-sub { color: rgba(255,255,255,.72); font-size: 1.05rem; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: rgba(255,255,255,.45); font-size: 0.82rem; }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 9px;
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
  transition: opacity .12s, transform .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #0d1117; }
.btn-primary:hover { opacity: .88; }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }

/* ── Stats ── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 13px; margin: 30px 0;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px;
}
.stat-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; font-family: var(--mono); }

/* ── Sections ── */
.section { padding: 44px 0; }
.section-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 22px; }

/* ── Ecosystem / feature cards ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eco-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; text-decoration: none; color: var(--text);
  transition: border-color .12s, transform .12s;
  display: flex; flex-direction: column;
}
.eco-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.eco-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.eco-icon-scan   { background: rgba(88,166,255,.14); color: var(--accent); }
.eco-icon-swap   { background: rgba(63,185,80,.14);  color: var(--green); }
.eco-icon-casino { background: rgba(210,153,34,.14); color: #d29922; }
.eco-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.eco-card p  { color: var(--muted); font-size: 0.88rem; flex: 1; margin-bottom: 14px; }
.eco-link { color: var(--accent); font-size: 0.84rem; font-weight: 600; }

.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--cyan); }
.feature p { color: var(--muted); font-size: 0.88rem; }

/* ── Roadmap ── */
.roadmap { list-style: none; }
.roadmap li {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.roadmap li:last-child { border-bottom: none; }
.rm-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface2); border: 2px solid var(--border);
  margin-top: 4px; flex-shrink: 0;
}
.roadmap li.done .rm-dot { background: var(--green); border-color: var(--green); }
.roadmap li b { font-size: 0.94rem; }
.roadmap li p { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 22px 0; margin-top: 10px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.footer-logo { width: 22px; height: 22px; }
.footer-links { display: flex; gap: 18px; }
.footer-soon { color: var(--muted); font-size: 0.82rem; opacity: .5; cursor: default; }
.footer-meta { color: var(--muted); font-size: 0.78rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hdr-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .nav { margin-left: 0; order: 3; width: 100%; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 1.7rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
