
/* 88BB Home Pi Coin Radar Preview v0.2
   Preview only. Does not modify production index.html.
*/
.home-pi-pac-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(48, 213, 200, 0.18);
  background:
    radial-gradient(circle at 14% 16%, rgba(122, 255, 218, .14), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(116, 156, 255, .13), transparent 34%),
    linear-gradient(135deg, rgba(8, 18, 35, .92), rgba(6, 10, 20, .94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255,255,255,.04);
}

.home-pi-pac-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 255, 230, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 255, 230, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 78%);
  pointer-events: none;
}

.pi-pac-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 210px minmax(260px, 1fr) minmax(320px, 460px);
  gap: 22px;
  align-items: center;
}

.pi-pac-visual {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
}

.pi-core {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 52px;
  font-weight: 900;
  color: #071016;
  background: linear-gradient(135deg, #f7d673, #9d7a28);
  box-shadow: 0 0 35px rgba(247, 214, 115, .24), inset 0 2px 0 rgba(255,255,255,.36);
}

.pi-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(247, 214, 115, .24);
  animation: piOrbit 9s linear infinite;
}

.pi-orbit-a {
  width: 168px;
  height: 168px;
}

.pi-orbit-b {
  width: 210px;
  height: 84px;
  transform: rotate(-22deg);
  animation-duration: 12s;
}

.pi-scan-line {
  position: absolute;
  width: 190px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(108,255,232,.9), transparent);
  box-shadow: 0 0 18px rgba(108,255,232,.34);
  transform-origin: center;
  animation: piScan 4.8s ease-in-out infinite;
}

@keyframes piOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes piScan {
  0%, 100% { transform: rotate(-22deg) translateY(-54px); opacity: .35; }
  50% { transform: rotate(-22deg) translateY(54px); opacity: .95; }
}

.pi-pac-copy h2 {
  margin: 8px 0 10px;
  max-width: 680px;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: .98;
  letter-spacing: -.04em;
}

.pi-pac-copy p {
  max-width: 620px;
  color: rgba(231, 244, 247, .76);
  line-height: 1.8;
}

.pi-pac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pi-pac-actions a {
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
}

.pi-primary {
  background: linear-gradient(135deg, #c9ff8a, #6cffd8);
  color: #061016;
}

.pi-secondary {
  border: 1px solid rgba(255,255,255,.12);
  color: #d8eef1;
  background: rgba(255,255,255,.04);
}

.pi-pac-card {
  border: 1px solid rgba(247, 214, 115, .24);
  border-radius: 24px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 210, 96, .09), rgba(8, 16, 31, .72)),
    rgba(4, 8, 17, .72);
  box-shadow: 0 18px 58px rgba(0,0,0,.28);
}

.pi-card-head,
.pi-pac-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pi-card-symbol {
  display: block;
  color: #9deee9;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pi-card-head strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.pi-card-state {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #f7d673;
  font-size: 12px;
  font-weight: 900;
}

.pi-card-state.is-live {
  background: rgba(34, 197, 94, .13);
  border-color: rgba(34, 197, 94, .42);
  color: #8dffb0;
}

.pi-card-brief {
  margin: 14px 0 16px;
  color: rgba(234, 243, 246, .76);
  line-height: 1.7;
}

.pi-light-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pi-light-grid span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(218, 233, 238, .42);
  font-weight: 900;
  font-size: 12px;
}

.pi-light-grid span.is-on {
  color: #071016;
  background: linear-gradient(135deg, #f7d673, #6cffd8);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 0 22px rgba(108, 255, 216, .18);
}

.pi-light-grid em {
  font-style: normal;
  opacity: .88;
}

.pi-pac-meta {
  margin-top: 14px;
  color: rgba(196, 218, 224, .58);
  font-size: 12px;
}

/* Lower homepage polish: more professional depth without changing content */
.home-tools-section,
.home-community-section,
.home-membership-path,
.home-faq,
.home-contact-soft,
.home-risk-boundary {
  position: relative;
  overflow: hidden;
}

.home-tools-section::after,
.home-community-section::after,
.home-membership-path::after,
.home-risk-boundary::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 24px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(108,255,216,.10), transparent 65%);
  pointer-events: none;
}

