/* wondr — design system
   Dark ground, one accent. The accent is gold, the colour of the coin, and it means action:
   buttons, the highlighted word in a headline, the live dot, the send arrow.
   Headlines are a heavy pixel face (Press Start 2P); body is Plus Jakarta Sans; figures are mono.
   The header art is a blue sky with clouds over a field of flowers, and it
   is the only place the page gets bright. */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #0A0A0A;
  --bg-2: #0E0E10;
  --card: #111113;
  --card-2: #16161A;
  --line: #222226;
  --line-2: #2C2C32;
  --ink: #F5F5F7;
  --text: #D4D4D8;
  --muted: #9A9AA3;
  --dim: #6B6B75;
  --accent: #E3B341;
  --accent-hi: #F2CB6E;
  --accent-soft: rgba(227, 179, 65, .12);
  --accent-line: rgba(227, 179, 65, .45);
  --accent-glow: 0 0 40px rgba(227, 179, 65, .35);
  --on-accent: #1E1504;
  --up: #22C55E;
  --down: #F87171;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pixel: 'Press Start 2P', 'Geist Mono', monospace;
  --wrap: 1456px;
  --col: 960px;
  --r: 12px;
  --glass: color-mix(in srgb, var(--card) 52%, transparent);
  --glass-strong: color-mix(in srgb, var(--card) 74%, transparent);
  --glass-line: rgba(255, 255, 255, .11);
  --glass-blur: blur(18px) saturate(1.3);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F7F8FB;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #F1F3F8;
  --line: #E3E6EE;
  --line-2: #CDD2DE;
  --ink: #0B0F1A;
  --text: #2A3140;
  --muted: #5B6375;
  --dim: #8A93A6;
  --accent: #946A12;
  --accent-hi: #7A560C;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(148, 106, 18, .10);
  --accent-line: rgba(148, 106, 18, .4);
  --accent-glow: 0 0 40px rgba(148, 106, 18, .25);
  --glass: rgba(255, 255, 255, .5);
  --glass-strong: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .6);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.5; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.pixel { font-family: var(--pixel); font-weight: 400; letter-spacing: 0; line-height: 1.28; }
.pixel .accent, .pixel.accent { font-style: normal; }
::selection { background: var(--accent); color: var(--on-accent); }
::-moz-selection { background: var(--accent); color: var(--on-accent); }
input, textarea { caret-color: var(--accent); accent-color: var(--accent); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 18px; border-radius: 8px; font-weight: 600; font-size: 13.5px; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--dim); background: var(--card); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---------- top nav ---------- */
/* the nav is a floating glass panel; the page (and the hero art) runs behind it */
.nav { position: sticky; top: 0; z-index: 50; padding: 14px 24px 0; pointer-events: none; }
.nav-in { transition: background .25s; pointer-events: auto; position: relative; max-width: calc(var(--wrap) - 64px); margin: 0 auto; padding: 0 10px 0 22px; height: 56px; display: flex; align-items: center; gap: 24px;
  border-radius: 16px; border: 1px solid var(--glass-line);
  background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .12), inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent); }
