/* LurkChain shared styles: tokens, type, layout frame, header, banner, footer, components.
   Measured from the Profound reference (dark only). Page-specific styles live in each page or its own css file. */

:root {
  --bg: #000000;
  --canvas: #0e0e10;
  --panel: #131313;
  --panel-2: #1a1a1c;
  --panel-3: #242426;
  --fill: #333333;
  --fill-hover: #3d3d3d;
  --line: #232323;
  --line-2: #2c2c2c;
  --line-3: #333333;
  --ink: #edf2f5;
  --ink-soft: rgba(237, 242, 245, .6);
  --ink-2: #9f9f9f;
  --ink-3: #828282;
  --ink-4: #505050;
  --nav-ink: #a8a8ad;
  --white: #ffffff;
  --btn-ink: #222222;
  --up: #2fe39a;
  --up-bright: #08ffb6;
  --down: #ff5f57;
  --blue: #4b8df8;
  --purple: #ad46ff;
  --orange: #ff9b6d;
  --cyan: #00b8db;
  --yellow: #ffea35;
  --accent: #ff6b2c;
  --accent-rgb: 255, 107, 44;
  --tag-bg: rgba(var(--accent-rgb), .16);
  --frame: 1056px;
  --gutter: 24px;
  --header-h: 56px;
  --banner-h: 48px;
  --radius: 8px;
  --radius-lg: 12px;
  --ease: cubic-bezier(.25, .46, .45, .94);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--banner-h) + 16px); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.0125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
::selection { background: rgba(var(--accent-rgb), .35); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
ul, ol { list-style: none; }
img, svg { display: block; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; border: 2px solid var(--bg); }
[hidden] { display: none !important; }
[data-ai] svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }

/* ---------- type ---------- */
.h1, .h2 { font-size: 48px; line-height: 56px; letter-spacing: -0.0225em; font-weight: 500; color: var(--ink); }
.h3 { font-size: 18px; line-height: 24px; letter-spacing: -0.0025em; font-weight: 400; color: var(--ink); }
.lead { font-size: 18px; line-height: 24px; letter-spacing: -0.0025em; color: var(--ink-2); }
.body { font-size: 16px; line-height: 24px; color: var(--ink-2); }
.small { font-size: 14px; line-height: 20px; letter-spacing: -0.0125em; }
.micro { font-size: 12px; line-height: 14.5px; letter-spacing: -0.0125em; color: var(--ink-2); }
.stat { font-size: 56px; line-height: 64px; letter-spacing: -0.0525em; font-weight: 500; }

