/* BHRIGU_HOME_LIVE_COSMOGRAPHER_HERO_VISUAL_v0_1
   Scope: Home hero only. Accepted state is visualized without changing product claims. */

main[data-primary-product="market-cosmographer"] > section:first-of-type {
  position: relative;
  width: min(1320px, calc(100% - 56px));
  grid-template-columns: minmax(0, 1.618fr) minmax(420px, 1fr);
  gap: clamp(36px, 5vw, 76px);
  min-height: min(820px, calc(100vh - 72px));
  overflow: visible;
}

main[data-primary-product="market-cosmographer"] > section:first-of-type::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 10%;
  right: -16%;
  bottom: 6%;
  width: 66%;
  pointer-events: none;
  background:
    radial-gradient(circle at 53% 49%, rgba(200, 164, 90, 0.07), transparent 16%),
    radial-gradient(circle at 48% 50%, rgba(98, 168, 216, 0.09), transparent 46%);
  filter: blur(1px);
}

main[data-primary-product="market-cosmographer"] > section:first-of-type > div:first-child {
  position: relative;
  z-index: 2;
}

main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 540px;
  aspect-ratio: 1.38 / 1;
  display: block;
  overflow: visible;
  border: 0;
  background-image: url('/market-cosmographer-btc-field-hero-v0-1.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.98;
  filter: saturate(0.94) contrast(1.02);
  isolation: isolate;
}

main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 3% 10%;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 55% 50%, rgba(224, 196, 127, 0.08), transparent 17%),
    radial-gradient(circle at 45% 50%, rgba(98, 168, 216, 0.09), transparent 48%);
  animation: bhriguHeroFieldBreath 7.5s ease-in-out infinite;
}

