:root {
  --mwe-ink: #111316;
  --mwe-soft-ink: #4d535c;
  --mwe-paper: #f7f4ef;
  --mwe-panel: #ffffff;
  --mwe-line: rgba(17, 19, 22, 0.12);
  --mwe-red: #de3439;
  --mwe-gold: #d8a642;
  --mwe-teal: #2f8f8a;
  --mwe-shadow: 0 20px 55px rgba(17, 19, 22, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--mwe-paper);
  color: var(--mwe-ink);
  opacity: 0;
  transition: opacity 240ms ease;
}

body.mwe-loaded {
  opacity: 1;
}

body.mwe-page-leaving {
  opacity: 0.58;
}

.mwe-panel,
.mwe-xvemg,
.mwe-product-drop {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto;
}

.mwe-panel {
  background: var(--mwe-panel);
  border: 1px solid var(--mwe-line);
  border-radius: 8px;
  box-shadow: var(--mwe-shadow);
  padding: clamp(22px, 4vw, 44px);
}

.mwe-panel h2,
.mwe-xvemg h1,
.mwe-xvemg h2,
.mwe-product-drop h2 {
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 14px;
}

.mwe-panel p,
.mwe-xvemg p,
.mwe-product-drop p {
  color: var(--mwe-soft-ink);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 18px;
}

.mwe-section-kicker {
  color: var(--mwe-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.mwe-button,
.mwe-form button {
  align-items: center;
  background: var(--mwe-ink);
  border: 1px solid var(--mwe-ink);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.mwe-button:hover,
.mwe-form button:hover {
  box-shadow: 0 12px 28px rgba(17, 19, 22, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.mwe-button-ghost {
  background: transparent;
  color: var(--mwe-ink);
}

.mwe-button-ghost:hover {
  color: var(--mwe-ink);
}

.mwe-balance {
  background: linear-gradient(120deg, var(--mwe-ink), #333941);
  border-radius: 8px;
  color: #fff !important;
  display: inline-flex;
  font-size: clamp(1.6rem, 4vw, 2.7rem) !important;
  font-weight: 900;
  margin: 2px 0 22px !important;
  padding: 16px 22px;
}

.mwe-tier-grid,
.mwe-product-grid,
.mwe-service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mwe-tier,
.mwe-product-grid article,
.mwe-service-grid article {
  background: #fff;
  border: 1px solid var(--mwe-line);
  border-radius: 8px;
  padding: 20px;
}

.mwe-tier.is-ready {
  border-color: rgba(47, 143, 138, 0.7);
  box-shadow: 0 14px 34px rgba(47, 143, 138, 0.12);
}

.mwe-tier h3,
.mwe-product-grid h3,
.mwe-service-grid h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
}

.mwe-tier strong,
.mwe-product-grid span {
  color: var(--mwe-red);
  display: block;
  font-weight: 900;
  margin: 12px 0;
}

.mwe-muted {
  color: var(--mwe-soft-ink);
  font-weight: 800;
}

.mwe-form {
  display: grid;
  gap: 14px;
}

.mwe-form label {
  color: var(--mwe-ink);
  display: grid;
  font-weight: 800;
  gap: 8px;
}

.mwe-form input,
.mwe-form textarea {
  border: 1px solid var(--mwe-line);
  border-radius: 6px;
  box-sizing: border-box;
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}

.mwe-success {
  background: rgba(47, 143, 138, 0.12);
  border: 1px solid rgba(47, 143, 138, 0.35);
  border-radius: 6px;
  color: #1f615d !important;
  font-weight: 800;
  padding: 12px 14px;
}

.mwe-xvemg-hero {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
}

.mwe-xvemg-hero > div,
.mwe-xvemg-hero aside {
  background: #fff;
  border: 1px solid var(--mwe-line);
  border-radius: 8px;
  box-shadow: var(--mwe-shadow);
  padding: clamp(24px, 5vw, 54px);
}

.mwe-xvemg-hero h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  max-width: 850px;
}

.mwe-xvemg-hero aside {
  display: grid;
  gap: 12px;
}

.mwe-xvemg-hero aside span {
  border-bottom: 1px solid var(--mwe-line);
  color: var(--mwe-soft-ink);
  padding-bottom: 12px;
}

.mwe-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.mwe-service-grid {
  margin-top: 18px;
}

.mwe-audio-control {
  align-items: center;
  background: rgba(17, 19, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.24);
  color: #fff;
  display: none;
  font-size: 0.86rem;
  font-weight: 900;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  position: fixed;
  right: 18px;
  z-index: 9998;
}

.mwe-audio-control.is-visible {
  display: inline-flex;
}

.mwe-character {
  align-items: center;
  background: linear-gradient(150deg, var(--mwe-red), var(--mwe-gold));
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(17, 19, 22, 0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  left: 0;
  line-height: 1;
  pointer-events: auto;
  position: fixed;
  top: 0;
  transform: translate3d(0, 0, 0);
  width: 42px;
  z-index: 9997;
}

.mwe-character:nth-child(2) {
  background: linear-gradient(150deg, var(--mwe-teal), #20242a);
}

.mwe-character:nth-child(3) {
  background: linear-gradient(150deg, var(--mwe-gold), #782b2d);
}

.mwe-character-card {
  background: #fff;
  border: 1px solid var(--mwe-line);
  border-radius: 8px;
  box-shadow: var(--mwe-shadow);
  display: none;
  max-width: 260px;
  padding: 14px;
  position: fixed;
  right: 18px;
  top: 84px;
  z-index: 9999;
}

.mwe-character-card.is-visible {
  display: block;
}

.mwe-character-card strong {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 820px) {
  .mwe-xvemg-hero {
    grid-template-columns: 1fr;
  }

  .mwe-xvemg-hero h1 {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  .mwe-character {
    height: 34px;
    width: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .mwe-button,
  .mwe-form button {
    transition: none;
  }

  .mwe-character {
    display: none;
  }
}
