/* Shared by the secondary pages (privacy, terms, 404). The home page keeps
   its own inline styles; the tokens, header and footer here mirror them. */
:root {
  --ink: #090d14;
  --ink-raised: #111726;
  --line: #1e2636;
  --text: #eef2f8;
  --text-dim: #8c96ab;
  --trader: #f5a524;
  --investor: #8b9bfb;

  --display: "Instrument Serif", ui-serif, Georgia, serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --data: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--investor); outline-offset: 3px; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-name { font-family: var(--display); font-size: 23px; letter-spacing: 0.01em; white-space: nowrap; }
.brand-name em { font-style: italic; color: var(--text-dim); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: #39455e; background: #141b2b; }
.btn-solid { background: var(--text); color: var(--ink); border-color: var(--text); font-weight: 700; }
.btn-solid:hover { background: #fff; border-color: #fff; }
.header-link { color: var(--text-dim); font-size: 14px; text-decoration: none; }
.header-link:hover { color: var(--text); }
@media (max-width: 480px) { .header-inner .btn-solid { display: none; } }

/* document */
.doc { padding-block: 64px 80px; }
.doc-head { max-width: 70ch; }
.kicker {
  font-family: var(--data);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.doc h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.05;
  margin: 14px 0 0;
}
.updated { margin-top: 14px; font-family: var(--data); font-size: 12.5px; color: var(--text-dim); }
.doc-body { max-width: 70ch; margin-top: 40px; color: #c3ccdd; }
.doc-body h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text);
  margin: 44px 0 0;
  scroll-margin-top: 90px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body ul { margin: 14px 0 0; }
.doc-body ul { padding-left: 20px; }
.doc-body li + li { margin-top: 8px; }
.doc-body strong { color: var(--text); font-weight: 500; }
.doc-body a { color: var(--text); text-underline-offset: 3px; }
.callout {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--trader);
  border-radius: 10px;
  background: var(--ink-raised);
}
.callout p:first-child { margin-top: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 56px 30px; background: #070a10; }
.foot-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
.foot-brand p { color: var(--text-dim); font-size: 14px; margin: 14px 0 0; max-width: 36ch; }
.foot-mail { display: inline-block; margin-top: 14px; font-family: var(--data); font-size: 13.5px; color: var(--text); text-decoration: none; }
.foot-mail:hover { color: var(--investor); }
.foot-col h4 {
  margin: 0 0 14px;
  font-family: var(--data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: #c3ccdd; font-size: 14.5px; text-decoration: none; }
.foot-col a:hover { color: var(--text); }
.disclaimer { margin: 40px 0 0; font-size: 12.5px; line-height: 1.65; color: #6f7a90; max-width: 88ch; }
.disclaimer strong { color: #93a0b6; font-weight: 500; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--data);
  font-size: 12px;
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
