/* =========================================================
   Mantis Tech — Design System
   ========================================================= */

:root {
  --mt-brand: #DB0000;
  --mt-brand-dark: #A80000;
  --mt-brand-light: #FCE8E8;
  --mt-accent: #021B1A;
  --mt-accent-warm: #F59E0B;
  --mt-ink: #021B1A;
  --mt-ink-2: #1E293B;
  --mt-text: #334155;
  --mt-muted: #64748B;
  --mt-line: #E2E8F0;
  --mt-bg: #FFFFFF;
  --mt-bg-soft: #F8FAFC;
  --mt-bg-tint: #F1F5F9;
  --mt-success: #10B981;
  --mt-warning: #F59E0B;
  --mt-danger:  #EF4444;

  --mt-radius: 12px;
  --mt-radius-lg: 20px;
  --mt-radius-pill: 999px;

  --mt-shadow-sm: 0 1px 2px rgba(2, 27, 26, .06);
  --mt-shadow-md: 0 10px 25px -10px rgba(219, 0, 0, .18), 0 6px 12px -8px rgba(2, 27, 26, .12);
  --mt-shadow-lg: 0 30px 60px -20px rgba(219, 0, 0, .20);

  --mt-container: 1200px;
  --mt-gap: 24px;

  --mt-font: "Inter", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --mt-ease: cubic-bezier(.2, .7, .2, 1);
  --mt-duration: .2s;
  --mt-hover-border: rgba(219, 0, 0, .25);
}

/* Reset + base ------------------------------------------------ */

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

html, body {
  padding: 0;
  margin: 0;
  font-family: var(--mt-font);
  color: var(--mt-text);
  background: var(--mt-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--mt-ink);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover,
a:focus { color: var(--mt-brand); text-decoration: none !important; }

h1, h2, h3, h4, h5, h6 {
  color: var(--mt-ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }

/* Frappe overrides: hide default wrappers that add extra chrome */
body.mantis-frame .web-footer { display: none; }

/* Layout utilities -------------------------------------------- */

.mt-container {
  max-width: var(--mt-container);
  margin: 0 auto;
  padding: 0 20px;
}

.mt-section {
  padding: 80px 0;
}
.mt-section-sm { padding: 48px 0; }
.mt-section-tight { padding: 32px 0; }

.mt-section-soft  { background: var(--mt-bg-soft); }
.mt-section-tint  { background: var(--mt-bg-tint); }
.mt-section-brand {
  background: linear-gradient(135deg, var(--mt-brand) 0%, var(--mt-accent) 100%);
  color: #fff;
}
.mt-section-brand h1,
.mt-section-brand h2,
.mt-section-brand h3 { color: #fff; }
.mt-section-brand p { color: rgba(255,255,255,.92); }

.mt-eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mt-muted);
  margin-bottom: 12px;
}
.mt-section-brand .mt-eyebrow { color: rgba(255,255,255,.9); }

.mt-section-header {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.mt-section-header p { color: var(--mt-muted); font-size: 1.0625rem; }

.mt-grid { display: grid; gap: var(--mt-gap); }
.mt-grid-2 { grid-template-columns: repeat(2, 1fr); }
.mt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mt-grid-4 { grid-template-columns: repeat(4, 1fr); }

.mt-flex { display: flex; }
.mt-flex-center { display: flex; align-items: center; justify-content: center; }

.mt-text-center { text-align: center; }
.mt-muted { color: var(--mt-muted); }

/* Buttons ------------------------------------------------------ */

.mt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--mt-radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--mt-duration) var(--mt-ease),
              color var(--mt-duration) var(--mt-ease),
              border-color var(--mt-duration) var(--mt-ease),
              box-shadow var(--mt-duration) var(--mt-ease),
              transform var(--mt-duration) var(--mt-ease);
  white-space: nowrap;
  text-decoration: none;
}
.mt-btn:hover { transform: translateY(-1px); }
.mt-btn:active { transform: translateY(0); }

.mt-btn-primary {
  background: var(--mt-brand);
  color: #fff;
  box-shadow: var(--mt-shadow-md);
}
.mt-btn-primary:hover {
  background: var(--mt-brand-dark);
  color: #fff;
  box-shadow: var(--mt-shadow-lg);
}

.mt-btn-ghost {
  background: transparent;
  color: var(--mt-ink);
  border-color: var(--mt-line);
}
.mt-btn-ghost:hover {
  background: var(--mt-brand-light);
  color: var(--mt-brand);
  border-color: var(--mt-hover-border);
  box-shadow: var(--mt-shadow-sm);
}

.mt-btn-white {
  background: #fff;
  color: var(--mt-brand);
  box-shadow: var(--mt-shadow-sm);
}
.mt-btn-white:hover {
  background: #fff;
  color: var(--mt-brand-dark);
  box-shadow: var(--mt-shadow-md);
}