.nav.scrolled .nav-in { background: rgba(255, 255, 255, .86); }
:root[data-theme="dark"] .nav-in { background: rgba(12, 12, 16, .38); border-color: rgba(255, 255, 255, .1); box-shadow: 0 10px 40px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .nav.scrolled .nav-in { background: rgba(12, 12, 16, .82); }
.nav + .hero { margin-top: -70px; }
.nav + .hero .hero-in { padding-top: 150px; min-height: 760px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.logo b { color: var(--accent); font-family: var(--mono); font-weight: 700; margin-right: 1px; }
.logo-mark { width: 1.3em; height: 1.3em; flex: none; display: block; transform: translateY(.07em); filter: drop-shadow(0 1px 2px rgba(0, 45, 22, .28)); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13.5px; color: var(--text); }
.nav-links a:hover { color: var(--ink); }
.nav-links .dd { position: relative; }
.nav-links .dd > a::after { content: ''; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.dd-menu { position: absolute; top: 34px; left: -12px; min-width: 200px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: none; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.dd.open .dd-menu, .dd:hover .dd-menu { display: flex; }
/* an invisible bridge over the gap, so the menu stays open on the way down to it */
.dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
/* anchored sections land below the floating nav, not under it */
[id] { scroll-margin-top: 96px; }
.dd-menu a { padding: 9px 12px; border-radius: 6px; font-size: 14px; }
.dd-menu a:hover { background: var(--card-2); }
.dd-menu small { display: block; color: var(--dim); font-size: 12px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.dot.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.chg-up { color: var(--up); } .chg-down { color: var(--down); }
.burger { display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-in { max-width: var(--wrap); margin: 0 auto; padding: 90px 32px 48px; position: relative; z-index: 1; min-height: 700px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: 40px; margin: 0 0 26px; max-width: 900px; letter-spacing: -.01em; }
.hero h1 > span { display: block; white-space: nowrap; }
.hero p { font-size: 16.5px; color: var(--text); max-width: 560px; margin: 0 0 32px; line-height: 1.55; }
.hero-cta { display: flex; gap: 14px; }
/* the header art: the meadow fills the whole hero, edge to edge; a soft veil
   behind the copy keeps the text readable, and the bottom melts into the page */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.page-veil { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--bg); opacity: 0; }
.page-veil.static { opacity: .8; }
.sky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; transition: opacity .6s ease; }
.sky img.night { opacity: 0; }
:root[data-theme="dark"] .sky img.day { opacity: 0; }
:root[data-theme="dark"] .sky img.night { opacity: 1; }
.sky::after { z-index: 1; }
.sky-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.sky-wind { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.sky-wind.on { opacity: 1; }
/* only behind the headline: an oval that fades out before the grass */
:root[data-theme="light"] .sky::after { background: linear-gradient(90deg, rgba(8, 9, 10, .66) 0%, rgba(8, 9, 10, .42) 34%, rgba(8, 9, 10, .08) 60%, rgba(8, 9, 10, 0) 100%); }
:root[data-theme="light"] .grid-lines { background-image: linear-gradient(90deg, rgba(11, 15, 26, .05) 1px, transparent 1px); }
.theme-btn { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.theme-btn:hover { border-color: var(--line-2); }
.theme-btn svg { width: 15px; height: 15px; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
.sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 10, .7) 0%, rgba(8, 9, 10, .45) 34%, rgba(8, 9, 10, .1) 60%, rgba(8, 9, 10, 0) 100%); }
/* the hero sits on a photograph in both themes: light type on it */
.hero h1, .hero p { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero .accent { color: #F0C45A; }
.hero .btn-primary { background: #E3B341; color: #1E1504; }
.hero .btn-primary:hover { background: #F2CB6E; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .18); }
.grid-lines { display: none; }
.grid-lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 240px 100%; background-position: 60px 0;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-copy { position: relative; z-index: 1; }

/* live prices card */
.prices { position: absolute; right: 32px; bottom: 48px; z-index: 2; width: 360px; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 14px; padding: 12px 10px 10px; font-family: var(--mono); font-size: 10.5px; color: var(--text); }
.prices table { width: 100%; border-collapse: collapse; }
.prices th { white-space: nowrap; text-align: left; font-weight: 500; color: var(--dim); letter-spacing: .08em; font-size: 10px; padding: 0 4px 10px; }
.prices th:first-child { display: flex; align-items: center; gap: 7px; }
.prices th:nth-child(2), .prices td:nth-child(2), .prices th:nth-child(3), .prices td:nth-child(3) { text-align: right; }
.prices td { padding: 6px 4px; color: var(--ink); font-weight: 600; }
.prices td:nth-child(2) { color: var(--ink); }
.prices td:nth-child(2) small { color: var(--dim); font-weight: 400; margin-left: 6px; }
.prices td:nth-child(3) { color: var(--accent); }
.prices tr:nth-child(odd) td { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.prices .note { margin: 12px 4px 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.prices .note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* vendor logos + crypto ticker */
.logos { max-width: calc(var(--wrap) - 64px); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 18px; }
.logos-row { overflow: hidden; border-bottom: 1px solid var(--line); padding: 24px 0 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-track { display: flex; gap: 0; width: max-content; animation: marquee 48s linear infinite; }
.logos-track:hover { animation-play-state: paused; }
.logos-track .v { width: 150px; display: flex; align-items: center; justify-content: center; color: var(--ink); opacity: .9; }
.logos-track .v svg { width: 32px; height: 32px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker { display: flex; justify-content: center; gap: 0; padding: 22px 0 6px; flex-wrap: wrap; }
.ticker .t { display: flex; align-items: center; gap: 9px; padding: 6px 22px; font-family: var(--mono); font-size: 13px; font-weight: 600; border-right: 1px solid var(--line); }
.ticker .t:last-child { border-right: 0; }
.ticker .t .coin { width: 16px; height: 16px; flex: none; }
.icons .coin { width: 20px; height: 20px; }
.coin { border-radius: 50%; }
:root[data-theme="dark"] .coin { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }
.ticker .t small { font-size: 10px; font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: 88px 32px; position: relative; z-index: 1; }
.section.alt { border-top: 1px solid var(--line); }
.col { max-width: var(--col); margin: 0 auto; }
.h2 { font-size: 32px; margin: 0 0 22px; }
.h2 > span { display: block; }
.lead { font-size: 16px; color: var(--text); max-width: 680px; margin: 0 0 28px; line-height: 1.6; }
.links-row { display: flex; justify-content: flex-end; gap: 28px; font-size: 15px; color: var(--text); margin-bottom: 26px; }
.links-row a::before, .slash::before { content: '/ '; color: var(--dim); }
.links-row a:hover, .slash:hover { color: var(--accent); }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--card); }
.chip b { color: var(--ink); font-weight: 600; }
.chip .ring { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: inset 0 0 0 2px var(--card); background: var(--accent); }
.chip-link { text-decoration: none; transition: border-color .15s, color .15s; }
.chip-link:hover { border-color: var(--accent-line); color: var(--ink); }
.mail-chip svg { color: var(--accent); flex: none; }
.mail-chip b { color: var(--accent); }
.mail-chip:hover b { text-decoration: underline; }

/* step cards */
.step { background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 16px; padding: 26px 28px 28px; margin-bottom: 14px; display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.step .tag { grid-column: 1 / -1; margin-bottom: 6px; }
.step h3 { font-size: 18px; margin: 0 0 12px; }
.step p { margin: 0 0 18px; color: var(--text); font-size: 14.5px; line-height: 1.6; max-width: 480px; }
.step ul { list-style: none; margin: 8px 0 0; padding: 0 0 0 28px; border-left: 1px solid var(--line); font-size: 14px; color: var(--text); display: flex; flex-direction: column; gap: 12px; }
.step ul li::before { content: '/ '; color: var(--dim); }
.icons { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.icons svg { width: 20px; height: 20px; color: var(--ink); }
.ship { display: flex; justify-content: space-between; font-size: 14px; color: var(--text); padding: 12px 0 0; border-top: 1px solid var(--line); max-width: 480px; }
.ship b { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; }
.assets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.step .more { display: inline-block; font-size: 14px; color: var(--accent); font-weight: 600; }
.assets span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--accent-line); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* token */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 32px; }
.card { background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 16px; padding: 22px; }
.card .tag { display: block; margin-bottom: 18px; }
.card h4 { margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.6; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* models */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 36px 0 16px; }
.tab { height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); color: var(--text); font-size: 13.5px; }
.tab:hover { border-color: var(--dim); }
.tab.on { background: var(--card-2); color: var(--ink); border-color: var(--line-2); }
.job { background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 16px; padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; min-height: 260px; }
.job h3 { font-size: 20px; margin: 14px 0 8px; font-weight: 700; letter-spacing: -.01em; }
.job p { margin: 0; color: var(--text); font-size: 15px; }
.job .more { display: inline-block; margin-top: 64px; font-size: 14px; color: var(--text); }
.job .rec { font-family: var(--mono); font-size: 13px; }
.job .rec .tag { display: block; margin-bottom: 18px; }
.job .rec div { margin-bottom: 18px; }
.job .rec div span { display: block; color: var(--muted); font-family: var(--font); font-size: 12px; margin-top: 2px; }
.job .rec a:hover { color: var(--accent); }

/* FAQ */
.faq-head { text-align: center; margin-bottom: 40px; }
.faq-head h2 { font-size: 30px; margin: 0 0 16px; }
.faq-head p { color: var(--text); font-size: 17px; margin: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 600; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 0 24px; color: var(--text); font-size: 16px; line-height: 1.6; max-width: 720px; margin: 0; }

/* closing */
.closing { text-align: center; padding: 120px 32px 128px; border-top: 1px solid var(--glass-line); position: relative; z-index: 1; overflow: hidden; }
.closing::before { content: ''; position: absolute; left: 50%; top: 50%; width: 820px; height: 460px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; z-index: -1; }
.closing-mark { display: block; width: 84px; height: 84px; margin: 0 auto 28px; filter: drop-shadow(0 8px 30px rgba(227, 179, 65, .45)); }
.closing h2 { font-size: 40px; margin: 0 0 22px; line-height: 1.3; color: var(--ink); }
.closing-sub { font-size: 18px; color: var(--text); margin: 0 0 34px; }
.closing-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.closing h2 > span { display: block; }

/* footer */
footer { border-top: 1px solid var(--glass-line); position: relative; z-index: 1; }
.foot { max-width: var(--wrap); margin: 0 auto; padding: 56px 32px 64px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr; gap: 24px; font-size: 13px; }
.foot h5 { margin: 0 0 14px; font-size: 13px; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.foot ul a:hover { color: var(--ink); }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: var(--muted); font-family: var(--mono); font-size: 11px; }

/* ---------- simple pages (pricing, calculator, token, developers, community) ---------- */
.page { max-width: var(--col); margin: 0 auto; padding: 56px 32px 96px; position: relative; z-index: 1; }
.page h1 { font-size: 38px; margin: 0 0 22px; }
.page .lead { margin-bottom: 40px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
#tables { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#tables .table { min-width: 560px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 500; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td.num, .table th.num { text-align: right; font-family: var(--mono); }
.table td .id { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.table tr:hover td { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); margin-left: 8px; }
.badge.demo { background: color-mix(in srgb, var(--muted) 15%, transparent); color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; color: var(--muted); }
.input, select.input, textarea.input { height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); width: 100%; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.result { background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 16px; padding: 24px; }
.result .big { font-family: var(--mono); font-size: 40px; font-weight: 600; margin: 8px 0; }
.result .row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
.result .row b { font-family: var(--mono); color: var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
.code { background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 10px; padding: 16px 18px; font-family: var(--mono); font-size: 13px; overflow-x: auto; color: var(--text); margin: 0 0 20px; line-height: 1.6; white-space: pre; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; font-weight: 700; letter-spacing: -.01em; }
.prose h3 { font-size: 18px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text); font-size: 16px; line-height: 1.65; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--card-2); padding: 1px 6px; border-radius: 4px; }

/* ---------- the app (/ask) ---------- */
.app { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 20px 10px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; background: var(--bg); z-index: 20; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 12px; }
.side .logo { font-size: 20px; }
.icon-btn { width: 32px; height: 32px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--card-2); color: var(--ink); }
.icon-btn.rec { color: #fff; background: #e5484d; animation: recpulse 1.4s ease-in-out infinite; }
@keyframes recpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .45); } 50% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); } }
.icon-btn svg { width: 18px; height: 18px; }
.side .btn { width: 100%; height: 38px; border-radius: 8px; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--dim); font-size: 13px; margin: 4px 0 10px; }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 13px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.side nav a svg { width: 16px; height: 16px; color: var(--muted); }
.side nav a.on { background: var(--card-2); color: var(--ink); }
.side nav a.on svg { color: var(--accent); }
.side nav a:hover { background: var(--card-2); }
.recent-h { display: flex; justify-content: space-between; padding: 18px 10px 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--dim); }
.recent-h a { color: var(--accent); }
.recent { display: flex; flex-direction: column; gap: 2px; overflow: auto; flex: 1; min-height: 40px; }
.recent a { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 7px; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent a svg { width: 14px; height: 14px; flex: none; color: var(--dim); }
.recent a.on, .recent a:hover { background: var(--card-2); color: var(--ink); }
.recent .empty { color: var(--dim); font-size: 12px; padding: 4px 10px; }
.signbox { border: 1px solid var(--accent-line); border-radius: 10px; padding: 12px 12px 14px; margin-top: auto; cursor: pointer; background: var(--card); }
.signbox .mono { font-size: 10px; letter-spacing: .14em; color: var(--accent); }
.signbox b { display: block; font-size: 14px; margin-top: 4px; }
.signbox small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; font-family: var(--mono); }
.side-foot { display: flex; gap: 4px; padding: 10px 2px 0; }

.main { position: relative; overflow: hidden; min-height: 100vh; }
.main .sky { position: fixed; left: 210px; right: 0; top: 0; bottom: 0; }
.main .sky::after { background: radial-gradient(60% 75% at 50% 42%, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 80%); }
:root[data-theme="light"] .main .sky::after { background: radial-gradient(60% 75% at 50% 42%, rgba(247, 248, 251, .7) 0%, rgba(247, 248, 251, 0) 80%); }
.main .grid-lines { background-size: 140px 100%; }
.stage { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; padding: 56px 24px 72px; }
.stage-logo { display: flex; align-items: center; gap: 10px; font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.stage-logo b { color: var(--accent); font-family: var(--mono); font-size: 42px; }
.stage h1 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 22px; }
.modes { display: flex; gap: 12px; margin-bottom: 18px; }
.mode { width: 68px; height: 50px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 11.5px; font-weight: 600; }
.mode svg { width: 16px; height: 16px; color: var(--muted); }
.mode:hover { border-color: var(--line-2); }
.mode.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.mode.on svg { color: var(--accent); }

.composer { background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 16px; padding: 14px 16px 12px; margin-bottom: 18px; }
.composer .hint { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.composer .row { display: flex; align-items: flex-start; gap: 10px; }
.composer .plus { color: var(--accent); font-size: 18px; line-height: 24px; font-weight: 500; }
.composer textarea { flex: 1; border: 0; background: transparent; outline: none; resize: none; font-size: 15px; line-height: 24px; min-height: 24px; max-height: 240px; padding: 0; color: var(--ink); }
.composer textarea::placeholder { color: var(--muted); }
.composer .bar { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.composer .bar .pill-sm, .composer .bar .kbd, .composer .bar .est { white-space: nowrap; }
@media (min-width: 521px) { .composer .bar { flex-wrap: nowrap; } }
.composer .bar .mode-pill { max-width: 190px; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }
.composer .bar .picker { min-width: 0; flex-shrink: 1; }
.composer .bar .picker .pill-sm { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.composer .bar .sp { flex: 1; }
.pill-sm { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.pill-sm.mode-pill { border-color: var(--accent-line); }
.pill-sm .caret { width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin: -3px 0 0 2px; }
.kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 6px; }
.est { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.send { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--accent-glow); }
.send:hover { background: var(--accent-hi); }
.send[disabled] { background: var(--line-2); box-shadow: none; }
.send svg { width: 16px; height: 16px; }
.icon-btn.rec { color: var(--down); }
.attach-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.attach-list .chip { height: 26px; font-size: 11px; }
.attach-list .chip button { border: 0; background: transparent; color: var(--dim); padding: 0; }

/* model picker */
.picker { position: relative; }
.menu { position: absolute; bottom: 42px; left: 0; width: 360px; max-height: 420px; overflow: auto; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); z-index: 30; display: none; }
.menu.open { display: block; }
.menu .grp { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--dim); padding: 10px 10px 6px; text-transform: uppercase; }
.menu button { width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; font-size: 13px; color: var(--ink); }
.menu button:hover, .menu button.on { background: var(--card-2); }
.menu button .id { font-family: var(--mono); font-size: 11px; color: var(--muted); flex: 1; }
.menu button .pr { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.menu button .lv { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.menu button .lv.demo { background: var(--dim); }

/* skills panel (opens from the Ask mode) */
.stage { position: relative; }
.skills-pop { position: absolute; z-index: 40; left: 24px; right: 24px; margin-top: -8px; max-width: 460px; background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 18px; padding: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sp-h { font-size: 11.5px; color: var(--muted); margin: 2px 2px 10px; }
.sp-main { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-2); text-align: left; color: var(--ink); margin-bottom: 16px; }
.sp-main.on, .sp-main:hover { border-color: var(--accent); background: var(--accent-soft); }
.sp-main b { display: block; font-size: 15px; }
.sp-main small { color: var(--muted); font-size: 12px; }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border-radius: 11px; border: 1px solid var(--line); background: var(--card-2); text-align: left; color: var(--ink); }
.sp-item:hover, .sp-item.on { border-color: var(--accent-line); }
.sp-item.on { background: var(--accent-soft); }
.sp-item b { display: block; font-size: 13px; margin-bottom: 2px; }
.sp-item small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.sp-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.sp-ic svg { width: 15px; height: 15px; }
.sp-ic.big { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent); }
.sp-ic.big svg { width: 18px; height: 18px; }
.pill-x { border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 0 0 0 2px; }
.pill-x:hover { color: var(--ink); }
@media (max-width: 520px) { .sp-grid { grid-template-columns: 1fr; } .skills-pop { left: 16px; right: 16px; max-height: 70vh; overflow: auto; } }

/* library block */
.block { background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 16px; padding: 16px; }
.block-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.block-h a { color: var(--accent); font-size: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumb { aspect-ratio: 16 / 7; border: 1px dashed var(--line-2); border-radius: 8px; overflow: hidden; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 11px; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.block .foot-note { color: var(--muted); font-size: 12px; margin-top: 12px; }

/* conversation */
.thread { display: flex; flex-direction: column; gap: 22px; margin-bottom: 24px; }
.msg { display: flex; flex-direction: column; gap: 6px; }
.msg.user { align-items: flex-end; }
.msg .who { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.msg .body { max-width: 92%; font-size: 15px; line-height: 1.6; color: var(--ink); }
.msg.user .body { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px 12px 2px 12px; padding: 10px 14px; white-space: pre-wrap; }
.msg.ai .body { padding: 2px 0; }
.msg .body p { margin: 0 0 12px; }
.msg .body pre { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow: auto; font-family: var(--mono); font-size: 13px; line-height: 1.55; margin: 8px 0 12px; }
.msg .body code { font-family: var(--mono); font-size: .92em; background: var(--card-2); padding: 1px 5px; border-radius: 4px; }
.msg .body pre code { background: none; padding: 0; }
.msg .body ul, .msg .body ol { padding-left: 22px; margin: 0 0 12px; }
.msg .body h1, .msg .body h2, .msg .body h3 { font-size: 16px; margin: 14px 0 6px; }
.msg .meta { font-family: var(--mono); font-size: 10.5px; color: var(--dim); display: flex; gap: 12px; }
.msg .meta .demo { color: var(--accent); }
.cursor::after { content: '▍'; color: var(--accent); animation: pulse 1s infinite; }
.preview { margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.preview .ph { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: var(--card-2); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.preview iframe { width: 100%; height: 360px; border: 0; background: #fff; }
.copy { border: 0; background: transparent; color: var(--accent); font-family: var(--mono); font-size: 11px; }

/* generic app views (library, files, history, account) */
.view h2 { font-size: 24px; margin: 0 0 6px; font-weight: 700; letter-spacing: -.01em; }
.view .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gitem { background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 12px; overflow: hidden; }
.gitem .media { aspect-ratio: 16 / 10; background: var(--bg-2); display: flex; align-items: center; justify-content: center; }
.gitem .media img, .gitem .media video { width: 100%; height: 100%; object-fit: cover; }
.gitem .media audio { width: 90%; }
.gitem .cap { padding: 10px 12px; font-size: 12px; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.gitem .cap .mono { font-size: 10.5px; color: var(--dim); display: flex; justify-content: space-between; }
.gitem .cap .mono a { color: var(--accent); }
.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.list .li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.list .li .mono { font-size: 11px; color: var(--dim); }
.list .li .r { text-align: right; font-family: var(--mono); font-size: 12px; }
.list .li .r .d { color: var(--down); }
.list .li .r .u { color: var(--up); }
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.stat div { background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 14px; padding: 14px; }
.stat .k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.stat .v { font-family: var(--mono); font-size: 22px; font-weight: 600; margin-top: 6px; }
.stat .v small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.panel { background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.panel h3 { margin: 0 0 6px; font-size: 16px; }
.panel .sub { margin-bottom: 14px; }
.panel .inline { display: flex; gap: 8px; align-items: center; }
.panel .inline .input { flex: 1; }
.addr { font-family: var(--mono); font-size: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; word-break: break-all; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tierbar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.tierbar i { display: block; height: 100%; background: var(--accent); }
.ok { color: var(--up); } .bad { color: var(--down); }
.note { color: var(--muted); font-size: 13px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 16px; font-size: 13px; z-index: 100; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); max-width: 90vw; }
.toast.err { border-color: var(--down); }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { width: 100%; max-width: 440px; background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 18px; padding: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal h2 { margin: 0 0 6px; font-size: 22px; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal .opt { width: 100%; text-align: left; display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); background: var(--bg-2); border-radius: 10px; margin-bottom: 10px; }
.modal .opt:hover { border-color: var(--accent-line); }
.modal .opt b { display: block; font-size: 14px; }
.modal .opt small { color: var(--muted); font-size: 12px; }
.modal .opt svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.keybox { font-family: var(--mono); font-size: 13px; background: var(--bg-2); border: 1px solid var(--accent-line); border-radius: 8px; padding: 12px; word-break: break-all; margin: 10px 0; }
.modal .x { float: right; }

/* sign-in panel */
.auth-modal { max-width: 460px; padding: 34px 30px 26px; border-radius: 18px; position: relative; max-height: 92vh; overflow: auto; }
.auth-modal .x { position: absolute; top: 14px; right: 14px; }
.auth-inline { max-width: 440px; margin: 10px auto 0; background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 18px; padding: 34px 30px 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, .18); }
.auth .auth-h { font-size: 30px; line-height: 1.04; font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.auth-sub { color: var(--text); font-size: 14.5px; margin: 0 0 14px; }
.seg { display: flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); margin-bottom: 20px; }
.seg button { flex: 1; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-size: 13px; font-weight: 600; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 14px rgba(227, 179, 65, .35); }
.auth-desc { color: var(--text); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; }
.auth-l { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.auth-l .input { margin-top: 8px; height: 46px; background: var(--bg-2); }
.pw { position: relative; display: block; }
.pw .input { padding-right: 58px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(calc(-50% + 4px)); border: 0; background: transparent; color: var(--muted); font-size: 12px; font-family: var(--mono); padding: 6px; }
.auth-row { display: flex; gap: 10px; margin: 4px 0 20px; flex-wrap: wrap; }
.auth-row .btn { height: 44px; }
.btn.loading { opacity: .7; pointer-events: none; }
.auth-err { color: var(--down); font-size: 13px; margin: -6px 0 12px; }
.auth-foot hr { border: 0; border-top: 1px solid var(--line); margin: 2px 0 16px; }
.auth-foot p { color: var(--text); font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.auth-foot a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.auth-foot .auth-key { font-size: 12.5px; margin: 4px 0 0; }
.auth-foot .auth-key a { color: var(--muted); }
.code-in { font-family: var(--mono); letter-spacing: .4em; font-size: 18px; }
@media (max-width: 520px) { .auth .auth-h { font-size: 30px; } .auth-modal, .auth-inline { padding: 26px 20px 20px; } .panel .inline { flex-wrap: wrap; } }

/* swap */
.swap-page { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 40px 20px 90px; }
.swap-card { max-width: 460px; margin: 0 auto; background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 22px; padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .18); }
.sw-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 14px; }
.sw-head h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.sw-tools { display: flex; gap: 6px; align-items: center; }
.sw-wallet { cursor: pointer; font-size: 12px; }
.sw-slip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 13px; color: var(--text); }
.sw-slip-opts { display: flex; gap: 6px; }
.sw-slip-opts button, .sw-slip-opts input { height: 30px; border-radius: 999px; border: 1px solid var(--glass-line); background: transparent; padding: 0 10px; font-size: 12px; color: var(--ink); }
.sw-slip-opts input { width: 84px; }
.sw-slip-opts button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.sw-box { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 18px; padding: 14px 16px; }
.sw-lbl, .sw-sub { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); min-height: 18px; }
.sw-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.sw-row input, .sw-out { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 32px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-out { color: var(--text); }
.sw-max { border: 0; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; }
.sw-flip { display: flex; margin: -12px auto; position: relative; z-index: 2; width: 38px; height: 38px; border-radius: 12px; border: 4px solid color-mix(in srgb, var(--bg) 80%, transparent); background: var(--card-2); color: var(--ink); align-items: center; justify-content: center; }
.sw-flip svg { width: 16px; height: 16px; }
.sw-flip:hover { color: var(--accent); }
.tok { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--card); color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.tok:hover { border-color: var(--accent-line); }
.tok .caret, .tok-sel + .caret { width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 2px; }
.tok-sel { padding-left: 8px; font-size: 14px; }
.tok-sym { display: flex; flex-direction: column; line-height: 1.1; }
.tok-sym small { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.tok .tok-fb { width: 28px; height: 28px; }
.tok-ic { position: relative; width: 28px; height: 28px; flex: none; }
.tok-ic img { width: 28px; height: 28px; border-radius: 50%; }
.tok-ic .tok-chain { position: absolute; right: -4px; bottom: -3px; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--card); background: var(--card); }
.sw-to { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.sw-to input { display: block; width: 100%; margin-top: 6px; height: 40px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass); padding: 0 12px; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.sw-details { margin: 12px 4px 4px; font-size: 13px; }
.sw-details div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; color: var(--muted); }
.sw-details b { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-align: right; }
.sw-details b img { width: 16px; height: 16px; border-radius: 4px; }
.sw-details .bad { color: var(--down); }
.sw-go { width: 100%; height: 52px; border-radius: 16px; font-size: 16px; margin-top: 12px; }
.sw-go:disabled { background: var(--line-2); color: var(--muted); opacity: 1; cursor: default; }
.sw-note { font-size: 11.5px; color: var(--muted); margin: 12px 4px 2px; line-height: 1.5; }
#swapCard .auth-err { margin: 10px 4px 0; }
.sw-progress { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 13px; color: var(--ink); }
.sw-progress.ok { background: rgba(34, 197, 94, .12); }
.sw-progress.bad { background: rgba(248, 113, 113, .12); }
.sw-progress a { color: var(--accent); }
.sw-progress .spin { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent-line); border-top-color: var(--accent); animation: spin .8s linear infinite; margin-top: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.sw-rwa { max-width: 760px; margin: 56px auto 0; text-align: center; }
.sw-rwa h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -.02em; }
.sw-rwa p { color: var(--text); margin: 0 0 20px; }
.sw-rwa { max-width: 880px; }
.rwa-filter { max-width: 460px; margin: 0 auto 18px; }
.rwa-filter button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.rwa-filter small { font-family: var(--mono); font-size: 10.5px; font-weight: 500; opacity: .6; }
.rwa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; text-align: left; }
.rwa-skel span { display: block; height: 104px; border-radius: 16px; border: 1px solid var(--glass-line); background: linear-gradient(100deg, var(--glass) 30%, color-mix(in srgb, var(--glass) 60%, var(--ink) 6%) 50%, var(--glass) 70%) 0 0 / 300% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -150% 0; } }
.rwa-tile { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 11px; row-gap: 12px; text-align: left; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.rwa-tile:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(110, 78, 10, .14); }
.rwa-ic { width: 38px; height: 38px; }
.rwa-ic img, .rwa-ic .tok-fb { width: 38px; height: 38px; border-radius: 50%; }
.rwa-ic .tok-fb { display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.rwa-nm { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rwa-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rwa-nm b { font-size: 14px; letter-spacing: -.01em; }
.rwa-nm small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rwa-px { font-family: var(--mono); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rwa-ft { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.rwa-kind { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 3px 7px; border-radius: 6px; }
.rwa-kind.k-gold { color: var(--accent); background: var(--accent-soft); }
.rwa-kind.k-treasuries { color: #3b82c4; background: rgba(59, 130, 196, .13); }
.rwa-kind.k-stocks { color: #8b6fe0; background: rgba(139, 111, 224, .13); }
.rwa-chains { display: flex; align-items: center; }
.rwa-chains img { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--card); margin-left: -4px; background: var(--card); }
.rwa-chains img:first-child { margin-left: 0; }
.rwa-chains i { font-style: normal; font-size: 10.5px; color: var(--muted); margin-left: 4px; }
.rwa-go { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.rwa-go::after { content: ' \2192'; }
.rwa-tile:hover .rwa-go { opacity: 1; transform: none; }
@media (hover: none) { .rwa-go { opacity: 1; transform: none; } }
@media (max-width: 520px) { .rwa-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .rwa-tile { grid-template-columns: 30px minmax(0, 1fr); column-gap: 9px; padding: 12px; } .rwa-ic, .rwa-ic img, .rwa-ic .tok-fb { width: 30px; height: 30px; } .rwa-h { flex-direction: column; align-items: flex-start; gap: 1px; } .rwa-nm small { order: 1; } .rwa-px { order: 2; margin-top: 4px; font-size: 12px; } .rwa-go { display: none; } }
.tok-modal, .wal-modal { max-width: 460px; position: relative; max-height: 86vh; display: flex; flex-direction: column; background: color-mix(in srgb, var(--card) 94%, transparent); padding: 22px 22px 14px; }
.tok-modal .x, .wal-modal .x { position: absolute; top: 14px; right: 14px; }
.tok-modal h2, .wal-modal h2 { font-size: 18px; margin: 0 0 14px; letter-spacing: -.01em; }
.tok-tabs { margin-bottom: 12px; }
.tok-tabs button { height: 34px; }
.tok-chains { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tok-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 12.5px; font-weight: 500; color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.tok-chip:hover { border-color: var(--accent-line); color: var(--ink); }
.tok-chip img { width: 18px; height: 18px; border-radius: 5px; }
.tok-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.tok-more-wrap { padding: 0 6px 0 10px; }
.tok-more-wrap select { border: 0; background: transparent; color: inherit; font: inherit; outline: none; cursor: pointer; max-width: 150px; }
.tok-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); margin-bottom: 10px; }
.tok-search:focus-within { border-color: var(--accent-line); }
.tok-search svg { width: 16px; height: 16px; flex: none; }
.tok-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.tok-pop { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tok-pop:empty { display: none; }
.tok-pchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px 0 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.tok-pchip:hover { border-color: var(--accent-line); }
.tok-pchip img, .tok-pchip .tok-fb { width: 22px; height: 22px; border-radius: 50%; font-size: 11px; }
.tok-lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 6px 2px 6px; }
.tok-list { overflow: auto; min-height: 200px; margin: 0 -10px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tok-list::-webkit-scrollbar { width: 8px; }
.tok-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.tok-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 8px; border: 0; background: transparent; border-radius: 12px; text-align: left; color: var(--ink); cursor: pointer; }
.tok-row:hover { background: var(--card-2); }
.tok-nm { flex: 1; min-width: 0; }
.tok-nm b { display: block; font-size: 14px; }
.tok-nm small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-px { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.tok-kind { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
.tok-fb { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; font-family: var(--mono); }
.tok-list .note { display: block; padding: 20px 8px; text-align: center; }
.wal-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--glass-line); background: var(--glass); margin-bottom: 8px; }
.wal-row img, .wal-emoji, .wal-generic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.wal-generic { background: var(--accent-soft); color: var(--accent); }
.wal-generic svg { width: 20px; height: 20px; }
.wal-row > div:not(.wal-acts) { flex: 1; min-width: 0; }
.wal-row b { display: block; font-size: 14px; }
.wal-row small { color: var(--muted); font-size: 12px; }
.wal-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 520px) { .sw-row input, .sw-out { font-size: 26px; } .swap-card { padding: 14px; } }

/* shared view */
.shared-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.shared-h > div:first-child { min-width: 0; }
.shared-h .cta-row { flex: none; flex-wrap: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero h1 { font-size: 36px; }
  .prices { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 40px; }
  .sky::after { background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .35) 55%, var(--bg) 100%); }
  :root[data-theme="light"] .sky::after { background: linear-gradient(180deg, rgba(8, 9, 10, .55) 0%, rgba(8, 9, 10, .45) 55%, var(--bg) 100%); }
}
@media (max-width: 860px) {
  .main .sky { left: 0; }
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); flex-direction: column; gap: 0; padding: 8px 18px 14px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .dd-menu { position: static; box-shadow: none; padding-left: 16px; }
  .dd-menu::before { display: none; }
  .nav-right .pill, .nav-right .btn-ghost:not(.theme-btn) { display: none; }
  .burger { display: inline-block; }
  .nav { padding: 10px 12px 0; }
  .nav-in { padding: 0 10px 0 16px; height: 60px; border-radius: 16px; }
  .hero-in { padding: 48px 16px 40px; min-height: 0; }
  .nav + .hero { margin-top: -70px; }
  .nav + .hero .hero-in { padding-top: 118px; min-height: 0; }
  .hero h1 { font-size: 24px; }
  .hero h1 > span { white-space: normal; }
  .hero p { font-size: 17px; }
  .section, .closing { padding: 72px 16px; }
  .closing h2 { font-size: 22px; }
  .h2 { font-size: 22px; }
  .step, .job { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .step ul { padding-left: 0; border-left: 0; }
  .cards3 { grid-template-columns: 1fr; }
  .faq-head h2 { font-size: 24px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-right { align-items: flex-start; grid-column: 1 / -1; }
  .logos { padding: 0 12px; margin: 0 12px; }
  .page { padding: 48px 16px 80px; }
  .page h1 { font-size: 40px; }
  .calc { grid-template-columns: 1fr; }
  .table { font-size: 13px; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .6); }
  .stage { padding: 56px 16px 60px; }
  .modes { flex-wrap: wrap; }
  .menu { width: min(360px, 88vw); }
  .gallery { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 1fr; }
  .main-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
}
@media (min-width: 861px) { .main-top { display: none; } .app.side-hidden { grid-template-columns: 1fr; } .app.side-hidden .side { display: none; } .app.side-hidden .main .sky { left: 0; } .app.side-hidden .main-top { display: flex; position: absolute; top: 14px; left: 14px; z-index: 5; padding: 5px 12px 5px 5px; border: 1px solid var(--glass-line); border-radius: 12px; background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); color: var(--ink); } }
/* compare */
.cmp-pick { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.cmp-pick select { flex: 1 1 200px; max-width: 320px; }
.cmp-work { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; }
.cmp-work label { font-weight: 600; color: var(--ink); }
.cmp-work input { width: 110px; }
.cmp-work .note { flex-basis: 100%; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cmp-card { background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.cmp-card.best { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.cmp-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.cmp-h b { display: block; color: var(--ink); font-size: 15px; }
.cmp-h small { color: var(--muted); font-size: 12px; }
.cmp-ic svg { width: 22px; height: 22px; color: var(--ink); display: block; }
.cmp-badge { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 3px 8px; }
.cmp-big { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--ink); margin: 4px 0 6px; }
.cmp-big small { font-size: 13px; color: var(--muted); margin-left: 4px; }
.cmp-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text); border-top: 1px solid var(--line); padding-top: 8px; }
.cmp-row span:last-child { font-family: var(--mono); text-align: right; }
.cmp-try { margin-top: 8px; align-self: flex-start; }
.alt-table td:first-child { color: var(--muted); font-size: 13px; }
.alt-table td b { color: var(--ink); }
.alt-table th:last-child, .alt-table td:last-child { background: color-mix(in srgb, var(--accent) 6%, transparent); }

/* support panel */
.sup { position: fixed; right: 20px; bottom: 20px; z-index: 95; width: 380px; max-width: calc(100vw - 32px); height: min(580px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .28); opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none; transition: opacity .18s, transform .18s; }
.sup.open { opacity: 1; transform: none; pointer-events: auto; }
.sup-h { display: flex; align-items: center; gap: 10px; padding: 14px 12px 12px 16px; border-bottom: 1px solid var(--glass-line); }
.sup-av { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #14100a; color: var(--on-accent); font-family: var(--mono); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sup-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sup-t b { font-size: 14px; color: var(--ink); }
.sup-t small { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sup-ic { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sup-ic:hover { background: var(--card-2); color: var(--ink); }
.sup-ic svg { width: 16px; height: 16px; }
.sup-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sup-m { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.sup-m.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sup-m.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.sup-m.err { border-color: color-mix(in srgb, #e5484d 50%, transparent); }
.sup-m a { color: var(--accent); text-decoration: underline; }
.sup-m.me a { color: #fff; }
.sup-m code { font-family: var(--mono); font-size: .9em; background: var(--card-2); padding: 1px 5px; border-radius: 4px; }
.sup-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.sup-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: supdot 1s infinite ease-in-out; }
.sup-dots i:nth-child(2) { animation-delay: .15s; } .sup-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes supdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sup-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
.sup-sugg:not(:empty) { padding-bottom: 10px; }
.sup-sugg button { font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--accent-line); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); cursor: pointer; }
.sup-sugg button:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.sup-f { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); }
.sup-f:focus-within { border-color: var(--accent-line); }
.sup-f textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; line-height: 1.45; padding: 6px 0; max-height: 120px; }
.sup-send { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sup-send svg { width: 16px; height: 16px; }
.sup.busy .sup-send { opacity: .5; cursor: default; }
.sup-foot { font-size: 11px; color: var(--muted); padding: 8px 16px 12px; text-align: center; }
.sup-foot a { color: var(--accent); }
@media (max-width: 520px) { .sup { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 85vh; border-radius: 20px 20px 0 0; } }

@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } .dot.pulse { animation: none; } .sup { transition: none; } .sup-dots i { animation: none; } }

/* token page: centred hero, key facts, live stats and three ways in */
.tk-hero { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.page h1.tk-word { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 30px 0 22px; font-size: 112px; font-weight: 700; letter-spacing: -.055em; line-height: 1; color: var(--ink); }
.tk-word img { width: 112px; height: 112px; filter: drop-shadow(0 6px 24px rgba(227, 179, 65, .35)); }
.tk-lead { max-width: 620px; margin: 0 auto 26px; font-size: 16px; line-height: 1.65; color: var(--text); }
.tk-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 0 16px; }
.tk-meta div { display: flex; align-items: baseline; gap: 8px; }
.tk-meta dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tk-meta dd { margin: 0; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tk-count { display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 0 0 18px; padding: 12px 20px; border-radius: 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.tk-count[hidden] { display: none; }
.tk-count-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.tk-count b { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-count-t { font-size: 13px; color: var(--muted); }
.tk-ca { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; font-size: 12px; color: var(--muted); }
.tk-ca code { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); padding: 5px 10px; border-radius: 8px; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); word-break: break-all; }
.tk-copy[hidden], .tk-ca[hidden] { display: none; }
.home-ca { display: flex; justify-content: flex-start; margin: 22px 0 0; }
.tk-copy { text-decoration: none; border: 0; background: none; padding: 0; font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; }
.tk-stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--glass-line); border-radius: 16px; overflow: hidden; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); margin-bottom: 36px; }
.tk-stats div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; text-align: center; }
.tk-stats div + div { border-left: 1px solid var(--glass-line); }
.tk-stats span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tk-stats b { font-family: var(--mono); font-size: 19px; font-weight: 600; color: var(--ink); min-height: 1.2em; }
.tk-stats b.chg-up { color: #16a34a; } .tk-stats b.chg-down { color: #dc2626; }
.tk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.tk-card { display: flex; flex-direction: column; padding: 22px; border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.tk-card.tk-buy { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-soft) inset; }
.tk-card .tag { margin-bottom: 8px; }
.prose .tk-card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; }
.prose .tk-card p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.6; color: var(--text); flex: 1; }
.tk-card .cta-row { gap: 8px; }
.tk-card .cta-row { flex-wrap: nowrap; }
.tk-card .btn { height: 36px; padding: 0 13px; font-size: 13px; white-space: nowrap; }
.tk-stats b.soon { color: var(--muted); font-size: 15px; font-weight: 500; }
.btn.is-soon { opacity: .55; cursor: default; pointer-events: none; }
@media (max-width: 860px) {
  .page h1.tk-word { font-size: 72px; gap: 12px; } .tk-word img { width: 66px; height: 66px; }
  .tk-stats { grid-template-columns: 1fr 1fr; } .tk-stats div:first-child { grid-column: 1 / -1; } .tk-stats div + div { border-left: 0; border-top: 1px solid var(--glass-line); } .tk-stats div:nth-child(3), .tk-stats div:nth-child(5) { border-left: 1px solid var(--glass-line); }
  .tk-cards { grid-template-columns: 1fr; }
}

/* language switch and the Chinese site */
.lang-btn { flex: none; white-space: nowrap; height: 34px; min-width: 42px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.lang-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.i18n-wait body { visibility: hidden; }
.lang-menu { display: none; }
@media (max-width: 560px) { .lang-btn { display: none; } .lang-menu { display: block; } }
html[lang="zh-CN"] .chg-up { color: #F04438; } html[lang="zh-CN"] .chg-down { color: #22C55E; }
html[lang="zh-CN"] { --font: 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif; }
html[lang="zh-CN"] .tk-stats b.chg-up { color: #dc2626; } html[lang="zh-CN"] .tk-stats b.chg-down { color: #16a34a; }
html[lang="zh-CN"] .pixel { font-family: 'Press Start 2P', 'Songti SC', 'STSong', 'Noto Serif SC', 'Source Han Serif SC', serif; letter-spacing: .01em; }
html[lang="zh-CN"] .pixel .accent, html[lang="zh-CN"] .pixel.accent { font-style: normal; }
html[lang="zh-CN"] body { letter-spacing: .01em; }
