body:has(#home:not([hidden])) { background: #101015; }

.home-hero {
  --hero-inset: clamp(3px,2.9vw,48px);
  --lookup-focus: 0;
  padding-bottom: clamp(28px,4vw,64px);
}
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr);
  align-items: center;
  gap: clamp(14px,2.1vw,36px);
  min-height: 0;
  padding: clamp(30px,4.2vw,60px) var(--hero-inset) 14px;
}
.hero-scene { inset-block-end: 0; background: #101015; mask-image: none; }
.hero-scene::before,.hero-scene::after,.lens-reflection { display: none; }
.glass-hero-type { min-width: 0; }
.hero-copy h1 {
  margin-top: clamp(13px,2vw,22px);
  font-size: clamp(3.15rem,6.3vw,5.9rem);
  max-width: 8em;
  line-height: .95;
}
.hero-copy h1 .hero-title-accent { color: #cdbbff; background: none; -webkit-text-fill-color: currentColor; }
.hero-copy h1 span { overflow-wrap: normal; }
.creator-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #4c445b;
  border-radius: 8px;
  background: #211d2c;
  font-size: .82rem;
}
.creator-link img { flex: none; }
.creator-link span { color: #e5deee; font-weight: 500; }
.creator-link strong { color: #e1cdff; font-weight: 650; }
.creator-link:hover { border-color: #a891c9; background: #332843; }
.creator-link:focus-visible { outline: 2px solid #d6c1ff; outline-offset: 3px; }
.home-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px 16px; }
.home-footer button { justify-self: end; }
.hero-art { position: relative; min-width: 0; width: min(100%,460px,max(245px,100svh - 325px)); justify-self: center; overflow: clip; padding: 12px; }
.hero-art .hero-lens {
  position: relative;
  inset: auto;
  width: 100%;
  margin-inline: auto;
  opacity: 1;
  transform: translate(var(--lens-x,0px),var(--lens-y,0px)) rotate(var(--lens-tilt,0deg));
}

.hero-carry {
  min-height: clamp(330px,49svh,490px);
  margin-top: 0;
  padding-bottom: 66px;
}
.lookup-scrim {
  position: fixed;
  z-index: 0;
  inset: 0;
  opacity: var(--lookup-focus);
  pointer-events: none;
  background: #0e0d16a6;
  backdrop-filter: blur(9px);
}
.hero-dock {
  z-index: 1;
  top: clamp(112px,31svh,271px);
  width: min(100%,634px);
  transform: translateX(var(--dock-shift,0px));
}
.hero-dock::before {
  inset: -12px;
  opacity: var(--lookup-focus);
  border-color: #e4d4ff5c;
  border-radius: 25px;
  background: #332b49a6;
  box-shadow: inset 0 1px #ffffff62,0 15px 40px #07060bb0;
  backdrop-filter: blur(18px) saturate(120%);
}
.hero-prompt {
  position: absolute;
  inset-inline: 0;
  bottom: calc(100% + 20px);
  transform: translateY(calc((1 - var(--lookup-focus)) * 14px));
  color: #faf7ff;
  text-align: center;
  font-size: clamp(1.6rem,4.8vw,3.15rem);
  font-weight: 650;
  letter-spacing: -.052em;
  line-height: 1.02;
  opacity: var(--lookup-focus);
  pointer-events: none;
}
#home-search {
  min-height: 65px;
  border-color: #b6a0ed;
  background: #282338db;
  border-radius: 18px;
  box-shadow: inset 0 1px #fff5,0 9px 30px #0007;
}
#home-search input::placeholder { color: #f0e8ff; }
#home-search button.primary {
  padding-inline: 17px;
  border-radius: 12px;
  background: #d6c1ff;
  color: #25133e;
  box-shadow: none;
}
#home-search button.primary:hover { background: #eee4ff; box-shadow: none; }
.hero-dock .home-quick a,.hero-dock[data-docked] .home-quick a { background: #272135; }
.hero-dock .home-quick a:hover,.hero-dock[data-docked] .home-quick a:hover { background: #433557; }
.hero-discovery { z-index: 1; bottom: 9px; }
.hero-discovery .discovery-mark { background: #29223a; }

.showcase {
  --story-sticky: 64px;
  position: relative;
  isolation: isolate;
  scroll-margin-top: calc(var(--story-sticky) + 12px);
}
.showcase-header { margin-bottom: 12px; padding: 0 0 14px; border-color: #34313c; }
.story-track { position: relative; margin-bottom: 14px; }
.showcase[data-pinned] .story-pin { position: sticky; top: var(--pin-top,var(--story-sticky)); }
.showcase[data-pinned] .story-navigation { position: relative; top: auto; margin-bottom: 10px; }
.showcase[data-pinned] .story-frame { display: grid; grid-template-columns: minmax(0,1fr); overflow: clip; }
.story-navigation {
  position: sticky;
  top: var(--story-sticky);
  z-index: 4;
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid #514960;
  border-radius: 11px;
  background: #1b1822ed;
  backdrop-filter: blur(15px);
}
.story-navigation a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 35px;
  padding: 5px 9px;
  border-radius: 7px;
  color: #e6e1ed;
  font-size: .8rem;
  font-weight: 620;
}
.story-navigation svg { width: 17px; height: 17px; flex: none; }
.story-navigation a:is([aria-current],:hover) { color: #281748; background: #d6c1ff; }

#home .feature-shot {
  scroll-margin-top: calc(var(--story-sticky) + 66px);
  grid-template-columns: minmax(205px,.68fr) minmax(0,1.32fr);
  min-height: clamp(338px,calc(100svh - 225px),620px);
  gap: clamp(19px,3.3vw,49px);
  margin-bottom: 12px;
  padding: clamp(17px,3.1vw,44px);
  border: 1px solid #2c2b35;
  border-radius: 19px;
  background: #15151c;
  box-shadow: none;
}
#home .showcase[data-pinned] .feature-shot {
  grid-area: 1/1;
  margin-bottom: 0;
  opacity: var(--slide-opacity,1);
  transform: translateX(var(--slide-offset,0px)) scale(var(--slide-scale,1));
  transition: none;
}
#home .showcase[data-pinned] .feature-shot[data-offstage] { visibility: hidden; }
#home .showcase[data-pinned] .feature-shot[data-in-focus] { z-index: 1; }
#home .showcase[data-pinned] .feature-shot .feature-visual { animation: none; transform: none; }
#home .feature-shot[data-in-focus] { border-color: color-mix(in srgb,var(--feature-fill) 62%, #25242d); }
#home .feature-shot::before,#home .feature-shot::after { content: none; }
#home .feature-visual {
  min-height: 0;
  border: 1px solid #363542;
  border-radius: 13px;
  background: #0e0e13;
  box-shadow: 0 14px 28px #0005;
}
#home .feature-shot[data-in-focus] .feature-visual { border-color: color-mix(in srgb,var(--feature-fill) 42%,#383444); }
#home .feature-shot .tool-mark { width: 48px; height: 48px; border-radius: 11px; box-shadow: none; }
#home .feature-shot .tool-mark svg { width: 29px; height: 29px; }
#home .feature-copy h3 { margin-block: 10px 13px; font-size: clamp(2.05rem,3.6vw,3.5rem); }
.story-details { display: grid; gap: 5px; max-width: 330px; }
.story-details > div {
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
}
.story-details dt { margin-bottom: 2px; color: #f4effb; font-size: .85rem; font-weight: 650; }
.story-details dd { color: #c5bfce; font-size: .8rem; line-height: 1.32; }
.feature-shot[data-in-focus][data-detail="first"] .story-details > div:first-child,
.feature-shot[data-in-focus][data-detail="second"] .story-details > div:nth-child(2) {
  border-color: color-mix(in srgb,var(--feature-fill) 42%,#39343f);
  background: color-mix(in srgb,var(--feature-fill) 10%,#17151e);
}
#home .feature-shot .feature-action {
  min-height: 42px;
  margin-top: 13px;
  border-radius: 8px;
  border-color: #777084;
  background: #282435;
  box-shadow: none;
}
#home .feature-shot[data-in-focus] .feature-action {
  background: var(--feature-fill);
  color: var(--feature-ink);
  border-color: transparent;
}
#home .feature-shot .feature-action:hover { background: #3c334f; }
#home .feature-shot[data-in-focus] .feature-action:hover { background: color-mix(in srgb,var(--feature-fill) 70%,white); }
#home .visual-head,#home .visual-foot {
  gap: 10px;
  padding: 11px 13px;
  color: #c5c0ce;
  background: #17171e;
  border-color: #302d38;
  font: 600 .77rem var(--sans);
}
.visual-head img { border-radius: 50%; }
.visual-head :is(small,time) { color: #c5c0ce; font-size: .73rem; text-align: end; }
.story-plot { display: grid; place-items: center; min-height: 185px; }
#home-wallet-map { width: 100%; height: auto; max-height: min(30svh,285px); padding: 10px; }
#home-wallet-map .story-map-link { stroke: #c5a8ff; opacity: .74; }
.feature-scanner[data-detail="second"] #home-wallet-map line { stroke: #cdbbff; opacity: .66; }
.feature-scanner[data-detail="first"] #home-wallet-map .primary-wallet { stroke: #f7eeff; stroke-width: 2.4px; }
.story-findings { justify-content: flex-start; gap: 22px; }
.story-findings strong { color: #f0e6ff; font-size: 1.14rem; }

.leader-preview { grid-template-rows: auto auto auto; }
.story-leaders { width: 100%; border-collapse: collapse; }
.story-leaders :is(th,td) { padding: 11px 12px; border-bottom: 1px solid #303036; text-align: left; font-size: .8rem; }
.story-leaders :is(th,td):not(:first-child) { text-align: right; }
.story-leaders th { color: #d0cdd4; background: #1c1c20; font-weight: 560; white-space: nowrap; }
.story-leaders tbody tr { background: #101012; }
.story-leaders tbody tr:nth-child(even) { background: #19191e; }
.story-leaders tbody tr:is(:hover,:focus-within) { background: #26242f; }
.story-leaders td { color: #dedbe4; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.story-leaders td.story-profit { color: #8ff0b5; font-weight: 640; }
.story-wallet-link { color: #e8e1f4; }
.story-wallet-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.feature-money[data-detail="first"] .story-leaders th:nth-child(2),
.feature-money[data-detail="second"] .story-leaders th:nth-child(3) {
  color: #c8ffe0;
  background: #24362d;
}
#home-leader-status { justify-content: space-between; min-height: 40px; }

.safety-preview { grid-template-rows: auto auto auto; }
.story-risk-overview { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: 9px; padding: 10px 10px 0; }
.story-risk-number,.story-market { min-width: 0; padding: 10px; border: 1px solid #3a3547; border-radius: 8px; }
.story-risk-number { background: #272332; color: #e2d3ff; }
.story-risk-number[data-risk="lower"] { color: #bff0d0; background: #1f412f; border-color: #52725e; }
.story-risk-number[data-risk="elevated"] { color: #ffedc7; background: #53391e; border-color: #8a6037; }
.story-risk-number[data-risk="high"] { color: #ffcfda; background: #522836; border-color: #865368; }
.story-risk-number > span,.story-market > span { font-size: .78rem; font-weight: 640; }
.story-risk-number strong { font-size: clamp(2.6rem,5vw,4.3rem); line-height: 1.1; letter-spacing: -.08em; }
.story-risk-number p,.story-market time { color: inherit; font-size: .7rem; }
.feature-safety[data-detail="first"] .story-risk-number { box-shadow: inset 0 0 0 1px currentColor; }
.feature-safety[data-detail="second"] .story-risk-number p { color: #fff; text-decoration: underline; text-underline-offset: .24em; }
.story-market { display: grid; align-content: start; gap: 4px; background: #13131a; color: #d6d2df; }
.story-market svg { width: 100%; height: auto; }
.story-market .candle-up { fill: #81d6b8; stroke: #81d6b8; }
.story-market .candle-down { fill: #e792a5; stroke: #e792a5; }
#home .safety-signals { gap: 0; padding: 10px; }
#home .safety-signals > div { padding: 8px 3px; border-color: #302d38; }
#home .safety-signals > div:last-child { border: 0; }
#home .safety-signals :is(dt,dd) { font-size: .83rem; color: #ece7f5; }
#home .showcase-index { gap: 8px; }
#home .showcase-index > a { min-height: 80px; border-radius: 10px; background: #17171f; border-color: #443b50; }
#home .showcase-index > a:is(:hover,:focus-visible) { background: #2a2536; border-color: #b5a2d6; }

@media (max-width: 811px) {
  #home .feature-shot { grid-template-columns: minmax(0,1fr); min-height: 0; }
  #home-wallet-map { max-height: min(51vw,230px); }
  #home .feature-copy h3 { font-size: clamp(1.85rem,6.5vw,2.55rem); margin-block: 7px 8px; }
  #home .feature-shot .tool-mark { width: 39px; height: 39px; border-radius: 9px; }
  #home .feature-shot .tool-mark svg { width: 24px; height: 24px; }
  .story-details { max-width: none; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #home .feature-shot .feature-action { min-height: 36px; margin-top: 8px; }
}
@media (max-width: 700px) {
  .home-hero { --hero-inset: clamp(2px,2.4vw,15px); }
  .hero-copy { grid-template-columns: minmax(0,1fr); gap: 5px; padding-top: clamp(26px,7vw,47px); padding-bottom: 6px; }
  .hero-copy h1 { max-width: 8.1em; font-size: clamp(2.65rem,9.9vw,4.25rem); }
  .glass-hero-type .creator-link { margin-top: 9px; }
  .hero-art { width: min(56vw,300px); justify-self: center; padding: 0 9px; }
  .hero-carry { min-height: max(270px,46svh); }
  .hero-dock { width: min(100%,550px); top: clamp(106px,29svh,230px); }
  #home-search { min-height: 58px; }
  #home-search button.primary { min-height: 43px; padding-inline: 11px; }
}
@media (max-width: 530px) {
  .showcase { --story-sticky: 57px; }
  .story-navigation { margin-bottom: 13px; gap: 3px; }
  .story-navigation a { min-height: 33px; font-size: .71rem; padding-inline: 5px; gap: 4px; }
  .story-navigation svg { width: 14px; height: 14px; }
  #home .feature-shot { padding: 12px; gap: 10px; }
  #home .visual-head,#home .visual-foot { padding: 8px 9px; }
  .story-leaders :is(th,td) { padding: 8px 5px; font-size: .69rem; }
  .story-details { gap: 3px; }
  .story-details > div { padding: 5px; }
  .story-details dd { font-size: .73rem; }
  .story-plot { min-height: 155px; }
  .hero-dock::before { inset: -6px; }
  #home-search input { font-size: .9rem; }
  .dock-mark { width: 19px; height: 19px; margin-left: 4px; }
}
@media (max-width: 430px) {
  .home-footer { grid-template-columns: 1fr auto; }
  .home-footer .creator-link { grid-area: 2 / 1 / 3 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-dock { position: static; }
  .hero-carry { min-height: 169px; }
  .lookup-scrim { display: none; }
}
[data-interface-motion="off"] .hero-dock { position: static; }
[data-interface-motion="off"] .hero-carry { min-height: 169px; }
[data-interface-motion="off"] .lookup-scrim { display: none; }
