/* muderi.com — the product site, in MUDERI's own look (the console's Fluent / Dynamics manner) */
:root {
  --bar: #002050; --blue: #0F6CBD; --blue-2: #115EA3; --blue-bg: #EBF3FC; --ink: #1B1B1B; --ink-2: #424242; --muted: #616161;
  --line: #E0E0E0; --canvas: #FAF9F8; --card: #FFFFFF; --good: #107C10;
  --shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .14);
  --shadow-16: 0 0 2px rgba(0, 0, 0, .12), 0 8px 16px rgba(0, 0, 0, .14);
  --wrap: min(1160px, 100% - 32px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--canvas); color: var(--ink);
  font: 16px/1.65 "Segoe UI", "IBM Plex Sans Arabic", -apple-system, Tahoma, sans-serif; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { inline-size: var(--wrap); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- header ---- */
.site-header { position: sticky; inset-block-start: 0; z-index: 20; background: var(--bar); color: #FFFFFF; }
.header-inner { display: flex; align-items: center; gap: 16px; block-size: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; font-weight: 700; letter-spacing: .5px; flex-shrink: 0; }
.mark { inline-size: 32px; block-size: 32px; display: grid; place-items: center; background: #FFFFFF; color: var(--bar); font-weight: 800; }
.brand small { font-weight: 400; opacity: .8; letter-spacing: 0; }
.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.site-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-menu a { display: block; padding: 8px 12px; color: #FFFFFF; text-decoration: none; border-radius: 4px; white-space: nowrap; }
.site-menu a:hover { background: rgba(255, 255, 255, .12); }
.menu-button { display: none; }
.lang { color: #FFFFFF; text-decoration: none; padding: 8px 10px; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.lang:hover { background: rgba(255, 255, 255, .12); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 40px; padding: 8px 18px;
  border-radius: 4px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-2); }
.btn-light { background: #FFFFFF; color: var(--bar); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #8A8886; }
.btn-ghost:hover { background: #F3F2F1; }
.site-header .btn-primary { min-block-size: 36px; }

@media (max-width: 860px) {
  .menu-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; background: transparent; color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, .5); border-radius: 4px; font: inherit; cursor: pointer; }
  .site-menu[popover] { position: fixed; inset: auto; inset-block-start: 64px; inset-inline-end: 16px; margin: 0;
    inline-size: min(80dvw, 18rem); padding: 6px 0; border: 0; border-radius: 4px; background: #FFFFFF; box-shadow: var(--shadow-16);
    flex-direction: column; align-items: stretch; }
  .site-menu[popover]:not(:popover-open) { display: none; }
  .site-menu[popover] a { color: var(--ink); padding: 10px 16px; border-radius: 0; }
  .site-menu[popover] a:hover { background: #F3F2F1; }
  .site-header .btn-primary { display: none; }
}

/* ---- hero ---- */
.hero { background: linear-gradient(180deg, #EAF1FB 0%, var(--canvas) 100%); padding-block: 56px 40px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; color: var(--blue); font-weight: 600; margin-block-end: 12px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; color: var(--bar); }
.hero .lead { margin-block: 16px 24px; font-size: 18px; color: var(--ink-2); max-inline-size: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin-block-start: 14px; color: var(--muted); font-size: 14px; }

/* the product, drawn: the console's app bar, site map and figures */
.shot { background: #FFFFFF; box-shadow: var(--shadow-16); border-radius: 6px; overflow: hidden; font-size: 12px; }
.shot-bar { display: flex; align-items: center; gap: 10px; block-size: 34px; padding-inline: 10px; background: var(--bar); color: #FFFFFF; }
.shot-bar b { letter-spacing: .5px; }
.shot-bar i { flex: 1; max-inline-size: 180px; block-size: 18px; margin-inline: auto; border-radius: 3px; background: rgba(255, 255, 255, .92); }
.shot-cmd { display: flex; gap: 12px; padding: 7px 12px; border-block-end: 1px solid var(--line); color: var(--ink-2); }
.shot-cmd span:first-child { background: var(--blue); color: #FFFFFF; padding: 1px 8px; border-radius: 3px; }
.shot-body { display: flex; min-block-size: 220px; }
.shot-map { inline-size: 30%; border-inline-end: 1px solid var(--line); padding-block: 8px; }
.shot-map span { display: block; padding: 5px 10px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.shot-map span.on { background: var(--blue-bg); color: var(--ink); font-weight: 600; border-inline-start: 3px solid var(--blue); }
.shot-map small { display: block; padding: 8px 10px 2px; color: var(--muted); font-weight: 600; }
.shot-main { flex: 1; padding: 10px; background: var(--canvas); display: grid; gap: 8px; align-content: start; }
.shot-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shot-kpi { background: #FFFFFF; box-shadow: var(--shadow); padding: 8px; border-radius: 3px; }
.shot-kpi small { color: var(--muted); display: block; }
.shot-kpi b { font-size: 15px; }
.shot-flow { display: flex; justify-content: space-between; background: #FFFFFF; box-shadow: var(--shadow); padding: 10px 12px; border-radius: 3px; }
.shot-flow span { inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--blue); }
.shot-flow span.next { background: #FFFFFF; border: 2px solid var(--line); }
.shot-chart { display: flex; align-items: flex-end; gap: 8px; block-size: 70px; background: #FFFFFF; box-shadow: var(--shadow); padding: 8px 12px; border-radius: 3px; }
.shot-chart i { flex: 1; background: var(--blue); border-radius: 2px 2px 0 0; }
.shot-chart i:nth-child(even) { background: #8A8886; }

/* ---- sections ---- */
section.block { padding-block: 64px; }
section.alt { background: #FFFFFF; }
.head { max-inline-size: 760px; margin-block-end: 32px; }
.head h2 { font-size: clamp(24px, 3vw, 34px); color: var(--bar); }
.head p { margin-block-start: 10px; color: var(--ink-2); font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); box-shadow: var(--shadow); border-radius: 4px; padding: 22px; }
section.alt .card { background: var(--canvas); box-shadow: none; border: 1px solid var(--line); }
.card h3 { font-size: 18px; margin-block-end: 8px; }
.card p { color: var(--ink-2); }
.card ul { margin: 12px 0 0; padding-inline-start: 18px; color: var(--ink-2); }
.card li { margin-block: 4px; }
.icon { inline-size: 40px; block-size: 40px; display: grid; place-items: center; border-radius: 4px; background: var(--blue-bg); color: var(--blue);
  margin-block-end: 14px; }
.icon svg { inline-size: 22px; block-size: 22px; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.app { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--canvas); border: 1px solid var(--line); border-radius: 4px; font-weight: 600; }
.app i { inline-size: 10px; block-size: 10px; border-radius: 2px; background: var(--blue); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding-block-start: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; inset-block-start: 22px; inset-inline-start: 22px;
  inline-size: 30px; block-size: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #FFFFFF; font-weight: 700; }
.gulf { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gulf div { display: flex; gap: 10px; align-items: flex-start; }
.gulf div::before { content: ""; inline-size: 18px; block-size: 18px; flex-shrink: 0; margin-block-start: 3px; border-radius: 50%;
  background: var(--good); mask: radial-gradient(circle, #000 60%, transparent 62%); }

/* ---- FAQ ---- */
.faq { max-inline-size: 860px; display: grid; gap: 8px; }
.faq details { background: #FFFFFF; border: 1px solid var(--line); border-radius: 4px; }
.faq summary { list-style: none; display: flex; align-items: center; gap: .6ch; padding: 14px 18px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; inline-size: .6em; block-size: .6em; flex-shrink: 0; border: solid var(--blue); border-width: 0 2px 2px 0;
  rotate: 135deg; }
.faq summary:dir(ltr)::before { rotate: -45deg; }
.faq details[open] > summary::before { rotate: 45deg; }
@media (prefers-reduced-motion: no-preference) { .faq summary::before { transition: rotate .2s; } }
.faq details > div { padding: 0 18px 16px; color: var(--ink-2); }

/* ---- call to action and footer ---- */
.cta { background: var(--bar); color: #FFFFFF; padding-block: 56px; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { font-size: clamp(22px, 3vw, 30px); }
.cta p { margin-block-start: 8px; opacity: .85; }
.contact { margin-block-start: 14px; font-size: 15px; line-height: 1.9; }
.contact b, .contact a { color: #FFFFFF; }
.contact a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.site-footer { padding-block: 24px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-block: 36px 28px; }
  section.block { padding-block: 44px; }
  .shot-map { display: none; }
  .shot-kpis { grid-template-columns: repeat(2, 1fr); }
  .shot-kpi:nth-child(3) { display: none; }
}
