/* Landing (#/), scoped under .ld. Four screens of the page's own scroll box (--ld-h, set by landing.js): the hero
   with the live terminal rising out of a lit frame (the grain-gradient effect), the tour, the liquid statement, the close.
   Colours are the theme's tokens, so a skin or a custom accent carries through. Motion: the hero's entrance (.is-in),
   the effect, the moments' own CSS (src/vendor/taste/moments), hovers; everything rests under reduced motion. */
.ld { --ld-max: 1280px; --ld-ease: cubic-bezier(.22, 1, .36, 1); --ld-h: 100vh;
  /* the moments read the kit's names for the page tokens */
  --ink: var(--fg); --font-display: var(--sans); --t-lead: 22px; --s-3: 12px; --s-4: 20px;
  background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ld .ld-in { width: 100%; max-width: var(--ld-max); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.ld p { max-width: none; }
.ld .ld-arrow { display: inline-flex; transition: transform .2s var(--ld-ease); }
.ld .ld-arrow svg { width: 15px; height: 15px; }
.ld a:hover .ld-arrow { transform: translateX(3px); }
.ld .ld-sec { position: relative; min-height: var(--ld-h); display: grid; align-content: safe center; padding: 48px 0; }

/* buttons: one pair, pills; they step up on hover and press on click */
.ld-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border-radius: 999px; font: 600 15.5px/1 var(--sans); white-space: nowrap; transition: transform .18s var(--ld-ease), box-shadow .18s var(--ld-ease), background-color .18s, border-color .18s; }
.ld-btn:hover { transform: translateY(-1px); }
.ld-btn:active { transform: translateY(1px) scale(.985); transition-duration: .06s; }
.ld-btn-main { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.ld-btn-main:hover { box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent) 85%, transparent); }
.ld-btn-ghost { border: 1px solid var(--line-2); color: var(--fg); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.ld-btn-ghost:hover { border-color: color-mix(in srgb, var(--fg) 40%, transparent); background: color-mix(in srgb, var(--fg) 8%, transparent); }

/* ---- hero: one screen. Pill, headline, grey line, buttons, then the lit frame takes the rest and fades at the foot ---- */
.ld-hero { position: relative; isolation: isolate; height: var(--ld-h); min-height: 640px; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
/* a soft pool of the accent behind the words, so the black is never flat */
.ld-hero::before { content: ''; position: absolute; z-index: -1; left: 50%; top: -30%; width: min(1100px, 120vw); height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent); pointer-events: none; }
.ld .ld-hero-in { display: grid; justify-items: center; text-align: center; padding-top: clamp(40px, 9vh, 104px); }
.ld-pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; margin: 0 0 22px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--muted); font-size: 13px; white-space: nowrap; }
.ld-pill b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.ld-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); animation: ld-ping 2.4s var(--ld-ease) infinite; }
@keyframes ld-ping { 70%, 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--up) 0%, transparent); } }
.ld .ld-hero h1 { margin: 0; max-width: 16ch; font: 500 clamp(40px, 5.4vw, 78px)/1.02 var(--sans); letter-spacing: -.045em; color: var(--fg); text-wrap: balance; }
.ld .ld-lede { margin: 18px 0 0; max-width: 52ch; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; text-wrap: balance; }
.ld-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.ld .ld-stage { position: relative; min-height: 0; padding-top: 34px; }
/* the lit frame: the effect's canvas fills it (fx.js mounts into it); the window sits 32px in; the frame's last 18% fades */
.ld-frame { position: relative; isolation: isolate; height: 100%; min-height: 260px; padding: 32px 32px 0; border-radius: 22px 22px 0 0; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 30%, var(--panel)), var(--bg)); -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.ld-frame > canvas, .ld-frame > .fx-fallback { border-radius: inherit; }
.ld-frame .ld-app { max-width: 1120px; margin: 0 auto; }

/* the entrance, once on load: the words rise in turn, then the window lifts out of the frame */
.ld-hero [style*="--i"] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ld-ease), transform .8s var(--ld-ease); transition-delay: calc(var(--i) * 90ms + 80ms); }
.ld-hero .ld-app { opacity: 0; transform: translateY(60px) scale(.985); transition: opacity 1s var(--ld-ease), transform 1.2s var(--ld-ease); transition-delay: .45s; }
.ld-hero .ld-frame { opacity: 0; transition: opacity 1.2s var(--ld-ease) .25s; }
.ld.is-in .ld-hero [style*="--i"], .ld.is-in .ld-hero .ld-app { opacity: 1; transform: none; }
.ld.is-in .ld-hero .ld-frame { opacity: 1; }