/* ---------- layout frame: dashed guide lines at the frame edges ---------- */
.frame {
  position: relative;
  max-width: calc(var(--frame) + 2px);
  margin: 0 auto;
  border-left: 1px dashed var(--line-3);
  border-right: 1px dashed var(--line-3);
}
.frame-solid { border-left-style: solid; border-right-style: solid; border-color: var(--line); }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.rule { border-top: 1px solid var(--line); }
.rule-b { border-bottom: 1px solid var(--line); }
.full-rule { border-top: 1px solid var(--line); }
.sec { padding-top: 96px; padding-bottom: 96px; }
.sec-head { max-width: 560px; }
.sec-head .lead { margin-top: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid2 > * + * { border-left: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid3 > * + * { border-left: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 7px;
  font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .0075em; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), opacity .18s;
}
.btn-white { background: var(--white); color: var(--btn-ink); }
.btn-white:hover { background: #e6e6e6; }
.btn-gray { background: var(--fill); color: var(--ink); }
.btn-gray:hover { background: var(--fill-hover); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,.06); }
.btn-lg { height: 36px; padding: 0 14px; }
.btn svg { width: 14px; height: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 16px; transition: color .15s; }
.link-arrow:hover { color: var(--ink); }
.link-arrow svg { transition: transform .15s var(--ease); }
.link-arrow:hover svg { transform: translateX(2px); }

/* chips (tab pills) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px;
  border: 1px solid var(--line-3); border-radius: 999px; font-size: 14px; line-height: 20px; color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s;
}
.chip svg { width: 16px; height: 16px; flex: none; }
.chip:hover { border-color: #4a4a4a; }
.chip[aria-selected="true"], .chip.on { background: var(--white); color: #000; border-color: var(--white); }

/* tags and badges */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px; line-height: 18px; }
.tag-orange, .tag-accent { background: var(--tag-bg); color: var(--accent); }
.tag-gray { background: var(--panel-3); color: var(--ink-2); }
.tag-green { background: rgba(47, 227, 154, .12); color: var(--up); }
.tag-red { background: rgba(255, 95, 87, .12); color: var(--down); }
.tag-blue { background: rgba(75, 141, 248, .14); color: #8fb6ff; }
.pill-sample { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line-3); font-size: 11px; line-height: 14px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.pill-live { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: 999px; background: rgba(47, 227, 154, .1); color: var(--up); font-size: 11px; line-height: 14px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pill-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: lc-pulse 1.6s ease-in-out infinite; }
@keyframes lc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* panels, cards, tables */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel-dark { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tbl { width: 100%; font-size: 14px; line-height: 20px; }
.tbl th { font-size: 12px; line-height: 14.5px; font-weight: 400; color: var(--ink-2); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.up, .tbl .up { color: var(--up); }
.tbl td.down, .tbl .down { color: var(--down); }
.tbl .r { text-align: right; }
.tbl tbody tr { transition: background-color .12s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.025); }
.tbl-wrap { overflow-x: auto; }
.skel { display: inline-block; height: 12px; width: 70%; border-radius: 4px; background: linear-gradient(90deg, #1b1b1d 0%, #262628 50%, #1b1b1d 100%); background-size: 200% 100%; animation: lc-shimmer 1.4s linear infinite; }
@keyframes lc-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* form bits */
.field { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--canvas); color: var(--ink); font-size: 14px; }
.field input, .field select { background: transparent; border: 0; outline: 0; flex: 1; min-width: 0; color: var(--ink); }
.field:focus-within { border-color: #4a4a4a; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--canvas); }
.seg button { height: 28px; padding: 0 12px; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--ink); }

/* token avatar */
.tok { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.tok img, .tok .tok-dot { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--panel-3); object-fit: cover; }
.tok .tok-dot { display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--ink-2); }
.tok b { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok small { display: block; font-size: 12px; line-height: 14.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); letter-spacing: 0; }
.addr:hover { color: var(--ink); }

/* ---------- logo ---------- */
.lc-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.lc-logo img { width: 30px; height: auto; }
.lc-logo svg { height: 22px; width: auto; overflow: visible; }

/* ---------- header ---------- */
.lc-header { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--line); }
.lc-header-in { max-width: calc(var(--frame) + 2px); margin: 0 auto; height: var(--header-h); display: flex; align-items: center; padding: 0 20px; }
.lc-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; height: 100%; }
.lc-nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.lc-nav-link { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 7px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--nav-ink); transition: color .15s, background-color .15s; }
.lc-nav-link:hover, .lc-nav-item.open > .lc-nav-link, .lc-nav-link[aria-current="page"] { color: var(--ink); }
.lc-nav-link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.lc-nav-item.open > .lc-nav-link svg { transform: rotate(180deg); }
.lc-actions { display: flex; align-items: center; gap: 8px; }
.lc-burger { display: none; width: 36px; height: 36px; place-items: center; border-radius: 8px; color: var(--ink); }
.lc-menu {
  position: absolute; top: calc(100% - 4px); left: 50%; transform: translate(-50%, -4px); padding-top: 8px;
  opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.lc-nav-item.open > .lc-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.lc-menu-card { display: flex; gap: 0; background: var(--canvas); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); overflow: hidden; }
.lc-menu-col { padding: 14px 10px; min-width: 250px; }
.lc-menu-col + .lc-menu-col { border-left: 1px solid var(--line); }
.lc-menu-col h4 { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-3); padding: 4px 10px 8px; }
.lc-mi { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; border-radius: 9px; transition: background-color .12s; }
.lc-mi:hover { background: rgba(255,255,255,.05); }
.lc-mi-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); display: grid; place-items: center; color: var(--ink-2); }
.lc-mi-ic svg { width: 15px; height: 15px; }
.lc-mi:hover .lc-mi-ic { color: var(--ink); }
.lc-mi b { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.lc-mi span { display: block; font-size: 12.5px; line-height: 17px; color: var(--ink-2); }
.lc-mi em { font-style: normal; }
.lc-mi .pill-live, .lc-mi .pill-sample { display: inline-flex; margin-left: 6px; vertical-align: 1px; height: 16px; font-size: 9.5px; padding: 0 5px; }
.lc-menu-feature { width: 260px; padding: 14px; border-left: 1px solid var(--line); background: radial-gradient(120% 80% at 0% 0%, #1b1d22 0%, var(--canvas) 60%); display: flex; flex-direction: column; gap: 10px; }
.lc-menu-feature .art { height: 120px; border-radius: 10px; border: 1px solid var(--line-2); background: #050505 url("art/menu.jpg") center / cover no-repeat; }
.lc-menu-feature b { font-size: 14px; font-weight: 500; }
.lc-menu-feature span { font-size: 12.5px; line-height: 17px; color: var(--ink-2); }

/* banner */
.lc-banner { position: sticky; top: var(--header-h); z-index: 999; height: var(--banner-h); background: var(--bg); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; font-size: 14px; line-height: 20px; }
.lc-banner a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.lc-banner a:hover .lc-banner-text { color: var(--white); }
.lc-banner svg { width: 14px; height: 14px; transition: transform .15s; }
.lc-banner a:hover svg { transform: translateX(2px); }

/* mobile drawer */
.lc-drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 998; background: var(--bg); overflow-y: auto; padding: 8px 20px 48px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; }
.lc-drawer.open { opacity: 1; visibility: visible; transition: opacity .2s; }
.lc-drawer details { border-bottom: 1px solid var(--line); }
.lc-drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 16px; font-weight: 500; cursor: pointer; }
.lc-drawer summary::-webkit-details-marker { display: none; }
.lc-drawer summary svg { width: 16px; height: 16px; color: var(--ink-2); transition: transform .2s; }
.lc-drawer details[open] summary svg { transform: rotate(180deg); }
.lc-drawer .lc-mi { padding: 8px 0; }
.lc-drawer .lc-dl { display: block; padding: 16px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line); }
.lc-drawer .lc-dcta { display: flex; gap: 8px; margin-top: 24px; }
.lc-drawer .lc-dcta .btn { flex: 1; height: 40px; }

/* ---------- footer ---------- */
.lc-footer { border-top: 1px solid var(--line); }
.lc-footer-in { padding: 96px var(--gutter) 40px; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 48px 24px; }
.lc-footer-brand p { margin-top: 18px; font-size: 13px; line-height: 19px; color: var(--ink-3); max-width: 260px; }
.lc-footer h5 { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink); margin-bottom: 14px; }
.lc-footer ul { display: grid; gap: 10px; }
.lc-footer li a { font-size: 12px; line-height: 16px; color: var(--ink-3); transition: color .15s; }
.lc-footer li a:hover { color: var(--ink); }
.lc-footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px var(--gutter) 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.lc-footer-base .dot { display: inline-flex; align-items: center; gap: 8px; }
.lc-footer-base .dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lc-disclaimer { padding: 0 var(--gutter) 40px; font-size: 12px; line-height: 18px; color: var(--ink-4); max-width: 820px; }

