/**
 * BookFels V3 — Milestone A.1.1
 * Genesis Enterprise Activity Patch
 *
 * Visual tuning only. Existing headlines and section copy remain untouched.
 */

:root {
  --bf-genesis-sparkle-opacity: .42;
  --bf-genesis-activity-opacity: .86;
}

.bf-hero__atmosphere {
  isolation: isolate;
}

.bf-genesis-activity-media,
.bf-genesis-activity-media img,
.bf-genesis-activity-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bf-genesis-activity-media {
  z-index: 0;
  overflow: hidden;
  opacity: var(--bf-genesis-sparkle-opacity);
  mix-blend-mode: screen;
}

.bf-genesis-activity-media img {
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.08) contrast(1.03) brightness(.88);
}

.bf-hero__first-design {
  z-index: 1;
}

.bf-hero__universe {
  z-index: 2;
  opacity: .18;
}

.bf-hero__star-canvas {
  z-index: 3;
  opacity: .56;
  filter: drop-shadow(0 0 3px rgba(125, 235, 255, .18));
}

.bf-genesis-activity-field {
  z-index: 4;
  opacity: var(--bf-genesis-activity-opacity);
  mix-blend-mode: screen;
}

.bf-hero__stars-fallback {
  z-index: 5;
  opacity: .36;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .72) 0 1px, transparent 1.8px),
    radial-gradient(circle at 34% 66%, rgba(102, 224, 255, .62) 0 1px, transparent 1.8px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .68) 0 1px, transparent 1.8px),
    radial-gradient(circle at 88% 71%, rgba(109, 226, 255, .58) 0 1px, transparent 1.8px),
    radial-gradient(circle at 57% 42%, rgba(255, 255, 255, .44) 0 .8px, transparent 1.5px);
  background-size:
    173px 151px,
    227px 211px,
    293px 257px,
    331px 297px,
    139px 127px;
  animation: bf-genesis-sprinkle-drift 24s linear infinite alternate;
}

.bf-hero__grid {
  z-index: 6;
  opacity: .16;
}

.bf-hero__network {
  z-index: 7;
  opacity: .22;
  filter: drop-shadow(0 0 5px rgba(40, 210, 237, .08));
}

.bf-network__lines path {
  stroke-dasharray: 2 17;
  animation: bf-genesis-network-flow 18s linear infinite;
}

.bf-network__lines path:nth-child(2n) {
  animation-duration: 24s;
  animation-direction: reverse;
}

.bf-network__nodes circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: bf-genesis-node-breathe 3.8s ease-in-out infinite;
}

.bf-network__nodes circle:nth-child(2n) {
  animation-delay: -1.7s;
}

.bf-hero__orb--primary,
.bf-hero__orb--cyan {
  z-index: 8;
}

.bf-hero__vignette {
  z-index: 9;
  background:
    radial-gradient(circle at 76% 39%, transparent 9%, rgba(1, 4, 10, .03) 31%, rgba(1, 4, 10, .5) 100%),
    linear-gradient(90deg, rgba(2, 7, 16, .26), transparent 42%, rgba(2, 7, 16, .08));
}

.bf-hero[data-bf-genesis-activity="active"] .bf-genesis-runtime-card__live > span,
.bf-hero[data-bf-genesis-activity="active"] .bf-genesis-sentinel-label > span,
.bf-hero[data-bf-genesis-activity="active"] .bf-genesis-phase > span {
  animation: bf-genesis-live-pulse 2.6s ease-in-out infinite;
}

.bf-genesis-runtime-card {
  width: min(100%, 468px);
  border-color: rgba(125, 235, 255, .18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .09), transparent 34%),
    radial-gradient(380px 210px at 100% 0%, rgba(34, 211, 238, .055), transparent 72%),
    rgba(5, 12, 23, .76);
  box-shadow:
    0 24px 66px rgba(0, 0, 0, .4),
    0 0 0 1px rgba(125, 235, 255, .025),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.bf-genesis-runtime-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(113deg, transparent 0 36%, rgba(255, 255, 255, .055) 44%, transparent 52% 100%);
  transform: translateX(-120%);
  animation: bf-genesis-card-reflection 8.8s ease-in-out infinite;
}

.bf-genesis-readiness {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .055);
}

