:root {
  --mh-ink: #12141A;
  --mh-paper: #F7F4EF;
  --mh-line: #D9D2C5;
  --mh-mute: #5C635C;
  --mh-accent: #1FA37A;
  --mh-accent-dark: #17815F;
  --mh-accent-soft: #E6F6F0;
  --mh-radius: 2px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background-color: var(--mh-paper);
  color: var(--mh-ink);
}

body {
  background-image:
    linear-gradient(var(--mh-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mh-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

a { color: inherit; text-decoration: none; }

.mh-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mh-nav {
  border-bottom: 1px solid var(--mh-line);
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.mh-brand {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
}

.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--mh-ink);
  background: var(--mh-ink);
  color: var(--mh-paper);
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--mh-radius);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.mh-btn:hover { background: #000; }

.mh-btn-accent {
  background: var(--mh-accent);
  border-color: var(--mh-accent);
  color: #fff;
}

.mh-btn-accent:hover {
  background: var(--mh-accent-dark);
  border-color: var(--mh-accent-dark);
}

.mh-btn-ghost {
  background: transparent;
  color: var(--mh-ink);
}

.mh-btn-ghost:hover {
  background: var(--mh-ink);
  color: var(--mh-paper);
}

.mh-link {
  position: relative;
  font-weight: 500;
}

.mh-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.mh-link:hover::after { transform: scaleX(1); }

.mh-hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--mh-line);
  position: relative;
  overflow: hidden;
}

@media (min-width: 960px) {
  .mh-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

.mh-hero-copy {
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  background: var(--mh-paper);
  position: relative;
  z-index: 1;
}

.mh-hero-brand {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-size: clamp(3rem, 8vw, 5.25rem);
  color: var(--mh-ink);
  margin: 0;
}

.mh-hero-headline {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  margin: 0;
  max-width: 18ch;
}

.mh-hero-lede {
  color: var(--mh-mute);
  max-width: 34rem;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.55;
}

.mh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.mh-hero-visual {
  min-height: 280px;
  background-color: #1a1f1c;
  background-image:
    linear-gradient(160deg, rgba(31, 163, 122, 0.18), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Crect fill='%23222a26' width='80' height='80'/%3E%3Crect x='80' y='80' fill='%23222a26' width='80' height='80'/%3E%3Crect x='40' y='40' fill='%231FA37A' width='16' height='16'/%3E%3Crect x='112' y='24' fill='%23c9c2b4' width='8' height='8'/%3E%3Crect x='20' y='100' fill='%231FA37A' width='8' height='8'/%3E%3Crect x='96' y='112' fill='%231FA37A' width='12' height='12'/%3E%3Crect x='8' y='8' fill='%23c9c2b4' width='6' height='6'/%3E%3C/svg%3E");
  background-size: auto, 160px 160px;
  border-left: 1px solid var(--mh-line);
  position: relative;
  overflow: hidden;
  animation: mhHeroDrift 48s linear infinite;
}

@media (max-width: 959px) {
  .mh-hero-visual {
    min-height: 220px;
    border-left: 0;
    border-top: 1px solid var(--mh-line);
  }
}

@keyframes mhHeroDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 160px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .mh-hero-visual { animation: none; }
  .mh-reveal { animation: none; opacity: 1; transform: none; }
}

.mh-display {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.mh-section {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--mh-line);
  background: var(--mh-paper);
}

.mh-section h2 {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.mh-section-lede {
  color: var(--mh-mute);
  max-width: 40rem;
  margin: 0 0 2rem;
  line-height: 1.6;
  font-size: 1.02rem;
}

.mh-section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.mh-home-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 3rem;
  counter-reset: mh-step;
}

@media (min-width: 800px) {
  .mh-home-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mh-home-step {
  counter-increment: mh-step;
}

.mh-home-step::before {
  content: counter(mh-step, decimal-leading-zero);
  display: block;
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--mh-accent);
  margin-bottom: 0.65rem;
}

.mh-home-step h3 {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
}

.mh-home-step p {
  margin: 0;
  color: var(--mh-mute);
  line-height: 1.55;
}

.mh-home-stack {
  display: grid;
  border-top: 1px solid var(--mh-line);
}

.mh-home-stack-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--mh-line);
}

@media (min-width: 720px) {
  .mh-home-stack-row {
    grid-template-columns: minmax(8rem, 12rem) 1fr;
    align-items: baseline;
  }
}

.mh-home-stack-row dt {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.mh-home-stack-row dd {
  margin: 0;
  color: var(--mh-mute);
  line-height: 1.55;
}

.mh-home-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .mh-home-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
  }
}

