/* Home page animated hero: make the supporting panels readable at normal zoom. */
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool--rich {
  width: clamp(7rem, 16%, 8rem);
  padding: 0.5rem 0.55rem;
  gap: 0.3rem;
  border-radius: 0.75rem;
  background: rgba(5, 10, 20, 0.96);
  border-color: rgba(91, 166, 255, 0.34);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0.92;
  transform: scale(0.96);
}

/* Keep the frame, animated stage, and story timeline on one compact canvas. */
#fi-hero-stage .fi-hero__mhero-wrap,
#fi-hero-stage .fi-mhero--v4,
#fi-hero-stage .fi-mhero--v4 .fi-mhero__stage {
  min-height: clamp(24rem, 42vw, 30rem);
}

#fi-hero-stage .fi-mhero--v4 .fi-mhero__stage {
  padding-top: 2rem;
  padding-bottom: 2.25rem;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__story-spine {
  bottom: 0.75rem;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__story-spine-steps li {
  font-size: 0.55rem;
  letter-spacing: 0.025em;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool--rich.is-lit {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(65, 190, 255, 0.78);
  box-shadow: 0 0 24px rgba(0, 125, 255, 0.28), 0 12px 28px rgba(0, 0, 0, 0.42);
}

/* The homepage left rail uses one consistent column and four non-overlapping cards. */
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="components"],
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="tokens"],
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="typography"],
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="launch"] {
  left: 0.5%;
  right: auto;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="components"] {
  top: 6%;
  bottom: auto;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="tokens"] {
  top: 25%;
  bottom: auto;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="typography"] {
  top: 45%;
  bottom: auto;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="launch"] {
  top: 65%;
  bottom: auto;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="vitals"],
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="seo"],
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="a11y"],
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="ssl"] {
  left: auto;
  right: 0.5%;
  z-index: 8;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="vitals"] {
  top: 6%;
  bottom: auto;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="seo"] {
  top: 25%;
  bottom: auto;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="a11y"] {
  top: 45%;
  bottom: auto;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="ssl"] {
  top: 65%;
  bottom: auto;
}

/* Design Tokens already shows the palette swatches, so avoid a duplicate panel. */
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool[data-tool="palette"] {
  display: none !important;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-head {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  justify-content: start;
  align-items: center;
  text-align: left;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-label,
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-body,
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-body * {
  text-align: left;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-body {
  align-items: flex-start;
  width: 100%;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__launch-checklist {
  gap: 0.12rem;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__launch-checklist li {
  line-height: 1.2;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-head {
  gap: 0.42rem;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-icon,
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-icon svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-label {
  color: #dbeafe;
  font-size: clamp(0.625rem, 0.72vw, 0.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool.is-lit .fi-mhero__tool-label {
  color: #fff;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-body {
  gap: 0.25rem;
  opacity: 0.96;
  color: #cbd5e1;
}

#fi-hero-stage .fi-mhero--v10 .fi-mh-type--h {
  font-size: 0.625rem;
  line-height: 1.25;
}

#fi-hero-stage .fi-mhero--v10 .fi-mh-type--b,
#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-body--service p,
#fi-hero-stage .fi-mhero--v10 .fi-mh-check {
  color: #cbd5e1;
  font-size: 0.56rem;
  line-height: 1.35;
}

#fi-hero-stage .fi-mhero--v10 .fi-mh-type--c,
#fi-hero-stage .fi-mhero--v10 .fi-mh-type--font,
#fi-hero-stage .fi-mhero--v10 .fi-mh-token-label,
#fi-hero-stage .fi-mhero--v10 .fi-mh-token-type,
#fi-hero-stage .fi-mhero--v10 .fi-mh-swatch em,
#fi-hero-stage .fi-mhero--v10 .fi-mh-swatch::before,
#fi-hero-stage .fi-mhero--v10 .fi-mh-service-badge,
#fi-hero-stage .fi-mhero--v10 .fi-mh-service-tags li,
#fi-hero-stage .fi-mhero--v10 .fi-mhero__launch-checklist li {
  color: #b8c7db;
  font-size: 0.5rem;
  line-height: 1.3;
}

#fi-hero-stage .fi-mhero--v10 .fi-mh-token-label,
#fi-hero-stage .fi-mhero--v10 .fi-mh-swatch::before {
  width: auto;
  min-width: 2rem;
}

#fi-hero-stage .fi-mhero--v10 .fi-mh-token-swatch,
#fi-hero-stage .fi-mhero--v10 .fi-mh-swatch__chip {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 0.16rem;
}

#fi-hero-stage .fi-mhero--v10 .fi-mh-ui--btn,
#fi-hero-stage .fi-mhero--v10 .fi-mh-ui--btn-ghost,
#fi-hero-stage .fi-mhero--v10 .fi-mh-ui--quote,
#fi-hero-stage .fi-mhero--v10 .fi-mh-ui--field label {
  font-size: 0.48rem;
  line-height: 1.25;
}

#fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-body--components {
  gap: 0.18rem;
}

#fi-hero-stage .fi-mhero--v10 .fi-mh-service-tags {
  gap: 0.16rem;
}

#fi-hero-stage .fi-mhero--v10 .fi-mh-service-tags li {
  padding: 0.1rem 0.22rem;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 959px) {
  #fi-hero-stage .fi-mhero--v10 .fi-mhero__tool--rich {
    width: clamp(6.5rem, 18%, 7.25rem);
    padding: 0.45rem;
  }

  #fi-hero-stage .fi-mhero--v10 .fi-mhero__tool-label {
    font-size: 0.625rem;
  }
}

@media (max-width: 639px) {
  /* The mobile hero already hides these orbit panels; keep its center story clear. */
  #fi-hero-stage .fi-mhero--v10 .fi-mhero__tool--rich {
    display: none;
  }

  #fi-hero-stage .fi-mhero--v10 .fi-mhero__story-spine-steps li {
    font-size: 0.38rem;
  }
}