.bf-genesis-readiness__header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.bf-genesis-readiness__header > div {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.bf-genesis-readiness__header img,
.bf-genesis-readiness__top img {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.bf-genesis-readiness__header span {
  color: var(--bf-accent-cyan);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bf-genesis-readiness__header small {
  color: rgba(169, 182, 211, .56);
  font-size: .46rem;
}

.bf-genesis-readiness__metric {
  display: grid;
  gap: 5px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 11px;
  background: rgba(255, 255, 255, .012);
  transition:
    border-color 300ms ease,
    background 300ms ease,
    box-shadow 300ms ease;
}

.bf-genesis-readiness__metric[data-updated="true"] {
  border-color: rgba(125, 235, 255, .2);
  background: rgba(125, 235, 255, .035);
  box-shadow: 0 0 18px rgba(125, 235, 255, .05);
}

.bf-genesis-readiness__top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.bf-genesis-readiness__top > span {
  min-width: 0;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: rgba(224, 238, 250, .84);
  font-size: .56rem;
  font-weight: 760;
}

.bf-genesis-readiness__top strong {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  color: var(--bf-accent-cyan);
  font-size: .72rem;
}

.bf-genesis-readiness__metric[data-state="ready"] .bf-genesis-readiness__top strong {
  color: var(--bf-success);
}

.bf-genesis-readiness__metric[data-state="review"] .bf-genesis-readiness__top strong {
  color: var(--bf-accent-cyan);
}

.bf-genesis-readiness__track {
  position: relative;
  height: 5px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
}

.bf-genesis-readiness__track > span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(53, 174, 222, .66), rgba(125, 235, 255, .94));
  box-shadow: 0 0 10px rgba(125, 235, 255, .14);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.bf-genesis-readiness__metric[data-state="ready"] .bf-genesis-readiness__track > span {
  background:
    linear-gradient(90deg, rgba(46, 183, 146, .62), rgba(67, 217, 140, .94));
  box-shadow: 0 0 10px rgba(67, 217, 140, .15);
}

.bf-genesis-readiness__track > i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(194, 247, 255, .7);
  border-radius: 50%;
  background: #071321;
  box-shadow: 0 0 10px rgba(125, 235, 255, .46);
  transform: translate(-50%, -50%);
  transition: left 800ms cubic-bezier(.22, .8, .2, 1);
}

.bf-genesis-readiness__metric[data-state="ready"] .bf-genesis-readiness__track > i {
  border-color: rgba(123, 246, 184, .75);
  box-shadow: 0 0 10px rgba(67, 217, 140, .44);
}

.bf-genesis-readiness__metric > small {
  overflow: hidden;
  color: rgba(169, 182, 211, .55);
  font-size: .45rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bf-genesis-runtime-card__metrics {
  padding-top: 11px;
}

.bf-genesis-orbit {
  opacity: .58;
  filter: drop-shadow(0 0 12px rgba(57, 218, 239, .08));
}

.bf-genesis-orbit > span {
  animation: bf-genesis-orbit-breathe 7.8s ease-in-out infinite;
}

.bf-genesis-orbit > span:nth-child(2) {
  animation-delay: -2.4s;
}

.bf-genesis-orbit > span:nth-child(3) {
  animation-delay: -4.8s;
}

.bf-genesis-orbit > i {
  animation: bf-genesis-orbit-node 3.4s ease-in-out infinite;
}

.bf-genesis-orbit > i:nth-of-type(2) {
  animation-delay: -.9s;
}

.bf-genesis-orbit > i:nth-of-type(3) {
  animation-delay: -1.8s;
}

.bf-genesis-orbit > i:nth-of-type(4) {
  animation-delay: -2.7s;
}

@keyframes bf-genesis-sprinkle-drift {
  from { transform: translate3d(-5px, -3px, 0); }
  to { transform: translate3d(7px, 4px, 0); }
}

@keyframes bf-genesis-network-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -190; }
}

@keyframes bf-genesis-node-breathe {
  0%, 100% { opacity: .38; transform: scale(.9); }
  50% { opacity: .92; transform: scale(1.35); }
}

@keyframes bf-genesis-live-pulse {
  0%, 100% { opacity: .62; transform: scale(.88); box-shadow: 0 0 7px rgba(125, 235, 255, .2); }
  50% { opacity: 1; transform: scale(1.08); box-shadow: 0 0 15px rgba(125, 235, 255, .48); }
}

@keyframes bf-genesis-card-reflection {
  0%, 64%, 100% { transform: translateX(-120%); opacity: 0; }
  72% { opacity: .65; }
  84% { transform: translateX(120%); opacity: 0; }
}

@keyframes bf-genesis-orbit-breathe {
  0%, 100% { opacity: .38; transform: scale(.985); }
  50% { opacity: .72; transform: scale(1.012); }
}

@keyframes bf-genesis-orbit-node {
  0%, 100% { transform: scale(.9); }
  50% { transform: scale(1.22); }
}

@media (max-width: 1220px) {
  .bf-genesis-runtime-card {
    width: min(100%, 420px);
  }

  .bf-genesis-readiness__metric > small {
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .bf-genesis-hero__visual {
    min-height: 680px;
  }

  .bf-genesis-runtime-card {
    width: min(100%, 468px);
  }
}

@media (max-width: 680px) {
  :root {
    --bf-genesis-sparkle-opacity: .34;
    --bf-genesis-activity-opacity: .72;
  }

  .bf-genesis-activity-media {
    height: 720px;
    bottom: auto;
  }

  .bf-genesis-activity-media img {
    object-position: 70% top;
  }

  .bf-genesis-activity-field {
    height: 720px !important;
  }

  .bf-hero__star-canvas {
    opacity: .44;
  }

  .bf-genesis-hero__visual {
    min-height: 740px;
  }

  .bf-genesis-runtime-card {
    width: 100%;
  }

  .bf-genesis-readiness__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .bf-genesis-readiness__metric > small {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-hero__stars-fallback,
  .bf-network__lines path,
  .bf-network__nodes circle,
  .bf-genesis-runtime-card::after,
  .bf-genesis-orbit > span,
  .bf-genesis-orbit > i,
  .bf-hero[data-bf-genesis-activity="active"] .bf-genesis-runtime-card__live > span,
  .bf-hero[data-bf-genesis-activity="active"] .bf-genesis-sentinel-label > span,
  .bf-hero[data-bf-genesis-activity="active"] .bf-genesis-phase > span {
    animation: none !important;
  }

  .bf-genesis-readiness__metric,
  .bf-genesis-readiness__track > i {
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .bf-genesis-runtime-card {
    background: rgba(5, 12, 23, .96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bf-genesis-runtime-card {
    background: #071321;
  }
}