/* the preview window: a coin header, the chart, the newest launches */
.ld-app { position: relative; z-index: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 14px; background: var(--bg); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4); overflow: hidden; text-align: left; }
.ld-app-head { display: flex; align-items: center; gap: 18px; min-height: 60px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--panel); min-width: 0; }
.ld-coin { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.ld-coin .ld-sk-av { width: 36px; height: 36px; }
.ld-coin .ld-sk-t { width: 120px; height: 14px; }
.ld-coin-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ld-coin-id .av.sm { width: 38px; height: 38px; border-radius: var(--radius); border: 2px solid color-mix(in srgb, var(--lp, var(--line-2)) 45%, transparent); }
.ld-coin-nm { display: grid; gap: 3px; min-width: 0; }
.ld-coin-nm b { font: 600 15px/1.1 var(--sans); color: var(--fg); white-space: nowrap; }
.ld-coin-nm span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.ld-coin-id:hover b { color: var(--accent); }
.ld-coin-data { --hf: var(--panel); flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.ld-coin-data::-webkit-scrollbar { display: none; }
.ld-cd { display: grid; gap: 3px; flex: none; }
.ld-cd b { font: 500 14px/1.1 var(--mono); font-variant-numeric: tabular-nums; color: var(--fg); }
.ld-cd span { color: var(--muted); font-size: 11.5px; }
.ld-cd.mc b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.ld-cd.mc.lo b { color: var(--mc-low); } .ld-cd.mc.mid b { color: var(--mc-mid); } .ld-cd.mc.hi b { color: var(--mc-high); }
.ld-chg { display: flex; gap: 6px; flex: none; }
.ld-chg em { font-style: normal; color: var(--muted); margin-right: 2px; }
.ld .ld-trade { flex: none; margin-left: auto; height: 30px; padding: 0 14px; font-size: 12.5px; }

.ld-app-body { display: grid; grid-template-columns: minmax(0, 1fr) 372px; height: 520px; min-height: 0; }
.ld-chart-col { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; background: var(--chart-bg); border-right: 1px solid var(--line); }
.ld-ctools { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.ld-ivs { display: flex; gap: 2px; }
.ld-ivs button { height: 26px; min-width: 32px; padding: 0 8px; border: 0; border-radius: var(--radius); background: none; color: var(--muted); font: 500 12.5px/1 var(--sans); }
.ld-ivs button:hover { color: var(--fg); background: var(--hover); }
.ld-ivs button[aria-pressed="true"] { background: var(--fill); color: var(--accent); }
.ld-ct-r { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ld-chart { position: relative; min-height: 0; }
.ld-chart .lc-box { position: absolute; inset: 0; }
.ld-chart .lc-legend { position: absolute; z-index: 2; top: 8px; left: 10px; right: 70px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; pointer-events: none; color: var(--muted); font: 500 12px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.ld-chart .lc-legend .lc-t { color: var(--fg-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-chart .lc-legend span b { margin-left: 3px; font-weight: 500; }
.ld-chart .lc-note { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; padding: 20px; color: var(--muted); font-size: 12.5px; text-align: center; pointer-events: none; }
.ld-chart .lc-note[hidden] { display: none; }

/* the newest launches column, headed like a Pulse column */
.ld-live { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; background: var(--panel); }
.ld-live-head { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ld-live-head b { font-weight: 600; }
.ld-live-head .mono { font-size: 11.5px; }
.ld-paused { margin-left: auto; color: var(--warn); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ld-live-list { overflow: hidden; position: relative; min-height: 0; }
.ld-live-list::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(transparent, var(--panel)); pointer-events: none; }
.ld-live-list .empty { height: 100%; align-content: center; }
.ld-c.in { animation: ld-in .55s cubic-bezier(.2, .8, .2, 1); }
.ld-c.in .card { animation: fresh 1.6s ease-out; }
@keyframes ld-in { from { transform: translateY(-14px); opacity: 0; } }
.ld-live-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 38px; padding: 0 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.ld-live-foot .ld-arrow { color: var(--accent); }
.ld-live-foot:hover { color: var(--fg); background: var(--hover); }
/* mini token cards: the shared .card.nc row (css/pulse.css) in its compact form; only the window's own tweaks here */
.ld-live .card.nc { background: transparent; border-bottom-color: var(--line-soft); }
.ld-live .card.nc:hover { background: var(--hover); }
.ld-live .nc-l3:has(> .nil:only-child) { display: none; }

/* ---- the tour: three cards, each a live piece of the product, then the launchpads' marquee ---- */
.ld-head { display: grid; justify-items: center; gap: 12px; margin-bottom: 32px; text-align: center; }
.ld .ld-head h2, .ld .ld-close h2 { margin: 0; max-width: 24ch; font: 500 clamp(32px, 3.6vw, 52px)/1.05 var(--sans); letter-spacing: -.04em; color: var(--fg); text-wrap: balance; }
.ld .ld-head p, .ld .ld-close p { margin: 0; max-width: 72ch; color: var(--muted); font-size: 17px; line-height: 1.55; text-wrap: balance; }
.ld-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ld-card { display: grid; grid-template-rows: 1fr auto auto; gap: 8px; min-width: 0; padding: 14px 14px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--fg); transition: transform .25s var(--ld-ease), border-color .25s, box-shadow .25s; }
.ld-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--accent) 50%, transparent); }
.ld-card > b { padding: 10px 8px 0; font: 600 18px/1.2 var(--sans); letter-spacing: -.01em; }
.ld-card > span { padding: 0 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
/* the fragment: real product UI on a lit panel (the accent, mixed into the panel from its top corner) */
.ld-frag { display: grid; align-content: center; gap: 8px; min-height: 200px; padding: 16px; border-radius: 12px; overflow: hidden; background: radial-gradient(130% 100% at 100% 0%, color-mix(in srgb, var(--accent) 20%, var(--panel-2)), var(--bg) 70%); border: 1px solid var(--line); }
.ld-lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: stretch; gap: 8px; }
.ld-lane { display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.ld-lane-h { display: grid; gap: 2px; font-size: 11.5px; color: var(--muted); }
.ld-lane-h b { color: var(--fg-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-lane-h .mono { color: var(--fg); font: 600 22px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.ld-lane-av { display: flex; flex-wrap: wrap; align-content: start; gap: 6px; }
.ld-lane-av .av.sm { width: 30px; height: 30px; border-radius: 8px; }
.ld-lane-none { display: block; height: 30px; border-radius: 8px; background: var(--line); opacity: .5; }
.ld-tok { justify-items: start; gap: 16px; }
.ld-tok-id { display: flex; align-items: center; gap: 10px; }
.ld-tok-id .av.sm { width: 40px; height: 40px; border-radius: 10px; }
.ld-tok-id span { display: grid; gap: 2px; min-width: 0; }
.ld-tok-id b { font: 600 16px/1.1 var(--sans); }
.ld-tok-id em { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; font-style: normal; }
.ld-tok-mc { display: grid; gap: 2px; }
.ld-tok-mc b { color: var(--mc-high); font: 600 34px/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ld-tok-mc span { color: var(--muted); font-size: 12px; }
.ld-tok-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ld-tok-ch em { font-style: normal; color: var(--muted); margin-right: 3px; }
.ld-tok-qb { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--sans); }
.ld-kols { gap: 6px; }
.ld-kol { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.ld-kol img { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--line); }
.ld-kol b { font: 600 13px/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-kol span { grid-column: 2; color: var(--dim); font-size: 11px; }
.ld-kol em { grid-column: 3; grid-row: 1 / span 2; padding: 4px 10px; border-radius: 999px; background: var(--sel-bg); color: var(--sel-fg); font: 600 11.5px/1 var(--sans); font-style: normal; }
.ld-none { color: var(--muted); font-size: 13px; }
/* the marquee row: each launchpad's own logo, in its colours, beside its name as the brand writes it */
.ld-pads { margin-top: 28px; }
.ld .ld-pads .mo-mq__track { font: 600 clamp(20px, 2.2vw, 30px)/1 var(--sans); letter-spacing: -.02em; color: var(--fg-2); }
.ld .ld-pads li { display: inline-flex; align-items: center; gap: 10px; transition: color .2s var(--ld-ease); }
.ld .ld-pads { --pl-h: 34px; }
.ld .ld-pads .mo-mq__track img { flex: none; width: auto; height: var(--pl-h); opacity: 1; object-fit: contain; transition: transform .25s var(--ld-ease); }
.ld .ld-pads .mo-mq__track .pl-word { height: calc(var(--pl-h) * .72); }   /* a wordmark sits at cap height beside its mark */
.ld .ld-pads .mo-mq__track .pl-lock img { height: calc(var(--pl-h) * var(--s, 1.1)); } /* a full lockup carries its own padding */
.ld .ld-pads li:hover { color: var(--fg); }
.ld .ld-pads li:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .ld .ld-pads { --pl-h: 26px; } .ld .ld-pads .mo-mq__track { font-size: 18px; } }
/* the row pauses under the pointer and stands still under reduced motion; no pause button */
.ld .ld-pads .loop-pause { display: none; }

/* ---- the statement: one giant line that ripples under the pointer ---- */
.ld-statement { background: radial-gradient(60% 50% at 50% 50%, color-mix(in srgb, var(--accent) 8%, transparent), transparent); }
.ld-statement .ld-in { display: grid; justify-items: center; gap: 28px; text-align: center; }
.ld .ld-statement .mo-lt__type { max-width: 13ch; font: 600 clamp(52px, 8.6vw, 148px)/.95 var(--sans); letter-spacing: -.055em; color: var(--fg); text-wrap: balance; }
.ld .ld-statement p { max-width: 52ch; color: var(--muted); font-size: 18px; line-height: 1.55; text-wrap: balance; }

/* ---- the close and the footer, one screen together ---- */
.ld-close { align-content: stretch; grid-template-rows: 1fr auto; padding-bottom: 0; }
.ld .ld-close-in { display: grid; justify-items: center; align-content: center; gap: 16px; text-align: center; }
.ld-close-mark { width: 48px; height: 58px; margin-bottom: 6px; color: var(--accent); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 45%, transparent)); }
.ld-close-mark svg { display: block; width: 100%; height: 100%; }
.ld .ld-close .ld-btn { margin-top: 10px; }
.ld .ld-hint { margin-top: 2px; font-size: 13px; color: var(--dim); }
.ld-foot { border-top: 1px solid var(--line); }
.ld .ld-foot-in { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; align-items: center; padding-top: 22px; padding-bottom: 26px; }
.ld-foot-brand { display: flex; align-items: center; gap: 8px; color: var(--fg); }
.ld-foot-brand svg { width: 20px; height: 24px; }
.ld-foot-brand .wordmark { width: 101px; height: 11px; }
.ld-foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; color: var(--muted); font-size: 13px; }
.ld-foot-links a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ld-ease), color .15s; }
.ld-foot-links a:hover { color: var(--fg); background-size: 100% 1px; }
.ld .ld-risk { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 12px; line-height: 1.6; max-width: 110ch; }

/* ---- narrower screens ---- */
@media (max-width: 1100px) {
  .ld .ld-in { padding-left: 28px; padding-right: 28px; }
  .ld-app-body { grid-template-columns: minmax(0, 1fr) 320px; }
  .ld-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-cards > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .ld-app-head { flex-wrap: wrap; gap: 12px 14px; padding: 10px 12px 12px; }
  .ld-coin-data { order: 1; flex-basis: 100%; flex-wrap: wrap; gap: 10px 18px; overflow: visible; background: none; }
  .ld-app-body { grid-template-columns: 1fr; grid-template-rows: 340px 380px; height: auto; }
  .ld-chart-col { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .ld .ld-in { padding-left: 16px; padding-right: 16px; }
  .ld-hero { min-height: 600px; }
  .ld-pill { font-size: 12px; padding: 0 12px; }
  .ld-cta { width: 100%; }
  .ld-btn { flex: 1 1 100%; }
  .ld .ld-stage { padding-top: 26px; }
  .ld-frame { padding: 14px 14px 0; border-radius: 18px 18px 0 0; }
  .ld .ld-trade, .ld-ct-r, .ld-live { display: none; }
  .ld-app-body { grid-template-rows: 300px; }
  .ld-chg { flex-basis: 100%; }
  .ld-chart .lc-legend { flex-wrap: nowrap; }
  .ld-chart .lc-legend > span:nth-child(n+2):nth-child(-n+4), .ld-chart .lc-legend .lc-mc { display: none; }
  .ld-cd.mc b { font-size: 17px; }
  .ld .ld-sec { padding: 48px 0; }
  .ld-cards { grid-template-columns: 1fr; }
  .ld-frag { min-height: 190px; }
  .ld .ld-head p, .ld .ld-close p { font-size: 15.5px; }
  .ld .ld-foot-in { grid-template-columns: 1fr; }
  .ld-foot-links { justify-content: flex-start; }
  .ld-live .nc-v { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-hero [style*="--i"], .ld-hero .ld-app, .ld-hero .ld-frame { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ld-pill i { animation: none; }
  .ld-btn, .ld-card { transition: none; }
}
