/* Oculopus design system — dark, full-screen snap sections, violet brand. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  --bg: #0a0a17;
  --card: #12121f;
  --card-2: #171729;
  --line: #201f35;
  --line-strong: #33305a;
  --text: #eceaf6;
  --dim: #8d8aa5;
  --brand: #8b7cf2;
  --brand-2: #a396f6;
  --brand-soft: rgba(139, 124, 242, 0.13);
  --brand-ink: #0a0a17;
  --good: #4ecb8d;
  --bad: #f27a7d;
  --code-bg: #0d0c1b;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: 64px; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.7 "Inter", system-ui, sans-serif;
}
.mono, pre, code, .meta, .pill, .addr, .eyebrow, .num, .feed-item, .lb, .marquee { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px; width: 100%; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- header ------------------------------------------------------------- */
header {
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
}
.nav { display: flex; align-items: center; gap: 22px; height: 64px; padding: 0 26px; }
.brand { display: flex; align-items: center; gap: 2px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .o-glyph { color: var(--brand); margin-right: 1px; }
.brand b { font-family: "Inter", sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.4px; }
.nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; font-family: "JetBrains Mono", monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.5px; }
.nav .links a { color: var(--dim); }
.nav .links a.on { color: var(--brand); }
.nav .links a:hover { color: var(--text); text-decoration: none; }
.nav .launch {
  font-family: "Inter", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0;
  text-transform: none; background: var(--brand); color: var(--brand-ink) !important;
  border-radius: 9px; padding: 9px 18px;
}
.nav .launch:hover { filter: brightness(1.08); text-decoration: none; }

/* ---- sections (each ≈ one screen) --------------------------------------- */
.section { min-height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: center; padding: 64px 0; border-bottom: 1px solid var(--line); scroll-snap-align: start; }
.section.auto { min-height: 0; }
.section:last-of-type { border-bottom: none; }

.eyebrow { display: inline-block; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brand); border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px; margin-bottom: 18px; background: var(--brand-soft); }
/* framed headline — replaces the eyebrow-label pattern */
.frame { display: inline-block; border: 1px solid var(--line-strong); border-left: 3px solid var(--brand); border-radius: 12px; padding: 14px 22px; margin-bottom: 22px; background: color-mix(in srgb, var(--card) 60%, transparent); }
.frame h1, .frame h2 { margin: 0; }
.frame.sm { padding: 10px 16px; margin-bottom: 16px; }
.frame.sm h2 { font-size: 21px; }
h1 { font-size: 47px; line-height: 1.1; font-weight: 800; letter-spacing: -1.5px; }
h2 { font-size: 28px; line-height: 1.22; font-weight: 700; letter-spacing: -0.7px; margin-bottom: 12px; }
h3 { font-size: 15px; font-weight: 700; }
.lead { color: var(--dim); font-size: 16.5px; line-height: 1.75; max-width: 66ch; }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.meta { display: flex; gap: 16px; color: var(--dim); font-size: 11.5px; flex-wrap: wrap; }

.btn { display: inline-block; font-size: 14px; font-weight: 600; padding: 11px 22px; border-radius: 9px; border: 1px solid var(--line-strong); color: var(--text); transition: all 0.2s; }
.btn:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.06); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .num { font-size: 11px; color: var(--brand); font-weight: 700; letter-spacing: 2px; }
.card p { font-size: 13.5px; line-height: 1.7; }
.grid { display: grid; gap: 16px; }
.grid.cols2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.cols3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.stat-card .v { font-family: "JetBrains Mono", monospace; font-size: 27px; font-weight: 700; color: var(--brand); }
.stat-card .l { font-size: 12px; color: var(--dim); margin-top: 4px; }

pre, code.block { display: block; background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-size: 12.5px; line-height: 1.75; overflow-x: auto; color: var(--text); }
code.inline { background: var(--code-bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 12.5px; font-family: "JetBrains Mono", monospace; }
pre .c { color: var(--dim); }
pre .k { color: var(--brand); }
pre .g { color: var(--good); }
pre .r { color: var(--bad); }

table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th, table.t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--dim); font-weight: 500; font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; }
table.t td:first-child { white-space: nowrap; }
table.t.compact th, table.t.compact td { padding: 6px 12px; }