.mh-home-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.mh-home-feature-list li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--mh-line);
}

.mh-home-feature-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.mh-home-feature-list strong {
  display: block;
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.mh-home-feature-list span {
  color: var(--mh-mute);
  line-height: 1.55;
  display: block;
}

.mh-home-destinations {
  display: grid;
  gap: 0.75rem;
}

.mh-home-dest {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--mh-line);
  background: #fffefb;
  border-radius: var(--mh-radius);
  transition: border-color 160ms ease, background 160ms ease;
}

.mh-home-dest:hover {
  border-color: var(--mh-accent);
  background: var(--mh-accent-soft);
}

.mh-home-dest strong {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.mh-home-dest span {
  color: var(--mh-mute);
  line-height: 1.5;
  font-size: 0.95rem;
}

.mh-home-close {
  background: #1a1f1c;
  color: #f7f4ef;
  border-bottom: 0;
}

.mh-home-close h2 {
  color: #f7f4ef;
}

.mh-home-close .mh-section-lede {
  color: #c9c2b4;
}

.mh-home-close .mh-btn-ghost {
  color: #f7f4ef;
  border-color: #c9c2b4;
}

.mh-home-close .mh-btn-ghost:hover {
  background: #f7f4ef;
  color: #1a1f1c;
  border-color: #f7f4ef;
}

.mh-section-foot {
  margin-top: 1.75rem;
}

.mh-reveal {
  animation: mhReveal 420ms ease both;
}

.mh-reveal-delay-1 { animation-delay: 60ms; }
.mh-reveal-delay-2 { animation-delay: 120ms; }
.mh-reveal-delay-3 { animation-delay: 180ms; }

@keyframes mhReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.mh-muted { color: var(--mh-mute); }

.mh-table {
  width: 100%;
  border-collapse: collapse;
}

.mh-table th,
.mh-table td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--mh-line);
  font-size: 0.95rem;
}

.mh-table th {
  font-weight: 600;
  color: var(--mh-mute);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mh-panel {
  border: 1px solid var(--mh-line);
  background: #fffefb;
  border-radius: var(--mh-radius);
}

.mh-input,
.mh-select,
.mh-textarea {
  width: 100%;
  border: 1px solid var(--mh-line);
  background: #fff;
  color: var(--mh-ink);
  padding: 0.7rem 0.8rem;
  font: inherit;
  border-radius: var(--mh-radius);
}

.mh-input:focus,
.mh-select:focus,
.mh-textarea:focus {
  outline: 2px solid var(--mh-accent);
  outline-offset: 1px;
}

.mh-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--mh-mute);
}

.mh-app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .mh-app { grid-template-columns: 1fr; }
  .mh-app-nav { border-bottom: 1px solid var(--mh-line); }
}

.mh-app-nav {
  border-right: 1px solid var(--mh-line);
  background: #fffefb;
  padding: 1.25rem 1rem;
}

.mh-app-nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.15rem;
  border-radius: var(--mh-radius);
  color: var(--mh-mute);
  font-weight: 500;
}

.mh-app-nav a.active,
.mh-app-nav a:hover {
  background: var(--mh-accent-soft);
  color: var(--mh-accent-dark);
}

.mh-app-main { padding: 1.5rem clamp(1rem, 3vw, 2rem); }

