/* ============================================================
   Phoenix Torch — muse.css (Muse Connector landing page)
   Loads after home.css. Figma: PHX-Torch → "Muse LP" → frame 2556:1404.
   Page-only layout and motion; nav, footer, buttons, labels and the FAQ
   pattern come from home.css.
   ============================================================ */

:root { --mu-muted: #5C5D59; --mu-rule: #D4D4D2; }

.btn--blue { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.btn--blue:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.nav__links a[aria-current="page"] { color: var(--blue); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.mu-hero { position: relative; padding: 85px 0; overflow: hidden; }
.mu-hero__copy { position: relative; z-index: 1; max-width: 564px; }
.mu-hero__eyebrow { font-size: 14px; line-height: 18px; font-weight: 500; text-transform: uppercase; }
.mu-hero__headline { margin-top: 48px; font-size: 82px; line-height: 86px; font-weight: 500; letter-spacing: -2.87px; }
.mu-hero__headline em { font-style: normal; color: var(--blue); }
.mu-hero__sub { margin-top: 48px; max-width: 500px; font-size: 24px; line-height: 31px; }
.mu-hero__cta { margin-top: 48px; width: 300px; }
.mu-hero .container { position: relative; }
/* Figma: a 740 x 575 panel from the middle of the content column to the page edge.
   Anchored to the container so it stays with the content on wide screens. */
.mu-hero__art {
  position: absolute; top: -78px; right: calc(-1 * var(--gutter));
  width: calc(50% + 76px); max-width: 740px; height: 575px;
  background: var(--paper); overflow: hidden;
}
.mu-hero__video, .mu-hero__art img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; mix-blend-mode: darken; }

/* ---------- Benefits strip ---------- */
.mu-benefits { border-top: 1px solid var(--hair); padding: 25px 0 39px; }
.mu-benefits__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 82px; }
.mu-benefit { display: flex; flex-direction: column; gap: 20px; padding: 24px 0; }
.mu-benefit__icon { width: 80px; height: 80px; overflow: visible; }
.mu-benefit__icon path { stroke: var(--icon); fill: none; stroke-linejoin: round; stroke-linecap: round; }
.mu-benefit__title { font-size: 24px; line-height: 31px; font-weight: 500; }
.mu-benefit__desc { margin-top: -10px; font-size: 20px; line-height: 25px; }

/* Figma hover states: layers spread, the M draws itself, the diamonds part. */
.mu-icon--systems path { transition: transform 600ms var(--ease-out); }
.mu-benefit:hover .mu-icon--systems path:first-child { transform: translateY(-5px); }
.mu-benefit:hover .mu-icon--systems path:last-child { transform: translateY(5px); }

.mu-icon--direct path { transition: transform 600ms var(--ease-out); }
.mu-benefit:hover .mu-icon--direct path:first-child { transform: translateX(-3.3px); }
.mu-benefit:hover .mu-icon--direct path:last-child { transform: translateX(3.3px); }

.mu-icon--logo .mu-icon__rest { transition: opacity 250ms ease; }
.mu-icon--logo .mu-icon__draw { opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mu-benefit:hover .mu-icon--logo .mu-icon__rest { opacity: 0; }
.mu-benefit:hover .mu-icon--logo .mu-icon__draw { opacity: 1; animation: mu-draw 1600ms var(--ease-io) both; }
@keyframes mu-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- 01 Your systems ---------- */
.mu-systems { border-top: 1px solid var(--hair); }
.mu-systems .section__headline { max-width: none; margin-bottom: 48px; }
.mu-systems .section__headline em { font-style: normal; color: var(--blue); }
.mu-systems__grid { display: grid; grid-template-columns: 536px minmax(0, 704px); column-gap: 88px; align-items: stretch; }
.mu-systems__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.mu-systems__text p { font-size: 20px; line-height: 26px; }
.mu-systems__text p + p { margin-top: 26px; }
.mu-metric__value { font-size: 185px; line-height: 168px; font-weight: 500; letter-spacing: -6.475px; color: var(--blue); }
.mu-metric__label { margin-top: 8px; font-size: 24px; line-height: 26px; }

.mu-journey { display: flex; flex-direction: column; }
.mu-journey__row { display: flex; align-items: center; gap: 24px; }
.mu-journey__tag {
  flex: 0 0 220px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--mu-rule); border-bottom: 1px solid var(--mu-rule);
  font-size: 20px; line-height: 26px; font-weight: 500; text-align: center;
}
.mu-journey__text { font-size: 20px; line-height: 26px; max-width: 460px; }
.mu-journey__link { height: 44px; display: flex; align-items: center; padding-left: 103px; }
.mu-journey__arrow { width: 12px; height: 18px; overflow: visible; }
.mu-journey__arrow path { stroke: var(--blue); stroke-width: 1.5; fill: none; }
/* Figma "Process arrow / 5 s loop": rest, exit downward, reset from above, rest. */
.mu-journey__arrow { animation: mu-arrow 5000ms var(--ease-io) infinite; }
.mu-journey__link:nth-of-type(2) .mu-journey__arrow { animation-delay: 150ms; }
.mu-journey__link:nth-of-type(3) .mu-journey__arrow { animation-delay: 300ms; }
@keyframes mu-arrow {
  0%, 80% { transform: none; opacity: 1; }
  88%     { transform: translateY(18px); opacity: 0; }
  88.01%  { transform: translateY(-18px); opacity: 0; }
  96%, 100% { transform: none; opacity: 1; }
}

/* ---------- 02 The opportunity (blue band, cards overlap onto paper) ---------- */
.mu-opp { position: relative; background: var(--blue); color: var(--paper); padding: 85px 0; }
.mu-opp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: var(--paper); }
.mu-opp .container { position: relative; z-index: 1; }
.mu-opp .section__label-div { color: var(--paper-35); }
.mu-opp__head { display: flex; align-items: center; gap: 64px; margin-top: 14px; }
.mu-opp__headline { flex: 0 0 568px; font-size: 60px; line-height: 78px; font-weight: 500; letter-spacing: -2.1px; }
.mu-opp__headline u { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.mu-opp__desc { max-width: 666px; font-size: 20px; line-height: 26px; }
.mu-opp__desc p + p { margin-top: 26px; }
.mu-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 62px; }
.mu-card {
  display: flex; flex-direction: column; gap: 16px;
  min-height: 360px; padding: 48px 24px 31px;
  background: var(--paper); border: 1px solid var(--hair); color: var(--ink);
  transition: transform 500ms var(--ease-out);
}
.mu-card:hover { transform: translateY(-4px); }
.mu-card__index { font-size: 13px; line-height: 17px; font-weight: 600; color: var(--blue); }
.mu-card__title { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.56px; }
.mu-card__desc { font-size: 20px; line-height: 26px; color: var(--mu-muted); }

