/* =========================================================
   MMS Landing — DAICEM
   Design system + page styles, convertis fidèlement depuis
   « MMS Landing.dc.html » (DesignCraft).
   ========================================================= */

/* ===========================================================================
   Color tokens — palette MMS (bleu électrique / orange / teal / slate)
   =========================================================================== */
:root {
  --blue-100: #BAE0FF;
  --blue-400: #0078D4;
  --blue-500: #0067C0;
  --blue-600: #015CAA;
  --blue-700: #00549E;
  --blue-fg-25: #6DA6E1;

  --orange-500: #FF8C00;
  --orange-600: #E67E00;

  --teal-500: #018574;
  --teal-600: #016B5E;

  --slate-700: #4A5459;

  --bg-200: #FFFFFF;
  --bg-100: #F4F4F4;
  --bg-0:   #E8E8E8;
  --bg--100:#DBDBDB;
  --bg--200:#D3D3D3;

  --fg-100: #242424;
  --fg-50:  #909090;
  --fg-25:  #B4B4B4;

  --line-100: #545454;
  --line-50:  #A0A0A0;
  --line-25:  #CACACA;

  --edit-bg-0:    #FFFFFF;
  --edit-bg--50:  #E8E8E8;
  --edit-bg--100: #D7ECFF;
  --edit-bg--200: #C4E3FD;
  --edit-fg-100:  #242424;
  --edit-fg-50:   #767676;

  --red-500:    #E74856;
  --green-500:  #018574;
  --info-500:   #0078D4;
  --yellow-500: #FF8C00;

  --surface-page:    var(--bg-100);
  --surface-card:    var(--bg-200);
  --surface-sunken:  var(--bg-0);
  --surface-inverse: var(--blue-700);
  --surface-field:   var(--edit-bg-0);

  --text-strong:   var(--fg-100);
  --text-body:     #3A3A3A;
  --text-muted:    var(--fg-50);
  --text-disabled: var(--fg-25);
  --text-on-blue:  #FFFFFF;
  --text-on-blue-muted: var(--blue-fg-25);
  --text-link:     var(--blue-500);

  --brand-primary:       var(--blue-500);
  --brand-primary-hover: var(--blue-600);
  --brand-primary-press: var(--blue-700);
  --brand-accent:        var(--orange-500);
  --brand-accent-hover:  var(--orange-600);
  --brand-teal:          var(--teal-500);
  --brand-deep:          var(--blue-700);

  --border-default: var(--line-25);
  --border-strong:  var(--line-50);
  --border-field:   #C9D2DA;
  --border-focus:   var(--blue-400);

  --status-error:   var(--red-500);
  --status-success: var(--green-500);
  --status-info:    var(--info-500);
  --status-warning: var(--yellow-500);
}

/* ===========================================================================
   Typography tokens
   =========================================================================== */
:root {
  --font-display: "Saira", "Eurostile", "Segoe UI", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", "Cascadia Code", ui-monospace, monospace;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold: 600;
  --fw-bold:    700;
  --fw-display: 600;

  --text-2xs: 11px;
  --text-xs:  12px;
  --text-sm:  14px;
  --text-md:  16px;
  --text-lg:  18px;
  --text-xl:  22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 64px;
  --text-6xl: 80px;

  --leading-tight:   1.08;
  --leading-snug:    1.25;
  --leading-normal:  1.55;
  --leading-relaxed: 1.7;

  --tracking-display: -0.01em;
  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-eyebrow: 0.14em;

  --text-display: var(--text-5xl);
  --text-h1:      var(--text-4xl);
  --text-h2:      var(--text-3xl);
  --text-h3:      var(--text-2xl);
  --text-h4:      var(--text-xl);
  --text-eyebrow: var(--text-xs);
}

/* ===========================================================================
   Spacing & layout tokens
   =========================================================================== */
:root {
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  --container-max: 1200px;
  --container-wide: 1320px;
  --gutter: 24px;
  --section-y: 96px;

  --z-base: 1;
  --z-sticky: 100;
  --z-nav: 200;
  --z-overlay: 800;
  --z-modal: 900;
  --z-toast: 1000;
}

/* ===========================================================================
   Effects tokens — radii, borders, shadows, motion
   =========================================================================== */
