/* ============================================================
   MendingHub — Landing Page CSS
   Prefix: .mh-
   Colors: Cyan #00B3DD | Magenta #DE078B | Dark #101737
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --mh-cyan:        #00B3DD;
  --mh-cyan-dark:   #0099be;
  --mh-magenta:     #DE078B;
  --mh-magenta-dark:#b5006e;
  --mh-dark:        #101737;
  --mh-dark-2:      #080d20;
  --mh-dark-3:      #1a0a30;
  --mh-body:        #4a5568;
  --mh-light:       #f7f9fc;
  --mh-border:      #e8ecf0;
  --mh-white:       #ffffff;
  --mh-nav-h:       72px;
  --mh-radius:      10px;
  --mh-radius-lg:   16px;
  --mh-shadow:      0 4px 24px rgba(0,0,0,.08);
  --mh-shadow-lg:   0 8px 40px rgba(0,0,0,.13);
  --mh-transition:  .3s cubic-bezier(.4,0,.2,1);
  --mh-font-body:   'Roboto', sans-serif;
  --mh-font-script: 'Dancing Script', cursive;
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.mh-page {
  font-family: var(--mh-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--mh-body);
  background: var(--mh-white);
  margin: 0;
  padding: 0;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Typography helpers ─────────────────────────────────────── */
.mh-script { font-family: var(--mh-font-script); font-weight: 600; }
.mh-cyan    { color: var(--mh-cyan); }
.mh-magenta { color: var(--mh-magenta); }

.mh-section-label {
  display: inline-block;
  font-family: var(--mh-font-script);
  font-size: 1.1rem;
  color: var(--mh-magenta);
  margin-bottom: .35rem;
  letter-spacing: .02em;
}

.mh-section-title {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--mh-dark);
  line-height: 1.25;
  margin-bottom: .6rem;
}

.mh-section-lead {
  font-size: 1.05rem;
  color: var(--mh-body);
  max-width: 600px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.mh-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.6rem;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--mh-transition);
  white-space: nowrap;
  text-decoration: none;
}

.mh-btn-cyan {
  background: var(--mh-cyan);
  color: var(--mh-white);
  border-color: var(--mh-cyan);
}
.mh-btn-cyan:hover {
  background: var(--mh-cyan-dark);
  border-color: var(--mh-cyan-dark);
  color: var(--mh-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,179,221,.35);
}

.mh-btn-magenta {
  background: var(--mh-magenta);
  color: var(--mh-white);
  border-color: var(--mh-magenta);
}
.mh-btn-magenta:hover {
  background: var(--mh-magenta-dark);
  border-color: var(--mh-magenta-dark);
  color: var(--mh-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222,7,139,.35);
}

.mh-btn-outline-light {
  background: transparent;
  color: var(--mh-white);
  border-color: rgba(255,255,255,.55);
}
.mh-btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--mh-white);
  color: var(--mh-white);
}

.mh-btn-outline-cyan {
  background: transparent;
  color: var(--mh-cyan);
  border-color: var(--mh-cyan);
}
.mh-btn-outline-cyan:hover {
  background: var(--mh-cyan);
  color: var(--mh-white);
}

/* ── Navigation ─────────────────────────────────────────────── */
.mh-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--mh-nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: transparent;
  transition: background var(--mh-transition), box-shadow var(--mh-transition);
}

.mh-nav::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mh-cyan), var(--mh-magenta));
  opacity: 0;
  transition: opacity var(--mh-transition);
}

.mh-nav.mh-nav-scrolled {
  background: var(--mh-dark-2);
  box-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.mh-nav.mh-nav-scrolled::before { opacity: 1; }

.mh-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.mh-brand {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--mh-white);
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.mh-brand span { color: var(--mh-cyan); }

.mh-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mh-nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  transition: color var(--mh-transition);
}
.mh-nav-links a:hover { color: var(--mh-cyan); }

.mh-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mh-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mh-white);
  border-radius: 2px;
  transition: var(--mh-transition);
}

/* ── Nav mobile ─────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .mh-nav-toggle { display: flex; }
  .mh-nav-links {
    position: fixed;
    top: var(--mh-nav-h);
    left: 0; right: 0;
    background: var(--mh-dark-2);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .35s ease, opacity .35s ease;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .mh-nav-open .mh-nav-links {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }
  .mh-nav-links li { width: 100%; }
  .mh-nav-links a {
    display: block;
    padding: .85rem 2rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
}

/* ── Hero ───────────────────────────────────────────────────── */
.mh-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--mh-nav-h) + 3rem) 1.5rem 4rem;
  background: linear-gradient(135deg, #080d20 0%, #101737 60%, #1a0a30 100%);
  position: relative;
  overflow: hidden;
}

.mh-hero::before, .mh-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.mh-hero::before {
  width: 700px; height: 700px;
  border: 1px solid rgba(0,179,221,.08);
  top: -200px; right: -200px;
  animation: mhSpin 40s linear infinite;
}
.mh-hero::after {
  width: 500px; height: 500px;
  border: 1px solid rgba(222,7,139,.08);
  bottom: -150px; left: -150px;
  animation: mhSpin 55s linear infinite reverse;
}
@keyframes mhSpin { to { transform: rotate(360deg); } }