/* ---------- 03 How it works ---------- */
.mu-how .section__label { margin-bottom: 26px; }
.mu-how__head { display: flex; align-items: center; gap: 64px; margin-bottom: 40px; }
.mu-how__headline { flex: 0 0 752px; font-size: 60px; line-height: 78px; font-weight: 500; letter-spacing: -2.1px; }
.mu-how__headline em { font-style: normal; color: var(--blue); }
.mu-how__desc { max-width: 504px; font-size: 20px; line-height: 26px; }
.mu-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mu-step { display: flex; flex-direction: column; gap: 24px; min-height: 342px; padding: 21px 24px 31px; border: 1px solid var(--hair); background: var(--paper); }
.mu-step--blue { background: var(--blue); color: var(--paper); }
.mu-step__num { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--blue); }
.mu-step--blue .mu-step__num { color: #fff; }
.mu-step__title { font-size: 22px; line-height: 26px; font-weight: 500; }
.mu-step__body { font-size: 20px; line-height: 26px; }
.mu-step__list { display: flex; flex-direction: column; gap: 16px; }
.mu-step__list li { display: flex; align-items: center; gap: 14px; font-size: 20px; line-height: 26px; color: var(--mu-muted); }
.mu-step__list li::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; background: var(--blue); }

/* ---------- 04 FAQ (home.css pattern) ---------- */
.mu-faq .section__headline { max-width: 464px; line-height: 75px; letter-spacing: -2.03px; }
.mu-faq__desc { margin-top: 26px; max-width: 400px; font-size: 18px; line-height: 26px; }