:root {
  --radius-xs:  2px;
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  10px;
  --radius-xl:  16px;
  --radius-pill: 999px;

  --border-hairline: 1px solid var(--line-25);
  --border-1: 1px solid var(--border-default);
  --border-strong-1: 1px solid var(--border-strong);

  --shadow-xs:  0 1px 2px rgba(20, 32, 46, 0.06);
  --shadow-sm:  0 1px 3px rgba(20, 32, 46, 0.08), 0 1px 2px rgba(20, 32, 46, 0.06);
  --shadow-md:  0 4px 12px rgba(20, 32, 46, 0.08), 0 2px 4px rgba(20, 32, 46, 0.05);
  --shadow-lg:  0 12px 28px rgba(20, 32, 46, 0.12), 0 4px 8px rgba(20, 32, 46, 0.06);
  --shadow-xl:  0 24px 56px rgba(13, 38, 71, 0.18), 0 8px 16px rgba(13, 38, 71, 0.08);
  --shadow-focus: 0 0 0 3px rgba(0, 120, 212, 0.35);
  --shadow-inset: inset 0 1px 2px rgba(20, 32, 46, 0.10);

  --ease-standard: cubic-bezier(0.2, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:       cubic-bezier(0.4, 0, 1, 1);
  --dur-fast:   120ms;
  --dur-base:   180ms;
  --dur-slow:   280ms;
  --transition-base: all var(--dur-base) var(--ease-standard);
}

/* ===========================================================================
   Base — resets & defaults
   =========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-card);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  color: var(--text-strong);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  margin: 0;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); letter-spacing: var(--tracking-tight); }

p { margin: 0; }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: none; color: var(--brand-primary-hover); }

button { font-family: inherit; }

ul, ol { margin: 0; padding: 0; }

section[id] { scroll-margin-top: 84px; }

::selection { background: var(--edit-bg--200); color: var(--fg-100); }

[dir="rtl"] {
  --font-display: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", sans-serif;
}

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

/* ===========================================================================
   Utility primitives
   =========================================================================== */
.mms-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--brand-primary);
  display: inline-block;
}

.mms-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.mms-section {
  padding: clamp(60px, 8vw, 116px) clamp(16px, 4vw, 40px);
}

.mms-section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  text-wrap: balance;
}

.mms-section-head p {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 14px 0 0;
  max-width: 620px;
  text-wrap: pretty;
}

.mms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

/* ===========================================================================
   Buttons
   =========================================================================== */
.mms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}
.mms-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.mms-btn-md { min-height: 40px; padding: 9px 18px; gap: 8px; }
.mms-btn-lg { min-height: 50px; padding: 13px 26px; font-size: var(--text-md); gap: 10px; }
.mms-btn-full { width: 100%; }

