/* ============================================
   GALAXY — Lakhovsky MWO product page
   ============================================ */

.mwo-page {
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

.mwo-hero {
  position: relative;
  min-height: min(88svh, 52rem);
  display: grid;
  align-items: end;
  padding:
    max(6.5rem, calc(env(safe-area-inset-top) + 5.5rem))
    0
    clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  color: #f3efe6;
  background: #141a17;
}

.mwo-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mwo-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.85) contrast(1.05);
}

.mwo-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(8, 12, 11, 0.78) 0%,
      rgba(8, 12, 11, 0.5) 42%,
      rgba(8, 12, 11, 0.22) 72%,
      rgba(8, 12, 11, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 16, 14, 0.35) 0%,
      transparent 35%,
      rgba(8, 12, 11, 0.72) 100%
    );
  pointer-events: none;
}

.mwo-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}

.mwo-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}

.mwo-hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.mwo-hero__lead {
  margin: 0 0 1.5rem;
  max-width: 36ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(243, 239, 230, 0.9);
}

.mwo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mwo-section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.mwo-section--mist {
  background: linear-gradient(180deg, #eef2ef 0%, var(--mist) 100%);
}

.mwo-section--ink {
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(185, 168, 140, 0.12), transparent 55%),
    var(--ink);
  color: #e8ece9;
}

.mwo-section--ink .eyebrow {
  color: var(--sand);
}

.mwo-section__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.mwo-section__copy {
  max-width: 40rem;
}

.mwo-section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  font-weight: 600;
  line-height: 1.15;
}

.mwo-section__text {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(21, 32, 28, 0.86);
}

.mwo-section--ink .mwo-section__text {
  color: rgba(232, 236, 233, 0.86);
}

.mwo-section__text:last-child {
  margin-bottom: 0;
}

.mwo-figure {
  margin: 0;
  border-radius: 1.6rem 2rem 1.7rem 1.85rem / 1.85rem 1.6rem 2rem 1.7rem;
  overflow: hidden;
  background: var(--mist);
}

.mwo-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mwo-figure--contain img {
  object-fit: contain;
  background: #0f1512;
  aspect-ratio: 16 / 10;
}

.mwo-figure--chart {
  background: #fff;
}

.mwo-figure--chart img {
  object-fit: contain;
  aspect-ratio: 1024 / 609;
  background: #fff;
}

.mwo-figure--square img {
  aspect-ratio: 1 / 1;
}

.mwo-pills {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mwo-pills li {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(21, 32, 28, 0.14);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(21, 32, 28, 0.82);
  background: rgba(255, 255, 255, 0.45);
}

.mwo-section--ink .mwo-pills li {
  border-color: rgba(232, 236, 233, 0.2);
  color: rgba(232, 236, 233, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.mwo-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.mwo-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.mwo-steps__num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sand);
  line-height: 1;
}

.mwo-steps__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.mwo-steps__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(21, 32, 28, 0.78);
}

.mwo-mv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.mwo-mv__item {
  padding: 1.1rem 1rem;
  border: 1px solid rgba(21, 32, 28, 0.1);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.55);
}

.mwo-mv__value {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
}

.mwo-mv__label {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(21, 32, 28, 0.72);
}

.mwo-more {
  margin-top: 1.25rem;
}

.mwo-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--moss-deep);
  border-bottom: 1px solid rgba(61, 86, 72, 0.35);
  padding-bottom: 0.1rem;
}

.mwo-more > summary::-webkit-details-marker {
  display: none;
}

.mwo-more > summary::after {
  content: "→";
  transition: transform 0.25s var(--ease-out);
}

.mwo-more[open] > summary::after {
  transform: rotate(90deg);
}

.mwo-more__body {
  margin-top: 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.1rem;
  background: rgba(21, 32, 28, 0.04);
  border: 1px solid rgba(21, 32, 28, 0.08);
}

.mwo-more__body p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(21, 32, 28, 0.82);
}

.mwo-more__body p:last-child {
  margin-bottom: 0;
}

.mwo-section--ink .mwo-more > summary {
  color: var(--sand);
  border-bottom-color: rgba(185, 168, 140, 0.45);
}

.mwo-section--ink .mwo-more__body {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(232, 236, 233, 0.12);
}

.mwo-section--ink .mwo-more__body p {
  color: rgba(232, 236, 233, 0.84);
}

.mwo-quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.35rem;
  border-left: 2px solid var(--sand);
  background: rgba(185, 168, 140, 0.1);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.4;
  color: var(--ink);
}

