:root {
  --mw-bg: #07111f;
  --mw-panel: #0d1928;
  --mw-panel-2: #111f30;
  --mw-border: rgba(112, 173, 230, 0.22);
  --mw-text: #f4f8fc;
  --mw-muted: #8fa4b8;
  --mw-blue: #2388ff;
  --mw-cyan: #3bc9ff;
  --mw-green: #3fe2a0;
  --mw-orange: #f5a524;
  --mw-danger: #ff6475;
}

* {
  box-sizing: border-box;
}

.mw-body {
  margin: 0;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(35, 136, 255, 0.13),
      transparent 34%
    ),
    var(--mw-bg);
  color: var(--mw-text);
}

.mw-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.mw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--mw-border);
  background: rgba(5, 14, 25, 0.92);
  backdrop-filter: blur(16px);
}

.mw-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.mw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--mw-text);
  text-decoration: none;
}

.mw-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(59, 201, 255, 0.55);
  border-radius: 11px;
  color: var(--mw-cyan);
  background: rgba(35, 136, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mw-brand strong,
.mw-brand small {
  display: block;
}

.mw-brand small {
  margin-top: 3px;
  color: var(--mw-muted);
  font-size: 11px;
}

.mw-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.mw-nav a {
  color: var(--mw-muted);
  text-decoration: none;
  font-size: 13px;
}

.mw-nav a:hover,
.mw-nav a[aria-current="page"] {
  color: var(--mw-text);
}

.mw-hero {
  padding: 54px 0 46px;
  border-bottom: 1px solid var(--mw-border);
}

.mw-back {
  color: var(--mw-muted);
  text-decoration: none;
  font-size: 13px;
}

.mw-hero__grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 54px;
  align-items: center;
}

.mw-kicker {
  display: inline-block;
  color: var(--mw-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.mw-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.mw-hero h1 span {
  color: var(--mw-blue);
}

.mw-lead {
  max-width: 720px;
  color: #b9c7d4;
  font-size: 18px;
  line-height: 1.65;
}

.mw-hero__facts {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mw-hero__facts span {
  padding: 7px 10px;
  border: 1px solid var(--mw-border);
  border-radius: 999px;
  color: #b8cad9;
  font-size: 12px;
}

.mw-full-card {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(35, 136, 255, 0.55);
  border-radius: 20px;
  background:
    linear-gradient(
      160deg,
      rgba(35, 136, 255, 0.16),
      rgba(13, 25, 40, 0.95) 48%
    );
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.28);
}

.mw-full-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--mw-green);
  background: rgba(63, 226, 160, 0.1);
  font-size: 10px;
  font-weight: 800;
}

.mw-full-card__label {
  color: var(--mw-muted);
  font-size: 12px;
}

.mw-full-card__price {
  margin-top: 20px;
}

.mw-full-card__price strong {
  display: block;
  font-size: 34px;
}

.mw-full-card__price span {
  color: var(--mw-muted);
  font-size: 12px;
}

.mw-full-card__saving {
  margin: 15px 0 20px;
  color: var(--mw-muted);
  font-size: 13px;
}

.mw-full-card__saving strong {
  color: var(--mw-green);
}

.mw-section {
  padding: 64px 0;
}

.mw-section__head {
  max-width: 720px;
  margin-bottom: 30px;
}

.mw-section__head h2,
.mw-workspace__head h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.mw-section__head p {
  color: var(--mw-muted);
  line-height: 1.6;
}

.mw-capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mw-capability {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--mw-border);
  border-radius: 16px;
  background: var(--mw-panel);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.mw-capability:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 201, 255, 0.45);
}

.mw-capability.is-selected {
  border-color: var(--mw-blue);
  box-shadow: inset 0 0 0 1px rgba(35, 136, 255, 0.18);
}

.mw-capability__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mw-number {
  color: #62768b;
  font-size: 10px;
  font-weight: 800;
}

.mw-access-badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--mw-orange);
  background: rgba(245, 165, 36, 0.1);
  font-size: 9px;
  font-weight: 700;
}

.mw-access-badge.is-open {
  color: var(--mw-green);
  background: rgba(63, 226, 160, 0.1);
}

