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

:root {
  --bg:        #fbfaf7;
  --bg-soft:   #f3f1ea;
  --card:      #ffffff;
  --ink:       #14130f;
  --ink-soft:  #696258;
  --muted:     #948d7d;
  --muted-2:   #b7b0a2;

  --orange:    #f1b023;
  --orange-d:  #c98a0e;
  --orange-2:  #f7c14e;
  --orange-wash: rgba(241, 176, 35, 0.14);

  --line:      rgba(20, 19, 15, 0.11);
  --line-2:    rgba(20, 19, 15, 0.06);

  --mono:      "JetBrains Mono", "SFMono-Regular", "Roboto Mono", ui-monospace, monospace;

  --side-w:    272px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.orange { color: var(--orange); }

/* ============ TOP NAVBAR (logo centered) ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: 72px;
  padding: 0 28px;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}

.tb-brand {
  order: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 12px;
  text-transform: lowercase;
  color: var(--ink);
  line-height: 1;
}
.tb-brand b { font-weight: 600; }
.tb-brand .sm { display: none; }
.tb-brand .mark { width: 42px; height: 42px; flex: 0 0 auto; object-fit: contain; }

/* nav buttons on the left */
.tb-nav { order: 1; justify-self: start; display: flex; align-items: center; gap: 6px; }
.tb-nav a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .14s, color .14s, border-color .14s;
}
.tb-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.tb-nav a.active { background: var(--orange-wash); color: var(--orange-d); border-color: rgba(241,176,35,0.35); }

/* right cluster: socials + connect */
.tb-right { order: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }
.tb-ico {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  transition: border-color .15s, color .15s, background .15s;
}
.tb-ico:hover { border-color: var(--orange); color: var(--orange-d); background: var(--orange-wash); }

.connect-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .12s;
}
.connect-btn:hover { background: var(--orange-d); transform: translateY(-1px); }
.connect-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .85; }
.connect-btn.connected { background: var(--orange-wash); color: var(--orange-d); }
.connect-btn.connected .dot { background: #1fc16b; opacity: 1; }
.connect-btn .label { font-variant-numeric: tabular-nums; }

/* ============ CONTENT ============ */
.content { min-height: 100vh; }
.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 32px 100px;
}
.page.wide { max-width: 1040px; }

/* ============ CENTERED SHOWCASE (landing) ============ */
.showcase {
  max-width: 760px;
  margin: 0 auto;
  padding: 78px 28px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.coin-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 200px; height: 200px;
  margin-bottom: 14px;
}
.coin-wrap::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(241,176,35,0.40), rgba(241,176,35,0.10) 45%, transparent 70%);
  filter: blur(8px);
  z-index: 0;
  animation: halo 4.5s ease-in-out infinite;
}
.coin {
  position: relative;
  z-index: 1;
  width: 150px; height: 150px;
  object-fit: contain;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 14px 26px rgba(20,19,15,0.18));
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes halo  { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

.show-eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange-d); font-weight: 600; margin-bottom: 14px;
}
.show-title {
  font-family: var(--mono);
  font-size: clamp(34px, 6vw, 60px);
  letter-spacing: -2px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 18px;
}
.show-tag {
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--ink-soft);
  max-width: 30ch;
  line-height: 1.5;
  margin-bottom: 36px;
}
.show-tag .orange { color: var(--orange-d); font-weight: 600; }

