:root {
  --bg: #1b140f;
  --bg2: rgba(13, 9, 7, .55);
  --surface: rgba(30, 22, 17, .66);
  --surface2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .13);
  --line2: rgba(255, 255, 255, .28);
  --text: #ffffff;
  --muted: rgba(246, 241, 235, .68);
  --faint: rgba(246, 241, 235, .42);
  --cream: #f6f1eb;
  --gold: #ecdcc2;
  --gold2: #ebe4da;
  --gold-ink: #1e1a17;
  --sky: #f6f1eb;
  --up: #9fd8b4;
  --down: #f0958a;
  --glow: rgba(255, 255, 255, .07);
  --shadow: 0 24px 70px -24px rgba(0, 0, 0, .7);
  --r: 0px;
  --r-sm: 0px;
  --hdr: 66px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: 'Italiana', 'Cormorant SC', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow-x: hidden;
}
main { flex: 1; position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--gold-ink); }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.up { color: var(--up); }
.down { color: var(--down); }
.gold { color: var(--gold); }
.serif { font-family: var(--serif); font-weight: 400; }
.hide { display: none !important; }

/* ───────── background video ───────── */
.bg { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: 0; background: linear-gradient(180deg, #1b140f, #342720); animation: fade 3.12s var(--ease) backwards; pointer-events: none; }
.bg video { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .9s; display: block; }
.bg video.on { opacity: 1; }
/* the veil exists only away from the home hero, so data stays readable over the film */
.bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 20, 15, .8), rgba(27, 20, 15, .9)); opacity: 1; transition: opacity 1.1s var(--ease); }
body[data-page="home"] .bg::after { opacity: 0; }

