:root {
  --mm-brand: #00a9e8;
  --mm-brand-soft: rgba(0, 169, 232, 0.12);

  /* Light theme base */
  --mm-bg: #f5f7fb;
  --mm-bg-soft: #ffffff;
  --mm-bg-alt: #eef1f6;

  --mm-border: #d4dbe7;
  --mm-text: #141a2a;
  --mm-muted: #6b7280;
  --mm-danger: #e63946;
  --mm-radius: 14px;
  --mm-transition: 180ms ease-out;

  /* Your gradient as a reusable token */
  --mm-field-gradient: radial-gradient(
    circle,
    rgba(95, 115, 104, 1) 0%,
    rgba(73, 115, 113, 1) 33%,
    rgba(66, 97, 117, 1) 72%,
    rgba(89, 107, 96, 1) 100%
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #ffffff 0, #f4f7fb 40%, #e4ebf5 100%);
  color: var(--mm-text);
}

/* Header */

.mm-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.94),
    rgba(255, 255, 255, 0.9)
  );
  border-bottom: 1px solid rgba(20, 26, 42, 0.06);
}

.mm-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mm-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--mm-text);
}

.mm-logo-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #e0f7ff 0, #00a9e8 40%, #004986 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #021118;
}

.mm-logo-text {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.mm-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mm-nav-link {
  color: var(--mm-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
}

.mm-nav-link:hover {
  color: var(--mm-text);
}

/* Buttons */

.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  color: var(--mm-text);
  transition:
    background var(--mm-transition),
    transform var(--mm-transition),
    box-shadow var(--mm-transition),
    border-color var(--mm-transition),
    color var(--mm-transition);
}

.mm-btn-primary {
  background: linear-gradient(135deg, #00a9e8, #4fd3ff);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 169, 232, 0.25);
}

.mm-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 169, 232, 0.35);
}

.mm-btn-outline {
  border-color: var(--mm-brand);
  color: var(--mm-brand);
  background: #ffffff;
}

.mm-btn-outline:hover {
  background: var(--mm-brand-soft);
}

.mm-btn-ghost {
  border-color: transparent;
  color: var(--mm-muted);
  background: transparent;
}

.mm-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--mm-text);
}

.mm-btn-danger {
  background: var(--mm-danger);
  color: white;
}

.mm-btn-lg {
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
}

.mm-btn-full {
  width: 100%;
}

/* Layout */

.mm-main {
  max-width: 1080px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}

.mm-main-narrow {
  max-width: 900px;
}

.mm-section {
  margin-bottom: 2.5rem;
}

.mm-section-dark {
  /* Light “field” strip using your gradient */
  background: var(--mm-field-gradient);
  padding: 2rem 1.5rem;
  border-radius: 24px;
  color: #f9fafb;
}

.mm-section-dark h2,
.mm-section-dark h3 {
  color: #f9fafb;
}

.mm-section-dark .mm-feature p {
  color: rgba(249, 250, 251, 0.92);
}

.mm-section-inner {
  max-width: 100%;
}

/* Hero */

.mm-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.mm-hero-content h1 {
  font-size: clamp(2.2rem, 3.1vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.mm-hero-sub {
  color: var(--mm-muted);
  max-width: 30rem;
  font-size: 0.98rem;
}

.mm-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0.75rem;
}

.mm-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--mm-muted);
}

.mm-hero-badges span {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.9);
}

/* Hero media uses your gradient more heavily */

.mm-hero-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.mm-hero-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--mm-field-gradient);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.4);
  position: relative;
}

.mm-hero-card img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
}

.mm-hero-card-alt {
  transform: translateY(-0.4rem);
  opacity: 0.97;
}

.mm-hero-card-label {
  position: absolute;
  bottom: 0.65rem;
  left: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.55);
  color: #f9fafb;
}

/* Grid utilities */

.mm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.mm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Cards & features */

.mm-card {
  border-radius: var(--mm-radius);
  border: 1px solid var(--mm-border);
  background: var(--mm-bg-soft);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.mm-card-highlight {
  border-color: rgba(0, 169, 232, 0.8);
  box-shadow: 0 16px 40px rgba(0, 169, 232, 0.18);
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(224, 248, 255, 0.9) 40%,
    rgba(235, 252, 255, 0.9) 100%
  );
}

.mm-feature h3 {
  margin: 0 0 0.4rem;
}

.mm-feature p {
  margin: 0;
  color: var(--mm-muted);
}

/* Pricing */

.mm-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 2rem;
  align-items: flex-start;
}

.mm-pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.mm-price {
  font-size: 2rem;
  margin: 0.2rem 0;
}

.mm-price span {
  font-size: 0.9rem;
  color: var(--mm-muted);
}

