/*
 * Stockimus landing (index.html). A port of the original landing's system (its own compact CSS, not the shared base
 * block), recoloured to the Stockimus tokens. Loads after css/site.css; every rule is scoped under .lnd so the
 * shared classes (.wrap, .note, .lead, h1, h2) keep their look on the other pages.
 */

/* Token fallbacks at zero specificity: css/site.css owns the real values and always wins. */
:where(:root) {
  --bg: #0A0909; --s1: #121010; --s2: #191515; --s3: #221C1C; --hair: rgba(255,255,255,.06); --hair2: rgba(255,255,255,.10);
  --t1: #F4F1F1; --t2: #ADA5A5; --t3: #8A8181;
  --acc: #E8141B; --acc-hi: #FF3B3B; --acc-ink: #FFFFFF; --acc-glow: rgba(232,20,27,.45);
  --blue: #4FB4FF; --blue-hi: #8FD0FF; --amb: #E3B93C; --up: #3DDC97; --down: #FF6B5A;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", -apple-system, system-ui, sans-serif;
  --pixel: "Silkscreen", "Geist Mono", monospace;
}
:where(body.landing) { margin: 0; background: var(--bg); color: var(--t1); font-family: var(--sans); font-size: 15px; line-height: 1.5; font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
:where(.lnd) :where(.btn) { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 9px; background: var(--s2); color: var(--t1); font-size: 13.5px; font-weight: 500; white-space: nowrap; text-decoration: none; }
:where(.lnd) :where(.btn.acc) { background: var(--acc); color: var(--acc-ink); font-weight: 600; }

html:has(body.landing) { scroll-behavior: smooth; }
/* the nav is fixed over the hero as on the original landing: <header data-site="nav" data-fixed> (css/site.css) */

/* --stage: the scroll stage in viewport heights. One screen for the hero, the rest drives the split (1/2.6 of it),
   the orbit (0.6/2.6) and the fade (0.8/2.6), as on the original 360vh stage. The next section overlaps the stage by one
   phase unit so it arrives as the orbit completes. js/landing.js reads the same variable. */
.lnd { display: block; overflow-x: clip; --stage: 3.6; }
.lnd a { color: inherit; text-decoration: none; }
.lnd .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lnd .btn.lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 11px; }
.lnd .btn:focus-visible, .lnd a:focus-visible, .lnd [role="button"]:focus-visible { outline: 2px solid var(--acc-hi); outline-offset: 3px; }
.lnd svg.ar { width: 14px; height: 14px; flex: none; }

/* ------------------------------------------------------------------ stage: sticky hero, scroll drives the split */
.lnd .stage { height: calc(var(--stage) * 100vh); position: relative; }
.lnd .hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; display: flex; flex-direction: column; align-items: center; isolation: isolate; background: var(--bg); }

/* the banner, darkened and vignetted, behind the original hero mechanics */
.lnd .hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: opacity; }
.lnd .hero-art img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; filter: brightness(.40) saturate(1.12) contrast(1.04); transform: scale(1.02); }
.lnd .hero-art::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10,9,9,.95) 0%, rgba(10,9,9,.74) 24%, rgba(10,9,9,.36) 50%, rgba(10,9,9,.40) 72%, rgba(10,9,9,.90) 92%, var(--bg) 100%),
  radial-gradient(90% 80% at 50% 66%, rgba(10,9,9,0) 30%, rgba(10,9,9,.55) 66%, rgba(10,9,9,.92) 100%); }

.lnd .hero .copy { position: relative; z-index: 3; text-align: center; padding: clamp(104px, 13vh, 168px) 24px 0; max-width: 808px; margin: 0 auto; }
.lnd .hero h1 { margin: 0; font-size: 52px; font-weight: 500; line-height: 1.08; letter-spacing: -.015em; color: var(--t1); text-wrap: balance; text-shadow: 0 2px 28px rgba(0,0,0,.6); }
.lnd .hero .lead { font-size: 18px; color: var(--t2); margin: 18px auto 26px; max-width: 560px; text-shadow: 0 1px 18px rgba(0,0,0,.7); }
.lnd .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lnd #sph { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.lnd .field { position: absolute; left: 0; right: 0; top: var(--ft, 50%); bottom: 0; z-index: 2; pointer-events: none; }