.home-tools-section article,
.home-community-section article,
.home-membership-path article,
.home-faq details,
.home-risk-boundary article {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-tools-section article:hover,
.home-community-section article:hover,
.home-membership-path article:hover,
.home-faq details:hover,
.home-risk-boundary article:hover {
  transform: translateY(-3px);
  border-color: rgba(108,255,216,.24);
  box-shadow: 0 16px 46px rgba(0,0,0,.24);
}

@media (max-width: 980px) {
  .pi-pac-shell {
    grid-template-columns: 1fr;
  }
  .pi-pac-visual {
    min-height: 160px;
  }
  .pi-light-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pi-card-head,
  .pi-pac-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* v0.2: Pi transparent logo + heartbeat */
.pi-core-logo {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(252, 190, 79, .18), rgba(78, 42, 129, .08) 62%, transparent 72%);
  box-shadow: 0 0 34px rgba(252, 190, 79, .20), 0 0 80px rgba(94, 56, 157, .20);
  animation: piHeartbeat 2.8s ease-in-out infinite;
  overflow: visible;
}

.pi-core-logo img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(252, 190, 79, .25));
}

.pi-heartbeat-ring {
  position: absolute;
  width: 134px;
  height: 134px;
  border-radius: 999px;
  border: 1px solid rgba(252, 190, 79, .45);
  animation: piPulseRing 2.8s ease-out infinite;
}

@keyframes piHeartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.045); }
  22% { transform: scale(.992); }
  34% { transform: scale(1.026); }
  48% { transform: scale(1); }
}

@keyframes piPulseRing {
  0% { transform: scale(.72); opacity: .0; }
  18% { opacity: .72; }
  68% { transform: scale(1.68); opacity: 0; }
  100% { transform: scale(1.78); opacity: 0; }
}

/* v0.2: Direction border protocol. Green = long bias, red = short bias. */
.pi-pac-card {
  position: relative;
}

.pi-pac-card::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 28px;
  border: 1px solid rgba(247, 214, 115, .18);
  pointer-events: none;
  opacity: .92;
}

.pi-pac-card.bias-long::before,
.pi-pac-card[data-bias="long"]::before {
  border-color: rgba(45, 255, 159, .58);
  box-shadow: 0 0 22px rgba(45, 255, 159, .12);
}

.pi-pac-card.bias-short::before,
.pi-pac-card[data-bias="short"]::before {
  border-color: rgba(255, 77, 109, .58);
  box-shadow: 0 0 22px rgba(255, 77, 109, .12);
}

.pi-card-bias {
  margin: 10px 0 0;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(234, 243, 246, .78);
  font-weight: 900;
  font-size: 12px;
}

.pi-pac-card.bias-long .pi-card-bias,
.pi-pac-card[data-bias="long"] .pi-card-bias {
  color: #8dffb0;
  border-color: rgba(45, 255, 159, .38);
  background: rgba(45, 255, 159, .10);
}

.pi-pac-card.bias-short .pi-card-bias,
.pi-pac-card[data-bias="short"] .pi-card-bias {
  color: #ff9bad;
  border-color: rgba(255, 77, 109, .38);
  background: rgba(255, 77, 109, .10);
}

/* v0.2: Lower home sections get a stronger command-platform finish. */
.home-tools-section,
.home-community-section,
.home-membership-path,
.home-faq,
.home-contact-soft,
.home-risk-boundary {
  border: 1px solid rgba(108,255,216,.10);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(140deg, rgba(9, 20, 38, .58), rgba(4, 9, 19, .38)),
    radial-gradient(circle at 92% 12%, rgba(108,255,216,.09), transparent 32%);
}

.home-tools-section::before,
.home-community-section::before,
.home-membership-path::before,
.home-faq::before,
.home-contact-soft::before,
.home-risk-boundary::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0, rgba(108,255,216,.055) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: homeCommandSweep 7.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes homeCommandSweep {
  0%, 58%, 100% { transform: translateX(-120%); opacity: 0; }
  72% { opacity: .55; }
  90% { transform: translateX(120%); opacity: 0; }
}

.home-tools-grid article,
.home-community-feed article,
.home-member-grid article,
.home-faq details,
.home-risk-tiles article {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(3, 8, 18, .55);
  border-color: rgba(108,255,216,.12);
}

.home-tools-grid article::after,
.home-community-feed article::after,
.home-member-grid article::after,
.home-faq details::after,
.home-risk-tiles article::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,255,216,.45), transparent);
  opacity: .65;
}

.home-community-section {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.home-community-feed {
  display: grid;
  gap: 10px;
}

.home-contact-soft {
  background:
    radial-gradient(circle at 12% 18%, rgba(199,255,138,.10), transparent 34%),
    linear-gradient(140deg, rgba(10, 24, 43, .72), rgba(4, 8, 18, .60));
}

@media (max-width: 900px) {
  .home-community-section {
    grid-template-columns: 1fr;
  }
}