.mwo-cta {
  text-align: left;
}

.mwo-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.mwo-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  color: rgba(243, 239, 230, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
}

.mwo-back:hover {
  color: #fff;
}

.mwo-cta .btn--ghost {
  color: var(--ink);
  border-color: rgba(21, 32, 28, 0.28);
}

.mwo-cta .btn--ghost:hover {
  background: rgba(21, 32, 28, 0.06);
  color: var(--ink);
}

@media (max-width: 860px) {
  /* Wide product shot: show full horizontal frame (both antennas) */
  .mwo-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .mwo-hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    flex: 0 0 auto;
    padding-top: max(4.25rem, calc(env(safe-area-inset-top) + 3.5rem));
    background: #141a17;
    overflow: hidden;
  }

  .mwo-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 602;
    object-fit: contain;
    object-position: center center;
    filter: saturate(0.9) contrast(1.04);
  }

  .mwo-hero__veil {
    inset: auto 0 0 0;
    height: 48%;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(8, 12, 11, 0.28) 40%,
      rgba(8, 12, 11, 0.94) 100%
    );
  }

  .mwo-hero__inner {
    position: relative;
    z-index: 2;
    max-width: none;
    width: min(100% - (var(--pad-x) * 2), var(--content-max));
    margin-inline: auto;
    margin-top: -1.75rem;
    padding:
      0.35rem 0
      clamp(1.75rem, 5vw, 2.75rem);
    background: transparent;
  }

  .mwo-hero__eyebrow {
    margin-bottom: 0.55rem;
    font-size: 0.68rem;
  }

  .mwo-hero__title {
    font-size: clamp(1.95rem, 8.2vw, 2.6rem);
    letter-spacing: 0.01em;
  }

  .mwo-hero__lead {
    max-width: none;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .mwo-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .mwo-hero__actions .btn {
    width: 100%;
  }

  .mwo-hero__actions .btn--ghost {
    border-color: rgba(255, 255, 255, 0.78);
    color: #fff;
  }

  .mwo-hero__actions .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .mwo-back {
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
  }

  .mwo-section {
    padding-block: clamp(2.75rem, 9vw, 4rem);
  }

  .mwo-section__grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .mwo-section__grid > .mwo-figure {
    order: -1;
  }

  .mwo-section__grid--flip .mwo-figure {
    order: -1;
  }

  .mwo-section__copy {
    max-width: none;
  }

  .mwo-section__title {
    margin-bottom: 0.85rem;
    font-size: clamp(1.55rem, 6.5vw, 2.05rem);
  }

  .mwo-section__text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .mwo-figure {
    border-radius: 1.25rem;
  }

  .mwo-figure--square {
    max-width: min(100%, 22rem);
    margin-inline: auto;
  }

  .mwo-figure--chart {
    width: 100%;
  }

  .mwo-figure--chart img {
    width: 100%;
    height: auto;
  }

  .mwo-pills {
    gap: 0.4rem;
    margin-top: 1rem;
  }

  .mwo-pills li {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  .mwo-steps {
    margin-top: 1.25rem;
    gap: 0.95rem;
  }

  .mwo-mv {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 1.2rem;
  }

  .mwo-mv__item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 0.9rem 1rem;
  }

  .mwo-mv__value {
    margin: 0;
    font-size: 1.35rem;
    white-space: nowrap;
  }

  .mwo-mv__label {
    margin: 0;
    font-size: 0.9rem;
  }

  .mwo-more {
    margin-top: 1rem;
  }

  .mwo-more > summary {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 0;
    border-bottom: none;
    font-size: 0.95rem;
  }

  .mwo-more + .mwo-more {
    margin-top: 0.15rem;
  }

  .mwo-more__body {
    padding: 1rem;
  }

  .mwo-quote {
    margin-top: 1.15rem;
    padding: 1rem 1.1rem;
    font-size: 1.12rem;
  }

  .mwo-cta {
    padding-bottom: calc(clamp(2.75rem, 9vw, 4rem) + 4.75rem);
  }

  .mwo-cta__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .mwo-cta__actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .mwo-hero__title {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .mwo-steps li {
    gap: 0.65rem;
  }

  .mwo-steps__num {
    font-size: 1.15rem;
    padding-top: 0.15rem;
  }

  .mwo-steps__title {
    font-size: 1rem;
  }

  .mwo-steps__text {
    font-size: 0.92rem;
  }
}