.pill { display: inline-block; font-size: 10.5px; letter-spacing: 0.5px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 8px; color: var(--dim); }
.pill.brand { color: var(--brand); border-color: var(--brand); }
.pill.good { color: var(--good); border-color: var(--good); }
.pill.bad { color: var(--bad); border-color: var(--bad); }

/* ---- hero + marquee ----------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; flex: 1; }
.hero-art { display: flex; justify-content: center; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 28px; } .hero-art svg { width: 220px; height: auto; } }

.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-top: 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-block; animation: marquee 34s linear infinite; }
.marquee-track span { font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); padding: 0 4px; }
.marquee-track b { color: var(--brand); font-weight: 400; padding: 0 26px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- editor ------------------------------------------------------------- */
.editor { background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.32); font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; }
.ed-tabs { display: flex; background: var(--card); border-bottom: 1px solid var(--line); }
.ed-tab { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 11.5px; color: var(--text); background: var(--code-bg); border-right: 1px solid var(--line); border-top: 2px solid var(--brand); }
.ed-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.ed-tab-ghost { flex: 1; }
.ed-body { padding: 16px 18px; font-size: 12.5px; line-height: 1.85; height: 340px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; white-space: pre-wrap; word-break: break-word; }
.ed-body > div { flex: 0 0 auto; }
.ed-body .cmd { color: var(--text); }
.ed-body .out { color: var(--dim); }
.ed-body .ok { color: var(--good); }
.ed-body .err { color: var(--bad); }
.ed-body .hi { color: var(--brand); }
.ed-status { display: flex; gap: 18px; align-items: center; padding: 5px 14px; background: var(--brand); color: var(--brand-ink); font-size: 10.5px; letter-spacing: 0.5px; }
.ed-status span { display: inline-flex; align-items: center; gap: 5px; }