/* toast */
.lc-toast { position: fixed; left: 50%; bottom: 24px; z-index: 2000; transform: translate(-50%, 12px); background: var(--white); color: #111; border-radius: 9px; padding: 9px 14px; font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px -12px rgba(0,0,0,.8); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; width: max-content; max-width: calc(100vw - 32px); text-align: center; line-height: 20px; }
.lc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- inner page scaffolding (shared by every tab page) ---------- */
.page-hero { padding: 72px var(--gutter) 48px; }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.page-hero .h1 { max-width: 760px; }
.page-hero .lead { margin-top: 16px; max-width: 620px; }
.page-hero .cta { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1; }
.source-note { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 14px var(--gutter); font-size: 12px; line-height: 16px; color: var(--ink-3); border-top: 1px solid var(--line); }
.source-note a { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.kpi { padding: 20px var(--gutter); min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi dt { font-size: 12px; line-height: 14.5px; color: var(--ink-2); }
.kpi dd { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 40px var(--gutter); text-align: center; color: var(--ink-2); font-size: 14px; }
.prose { max-width: 720px; font-size: 16px; line-height: 26px; color: var(--ink-2); }
.prose h2 { font-size: 24px; line-height: 32px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; line-height: 26px; font-weight: 500; color: var(--ink); margin: 28px 0 8px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.prose code, .code { font-family: var(--mono); font-size: 13px; letter-spacing: 0; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre.code { display: block; padding: 14px 16px; overflow-x: auto; line-height: 20px; white-space: pre; }

/* ---------- arrival motion (Profound's fadeBlurInUp) ---------- */
@keyframes lc-in { from { opacity: 0; filter: blur(4px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
.page-hero > * { animation: lc-in .6s var(--ease) both; }
.page-hero > *:nth-child(2) { animation-delay: .08s; } .page-hero > *:nth-child(3) { animation-delay: .16s; } .page-hero > *:nth-child(4) { animation-delay: .24s; }
.lc-banner a { animation: lc-in 1.2s cubic-bezier(.19, 1, .22, 1) .3s both; }
.lc-logo img { transition: transform .35s var(--ease); }
.lc-logo:hover img { transform: translateY(-1px) rotate(-4deg) scale(1.05); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .lc-nav { display: none; }
  .lc-actions .hide-m { display: none; }
  .lc-burger { display: grid; }
  .lc-header-in { justify-content: space-between; }
}
@media (max-width: 1080px) {
  .frame { border-left: 0; border-right: 0; }
}
@media (max-width: 900px) {
  .grid3 { grid-template-columns: 1fr; }
  .grid3 > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lc-footer-in { grid-template-columns: 1fr 1fr; }
  .lc-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .h1, .h2 { font-size: 34px; line-height: 40px; }
  .stat { font-size: 44px; line-height: 50px; }
  .lead { font-size: 16px; line-height: 24px; }
  .grid2 { grid-template-columns: 1fr; }
  .grid2 > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .sec { padding-top: 72px; padding-bottom: 72px; }
  .page-hero { padding: 48px var(--gutter) 36px; }
  .lc-banner { font-size: 13px; }
  .lc-banner .lc-banner-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
  .lc-footer-in { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}
