/* Radon⁸⁶ — shared styles */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-2: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --ink: #0a0b0e;
  --ink-2: #2a2d35;
  --muted: #666b7a;
  --faint: #a0a4b0;
  --line: #e5e7ed;
  --line-2: #d4d8e1;
  --accent: #1f55ff;
  --accent-2: #4a78ff;
  --accent-ink: #1440d6;
  --accent-soft: #e9efff;
  --accent-rgb: 31, 85, 255;
  --buy: #0c8f4f;
  --sell: #d4313f;
  --warn: #9a6700;
  --dot: 12, 14, 20;
  --glass: rgba(255, 255, 255, 0.82);
  --shadow: 0 1px 2px rgba(10, 12, 20, 0.06), 0 12px 32px -12px rgba(10, 12, 20, 0.14);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 68px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #06070a;
  --bg-2: #0a0c11;
  --surface: #0e1016;
  --surface-2: #13161e;
  --ink: #eef0f5;
  --ink-2: #c4c8d3;
  --muted: #8a8fa0;
  --faint: #575c6b;
  --line: #1c1f28;
  --line-2: #2a2e3a;
  --accent: #3d74ff;
  --accent-2: #7d9dff;
  --accent-ink: #a9bfff;
  --accent-soft: #111a35;
  --accent-rgb: 61, 116, 255;
  --buy: #3fcf7f;
  --sell: #ff6b70;
  --warn: #f0c04a;
  --dot: 236, 239, 245;
  --glass: rgba(9, 10, 14, 0.78);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' on;
  overflow-x: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(var(--accent-rgb), 0.28);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-feature-settings: 'zero' on;
}

.num {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.up {
  color: var(--buy);
}

.down {
  color: var(--sell);
}

/* ── Mark ───────────────────────────────────────────────── */

.mark {
  display: inline-flex;
  align-items: flex-start;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.mark sup {
  font-size: 0.48em;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 0.06em;
  color: var(--accent);
  line-height: 1;
  vertical-align: 0;
  position: relative;
  top: -0.05em;
}

.mark-chip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: block;
  flex: none;
}

:root[data-theme='light'] .mark-chip {
  box-shadow: 0 0 0 1px rgba(6, 7, 10, 0.08);
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-name {
  font-size: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 18px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--bg-2);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6);
  animation: ping 2.4s infinite;
  flex: none;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
  }
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ca-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 13px;
  max-width: 260px;
  transition: border-color 0.2s, background 0.2s;
}

.ca-chip .k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-2);
}

.ca-chip .v {
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ca-chip[data-state='soon'] {
  cursor: default;
}

.ca-chip[data-state='soon'] .v {
  color: var(--muted);
  font-family: var(--sans);
}

.ca-chip[data-state='set']:hover {
  border-color: var(--accent);
}

.ca-chip[data-copied] .v {
  color: var(--accent);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s var(--ease);
  flex: none;
}

.icon-btn:hover {
  border-color: var(--ink);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease), opacity 0.2s;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-ink {
  background: var(--ink);
  color: var(--bg);
}

.btn-ink:hover {
  opacity: 0.88;
}

.btn-ghost {
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-small {
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

.buy-btn[hidden] {
  display: none;
}

.menu-btn {
  display: none;
}

.theme-btn .moon {
  display: none;
}

:root[data-theme='dark'] .theme-btn .sun {
  display: none;
}

:root[data-theme='dark'] .theme-btn .moon {
  display: block;
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .site-header.open .site-nav {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-header.open .site-nav a {
    padding: 14px 12px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .brand-name {
    display: none;
  }

  .ca-chip {
    max-width: 150px;
    height: 34px;
    padding: 0 10px 0 8px;
  }

  .ca-chip .k {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .buy-btn {
    display: none;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }
}

/* ── Sections & type ────────────────────────────────────── */

.section {
  padding: clamp(72px, 11vw, 140px) 0;
  position: relative;
}

.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}

.display {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  font-weight: 450;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}

.display .line {
  display: block;
}

.title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  font-weight: 520;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.lede {
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  margin: 18px 0 0;
  text-wrap: pretty;
}

/* ── Cards, tables, pills ───────────────────────────────── */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-width: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--mono);
  background: var(--bg-2);
  color: var(--muted);
  white-space: nowrap;
}

.pill.buy {
  color: var(--buy);
  background: color-mix(in srgb, var(--buy) 12%, transparent);
}

.pill.sell {
  color: var(--sell);
  background: color-mix(in srgb, var(--sell) 12%, transparent);
}

.pill.accent {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.data-table th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.data-table th[data-sort]:hover {
  color: var(--ink);
}

.data-table th.sorted::after {
  content: ' ↓';
}

.data-table th.sorted.asc::after {
  content: ' ↑';
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table .r {
  text-align: right;
}

.data-table tbody tr {
  transition: background 0.25s;
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

.data-table tr.flash {
  animation: rowflash 1.6s var(--ease);
}

@keyframes rowflash {
  0% {
    background: rgba(var(--accent-rgb), 0.18);
  }
  100% {
    background: transparent;
  }
}

.sym {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sym b {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sym small {
  color: var(--muted);
  font-size: 12.5px;
}

.sym-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--ink-2);
  flex: none;
}

.proof-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-ink);
}

.proof-link:hover {
  text-decoration: underline;
}

.empty {
  padding: 28px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.skeleton {
  display: inline-block;
  min-width: 3ch;
  color: transparent !important;
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--line) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: var(--accent-ink);
}

.footer-note {
  color: var(--muted);
  max-width: 44ch;
  margin: 14px 0 0;
}

.footer-bottom {
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 12.5px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ── Modal ──────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 5, 8, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(440px, 100%);
  max-height: min(640px, 92vh);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.25s var(--ease);
  overflow: hidden;
}

.modal.open .modal-card {
  transform: none;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
}

.modal-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.modal-body {
  padding: 4px 20px 20px;
  overflow: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  box-shadow: var(--shadow);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