.mh-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: .18;
}
.mh-hero-orb-1 {
  width: 440px; height: 440px;
  background: var(--mh-cyan);
  top: 5%; right: 5%;
}
.mh-hero-orb-2 {
  width: 320px; height: 320px;
  background: var(--mh-magenta);
  bottom: 10%; left: 5%;
}

.mh-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.mh-hero-badge {
  display: inline-block;
  padding: .4rem 1.1rem;
  border-radius: 50px;
  background: rgba(0,179,221,.12);
  border: 1px solid rgba(0,179,221,.3);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mh-cyan);
  margin-bottom: 1.5rem;
}

.mh-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--mh-white);
  line-height: 1.15;
  margin-bottom: 1.3rem;
}
.mh-hero-title .mh-highlight {
  color: transparent;
  background: linear-gradient(90deg, var(--mh-cyan), var(--mh-magenta));
  -webkit-background-clip: text;
  background-clip: text;
}

.mh-hero-lead {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,.72);
  max-width: 640px;
  margin: 0 auto 2.2rem;
  line-height: 1.75;
}

.mh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-bottom: 2.8rem;
}

/* Trust strip */
.mh-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.4rem;
  padding-top: .5rem;
}
.mh-trust-item {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.mh-trust-item .mh-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,179,221,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .65rem;
  color: var(--mh-cyan);
}

/* ── Scroll-reveal ──────────────────────────────────────────── */
.mh-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.mh-reveal.mh-in { opacity: 1; transform: none; }

/* ── Stats Bar ──────────────────────────────────────────────── */
.mh-stats-bar {
  background: var(--mh-dark);
  padding: 3rem 0;
}
.mh-stat-item {
  text-align: center;
  padding: .5rem 1rem;
}
.mh-stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--mh-white);
  line-height: 1;
  display: block;
}
.mh-stat-num span.mh-stat-suffix { color: var(--mh-cyan); }
.mh-stat-label {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  margin-top: .35rem;
  display: block;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mh-stat-divider {
  width: 1px; height: 50px;
  background: rgba(255,255,255,.1);
  align-self: center;
}

/* ── Section common ─────────────────────────────────────────── */
.mh-section     { padding: 5rem 0; }
.mh-section-alt { background: var(--mh-light); }
.mh-section-dark { background: var(--mh-dark); }

/* ── Demo Cards ─────────────────────────────────────────────── */
.mh-demos-section { padding: 5.5rem 0; }
.mh-demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.mh-demo-card {
  border-radius: var(--mh-radius-lg);
  overflow: hidden;
  background: var(--mh-white);
  box-shadow: var(--mh-shadow);
  border: 2px solid var(--mh-border);
  transition: var(--mh-transition);
  display: flex;
  flex-direction: column;
}
.mh-demo-card:hover {
  border-color: var(--mh-cyan);
  box-shadow: var(--mh-shadow-lg), 0 0 0 1px var(--mh-cyan);
  transform: translateY(-5px);
}
.mh-demo-thumb {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
  background: var(--mh-border);
}
.mh-demo-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 8s ease;
  transform-origin: top center;
}
.mh-demo-card:hover .mh-demo-thumb img {
  transform: translateY(calc(-100% + 400px));
}
.mh-demo-badge {
  position: absolute;
  top: .85rem; left: .85rem;
  background: var(--mh-magenta);
  color: var(--mh-white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .75rem;
  border-radius: 50px;
}
.mh-demo-body {
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}
.mh-demo-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--mh-dark);
}
.mh-demo-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--mh-cyan);
  transition: color var(--mh-transition);
  white-space: nowrap;
}
.mh-demo-link:hover { color: var(--mh-magenta); }

/* ── Preview Gallery ────────────────────────────────────────── */
.mh-preview-section { padding: 5rem 0; }
.mh-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.mh-preview-card {
  border-radius: var(--mh-radius);
  overflow: hidden;
  background: var(--mh-white);
  box-shadow: var(--mh-shadow);
  border: 1.5px solid var(--mh-border);
  transition: var(--mh-transition);
}
.mh-preview-card:hover {
  border-color: var(--mh-cyan);
  box-shadow: var(--mh-shadow-lg);
  transform: translateY(-4px);
}
.mh-preview-thumb {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--mh-border);
  position: relative;
}
.mh-preview-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 7s ease;
  transform-origin: top center;
}
.mh-preview-card:hover .mh-preview-thumb img {
  transform: translateY(calc(-100% + 240px));
}
.mh-preview-label {
  padding: .75rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--mh-dark);
  border-top: 1px solid var(--mh-border);
  text-align: center;
}

