:root {
  --bg: #e9e9e6;
  --ink: #111111;
  --muted: #8a8a8a;
  --line: #ddddd8;
  --soft: #f0f0ee;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  /* Match Swinghook data mono; logo uses plain Inter (not display script) */
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background-color: #e8e8e4;
  background-image:
    radial-gradient(1000px 520px at 8% -12%, #ffffff 0%, transparent 58%),
    radial-gradient(900px 480px at 100% 0%, #dcdcd6 0%, transparent 52%),
    linear-gradient(180deg, #ecece8 0%, #e4e4df 55%, #dfdfda 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.top {
  height: auto;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  gap: 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.logo {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 18px;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.nav a {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  letter-spacing: 0;
}
.nav a:hover { color: var(--ink); }
.nav a.on {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.chip {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}
.ghost {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}
.ghost:hover { background: var(--soft); }

.stage {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 56px;
  gap: 14px;
}

.card {
  width: min(640px, 100%);
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
  padding: 26px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.tab {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
}
.tab.muted {
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  margin-left: auto;
  padding-right: 0;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field {
  background: var(--soft);
  border-radius: 16px;
  padding: 18px 18px 16px;
  min-height: 128px;
}
.label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.value {
  margin: 0;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  word-break: break-word;
}
.sub {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.stage.stack {
  justify-content: center;
  gap: 16px;
}

.phase {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
  color: var(--muted);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phase b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.phase.on {
  border-color: #111;
  color: #111;
  background: #fafafa;
}

.value-card .hero-value {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}
.value-card .hero-sub {
  margin: 10px 0 4px;
  font-size: 14px;
  color: var(--muted);
  font-family: var(--mono);
}

.soon-card {
  text-align: center;
  padding-bottom: 36px;
}
.soon-title {
  margin: 28px 0 12px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bar {
  margin-top: 14px;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: #111;
  transition: width 0.35s ease;
}
.bar-cap {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.meta-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.meta-grid div {
  background: var(--soft);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.meta-grid span { color: var(--muted); }
.meta-grid strong { font-weight: 600; font-family: var(--mono); }

.addrs {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}
.addrs > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.addrs span { color: var(--muted); flex-shrink: 0; }
.addrs a, .addrs code {
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
  word-break: break-all;
  color: var(--ink);
}
.addrs a:hover { text-decoration: underline; }

.status {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.doc-card { width: min(640px, 100%); }
.doc-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.doc-block:last-child { border-bottom: 0; padding-bottom: 4px; }
.doc-block h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.doc-block h2 {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.doc-block p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.doc-block .soft {
  color: var(--muted);
  font-size: 13px;
}
.plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 16px;
}
.plain b {
  display: inline-block;
  min-width: 28px;
  font-family: var(--mono);
  font-size: 13px;
}

/* Doc sidebar layout */
.docs-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  gap: 28px;
}
.docs-side {
  position: sticky;
  top: 88px;
  align-self: start;
}
.docs-side-label {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.docs-toc {
  display: grid;
  gap: 4px;
}
.docs-toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
}
.docs-toc a:hover {
  color: var(--ink);
  background: var(--soft);
}
.docs-toc a.on {
  color: var(--ink);
  background: var(--soft);
  font-weight: 600;
}
.docs-main {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 32px 36px;
  min-height: 420px;
}
.docs-panel { display: none; }
.docs-panel.on { display: block; }
.docs-panel h1 {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: 28px;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.2;
}
.docs-panel .lead {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}
.docs-panel p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  max-width: 42rem;
}
.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.docs-tile {
  background: var(--soft);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
}
.docs-tile span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.docs-tile strong {
  font-size: 16px;
  font-weight: 600;
}
.docs-tile em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
}
.epoch-list {
  display: grid;
  gap: 10px;
}
.epoch-list > div {
  display: grid;
  grid-template-columns: 88px 90px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 14px;
}
.epoch-list b { font-size: 14px; }
.epoch-list span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.epoch-list p {
  margin: 0;
  font-size: 14px;
  color: #333;
}
.docs-bullets {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
  color: #444;
  font-size: 15px;
}
.contract-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 14px;
  margin-bottom: 10px;
}
.contract-box span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contract-box a {
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
  text-align: right;
}
.contract-box a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .docs-shell {
    grid-template-columns: 1fr;
    padding: 18px 14px 40px;
  }
  .docs-side {
    position: static;
  }
  .docs-toc {
    grid-template-columns: repeat(2, 1fr);
  }
  .docs-main { padding: 22px 18px; }
  .docs-grid { grid-template-columns: 1fr; }
  .epoch-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 720px) {
  .top {
    grid-template-columns: auto 1fr auto;
    padding: 0 14px;
    gap: 10px;
  }
  .nav { gap: 16px; }
  .value { font-size: 22px; }
  .field { min-height: 92px; }
}