.mw-capability__icon {
  width: 42px;
  height: 42px;
  margin-top: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(35, 136, 255, 0.55);
  border-radius: 10px;
  color: var(--mw-cyan);
  background: rgba(35, 136, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.mw-capability__category {
  margin-top: 22px;
  color: var(--mw-cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mw-capability h3 {
  margin: 7px 0 12px;
  font-size: 21px;
}

.mw-capability p {
  margin: 0;
  color: var(--mw-muted);
  font-size: 13px;
  line-height: 1.55;
}

.mw-capability__price {
  margin-top: auto;
  padding: 22px 0 12px;
}

.mw-capability__price strong {
  font-size: 21px;
}

.mw-button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.mw-button:disabled {
  opacity: 0.48;
  cursor: default;
}

.mw-button--primary {
  color: #fff;
  background:
    linear-gradient(
      180deg,
      #2c95ff,
      #1472de
    );
}

.mw-button--secondary {
  color: #d6e3ef;
  border: 1px solid var(--mw-border);
  background: #101d2c;
}

.mw-button--buy {
  margin-top: 8px;
  color: #d9eaff;
  border: 1px solid rgba(35, 136, 255, 0.38);
  background: rgba(35, 136, 255, 0.12);
}

.mw-workspace {
  padding: 62px 0 80px;
  border-top: 1px solid var(--mw-border);
  background: rgba(4, 12, 22, 0.48);
}

.mw-workspace__head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.mw-workspace__status {
  color: var(--mw-orange);
  font-size: 12px;
}

.mw-panel,
.mw-result,
.mw-locked {
  padding: 26px;
  border: 1px solid var(--mw-border);
  border-radius: 16px;
  background: var(--mw-panel);
}

.mw-panel[hidden],
.mw-result[hidden],
.mw-locked[hidden] {
  display: none !important;
}

.mw-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.mw-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--mw-muted);
  font-size: 11px;
}

.mw-form-grid input,
.mw-form-grid select,
.mw-takeoff-row input {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  color: var(--mw-text);
  border: 1px solid var(--mw-border);
  border-radius: 9px;
  outline: 0;
  background: #081421;
}

.mw-form-grid input:focus,
.mw-form-grid select:focus,
.mw-takeoff-row input:focus {
  border-color: var(--mw-blue);
}

.mw-calc {
  width: auto;
  min-width: 190px;
  margin-top: 22px;
  padding: 0 28px;
}

.mw-result {
  margin-top: 18px;
}

.mw-result__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.mw-result__head span {
  color: var(--mw-muted);
  font-size: 11px;
}

.mw-result__grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mw-result-item {
  padding: 15px;
  border: 1px solid var(--mw-border);
  border-radius: 11px;
  background: var(--mw-panel-2);
}

.mw-result-item span {
  display: block;
  color: var(--mw-muted);
  font-size: 10px;
}

.mw-result-item strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}

.mw-locked {
  margin-top: 18px;
  text-align: center;
}

.mw-locked p {
  color: var(--mw-muted);
}

.mw-locked .mw-button {
  width: auto;
  min-width: 210px;
}

.mw-takeoff-row {
  display: grid;
  grid-template-columns:
    1.7fr
    0.7fr
    1fr
    1fr
    1fr
    42px;
  gap: 8px;
  margin-bottom: 8px;
}

.mw-takeoff-row button {
  border: 1px solid var(--mw-border);
  border-radius: 9px;
  color: var(--mw-danger);
  background: transparent;
  cursor: pointer;
}

.mw-payment-message {
  min-height: 18px;
  margin-top: 10px;
  color: var(--mw-muted);
  font-size: 11px;
}

.mw-footer {
  padding: 28px 0;
  border-top: 1px solid var(--mw-border);
  color: #6f8295;
  font-size: 12px;
}

@media (max-width: 980px) {
  .mw-hero__grid {
    grid-template-columns: 1fr;
  }

  .mw-capabilities {
    grid-template-columns: repeat(2, 1fr);
  }

  .mw-form-grid,
  .mw-result__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mw-takeoff-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .mw-container {
    width: min(100% - 24px, 1180px);
  }

  .mw-nav {
    display: none;
  }

  .mw-capabilities,
  .mw-form-grid,
  .mw-result__grid {
    grid-template-columns: 1fr;
  }

  .mw-workspace__head {
    display: block;
  }

  .mw-workspace__status {
    display: block;
    margin-top: 8px;
  }
}


/* ==========================================================
   STE_MW_PIPE_SELECT_ACTION_PARITY_V1

   Commercial card parity:
   LOCKED  -> one purchase action
   OPEN    -> one calculation action
   ========================================================== */


/* Closed capability:
   calculation CTA is not shown. */

.mw-capability:not(
  :has(.mw-access-badge.is-open)
) [data-open] {
  display: none !important;
}


/* Open capability:
   purchase CTA is not shown. */

.mw-capability:has(
  .mw-access-badge.is-open
) [data-buy] {
  display: none !important;
}


/* The one visible action uses
   the same strong primary hierarchy. */

.mw-capability:not(
  :has(.mw-access-badge.is-open)
) [data-buy],

.mw-capability:has(
  .mw-access-badge.is-open
) [data-open] {
  display: block !important;
  margin-top: 0 !important;

  color: #fff !important;

  border:
    1px solid
    rgba(35, 136, 255, 0.72) !important;

  background:
    linear-gradient(
      180deg,
      #2c95ff,
      #1472de
    ) !important;
}


/* A closed card must not look like
   an activated calculation workspace. */

.mw-capability.is-selected:not(
  :has(.mw-access-badge.is-open)
) {
  border-color:
    var(--mw-border) !important;

  box-shadow:
    none !important;
}


/* Open + selected retains
   the active engineering state. */

.mw-capability.is-selected:has(
  .mw-access-badge.is-open
) {
  border-color:
    var(--mw-blue) !important;

  box-shadow:
    inset 0 0 0 1px
    rgba(35, 136, 255, 0.18) !important;
}



/* ==========================================================
   STE_MW_PLATFORM_UI_PARITY_V2
   SimTechEnergy Engineering Tools visual contract
   ========================================================== */


/* Use the common platform canvas. */

.mw-body {
  background:
    linear-gradient(
      180deg,
      #07111f 0%,
      #081421 100%
    ) !important;
}


/* Width closer to the Engineering Tools workspace. */

.mw-container {
  width:
    min(
      1320px,
      calc(100% - 64px)
    ) !important;
}


/* Hero typography follows the platform instead of
   behaving like a separate microsite. */

.mw-hero {
  padding:
    46px 0 48px !important;
}

.mw-hero h1 {
  margin:
    12px 0 18px !important;

  font-size:
    clamp(
      44px,
      5vw,
      64px
    ) !important;

  line-height:
    1 !important;

  letter-spacing:
    -0.035em !important;
}

.mw-lead {
  font-size:
    17px !important;

  line-height:
    1.6 !important;
}


/* Capability cards behave like module selectors. */

.mw-capability {
  cursor:
    pointer !important;

  background:
    #0d1928 !important;

  border-color:
    rgba(
      85,
      151,
      215,
      0.30
    ) !important;
}

.mw-capability:hover {
  border-color:
    rgba(
      35,
      136,
      255,
      0.72
    ) !important;
}


/* Selected capability is visible even while locked.
   This is important because the form below is a preview
   of exactly this selected calculation. */

.mw-capability.is-selected,
.mw-capability.is-selected:not(
  :has(.mw-access-badge.is-open)
) {
  border-color:
    #2388ff !important;

  box-shadow:
    inset 0 0 0 1px
    rgba(
      35,
      136,
      255,
      0.25
    ) !important;
}


/* Full module follows the same visual hierarchy. */

.mw-full-card {
  border-color:
    rgba(
      35,
      136,
      255,
      0.62
    ) !important;

  background:
    #0d1928 !important;

  box-shadow:
    none !important;
}


/* Calculation workspace aligned with module cards. */

.mw-workspace {
  background:
    #07111f !important;
}

.mw-panel,
.mw-result,
.mw-locked {
  border-color:
    rgba(
      85,
      151,
      215,
      0.30
    ) !important;

  background:
    #0d1928 !important;
}


/* Old custom brand/header classes remain unused.
   The visible header is now the shared platform header. */

.mw-header,
.mw-brand,
.mw-nav {
  display:
    none !important;
}


@media (
  max-width: 760px
) {
  .mw-container {
    width:
      min(
        100% - 24px,
        1320px
      ) !important;
  }
}