.mms-btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-xs);
}
.mms-btn-primary:hover { background: var(--brand-primary-hover); border-color: var(--brand-primary-hover); color: #fff; }

.mms-btn-accent {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-sm);
}
.mms-btn-accent:hover { background: var(--brand-accent-hover); border-color: var(--brand-accent-hover); color: #fff; }

.mms-btn-secondary {
  background: var(--surface-card);
  color: var(--brand-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.mms-btn-secondary:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.mms-btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.mms-btn-ghost:hover { border-color: var(--brand-primary); color: #fff; }

.mms-btn:hover { transform: translateY(-1px); }

.mms-btn svg { flex: none; }

/* ===========================================================================
   Badges
   =========================================================================== */
.mms-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.mms-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.mms-badge-blue   { background: #E3F0FC; color: var(--blue-600); border-color: #BBDDF7; }
.mms-badge-teal   { background: #E0F2EF; color: var(--teal-600); border-color: #B5E0D8; }
.mms-badge-green  { background: #E0F2EF; color: var(--green-500); border-color: #B5E0D8; }
.mms-badge-orange { background: #FFF0DB; color: #B85F00; border-color: #FFD79E; }
.mms-badge-red    { background: #FCE6E8; color: #C2303D; border-color: #F6C2C7; }
.mms-badge-slate  { background: #EBEDEE; color: var(--slate-700); border-color: #D6DADC; }
.mms-badge-neutral{ background: var(--bg-100); color: var(--fg-50); border-color: var(--line-25); }
.mms-badge-solid  { color: #fff; }
.mms-badge-solid-blue { background: var(--blue-600); border-color: var(--blue-600); }

/* ===========================================================================
   Cards
   =========================================================================== */
.mms-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.mms-card-accent {
  border-top-width: 3px;
}
.mms-card-fill {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mms-card-interactive {
  transition: var(--transition-base);
}
.mms-card-interactive:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.mms-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mms-card-icon svg { width: 23px; height: 23px; }

/* ===========================================================================
   Tabs (pill)
   =========================================================================== */
.mms-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-0);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.mms-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}
.mms-tab:hover { color: var(--text-strong); }
.mms-tab.active {
  background: var(--surface-card);
  color: var(--brand-primary);
  box-shadow: var(--shadow-xs);
}
.mms-tab-count {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  background: var(--bg--100);
  color: var(--fg-50);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  line-height: 1.5;
}
.mms-tab.active .mms-tab-count {
  background: var(--brand-primary);
  color: #fff;
}

/* ===========================================================================
   Form fields
   =========================================================================== */
.mms-field {
  display: block;
}
.mms-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-strong);
}
.mms-input,
.mms-textarea {
  width: 100%;
  background: var(--surface-field);
  border: 1px solid var(--border-field);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--edit-fg-100);
  transition: var(--transition-base);
}
.mms-input:focus,
.mms-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}
.mms-input { height: 40px; }
.mms-textarea { padding: 10px 12px; resize: vertical; }

/* ===========================================================================
   Avatar (testimonials)
   =========================================================================== */
.mms-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-500);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  flex: none;
  border: 2px solid var(--surface-card);
  box-shadow: var(--shadow-xs);
}

/* ===========================================================================
   Nav
   =========================================================================== */
.mms-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-default);
}
.mms-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.mms-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.mms-nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
}
.mms-nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.mms-nav-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}
.mms-nav-brand-sub {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}
.mms-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.mms-nav-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition-base);
}
.mms-nav-link:hover {
  background: var(--bg-100);
  color: var(--brand-primary);
}
.mms-nav-side {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}
.mms-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-100);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
}
.mms-lang-btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 9px;
  min-width: 34px;
  cursor: pointer;
  border-radius: 3px;
  border: none;
  transition: var(--transition-base);
  background: transparent;
  color: var(--text-muted);
}
.mms-lang-btn:hover { color: var(--text-strong); }
.mms-lang-btn.active {
  background: var(--surface-card);
  color: var(--brand-primary);
  box-shadow: var(--shadow-xs);
}
.mms-burger {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  cursor: pointer;
}
.mms-mobile-menu {
  border-top: 1px solid var(--border-default);
  background: var(--surface-card);
  padding: 12px clamp(16px, 4vw, 40px) 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
}
.mms-mobile-menu a {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-strong);
  padding: 13px 8px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--bg-100);
}
.mms-mobile-menu .mms-btn { margin-top: 14px; }

@media (max-width: 940px) {
  .mms-nav-links { display: none; }
  .mms-burger { display: inline-flex; }
  .mms-cta-desktop { display: none; }
  .mms-mock { align-self: auto; }
  .mms-mock-img { height: auto; }
}

/* ===========================================================================
   Hero
   =========================================================================== */
.mms-hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 55%, #003E78 100%);
  color: #fff;
  overflow: hidden;
}
.mms-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/landing/hero-pattern.png');
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  mix-blend-mode: screen;
  pointer-events: none;
}
.mms-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 80% 0%, rgba(0, 120, 212, 0.42) 0%, rgba(0, 62, 120, 0) 60%);
  pointer-events: none;
}
.mms-hero-grid {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.mms-hero-copy { min-width: 0; }
.mms-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #BAE0FF;
  border: 1px solid rgba(186, 224, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  max-width: 100%;
}
.mms-hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  display: inline-block;
  flex: none;
}
.mms-hero h1 {
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
  color: #fff;
  text-wrap: balance;
}
.mms-hero h1 .accent { color: var(--brand-accent); }
.mms-hero-sub {
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.82);
  margin: 22px 0 0;
  max-width: 560px;
  text-wrap: pretty;
}
.mms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.mms-hero-yt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: #BAE0FF;
  font-size: 14px;
  font-weight: 500;
}
.mms-hero-yt:hover { color: #fff; }
.mms-hero-points {
  list-style: none;
  margin: 34px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.mms-hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.76);
}
.mms-hero-points svg {
  width: 16px;
  height: 16px;
  stroke: var(--teal-500);
  stroke-width: 2.4;
  flex: none;
}