/* token chips: glass pills holding a glass bubble with the stock logo */
.lnd .chip { --k: 1; position: absolute; left: 0; top: 0; opacity: 0; display: inline-flex; align-items: center; gap: calc(9px * var(--k)); height: calc(44px * var(--k)); padding: 0 calc(16px * var(--k)) 0 calc(6px * var(--k)); border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.03) 46%, rgba(0,0,0,.22)), rgba(30,22,22,.78);
  color: #fff; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 14px 34px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.16);
  font-size: calc(14px * var(--k)); font-weight: 600; letter-spacing: .01em; white-space: nowrap; will-change: transform; backface-visibility: hidden; user-select: none; -webkit-user-select: none; }
.lnd .chip i { width: calc(32px * var(--k)); height: calc(32px * var(--k)); border-radius: 50%; display: block; position: relative; overflow: hidden; flex: none;
  background: var(--disc, #141010) var(--lg) center / var(--sz, cover) no-repeat;
  box-shadow: 0 0 0 1px rgba(255,110,110,.55), 0 0 calc(12px * var(--k)) rgba(232,20,27,.42); }
.lnd .chip i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background:
  radial-gradient(circle at 32% 24%, rgba(255,255,255,.58) 0, rgba(255,255,255,.14) 16%, rgba(255,255,255,0) 38%),
  radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 56%, rgba(255,70,70,.22) 84%, rgba(255,255,255,.20) 100%); }