/* ---------- 05 Next step ---------- */
.mu-next { padding: 85px 0; }
.mu-next__headline { margin: 6px auto 0; max-width: 1250px; font-size: 60px; line-height: 78px; font-weight: 500; letter-spacing: -2.1px; text-align: center; text-wrap: balance; }
.mu-next__sub { margin: 32px auto 0; max-width: 620px; font-size: 24px; line-height: 31px; text-align: center; }
.mu-next__cta { display: flex; justify-content: center; margin-top: 32px; }
.mu-next .btn--dark { width: 340px; }
.mu-next .btn--dark:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .mu-hero__headline { font-size: 68px; line-height: 72px; letter-spacing: -2.3px; }
  .mu-hero__art { height: 500px; }
  .mu-benefits__row { column-gap: 40px; }
  .mu-systems__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 48px; }
  .mu-metric__value { font-size: 140px; line-height: 130px; letter-spacing: -4.5px; }
  .mu-opp__headline, .mu-how__headline { flex-basis: 50%; font-size: 52px; line-height: 64px; letter-spacing: -1.8px; }
  .mu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mu-card { min-height: 0; }
}

@media (max-width: 1024px) {
  .mu-hero { padding-bottom: 0; }
  .mu-hero__copy { max-width: 640px; }
  .mu-hero__art { position: relative; top: auto; right: auto; width: 100%; max-width: none; margin: 56px 0 0; height: auto; aspect-ratio: 1 / 1; }
  .mu-benefits__row { grid-template-columns: 1fr; }
  .mu-benefit { border-top: 1px solid var(--hair); }
  .mu-benefit:first-child { border-top: 0; }
  .mu-systems__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .mu-systems__copy { gap: 48px; }
  .mu-opp__head, .mu-how__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .mu-opp__headline, .mu-how__headline { flex-basis: auto; }
  .mu-steps { grid-template-columns: 1fr; }
  .mu-step { min-height: 0; }
}

@media (max-width: 768px) {
  .mu-hero { padding-top: 48px; }
  .mu-hero__headline { margin-top: 24px; font-size: 44px; line-height: 48px; letter-spacing: -1.5px; }
  .mu-hero__sub { margin-top: 24px; font-size: 20px; line-height: 26px; }
  .mu-hero__cta { margin-top: 24px; width: 100%; max-width: 300px; }
  .mu-hero__art { margin-top: 36px; }
  .mu-benefits { padding: 10px 0 20px; }
  .mu-benefit__icon { width: 64px; height: 64px; }
  .mu-benefit__desc { font-size: 17px; line-height: 23px; }
  .mu-systems .section__headline { margin-bottom: 32px; }
  .mu-systems__text p { font-size: 18px; line-height: 25px; }
  .mu-metric__value { font-size: 96px; line-height: 92px; letter-spacing: -3px; }
  .mu-metric__label { font-size: 20px; line-height: 24px; }
  .mu-journey__row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mu-journey__tag { flex-basis: auto; width: 100%; height: 52px; }
  .mu-journey__text { font-size: 18px; line-height: 25px; }
  .mu-journey__link { height: 36px; padding-left: 0; justify-content: center; }
  .mu-opp { padding: 60px 0; }
  .mu-opp::after { height: 120px; }
  .mu-opp__headline, .mu-how__headline { font-size: 38px; line-height: 44px; letter-spacing: -1.3px; }
  .mu-opp__desc, .mu-how__desc { font-size: 18px; line-height: 25px; }
  .mu-cards { grid-template-columns: 1fr; margin-top: 40px; }
  .mu-card { padding: 32px 20px 28px; }
  .mu-card__title { font-size: 24px; line-height: 30px; }
  .mu-card__desc, .mu-step__list li, .mu-step__body { font-size: 18px; line-height: 25px; }
  .mu-faq .section__headline { line-height: 44px; letter-spacing: -1.3px; }
  .mu-faq__desc { margin-top: 16px; font-size: 16px; line-height: 24px; }
  .mu-next { padding: 60px 0; }
  .mu-next__headline { font-size: 38px; line-height: 44px; letter-spacing: -1.3px; }
  .mu-next__sub { margin-top: 20px; font-size: 18px; line-height: 25px; }
  .mu-next .btn--dark { width: 100%; max-width: 340px; }
}