.cursor { color: var(--brand); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- mascot (central eye, tentacles behind, floating small eyes) ------- */
.mascot-wrap { position: relative; width: 340px; height: 340px; }
.mascot-bob { animation: bob 5.5s ease-in-out infinite; transform-origin: center; }
@keyframes bob { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
.m-lid { transform-box: fill-box; transform-origin: center 44%; transform: scaleY(0); animation: mblink 6s ease-in-out infinite; }
@keyframes mblink { 0%,92%,100% { transform: scaleY(0); } 95%,97% { transform: scaleY(1); } }
.m-pupil { animation: mlook 9s ease-in-out infinite; transform-origin: center; }
@keyframes mlook { 0%,22% { transform: translate(0,0); } 32%,46% { transform: translate(9px,-4px); } 56%,72% { transform: translate(-9px,3px); } 82%,100% { transform: translate(0,0); } }
.tentacle { transform-box: fill-box; transform-origin: top center; }
.t-a { animation: sway1 4.4s ease-in-out infinite; }
.t-b { animation: sway2 5.1s ease-in-out infinite; }
.t-c { animation: sway1 4.8s ease-in-out 0.6s infinite; }
.t-d { animation: sway2 5.6s ease-in-out 0.3s infinite; }
@keyframes sway1 { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes sway2 { 0%,100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }
.tiny-eye { animation: floaty 7s ease-in-out infinite; }
.tiny-eye.e2 { animation-duration: 8.5s; animation-delay: 1.2s; }
.tiny-eye.e3 { animation-duration: 6.4s; animation-delay: 0.5s; }
.tiny-eye .tp { animation: mlook 5s ease-in-out infinite; transform-origin: center; }
@keyframes floaty { 0%,100% { transform: translate(0,0); } 33% { transform: translate(6px,-9px); } 66% { transform: translate(-7px,-4px); } }
@media (prefers-reduced-motion: reduce) { .mascot-bob, .m-lid, .m-pupil, .tentacle, .tiny-eye, .tiny-eye .tp, .cursor, .marquee-track { animation: none !important; } }

/* Dashboard header is compact on purpose: every pixel it takes is a row the board
   cannot show, and the point of this page is seeing the whole top ten at once. */
.board-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.board-head .frame.sm { padding: 6px 13px; margin-bottom: 6px; }
.board-head .frame.sm h2 { font-size: 18px; }
.board-head .stat-card { padding: 8px 14px; }
.board-head .stat-card .v { font-size: 19px; }
.board-head .stat-card .l { font-size: 10.5px; margin-top: 1px; }
.board-head .lead { font-size: 12px; line-height: 1.5; }

/* ---- leaderboard -------------------------------------------------------- */
/* Sized to show 10 rows without scrolling; anything beyond that scrolls inside the
   board on hover/wheel rather than moving the whole page, so the header and the
   two score columns stay visible while you read down the list. */
.lb { position: relative; max-height: calc(10 * 49px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
.lb::-webkit-scrollbar { width: 8px; }
.lb::-webkit-scrollbar-track { background: transparent; }
.lb::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.lb::-webkit-scrollbar-thumb:hover { background: var(--brand); }
.lb { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.lb-row { display: grid; grid-template-columns: 34px 1fr 104px 104px 68px; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; margin-bottom: 4px; transition: transform 0.55s cubic-bezier(.2,.8,.2,1), border-color 0.3s; }
.lb-row.up { border-color: color-mix(in srgb, var(--good) 55%, var(--line)); }
.lb-row.down { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.lb-row:last-child { margin-bottom: 0; }
.lb-rank { font-family: "JetBrains Mono", monospace; font-size: 15px; font-weight: 700; color: var(--dim); text-align: center; }
.lb-rank.top { color: var(--brand); }
.lb-id { min-width: 0; }
.lb-name { font-family: "JetBrains Mono", monospace; font-size: 12.5px; line-height: 1.35; color: var(--text); display: flex; align-items: center; gap: 7px; }
.lb-sub { font-size: 10.5px; line-height: 1.35; color: var(--dim); font-family: "JetBrains Mono", monospace; }
.lb-bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.lb-bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width 0.6s ease; }
.lb-score { font-family: "JetBrains Mono", monospace; font-size: 17px; font-weight: 700; text-align: right; }
/* the unverified ERC-8004 figure sits beside ours, deliberately de-emphasised but present */
.lb-raw { font-family: "JetBrains Mono", monospace; font-size: 15px; text-align: right; color: var(--dim); }
/* border matches .lb-row's so the columns line up exactly */
.lb-head { display: grid; grid-template-columns: 34px 1fr 104px 104px 68px; gap: 16px; padding: 0 14px 6px; margin-top: 12px; border: 1px solid transparent; border-bottom: none;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); }
.lb-head div:nth-child(3), .lb-head div:nth-child(4) { text-align: right; }
.lb-head div:nth-child(4) { color: var(--brand); }
.lb-delta { font-family: "JetBrains Mono", monospace; font-size: 11px; }
.delta-up { color: var(--good); }
.delta-down { color: var(--bad); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--brand-soft); border-radius: 4px; padding: 1px 6px; }

.score-num { font-family: "JetBrains Mono", monospace; font-size: 34px; font-weight: 700; }
.empty { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 40px 24px; text-align: center; color: var(--dim); font-size: 13.5px; line-height: 2.1; }
.feed-item { border-left: 2px solid var(--line); padding: 6px 12px; font-size: 12.5px; color: var(--dim); margin-bottom: 2px; }
.feed-item b { color: var(--text); font-weight: 600; }
.ok-txt { color: var(--good); }
.bad-txt { color: var(--bad); }

footer { padding: 36px 0 48px; color: var(--dim); font-size: 12.5px; line-height: 2; border-top: 1px solid var(--line); }
footer a { color: var(--dim); text-decoration: underline; }
footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