/* Hero mockup */
.mms-mock { min-width: 0; position: relative; align-self: stretch; }
.mms-mock-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* ===========================================================================
   Demo / preview
   =========================================================================== */
.mms-demo-frame {
  margin-top: 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mms-demo-bar {
  height: 38px;
  background: var(--blue-700);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}
.mms-demo-bar img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}
.mms-demo-bar .mms-demo-bar-title {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mms-demo-bar .mms-demo-bar-ver {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  flex: none;
}

.mms-demo-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===========================================================================
   Pricing
   =========================================================================== */
.mms-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 48px;
  align-items: stretch;
}
.mms-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px 26px;
}
.mms-plan.popular {
  border: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-lg);
  padding: 31px 25px;
}
.mms-plan-badge {
  position: absolute;
  top: -13px;
  inset-inline-start: 22px;
}
.mms-plan-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-strong); letter-spacing: 0.01em; }
.mms-plan-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.mms-plan-price { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; color: var(--text-strong); letter-spacing: -0.03em; line-height: 1; }
.mms-plan-period { font-size: 13px; color: var(--text-muted); }
.mms-plan-desc { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin: 12px 0 0; min-height: 42px; }
.mms-plan-divider { height: 1px; background: var(--border-default); margin: 18px 0; }
.mms-plan-items { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.mms-plan-items li { display: flex; flex: none; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.45; color: var(--text-body); }
.mms-plan-items svg { width: 16px; height: 16px; stroke: var(--teal-500); stroke-width: 2.4; flex: none; margin-top: 2px; }
.mms-plan-cta { margin-top: 24px; }

.mms-pay {
  margin-top: 34px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 60%, #003E78 100%);
  color: #fff;
  padding: clamp(24px, 3.5vw, 40px);
}
.mms-pay-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/landing/hero-pattern.png');
  background-size: cover;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
}
.mms-pay-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
}
.mms-pay-eyebrow { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #BAE0FF; }
.mms-pay h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.01em; margin: 10px 0 0; color: #fff; }
.mms-pay-desc { font-size: 14.5px; line-height: 1.62; color: rgba(255, 255, 255, 0.8); margin: 12px 0 0; max-width: 460px; text-wrap: pretty; }
.mms-pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mms-pay-method {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
}
.mms-pay-method svg { width: 15px; height: 15px; }
.mms-pay-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.mms-pay-row { padding: 11px 0; border-bottom: 1px solid var(--bg-0); }
.mms-pay-row:last-child { border-bottom: none; padding-bottom: 0; }
.mms-pay-row-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.mms-pay-row-value { font-family: var(--font-mono); font-size: 16px; color: var(--text-strong); margin-top: 5px; word-break: break-word; }
.mms-pay-note { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); margin: 14px 0 0; }

/* ===========================================================================
   Downloads
   =========================================================================== */
.mms-dl-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
}
.mms-dl-req {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
}
.mms-dl-req svg { width: 17px; height: 17px; stroke: var(--brand-primary); flex: none; }

/* ===========================================================================
   Install
   =========================================================================== */
.mms-inst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: 48px;
  align-items: start;
}
.mms-steps { list-style: none; margin: 0; display: flex; flex-direction: column; }
.mms-step { display: flex; gap: 16px; padding-bottom: 26px; }
.mms-step-num-col { display: flex; flex-direction: column; align-items: center; flex: none; }
.mms-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.mms-step-line { width: 1px; flex: 1; background: var(--border-default); margin-top: 6px; }
.mms-step-body { min-width: 0; padding-top: 4px; }
.mms-step-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text-strong); letter-spacing: -0.01em; }
.mms-step-desc { display: block; font-size: 14px; line-height: 1.6; color: var(--text-body); margin-top: 6px; text-wrap: pretty; }
.mms-inst-video {
  position: sticky;
  top: 92px;
  background: var(--surface-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mms-inst-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--blue-600), #003E78);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mms-inst-video-thumb .pat {
  position: absolute;
  inset: 0;
  background-image: url('../assets/landing/hero-pattern.png');
  background-size: cover;
  opacity: 0.3;
  mix-blend-mode: screen;
}
.mms-inst-video-play {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
}
.mms-inst-video-play:hover { background: var(--brand-accent-hover); }
.mms-inst-video-play svg { width: 26px; height: 26px; fill: currentColor; margin-inline-start: 3px; }
.mms-inst-video-body { padding: 22px; }
.mms-inst-video-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text-strong); letter-spacing: -0.01em; }
.mms-inst-video-desc { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 8px 0 18px; }