.mm-price-note {
  margin-top: 0;
  font-size: 0.85rem;
  color: var(--mm-muted);
}

.mm-list {
  list-style: none;
  padding-left: 0;
  margin: 0.8rem 0 1rem;
  color: var(--mm-muted);
}

.mm-list li::before {
  content: "• ";
  color: var(--mm-brand);
}

/* Meta row */

.mm-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 2rem;
}

.mm-meta-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.mm-meta-label {
  display: block;
  font-size: 0.8rem;
  color: var(--mm-muted);
}

.mm-meta-value {
  font-size: 1.6rem;
  font-weight: 700;
}

/* Video placeholder */

.mm-video-frame {
  border-radius: 24px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  padding: 0.5rem;
  background: #ffffff;
}

.mm-video-placeholder {
  border-radius: 18px;
  background: var(--mm-field-gradient);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-size: 0.9rem;
}

/* Auth */

.mm-auth-body {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), rgba(244, 247, 251, 1)),
    var(--mm-field-gradient);
  background-blend-mode: soft-light;
}

.mm-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.8rem;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.mm-auth-card h1 {
  margin: 0 0 0.4rem;
}

.mm-auth-sub {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--mm-muted);
}

.mm-auth-footer {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--mm-muted);
}

.mm-auth-footer a {
  color: var(--mm-brand);
}

/* Forms */

.mm-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mm-form-inline {
  display: flex;
  gap: 0.5rem;
}

.mm-form-vertical {
  margin-bottom: 0.6rem;
}

.mm-field-row {
  display: flex;
  gap: 0.75rem;
}

.mm-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mm-field label {
  font-size: 0.8rem;
  color: var(--mm-muted);
}

.mm-field input,
.mm-field select {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  color: var(--mm-text);
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  outline: none;
}

.mm-field input:focus,
.mm-field select:focus {
  border-color: var(--mm-brand);
  box-shadow: 0 0 0 1px rgba(0, 169, 232, 0.5);
}

.mm-inline-form {
  margin: 0;
}

.mm-small {
  font-size: 0.8rem;
  color: var(--mm-muted);
}

/* Table */

.mm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.mm-table th,
.mm-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.mm-table th {
  text-align: left;
  font-weight: 500;
  color: var(--mm-muted);
}

/* Alerts */

.mm-alert {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.mm-alert-error {
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.4);
  color: #7f1d1d;
}

.mm-alert-success {
  background: rgba(0, 169, 232, 0.08);
  border: 1px solid rgba(0, 169, 232, 0.5);
  color: #055160;
}

/* Footer */

.mm-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--mm-muted);
  background: #f9fafb;
}

/* Responsiveness */

@media (max-width: 900px) {
  .mm-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .mm-hero-content {
    order: 1;
  }

  .mm-hero-media {
    order: 2;
    margin-top: 1.5rem;
    padding-inline: 1.25rem; /* extra gap left/right around hero images */
  }

  .mm-pricing {
    grid-template-columns: minmax(0, 1fr);
  }
  .mm-pricing-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .mm-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .mm-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .mm-meta-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .mm-header-inner {
    padding-inline: 1rem;
  }
  .mm-main {
    padding-inline: 1rem;
  }

  /* New: stack feature sections vertically on mobile */
  .mm-feature-split,
  .mm-feature-split-reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .mm-feature-media {
    margin-top: 1.25rem;
  }
}

@media (min-width: 901px) {
  .mm-hero-content {
    position: relative;
    z-index: 1;
  }

  .mm-hero-content::before {
    content: "";
    position: absolute;
    inset: -16px -32px -20px -16px; /* tweak to taste */
    border-radius: 32px;
    background: radial-gradient(
      circle at top left,
      rgba(0, 169, 232, 0.26) 0%,
      rgba(224, 248, 255, 0.9) 40%,
      rgba(255, 255, 255, 0) 80%
    );
    opacity: 0.9;
    z-index: -1;
    pointer-events: none;
  }
}


.mm-logo-icon img{
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
}

.mm-section-soft {
  background: linear-gradient(
    135deg,
    rgba(224, 248, 255, 0.9) 0%,
    rgba(235, 252, 255, 0.95) 40%,
    rgba(255, 255, 255, 1) 100%
  );
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

/* Split feature layout (text + image) */

.mm-feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
}

.mm-feature-split-reverse {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
}

.mm-feature-media {
  display: flex;
  justify-content: center;
}

.mm-feature-media-card {
  width: 100%;
  max-width: 440px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--mm-field-gradient);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.mm-feature-media-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* ===== Responsive Header / Nav (Mobile-first) ===== */