.lnd .chip.pt i { box-shadow: 0 0 0 1.5px var(--blue), 0 0 calc(16px * var(--k)) rgba(79,180,255,.7); }
.lnd .chip.yt i { box-shadow: 0 0 0 1.5px var(--acc-hi), 0 0 calc(16px * var(--k)) rgba(232,20,27,.8); }
.lnd .chip.pt { border-color: rgba(79,180,255,.55); }
.lnd .chip.yt { border-color: rgba(255,59,59,.62); }
.lnd .chip.whole { z-index: 40; pointer-events: auto; cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.lnd .chip.whole:hover, .lnd .chip.whole:focus-visible { border-color: var(--acc); box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 40px rgba(232,20,27,.28), inset 0 1px 0 rgba(255,255,255,.16); outline: none; }
.lnd .chip.whole:hover i, .lnd .chip.whole:focus-visible i { box-shadow: 0 0 0 1.5px var(--acc-hi), 0 0 18px rgba(232,20,27,.75); }
.lnd .hint { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); will-change: transform; font-size: 12px; color: var(--t3-aa, #8A8181); white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none; }
.lnd .chip.whole:hover ~ .hint, .lnd .chip.whole:focus-visible ~ .hint { opacity: 1; color: var(--acc-hi); }
@media (hover: none) { .lnd .hint { opacity: .9; color: var(--t2); } }
.lnd .hero.on .chip { pointer-events: auto; cursor: pointer; }
.lnd .hero.on .chip:hover { border-color: var(--acc); }

/* built on: shows once the orbit has formed */
.lnd .built { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 28px; opacity: 0; transition: opacity .6s ease; white-space: nowrap; margin: 0; padding: 0; list-style: none; }
.lnd .built .lab { font-size: 13px; color: var(--t3-aa, #8A8181); }
.lnd .built .pb { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--t2); }
.lnd .built .pb i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--t1); position: relative;
  background: radial-gradient(circle at 34% 26%, rgba(255,255,255,.22), rgba(255,255,255,0) 46%), rgba(28,20,20,.85);
  box-shadow: 0 0 0 1px rgba(255,110,110,.38), 0 0 10px rgba(232,20,27,.25); }
.lnd .built .pb svg { width: 15px; height: 15px; }
.lnd .hero.on .built { opacity: 1; }
.lnd .hero.on .built.tight { opacity: 0 !important; }

.lnd .scrollhint { position: absolute; bottom: 22px; left: 24px; z-index: 3; color: var(--t3-aa, #8A8181); font-size: 12px; display: flex; align-items: center; gap: 8px; transition: opacity .3s; }
.lnd .scrollhint i { width: 1px; height: 18px; background: linear-gradient(180deg, var(--t3), rgba(117,108,108,0)); display: block; }
.lnd .hero.on .scrollhint { opacity: 0; }

/* the rest of the page slides up over the sticky hero */
.lnd .after { position: relative; z-index: 5; background: var(--bg); margin-top: calc((1 - var(--stage)) / 2.6 * 100vh); box-shadow: 0 -40px 80px rgba(10,9,9,.9); }

/* ------------------------------------------------------------------ live rates strip */
.lnd .strip { padding-top: 96px; }
.lnd .strip .in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lnd .stat { display: block; color: inherit; background: var(--s1); border-radius: 14px; padding: 18px 20px; position: relative; overflow: hidden; min-height: 96px; box-shadow: 0 0 0 1px var(--hair); transition: background .2s; }
.lnd a.stat:hover { background: var(--s2); }
.lnd .stat::after { content: ''; position: absolute; left: 20px; bottom: 0; width: 28px; height: 2px; background: var(--blue); box-shadow: 0 0 10px rgba(79,180,255,.55); }
.lnd .stat .n { font-family: var(--mono); font-size: 26px; font-weight: 500; color: var(--blue); line-height: 1.1; }
.lnd .stat .n small { font-family: var(--sans); font-size: 12px; color: var(--t2); margin-left: 6px; font-weight: 400; }
.lnd .stat .l { font-size: 12px; color: var(--t3-aa, #8A8181); margin-top: 8px; }
.lnd .stat.soon .n { color: var(--blue-hi); }
.lnd .stat .sk { display: block; height: 26px; width: 62%; border-radius: 6px; background: linear-gradient(90deg, var(--s2), var(--s3), var(--s2)); background-size: 200% 100%; animation: lnd-sk 1.4s ease-in-out infinite; }
@keyframes lnd-sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.lnd .note { font-size: 12px; color: var(--t3-aa, #8A8181); margin: 12px 0 0; display: flex; align-items: flex-start; gap: 8px; max-width: none; }
.lnd .note i { margin-top: 5px; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--amb); box-shadow: 0 0 8px rgba(227,185,60,.6); display: inline-block; }
.lnd .note.live i { background: var(--up); box-shadow: 0 0 8px rgba(61,220,151,.7); }

/* ------------------------------------------------------------------ sections */
.lnd .sec { padding: 112px 0 0; }
.lnd .sec h2 { display: block; margin: 0; font-size: 36px; font-weight: 500; letter-spacing: -.012em; line-height: 1.12; text-align: center; color: var(--t1); text-wrap: balance; }
.lnd .sec .sub { text-align: center; color: var(--t2); font-size: 16px; margin: 12px auto 44px; max-width: 560px; text-wrap: pretty; }

.lnd .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lnd .card { background: var(--s1); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--hair); }
.lnd .card .t { padding: 22px 22px 0; height: 164px; }
.lnd .card .t b { display: block; font-size: 17px; font-weight: 600; }
.lnd .card .t p { color: var(--t2); font-size: 13.5px; margin: 6px 0 0; }
.lnd .card .t a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: -2px; font-size: 13px; color: var(--acc-hi); }
.lnd .card .t a:hover { color: #fff; }
.lnd .card .shot { margin: 18px 0 0 22px; flex: 1; min-height: 250px; border-radius: 12px 0 0 0; background: var(--s2) var(--img) no-repeat 0 0 / 230%; box-shadow: inset 0 0 0 1px var(--hair2); }
.lnd .card .shot.wide { background-size: 200%; background-position: 0 0; }

.lnd .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lnd .step { background: var(--s1); border-radius: 16px; padding: 22px; min-height: 172px; position: relative; box-shadow: 0 0 0 1px var(--hair); }
.lnd .step .k { font-family: var(--mono); font-size: 12px; color: var(--t3-aa, #8A8181); }
.lnd .step b { display: block; font-size: 17px; font-weight: 600; margin: 14px 0 8px; }
.lnd .step p { color: var(--t2); font-size: 13.5px; margin: 0; line-height: 1.75; }
.lnd .tok { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--t1); background: var(--s3); border-radius: 999px; padding: 3px 9px 3px 4px; margin-right: 6px; vertical-align: middle; line-height: 1.4; }
.lnd .tok i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; position: relative; overflow: hidden; background: #141010 url(/img/stocks/SPY.png) center / cover no-repeat; box-shadow: 0 0 0 1.5px rgba(255,110,110,.45); }
.lnd .tok i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.5), rgba(255,255,255,0) 42%); }
.lnd .tok.pt { color: var(--blue-hi); } .lnd .tok.pt i { box-shadow: 0 0 0 1.5px var(--blue), 0 0 8px rgba(79,180,255,.5); }
.lnd .tok.yt { color: #FF8A8A; } .lnd .tok.yt i { box-shadow: 0 0 0 1.5px var(--acc-hi), 0 0 8px rgba(232,20,27,.55); }

/* trust: what runs on chain, and three plain promises */
.lnd .trust { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: stretch; }
.lnd .code { background: var(--s1); border-radius: 18px; padding: 22px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; box-shadow: 0 0 0 1px var(--hair); overflow: hidden; }
.lnd .code .h { color: var(--t3-aa, #8A8181); margin-bottom: 10px; font-family: var(--sans); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lnd .code .h .state { font-family: var(--mono); font-size: 10.5px; color: var(--amb); }
.lnd .code .h .state.ok { color: var(--up); }
.lnd .code .h a.state { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; color: var(--acc-hi); }
.lnd .code .h a.state:hover { color: #fff; }
.lnd .code .row .at.ok { color: var(--up); }
.lnd .code .row { display: grid; grid-template-columns: 124px 1fr auto; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hair); align-items: center; }
.lnd .code .row > span:first-child { color: var(--t1); }
.lnd .code .row > span:nth-child(2) { color: var(--t2); }
.lnd .code .row .at { color: var(--t3-aa, #8A8181); text-align: right; }
.lnd .code .row a { color: var(--acc-hi); display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; min-width: 44px; margin: -11px 0; }
.lnd .code .row a:hover { color: #fff; }
.lnd .tcol { display: grid; grid-template-rows: repeat(3, 1fr); gap: 14px; }
.lnd .tc { background: var(--s1); border-radius: 16px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--hair); }
.lnd .tc b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.lnd .tc p { color: var(--t2); font-size: 13.5px; margin: 0; }
.lnd .tc a { color: var(--acc-hi); }
.lnd .tc a:hover { color: #fff; }

.lnd .cta { padding: 120px 0 96px; text-align: center; background: radial-gradient(56% 64% at 50% 100%, rgba(232,20,27,.10), rgba(232,20,27,0) 70%); }
.lnd .cta h2 { margin: 0; font-size: 36px; font-weight: 500; letter-spacing: -.012em; display: block; text-align: center; color: var(--t1); }
.lnd .cta p { color: var(--t2); margin: 12px auto 28px; max-width: 620px; }
/* the footer sits on the landing's 1200px grid, as on the original landing */
body.landing > footer[data-site="footer"] .wrap { max-width: 1200px; }

/* ------------------------------------------------------------------ tablets and phones */
@media (max-width: 900px) {
  .lnd .hero h1 { font-size: 36px; }
  .lnd .hero .lead { font-size: 16px; }
  .lnd .hero .copy { padding-top: 104px; }
  .lnd .strip .in { grid-template-columns: repeat(2, 1fr); }
  .lnd .cards, .lnd .steps, .lnd .trust { grid-template-columns: 1fr; }
  .lnd .tcol { grid-template-rows: none; }
  .lnd .sec { padding-top: 80px; }
  .lnd .sec h2, .lnd .cta h2 { font-size: 28px; }
  .lnd .chip { height: calc(32px * var(--k)); font-size: calc(11px * var(--k)); gap: calc(5px * var(--k)); padding: 0 calc(9px * var(--k)) 0 calc(4px * var(--k)); }
  .lnd .chip i { width: calc(22px * var(--k)); height: calc(22px * var(--k)); }
  .lnd .built { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 22px; bottom: 16px; justify-content: center; }
  .lnd .built .lab { display: none; }
  .lnd .built .pb { font-size: 12px; gap: 7px; }
  .lnd .built .pb i { width: 24px; height: 24px; }
  .lnd .built .pb svg { width: 13px; height: 13px; }
  .lnd .code .row { grid-template-columns: 104px 1fr auto; }
  .lnd .card .t { height: auto; padding-bottom: 4px; }
}
@media (max-width: 760px) {
  .lnd { --stage: 2.9; }
  .lnd .hero { min-height: 520px; }
  .lnd .hero-art img { top: auto; bottom: 0; height: 66%; object-position: 50% 100%; filter: brightness(.36) saturate(1.12) contrast(1.04); }
  .lnd .hero-art::after { background:
    linear-gradient(180deg, var(--bg) 0%, rgba(10,9,9,.96) 34%, rgba(10,9,9,.55) 52%, rgba(10,9,9,.30) 70%, rgba(10,9,9,.70) 90%, var(--bg) 100%),
    radial-gradient(120% 70% at 50% 72%, rgba(10,9,9,0) 30%, rgba(10,9,9,.7) 100%); }
  .lnd .wrap { padding: 0 16px; }
  .lnd .hero .copy { padding: 92px 16px 0; }
  .lnd .hero h1 { font-size: clamp(28px, 8.6vw, 36px); }
  .lnd .hero .lead { font-size: 15.5px; margin: 14px auto 22px; }
  .lnd .scrollhint { left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .lnd .card .shot { margin-left: 18px; min-height: 220px; }
  .lnd .card .t { padding: 20px 18px 4px; }
  .lnd .step, .lnd .code, .lnd .tc { padding: 18px; }
  .lnd .cta { padding: 96px 0 80px; }
  .lnd .ctas .btn.lg { height: 48px; }
}
@media (max-width: 420px) {
  .lnd .strip .in { gap: 10px; }
  .lnd .stat { padding: 16px; min-height: 92px; }
  .lnd .stat::after { left: 16px; }
  .lnd .stat .n { font-size: 24px; }
  .lnd .stat .n small { display: block; margin: 4px 0 0; }
  .lnd .code .row { grid-template-columns: 1fr auto; row-gap: 0; }
  .lnd .code .row > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 11.5px; color: var(--t3-aa, #8A8181); }
}
@media (max-height: 600px) {
  .lnd .hero { min-height: 0; }
  .lnd .hero .copy { padding-top: 84px; }
  .lnd .hero h1 { font-size: 34px; }
  .lnd .hero .lead { font-size: 15px; margin: 12px auto 18px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .lnd .hero .copy { padding-top: 78px; }
  .lnd .hero h1 { font-size: clamp(26px, 8vw, 32px); }
  .lnd .hero .lead { font-size: 14.5px; margin: 12px auto 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.landing) { scroll-behavior: auto; }
  .lnd .stat .sk { animation: none; }
  .lnd .built, .lnd .hint, .lnd .scrollhint { transition: none; }
}
