/* The shell the working pages share with the front page. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
canvas { display: block; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
h3 { font-size: 19px; line-height: 1.25; }
p  { margin: 0; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding-inline: var(--pad); }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.dim { color: var(--muted-2); }
.call { color: var(--call); }
.put { color: var(--put); }
.right { text-align: right; }

.label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }

/* ---- the bar and the nav ------------------------------------------------------- */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip-in { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding-inline: 44px; font-size: 12.5px; color: var(--muted); text-align: center; }
.strip-in b { color: var(--call); font-weight: 600; }
.strip .x { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.strip .x:hover { color: var(--ink); }

.nav { position: sticky; top: 0; z-index: 70; padding-block: 14px; }
.nav-in {
  display: flex; align-items: center; gap: 26px; height: 56px; padding: 0 10px 0 20px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8); border-radius: 999px;
  box-shadow: 0 12px 40px rgba(10, 27, 51, 0.06);
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: -0.03em; }
.brand svg { width: 18px; height: 18px; color: var(--call); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 13px; font-weight: 600; color: var(--muted); transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.x-link { display: inline-flex; color: var(--muted); transition: color 0.2s var(--ease); }
.x-link svg { width: 15px; height: 15px; display: block; }
.x-link:hover { color: var(--ink); }

/* ---- buttons -------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  background: #fff; color: var(--ink); border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), transform 0.15s var(--ease), background 0.2s var(--ease);
}
.btn:hover { border-color: var(--line-2); }
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.btn-primary:hover { background: #14213f; border-color: #14213f; }
.btn-call { background: var(--call); color: #fff; border-color: var(--call); }
.btn-put { background: var(--put); color: #fff; border-color: var(--put); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 13.5px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }

/* ---- surfaces --------------------------------------------------------------------- */
.panel, .block { background: #fff; border: 1px solid rgba(226, 232, 240, 0.9); border-radius: var(--r-l); box-shadow: var(--shadow-sm); }
.panel-pad { padding: 22px; }
.block { padding: 24px; }
.block + .block { margin-top: 18px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }

.rows { display: grid; }
.row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--surface-3); font-size: 13.5px; }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--muted-2); }
.row .v { font-weight: 500; color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 11.5px; font-weight: 600; color: var(--muted);
}
.chip-call { color: var(--call); border-color: #bfdbfe; background: var(--call-dim); }
.chip-put { color: var(--put); border-color: #fecdd3; background: var(--put-dim); }

/* ---- motion ------------------------------------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(16px); }
[data-reveal].seen { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.rise { animation: rise 0.8s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.rolling { animation: roll 0.4s var(--ease-out); }
@keyframes roll { from { opacity: 0; transform: translateY(-0.3em); } }
@media (prefers-reduced-motion: reduce) {
  .rise, .rolling { animation: none; }
  [data-reveal], [data-reveal].seen { opacity: 1; transform: none; transition: none; }
}

/* ---- footer -------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); margin-top: 80px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; padding-block: 40px 30px; }
.foot a { font-size: 13px; color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.legal { color: var(--muted-2); font-size: 12.5px; max-width: 58ch; line-height: 1.6; }
/* The token address. Quiet by default: it is a fact somebody occasionally
   needs, not an advertisement. */
.ca { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; transition: border-color 0.2s var(--ease); }
.ca:hover { border-color: var(--line-2); }
.ca-k { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted-2); text-transform: uppercase; }
.ca-v { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .ca-v { font-size: 11px; } }

/* ---- toast ----------------------------------------------------------------------------- */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
  padding: 12px 18px; background: var(--ink-2); color: #fff; border-radius: 999px;
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; z-index: 400;
  box-shadow: 0 12px 40px rgba(10, 27, 51, 0.18);
  max-width: min(520px, calc(100vw - 32px));
  transition: opacity 0.22s var(--ease), transform 0.28s var(--ease);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--put); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.pill-dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-accent { color: var(--call); }
.pill-accent::before { animation: beat 2.4s var(--ease) infinite; }
.pill-warn { color: var(--put); }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

@media (max-width: 900px) { .nav-links, .hide-xs { display: none !important; } }