.mt-btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.mt-btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: #fff;
}

.mt-btn-lg { padding: 16px 32px; font-size: 1rem; }
.mt-btn-sm { padding: 8px 16px; font-size: 0.8125rem; }

/* Navbar ------------------------------------------------------- */

.mt-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--mt-line);
}

.mt-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.mt-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.mt-brand img {
  height: 40px;
  max-height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.mt-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mt-nav-menu > li { position: relative; }
.mt-nav-menu > li > a:not(.mt-btn):not(.mt-nav-user-btn):not(.mt-nav-login-btn) {
  display: inline-block;
  padding: 10px 14px;
  color: var(--mt-ink-2);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 8px;
  transition: background var(--mt-duration) var(--mt-ease),
              color var(--mt-duration) var(--mt-ease);
}
.mt-nav-menu > li > a:not(.mt-btn):not(.mt-nav-user-btn):not(.mt-nav-login-btn):hover {
  background: var(--mt-brand-light);
  color: var(--mt-brand);
}
.mt-nav-menu > li > a.active:not(.mt-btn):not(.mt-nav-user-btn):not(.mt-nav-login-btn) {
  background: var(--mt-brand);
  color: #fff;
  box-shadow: var(--mt-shadow-sm);
}
.mt-nav-menu > li > a.active:not(.mt-btn):not(.mt-nav-user-btn):not(.mt-nav-login-btn):hover {
  background: var(--mt-brand-dark);
  color: #fff;
}

.mt-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius);
  padding: 8px;
  box-shadow: var(--mt-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  list-style: none;
  margin: 8px 0 0;
}
.mt-nav-menu > li:hover .mt-nav-dropdown,
.mt-nav-menu > li:focus-within .mt-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mt-nav-dropdown a {
  display: block;
  padding: 10px 12px;
  color: var(--mt-ink-2);
  border-radius: 8px;
  font-size: 0.9375rem;
}
.mt-nav-dropdown a:hover { background: var(--mt-brand-light); color: var(--mt-brand); }
.mt-nav-dropdown small { display: block; color: var(--mt-muted); font-size: 0.75rem; margin-top: 2px; }

.mt-nav-cta { margin-left: 12px; }

.mt-nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--mt-line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.mt-nav-toggle svg { margin: auto; }

@media (max-width: 960px) {
  .mt-nav-menu {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--mt-line);
    padding: 12px 20px 20px;
    gap: 4px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    display: none;
  }
  .mt-nav-menu.open { display: flex; }
  .mt-nav-menu > li > a { padding: 12px; }
  .mt-nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .mt-nav-cta { margin: 12px 0 0; display: block; text-align: center; }
  .mt-nav-toggle { display: inline-flex; }
}

/* Hero --------------------------------------------------------- */

