body {
  background: var(--color-bg, #0a0a0a);
}

/* ==========================================================
   BENTO COMPASS — ecosystem layout
   Replaces: .ring, .ring-legend, .franchise-hub-detail, .franchise-grid
   ========================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto auto;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

/* ---------- CARD (pillar) ---------- */
.bento__card {
  position: relative;
  background: var(--color-surface, #14141a);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(225, 29, 46, 0.1),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.bento__card:hover {
  border-color: rgba(225, 29, 46, 0.4);
  transform: translateY(-2px);
}
.bento__card:hover::before {
  opacity: 1;
}

.bento__card--cyan::before {
  background: radial-gradient(
    circle at top right,
    rgba(6, 182, 212, 0.1),
    transparent 60%
  );
}
.bento__card--cyan:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

/* ---------- Card head ---------- */
.bento__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.bento__num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-red, #e11d2e);
}
.bento__card--cyan .bento__num {
  color: var(--color-cyan, #06b6d4);
}

.bento__tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted, #9ca3af);
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.bento__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text, #fff);
  margin: 0;
  line-height: 1.2;
}

.bento__desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-text-muted, #9ca3af);
  margin: 0;
}

/* ---------- Pills (sub-systems) ---------- */
.bento__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.bento__pill {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted, #9ca3af);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  cursor: default;
}

.bento__pill:hover {
  color: var(--color-text, #fff);
  border-color: rgba(255, 255, 255, 0.2);
}

/* sub_inner = core pill, filled accent */
.bento__pill--core {
  background: rgba(225, 29, 46, 0.1);
  border-color: rgba(225, 29, 46, 0.25);
  color: #f5b3b8;
}
.bento__pill--core:hover {
  background: rgba(225, 29, 46, 0.18);
  border-color: rgba(225, 29, 46, 0.5);
  color: #fff;
}
.bento__card--cyan .bento__pill--core {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: #a5e6f0;
}
.bento__card--cyan .bento__pill--core:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.5);
  color: #fff;
}

/* ---------- HUB ---------- */
.bento__hub {
  position: relative;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(225, 29, 46, 0.22),
      transparent 65%
    ),
    linear-gradient(135deg, rgba(225, 29, 46, 0.14), rgba(225, 29, 46, 0.03));
  border: 1px solid rgba(225, 29, 46, 0.45);
  border-radius: var(--radius-lg, 16px);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  min-height: 260px;
  box-shadow:
    inset 0 0 60px rgba(225, 29, 46, 0.1),
    0 0 30px rgba(225, 29, 46, 0.08);
}

.bento__hub-eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-cyan, #06b6d4);
}

.bento__hub-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.25rem 0 0;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #ffb3b9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.bento__hub-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
}

.bento__hub-points {
  list-style: none;
  padding: 0;
  margin: 0.875rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  text-align: left;
}

.bento__hub-points li {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.78);
  padding-left: 0.875rem;
  position: relative;
  line-height: 1.45;
}
.bento__hub-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--color-red, #e11d2e);
}

/* ---------- Position map (compass) ---------- */
.bento__card--pos-0 {
  grid-column: 1 / 4;
  grid-row: 1;
} /* top-left  */
.bento__card--pos-1 {
  grid-column: 4 / 7;
  grid-row: 1;
} /* top-right */
.bento__card--pos-5 {
  grid-column: 1 / 3;
  grid-row: 2;
} /* mid-left  */
.bento__hub {
  grid-column: 3 / 5;
  grid-row: 2;
} /* CENTER    */
.bento__card--pos-2 {
  grid-column: 5 / 7;
  grid-row: 2;
} /* mid-right */
.bento__card--pos-4 {
  grid-column: 1 / 4;
  grid-row: 3;
} /* bot-left  */
.bento__card--pos-3 {
  grid-column: 4 / 7;
  grid-row: 3;
} /* bot-right */

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento__card,
  .bento__hub {
    grid-column: auto;
    grid-row: auto;
  }
  .bento__hub {
    grid-column: 1 / -1;
    order: -1;
    min-height: auto;
    padding: 1.5rem;
  }
  .bento__hub-points {
    display: none;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .bento__card {
    padding: 1.25rem;
  }
  .bento__title {
    font-size: 1.125rem;
  }
  .bento__hub {
    padding: 1.25rem;
  }
  .bento__hub-title {
    font-size: 1.25rem;
  }
}

/* Match arrow fill to each accent */
.ring__arrow--red {
  fill: var(--color-red);
}
.ring__arrow--cyan {
  fill: var(--color-cyan);
}
.ring__arrow--blue {
  fill: var(--color-blue);
}
/* ...etc for each accent */

.ring__arrow--outer {
  opacity: 0.6;
} /* dimmer for outer lines, optional */