/* git-diff terminal — the "fork.patch" */
.diff {
  width: 100%;
  max-width: 560px;
  text-align: left;
  background: #14130f;
  border: 1px solid #2a2820;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(20,19,15,0.5);
  margin-bottom: 38px;
}
.diff-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: #1c1a14;
  border-bottom: 1px solid #2a2820;
}
.diff-bar .d { width: 11px; height: 11px; border-radius: 50%; }
.diff-bar .d.r { background: #ff6a5f; }
.diff-bar .d.y { background: #f1b023; }
.diff-bar .d.g { background: #4bd07a; }
.diff-bar .file {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12px; color: #8a8576; letter-spacing: 0.4px;
}
.diff-body {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  color: #c9c4b4;
  overflow-x: auto;
}
.diff-body .ln { display: block; white-space: pre; }
.diff-body .hd { color: #6f6a5b; }
.diff-body .rm { color: #ff8478; }
.diff-body .ad { color: #5fe08c; }
.diff-body .kp { color: #c9c4b4; }
.diff-body .kp .tag { color: #f1b023; }
.diff-body .ok { color: #5fe08c; font-weight: 600; }

.cta-row.center { justify-content: center; }

/* thin section divider used between landing blocks */
.rule { max-width: 820px; margin: 0 auto; height: 1px; background: var(--line-2); }

.crumb {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 1px;
  color: var(--orange-d); font-weight: 600;
  text-transform: uppercase; margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
}
.crumb::before { content: ""; width: 18px; height: 1px; background: var(--orange-d); }
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 12px;
  margin-bottom: 22px;
}
.kicker .c { color: var(--orange-d); }
.page h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -1.8px;
  font-weight: 700;
  line-height: 1.04;
  margin-bottom: 20px;
}
.page h1 .orange { color: var(--orange); }
.page .lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 62ch;
  margin-bottom: 16px;
}
.page .lede b { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .12s;
}
.btn:hover { background: var(--orange-d); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: transparent; border-color: var(--orange); color: var(--orange); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* section blocks inside a page */
.block { padding: 48px 0; border-top: 1px solid var(--line-2); margin-top: 12px; }
.block:first-of-type { border-top: none; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--orange-d); font-weight: 600; margin-bottom: 16px;
}
.block h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -1px; font-weight: 700; line-height: 1.1;
  margin-bottom: 16px; max-width: 20ch;
}
.block h2 .orange { color: var(--orange); }
.block p.body { color: var(--ink-soft); font-size: 16px; line-height: 1.72; max-width: 64ch; margin-bottom: 16px; }
.block p.body b { color: var(--ink); font-weight: 600; }
.block p.body a { color: var(--orange); font-weight: 600; }
.block p.body a:hover { text-decoration: underline; }

/* contract proof card */
.contract {
  margin: 28px 0 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  background: var(--bg-soft);
}
.contract .ct-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 14px;
}
.contract .ct-head .v {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange); margin-left: auto; letter-spacing: 0.4px;
}
.contract .ct-head .v .d { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.contract .addr-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.contract .addr {
  flex: 1; min-width: 0;
  font-size: 14px;
  color: var(--ink);
  word-break: break-all;
  line-height: 1.5;
}
.contract .verify {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--orange);
  white-space: nowrap;
}
.contract .verify:hover { text-decoration: underline; }
.contract .ct-body { font-size: 15.5px; line-height: 1.7; color: var(--ink); margin-bottom: 16px; }
.contract .ct-body b { color: var(--orange-d); font-weight: 700; }
.contract .ct-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line-2); }
.contract .ct-foot .net { font-size: 13px; color: var(--muted); }

/* exploit split — plain columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 8px; }
.note .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase;
  font-weight: 700; margin-bottom: 14px; color: var(--muted);
}
.note .label .d { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.note.good .label { color: var(--orange); }
.note.good .label .d { background: var(--orange); }
.note h3 { font-size: 20px; letter-spacing: -0.4px; margin-bottom: 10px; font-weight: 600; }
.note p { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.note p + p { margin-top: 12px; }
.note p .hl { color: var(--ink); font-weight: 600; }

/* bridge — plain inline flow */
.bridge {
  display: flex; align-items: flex-start; gap: 26px; flex-wrap: wrap;
  margin: 32px 0 8px;
}
.chain { max-width: 180px; }
.chain .nm { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.chain.s .nm { color: var(--orange); }
.chain .role { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.arrow { color: var(--muted-2); font-size: 22px; margin-top: -2px; }

/* flow steps — left-rail accent, mono index */
.flow { display: grid; gap: 16px; margin-top: 8px; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start;
  padding: 26px 26px 26px 24px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--orange);
  border-radius: 0 12px 12px 0;
}
.step .num {
  font-family: var(--mono);
  font-weight: 600; font-size: 14px; letter-spacing: 0.5px;
  color: var(--orange-d); line-height: 1.2;
  padding-top: 4px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.4px; font-weight: 600; }
.step p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; max-width: 60ch; }
.step p .hl { color: var(--ink); font-weight: 600; }

/* three columns — plain text, mono index + top rule */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 8px; }
.card { padding-top: 18px; border-top: 2px solid var(--orange); }
.card .step-n { font-family: var(--mono); font-size: 11px; color: var(--orange-d); font-weight: 600; letter-spacing: 1.2px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 9px; letter-spacing: -0.3px; font-weight: 600; }
.card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }

/* quote */
.quote-block { padding: 48px 0; border-top: 1px solid var(--line-2); margin-top: 12px; }
.quote-block .quote {
  font-size: clamp(24px, 3.6vw, 36px);
  letter-spacing: -1.2px; font-weight: 700; line-height: 1.2;
  max-width: 24ch; margin-bottom: 16px;
}
.quote-block .quote .orange { color: var(--orange); }
.quote-block .by {
  font-family: var(--mono);
  color: var(--orange-d); font-size: 11.5px; letter-spacing: 1.4px;
  text-transform: uppercase; font-weight: 600;
}

/* ============ EXPLORER ============ */
.exp-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin-bottom: 36px; }
.exp-head .desc { color: var(--ink-soft); font-size: 15px; margin-top: 10px; max-width: 540px; line-height: 1.6; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px; color: var(--orange-d); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
}
.live-pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(241,176,35,0.6); animation: pulse 1.6s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(241,176,35,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(241,176,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(241,176,35,0); }
}

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 36px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stat { padding: 22px 22px 22px 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line-2); }
.stat .k { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 9px; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -0.8px; }
.stat .v.orange { color: var(--orange); }

.table-wrap { overflow: hidden; }
.t-head, .t-row {
  display: grid;
  grid-template-columns: 150px 1.3fr 1.1fr 1fr 130px 70px;
  align-items: center; gap: 12px; padding: 15px 0;
}
.t-head { font-family: var(--mono); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px; border-bottom: 1px solid var(--line); }
.t-row { border-bottom: 1px solid var(--line-2); font-size: 14px; animation: rowIn .5s ease; }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(-8px); background: rgba(241,176,35,0.07); }
  to   { opacity: 1; transform: translateY(0); background: transparent; }
}
.t-row .hash { color: var(--orange); }
.t-row .addr { color: var(--ink); }
.t-row .shield-from { color: var(--ink-soft); }
.t-row .amt { color: var(--ink); font-weight: 700; text-align: right; }
.t-row .age { color: var(--muted); text-align: right; }
.badge-ok, .badge-shield {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px; color: var(--orange-d); font-weight: 600;
}
.badge-ok .d { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.exp-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 32px; line-height: 1.7; }

/* footer note inside pages */
.page-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 12.5px; line-height: 1.6; max-width: 64ch; }

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .topbar {
    grid-template-columns: auto 1fr;
    height: auto;
    row-gap: 10px;
    padding: 12px 16px;
  }
  .tb-brand { order: 1; justify-self: start; flex-direction: row; gap: 9px; }
  .tb-right { order: 2; justify-self: end; }
  .tb-nav { order: 3; grid-column: 1 / -1; justify-self: center; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 10px; width: 100%; justify-content: center; }
  .coin-wrap { width: 160px; height: 160px; }
  .coin { width: 120px; height: 120px; }
  .page { padding: 40px 22px 72px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; gap: 28px; }
  .bridge { flex-direction: column; }
  .bridge .arrow { transform: rotate(90deg); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .t-head, .t-row { grid-template-columns: 1.3fr 1fr 70px; }
  .t-head .c-hash, .t-head .c-from, .t-head .c-status,
  .t-row .hash, .t-row .shield-from, .t-row .status { display: none; }
}
@media (max-width: 480px) {
  .connect-btn .label { display: none; }
  .connect-btn { padding: 11px 14px; }
}