.mt-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--mt-brand-light) 0%, #fff 100%);
}
.mt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(219, 0, 0, .08), transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(2, 27, 26, .06), transparent 50%);
  pointer-events: none;
}
.mt-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.mt-hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}
.mt-hero-title .mt-highlight {
  background: linear-gradient(135deg, var(--mt-brand), var(--mt-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-hero-subtitle {
  font-size: 1.125rem;
  color: var(--mt-muted);
  margin-bottom: 32px;
  max-width: 540px;
}
.mt-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.mt-hero-image {
  background: #fff;
  border-radius: var(--mt-radius-lg);
  padding: 20px;
  box-shadow: var(--mt-shadow-lg);
  transform: rotate(-1deg);
  transition: transform .4s ease;
}
.mt-hero-image:hover { transform: rotate(0); }
.mt-hero-image img, .mt-hero-image svg { width: 100%; height: auto; border-radius: var(--mt-radius); }
.mt-hero-image > .mt-editable-image { display: block; width: 100%; }
.mt-hero-image > .mt-editable-image > img { width: 100%; height: auto; border-radius: var(--mt-radius); }

/* Editable-image wrappers should inherit their container's layout so
 * uploaded images respect the same aspect-ratio / object-fit rules that
 * keep block designs from breaking. */
.mt-industry-card > .mt-editable-image { display: inline-block; }
.mt-product-card-media > .mt-editable-image,
.mt-block-image-text__media > .mt-editable-image,
.mt-block-hero__bg > .mt-editable-image { display: block; width: 100%; height: 100%; }
.mt-block-hero__bg > .mt-editable-image > img { width: 100%; height: 100%; object-fit: cover; }
.mt-block-image-text__media > .mt-editable-image > img { width: 100%; height: auto; }

/* Hero (sample block) — background image via real <img> for editability */
.mt-block-hero { position: relative; overflow: hidden; min-height: 420px; display: grid; place-items: center; color: #fff; padding: 80px 24px; }
.mt-block-hero__bg { position: absolute; inset: 0; z-index: 0; }
.mt-block-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)); pointer-events: none; }
.mt-block-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-block-hero__inner { position: relative; z-index: 1; max-width: 720px; text-align: center; }
.mt-block-hero--left .mt-block-hero__inner { text-align: left; margin-left: 0; margin-right: auto; }
.mt-block-hero__eyebrow { display: inline-block; padding: 4px 12px; background: rgba(255,255,255,0.15); border-radius: 999px; font-size: 13px; margin-bottom: 16px; }
.mt-block-hero__title { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 12px; }
.mt-block-hero__subtitle { font-size: 1.0625rem; opacity: 0.9; margin-bottom: 24px; }

.mt-hero-compact {
  padding: 64px 0 56px;
}
.mt-hero-compact .mt-hero-title { font-size: clamp(2rem, 3.5vw, 2.75rem); }

@media (max-width: 900px) {
  .mt-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .mt-hero-image { order: -1; transform: none; }
}

/* Cards -------------------------------------------------------- */

.mt-card {
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-lg);
  padding: 28px;
  transition: border-color var(--mt-duration) var(--mt-ease),
              box-shadow var(--mt-duration) var(--mt-ease),
              transform var(--mt-duration) var(--mt-ease);
  display: flex;
  flex-direction: column;
}
.mt-card:hover {
  border-color: var(--mt-hover-border);
  box-shadow: var(--mt-shadow-md);
  transform: translateY(-3px);
}
.mt-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.mt-card p { color: var(--mt-muted); margin-bottom: 16px; }
.mt-card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--mt-ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mt-card-link:hover { color: var(--mt-brand); }
.mt-card-link::after { content: "→"; transition: transform .15s ease; }
.mt-card-link:hover::after { transform: translateX(3px); }

/* Pillar cards ------------------------------------------------ */

.mt-pillar-card {
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--mt-duration) var(--mt-ease),
              box-shadow var(--mt-duration) var(--mt-ease),
              transform var(--mt-duration) var(--mt-ease);
  text-decoration: none;
  color: inherit;
  display: block;
}
.mt-pillar-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 4px; height: 0;
  background: var(--mt-brand);
  transition: height var(--mt-duration) var(--mt-ease);
}
.mt-pillar-card:hover {
  border-color: var(--mt-hover-border);
  box-shadow: var(--mt-shadow-md);
  transform: translateY(-3px);
}
.mt-pillar-card:hover::before { height: 100%; }
.mt-pillar-icon {
  width: 56px; height: 56px;
  background: var(--mt-brand-light);
  color: var(--mt-brand);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.mt-pillar-icon svg { width: 32px; height: 32px; }
.mt-pillar-card h3 { color: var(--mt-ink); margin-bottom: 6px; font-size: 1.375rem; }
.mt-pillar-card p { color: var(--mt-muted); font-size: 0.9375rem; margin-bottom: 12px; }
.mt-pillar-card-link { color: var(--mt-ink); font-weight: 600; font-size: 0.875rem; }
.mt-pillar-card:hover .mt-pillar-card-link { color: var(--mt-brand); }

/* Product cards ----------------------------------------------- */

.mt-product-card {
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--mt-duration) var(--mt-ease),
              box-shadow var(--mt-duration) var(--mt-ease),
              transform var(--mt-duration) var(--mt-ease);
}
.mt-product-card:hover {
  border-color: var(--mt-hover-border);
  box-shadow: var(--mt-shadow-md);
  transform: translateY(-3px);
}
.mt-product-card-media {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--mt-brand-light), #fff);
  overflow: hidden;
}
.mt-product-card-media img, .mt-product-card-media svg { width: 100%; height: 100%; object-fit: cover; }
.mt-product-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mt-product-card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--mt-brand-light);
  color: var(--mt-brand);
  border-radius: var(--mt-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mt-product-card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.mt-product-card-body p {
  color: var(--mt-muted);
  font-size: 0.9375rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mt-product-card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--mt-ink);
  font-size: 0.9375rem;
}
.mt-product-card:hover .mt-product-card-link { color: var(--mt-brand); }

/* Feature grid ------------------------------------------------ */

