/* =====================================================================
   Metatronic design system - "Industrial signal"
   Colors come from the logo mark: navy #00186D, blue #077EE8,
   cyan #00DAE5 and the icon yellow #FFDE59 (used as the action color).
   ===================================================================== */

:root {
  --navy-950: #030A1F;
  --navy-900: #071233;
  --navy-800: #0C1C4A;
  --navy-700: #00186D;
  --brand-600: #0667C2;
  --brand-500: #077EE8;
  --brand-400: #3C9BF0;
  --aqua-400: #00DAE5;
  --aqua-300: #6BEAF1;
  --signal-500: #FFD21F;
  --signal-400: #FFDE59;
  --signal-300: #FFE98F;
  --steel-50: #F4F6FA;
  --steel-100: #EAEEF5;
  --steel-200: #DDE3EC;
  --steel-300: #C4CCDA;
  --steel-400: #93A0B7;
  --steel-500: #66738E;
  --steel-600: #4A5672;
  --steel-700: #333E58;
  --line: var(--steel-200);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --cut: 16px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--navy-950); }
body { font-family: 'Inter', 'Cairo', system-ui, sans-serif; color: var(--navy-900); background: #fff; text-rendering: optimizeLegibility; }
html[dir="rtl"] body { font-family: 'Cairo', 'Inter', system-ui, sans-serif; }
::selection { background: var(--signal-400); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; }
img, video { max-width: 100%; }

.font-display { font-family: 'Archivo', 'Cairo', system-ui, sans-serif; font-stretch: 112%; }
html[dir="rtl"] .font-display { font-family: 'Cairo', system-ui, sans-serif; font-stretch: normal; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Letter-spacing breaks the joining of Arabic letters: neutralise tracking and the mono face in RTL */
html[dir="rtl"] [class*="tracking-"] { letter-spacing: 0 !important; }
html[dir="rtl"] .font-mono { font-family: 'Cairo', ui-monospace, monospace; }
/* LTR islands (figures, phones, hours) keep the RTL alignment of their context */
html[dir="rtl"] [dir="ltr"]:not(.article-body):not(.article-body *) { text-align: right; }

/* ---------- Type scale ---------- */
.mt-h1 { font-family: 'Archivo', 'Cairo', system-ui, sans-serif; font-stretch: 112%; font-weight: 800; font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1.02; letter-spacing: -.025em; }
.mt-h2 { font-family: 'Archivo', 'Cairo', system-ui, sans-serif; font-stretch: 110%; font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -.02em; }
.mt-h3 { font-family: 'Archivo', 'Cairo', system-ui, sans-serif; font-stretch: 106%; font-weight: 750; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; }
html[dir="rtl"] .mt-h1, html[dir="rtl"] .mt-h2, html[dir="rtl"] .mt-h3 { font-family: 'Cairo', system-ui, sans-serif; font-stretch: normal; letter-spacing: 0; line-height: 1.25; }
.mt-lead { font-size: 1.075rem; line-height: 1.75; color: var(--steel-600); }
.on-dark .mt-lead, .mt-lead.on-dark { color: #A9B7D0; }

/* Kicker: logo bars + mono index + label */
.mt-kicker { display: inline-flex; align-items: center; gap: .6rem; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); line-height: 1; }
html[dir="rtl"] .mt-kicker { font-family: 'Cairo', sans-serif; letter-spacing: 0; font-size: .85rem; }
.mt-kicker-num { color: var(--steel-400); }
.mt-kicker-sep { color: var(--steel-300); margin-inline: -.2rem; }
.on-dark .mt-kicker { color: var(--aqua-300); }
.on-dark .mt-kicker-num { color: #6F7FA3; }
.on-dark .mt-kicker-sep { color: #3A4A70; }

/* The three stepped bars of the logo, as a small brand glyph */
.mt-bars { position: relative; display: inline-block; width: 18px; height: 12px; flex-shrink: 0; }
.mt-bars i { position: absolute; height: 3px; width: 11px; border-radius: 1px; transform: skewX(-38deg); }
.mt-bars i:nth-child(1) { top: 0; inset-inline-start: 7px; background: var(--aqua-400); }
.mt-bars i:nth-child(2) { top: 4.5px; inset-inline-start: 3.5px; background: var(--brand-500); }
.mt-bars i:nth-child(3) { top: 9px; inset-inline-start: 0; background: var(--navy-700); }
.on-dark .mt-bars i:nth-child(3) { background: #fff; }

/* ---------- Buttons ---------- */
.mt-btn { --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: var(--h); padding: 0 1.35rem; font-weight: 600; font-size: .9rem; letter-spacing: .005em; border-radius: 3px; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), color .2s, border-color .2s, box-shadow .2s; }
.mt-btn .arrow { transition: transform .25s var(--ease); }
.mt-btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
html[dir="rtl"] .mt-btn:hover .arrow, html[dir="rtl"] .group:hover .mt-go .arrow, html[dir="rtl"] .mt-link:hover .arrow { transform: scaleX(-1) translateX(3px); }
.mt-btn-sm { --h: 40px; padding: 0 1rem; font-size: .84rem; }
.mt-btn-lg { --h: 54px; padding: 0 1.6rem; font-size: .95rem; }
.mt-btn-signal, .mt-btn-navy { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
html[dir="rtl"] .mt-btn-signal, html[dir="rtl"] .mt-btn-navy { clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.mt-btn-signal { background: var(--signal-400); color: var(--navy-900); }
.mt-btn-signal:hover { background: var(--signal-500); }
.mt-btn-navy { background: var(--navy-900); color: #fff; }
.mt-btn-navy:hover { background: var(--brand-600); }
.mt-btn-line { background: #fff; color: var(--navy-900); border: 1px solid var(--steel-300); }
.mt-btn-line:hover { border-color: var(--navy-900); }
.mt-btn-ghost { background: rgba(255, 255, 255, .04); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.mt-btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.mt-btn:focus-visible { clip-path: none; outline: 2px solid var(--brand-500); outline-offset: 3px; }

/* Text link with arrow */
.mt-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .88rem; color: var(--brand-600); }
.mt-link:hover { color: var(--navy-900); }
.mt-link:hover .arrow { transform: translateX(3px); }
.mt-link .arrow { transition: transform .25s var(--ease); }
.on-dark .mt-link { color: var(--aqua-300); }
.on-dark .mt-link:hover { color: #fff; }

/* Square arrow chip used at the corner of cards */
.mt-go { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--steel-200); color: var(--navy-900); background: #fff; border-radius: 3px; transition: background-color .25s, border-color .25s, color .25s; }
.mt-go .arrow { transition: transform .25s var(--ease); }
.group:hover .mt-go { background: var(--signal-400); border-color: var(--signal-400); color: var(--navy-900); }
.group:hover .mt-go .arrow { transform: translateX(2px); }

.on-dark .mt-go { background: transparent; border-color: rgba(255, 255, 255, .22); color: #fff; }
.on-dark .group:hover .mt-go, .on-dark.group:hover .mt-go { background: var(--signal-400); border-color: var(--signal-400); color: var(--navy-900); }

/* "Add as preferred source on Google" badge */
.google-source { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--steel-300); border-radius: 4px; padding: .75rem .9rem; color: #1F1F1F; line-height: 1.3; transition: border-color .2s, box-shadow .2s; }
.google-source:hover { border-color: var(--steel-500); box-shadow: 0 10px 24px -16px rgba(7, 18, 51, .4); }
.google-source strong { font-weight: 800; letter-spacing: .01em; }

/* Home hero media: slow settle-in zoom */
.mt-hero-media { animation: mt-settle 2.4s var(--ease) both; }
@keyframes mt-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
html[dir="rtl"] .mt-hero-media.is-mirrored { transform: scaleX(-1); animation-name: mt-settle-mirror; }
@keyframes mt-settle-mirror { from { transform: scaleX(-1) scale(1.08); } to { transform: scaleX(-1) scale(1); } }

/* ---------- Surfaces ---------- */
.mt-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.mt-card-hover { transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.mt-card-hover:hover { border-color: var(--brand-500); transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(7, 18, 51, .45); }

/* Chamfered ("machined") corner. The ::after draws the diagonal edge line. */
.mt-cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
html[dir="rtl"] .mt-cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.mt-cut.mt-card, .mt-cut.mt-edge { position: relative; }
.mt-cut.mt-card::after, .mt-cut.mt-edge::after { content: ''; position: absolute; top: 0; inset-inline-end: 0; width: var(--cut); height: var(--cut); pointer-events: none; background: linear-gradient(to bottom left, transparent calc(50% - 1px), var(--cut-color, var(--line)) calc(50% - 1px), var(--cut-color, var(--line)) calc(50% + 1px), transparent calc(50% + 1px)); }
html[dir="rtl"] .mt-cut.mt-card::after, html[dir="rtl"] .mt-cut.mt-edge::after { background: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--cut-color, var(--line)) calc(50% - 1px), var(--cut-color, var(--line)) calc(50% + 1px), transparent calc(50% + 1px)); }
.mt-card-hover.mt-cut:hover { --cut-color: var(--brand-500); }

/* Icon socket */
.mt-socket { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid var(--steel-200); background: var(--steel-50); color: var(--brand-600); border-radius: 3px; transition: background-color .25s, color .25s, border-color .25s; }
.group:hover .mt-socket { background: var(--navy-900); border-color: var(--navy-900); color: var(--signal-400); }
.on-dark .mt-socket { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); color: var(--aqua-300); }

/* Small labels */
.mt-tag { display: inline-flex; align-items: center; gap: .4rem; height: 26px; padding: 0 .6rem; border: 1px solid var(--steel-200); background: #fff; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-600); border-radius: 2px; }
html[dir="rtl"] .mt-tag { font-family: 'Cairo', sans-serif; letter-spacing: 0; font-size: .75rem; }
.mt-tag-dark { background: rgba(3, 10, 31, .55); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mt-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--signal-400); flex-shrink: 0; }

/* Filter chips */
.mt-chip { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1rem; border: 1px solid var(--steel-200); background: #fff; color: var(--steel-600); font-size: .85rem; font-weight: 600; border-radius: 3px; white-space: nowrap; transition: border-color .2s, color .2s, background-color .2s; }
.mt-chip:hover { border-color: var(--navy-900); color: var(--navy-900); }
.mt-chip[aria-pressed="true"], .mt-chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.mt-chip .count { font-family: 'JetBrains Mono', monospace; font-size: .7rem; opacity: .6; }

/* ---------- Engineering-drawing details ---------- */
.mt-grid-dark { background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; }
.mt-grid-light { background-image: linear-gradient(var(--steel-100) 1px, transparent 1px), linear-gradient(90deg, var(--steel-100) 1px, transparent 1px); background-size: 48px 48px; }
.mt-fade-b { -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.mt-fade-r { -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 80% 20%, #000 10%, transparent 65%); }
.mt-fade-l { -webkit-mask-image: radial-gradient(ellipse at 15% 30%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 15% 30%, #000 10%, transparent 65%); }

/* Measuring scale: short tick every 8px, long tick every 64px */
.mt-ruler { --tick: rgba(7, 18, 51, .22); height: 10px; background:
  repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 64px) left bottom / 100% 10px no-repeat,
  repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 8px) left bottom / 100% 5px no-repeat; }
.on-dark .mt-ruler, .mt-ruler.on-dark { --tick: rgba(255, 255, 255, .2); }

/* Corner registration marks around a frame (place inside a relative parent) */
.mt-marks { position: absolute; inset: -10px; pointer-events: none; --m: var(--steel-400); --s: 14px; background:
  linear-gradient(var(--m) 0 0) top left / var(--s) 1px no-repeat,
  linear-gradient(var(--m) 0 0) top left / 1px var(--s) no-repeat,
  linear-gradient(var(--m) 0 0) top right / var(--s) 1px no-repeat,
  linear-gradient(var(--m) 0 0) top right / 1px var(--s) no-repeat,
  linear-gradient(var(--m) 0 0) bottom left / var(--s) 1px no-repeat,
  linear-gradient(var(--m) 0 0) bottom left / 1px var(--s) no-repeat,
  linear-gradient(var(--m) 0 0) bottom right / var(--s) 1px no-repeat,
  linear-gradient(var(--m) 0 0) bottom right / 1px var(--s) no-repeat; }
.on-dark .mt-marks, .mt-marks.on-dark { --m: rgba(255, 255, 255, .35); }

/* Duotone photos: every stock photo takes the navy/blue brand tint */
.mt-duo { position: relative; overflow: hidden; background: var(--navy-800); isolation: isolate; }
.mt-duo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .78; filter: contrast(1.1); transition: opacity .5s, transform .9s var(--ease); }
.mt-duo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(7, 126, 232, .28), rgba(3, 10, 31, .1) 60%); pointer-events: none; }
.group:hover .mt-duo img { opacity: .95; transform: scale(1.04); }

/* Big numbers */
.mt-num { font-family: 'Archivo', system-ui, sans-serif; font-stretch: 112%; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }

/* Hairline divided lists (spec-sheet look) */
.mt-spec > * + * { border-top: 1px solid var(--line); }
.on-dark .mt-spec > * + * { border-color: rgba(255, 255, 255, .1); }

/* ---------- Page hero for inner pages ---------- */
.mt-pagehero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; }
.mt-pagehero::before { content: ''; position: absolute; top: -220px; inset-inline-end: -160px; width: 620px; height: 620px; border-radius: 999px; background: radial-gradient(circle, rgba(7, 126, 232, .38), transparent 65%); pointer-events: none; }
.mt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #7D8DB0; }
html[dir="rtl"] .mt-crumbs { font-family: 'Cairo', sans-serif; letter-spacing: 0; font-size: .82rem; }
.mt-crumbs a { color: #A9B7D0; transition: color .2s; }
.mt-crumbs a:hover { color: #fff; }
.mt-crumbs .sep { color: #3A4A70; }
.mt-crumbs .here { color: var(--signal-400); }
.mt-crumbs.on-light { color: var(--steel-500); }
.mt-crumbs.on-light a { color: var(--steel-600); }
.mt-crumbs.on-light a:hover { color: var(--navy-900); }
.mt-crumbs.on-light .sep { color: var(--steel-300); }
.mt-crumbs.on-light .here { color: var(--brand-600); }

/* ---------- Forms ---------- */
.mt-label { display: block; margin-bottom: .45rem; font-size: .8rem; font-weight: 600; color: var(--steel-700); }
.mt-label .req { color: #D93636; }
.mt-input { display: block; width: 100%; height: 48px; padding: 0 .95rem; border: 1px solid var(--steel-300); background: #fff; color: var(--navy-900); font-size: .92rem; border-radius: 3px; transition: border-color .2s, box-shadow .2s; }
textarea.mt-input { height: auto; min-height: 140px; padding: .8rem .95rem; resize: vertical; line-height: 1.6; }
select.mt-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5672' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px; padding-inline-end: 2.5rem; }
html[dir="rtl"] select.mt-input { background-position: left .9rem center; }
.mt-input::placeholder { color: var(--steel-400); }
.mt-input:hover { border-color: var(--steel-400); }
.mt-input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(7, 126, 232, .15); }
input[type="file"].mt-input { height: auto; padding: .7rem .95rem; font-size: .85rem; }

/* ---------- Accordion (FAQ) ---------- */
.mt-acc { border-top: 1px solid var(--line); }
.mt-acc:last-child { border-bottom: 1px solid var(--line); }
.mt-acc button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; text-align: start; font-weight: 650; font-size: 1.02rem; color: var(--navy-900); }
.mt-acc button:hover { color: var(--brand-600); }
.mt-acc-icon { position: relative; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--steel-300); border-radius: 3px; transition: background-color .25s, border-color .25s, transform .3s var(--ease); }
.mt-acc-icon::before, .mt-acc-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.mt-acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.mt-acc.is-open .mt-acc-icon { background: var(--signal-400); border-color: var(--signal-400); }
.mt-acc.is-open .mt-acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.mt-acc-panel { padding: 0 0 1.5rem; color: var(--steel-600); line-height: 1.75; max-width: 46rem; }

/* ---------- Header ---------- */
.mt-topbar { background: var(--navy-950); color: #A9B7D0; font-size: .78rem; }
.mt-topbar a:hover { color: #fff; }
.mt-lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, .14); border-radius: 2px; overflow: hidden; }
.mt-lang a { padding: .2rem .55rem; font-family: 'JetBrains Mono', monospace; font-size: .68rem; font-weight: 600; letter-spacing: .08em; color: #8C9BBB; }
.mt-lang a + a { border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.mt-lang a:hover { color: #fff; }
.mt-lang a.is-active { background: var(--signal-400); color: var(--navy-900); }
.mt-lang.on-light { border-color: var(--steel-200); }
.mt-lang.on-light a { color: var(--steel-500); }
.mt-lang.on-light a + a { border-color: var(--steel-200); }
#site-header { transition: box-shadow .3s, background-color .3s; }
#site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(7, 18, 51, .35); }
.mt-nav-link { position: relative; display: flex; align-items: center; height: 76px; padding: 0 .85rem; font-size: .9rem; font-weight: 500; white-space: nowrap; color: var(--steel-600); transition: color .2s; }
@media (max-width: 1279px) { .mt-nav-link { padding: 0 .55rem; font-size: .86rem; } }
.mt-nav-link:hover { color: var(--navy-900); }
.mt-nav-link::after { content: ''; position: absolute; inset-inline: .85rem; bottom: -1px; height: 3px; background: var(--signal-400); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
html[dir="rtl"] .mt-nav-link::after { transform-origin: right; }
.mt-nav-link:hover::after { transform: scaleX(.35); }
.mt-nav-link.is-active { color: var(--navy-900); font-weight: 600; }
.mt-nav-link.is-active::after { transform: scaleX(1); }
.mt-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--steel-200); border-radius: 3px; color: var(--navy-900); transition: border-color .2s, background-color .2s; }
.mt-iconbtn:hover { border-color: var(--navy-900); }
.mt-mnav a.mt-mlink { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: 'Archivo', 'Cairo', sans-serif; font-stretch: 108%; font-weight: 700; font-size: 1.15rem; color: var(--navy-900); }
html[dir="rtl"] .mt-mnav a.mt-mlink { font-family: 'Cairo', sans-serif; }
.mt-mnav a.mt-mlink.is-active { color: var(--brand-600); }

/* ---------- Brand marquee ---------- */
.mt-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mt-marquee-track { display: flex; width: max-content; animation: mt-scroll 60s linear infinite; }
.mt-marquee-track.is-reverse { animation-direction: reverse; }
.mt-marquee:hover .mt-marquee-track { animation-play-state: paused; }
.mt-logo-cell { display: flex; align-items: center; justify-content: center; width: 176px; height: 84px; flex-shrink: 0; border-inline-end: 1px solid var(--line); }
.mt-logo-cell img { max-height: 36px; max-width: 120px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.mt-logo-cell:hover img { filter: none; opacity: 1; }
@keyframes mt-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .mt-marquee-track { animation-name: mt-scroll-rtl; }
@keyframes mt-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: .08s; }
.js [data-reveal="3"] { transition-delay: .16s; }
.js [data-reveal="4"] { transition-delay: .24s; }

/* Pulsing status dot */
.mt-pulse { position: relative; width: 8px; height: 8px; border-radius: 99px; background: var(--aqua-400); flex-shrink: 0; }
.mt-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 99px; background: var(--aqua-400); animation: mt-ping 1.8s ease-out infinite; }
@keyframes mt-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }

/* ---------- Legacy classes still used by older templates (produit/detail.php) ---------- */
.btn-primary { display: inline-flex; align-items: center; gap: .5rem; background: var(--navy-900); color: #fff; padding: .7rem 1.3rem; border-radius: 3px; font-weight: 600; font-size: .88rem; transition: background-color .2s; }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--steel-300); color: var(--navy-900); background: #fff; padding: .65rem 1.25rem; border-radius: 3px; font-weight: 600; font-size: .88rem; transition: border-color .2s; }
.btn-secondary:hover { border-color: var(--navy-900); }
.btn-white { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(255, 255, 255, .3); color: #fff; padding: .7rem 1.3rem; border-radius: 3px; font-weight: 600; font-size: .88rem; }
.btn-white:hover { background: rgba(255, 255, 255, .1); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--brand-500); transform: translateY(-2px); }
.section-badge { display: inline-flex; align-items: center; gap: .5rem; font-family: 'JetBrains Mono', monospace; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); }
.breadcrumb a { color: var(--brand-600); }
.breadcrumb a:hover { text-decoration: underline; }
.bg-grid-pattern { background-image: radial-gradient(circle, var(--steel-200) 1px, transparent 1px); background-size: 28px 28px; }

/* ---------- Home hero title ---------- */
.mt-hero-title { font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; color: #fff; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.03em; }
.mt-hero-title > span { display: block; }
.mt-hero-title .l1 { font-stretch: 118%; background: linear-gradient(180deg, #FFFFFF 35%, #BCD0F7 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.mt-hero-title .l2 { position: relative; display: flex; align-items: flex-end; flex-wrap: wrap; gap: .25em .4em; margin: .14em 0 .12em; }
.mt-hero-title .l2-word { position: relative; display: inline-block; font-stretch: 125%; padding: .02em .16em .1em; }
.mt-hero-title .l2-word > span { filter: drop-shadow(0 0 28px rgba(0, 218, 229, .28)); }
.mt-hero-title .l2-word::before { content: ""; position: absolute; inset: 0; pointer-events: none; --mk: rgba(107, 234, 241, .7); --ms: .26em; background:
  linear-gradient(var(--mk), var(--mk)) top left / var(--ms) 2px, linear-gradient(var(--mk), var(--mk)) top left / 2px var(--ms),
  linear-gradient(var(--mk), var(--mk)) top right / var(--ms) 2px, linear-gradient(var(--mk), var(--mk)) top right / 2px var(--ms),
  linear-gradient(var(--mk), var(--mk)) bottom left / var(--ms) 2px, linear-gradient(var(--mk), var(--mk)) bottom left / 2px var(--ms),
  linear-gradient(var(--mk), var(--mk)) bottom right / var(--ms) 2px, linear-gradient(var(--mk), var(--mk)) bottom right / 2px var(--ms);
  background-repeat: no-repeat; }
.mt-hero-title .l3 { font-stretch: 112%; font-weight: 700; background: linear-gradient(90deg, #EAF1FF 0%, #A9C6F8 45%, #5FA8F2 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .1em; }
html[dir="rtl"] .mt-hero-title { font-family: 'Cairo', system-ui, sans-serif; letter-spacing: 0; line-height: 1.2; }
html[dir="rtl"] .mt-hero-title > span, html[dir="rtl"] .mt-hero-title .l2-word { font-stretch: normal; }
html[dir="rtl"] .mt-hero-title .l3 { background-image: linear-gradient(270deg, #EAF1FF 0%, #A9C6F8 45%, #5FA8F2 100%); }

/* ---------- Gradient headlines ---------- */
/* Signal gradient: aqua -> electric blue -> indigo, slowly drifting */
.mt-grad { background: linear-gradient(95deg, #00DAE5 0%, #3C9BF0 35%, #7B8CFF 60%, #00DAE5 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: mt-grad-drift 9s ease-in-out infinite alternate; padding-bottom: .08em; }
@keyframes mt-grad-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
/* Page H1s on dark heroes: white fading to ice blue */
.on-dark .mt-h1, .mt-h1.text-white { background: linear-gradient(180deg, #FFFFFF 30%, #B7CBF3 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .08em; }
.on-dark .mt-h1 .mt-grad, .mt-h1.text-white .mt-grad { filter: drop-shadow(0 0 22px rgba(0, 218, 229, .22)); }
/* Thin signal rule under every page H1 */
.mt-pagehero .mt-h1::after { content: ""; display: block; width: 4.5rem; height: 3px; margin-top: .35em; background: linear-gradient(90deg, var(--signal-400, #FFDE59) 0 40%, #00DAE5 40% 100%); -webkit-text-fill-color: initial; }
html[dir="rtl"] .mt-grad { background-image: linear-gradient(265deg, #00DAE5 0%, #3C9BF0 35%, #7B8CFF 60%, #00DAE5 100%); }
html[dir="rtl"] .mt-pagehero .mt-h1::after { background: linear-gradient(270deg, var(--signal-400, #FFDE59) 0 40%, #00DAE5 40% 100%); }

/* ---------- Option chips (radio inputs styled as buttons) ---------- */
.mt-opt { display: flex; align-items: center; justify-content: center; min-height: 2.6rem; padding: .35rem .7rem; border: 1px solid var(--steel-200); background: #fff; color: var(--navy-900); font-size: .84rem; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; border-radius: 2px; transition: border-color .2s, background-color .2s, color .2s; }
.mt-opt:hover { border-color: var(--brand-500); }
.peer:checked + .mt-opt { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.peer:focus-visible + .mt-opt { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* ---------- Horizontal product rail ---------- */
.mt-rail { scrollbar-width: none; }
.mt-rail::-webkit-scrollbar { display: none; }

/* ---------- Floating WhatsApp ---------- */
.mt-wa-float { position: fixed; z-index: 55; bottom: 1.5rem; inset-inline-end: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.mt-wa-btn { position: relative; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 9999px; background: #25D366; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6), 0 0 0 4px rgba(255,255,255,.9); transition: transform .25s ease, background-color .25s ease; }
.mt-wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25D366; opacity: .5; animation: mt-wa-ring 2.4s ease-out infinite; z-index: -1; }
.mt-wa-float:hover .mt-wa-btn, .mt-wa-float:focus-visible .mt-wa-btn { transform: scale(1.07); background: #1EBE5A; }
.mt-wa-float:focus-visible { outline: none; }
.mt-wa-float:focus-visible .mt-wa-btn { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--signal-400, #FFDE59); }
.mt-wa-label { display: none; background: #fff; border: 1px solid var(--line, #DCE3EE); border-inline-start: 3px solid #25D366; padding: .6rem .9rem; box-shadow: 0 12px 30px -12px rgba(3,10,31,.35); opacity: 0; transform: translateX(8px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; white-space: nowrap; }
html[dir="rtl"] .mt-wa-label { transform: translateX(-8px); }
@media (min-width: 768px) { .mt-wa-label { display: block; } }
.mt-wa-float:hover .mt-wa-label, .mt-wa-float:focus-visible .mt-wa-label { opacity: 1; transform: none; }
@media (max-width: 640px) { .mt-wa-float { bottom: 1rem; inset-inline-end: 1rem; } .mt-wa-btn { width: 3.25rem; height: 3.25rem; } }
@keyframes mt-wa-ring { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
@media print { .mt-wa-float { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mt-marquee-track, .mt-pulse::after, .mt-hero-media, .mt-wa-btn::before, .mt-grad { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .mt-card-hover:hover, .mt-card-hover:hover { transform: none; }
}
