/* ============================================================
   Eth Labs Fund — black & white minimalist theme
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --ink: #0a0a0a;
  --ink-2: #2e2e2e;
  --muted: #6a6a6a;
  --faint: #9a9a9a;
  --line: #e7e7e7;
  --line-strong: #d2d2d2;

  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1120px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 18px 44px -24px rgba(0, 0, 0, .35);

  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.035em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid var(--ink);
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; background: none; color: var(--ink); font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2b2b2b; border-color: #2b2b2b; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-soft); transform: translateY(-2px); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; border-width: 1.5px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo { border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.brand-ticker { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line-strong); color: var(--ink);
  transition: background .15s ease, transform .15s ease;
}
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.icon-btn:hover { background: var(--bg-soft); transform: translateY(-2px); }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 84px 0 64px; display: flex; flex-direction: column; align-items: center; }
.hero-mark { width: 92px; height: 92px; margin-bottom: 26px; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .16em; color: var(--muted); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(44px, 7.5vw, 86px); }
.ticker-chip {
  display: inline-block; font-size: .26em; vertical-align: middle; transform: translateY(-.5em);
  padding: 5px 13px; border-radius: 999px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); font-weight: 700; letter-spacing: .02em;
}
.tagline { font-weight: 700; font-size: clamp(19px, 2.6vw, 26px); margin: 18px 0 0; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 18px; max-width: 600px; margin: 18px auto 0; }
.lead strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 16px; }
.hero-note { font-size: 13.5px; color: var(--faint); }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
}
.stat-card { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat-card:last-child { border-right: none; }
.stat-label { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-value { display: block; font-weight: 800; font-size: 32px; margin: 10px 0 5px; letter-spacing: -0.03em; }
.stat-value--gold { color: var(--ink); }
.stat-sub { display: block; font-size: 13px; color: var(--faint); }

/* ---------- sections ---------- */
.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { color: var(--muted); }
.section-head h2 { font-size: clamp(30px, 4.6vw, 46px); }
.section-sub { color: var(--muted); font-size: 17.5px; margin-top: 16px; }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-icon {
  width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 20px;
  border-radius: 13px; background: var(--ink); color: #fff;
}
.card-icon svg { width: 24px; height: 24px; }
.card-kicker { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.card--tight { padding: 26px; }
.card--tight h3 { margin: 8px 0; font-size: 18px; }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- tokenomics ---------- */
.tokenomics { display: grid; gap: 28px; }
.token-split { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.token-bar { display: flex; height: 48px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line-strong); }
.token-seg { position: relative; display: grid; place-items: center; min-width: 0; }
.token-seg--donate { background: var(--ink); min-width: 66px; }
.token-seg--holders { background: #ededee; flex: 1; }
.token-seg-tip { font-size: 12.5px; font-weight: 600; white-space: nowrap; padding: 0 10px; }
.token-seg--donate .token-seg-tip { color: #fff; }
.token-seg--holders .token-seg-tip { color: var(--muted); }
.token-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.dot--gold { background: var(--ink); }
.dot--muted { background: #ededee; border: 1px solid var(--line-strong); }
.token-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- addresses ---------- */
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.address-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.address-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.address-tag { font-weight: 700; font-size: 15px; }
.badge { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.badge--cyan { color: var(--ink); background: #fff; border: 1px solid var(--line-strong); }
.badge--gold { color: #fff; background: var(--ink); border: 1px solid var(--ink); }
.address-value {
  display: block; font-family: var(--mono); font-size: 13.5px; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; margin-bottom: 14px; word-break: break-all; line-height: 1.5;
}
.address-ens { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.address-ens strong { color: var(--ink); font-weight: 700; }
.mono-ens { font-family: var(--mono); color: var(--ink); font-size: .92em; }
.address-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- donations panel ---------- */
.donations-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.donations-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.dt-left { display: flex; align-items: center; gap: 10px; }
.dt-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 0 rgba(10,10,10,.4); animation: pulse 2s infinite; }
.live-dot.is-error { background: #fff; border: 1.5px solid var(--ink); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(10,10,10,.35);} 70% { box-shadow: 0 0 0 8px rgba(10,10,10,0);} 100% { box-shadow: 0 0 0 0 rgba(10,10,10,0);} }
.dt-status { font-size: 14px; color: var(--muted); }
.totals-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.total-chip { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; }

.table-wrap { overflow-x: auto; }
.tx-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.tx-table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--faint); font-weight: 600; padding: 14px 22px; border-bottom: 1px solid var(--line);
}
.tx-table td { padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.tx-table tbody tr { transition: background .15s ease; }
.tx-table tbody tr:hover { background: var(--bg-soft); }
.tx-table tbody tr:last-child td { border-bottom: none; }
.num { text-align: right; }
.cell-when { color: var(--ink); }
.cell-when small { display: block; color: var(--faint); font-size: 12px; }
.asset-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.asset-ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--ink); color: #fff; }
.asset-ic--eth, .asset-ic--elf { background: var(--ink); color: #fff; }
.cell-amount { font-family: var(--mono); font-weight: 600; text-align: right; white-space: nowrap; }
.cell-amount span { color: var(--faint); font-weight: 500; }
.tx-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13.5px; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.tx-link:hover { border-color: var(--ink); }
.tx-link svg { width: 13px; height: 13px; }

.state-row td { padding: 0 !important; border: none !important; }
.state-box { padding: 56px 22px; text-align: center; color: var(--muted); }
.state-box .state-emoji { font-size: 30px; display: block; margin-bottom: 12px; }
.state-box h4 { color: var(--ink); font-size: 18px; margin: 0 0 6px; font-weight: 700; }
.state-box p { font-size: 14.5px; max-width: 440px; margin: 0 auto 16px; }
.skeleton-row td { padding: 18px 22px; }
.sk { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #efefef 25%, #e2e2e2 37%, #efefef 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.donations-foot { padding: 16px 22px; border-top: 1px solid var(--line); text-align: center; }
.link-muted { color: var(--muted); font-size: 14px; border-bottom: 1px solid transparent; }
.link-muted:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px; font-weight: 800; font-size: 19px; color: #fff; background: var(--ink); }
.step h3 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- community CTA ---------- */
.cta-card { text-align: center; padding: 60px 30px; border-radius: 24px; background: var(--ink); color: #fff; }
.cta-logo { margin: 0 auto 20px; border-radius: 16px; }
.cta-card h2 { font-size: clamp(28px, 4.4vw, 40px); }
.cta-card p { color: #c7c7c7; font-size: 17.5px; max-width: 520px; margin: 16px auto 28px; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.cta-card .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta-card .btn-primary:hover { background: #e8e8e8; border-color: #e8e8e8; }
.cta-card .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-card .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; padding: 44px 0 32px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 8px; }
.footer-brand strong { display: block; font-weight: 800; }
.footer-brand span { font-size: 13.5px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 14.5px; transition: color .15s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-meta { padding-top: 22px; }
.disclaimer { color: var(--faint); font-size: 13px; max-width: 760px; }
.copyright { color: var(--faint); font-size: 13px; margin-top: 10px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 100; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(1), .stat-card:nth-child(2) { border-bottom: 1px solid var(--line); }
  .mission-grid, .token-cards, .steps { grid-template-columns: 1fr; }
  .address-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav-links.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-cta { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 38px; border-radius: 10px; background: #fff;
    border: 1px solid var(--line-strong); cursor: pointer;
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-card:last-child { border-bottom: none; }
  .section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