.mt-feature-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--mt-radius);
  background: #fff;
  border: 1px solid var(--mt-line);
  transition: border-color var(--mt-duration) var(--mt-ease),
              background var(--mt-duration) var(--mt-ease),
              box-shadow var(--mt-duration) var(--mt-ease),
              transform var(--mt-duration) var(--mt-ease);
}
.mt-feature-item:hover {
  border-color: var(--mt-hover-border);
  background: var(--mt-bg-soft);
  box-shadow: var(--mt-shadow-sm);
  transform: translateY(-2px);
}
.mt-feature-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--mt-brand-light);
  color: var(--mt-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.mt-feature-content h4 { margin: 0 0 4px; font-size: 1rem; color: var(--mt-ink); }
.mt-feature-content p { margin: 0; color: var(--mt-muted); font-size: 0.9375rem; }

/* Tick list --------------------------------------------------- */

.mt-ticklist { list-style: none; padding: 0; margin: 0; }
.mt-ticklist li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--mt-ink-2);
  font-size: 1rem;
  border-bottom: 1px solid var(--mt-line);
}
.mt-ticklist li:last-child { border-bottom: none; }
.mt-ticklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 20px; height: 20px;
  background: var(--mt-brand-light) url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l3 3 7-7' stroke='%23DB0000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  border-radius: 50%;
}
.mt-ticklist strong { color: var(--mt-ink); }

/* CTA banner -------------------------------------------------- */

.mt-cta-banner {
  background: linear-gradient(135deg, var(--mt-brand), var(--mt-accent) 110%);
  border-radius: var(--mt-radius-lg);
  padding: 56px 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.mt-cta-banner::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
}
.mt-cta-banner h2 { color: #fff; margin-bottom: 12px; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.mt-cta-banner p { color: rgba(255,255,255,.9); margin: 0; font-size: 1.0625rem; }
.mt-cta-banner-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; z-index: 1; }

@media (max-width: 760px) {
  .mt-cta-banner { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .mt-cta-banner-actions { justify-content: center; }
}

/* Industry logos --------------------------------------------- */

.mt-industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mt-industry-card {
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius);
  padding: 32px 20px;
  text-align: center;
  transition: border-color var(--mt-duration) var(--mt-ease),
              box-shadow var(--mt-duration) var(--mt-ease),
              transform var(--mt-duration) var(--mt-ease);
}
.mt-industry-card:hover {
  border-color: var(--mt-hover-border);
  box-shadow: var(--mt-shadow-md);
  transform: translateY(-3px);
}
.mt-industry-card img, .mt-industry-card svg {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
}
.mt-industry-card h4 { margin: 0 0 4px; font-size: 1.0625rem; }
.mt-industry-card p { margin: 0; font-size: 0.875rem; color: var(--mt-muted); }

/* Solution detail ---------------------------------------------- */

.mt-solution-overview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.mt-solution-overview img, .mt-solution-overview svg {
  border-radius: var(--mt-radius-lg);
  box-shadow: var(--mt-shadow-md);
}

.mt-benefits-table {
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-lg);
  overflow: hidden;
}
.mt-benefits-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  padding: 20px 24px;
  border-bottom: 1px solid var(--mt-line);
}
.mt-benefits-row:last-child { border-bottom: none; }
.mt-benefits-row h4 {
  margin: 0;
  color: var(--mt-ink);
  font-size: 1rem;
  font-weight: 600;
}
.mt-benefits-row p { margin: 0; color: var(--mt-text); }

@media (max-width: 780px) {
  .mt-solution-overview { grid-template-columns: 1fr; gap: 32px; }
  .mt-benefits-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Use case cards --------------------------------------------- */

.mt-usecase {
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-lg);
  padding: 28px;
  transition: border-color var(--mt-duration) var(--mt-ease),
              box-shadow var(--mt-duration) var(--mt-ease),
              transform var(--mt-duration) var(--mt-ease);
  position: relative;
}
.mt-usecase:hover {
  border-color: var(--mt-hover-border);
  box-shadow: var(--mt-shadow-md);
  transform: translateY(-3px);
}
.mt-usecase-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--mt-accent);
  color: #fff;
  border-radius: var(--mt-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mt-usecase h4 { margin: 0 0 8px; font-size: 1.125rem; }
.mt-usecase p { margin: 0; color: var(--mt-muted); font-size: 0.9375rem; }

/* Breadcrumbs -------------------------------------------------- */

.mt-breadcrumbs {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--mt-muted);
  flex-wrap: wrap;
}
.mt-breadcrumbs li + li::before { content: "/"; padding-right: 6px; color: var(--mt-line); }
.mt-breadcrumbs a { color: var(--mt-muted); }
.mt-breadcrumbs a:hover { color: var(--mt-brand); }

/* Footer ------------------------------------------------------- */

