/* palette sampled from museboard */
:root {
  --bg: #fef5e7;
  --surface: #fffbf4;
  --surface-2: #f8eedd;
  --border: #eee2cc;
  --border-strong: #e0d0b2;
  --text: #26282b;
  --muted: #776f60;
  --faint: #a89f8d;
  --lime: #c3f53c;
  --lime-soft: rgba(195, 245, 60, 0.28);
  --lime-ink: #6f9c0e;
  --hl: var(--lime);
  --gold: #d9a520;
  --blue: #8fb8e0;
  --pink: #f0a8b8;
  --shadow: 0 1px 2px rgba(38, 40, 43, 0.04), 0 10px 30px rgba(120, 96, 50, 0.08);
  --round: "Fredoka", "Nunito", system-ui, sans-serif;
  --sans: "Nunito", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1a17; --surface: #24231f; --surface-2: #2d2b26; --border: #36342e; --border-strong: #48453d;
    --text: #f4eee2; --muted: #b1a894; --faint: #7f7867; --lime-soft: rgba(195, 245, 60, 0.14); --lime-ink: #c3f53c; --hl: rgba(195, 245, 60, 0.3);
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1a17; --surface: #24231f; --surface-2: #2d2b26; --border: #36342e; --border-strong: #48453d;
  --text: #f4eee2; --muted: #b1a894; --faint: #7f7867; --lime-soft: rgba(195, 245, 60, 0.14); --lime-ink: #c3f53c; --hl: rgba(195, 245, 60, 0.3);
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 600 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--round); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.muted { color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.wordmark { font-family: var(--round); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.wordmark b { font-weight: 600; color: var(--lime-ink); }
.links { display: flex; gap: 4px; }
.links a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 15px; transition: background .2s var(--ease), color .2s; }
.links a:hover { color: var(--text); background: var(--surface-2); }
.links a.on { color: var(--text); background: var(--lime-soft); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 14px; height: 38px; width: 240px; }
.search svg, .theme svg { width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 2.2; stroke-linecap: round; }
.search input { border: 0; outline: 0; background: none; font: inherit; color: var(--text); width: 100%; }
.search:focus-within { border-color: var(--lime-ink); }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.theme svg { stroke: var(--muted); }

/* shared bits */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--lime-soft); color: var(--text); font-weight: 800; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(195, 245, 60, .3); flex: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 800; font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 800; font-size: 15px; cursor: pointer; font-family: var(--sans); color: var(--text); transition: transform .15s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--lime); border-color: transparent; color: #26282b; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); margin: 18px 0 18px; }
.hl { background: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 92%, transparent 92%); padding: 0 4px; }
.lede { font-size: 18px; color: var(--muted); max-width: 30em; margin: 0; }
.stats { display: flex; gap: 36px; margin: 28px 0; }
.stats strong { display: block; font-family: var(--round); font-size: 30px; font-weight: 600; line-height: 1; }
.stats span { font-size: 13px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.rails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ca { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 22px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-family: var(--sans); cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s; }
.ca:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.ca:active { transform: scale(.97); }
.ca-tick { padding: 5px 12px; border-radius: 999px; background: var(--lime); color: #26282b; font-weight: 800; font-size: 13px; flex: none; }
.ca-addr { font-family: var(--mono); font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ca + .rails { margin-top: 12px; }
.hero-art video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); background: var(--surface-2); }

/* sections */
.section { padding-top: 72px; padding-bottom: 24px; scroll-margin-top: 64px; }
.section h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { margin: 8px 0 0; }
.section-head.center { justify-content: center; text-align: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.tabs button { border: 0; background: none; font: 800 14px var(--sans); color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.tabs button.on { background: var(--lime); color: #26282b; }

/* listing grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card-top { display: flex; align-items: center; gap: 12px; }
.glyph { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); flex: none; }
.card h3 { font-size: 19px; }
.seller { font-size: 13px; color: var(--muted); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--border-strong); }
.price { font-family: var(--round); font-weight: 600; font-size: 20px; }
.price small { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 700; }
.calls { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-left: auto; align-self: flex-start; }
.empty { text-align: center; padding: 40px 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 12px 24px 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.step img { width: 190px; height: 190px; object-fit: contain; margin: 0 auto; }
.step .num { position: absolute; top: 18px; left: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: #26282b; font: 600 16px/30px var(--round); }
.step h3 { font-size: 26px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* agents */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.split h2 { margin: 16px 0 14px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326282b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.code { border-radius: 22px; background: #1f1e1b; color: #efe8da; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #36342e; }
.code-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #36342e; }
.code-bar span { width: 10px; height: 10px; border-radius: 50%; background: #48453d; }
.code-bar em { margin-left: 10px; font-style: normal; font-size: 12.5px; color: #b1a894; }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font: 500 13.5px/1.7 var(--mono); }
.code pre code { background: none; padding: 0; font-size: inherit; }
.code .c { color: #7f7867; }
.code .r { color: #e0b43a; }
.code .g { color: #c3f53c; }

/* sell */
.sell { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 28px; border-radius: 32px; background: var(--surface); border: 1px solid var(--border); }
.sell img { border-radius: 22px; width: 100%; }
.sell h2 { margin: 16px 0 14px; }
.sell p { margin: 0 0 24px; }

/* footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 40px; font-size: 14px; }
.footer a:not(.brand) { color: var(--lime-ink); }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(38, 40, 43, .35); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 31; background: var(--bg); border-left: 1px solid var(--border); padding: 28px; overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease); }
.drawer.open { transform: none; }
.close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); }
.drawer h3 { font-size: 30px; margin: 16px 0 6px; }
.drawer .glyph { width: 60px; height: 60px; font-size: 30px; border-radius: 18px; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.meta div { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.meta span { display: block; font-size: 12px; color: var(--muted); }
.meta strong { font-family: var(--round); font-weight: 600; font-size: 18px; }
.drawer .code pre { font-size: 12.5px; }
.drawer .btn { width: 100%; margin-top: 16px; }

@media (max-width: 900px) {
  .links { display: none; }
  .hero, .split, .sell { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .search { display: none; }
  .stats { gap: 22px; }
  .sell { padding: 16px; }
  .section-head { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* chains + model tiles */
.pill i, .nets i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--surface-2); }
.glyph { font: 600 16px var(--round); text-transform: uppercase; color: #26282b; background: var(--tint, var(--surface-2)); }
.drawer .glyph { font-size: 22px; }
.label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.nets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.nets button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: 800 13px var(--sans); color: var(--muted); cursor: pointer; }
.nets button.on { border-color: var(--text); color: var(--text); }
.fine { font-size: 12.5px; margin-top: 14px; }
.meta .wide { grid-column: 1 / -1; }
.fine a { color: var(--lime-ink); }
.glyph.logo { object-fit: cover; background: #fff; border: 1px solid var(--border); padding: 0; }
.cover { width: calc(100% + 56px); max-width: none; margin: -28px -28px 20px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.drawer-title { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.drawer-title h3 { margin: 0; }
.drawer-title .glyph { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
.drawer .close { z-index: 2; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(6px); }
