:root {
  color-scheme: light;
  --paper: #f3f1f8;
  --white: #fdfbff;
  --ink: #201936;
  --muted: #5b526a;
  --line: #d5cedf;
  --violet: #653bb0;
  --lavender: #d9c8ff;
  --plum: #2b1e43;
  --board: #1b1429;
  --peach: #ffc091;
  --mono: "IBM Plex Mono", monospace;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--body); }
p, dd { text-wrap: pretty; }
h2, h3 { text-wrap: balance; }
body, h1, h2, h3, p, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
:focus-visible { outline: 2px solid #8759d7; outline-offset: 4px; }
::selection { background: var(--lavender); color: var(--ink); }
.shell { width: min(1192px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 2; top: 10px; left: 10px; padding: 9px 15px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.wordmark { display: inline-flex; align-items: center; justify-self: start; gap: 9px; font: 700 29px/.95 var(--body); letter-spacing: -.075em; }
.brand-period { color: var(--violet); margin-left: -7px; }
.brand-mark { width: 30px; height: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; padding: 6px; background: var(--ink); border-radius: 8px; transform: rotate(-7deg); }
.brand-mark i { display: block; border-radius: 100% 100% 10% 100%; background: var(--lavender); transform: rotate(0deg); }
.brand-mark i:nth-child(2) { transform: rotate(90deg); }
.brand-mark i:nth-child(3) { transform: rotate(-90deg); }
.brand-mark i:nth-child(4) { transform: rotate(180deg); background: #ffb387; }
.nav { display: flex; gap: clamp(18px, 3vw, 42px); font-size: 14px; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--violet); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav a, .site-footer a:not(.wordmark), .networks a { transition: color .18s; }
.nav a:hover, .site-footer a:hover, .networks a:hover { color: var(--violet); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: 6px; min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 700; line-height: 1.15; white-space: nowrap; transition: color .15s, background-color .15s, border-color .15s, transform .15s ease-out; }
.button:not(:disabled):active { transform: scale(.97); }
.button span { font-size: 18px; line-height: 1; }
.button-primary { background: var(--plum); color: white; }
.button-primary:hover { background: #4b2d71; }
.button-text { padding-inline: 5px; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #a089c4; }
.button-text:hover { color: var(--violet); }

.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: clamp(26px, 5vw, 70px); align-items: center; padding-block: clamp(43px, 6vw, 82px) clamp(36px, 5vw, 66px); }
.hero-copy { padding-block: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; }
h1 { font-size: clamp(64px, 8vw, 113px); line-height: .83; font-weight: 600; letter-spacing: -.026em; }
.page-title { font-size: clamp(43px, 6vw, 73px); line-height: .96; }
.lead { margin-top: 27px; max-width: 37ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 23px; }
.hero-actions .button { min-height: 48px; }

.hero-art { position: relative; display: grid; place-items: stretch; isolation: isolate; min-height: 366px; overflow: hidden; border-radius: 12px; color: #fff7ff; background: var(--board); }
.orbital-grid { position: absolute; inset: 0 0 0 auto; z-index: -1; width: 36%; background: #352050 url("./orbit.webp") 70% center/auto 120% no-repeat; }
.chart-card { display: flex; flex-direction: column; margin-right: clamp(74px, 16%, 120px); padding: 21px clamp(17px, 2.7vw, 33px) 16px; border-right: 1px solid #62477c; background: var(--board); }
.chart-top, .chart-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chart-top { padding-bottom: 12px; border-bottom: 1px solid #d1b8f33a; }
.chart-kicker, .preview-label, .chart-bottom > span { font: 500 12px/1.25 var(--body); }
.chart-kicker { color: #e2d6f2; }
.preview-label { color: #e6daff; border-bottom: 1px solid #8b6ba9; padding-bottom: 3px; }
.chart-pair { display: flex; align-items: start; gap: 10px; margin-top: 14px; }
.chart-pair strong { display: block; font: 600 30px/.95 var(--display); }
.chart-pair small { display: block; margin-top: 4px; color: #d4c6e1; font-size: 12px; }
.chart-change { margin-left: auto; color: var(--peach); font: 500 12px/1.6 var(--mono); }
.chart-readout { margin-top: 10px; font: 500 clamp(24px, 2.4vw, 32px)/1.2 var(--mono); letter-spacing: -.06em; }
.chart-plot { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); align-items: stretch; flex: 1 0 130px; gap: 12px; min-height: 130px; margin-top: 11px; }
.chart-plot canvas { display: block; width: 100%; height: 100%; min-height: 0; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; padding-block: 5px; color: #c9b6da; font: 400 10px/1.2 var(--mono); }
.chart-bottom { margin-top: 9px; }
.chart-controls { display: flex; gap: 5px; }
.chart-controls button { min-width: 42px; min-height: 42px; padding: 3px 5px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #e1d3ef; font: 500 11px/1 var(--body); }
.chart-controls button:hover { border-color: #ceafff68; }
.chart-controls button[aria-pressed="true"] { background: #ccb1ff23; color: #f4ebff; }
.chart-bottom > span { color: #d3c4e3; }

.networks { border-block: 1px solid var(--line); background: #eae5f2; }
.networks-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 67px; }
.network-caption, .networks a { color: var(--muted); font: 500 13px/1.35 var(--body); }
.network-names { display: flex; align-items: center; gap: clamp(15px, 4vw, 52px); }
.network-names > span { display: inline-flex; align-items: center; gap: 8px; font: 600 17px/1 var(--body); }
.network-icon { display: inline-block; width: 16px; height: 16px; flex: 0 0 auto; }
.network-icon.solana { height: 15px; background: repeating-linear-gradient(180deg, #6744b5 0 3px, transparent 3px 6px); transform: skewX(-17deg); }
.network-icon.ethereum { background: linear-gradient(90deg, #7860ab 50%, #a08acb 50%); clip-path: polygon(50% 0, 84% 54%, 50% 75%, 16% 54%, 50% 0, 50% 100%, 14% 63%, 50% 81%, 86% 63%, 50% 100%); }
.network-icon.base { border-radius: 50%; background: linear-gradient(var(--violet), var(--violet)) 0 50%/70% 2px no-repeat, #d6c9ee; border: 1px solid #ad90e5; }

.section { padding-block: clamp(52px, 7vw, 88px); scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px 40px; margin-bottom: 25px; }
h2 { font-size: clamp(38px, 5vw, 67px); letter-spacing: -.017em; font-weight: 600; line-height: .98; }
.section-heading > p { max-width: 360px; color: var(--muted); padding-bottom: 4px; }
.market-panel { background: var(--white); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.market-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 15px 18px; }
.market-views { display: flex; gap: 3px; padding: 3px; border-radius: 7px; background: #f0ebf4; }
.market-views button { min-height: 36px; padding: 5px 13px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.market-views button[aria-pressed="true"] { border-color: #e3dce9; background: var(--white); color: var(--ink); box-shadow: 0 1px 3px #30184015; }
.market-views button:hover { color: var(--violet); }
.market-form { display: flex; gap: 7px; align-items: center; }
.search-field, .chain-field { display: flex; align-items: center; border: 1px solid #9589a5; border-radius: 6px; background: var(--white); }
.search-field { gap: 9px; padding-left: 11px; }
.search-field:focus-within, .chain-field:focus-within { outline: 2px solid #8759d7; outline-offset: 2px; }
.search-icon { width: 12px; height: 12px; margin-right: 1px; flex: 0 0 auto; position: relative; border: 1.5px solid var(--muted); border-radius: 50%; }
.search-icon::after { content: ""; width: 5px; height: 1.5px; background: var(--muted); position: absolute; right: -4px; bottom: -2px; transform: rotate(47deg); }
.search-field input, .chain-field select { min-height: 37px; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 13px; }
.search-field input { width: min(19vw, 216px); min-width: 111px; padding: 0 9px 0 0; }
.chain-field select { max-width: 100%; padding-inline: 8px; cursor: pointer; }
.search-submit, .refresh-button { min-height: 39px; padding-inline: 11px; background: #eee6f8; color: var(--plum); border-color: #e9dff2; font-size: 13px; }
.search-submit:hover, .refresh-button:hover { background: #e4d6f4; }
.refresh-button { width: 38px; padding: 0; font-size: 22px; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: -3px; }
table { width: 100%; min-width: 570px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
thead { background: #f3eef5; color: #61536c; }
th, td { text-align: left; padding: 11px 18px; }
th { font: 600 12px/1.3 var(--body); white-space: nowrap; }
td { height: 61px; border-top: 1px solid #ebe5ed; }
th:first-child, td:first-child { padding-left: 22px; }
th:last-child, td:last-child { text-align: center; }
td[colspan] { height: 116px; text-align: center; color: var(--muted); }
td:nth-child(n+3):not(:last-child) { font: 500 13px/1.35 var(--mono); white-space: nowrap; }
tr:hover td:not([colspan]) { background: #faf7fc; }
.pair-name { display: inline-block; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
a.pair-name:hover { text-decoration: underline; color: var(--violet); }
.pair-meta { display: block; color: var(--muted); font-size: 11px; line-height: 1.25; }
.pair-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 33px; height: 33px; border-radius: 8px; background: #e8dcfa; color: #533679; font: 600 11px/1 var(--mono); }
.pair-info { display: flex; align-items: center; gap: 9px; min-width: 115px; }
.chain-label { display: inline-flex; align-items: center; gap: 6px; color: #544465; font-size: 12px; white-space: nowrap; }
.chain-label::before { content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: #986bd2; }
.chain-label[data-chain="ethereum"]::before { background: #7a79ca; }
.chain-label[data-chain="base"]::before { background: #4c6cd2; }
.change-up { color: #176251; }
.change-down { color: #a53d59; }
.save-pair { width: 35px; min-height: 34px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #665174; font-size: 21px; line-height: 1; }
.save-pair:hover { background: #f3e9fb; border-color: #ebdcf4; }
.save-pair[aria-pressed="true"] { background: #ebdffa; color: #5a36a5; }
.market-status { padding: 10px 20px; border-top: 1px solid #ebe5ed; color: var(--muted); font: 500 12px/1.5 var(--body); }

.toolkit { background: #eae5f2; border-block: 1px solid var(--line); }
.toolkit .section { display: grid; grid-template-columns: .65fr 1fr; gap: 30px 52px; padding-block: 49px; }
.pair-guide { margin: 0; border-top: 1px solid #c9bdd7; }
.pair-guide > div { display: grid; grid-template-columns: minmax(115px, .37fr) 1fr; align-items: baseline; gap: 9px 20px; padding: 13px 0; border-bottom: 1px solid #c9bdd7; }
.pair-guide dt { font-weight: 700; }
.pair-guide dd { margin: 0; color: var(--muted); font-size: 15px; }

.setup-panel { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5.2vw, 73px); padding: clamp(26px, 5vw, 63px); border-radius: 12px; color: #fff7ff; background: var(--board); }
.setup-intro > p { margin-top: 13px; color: #dbcee8; }
.setup-steps { display: grid; gap: 9px; margin-top: 18px; padding-left: 1.25em; color: #e4d9ee; font-size: 14px; }
.setup-steps li { padding-left: .28em; }
.setup-steps li::marker { color: var(--lavender); font-weight: 700; }
kbd { padding: 1px 4px; border: 1px solid #88749c; border-radius: 4px; font: 500 11px/1 var(--body); white-space: nowrap; }
.install-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.button-lavender { color: var(--board); background: var(--lavender); }
.button-lavender:hover { background: #e8dbff; }
.bookmarklet-link { cursor: grab; }
.bookmarklet-link:active { cursor: grabbing; }
.copy-button { border-color: #80699a; background: transparent; color: #f1e3fa; }
.copy-button:hover { background: #3e2d53; }
.setup-intro .install-note, .setup-intro .install-status { max-width: 48ch; font-size: 13px; }
.setup-intro .install-status { min-height: 1.5em; margin-top: 5px; color: var(--lavender); }
.install-note a { text-decoration: underline; text-underline-offset: 3px; }

.install-demo { min-width: 0; margin: 0; }
.demo-browser { border: 1px solid #716280; border-radius: 9px; overflow: hidden; background: #eee8f6; color: var(--ink); }
.browser-tab { display: flex; align-items: center; gap: 14px; padding: 11px 13px 8px; background: #d8cce7; font-size: 12px; font-weight: 700; }
.browser-dots { flex: 0 0 auto; width: 27px; height: 5px; background: radial-gradient(circle, #725a8c 52%, transparent 62%) left center / 9px 5px repeat-x; }
.browser-address { margin: 7px 12px; padding: 4px 10px; border-radius: 4px; background: #fbf8ff; color: #534265; font-size: 12px; }
.browser-bookmarks { padding: 5px 12px; border-block: 1px solid #d9cee5; background: #f5effa; }
.browser-bookmarks > span { display: inline-grid; place-items: center; min-height: 29px; min-width: 107px; padding: 3px 8px; border: 1px dashed #917ba8; border-radius: 4px; color: #604c77; font-size: 12px; }
.browser-bookmarks > span.is-target { border-color: var(--violet); background: #eee0fb; }
.browser-bookmarks > span.is-installed { border: 1px solid var(--violet); background: #e9dcfa; color: #482579; font-weight: 700; }
.browser-page { display: grid; place-items: center; min-height: clamp(101px, 12vw, 158px); }
.browser-bookmark { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 5px; background: var(--violet); color: #fff; font-size: 13px; font-weight: 700; }
.browser-bookmark > span { font-size: 16px; line-height: 1; }
.demo-cursor { position: absolute; bottom: -13px; right: 1px; width: 16px; height: 21px; background: #231735; clip-path: polygon(0 0, 0 81%, 31% 64%, 53% 100%, 71% 88%, 48% 56%, 90% 56%); visibility: hidden; }
.demo-browser.is-playing .demo-cursor { visibility: visible; }
.demo-browser.is-complete .browser-bookmark { visibility: hidden; }
.install-demo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; color: #dbcee8; font-size: 13px; }
.replay-button { min-height: 40px; padding: 4px 10px; border: 1px solid #80699a; border-radius: 6px; background: transparent; color: #f6eaff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.replay-button:hover { background: #3e2d53; }
.replay-button span { margin-left: 4px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer a:not(.wordmark) { color: var(--muted); font-size: 13px; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
  .hero { gap: 25px; }
  .hero-art { min-height: 330px; }
  .chart-card { margin-right: 58px; }
  h1 { font-size: clamp(50px, 7.3vw, 81px); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 38px); }
  .hero { grid-template-columns: 1fr; gap: 27px; padding-block: 39px 30px; }
  .hero-copy { padding-block: 0; }
  h1 { font-size: clamp(58px, 11.5vw, 84px); }
  .hero-art { min-height: 305px; }
  .header-inner { min-height: 61px; }
  .nav { gap: 15px; font-size: 13px; }
  .network-caption { display: none; }
  .network-names > span { font-size: 15px; }
  .networks-inner { flex-wrap: wrap; gap: 10px; padding-block: 15px; min-height: 52px; }
  .section-heading { flex-wrap: wrap; }
  .market-toolbar { flex-wrap: wrap; padding: 12px; }
  .market-form { width: 100%; }
  .search-field { min-width: 0; flex: 1; }
  .search-field input { min-width: 0; width: 100%; }
  .toolkit .section { grid-template-columns: 1fr; gap: 19px; }
  .setup-panel { gap: 25px; grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
  .wordmark { font-size: 24px; }
  .brand-mark { width: 27px; height: 27px; }
  .nav { gap: 10px; font-size: 12px; }
  .hero-art { min-height: 296px; }
  .chart-card { margin-right: 25px; padding: 15px 13px 11px; }
  .chart-plot { flex-basis: 105px; min-height: 105px; }
  .network-names { gap: 13px; }
  .network-names > span { gap: 5px; font-size: 14px; }
  .network-icon { width: 12px; height: 12px; }
  .pair-guide > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-wrap: wrap; padding-block: 16px; }
}
@media (max-width: 350px) {
  .header-inner { gap: 8px; }
  .wordmark { gap: 7px; font-size: 22px; }
  .nav { gap: 7px; font-size: 11px; }
}

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  .site-header { view-transition-name: site-header; }
  main { view-transition-name: site-content; }
  html:not(.native-page-transition) main { animation: page-in 420ms cubic-bezier(.2, .75, .25, 1) both; }
  html.page-departing main { animation: page-out 150ms ease-in both; }
  ::view-transition { pointer-events: none; }
  ::view-transition-old(root), ::view-transition-new(root), ::view-transition-group(root) { animation: none; }
  ::view-transition-old(site-header), ::view-transition-new(site-header) { animation-duration: 140ms; }
  ::view-transition-group(site-content) { animation: none; }
  ::view-transition-image-pair(site-content) { isolation: auto; }
  ::view-transition-old(site-content) { animation: page-out 175ms ease-in both; mix-blend-mode: normal; }
  ::view-transition-new(site-content) { animation: page-in 420ms 50ms cubic-bezier(.2, .75, .25, 1) both; mix-blend-mode: normal; }
  @keyframes page-in {
    from { opacity: 0; transform: translate(0, 16px); }
    to { opacity: 1; transform: translate(0, 0); }
  }
  @keyframes page-out {
    from { opacity: 1; transform: translate(0, 0); }
    to { opacity: 0; transform: translate(0, -9px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  html:not(.native-page-transition) main { animation: fade-page-in 300ms ease-out both; }
  html.page-departing main { animation: fade-page-out 115ms ease-in both; }
  .button:not(:disabled):active { transform: none; }
  @keyframes fade-page-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fade-page-out { from { opacity: 1; } to { opacity: 0; } }
}