.mh-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--mh-line);
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.mh-tabs button {
  border: 0;
  background: transparent;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-weight: 600;
  color: var(--mh-mute);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.mh-tabs button.active {
  color: var(--mh-ink);
  border-bottom-color: var(--mh-accent);
}

.mh-console {
  background: #12141A;
  color: #d7ebe2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  min-height: 360px;
  padding: 1rem;
  border-radius: var(--mh-radius);
  overflow: auto;
  white-space: pre-wrap;
}

.mh-toast-wrap {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mh-toast {
  background: var(--mh-ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--mh-radius);
  min-width: 220px;
  font-size: 0.9rem;
}

.mh-toast.error { background: #8b2e2e; }

.mh-fade-in {
  animation: mhFade 220ms ease;
}

@keyframes mhFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.mh-plan-option {
  border: 1px solid var(--mh-line);
  padding: 1rem;
  cursor: pointer;
  background: #fff;
  transition: border-color 150ms ease, background 150ms ease;
}

.mh-plan-option:hover,
.mh-plan-option.selected {
  border-color: var(--mh-accent);
  background: var(--mh-accent-soft);
}

.mh-badge {
  display: inline-block;
  border: 1px solid var(--mh-line);
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Catalog configurator & marketing --- */

.mh-catalog-hero {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--mh-line);
  min-height: min(70vh, 560px);
}

@media (min-width: 960px) {
  .mh-catalog-hero {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.mh-catalog-hero-copy {
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.mh-catalog-hero-copy h1 {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin: 0;
}

.mh-catalog-hero-media {
  min-height: 220px;
  background: #1a1f1c center/cover no-repeat;
  border-left: 1px solid var(--mh-line);
}

@media (max-width: 959px) {
  .mh-catalog-hero-media {
    border-left: 0;
    border-top: 1px solid var(--mh-line);
  }
}

.mh-configurator {
  display: grid;
  gap: 1.5rem;
  max-width: 44rem;
}

.mh-tier-switch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .mh-tier-switch {
    grid-template-columns: 1fr 1fr;
  }
}

.mh-tier-switch button {
  text-align: left;
  border: 1px solid var(--mh-line);
  background: #fffefb;
  border-radius: var(--mh-radius);
  padding: 1rem 1.1rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 160ms ease, background 160ms ease;
}

.mh-tier-switch button strong {
  display: block;
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.mh-tier-switch button span {
  display: block;
  color: var(--mh-mute);
  font-size: 0.9rem;
  line-height: 1.45;
}

.mh-tier-switch button.active,
.mh-tier-switch button:hover {
  border-color: var(--mh-accent);
  background: var(--mh-accent-soft);
}

.mh-ram-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.mh-ram-slider-head label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--mh-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mh-ram-slider-head output {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.mh-ram-slider input[type="range"] {
  width: 100%;
  accent-color: var(--mh-accent);
  cursor: pointer;
}

.mh-ram-ticks {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.mh-ram-ticks button {
  border: 0;
  background: transparent;
  color: var(--mh-mute);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem;
}

.mh-ram-ticks button.active {
  color: var(--mh-accent-dark);
}

.mh-plan-summary {
  border: 1px solid var(--mh-line);
  background: #fffefb;
  border-radius: var(--mh-radius);
  padding: 1.35rem;
}

.mh-plan-summary-top {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .mh-plan-summary-top {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.mh-plan-summary-name {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.mh-plan-summary-price {
  display: grid;
  gap: 0.5rem;
}

.mh-cycle-switch {
  display: inline-flex;
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-radius);
  overflow: hidden;
}

.mh-cycle-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  color: var(--mh-mute);
}

.mh-cycle-switch button.active {
  background: var(--mh-ink);
  color: var(--mh-paper);
}

.mh-price-figure {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.mh-price-figure span {
  display: inline-block;
  margin-left: 0.25rem;
  font-family: IBM Plex Sans, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mh-mute);
}

.mh-price-save {
  color: var(--mh-accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.mh-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--mh-line);
}

@media (min-width: 600px) {
  .mh-spec-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mh-spec-grid dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mh-mute);
  margin: 0 0 0.2rem;
}

.mh-spec-grid dd {
  margin: 0;
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mh-configurator-cta {
  margin-top: 1.25rem;
  width: 100%;
}

.mh-game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .mh-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mh-game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mh-line);
  background: #fffefb;
  border-radius: var(--mh-radius);
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease;
}

.mh-game-card:hover {
  border-color: var(--mh-accent);
  background: var(--mh-accent-soft);
}

.mh-game-card img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #1a1f1c;
}

.mh-game-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: grid;
  gap: 0.45rem;
}

.mh-game-card-body strong {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.mh-game-card-body p {
  margin: 0;
  color: var(--mh-mute);
  line-height: 1.5;
  font-size: 0.95rem;
}

.mh-game-card-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mh-accent-dark);
}

.mh-faq {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
}

.mh-faq details {
  border-top: 1px solid var(--mh-line);
  padding-top: 1rem;
}

.mh-faq summary {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.02em;
}

.mh-faq p {
  margin: 0.55rem 0 0;
  color: var(--mh-mute);
  line-height: 1.55;
}

.mh-software-list {
  display: grid;
  border-top: 1px solid var(--mh-line);
}

.mh-software-list > div {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--mh-line);
}

@media (min-width: 720px) {
  .mh-software-list > div {
    grid-template-columns: minmax(8rem, 11rem) 1fr;
    align-items: baseline;
  }
}

.mh-software-list strong {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mh-software-list span {
  color: var(--mh-mute);
  line-height: 1.55;
}

.mh-order-form {
  padding: 1.35rem;
}

.mh-order-form-title {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.mh-locked-spec {
  border: 1px solid var(--mh-line);
  background: #fff;
  padding: 0.7rem 0.8rem;
  border-radius: var(--mh-radius);
  font-weight: 600;
  text-transform: capitalize;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