.mm-nav-toggle {
  display: none; /* hidden on desktop */
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--mm-border);
  background: var(--mm-bg-soft);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--mm-transition);
}
.mm-nav-toggle:active {
  transform: scale(0.98);
}

/* Burger icon */
.mm-burger {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--mm-text);
}
.mm-burger::before,
.mm-burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--mm-text);
  transition: transform var(--mm-transition), opacity var(--mm-transition);
}
.mm-burger::before {
  top: -6px;
}
.mm-burger::after {
  top: 6px;
}

/* Mobile nav panel (hidden by default) */
/* --- Responsive Header --- */

/* Hide the nav only on mobile */
@media (max-width: 900px) {
  .mm-nav[data-collapsed="true"] {
    display: none;
  }

  .mm-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--mm-border);
    background: var(--mm-bg-soft);
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--mm-transition);
  }

  .mm-nav {
    position: absolute;
    right: 1rem;
    left: 1rem;
    top: calc(100% + 0.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid rgba(20, 26, 42, 0.08);
    border-radius: var(--mm-radius);
    background: var(--mm-bg-soft);
    box-shadow: 0 10px 30px rgba(2, 17, 24, 0.12);
    z-index: 20;
  }

  .mm-nav-link,
  .mm-nav .mm-btn,
  .mm-inline-form .mm-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
  }

  .mm-inline-form {
    width: 100%;
  }

  .mm-header-inner {
    position: relative;
  }
}

/* Desktop: nav is always visible and toggle hidden */
@media (min-width: 901px) {
  .mm-nav-toggle {
    display: none;
  }

  .mm-nav {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

/* Burger icon and animation */
.mm-burger {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--mm-text);
}
.mm-burger::before,
.mm-burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--mm-text);
  transition: transform var(--mm-transition), opacity var(--mm-transition);
}
.mm-burger::before {
  top: -6px;
}
.mm-burger::after {
  top: 6px;
}
.mm-nav-toggle[aria-expanded="true"] .mm-burger {
  background: transparent;
}
.mm-nav-toggle[aria-expanded="true"] .mm-burger::before {
  transform: translateY(6px) rotate(45deg);
}
.mm-nav-toggle[aria-expanded="true"] .mm-burger::after {
  transform: translateY(-6px) rotate(-45deg);
}


/* Tutorials page */

.mm-tutorial-hero {
  margin-top: 1.5rem;
}

.mm-tutorial-header {
  margin-bottom: 1.5rem;
}

.mm-page-title {
  font-size: clamp(2rem, 2.6vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}

.mm-page-sub {
  margin: 0;
  max-width: 34rem;
  font-size: 0.98rem;
  color: var(--mm-muted);
}

.mm-tutorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.mm-tutorial-card {
  padding: 1.4rem 1.4rem 1.6rem;
}

.mm-tutorial-card-header {
  margin-bottom: 0.9rem;
}

.mm-tutorial-title {
  margin: 0.1rem 0 0.25rem;
  font-size: 1.25rem;
}

.mm-tutorial-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--mm-muted);
}

/* Small pill tag above the title */
.mm-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 169, 232, 0.09);
  border: 1px solid rgba(0, 169, 232, 0.5);
  color: #036280;
}

/* Responsive video embed */
.mm-video-embed {
  margin-top: 0.9rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #000;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
}

.mm-video-embed-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.mm-video-embed-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Right-hand side card on desktop */
.mm-tutorial-aside-card h3 {
  margin: 0 0 0.4rem;
}

.mm-tutorial-aside-text {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--mm-muted);
}

.mm-tutorial-list {
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .mm-tutorial-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .mm-tutorial-aside {
    margin-top: 1rem;
  }

  .mm-tutorial-card {
    padding: 1.25rem 1.15rem 1.4rem;
  }
}

/* Footer layout + social icons */

.mm-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1rem 1.5rem 2rem;
  background: #f9fafb;
  font-size: 0.85rem;
  color: var(--mm-muted);
}

.mm-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mm-footer-copy {
  margin: 0;
}

.mm-footer-social {
  display: flex;
  gap: 0.65rem;
  color: var(--mm-brand);
}

.mm-footer-social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--mm-muted);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  text-decoration: none;
  font-size: 1.4rem; /* icon size */
  transition:
    background var(--mm-transition),
    border-color var(--mm-transition),
    color var(--mm-transition),
    transform var(--mm-transition),
    box-shadow var(--mm-transition);
}

.mm-footer-social-link:hover {
  color: var(--mm-brand);
  background: var(--mm-brand-soft);
  border-color: rgba(0, 169, 232, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.mm-footer-social-link ion-icon {
  font-size: 1.55rem;
}

@media (max-width: 640px) {
  .mm-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