.mt-footer {
  background: var(--mt-ink);
  color: rgba(255,255,255,.8);
  padding: 72px 0 40px;
  margin-top: 80px;
}
.mt-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.mt-footer h4 {
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mt-footer ul { list-style: none; padding: 0; margin: 0; }
.mt-footer ul li { margin-bottom: 10px; }
.mt-footer a { color: rgba(255,255,255,.7); font-size: 0.9375rem; }
.mt-footer a:hover { color: #fff; }
.mt-footer-brand img { height: 36px; margin-bottom: 16px; }
.mt-footer-brand p { color: rgba(255,255,255,.65); font-size: 0.9375rem; margin: 0; max-width: 320px; }
.mt-footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
  gap: 12px;
}
.mt-social { display: flex; gap: 10px; }
.mt-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .15s ease;
}
.mt-social a:hover { background: var(--mt-brand); }
.mt-social svg { width: 16px; height: 16px; }

@media (max-width: 880px) {
  .mt-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mt-footer-brand { grid-column: 1 / -1; }
}

/* Product detail ---------------------------------------------- */

.mt-product-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 32px;
}
.mt-product-hero img, .mt-product-hero svg {
  border-radius: var(--mt-radius-lg);
  box-shadow: var(--mt-shadow-md);
}
.mt-product-meta {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mt-related-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mt-gap);
}

@media (max-width: 880px) {
  .mt-product-hero { grid-template-columns: 1fr; gap: 32px; }
  .mt-related-products { grid-template-columns: 1fr; }
}

/* Responsive grids -------------------------------------------- */

@media (max-width: 980px) {
  .mt-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mt-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mt-industries { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .mt-grid-4, .mt-grid-3, .mt-grid-2 { grid-template-columns: 1fr; }
  .mt-section { padding: 56px 0; }
  .mt-hero { padding: 64px 0 48px; }
}

/* Utility ------------------------------------------------------ */

.mt-mt-0 { margin-top: 0 !important; }
.mt-mt-1 { margin-top: 8px !important; }
.mt-mt-2 { margin-top: 16px !important; }
.mt-mt-3 { margin-top: 24px !important; }
.mt-mt-4 { margin-top: 32px !important; }
.mt-mb-0 { margin-bottom: 0 !important; }
.mt-mb-1 { margin-bottom: 8px !important; }
.mt-mb-2 { margin-bottom: 16px !important; }
.mt-mb-3 { margin-bottom: 24px !important; }
.mt-mb-4 { margin-bottom: 32px !important; }

/* Override Frappe default web container chrome so our layout is clean */
.page_content, .page-content { padding: 0 !important; }
.web-footer-container, .web-footer { display: none !important; }
main { padding: 0 !important; }
#page-content { padding: 0 !important; }

/* Fallback typography for Frappe sidebar-less content */
.page-header { display: none; }

/* =========================================================
   Phase 2 — Forms, Blog, Team, Timeline, Toast, Guide
   ========================================================= */

/* Forms ---------------------------------------------------- */
.mt-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--mt-bg);
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-lg);
  padding: 28px;
  box-shadow: var(--mt-shadow-sm);
}
.mt-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mt-form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .mt-form-field-row { grid-template-columns: 1fr; }
}
.mt-form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--mt-ink);
}
.mt-form-label .mt-required { color: var(--mt-danger); margin-left: 2px; }
.mt-form-input,
.mt-form-textarea,
.mt-form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--mt-ink);
  background: var(--mt-bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mt-form-input:focus,
.mt-form-textarea:focus,
.mt-form-select:focus {
  outline: none;
  border-color: var(--mt-brand);
  box-shadow: 0 0 0 3px rgba(219, 0, 0, .15);
}
.mt-form-textarea { min-height: 120px; resize: vertical; }
.mt-form-field.has-error .mt-form-input,
.mt-form-field.has-error .mt-form-textarea,
.mt-form-field.has-error .mt-form-select {
  border-color: var(--mt-danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.mt-form-error {
  display: none;
  font-size: 13px;
  color: var(--mt-danger);
  margin-top: 2px;
}
.mt-form-field.has-error .mt-form-error { display: block; }
.mt-form-hint { font-size: 13px; color: var(--mt-muted); }
.mt-form-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.mt-form-submit {
  margin-top: 8px;
}
.mt-form-submit[disabled] {
  opacity: .6;
  cursor: progress;
}

/* Toast ---------------------------------------------------- */
.mt-toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.mt-toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 360px;
  background: var(--mt-ink);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--mt-radius);
  font-size: 14px;
  box-shadow: var(--mt-shadow-lg);
  animation: mt-toast-in .25s ease-out;
}
.mt-toast-success { background: var(--mt-success); }
.mt-toast-error { background: var(--mt-danger); }
@keyframes mt-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact grid --------------------------------------------- */
.mt-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .mt-contact-grid { grid-template-columns: 1fr; }
}
.mt-contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mt-contact-info-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius);
  background: var(--mt-bg-soft);
}
.mt-contact-info-item .mt-contact-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--mt-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mt-brand);
  font-size: 20px;
}
.mt-contact-info-item h4 { margin: 0 0 4px; font-size: 15px; }
.mt-contact-info-item p { margin: 0; color: var(--mt-text); font-size: 14px; }