main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child::after {
  content: attr(data-btc-footer);
  position: absolute;
  right: 7%;
  bottom: 4.5%;
  color: rgba(128, 188, 227, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.18em;
  white-space: nowrap;
  pointer-events: none;
}

main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child > span {
  opacity: 0;
  pointer-events: none;
}

/* One DOM Φ remains visible for the accepted Home identity contract and is
   placed over the existing SVG Φ location so the visual still reads as one glyph. */
main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child > span:first-child {
  position: absolute !important;
  z-index: 3 !important;
  left: 53.12% !important;
  top: 11.2% !important;
  transform: translate(-50%, -50%) !important;
  opacity: 0.68 !important;
  color: rgba(210, 182, 108, 0.78) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child > [data-btc-accepted-state] {
  position: absolute;
  z-index: 4;
  top: 7.5%;
  right: 5%;
  width: min(238px, 42%);
  display: grid;
  gap: 5px;
  padding: 12px 14px 13px;
  opacity: 1;
  border: 1px solid rgba(98, 168, 216, 0.17);
  background: linear-gradient(135deg, rgba(7, 12, 18, 0.84), rgba(7, 9, 12, 0.58));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  pointer-events: none;
}

[data-btc-accepted-state] [data-btc-state-kicker] {
  color: rgba(128, 188, 227, 0.78);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

[data-btc-accepted-state] strong {
  color: rgba(241, 239, 233, 0.91);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

[data-btc-accepted-state] [data-btc-state-meta],
[data-btc-accepted-state] [data-btc-state-proof] {
  color: rgba(161, 204, 232, 0.62);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

[data-btc-accepted-state] [data-btc-state-proof] {
  color: rgba(241, 239, 233, 0.46);
}

main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child > [data-btc-state-pulse] {
  position: absolute;
  z-index: 2;
  left: 53.12%;
  top: 48.1%;
  width: 116px;
  aspect-ratio: 1;
  opacity: 0.76;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from -90deg, rgba(98, 168, 216, 0.6), rgba(98, 168, 216, 0.12));
  -webkit-mask: radial-gradient(circle, transparent 67%, #000 69% 72%, transparent 74%);
  mask: radial-gradient(circle, transparent 67%, #000 69% 72%, transparent 74%);
  animation: bhriguAcceptedStatePulse 6.18s ease-in-out infinite;
}

main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child[data-btc-synthesis="DIVERGENCE"] > [data-btc-state-pulse] {
  background: conic-gradient(
    from -90deg,
    rgba(98, 168, 216, 0.66) 0 61.8%,
    rgba(98, 168, 216, 0.08) 61.8% 68%,
    rgba(200, 164, 90, 0.48) 68% 100%
  );
}

main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child[data-btc-synthesis="CONFIRMATION"] > [data-btc-state-pulse] {
  background: conic-gradient(from -90deg, rgba(98, 168, 216, 0.72), rgba(200, 164, 90, 0.24));
}

main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child[data-btc-synthesis="INSUFFICIENT_EVIDENCE"] > [data-btc-state-pulse],
main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child[data-btc-synthesis="UNAVAILABLE"] > [data-btc-state-pulse] {
  opacity: 0.28;
  background: conic-gradient(from -90deg, rgba(98, 168, 216, 0.34), rgba(241, 239, 233, 0.06));
}

main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child[data-btc-freshness="STALE_LIMITED"] > [data-btc-accepted-state] {
  border-color: rgba(200, 164, 90, 0.22);
}

@keyframes bhriguHeroFieldBreath {
  0%, 100% { opacity: 0.62; transform: scale(0.995); }
  50% { opacity: 0.96; transform: scale(1.012); }
}

@keyframes bhriguAcceptedStatePulse {
  0%, 100% { opacity: 0.52; transform: translate(-50%, -50%) scale(0.98) rotate(0deg); }
  50% { opacity: 0.82; transform: translate(-50%, -50%) scale(1.035) rotate(5deg); }
}

@media (max-width: 1050px) {
  main[data-primary-product="market-cosmographer"] > section:first-of-type {
    width: min(1180px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1.618fr) minmax(390px, 1fr);
    gap: 34px;
  }

  main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child {
    min-height: 480px;
  }
}

@media (max-width: 840px) {
  main[data-primary-product="market-cosmographer"] > section:first-of-type {
    width: min(100% - 40px, 760px);
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 46px;
    gap: 22px;
  }

  main[data-primary-product="market-cosmographer"] > section:first-of-type::before {
    top: 46%;
    right: -30%;
    bottom: 0;
    width: 130%;
    opacity: 0.8;
  }

  main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    min-height: 420px;
    margin-top: 8px;
    opacity: 1;
    order: 2;
  }
}

@media (max-width: 620px) {
  main[data-primary-product="market-cosmographer"] > section:first-of-type {
    width: min(100% - 28px, 620px);
    padding-top: 28px;
    padding-bottom: 30px;
  }

  main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child {
    min-height: 318px;
    margin-top: 4px;
    background-size: 112% auto;
    background-position: 52% 50%;
  }

  main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child > span:first-child {
    top: 9.5% !important;
    font-size: 15px !important;
  }

  main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child > [data-btc-accepted-state] {
    top: 1%;
    right: 1%;
    width: min(184px, 54%);
    gap: 3px;
    padding: 9px 10px 10px;
    background: rgba(7, 10, 14, 0.72);
  }

  [data-btc-accepted-state] [data-btc-state-kicker],
  [data-btc-accepted-state] [data-btc-state-meta],
  [data-btc-accepted-state] [data-btc-state-proof] {
    font-size: 5.5px;
  }

  [data-btc-accepted-state] strong {
    font-size: 14px;
  }

  main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child > [data-btc-state-pulse] {
    width: 78px;
  }

  main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child::after {
    right: 3%;
    bottom: 1%;
    font-size: 5.5px;
    letter-spacing: 0.12em;
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child::before,
  main[data-primary-product="market-cosmographer"] > section:first-of-type > div:last-child > [data-btc-state-pulse] {
    animation: none;
  }
}
