/* Lumen Research: Observatory of Light.
   Deep ink blue, marble graphite panels, brass fittings, and a prism
   spectrum used sparingly: hairlines, verdict bands, one glow. */

:root {
  --ink: #070d1d;
  --ink-2: #0a1122;
  --panel: #0d1526;
  --panel-2: #101a30;
  --line: rgba(201, 163, 92, 0.22);
  --line-soft: rgba(233, 220, 192, 0.10);
  --brass: #c9a35c;
  --brass-2: #e9dcc0;
  --paper: #ece7da;
  --dim: #a3aec6;
  --faint: #66738f;
  --cold: #57c8ff;
  --dev: #7be495;
  --conf: #ffd166;
  --anom: #ff7ad9;
  --spectrum: linear-gradient(90deg, #57c8ff 0%, #5eead4 26%, #7be495 48%, #ffd166 72%, #ff9d5c 88%, #ff7ad9 100%);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 520px at 50% -180px, rgba(87, 200, 255, 0.07), transparent 62%),
    radial-gradient(820px 480px at 88% 6%, rgba(201, 163, 92, 0.06), transparent 60%),
    var(--ink);
  color: var(--paper);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brass-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }
.mono { font-family: "Space Mono", ui-monospace, monospace; }
.serif { font-family: "Fraunces", Georgia, serif; }

/* ---------- top strip ---------- */
.util {
  border-bottom: 1px solid var(--line-soft);
  font-family: "Space Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
}
.util-in {
  max-width: 1120px; margin: 0 auto; padding: 7px 18px;
  display: flex; justify-content: space-between; gap: 12px;
}
.util .u-mid { display: none; }
@media (min-width: 760px) { .util .u-mid { display: inline; } }
.util b { color: var(--dim); font-weight: 400; }

/* ---------- masthead with light beam ---------- */
.mast { position: relative; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.mast::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 239, 224, 0.20) 30%, var(--spectrum) 78%, transparent);
  opacity: 0.5; pointer-events: none;
}
.mast-in {
  position: relative; max-width: 1120px; margin: 0 auto; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--paper); }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 22px rgba(201, 163, 92, 0.28); }
.brand .wm { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 19px; letter-spacing: 0.14em; white-space: nowrap; }
.brand .wm i { font-style: normal; color: var(--brass); }
.mast-meta { display: none; text-align: right; font-size: 13px; color: var(--dim); line-height: 1.45; }
.mast-meta b { color: var(--brass-2); font-weight: 500; }
@media (min-width: 760px) { .mast-meta { display: block; } }

/* ---------- nav ---------- */
.navrow { border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 40; background: rgba(7, 13, 29, 0.88); backdrop-filter: blur(10px); }
.nav-in {
  max-width: 1120px; margin: 0 auto; padding: 9px 18px;
  display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none;
}
.nav-in::-webkit-scrollbar { display: none; }
.nav-in .link {
  font-family: "Space Mono", monospace; font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--dim); padding: 7px 12px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.nav-in .link:hover, .nav-in .link[aria-current="page"] { color: var(--paper); background: rgba(201, 163, 92, 0.10); border-color: var(--line); }
.nav-in .pill {
  margin-left: auto; font-family: "Space Mono", monospace; font-size: 11.5px; color: var(--brass);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.sec { padding: 44px 0 8px; }
.sec-head { margin-bottom: 18px; }
.kicker {
  font-family: "Space Mono", monospace; font-size: 11.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass); display: inline-flex; align-items: center; gap: 10px;
}
.kicker::after { content: ""; width: 46px; height: 1px; background: var(--spectrum); opacity: 0.85; }
.sec-head h2, .page-head h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 560; letter-spacing: -0.01em;
  font-size: clamp(26px, 5.6vw, 38px); line-height: 1.14; margin-top: 8px;
}
.sec-head h2 em, .page-head h1 em { font-style: italic; color: var(--brass); }
.sec-head p, .page-head .lede { color: var(--dim); margin-top: 10px; max-width: 66ch; font-size: 15.5px; }
.page-head { padding: 34px 0 6px; }
.updated { font-family: "Space Mono", monospace; font-size: 12px; color: var(--faint); margin-top: 10px; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 10px; }
.hero h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 560;
  font-size: clamp(34px, 8.4vw, 58px); line-height: 1.07; letter-spacing: -0.015em; max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--brass); }