/* Services ------------------------------------------------- */
.mt-service-group {
  padding: 48px 0;
  border-top: 1px solid var(--mt-line);
}
.mt-service-group:first-of-type { border-top: none; }
.mt-service-group-header {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.mt-service-group-header img { width: 96px; height: 96px; }
.mt-service-group-header h2 { margin: 4px 0 6px; }
.mt-service-group-header p { margin: 0; color: var(--mt-text); }
.mt-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.mt-service-card {
  background: var(--mt-bg);
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mt-service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mt-shadow-md);
  border-color: var(--mt-brand-light);
}
.mt-service-card h3 { margin: 0; font-size: 18px; }
.mt-service-card p { margin: 0; color: var(--mt-text); font-size: 14px; line-height: 1.6; }
.mt-service-card ul { margin: 4px 0 8px 20px; padding: 0; color: var(--mt-text); font-size: 14px; }
.mt-service-card ul li { margin: 4px 0; }
.mt-service-card .mt-btn { align-self: flex-start; }

/* Team, Timeline, About ------------------------------------ */
.mt-callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.mt-callout {
  background: var(--mt-bg-soft);
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-lg);
  padding: 28px;
}
.mt-callout-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mt-brand-light);
  border-radius: 14px;
  margin-bottom: 14px;
}
.mt-callout-icon img { width: 40px; height: 40px; }
.mt-callout h3 { margin: 0 0 8px; }
.mt-callout p { margin: 0; color: var(--mt-text); }

.mt-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.mt-team-card {
  background: var(--mt-bg);
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-lg);
  padding: 20px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mt-team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mt-shadow-sm);
}
.mt-team-avatar {
  width: 120px;
  height: 120px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--mt-brand-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mt-team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mt-team-card h4 { margin: 0 0 4px; font-size: 16px; }
.mt-team-role { margin: 0; font-size: 13px; color: var(--mt-muted); }

.mt-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 32px;
}
.mt-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 10px;
  width: 2px;
  background: var(--mt-brand-light);
}
.mt-timeline-item {
  position: relative;
  padding: 12px 16px;
  background: var(--mt-bg);
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius);
}
.mt-timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mt-brand);
  box-shadow: 0 0 0 4px var(--mt-brand-light);
}
.mt-timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--mt-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mt-timeline-item h4 { margin: 0 0 4px; font-size: 16px; }
.mt-timeline-item p { margin: 0; color: var(--mt-text); font-size: 14px; }

/* Blog list styling (overlays blog app) -------------------- */
.mt-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.mt-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--mt-bg);
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-lg);
  overflow: hidden;
  transition: border-color var(--mt-duration) var(--mt-ease),
              box-shadow var(--mt-duration) var(--mt-ease),
              transform var(--mt-duration) var(--mt-ease);
}
.mt-blog-card:hover {
  border-color: var(--mt-hover-border);
  box-shadow: var(--mt-shadow-md);
  transform: translateY(-3px);
}
.mt-blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--mt-bg-tint);
}
.mt-blog-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.mt-blog-category-pill {
  display: inline-block;
  background: var(--mt-brand-light);
  color: var(--mt-brand);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--mt-radius-pill);
  text-transform: uppercase;
  letter-spacing: .04em;
  align-self: flex-start;
}
.mt-blog-card h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.mt-blog-card h3 a { color: var(--mt-ink); text-decoration: none; }
.mt-blog-card h3 a:hover { color: var(--mt-brand); }
.mt-blog-card p { margin: 0; color: var(--mt-text); font-size: 14px; }
.mt-blog-card .mt-blog-meta {
  font-size: 12px;
  color: var(--mt-muted);
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* Thank-you ------------------------------------------------ */
.mt-thank-you {
  text-align: center;
  padding: 80px 20px;
}
.mt-thank-you img { max-width: 320px; width: 100%; margin: 0 auto 24px; display: block; }
.mt-thank-you h1 { margin: 0 0 14px; color: var(--mt-ink); }
.mt-thank-you p { margin: 0 auto 24px; max-width: 560px; color: var(--mt-text); }
.mt-thank-you .mt-hero-ctas { justify-content: center; }

/* Admin guide --------------------------------------------- */
.mt-guide-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-lg);
  background: var(--mt-bg);
  margin-bottom: 16px;
}
.mt-guide-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mt-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}
.mt-guide-step h3 { margin: 0 0 8px; }
.mt-guide-step p { margin: 0 0 8px; color: var(--mt-text); }
.mt-guide-step code {
  background: var(--mt-bg-tint);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
}
.mt-guide-screenshot {
  margin: 12px 0;
  padding: 20px;
  border: 2px dashed var(--mt-line);
  border-radius: var(--mt-radius);
  text-align: center;
  color: var(--mt-muted);
  font-size: 13px;
  background: var(--mt-bg-soft);
}

