:root {
  --bg: #000000;
  --surface: #111214;
  --line: #24262a;
  --text: #ececee;
  --muted: #989aa1;
  --accent: #6cc7f0;
  --accent-ink: #000000;
  --radius: 10px;
  --max: 960px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
/* logo.png has a lot of empty space around the mark — show only the mark at small size */
.brand-mark {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  flex: none;
}
.brand-logo {
  position: absolute;
  width: 100px;
  height: 100px;
  max-width: none;
  left: -29px;
  top: -19px;
}
.brand-name { font-weight: 700; letter-spacing: 0.12em; font-size: 14px; }

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Hero */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero-title {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 14ch;
}
.hero-sub {
  margin-top: 20px;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
}

.btn {
  display: inline-block;
  margin-top: 32px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius);
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.notice {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}
.notice-title {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--accent);
}
.notice-text {
  margin-top: 10px;
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 60ch;
}

/* Sections */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* How it works */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card-label {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-text { color: var(--muted); }

/* Index table */
#index { scroll-margin-top: 80px; }
.caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 14px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.ledger th, .ledger td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.ledger th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}
.ledger tbody tr:last-child td { border-bottom: 0; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--muted);
}

/* Token */
.token-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 18px;
}

/* Roadmap */
.roadmap { list-style: none; display: grid; gap: 12px; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}
.step.is-done .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.step-name { font-weight: 700; font-size: 18px; }
.step-text { color: var(--muted); margin-top: 2px; }
.status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}
.status-done { color: var(--accent); border-color: var(--accent); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq details p { color: var(--muted); padding: 0 0 18px; max-width: 64ch; }

/* Footer */
.footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }

/* Mobile */
@media (max-width: 760px) {
  .hero { padding: 48px 0; }
  .btn { display: block; text-align: center; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }

  /* Table becomes stacked cards */
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 16px;
    margin-bottom: 10px;
  }
  .ledger td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .ledger tr td:last-child { border-bottom: 0; }
  .ledger td::before {
    content: attr(data-label);
    color: var(--muted);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13px;
  }
}