.hero .sub { color: var(--dim); font-size: 16.5px; max-width: 58ch; margin-top: 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: "Space Mono", monospace; font-size: 13px; font-weight: 700; letter-spacing: 0.03em;
  border-radius: 999px; padding: 12px 20px; border: 1px solid var(--brass);
  background: linear-gradient(180deg, #dcbc7d, var(--brass)); color: #191104;
  transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(201, 163, 92, 0.28); color: #191104; }
.btn.ghost { background: transparent; color: var(--brass-2); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brass); box-shadow: none; color: #fff; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- dossier plate ---------- */
.dossier {
  margin-top: 30px; position: relative; border-radius: 22px; padding: 22px 20px 20px;
  background:
    linear-gradient(160deg, rgba(233, 220, 192, 0.05), transparent 42%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(233, 220, 192, 0.08);
}
.dossier::before, .dossier::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--brass); border-style: solid; opacity: 0.85;
}
.dossier::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; border-top-left-radius: 10px; }
.dossier::after { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-bottom-right-radius: 10px; }
.doss-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.doss-case { font-family: "Fraunces", Georgia, serif; font-size: clamp(24px, 6vw, 34px); font-weight: 560; }
.doss-case span { color: var(--brass); }
.doss-status {
  font-family: "Space Mono", monospace; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.doss-subject { margin-top: 14px; }
.doss-subject .lbl { font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.doss-subject .val { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: clamp(19px, 4.6vw, 25px); color: var(--paper); margin-top: 3px; }
.doss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.doss-cell { border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 13px; background: rgba(7, 13, 29, 0.5); }
.doss-cell b { display: block; font-size: clamp(18px, 4.6vw, 24px); font-weight: 600; font-variant-numeric: tabular-nums; }
.doss-cell span { font-family: "Space Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.doss-note { color: var(--dim); font-size: 14px; margin-top: 14px; max-width: 68ch; }

/* ---------- spectrum bar ---------- */
.spec { margin-top: 20px; }
.spec-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.spec-proj { font-family: "Fraunces", Georgia, serif; font-size: 18px; }
.spec-proj b { color: var(--brass); font-weight: 560; }
.spec-count { font-family: "Space Mono", monospace; font-size: 12px; color: var(--dim); }
.spec-track {
  position: relative; height: 16px; border-radius: 999px; margin-top: 10px;
  background: rgba(233, 220, 192, 0.06); border: 1px solid var(--line-soft); overflow: visible;
}
.spec-track .ghost { position: absolute; inset: 0; border-radius: 999px; background: var(--spectrum); opacity: 0.14; }
.spec-track .fill {
  position: absolute; inset: 0; border-radius: 999px; background: var(--spectrum);
  clip-path: inset(0 100% 0 0); box-shadow: 0 0 18px rgba(255, 209, 102, 0.35);
}
.spec-track .mark { position: absolute; top: -5px; bottom: -5px; width: 1.5px; background: var(--brass-2); opacity: 0.8; }
.spec-track .mark i {
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  font-family: "Space Mono", monospace; font-style: normal; font-size: 10px; color: var(--dim); white-space: nowrap;
}
.spec-scale { display: flex; justify-content: space-between; font-family: "Space Mono", monospace; font-size: 10.5px; color: var(--faint); margin-top: 7px; text-transform: uppercase; letter-spacing: 0.08em; }
.spec-note { color: var(--dim); font-size: 14px; margin-top: 10px; }

/* ---------- verdict plates ---------- */
.plates { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .plates { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .plates { grid-template-columns: repeat(4, 1fr); } }
.plate {
  border-radius: var(--radius); border: 1px solid var(--line-soft); padding: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.plate .band { height: 7px; border-radius: 99px; margin-bottom: 14px; }
.plate.cold .band { background: linear-gradient(90deg, #2a6ea8, var(--cold)); width: 32%; }
.plate.dev .band { background: linear-gradient(90deg, var(--cold), #5eead4, var(--dev)); width: 58%; }
.plate.conf .band { background: var(--spectrum); width: 100%; }
.plate.anom .band { background: var(--spectrum); width: 100%; box-shadow: 0 0 14px rgba(255, 255, 255, 0.55); }
.plate h3 { font-family: "Fraunces", Georgia, serif; font-weight: 560; font-size: 21px; }
.plate .rule { font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.plate p { color: var(--dim); font-size: 14px; margin-top: 9px; }
.plate .amt { margin-top: 13px; font-family: "Space Mono", monospace; font-size: 13px; color: var(--brass-2); }
.plate .amt b { font-size: 19px; color: var(--paper); }

/* ---------- generic panels, ladder, consoles ---------- */
.panel { border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: 18px; }
.panel h3 { font-family: "Fraunces", Georgia, serif; font-weight: 560; font-size: 20px; margin-bottom: 8px; }
.panel p { color: var(--dim); font-size: 14.5px; }
.ladder { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.rung {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  border: 1px solid var(--line-soft); border-radius: 13px; padding: 11px 14px; background: rgba(7, 13, 29, 0.45);
}
.rung .what { font-size: 14.5px; }
.rung .what span { color: var(--faint); font-size: 13px; }
.rung .price { font-family: "Space Mono", monospace; font-weight: 700; color: var(--brass-2); white-space: nowrap; }
.rung .price.free { color: var(--dev); }
.console { margin-top: 14px; }
.console .chead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.console .chead span { font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.prompt-box {
  border: 1px solid var(--line); border-radius: 14px; background: #060b18; padding: 15px 16px;
  font-family: "Space Mono", monospace; font-size: 13px; line-height: 1.65; color: #d8e2f2;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.split { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- claim checker ---------- */
.checker { margin-top: 14px; }
.ck-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-row input {
  flex: 1 1 170px; min-width: 0; background: rgba(7, 13, 29, 0.65); border: 1px solid var(--line);
  border-radius: 13px; color: var(--paper); font-family: "Space Mono", monospace; font-size: 15px; padding: 12px 15px;
}
.ck-row input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201, 163, 92, 0.16); }
.ck-result {
  margin-top: 12px; border: 1px dashed var(--line); border-radius: 13px; padding: 13px 15px;
  font-size: 14.5px; color: var(--dim); background: rgba(7, 13, 29, 0.4);
}
.ck-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { border: 1px solid var(--line-soft); border-radius: 14px; padding: 13px 14px; background: rgba(7, 13, 29, 0.5); }
.stat b { display: block; font-size: clamp(18px, 4.6vw, 24px); font-variant-numeric: tabular-nums; }
.stat span { font-family: "Space Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
table.tbl { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; }
.tbl th {
  text-align: left; font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass); padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 12px 16px; color: var(--dim); border-bottom: 1px solid rgba(233, 220, 192, 0.05); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--paper); font-weight: 500; white-space: nowrap; }
.tbl .price { font-family: "Space Mono", monospace; color: var(--brass-2); font-weight: 700; white-space: nowrap; }

/* ---------- tokenomics bars ---------- */
.tok-row { border: 1px solid var(--line-soft); border-radius: 15px; padding: 14px 16px; background: var(--panel); margin-bottom: 12px; }
.tok-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; margin-bottom: 10px; }
.tok-head b { font-weight: 600; }
.tok-head span { font-family: "Space Mono", monospace; color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.tok-bar { height: 13px; border-radius: 999px; background: rgba(233, 220, 192, 0.05); border: 1px solid var(--line-soft); overflow: hidden; }
.tok-fill { height: 100%; border-radius: 999px; }
.tok-fill.pool { background: var(--spectrum); }
.tok-fill.wallet { background: linear-gradient(90deg, #4a5875, #8494b5); }

/* ---------- link cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 11px; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.lcard {
  display: block; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--paper);
  transition: transform 0.3s, border-color 0.3s;
}
.lcard:hover { transform: translateY(-2px); border-color: var(--brass); color: var(--paper); }
.lcard b { font-family: "Fraunces", Georgia, serif; font-weight: 560; font-size: 18px; display: block; }
.lcard span { color: var(--dim); font-size: 13.5px; display: block; margin-top: 4px; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line-soft); border-radius: 15px; padding: 14px 17px; background: var(--panel); }
.faq summary { font-weight: 600; cursor: pointer; font-size: 15.5px; }
.faq details p { color: var(--dim); font-size: 14.5px; margin-top: 8px; }

/* ---------- prose pages ---------- */
.doc { max-width: 74ch; }
.doc h2 { font-family: "Fraunces", Georgia, serif; font-weight: 560; font-size: clamp(21px, 5vw, 27px); margin: 32px 0 10px; }
.doc h2 em { font-style: italic; color: var(--brass); }
.doc h3 { font-size: 17.5px; font-weight: 600; margin: 22px 0 7px; }
.doc p { color: var(--dim); margin-bottom: 12px; font-size: 15.5px; }
.doc p b, .doc li b { color: var(--paper); }
.doc ul, .doc ol { color: var(--dim); margin: 0 0 14px 20px; font-size: 15.5px; }
.doc li { margin-bottom: 6px; overflow-wrap: anywhere; }
.doc a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201, 163, 92, 0.45); }
.doc code {
  font-family: "Space Mono", monospace; font-size: 13px; background: rgba(201, 163, 92, 0.10);
  border: 1px solid var(--line-soft); border-radius: 7px; padding: 1px 6px; color: var(--brass-2); overflow-wrap: anywhere;
}
.doc hr { border: 0; border-top: 1px solid var(--line-soft); margin: 26px 0; }
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 12px;
  background: rgba(201, 163, 92, 0.06); padding: 14px 16px; margin: 16px 0; color: var(--dim); font-size: 15px;
}
.callout b { color: var(--paper); }

/* ---------- swap ---------- */
.swap-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .swap-cards { grid-template-columns: 1fr 1fr; } }
.swap-card { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.swap-card h3 { font-family: "Fraunces", Georgia, serif; font-weight: 560; font-size: 20px; }
.swap-card p { color: var(--dim); font-size: 14.5px; margin: 8px 0 14px; }
.soon { font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; display: inline-block; }

/* ---------- footer ---------- */
.foot { margin-top: 64px; border-top: 1px solid var(--line-soft); background: #05080f; }
.foot-spectrum { height: 2px; background: var(--spectrum); opacity: 0.55; }
.foot-in {
  max-width: 1120px; margin: 0 auto; padding: 38px 18px 10px;
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.foot-brand p { color: var(--dim); font-size: 14px; margin-top: 12px; max-width: 34ch; }
.foot-col h4 { font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin-bottom: 13px; }
.foot-col a { display: block; color: var(--dim); font-size: 14.5px; padding: 3.5px 0; }
.foot-col a:hover { color: #fff; }
.foot-col .fc b { color: var(--paper); font-weight: 500; display: block; font-size: 14px; }
.foot-col .fc span { font-family: "Space Mono", monospace; font-size: 11px; color: var(--faint); overflow-wrap: anywhere; }
.fc-note { color: var(--faint); font-size: 12.5px; margin-top: 10px; }
.foot-base {
  max-width: 1120px; margin: 0 auto; padding: 16px 18px 22px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-family: "Space Mono", monospace; font-size: 11.5px; color: var(--faint);
  border-top: 1px solid var(--line-soft); margin-top: 22px;
}

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .btn, .lcard { transition: none; }
}