/* ===========================================================================
   Tutorials
   =========================================================================== */
.mms-tuto-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}
.mms-tuto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.mms-video-card {
  display: block;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  color: inherit;
}
.mms-video-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-strong); }
.mms-video-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
}
.mms-video-thumb .pat {
  position: absolute;
  inset: 0;
  background-image: url('../assets/landing/hero-pattern.png');
  background-size: cover;
  opacity: 0.26;
  mix-blend-mode: screen;
}
.mms-video-thumb .play {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mms-video-thumb .play svg { width: 19px; height: 19px; fill: currentColor; margin-inline-start: 2px; }
.mms-video-thumb .dur {
  position: absolute;
  inset-inline-end: 9px;
  bottom: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  padding: 2px 6px;
}
.mms-video-body { display: block; padding: 16px; }
.mms-video-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--text-strong); line-height: 1.3; }
.mms-video-desc { display: block; font-size: 13px; line-height: 1.55; color: var(--text-muted); margin-top: 7px; }

/* ===========================================================================
   Testimonials
   =========================================================================== */
.mms-testi-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}
.mms-testi-rating { display: flex; align-items: center; gap: 10px; }
.mms-stars { display: flex; gap: 2px; color: var(--brand-accent); }
.mms-stars svg { width: 17px; height: 17px; fill: currentColor; }
.mms-stars.small svg { width: 15px; height: 15px; }
.mms-testi-quote { font-size: 15px; line-height: 1.65; color: var(--text-strong); flex: 1; text-wrap: pretty; }
.mms-testi-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--bg-0); }
.mms-testi-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-strong); }
.mms-testi-role { display: block; font-size: 12.5px; color: var(--text-muted); }

/* ===========================================================================
   Contact
   =========================================================================== */
.mms-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.mms-contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.mms-contact-card {
  display: flex;
  gap: 13px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
}
.mms-contact-card-ic {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--edit-bg--100);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mms-contact-card-ic svg { width: 19px; height: 19px; }
.mms-contact-card-label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.mms-contact-card-value { display: block; font-size: 14.5px; color: var(--text-strong); margin-top: 5px; word-break: break-word; line-height: 1.4; }
.mms-contact-form {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 32px);
}
.mms-contact-form-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--text-strong); letter-spacing: -0.01em; }
.mms-contact-form-grid { display: grid; gap: 14px; margin-top: 20px; }
.mms-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.mms-form-status { display: none; font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: var(--radius-sm); }
.mms-form-status.ok { display: block; background: #E0F2EF; color: var(--teal-600); border: 1px solid var(--teal-500); }
.mms-form-status.err { display: block; background: #FDECEE; color: var(--red-500); border: 1px solid var(--red-500); }
.mms-form-status.sending { display: block; background: var(--edit-bg--100); color: var(--blue-600); border: 1px solid var(--blue-400); }
.mms-contact-note { font-size: 12.5px; color: var(--text-muted); margin: 0; text-align: center; }

/* ===========================================================================
   Footer
   =========================================================================== */
.mms-footer {
  background: #002F5C;
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(44px, 6vw, 76px) clamp(16px, 4vw, 40px) 28px;
}
.mms-footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
}
.mms-footer-brand { max-width: 300px; }
.mms-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 9px 13px;
}
.mms-footer-logo img { width: 26px; height: 26px; }
.mms-footer-logo span { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text-strong); letter-spacing: 0.02em; }
.mms-footer-tagline { font-size: 14px; line-height: 1.62; margin: 16px 0 0; color: rgba(255, 255, 255, 0.66); }
.mms-footer-socials { display: flex; gap: 8px; margin-top: 18px; }
.mms-footer-social {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-base);
}
.mms-footer-social:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.mms-footer-social svg { width: 18px; height: 18px; }
.mms-footer-col-title { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.mms-footer-col ul { list-style: none; margin: 16px 0 0; display: flex; flex-direction: column; gap: 11px; padding: 0; }
.mms-footer-col a { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.mms-footer-col a:hover { color: #fff; }
.mms-footer-bottom {
  max-width: var(--container-max);
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.mms-footer-bottom span { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