/* ───────── header ───────── */
.hdr {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 12px clamp(20px, 4.45vw, 64px) 8px clamp(20px, 6.18vw, 89px); min-height: var(--hdr);
  transition: background .5s;
}
body:not([data-page="home"]) .hdr { background: rgba(27, 20, 15, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
body[data-page="home"] .hdr { position: relative; padding-bottom: 0; }
.brand { font: 600 25px/1 'Cormorant SC', var(--serif); letter-spacing: -.01em; margin-top: 7px; color: #fff; white-space: nowrap; display: inline-block; animation: down 1.2s var(--ease) .18s backwards; }
.logo { display: inline-flex; width: 26px; height: 26px; color: var(--text); }
.logo svg { width: 100%; height: 100%; }
.nav { display: flex; gap: clamp(16px, 2.3vw, 33px); margin-top: 15px; }
.nav a { font: 300 16px/1 var(--sans); color: #fff; display: inline-block; transition: opacity .25s; animation: down 1.2s var(--ease) backwards; position: relative; }
.nav a:nth-child(1) { animation-delay: .36s; } .nav a:nth-child(2) { animation-delay: .456s; } .nav a:nth-child(3) { animation-delay: .552s; }
.nav a:nth-child(4) { animation-delay: .648s; } .nav a:nth-child(5) { animation-delay: .744s; }
.nav a:hover { opacity: .65; }
.nav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: #fff; }
.hdr-right { display: flex; align-items: center; gap: 12px; }
.bal { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 0 12px; height: 46px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); }
.bal[hidden] { display: none; }
.bal b { color: #fff; font-weight: 500; }
.cta { font: 400 19px/1 var(--serif); letter-spacing: .06em; text-transform: uppercase; height: 46px; padding: 0 33px; display: inline-flex; align-items: center; justify-content: center; text-align: center; background: #fff; color: #1e1a17; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap; transition: background .3s; }
.cta:hover { background: #ebe4da; }
.cta.addr { font: 500 13px/1 var(--mono); letter-spacing: 0; text-transform: none; padding: 0 20px; }
.hdr .cta { animation: down 1.2s var(--ease) .84s backwards; }
.burger { display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 8px; animation: down 1.2s var(--ease) .48s backwards; }
.burger span { display: block; width: 26px; height: 1.5px; background: #fff; }

/* phone / tablet menu */
.menu { position: fixed; inset: 0; z-index: 80; background: rgba(18, 13, 10, .97); padding: 12px 20px 28px; display: none; flex-direction: column; animation: fade .45s var(--ease) backwards; }
.menu.open { display: flex; }
.menu-top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 55px; }
.menu-top .brand { animation: none; }
.menu-x { width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-x::before, .menu-x::after { content: ''; position: absolute; left: 9px; top: 21px; width: 26px; height: 1.5px; background: #fff; transform: rotate(45deg); }
.menu-x::after { transform: rotate(-45deg); }
.menu-links { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.menu-links a { font: 400 clamp(40px, 9vw, 64px)/1.1 var(--serif); color: #fff; display: inline-block; animation: up .8s var(--ease) backwards; }
.menu-links a:nth-child(1) { animation-delay: .10s; } .menu-links a:nth-child(2) { animation-delay: .17s; } .menu-links a:nth-child(3) { animation-delay: .24s; }
.menu-links a:nth-child(4) { animation-delay: .31s; } .menu-links a:nth-child(5) { animation-delay: .38s; }
.menu .cta { width: 100%; height: 56px; font-size: 23px; animation: up .8s var(--ease) .47s backwards; }
.menu .cta.addr { font-size: 14px; }
body.locked { overflow: hidden; }

/* ───────── motion ───────── */
@keyframes rise { from { opacity: 0; transform: translateY(.38em); filter: blur(12px); } }
@keyframes word { from { opacity: 0; transform: translateY(.7em); filter: blur(6px); } }
@keyframes down { from { opacity: 0; transform: translateY(-16px); } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
.ch, .w { display: inline-block; white-space: pre; }
.wd { display: inline-block; white-space: nowrap; }
.ch { animation: rise 1.44s var(--ease) backwards; }
.w { animation: word 1.08s var(--ease) backwards; }
.in-up { animation: up 1.32s var(--ease) backwards; }
.in-fade { animation: fade 1.68s var(--ease) backwards; }
.wait .ch, .wait .w, .wait.in-up { animation-play-state: paused; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ───────── home hero ───────── */
.home { min-height: calc(100svh - var(--hdr)); display: flex; flex-direction: column; overflow: hidden; }
.home-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 6vh, 64px) clamp(20px, 3.9vw, 56px) clamp(24px, 13vh, 126px); }
.home-h { font: 400 clamp(56px, 9.93vw, 220px)/1.05 var(--serif); letter-spacing: -.042em; color: #fff; margin: 0; text-transform: uppercase; }
.home-h .ln { display: flex; flex-wrap: wrap; align-items: baseline; }
.home-h .ln1 { column-gap: .02em; }
.home-h .ln2 { column-gap: .3em; }
.home-h .sm { margin-left: .14em; font-size: .53em; letter-spacing: -.01em; position: relative; top: -.1em; text-transform: none; display: inline-flex; column-gap: .26em; white-space: nowrap; }
.home-h .w { animation-duration: 1.32s; }
.home-p { font: 400 clamp(16px, 1.32vw, 19px)/1.17 var(--sans); letter-spacing: .08em; color: #f6f1eb; max-width: 27.5em; margin: clamp(18px, 1.56vw, 34px) 0 0; }
.home-p i { font-style: italic; }
.home-cta { margin-top: 31px; align-self: flex-start; height: 54px; padding: 0 22px; letter-spacing: .07em; word-spacing: .14em; animation: up 1.32s var(--ease) 3.6s backwards; }
.strip { display: flex; justify-content: center; padding: 0 clamp(20px, 3.9vw, 56px) 26px; animation: fade 1.68s var(--ease) 3.84s backwards; }
.strip-win { width: min(894px, 100%); height: 24px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%); }
.strip-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.strip-set { display: flex; align-items: center; gap: 40px; padding-right: 40px; height: 24px; color: #fff; white-space: nowrap; }
.strip-set > span { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.strip-set svg { flex: none; }
.lg1 { font: 700 12px/1 'Syncopate', var(--sans); letter-spacing: .02em; }
.lg2 { font: 700 17px/1 var(--sans); letter-spacing: -.01em; }
.lg3 { font: 700 11px/1 'Syncopate', var(--sans); letter-spacing: .02em; }
.lg4 { font: italic 500 16px/1 var(--sans); letter-spacing: .08em; }
.lg5, .lg6 { font: 600 15px/1 var(--sans); gap: 5px !important; }
.lg6 { opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }
body[data-page="home"] .ftr { display: none; }

/* ───────── buttons, inputs ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
  border-radius: 0; border: 1px solid transparent; font-weight: 400; font-size: 15px; cursor: pointer;
  transition: background .3s, border-color .3s, opacity .2s; white-space: nowrap;
}
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-gold { background: #fff; color: #1e1a17; font: 400 17px/1 var(--serif); letter-spacing: .06em; text-transform: uppercase; }
.btn-gold:hover:not(:disabled) { background: #ebe4da; }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line2); color: #fff; letter-spacing: .04em; }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-gold.btn-sm { font-size: 14px; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 16px; }
.btn-gold.btn-lg { font-size: 19px; letter-spacing: .07em; }
.btn-block { width: 100%; }
.linkish { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 13px; }
.linkish:hover { color: var(--text); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 0; outline: none; transition: border-color .15s;
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 84px; }
.input:focus, .select:focus, .textarea:focus { border-color: #fff; }
.select option { background: #1b140f; color: #fff; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.row { display: flex; gap: 10px; align-items: center; }
.row.flexwrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.amount { position: relative; }
.amount .input { padding-right: 76px; font-family: var(--mono); }
.amount .unit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); font-family: var(--mono); }
.amount .max { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 0; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 0; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: #1e1a17; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--muted); user-select: none; }
.switch input { display: none; }
.switch i { width: 30px; height: 18px; border-radius: 99px; background: var(--line2); position: relative; transition: background .15s; }
.switch i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.switch input:checked + i { background: #fff; }
.switch input:checked + i::after { transform: translateX(12px); background: var(--gold-ink); }
.switch input:checked ~ b { color: var(--text); }
.switch b { font-weight: 500; }

/* ───────── layout ───────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.kicker { font: 400 12px/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.kicker b { color: #fff; font-weight: 500; }
h1, h2, h3 { margin: 0; letter-spacing: 0; font-weight: 500; }
.display { font: 400 clamp(42px, 7.2vw, 112px)/1.03 var(--serif); letter-spacing: -.035em; text-transform: uppercase; color: #fff; }
.display em { font-style: normal; color: var(--gold); }
.h2 { font: 400 clamp(30px, 4.2vw, 58px)/1.06 var(--serif); letter-spacing: -.025em; text-transform: uppercase; margin-top: 16px; }
.h2 em { font-style: normal; color: var(--gold); }
.lead { font-size: clamp(16px, 1.32vw, 19px); line-height: 1.3; letter-spacing: .05em; color: var(--cream); max-width: 34em; margin: 22px 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.card-p { padding: 22px; }
.card h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack { display: grid; gap: 14px; align-content: start; }
.sep { height: 1px; background: var(--line); margin: 18px 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 0; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.pill.gold { color: #1e1a17; border-color: #fff; background: #fff; }
.pill.up { color: var(--up); border-color: color-mix(in oklab, var(--up) 35%, transparent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px color-mix(in oklab, var(--up) 25%, transparent); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-family: var(--mono); font-size: 13px; text-align: right; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.scroll-x { overflow-x: auto; }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.note b { color: var(--text); font-weight: 600; }
.warn { padding: 12px 14px; border-radius: 0; border: 1px solid color-mix(in oklab, var(--gold) 35%, transparent); background: var(--glow); font-size: 13px; }

/* ───────── page hero ───────── */
.hero { position: relative; padding: clamp(56px, 11vh, 120px) 0 72px; overflow: hidden; }
.hero .wrap { position: relative; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 400 30px/1.15 var(--serif); letter-spacing: 0; }
.stat span { font-size: 12px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

/* ───────── steps ───────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.step { padding: 22px 22px 0 0; }
.step .n { font: 400 30px/1 var(--serif); color: #fff; }
.step h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin: 12px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ───────── chat ───────── */
.chat-page { display: grid; grid-template-columns: 250px 1fr; height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr)); }
.chat-side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg2); }
.chat-side .list { display: grid; gap: 2px; overflow-y: auto; }
.chat-side .item { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 0; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.chat-side .item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-side .item:hover, .chat-side .item.on { background: var(--surface2); color: var(--text); }
.chat-side .item .x { opacity: 0; border: 0; background: none; color: var(--faint); cursor: pointer; }
.chat-side .item:hover .x { opacity: 1; }
.chat-main { display: flex; flex-direction: column; min-width: 0; position: relative; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 28px 24px 200px; }
.chat-hero { max-width: 760px; margin: 9vh auto 0; text-align: center; position: relative; }
.chat-hero .display { font-size: clamp(40px, 6.6vw, 96px); }
.chat-hero .kicker { justify-content: center; }
.chat-hero p { color: var(--muted); font-size: 17px; margin: 18px auto 0; max-width: 540px; }
.msgs { max-width: 780px; margin: 0 auto; display: grid; gap: 22px; }
.msg { display: grid; gap: 6px; }
.msg .who { font-size: 12px; color: var(--faint); font-family: var(--mono); display: flex; gap: 8px; align-items: center; }
.msg.user .body { background: var(--surface2); border: 1px solid var(--line); padding: 12px 16px; border-radius: 0; justify-self: end; max-width: 85%; white-space: pre-wrap; }
.msg.user .who { justify-self: end; }
.msg.bot .body { line-height: 1.65; overflow-wrap: anywhere; }
.msg.bot .body p { margin: 0 0 12px; }
.msg.bot .body p:last-child { margin-bottom: 0; }
.msg.bot .body pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; overflow-x: auto; font: 13px/1.5 var(--mono); }
.msg.bot .body code { font-family: var(--mono); font-size: .9em; background: var(--surface2); padding: 1px 5px; border-radius: 0; }
.msg.bot .body pre code { background: none; padding: 0; }
.msg.bot .body ul, .msg.bot .body ol { padding-left: 22px; margin: 0 0 12px; }
.msg.bot .body h1, .msg.bot .body h2, .msg.bot .body h3 { font-size: 16px; margin: 16px 0 8px; }
.msg.bot .body a { color: var(--sky); text-decoration: underline; }
.msg .err { color: var(--down); font-size: 14px; }
.cursor::after { content: '▍'; animation: blink 1s steps(2) infinite; color: #fff; }
@keyframes blink { 50% { opacity: 0; } }
.composer-wrap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 22px; background: linear-gradient(transparent, rgba(24, 18, 13, .94) 42%); }
.composer { max-width: 780px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line2); border-radius: 0; box-shadow: var(--shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); padding: 10px 10px 10px 16px; transition: border-color .2s, box-shadow .2s; }
.composer.private { border-color: #fff; box-shadow: 0 0 0 4px var(--glow), var(--shadow); }
.composer textarea { width: 100%; border: 0; background: none; outline: none; resize: none; min-height: 26px; max-height: 220px; padding: 6px 0; font-size: 15.5px; }
.composer .cbar { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.composer .send { margin-left: auto; width: 40px; height: 40px; padding: 0; font: 400 18px/1 var(--sans); }
.model-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 0; border: 1px solid var(--line); background: var(--bg2); font-size: 12.5px; font-weight: 600; cursor: pointer; max-width: 240px; }
.model-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-foot { max-width: 780px; margin: 8px auto 0; font-size: 12px; color: var(--faint); text-align: center; }
.picker { position: absolute; bottom: 100%; left: 0; margin-bottom: 8px; width: min(440px, calc(100vw - 48px)); max-height: 420px; display: flex; flex-direction: column; background: rgba(27, 20, 15, .96); border: 1px solid var(--line2); border-radius: 0; box-shadow: var(--shadow); z-index: 30; }
.picker .input { border: 0; border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; background: none; }
.picker .opts { overflow-y: auto; padding: 6px; }
.picker .opt { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 0; cursor: pointer; font-size: 13.5px; }
.picker .opt:hover, .picker .opt.on { background: var(--surface2); }
.picker .opt small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }

/* ───────── launchpad ───────── */
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.coin { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; transition: border-color .15s, transform .15s; cursor: pointer; }
.coin:hover { border-color: var(--line2); transform: translateY(-1px); }
.coin img, .coin .ph { width: 64px; height: 64px; border-radius: 0; object-fit: cover; background: var(--surface2); }
.ph { background: var(--surface2); border-radius: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; color: #fff; }
.coin h4 { margin: 0; font-size: 15px; display: flex; gap: 6px; align-items: center; }
.coin h4 small { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 12px; }
.coin .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.coin .meta b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.bar { height: 3px; border-radius: 0; background: var(--surface2); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: #fff; border-radius: 0; }
.feed { display: grid; gap: 0; }
.feed .f { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.feed .f:last-child { border-bottom: 0; }
.tok-head { display: flex; gap: 16px; align-items: center; }
.tok-head img, .tok-head .ph { width: 72px; height: 72px; border-radius: 0; object-fit: cover; }
.chart { height: 380px; }
.lp-layout { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { background: none; border: 0; padding: 10px 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--muted); border-bottom: 1px solid transparent; cursor: pointer; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-bottom-color: #fff; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.flow .card { padding: 18px; position: relative; }
.flow .card .big { font-family: var(--serif); font-size: 54px; line-height: 1; color: #fff; }
.flow .card p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.drop { display: grid; place-items: center; height: 120px; border: 1.5px dashed var(--line2); border-radius: 0; cursor: pointer; color: var(--muted); font-size: 13px; overflow: hidden; }
.drop img { width: 100%; height: 100%; object-fit: cover; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 400; font-size: 18px; letter-spacing: .03em; list-style: none; display: flex; justify-content: space-between; }
details.faq summary::after { content: '+'; color: var(--muted); }
details.faq[open] summary::after { content: '–'; }
details.faq p { color: var(--muted); margin: 10px 0 0; }

/* ───────── locked launchpad ───────── */
.locked { position: relative; overflow: hidden; }
.locked > :not(.lock-veil) { filter: blur(2.5px); opacity: .38; pointer-events: none; user-select: none; }
.lock-veil { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 24px; background: linear-gradient(180deg, rgba(27, 20, 15, .25), rgba(27, 20, 15, .55)); }
.lock-veil svg { display: block; margin: 0 auto 14px; color: #fff; }
.lock-veil b { display: block; font: 400 clamp(24px, 2.4vw, 32px)/1.1 var(--serif); letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.lock-veil p { margin: 10px auto 0; max-width: 26em; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.lock-pill { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.lock-pill svg { width: 14px; height: 14px; }
.btn.is-locked { cursor: not-allowed; opacity: .85; }
.btn.is-locked svg { width: 18px; height: 18px; }
.lock-note { display: flex; gap: 8px; align-items: center; }
.lock-empty { display: grid; justify-items: center; gap: 10px; padding: 56px 20px; }
.lock-empty svg { color: #fff; }
.lock-empty b { font: 400 26px/1.1 var(--serif); text-transform: uppercase; color: #fff; letter-spacing: .02em; }
.lock-note svg { width: 16px; height: 16px; flex: none; }

/* ───────── book ───────── */
.depth .lv { display: grid; grid-template-columns: 1fr 1fr; position: relative; font-family: var(--mono); font-size: 13px; padding: 5px 8px; }
.depth .lv i { position: absolute; right: 0; top: 2px; bottom: 2px; background: color-mix(in oklab, var(--down) 14%, transparent); border-radius: 0; }
.depth .lv span { position: relative; }
.depth .lv span:last-child { text-align: right; }

/* ───────── docs ───────── */
.prose { font-size: 16px; line-height: 1.7; }
.prose h2 { font: 400 36px/1.1 var(--serif); text-transform: uppercase; letter-spacing: -.015em; margin: 52px 0 14px; }
.prose h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin: 30px 0 8px; }
.prose p, .prose li { color: color-mix(in oklab, var(--text) 82%, var(--muted)); }
.prose a { color: var(--sky); text-decoration: underline; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--surface2); padding: 1px 6px; border-radius: 0; }
.prose pre, pre.code { background: var(--bg2); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; overflow-x: auto; font: 13px/1.55 var(--mono); position: relative; }
.prose pre code { background: none; padding: 0; }
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 56px 0 96px; }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.toc a { padding: 6px 10px; border-radius: 0; font-size: 13.5px; color: var(--muted); }
.toc a:hover { color: var(--text); background: var(--surface); }
.copy { position: absolute; top: 8px; right: 8px; }
.addr { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }

/* ───────── footer, toasts ───────── */
.ftr { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 0; background: rgba(18, 13, 10, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.ftr-brand strong { font: 600 22px/1 'Cormorant SC', var(--serif); }
.ftr-in { max-width: 1180px; margin: 0 auto; padding: 44px 24px 24px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ftr-brand { display: flex; gap: 12px; align-items: flex-start; }
.ftr-brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.ftr-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.ftr-cols div { display: grid; gap: 6px; align-content: start; }
.ftr-cols h4 { margin: 0 0 4px; font-size: 12px; color: var(--faint); font-weight: 400; text-transform: uppercase; letter-spacing: .24em; }
.ftr-cols a { font-size: 14px; color: var(--muted); }
.ftr-cols a:hover { color: var(--text); }
.ftr-bot { max-width: 1180px; margin: 0 auto; padding: 14px 24px 28px; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--faint); font-family: var(--mono); }
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 100; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: rgba(27, 20, 15, .96); border: 1px solid var(--line2); border-radius: 0; padding: 12px 14px; font-size: 13.5px; box-shadow: var(--shadow); animation: tin .2s ease-out; }
.toast.err { border-color: color-mix(in oklab, var(--down) 50%, transparent); }
.toast.ok { border-color: color-mix(in oklab, var(--up) 50%, transparent); }
.toast a { color: var(--sky); text-decoration: underline; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }
.modal-bg { position: fixed; inset: 0; background: rgba(18, 13, 10, .8); z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal { width: min(460px, 100%); }

/* ───────── responsive ───────── */
@media (max-width: 980px) {
  .grid4, .stats, .steps, .flow { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid3 { grid-template-columns: 1fr; }
  .lp-layout { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .bal { display: none; }
}
@media (max-width: 600px) {
  .hdr .cta { display: none; }
}
@media (max-width: 760px) {
  .wrap, .wrap-sm { padding: 0 20px; }
  .grid2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 48px; }
  .chat-page { grid-template-columns: 1fr; }
  .chat-side { display: none; }
  .chat-scroll { padding: 20px 16px 210px; }
  .composer-wrap { padding: 0 12px 14px; }
  .steps, .flow { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .ftr-in, .ftr-bot { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .strip-track { animation: none !important; }
  .bg video { opacity: 1; }
}
.grid2 > *, .grid3 > *, .grid4 > *, .lp-layout > *, .docs-layout > * { min-width: 0; }
