/* FORGE — monospace terminal aesthetic. Flat, sharp, neutral near-black.
   Single brand accent = orange. Green is reserved for positive-value semantics only. */
:root {
  --bg: #151517;
  --bg-2: #101012;
  --panel: #1b1b1e;
  --panel-2: #212125;
  --line: #2c2c31;
  --line-soft: #232327;
  --text: #f5f5f6;
  --muted: #85858c;
  --dim: #5c5c63;
  --orange: #f7791a;  /* the single brand accent */
  --green: #29c07f;   /* semantic: positive value only (APR, "None") */
  --mono: ui-monospace, "Cascadia Code", "Cascadia Mono", "SF Mono", "JetBrains Mono", "DejaVu Sans Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--mono); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh; letter-spacing: -0.1px;
}
.wrap, header, .trust, main, footer { max-width: 1060px; margin-left: auto; margin-right: auto; }

.brand { display: flex; align-items: center; gap: 13px; }
.logo { width: 40px; height: 40px; display: grid; place-items: center; font-size: 21px;
  background: var(--orange); color: #140a02; border-radius: 3px; }
h1 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: .22em; padding-left: .22em; }
.tag { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }

.btn { font-family: var(--mono); font-weight: 700; font-size: 13px; cursor: pointer;
  color: #140a02; background: var(--orange); border: 0; border-radius: 3px; padding: 10px 16px; letter-spacing: .04em; }
.btn:hover { filter: brightness(1.08); }
.btn.big { width: 100%; padding: 13px; margin-top: 12px; text-transform: uppercase; letter-spacing: .06em; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
/* connect wallet = ghost, so orange stays reserved for primary actions */
#connectBtn { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
#connectBtn:hover { filter: none; border-color: var(--orange); color: var(--orange); }

.notice { max-width: 1060px; margin: 14px auto 0; padding: 10px 14px; background: #211208;
  border: 1px solid #3a2410; border-radius: 4px; color: #f0b483; font-size: 12.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notice .link-btn { flex: 0 0 auto; background: var(--orange); color: #140a02; border: 0;
  border-radius: 3px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: var(--mono); letter-spacing: .03em; }
.hidden { display: none; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-top: 0; margin: 0 auto 18px; }
.mined-lock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--muted); margin: 12px 0 8px; }
.mined-lock-row select { flex: 0 0 auto; }
.hint { color: var(--muted); cursor: help; font-size: 11px; opacity: .8; }
.trust > div { padding: 15px 16px; display: flex; flex-direction: column; gap: 7px; border-right: 1px solid var(--line-soft); }
.trust > div:last-child { border-right: 0; }
.k { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.v.ok { color: var(--green); }
.bar { height: 4px; background: #26140a; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .6s; }

main { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 20px; }
.door { border: 1px solid var(--line); border-top: 2px solid var(--orange); padding: 22px; background: var(--bg); }
.door h2 { margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: baseline; gap: 9px; }
.door h2 small { color: var(--dim); font-size: 11px; font-weight: 400; letter-spacing: .04em; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin: 14px 0 16px; }
.grid > div { background: var(--panel); padding: 11px 13px; display: flex; flex-direction: column; gap: 5px; }
.grid .v { font-size: 15px; }
#apr { color: var(--green); }

.stakeForm { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; }
.stakeForm select { grid-column: 1 / -1; }
input, select { background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 3px; padding: 11px 12px; font-size: 13px; font-family: var(--mono); }
input:focus, select:focus { outline: none; border-color: var(--orange); }
/* position / unlock modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.66); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal.hidden { display: none; } /* must beat .modal's display:flex */
.modal-card { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--orange);
  border-radius: 4px; padding: 22px; width: 100%; max-width: 420px; position: relative; }
.modal-card h3 { margin: 0 0 16px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.modal-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
.modal-x:hover { color: var(--text); }
.mrow { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.mrow span { color: var(--muted); }
.mrow b { font-variant-numeric: tabular-nums; }
.modal-card .btn { width: 100%; margin-top: 12px; }
.modal-card .btn.big { text-transform: none; letter-spacing: 0; }
.rules { margin: 12px 0 0; padding-left: 18px; }
.rules li { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.rules b { color: var(--text); }
.warn { font-size: 12.5px; line-height: 1.6; color: #e9b184; background: #1a1108; border: 1px solid var(--line-warm); padding: 11px 13px; border-radius: 4px; margin: 14px 0 0; }
.force { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; }

.vault { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.vault-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.vault-head small { text-transform: none; letter-spacing: 0; color: var(--dim); font-size: 11px; }
.vault-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.vault-btns .btn { flex: 1; padding: 9px; font-size: 12px; }

.status { font-size: 12px; min-height: 16px; color: var(--muted); }
.muted { color: var(--muted); }
.fineprint { font-size: 10.5px; color: var(--dim); margin: 10px 0 0; }

.positions { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 12px; }
.positions th { text-align: left; color: var(--muted); font-weight: 400; font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; padding: 0 8px 9px; border-bottom: 1px solid var(--line); }
.positions td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.positions button { background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 3px; padding: 5px 11px; cursor: pointer; font-size: 11px; margin-right: 5px; font-family: var(--mono); }
.positions button:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.positions button:disabled { opacity: .3; cursor: not-allowed; }
.positions button.danger { border-color: #5a2a33; color: var(--red); }
.positions button.danger:hover:not(:disabled) { border-color: var(--red); color: var(--red); }

footer { margin: 22px auto 40px; padding: 18px 20px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
footer p { margin: 0 0 8px; max-width: 720px; }
footer .lead { color: var(--text); font-weight: 600; }

@media (max-width: 840px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
  main { grid-template-columns: 1fr; }
  .stakeForm { grid-template-columns: 1fr; }
}

/* ============================ shared top nav ============================ */
.nav { display: flex; align-items: center; justify-content: space-between;
  max-width: 1060px; margin: 0 auto; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-weight: 700; letter-spacing: .16em; font-size: 15px; }
.nav-brand .logo-sm { width: 26px; height: 26px; display: grid; place-items: center; font-size: 15px;
  background: var(--orange); color: #140a02; border-radius: 3px; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13px; padding: 8px 12px; border-radius: 3px; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-buy { border: 1px solid var(--line); color: var(--text); }
.nav-links a.nav-buy:hover { border-color: var(--orange); color: var(--orange); }
.nav-links a.nav-app { background: var(--orange); color: #140a02; font-weight: 700; }

/* ============================ landing ============================ */
.hero { max-width: 1060px; margin: 0 auto; padding: 70px 20px 56px; }
.hero-badge { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); border: 1px solid var(--line-warm, #3a2410); padding: 5px 11px; margin-bottom: 24px; }
.hero-title { margin: 0; font-size: clamp(34px, 6vw, 60px); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.01em; text-wrap: balance; }
.hero-sub { margin: 20px 0 0; font-size: clamp(14px, 2vw, 17px); color: var(--muted); max-width: 620px; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.big-inline { display: inline-block; text-decoration: none; padding: 13px 24px; text-transform: uppercase;
  letter-spacing: .05em; font-size: 13.5px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { filter: none; border-color: var(--orange); color: var(--orange); }
a.btn { text-decoration: none; }

.section { max-width: 1060px; margin: 0 auto; padding: 34px 20px; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); }
.section .lead2 { margin: 0 0 24px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { border: 1px solid var(--line); border-top: 2px solid var(--orange); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.ethos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ethos .item { border: 1px solid var(--line); padding: 18px; }
.ethos .item b { color: var(--text); font-size: 15px; }
.ethos .item p { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.facts > div { padding: 16px; border-right: 1px solid var(--line-soft); }
.facts > div:last-child { border-right: 0; }

/* ============================ docs ============================ */
.docs { max-width: 1060px; margin: 0 auto; padding: 40px 20px 70px; display: grid; grid-template-columns: 190px 1fr; gap: 40px; }
.toc { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.toc a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--orange); }
.doc-body { min-width: 0; }
.doc-body h1 { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.01em; }
.doc-body h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--orange);
  margin: 40px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc-body h2:first-of-type { border-top: 0; padding-top: 0; }
.doc-body p, .doc-body li { color: var(--c-body, #c9c9cf); font-size: 13.5px; line-height: 1.65; }
.doc-body strong { color: var(--text); }
.doc-body ul { padding-left: 18px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12.5px; }
.doc-table th, .doc-table td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.doc-table th { color: var(--muted); font-weight: 400; text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; }
.doc-table td.hl { color: var(--orange); }
.callout { border: 1px solid var(--line-warm, #3a2410); background: #1a1108; padding: 13px 15px; margin: 16px 0; font-size: 12.5px; color: #e9b184; }

@media (max-width: 840px) {
  .two-cards, .ethos, .facts { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 10px; }
}
