/* Index ($INDEX). index.fun */

:root {
  --bg: #000;
  --panel: #0A0A0A;
  --fg: #FFF;
  --fg-2: #8A8A8A;
  --fg-3: #4A4A4A;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --pos: #3DD68C;
  --neg: #F0536E;
  --sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1120px;
  --gutter: 32px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mono, .num, .label { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.dim { color: var(--fg-2); }
.dim-3 { color: var(--fg-3); }

.label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 400;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 28px var(--gutter);
}
.nav-logo img { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 44px; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-2); transition: color .15s;
}
.nav-links a:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px var(--gutter) 120px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1040px; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-logo { width: 120px; height: 120px; margin-bottom: 56px; }
.thesis {
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.thesis span { color: var(--fg-2); }
.hero-sub {
  margin-top: 32px; max-width: 520px;
  color: var(--fg-2); font-size: 16px;
}

.theme-form {
  margin-top: 64px; width: 100%; max-width: 520px;
  display: flex; align-items: stretch;
  border: 1px solid var(--line-2); border-radius: 4px;
  background: rgba(0, 0, 0, .7);
  transition: border-color .15s;
}
.theme-form:focus-within { border-color: rgba(255, 255, 255, .5); }
.theme-form input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--fg); font-family: var(--sans); font-size: 17px;
  padding: 16px 18px;
}
.theme-form input::placeholder { color: var(--fg-3); }
.theme-form button {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 0 20px; border-left: 1px solid var(--line-2); color: var(--fg);
  white-space: nowrap;
}
.theme-form button:hover { background: #fff; color: #000; }

.chips { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-2);
  border: 1px solid var(--line-2); border-radius: 4px;
  padding: 7px 12px; background: rgba(0, 0, 0, .7);
  transition: color .15s, border-color .15s;
}
.chip:hover, .chip[aria-pressed="true"] { color: var(--fg); border-color: rgba(255, 255, 255, .5); }

/* ---------- Sections ---------- */
.section { padding: 180px 0 0; }
.section:last-of-type { padding-bottom: 180px; }
.section-head { margin-bottom: 72px; }
.section-head .label { margin-bottom: 20px; }
.h2, .index-title {
  font-size: clamp(30px, 4.4vw, 48px); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.08;
}
.h2 span { color: var(--fg-2); }
.index-reason { margin-top: 16px; color: var(--fg-2); max-width: 640px; }

/* ---------- Index ---------- */
.index-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 24px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .label { margin-bottom: 10px; }
.stat-val { font-size: 22px; letter-spacing: -0.01em; min-height: 32px; display: flex; align-items: center; }
.link-btn { font-size: 13px; letter-spacing: .06em; color: var(--fg); text-transform: uppercase; }
.link-btn:hover { color: var(--fg-2); }

.chart-block { margin-top: 64px; }
.chart-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.chart-status { color: var(--fg-3); text-align: right; }
.chart-wrap { position: relative; height: 340px; }
#chart { width: 100%; height: 100%; display: block; }
.chart-skel {
  position: absolute; inset: 0 56px 28px 0;
  display: flex; flex-direction: column; justify-content: space-around;
}
.chart-skel span { display: block; height: 1px; background: var(--line); }
.chart-skel[hidden] { display: none; }
.chart-tip {
  position: absolute; top: 0; pointer-events: none;
  font-size: 11px; color: var(--fg); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 6px 8px; white-space: nowrap;
}

.table-wrap { margin-top: 64px; overflow-x: auto; }
.members { width: 100%; border-collapse: collapse; font-size: 14px; }
.members th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 400; text-align: left;
  padding: 0 12px 14px 0; border-bottom: 1px solid var(--line);
}
.members td {
  padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line);
  vertical-align: top; white-space: nowrap;
}
.members .r { text-align: right; }
.members td.r, .members td.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tkr { font-family: var(--mono); font-weight: 500; }
.why { display: block; margin-top: 4px; color: var(--fg-3); font-size: 12px; white-space: normal; max-width: 280px; }
.mint { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--fg-2); }
.mint a:hover { color: var(--fg); }
.copy {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 6px;
}
.copy:hover { color: var(--fg); }
.skel { display: inline-block; width: 56px; height: 1px; background: var(--line-2); vertical-align: middle; }
.footnote { margin-top: 20px; font-size: 11px; color: var(--fg-3); letter-spacing: .04em; }
.err { color: var(--fg-2); font-family: var(--mono); font-size: 12px; }

.nomatch { border-top: 1px solid var(--line); padding-top: 32px; }
.nomatch p { color: var(--fg-2); margin-bottom: 20px; }
.nomatch .chips { justify-content: flex-start; margin-top: 0; }

/* ---------- Treasury ---------- */
.treasury-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.kv { padding: 24px 0; min-width: 0; }
.kv + .kv { padding-left: 24px; border-left: 1px solid var(--line); }
.kv .label { margin-bottom: 10px; }
.kv p.mono { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#treasury-body { margin-top: 40px; }
.retry { margin-left: 12px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- How ---------- */
.beats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.beats li { padding: 32px 32px 0 0; }
.beats li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.beat-n { font-size: 12px; color: var(--fg-3); letter-spacing: .14em; margin-bottom: 40px; }
.beats h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
.beats p:last-child { color: var(--fg-2); }
.disclose { margin-top: 96px; max-width: 640px; font-size: 13px; color: var(--fg-3); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 20px; }
.footer-inner p { flex: 1; font-size: 11px; color: var(--fg-3); letter-spacing: .06em; }
.footer-inner a { font-size: 11px; letter-spacing: .14em; color: var(--fg-2); }
.footer-inner a:hover { color: var(--fg); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 12px);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: #fff; color: #000; border-radius: 4px; padding: 8px 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .nav-links { gap: 22px; }
  .section { padding-top: 140px; }
  .index-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .treasury-grid { grid-template-columns: 1fr; }
  .kv + .kv { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .beats { grid-template-columns: 1fr; }
  .beats li, .beats li + li { padding: 32px 0; border-left: 0; }
  .beats li + li { border-top: 1px solid var(--line); }
  .beat-n { margin-bottom: 20px; }
  .col-name, .col-w, .col-liq { display: none; }
  .chart-wrap { height: 260px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { flex-basis: 100%; order: 3; }
}
@media (max-width: 520px) {
  .nav-links a:nth-child(2) { display: none; }
  .hero-logo { width: 88px; height: 88px; margin-bottom: 40px; }
  .col-mint { display: none; }
  .chart-head { flex-direction: column; gap: 6px; }
  .chart-status { text-align: left; }
}