/* ---- Phase 2 additional classes ---- */
.mt-section-muted { background: var(--mt-bg-soft); }
.mt-grid-align-center { align-items: center; }

.mt-feature-card {
  display: block;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mt-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--mt-brand);
  box-shadow: 0 10px 24px rgba(219, 0, 0, 0.10);
  text-decoration: none;
}
.mt-feature-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--mt-ink); }
.mt-feature-card p { margin: 0; color: var(--mt-muted); font-size: 14px; line-height: 1.6; }

.mt-thank-you { text-align: center; max-width: 780px; margin: 0 auto; }
.mt-thank-you-illustration { width: 100%; max-width: 420px; height: auto; margin: 0 auto 24px; display: block; }
.mt-thank-you h1 { margin: 0 0 16px; font-size: 32px; color: var(--mt-ink); }
.mt-thank-you-lead { color: var(--mt-muted); font-size: 17px; line-height: 1.7; margin: 0 0 36px; }
.mt-thank-you-next { text-align: left; margin-top: 40px; }
.mt-thank-you-next h2 { text-align: center; font-size: 22px; margin-bottom: 24px; }
.mt-thank-you-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

.mt-service-group-icon { width: 64px; height: 64px; flex-shrink: 0; color: var(--mt-brand); }
.mt-service-group-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.mt-service-group-header .mt-eyebrow { margin-bottom: 6px; display: inline-block; }
.mt-service-group-header h2 { margin: 4px 0 8px; }
.mt-service-group-header p { margin: 0; color: var(--mt-muted); line-height: 1.65; max-width: 720px; }

.mt-service-bullets { margin: 12px 0 16px; padding-left: 20px; color: var(--mt-muted); font-size: 14px; line-height: 1.7; }
.mt-service-bullets li { margin-bottom: 4px; }
.mt-service-cta {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  color: var(--mt-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}
.mt-service-cta:hover { color: var(--mt-brand); }

.mt-form-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--mt-muted);
  line-height: 1.5;
}
.mt-form-note a { color: var(--mt-ink-2); text-decoration: underline; text-underline-offset: 2px; }
.mt-form-note a:hover { color: var(--mt-brand); }

.mt-btn-ghost-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}
.mt-btn-ghost-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; text-decoration: none; }

