:root {
  --ground: #ffffff; --ground-2: #f1f9ff; --ink: #0c2b45; --ink-2: #41617a; --mute: #6f8aa0;
  --sky: #8fd3ff; --sky-2: #c9eaff; --blue: #2a97e8; --pale: #e4f4ff;
  --panel: rgba(255, 255, 255, .74); --panel-2: #eaf6ff; --line: rgba(42, 151, 232, .2);
  --sans: "Inter Tight", ui-sans-serif, system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --out: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.32, .72, 0, 1);
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { background: var(--ground); color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; }
button, input, textarea { font: inherit; color: inherit; }
.muted { color: var(--mute); }
.small { font-size: 13.5px; }
.mono { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.mono a:hover { color: var(--ink); }

/* buttons: the label rolls, the fill grows from the cursor, the press has a spring */
.btn { --x: 50%; --y: 50%; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; transition: transform .5s var(--spring), box-shadow .4s var(--out), color .3s; will-change: transform; }
.btn::before { content: ""; position: absolute; z-index: -1; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px; border-radius: 50%; transform: scale(0); transition: transform .65s var(--out); }
.btn:hover:not(:disabled)::before { transform: scale(46); }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(42, 151, 232, .7); }
.btn:active:not(:disabled) { transform: scale(.955); transition-duration: .12s; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-t { position: relative; display: inline-block; overflow: hidden; line-height: 1.3; }
.btn-t > span { display: block; transition: transform .5s var(--spring); }
.btn-t::after { content: attr(data-t); position: absolute; left: 0; right: 0; top: 100%; text-align: center; transition: transform .5s var(--spring); }
.btn:hover:not(:disabled) .btn-t > span, .btn:hover:not(:disabled) .btn-t::after { transform: translateY(-100%); }
.btn.lime { background: var(--sky); color: var(--ink); }
.btn.lime::before { background: var(--ink); }
.btn.lime:hover:not(:disabled) { color: #fff; }
.btn.ghost { background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.btn.ghost::before { background: var(--sky-2); }
.btn.plain { background: none; color: var(--ink); padding: 0 10px; box-shadow: none !important; }
.btn.plain::before { display: none; }
.btn.plain:hover { color: var(--blue); }
.btn.wide { width: 100%; }

/* top bar */
.top { position: absolute; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; gap: 28px; padding: 18px var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.top nav { display: flex; gap: 22px; margin-left: 6px; font-size: 14.5px; color: var(--ink-2); }
.top nav a { position: relative; transition: color .2s; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--out); }
.top nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.top nav a:hover { color: var(--ink); }
.top .btn { margin-left: auto; height: 38px; padding: 0 16px; font-size: 14px; font-family: var(--sans); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 96px 0 0; overflow: hidden; isolation: isolate; }
.bars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero { background: linear-gradient(180deg, #d9f0ff 0%, #eef8ff 48%, #fff 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(rgba(255,255,255,0), #fff); z-index: -1; }
.hero-copy { padding: 0 var(--gutter); max-width: 1120px; }
h1 { font-weight: 400; font-size: clamp(44px, 7.1vw, 104px); line-height: 1.02; letter-spacing: -.035em; }
h1 em { font-style: normal; color: var(--blue); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translateY(112%); transition: transform .95s var(--out); transition-delay: calc(var(--i) * 45ms); }
.has-risen .w > span { transform: none; }
.lede { max-width: 620px; margin-top: 22px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; }
.cta { display: flex; align-items: center; gap: 12px; margin-top: 26px; }

/* the $PROXY address */
.ca { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; height: 38px; padding: 0 6px 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); color: var(--ink); cursor: pointer; transition: transform .5s var(--spring), box-shadow .4s var(--out); }
.hero-copy .ca { margin-top: 16px; }
.ca:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--blue), 0 12px 24px -14px rgba(42, 151, 232, .7); }
.ca:active { transform: scale(.97); transition-duration: .12s; }
.ca:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ca b { font-weight: 500; font-size: 13.5px; }
.ca code { font: 12.5px var(--mono); color: var(--ink-2); }
.ca-short { display: none; }
.ca i { min-width: 58px; padding: 5px 10px; border-radius: 999px; background: var(--sky-2); font: 500 12px var(--sans); text-align: center; transition: background-color .25s, color .25s; }
.ca.is-copied i { background: var(--blue); color: #fff; }

/* the feed rail */
.rail { margin-top: 40px; padding: 0 0 26px; }
.rail-head { display: flex; align-items: center; gap: 9px; padding: 0 var(--gutter) 12px; font-size: 13.5px; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 2.2s infinite var(--out); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(42, 151, 232, .5); } 100% { box-shadow: 0 0 0 10px rgba(42, 151, 232, 0); } }
.rail-track { display: flex; gap: 12px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.rail-track::-webkit-scrollbar { display: none; }
.rail-empty { color: var(--ink-2); font-size: 15px; padding: 18px 20px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(14px); }
.post { flex: 0 0 min(340px, 82vw); padding: 15px 16px; border-radius: 16px; background: rgba(255, 255, 255, .82); box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px -24px rgba(12, 43, 69, .45); backdrop-filter: blur(14px); scroll-snap-align: start; transition: transform .45s var(--spring), background-color .25s; }
.post:hover { transform: translateY(-5px); background: #fff; }
.post.is-new { animation: arrive .9s var(--out); }
@keyframes arrive { from { opacity: 0; transform: translateX(-42px); } }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head b { display: block; font-weight: 500; font-size: 14.5px; }
.post-head span { font: 12px var(--mono); color: var(--mute); }
.post-head time { margin-left: auto; font: 12px var(--mono); color: var(--mute); white-space: nowrap; }
.post p { margin-top: 10px; font-size: 14.5px; line-height: 1.42; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ava { width: 36px; height: 36px; border-radius: 11px; object-fit: cover; flex: none; }
.ava.none { display: grid; place-items: center; background: var(--panel-2); font: 500 12px var(--mono); color: var(--blue); }
.ava.big { width: 64px; height: 64px; border-radius: 18px; font-size: 18px; }

/* sections */
section:not(.hero):not(.card) { padding: clamp(72px, 10vw, 136px) var(--gutter) 0; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: 36px; }
h2 { font-weight: 400; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; max-width: 16em; }
.sec-head p { max-width: 400px; color: var(--ink-2); }

/* fee split */
.flow-bar { display: flex; gap: 6px; height: clamp(84px, 13vw, 160px); }
.f { flex: 0 0 auto; width: calc((100% - 12px) * var(--w) / 100); border-radius: 16px; transform-origin: left; }
.f.a { background: var(--blue); }
.f.b { background: var(--sky); }
.f.c { background: var(--sky-2); }
.flow-keys { display: grid; grid-template-columns: 7fr 2fr 1fr; gap: 6px; margin-top: 16px; }
.k b { display: block; font-weight: 400; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; }
.k span { font-size: 15px; font-weight: 500; }
.k p { margin-top: 4px; color: var(--mute); font-size: 14px; max-width: 34ch; }

/* agents */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.agent { padding: 18px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: transform .45s var(--spring), background-color .25s; }
.agent:hover { transform: translateY(-5px); background: var(--panel-2); }
.agent-head { display: flex; align-items: center; gap: 12px; }
.agent-head b { display: block; font-weight: 500; }
.agent-head span { font: 12px var(--mono); color: var(--mute); }
.agent dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.agent dt { font-size: 12.5px; color: var(--mute); }
.agent dd { font: 13.5px var(--mono); }
.agent-pairs { margin-top: 12px; font-size: 13px; color: var(--ink-2); }

/* rules */
.rule-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.rule-list li { padding: 22px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.rule-list span { font-size: 20px; letter-spacing: -.015em; }
.rule-list p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.limits { margin-top: 22px; max-width: 760px; color: var(--mute); font-size: 14.5px; }

/* foot */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 40px; margin-top: clamp(72px, 10vw, 136px); padding: 26px var(--gutter); border-top: 1px solid var(--line); color: var(--mute); font-size: 13.5px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 16px; font-weight: 500; }

/* inner pages */
.page .top { position: relative; }
.agent, .rule-list li, .empty { box-shadow: inset 0 0 0 1px var(--line), 0 16px 36px -30px rgba(12, 43, 69, .5); }
.page::before { content: ""; position: fixed; inset: 0 0 auto; height: 60vh; z-index: -1; background: linear-gradient(180deg, #d9f0ff, rgba(255, 255, 255, 0)); pointer-events: none; }
.card { padding: 20px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(14px); }
.card h2 { font-size: 19px; letter-spacing: -.015em; margin-bottom: 12px; }

.launch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(28px, 6vw, 80px); padding: clamp(28px, 5vw, 64px) var(--gutter) 0; align-items: start; }
.launch h1 { font-size: clamp(44px, 6vw, 84px); }
.launch-intro > p { margin-top: 18px; max-width: 460px; color: var(--ink-2); }
.launch-facts { margin-top: 28px; max-width: 420px; }
.launch-facts div { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.launch-facts dt { color: var(--mute); }
.launch-facts dd { font-family: var(--mono); font-size: 14px; }
.form { display: grid; gap: 16px; }
label, legend { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
legend { display: block; padding: 0; }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
input, textarea { width: 100%; padding: 11px 13px; border: 0; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); outline: none; resize: vertical; font-size: 16px; color: var(--ink); transition: box-shadow .2s; }
input:focus, textarea:focus { box-shadow: inset 0 0 0 1.5px var(--blue); }
::placeholder { color: var(--mute); opacity: .75; }
label small { text-align: right; color: var(--mute); font-size: 12px; }
.pairs { display: flex; flex-wrap: wrap; gap: 6px; }
.pair { height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); font: 500 12.5px var(--mono); color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s, transform .3s var(--spring); }
.pair:hover { color: var(--ink); }
.pair[aria-pressed="true"] { background: var(--blue); color: #fff; transform: scale(1.05); }
.note { font-size: 13.5px; color: var(--mute); min-height: 1.2em; }
.note a { color: var(--blue); }

.coin { padding: clamp(20px, 4vw, 48px) var(--gutter) 0; min-height: 50vh; }
.coin-head { display: flex; align-items: center; gap: 16px; }
.coin-head h1 { font-size: clamp(34px, 5vw, 64px); }
.voice { margin-top: 14px; max-width: 640px; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0 14px; }
.stats div { padding: 14px 16px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.stats dt { font-size: 13px; color: var(--mute); }
.stats dd { margin-top: 2px; font: 500 17px var(--mono); }
.coin-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.col { display: grid; gap: 14px; min-width: 0; }
.stream { display: grid; gap: 2px; max-height: 460px; overflow-y: auto; }
.row { padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row-head { display: flex; gap: 8px; font-size: 14px; }
.row-head b { font-weight: 500; }
.row-head span { color: var(--mute); }
.row-head time { margin-left: auto; font: 12px var(--mono); color: var(--mute); }
.row p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }
.row a { font-size: 12.5px; color: var(--mute); }
.row a:hover { color: var(--blue); }
.trade, .redeem { display: grid; gap: 12px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--pale); }
.tabs button { height: 36px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); cursor: pointer; transition: background-color .2s; }
.tabs [aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -4px rgba(12, 43, 69, .4); }
.stocks li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font: 13.5px var(--mono); }
.stocks b { font-weight: 500; }

/* wallet modal, toast */
.wallets { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(12, 43, 69, .28); backdrop-filter: blur(8px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.wallets-card { width: min(400px, 100%); padding: 20px; border-radius: 18px; background: #fff; animation: pop .45s var(--spring); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.wallets-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.wallets-head h2 { font-size: 22px; }
.x { border: 0; background: none; color: var(--ink-2); font-size: 24px; cursor: pointer; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.wallet-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 54px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--ground-2); color: var(--ink); cursor: pointer; font-size: 15.5px; transition: background-color .25s, transform .4s var(--spring); }
.wallet-row:hover { background: var(--sky-2); transform: translateX(3px); }
.wallet-row small { margin-left: auto; color: var(--mute); font-size: 13px; }
.wallet-row img, .wallet-row .wico { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.wallet-row .wico { display: grid; place-items: center; background: var(--sky); font: 500 12px var(--mono); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14.5px; animation: rise .4s var(--out); }
.toast.ok { background: var(--blue); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 14px); } }

@media (max-width: 640px) {
  .ca-full { display: none; }
  .ca-short { display: inline; }
}
@media (max-width: 860px) {
  .launch, .coin-body { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .flow-keys { grid-template-columns: 1fr; gap: 16px; }
  .top nav a:not(:last-child) { display: none; }
  .top { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .w > span { transform: none; }
}