/* ── Page Categories ────────────────────────────────────────── */
.mh-cats-section {
  padding: 5rem 0;
  background: var(--mh-dark);
}
.mh-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.mh-cat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--mh-radius);
  padding: 1.5rem;
  transition: var(--mh-transition);
}
.mh-cat-card:hover {
  background: rgba(0,179,221,.07);
  border-color: rgba(0,179,221,.35);
  transform: translateY(-3px);
}
.mh-cat-header {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1rem;
}
.mh-cat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.mh-cat-icon-cyan    { background: rgba(0,179,221,.18); color: var(--mh-cyan); }
.mh-cat-icon-magenta { background: rgba(222,7,139,.18); color: var(--mh-magenta); }
.mh-cat-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mh-white);
}
.mh-cat-pages {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.mh-cat-pages li {
  font-size: .88rem;
  color: rgba(255,255,255,.58);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.mh-cat-pages li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mh-cyan);
  flex-shrink: 0;
  opacity: .7;
}

/* ── Features ───────────────────────────────────────────────── */
.mh-features-section { padding: 5.5rem 0; }
.mh-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.mh-feature-card {
  background: var(--mh-white);
  border: 1.5px solid var(--mh-border);
  border-radius: var(--mh-radius);
  padding: 1.6rem;
  transition: var(--mh-transition);
  position: relative;
  overflow: hidden;
}
.mh-feature-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mh-cyan), var(--mh-magenta));
  opacity: 0;
  transition: opacity var(--mh-transition);
}
.mh-feature-card:hover {
  border-color: var(--mh-cyan);
  box-shadow: var(--mh-shadow);
  transform: translateY(-3px);
}
.mh-feature-card:hover::before { opacity: 1; }
.mh-feature-num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--mh-cyan);
  margin-bottom: .8rem;
  opacity: .7;
}
.mh-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mh-dark);
  margin-bottom: .5rem;
}
.mh-feature-desc {
  font-size: .9rem;
  color: var(--mh-body);
  line-height: 1.65;
  margin: 0;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.mh-faq-section {
  padding: 5rem 0;
  background: var(--mh-light);
}
.mh-faq-list {
  max-width: 780px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.mh-faq-item {
  background: var(--mh-white);
  border: 1.5px solid var(--mh-border);
  border-radius: var(--mh-radius);
  overflow: hidden;
  transition: border-color var(--mh-transition), box-shadow var(--mh-transition);
}
.mh-faq-item.mh-open {
  border-color: var(--mh-cyan);
  box-shadow: 0 4px 16px rgba(0,179,221,.12);
}
.mh-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-size: .97rem;
  font-weight: 600;
  color: var(--mh-dark);
  transition: color var(--mh-transition);
}
.mh-faq-q:hover { color: var(--mh-cyan); }
.mh-faq-item.mh-open .mh-faq-q { color: var(--mh-cyan); }
.mh-faq-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--mh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .8rem;
  color: var(--mh-body);
  transition: var(--mh-transition);
}
.mh-faq-item.mh-open .mh-faq-icon {
  background: var(--mh-cyan);
  border-color: var(--mh-cyan);
  color: var(--mh-white);
  transform: rotate(45deg);
}
.mh-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.mh-faq-a-inner {
  padding: .9rem 1.4rem 1.2rem;
  font-size: .93rem;
  color: var(--mh-body);
  line-height: 1.7;
  border-top: 1px solid var(--mh-border);
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.mh-cta-section {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, #080d20 0%, #101737 60%, #1a0a30 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.mh-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0,179,221,.1) 0%, transparent 70%);
  pointer-events: none;
}
.mh-cta-content { position: relative; z-index: 1; }
.mh-cta-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--mh-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.mh-cta-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.68);
  max-width: 540px;
  margin: 0 auto 2rem;
}
.mh-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.mh-footer {
  background: var(--mh-dark-2);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.07);
}
.mh-footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mh-white);
  margin-bottom: .4rem;
}
.mh-footer-brand span { color: var(--mh-cyan); }
.mh-footer-copy {
  font-size: .85rem;
  color: rgba(255,255,255,.42);
}
.mh-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: .6rem 0 0;
  padding: 0;
}
.mh-footer-links a {
  font-size: .83rem;
  color: rgba(255,255,255,.45);
  transition: color var(--mh-transition);
}
.mh-footer-links a:hover { color: var(--mh-cyan); }

/* ── Utility ────────────────────────────────────────────────── */
.mh-text-center { text-align: center; }
.mh-mx-auto     { margin-left: auto; margin-right: auto; }
.mh-mb-0        { margin-bottom: 0; }
.mh-mt-2        { margin-top: .5rem; }
.mh-mt-3        { margin-top: 1rem; }
.mh-mt-4        { margin-top: 1.5rem; }

/* ── Reduced-motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .mh-demo-thumb img,
  .mh-preview-thumb img { transition: none !important; transform: none !important; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .mh-section,
  .mh-demos-section,
  .mh-preview-section,
  .mh-cats-section,
  .mh-features-section,
  .mh-faq-section,
  .mh-cta-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .mh-stat-divider { display: none; }
  .mh-demos-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 575.98px) {
  .mh-hero { padding-bottom: 3rem; }
  .mh-hero-title { font-size: 2rem; }
  .mh-hero-actions .mh-btn { width: 100%; justify-content: center; }
  .mh-demos-grid, .mh-features-grid { grid-template-columns: 1fr; }
  .mh-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .mh-cats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 375px) {
  .mh-preview-grid { grid-template-columns: 1fr; }
}