.mt-guide-step { display: flex; gap: 20px; margin-bottom: 36px; }
.mt-guide-step-body { flex: 1; }
.mt-guide-step-body h2 { margin: 4px 0 10px; font-size: 22px; }
.mt-guide-step-body p { line-height: 1.7; color: var(--mt-ink); margin: 0 0 10px; }
.mt-guide-step-body ul { padding-left: 20px; color: var(--mt-muted); line-height: 1.8; }
.mt-guide-step-body code { background: var(--mt-bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

.mt-guide-tip {
  margin-top: 32px;
  padding: 20px 24px;
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  border-radius: 8px;
}
.mt-guide-tip h3 { margin: 0 0 10px; font-size: 16px; color: #92400E; }
.mt-guide-tip ul { margin: 0; padding-left: 20px; color: #78350F; line-height: 1.7; }
.mt-guide-tip code { background: rgba(146,64,14,0.08); padding: 2px 6px; border-radius: 4px; }

@media (max-width: 720px) {
  .mt-service-group-header { flex-direction: column; gap: 12px; }
  .mt-guide-step { flex-direction: column; gap: 12px; }
  .mt-thank-you h1 { font-size: 26px; }
}

/* Perf: reserve aspect-ratio to avoid CLS (Cumulative Layout Shift) */
.mt-hero-image img, .mt-hero-image svg { aspect-ratio: 4 / 3; }
.mt-product-card-media img { aspect-ratio: 3 / 2; object-fit: cover; }
.mt-blog-card img, .mt-blog-cover img { aspect-ratio: 16 / 9; object-fit: cover; }
.mt-industry-card img { aspect-ratio: 1 / 1; }
.mt-team-avatar { aspect-ratio: 1 / 1; object-fit: cover; }
.mt-callout-icon, .mt-service-group-icon { aspect-ratio: 1 / 1; }
.mt-pillar-card-icon img { aspect-ratio: 1 / 1; }

/* Language switcher in navbar */
.mt-nav-lang { position: relative; }
.mt-nav-lang > .mt-nav-lang-label {
  display: inline-flex; align-items: center;
  padding: 8px 12px; font-size: 13px; font-weight: 600;
  color: #334155; cursor: pointer; border: 1px solid #E2E8F0;
  border-radius: 6px; background: #fff;
}
.mt-nav-lang > .mt-nav-lang-label::after { content: " ▾"; color: #94A3B8; margin-left: 4px; font-size: 10px; }
.mt-nav-lang:hover > .mt-nav-lang-menu { display: block; }
.mt-nav-lang-menu { right: 0; left: auto; min-width: 140px; }
.mt-nav-lang-menu li a.active { color: var(--mt-brand); font-weight: 600; }

/* User avatar / login icon in navbar */
.mt-nav-user, .mt-nav-login { position: relative; }
.mt-nav-user-btn, .mt-nav-login-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--mt-line); background: #fff; color: var(--mt-ink-2);
  overflow: hidden; padding: 0;
  transition: background var(--mt-duration) var(--mt-ease),
              color var(--mt-duration) var(--mt-ease),
              border-color var(--mt-duration) var(--mt-ease),
              box-shadow var(--mt-duration) var(--mt-ease);
}
.mt-nav-user-btn:hover, .mt-nav-login-btn:hover {
  border-color: var(--mt-hover-border);
  box-shadow: var(--mt-shadow-sm);
}
.mt-nav-user-btn img { width: 100%; height: 100%; object-fit: cover; }
.mt-nav-user-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--mt-brand);
}
.mt-nav-user:hover > .mt-nav-user-menu { display: block; }
.mt-nav-user-menu { right: 0; left: auto; min-width: 220px; }
.mt-nav-user-menu .mt-nav-user-name {
  padding: 10px 14px; color: var(--mt-ink); font-size: 13px; font-weight: 600;
  border-bottom: 1px solid #F1F5F9; pointer-events: none;
}
.mt-nav-user-menu .mt-nav-user-name small {
  display: block; color: var(--mt-muted); font-size: 11px; font-weight: 400; margin-top: 2px;
}
.mt-nav-login-btn:hover {
  background: var(--mt-brand-light);
  color: var(--mt-brand);
  border-color: var(--mt-hover-border);
}
.mt-nav-logout-btn {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; background: none;
  color: var(--mt-ink-2); font: inherit; font-size: 0.9375rem;
  border-radius: 8px; cursor: pointer;
  transition: background var(--mt-duration) var(--mt-ease),
              color var(--mt-duration) var(--mt-ease);
}
.mt-nav-logout-btn:hover { background: var(--mt-brand-light); color: var(--mt-brand); }

/* Related posts injected on /blog/<slug> */
.mt-related-posts { padding: 60px 0 80px; border-top: 1px solid #E5E7EB; margin-top: 40px; }
.mt-related-posts-title { font-size: 24px; margin: 0 0 28px; color: var(--mt-ink); }
.mt-related-posts .mt-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .mt-related-posts .mt-blog-grid { grid-template-columns: 1fr; }
}

/* Filter pills (products, blog) ---------------------------- */
.mt-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.mt-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--mt-radius-pill);
  background: #fff;
  border: 1px solid var(--mt-line);
  color: var(--mt-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--mt-duration) var(--mt-ease),
              border-color var(--mt-duration) var(--mt-ease),
              color var(--mt-duration) var(--mt-ease),
              box-shadow var(--mt-duration) var(--mt-ease);
}
.mt-filter-pill:hover {
  background: var(--mt-brand-light);
  border-color: var(--mt-hover-border);
  color: var(--mt-brand);
  box-shadow: var(--mt-shadow-sm);
}
.mt-filter-pill.active {
  background: var(--mt-brand);
  border-color: var(--mt-brand);
  color: #fff;
}
.mt-filter-pill.active:hover {
  background: var(--mt-brand-dark);
  border-color: var(--mt-brand-dark);
  color: #fff;
}

/* Empty state -------------------------------------------- */
.mt-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--mt-muted);
  font-size: 15px;
  background: var(--mt-bg-soft);
  border: 1px dashed var(--mt-line);
  border-radius: var(--mt-radius-lg);
}

/* Blog card media (clickable wrapper) -------------------- */
.mt-blog-card-media {
  display: block;
  overflow: hidden;
  background: var(--mt-bg-tint);
}
.mt-blog-card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.mt-blog-card:hover .mt-blog-card-media img { transform: scale(1.04); }
.mt-blog-card h3 { font-size: 18px; line-height: 1.4; }
.mt-blog-card p {
  color: var(--mt-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog pagination ---------------------------------------- */
.mt-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}
.mt-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--mt-line);
  color: var(--mt-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.mt-pagination-link:hover {
  border-color: var(--mt-brand);
  color: var(--mt-brand);
  text-decoration: none;
}
.mt-pagination-link.active {
  background: var(--mt-brand);
  border-color: var(--mt-brand);
  color: #fff;
}

