/* B1T Core — b1tcore.org · single lightweight stylesheet */
:root {
  --bg: #0a0a0f;
  --surface: #13131c;
  --surface-2: #191926;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ececf1;
  --muted: #9a9aa8;
  --accent: #f7931a;
  --accent-2: #ff6b00;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Ubuntu, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.5px;
}
.brand img { width: 34px; height: 34px; }
.brand:hover { color: var(--text); }
.brand span em { color: var(--accent); font-style: normal; }

.nav { margin-left: auto; display: flex; align-items: center; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav > ul > li > a,
.nav > ul > li > .top-link {
  display: block;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
}
.nav > ul > li > a:hover,
.nav > ul > li > .top-link:hover {
  color: var(--text);
  background: var(--surface);
}
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 8px;
  display: none;
}
.dropdown-panel ul {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.dropdown-panel a {
  display: block;
  padding: 9px 14px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.dropdown-panel a:hover { color: var(--text); background: var(--surface); }
.nav li:hover > .dropdown-panel,
.nav li:focus-within > .dropdown-panel { display: block; }
.caret::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 12px 24px 24px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li > a,
  .nav > ul > li > .top-link { padding: 12px 8px; border-radius: 0; }
  .group-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 16px 8px 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
  }
  .dropdown-panel {
    display: block;
    position: static;
    transform: none;
    padding: 0 0 8px;
  }
  .dropdown-panel ul {
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
    min-width: 0;
  }
  .dropdown-panel a { padding-left: 20px; }
}
@media (min-width: 921px) {
  .group-label { display: none; }
  .mobile-only { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 110px 0 90px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 50% -60px, rgba(247, 147, 26, 0.18), transparent 70%),
    radial-gradient(400px 260px at 80% 110%, rgba(255, 107, 0, 0.08), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-logo { width: 96px; height: 96px; margin: 0 auto 28px; filter: drop-shadow(0 8px 30px rgba(247, 147, 26, 0.35)); }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -1px;
  animation: rise 0.7s ease-out both;
}
.hero h1 .accent { color: var(--accent); }
.hero p.tagline {
  margin-top: 14px;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  color: var(--muted);
  font-weight: 300;
  animation: rise 0.7s ease-out 0.12s both;
}
.hero p.sub {
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--muted);
  animation: rise 0.7s ease-out 0.22s both;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: rise 0.7s ease-out 0.32s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14100a;
  box-shadow: 0 6px 22px rgba(247, 147, 26, 0.35);
}
.btn-primary:hover { color: #14100a; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(247, 147, 26, 0.45); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { color: var(--accent); border-color: rgba(247, 147, 26, 0.4); transform: translateY(-2px); }

/* ---------- Stats ---------- */
.stats { padding: 10px 0 30px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.stat-card:hover { border-color: rgba(247, 147, 26, 0.45); transform: translateY(-3px); }
.stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat-value { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-sub { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.supply-bar {
  height: 5px;
  background: rgba(247, 147, 26, 0.12);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}
.supply-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
  transition: width 1s ease-out;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr; max-width: 320px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.5px; }
.section-head h2 .accent { color: var(--accent); }
.section-head p { color: var(--muted); margin-top: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.25s, transform 0.25s;
}
.section.alt .card { background: var(--surface-2); }
.card:hover { border-color: rgba(247, 147, 26, 0.4); transform: translateY(-3px); }
.card .icon { font-size: 1.7rem; margin-bottom: 12px; display: block; }
.card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card a.link-more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.9rem; }

/* wallet cards centered content */
.card.center { text-align: center; }
.card .os-icon { font-size: 2rem; display: block; margin-bottom: 10px; }

/* ---------- Tables (nicknames) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 480px; }
th, td { padding: 13px 18px; text-align: left; }
thead th {
  background: var(--surface-2);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
tbody tr + tr td { border-top: 1px solid var(--border); }
tbody tr:hover td { background: rgba(247, 147, 26, 0.04); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Article pages ---------- */
.page-hero { padding: 70px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.5px; }
.page-hero h1 .accent { color: var(--accent); }
.page-hero p { color: var(--muted); margin-top: 10px; }
.article { max-width: 800px; margin: 0 auto; padding-bottom: 80px; }
.article section { margin-bottom: 34px; }
.article h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.article p, .article ul, .article ol { color: var(--muted); margin-bottom: 12px; }
.article strong { color: var(--text); }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 6px; }
.article .note {
  background: rgba(247, 147, 26, 0.08);
  border: 1px solid rgba(247, 147, 26, 0.25);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.93rem;
}
.article code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.88em;
  color: var(--accent);
}
.article .cta-box {
  margin-top: 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 24px;
}
.article .cta-box p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 54px 0 34px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand img { width: 52px; height: 52px; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; font-style: italic; }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 24px; }
