/* 054 · MetricX Studio (متريكس استوديو) — 1:1 Single-Screen Vermilion Editorial Stylesheet */
:root {
  --mx-bg: #e02b10;
  --mx-ink: #ffffff;
  --mx-dark: #111111;
  --mx-caption: #737373;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--mx-bg);
  color: var(--mx-ink);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, a, button, span { letter-spacing: 0; }
[dir="ltr"] { font-family: 'JetBrains Mono', 'Readex Pro', monospace; }

/* Fixed Full-Viewport Vermilion Portrait Backdrop */
.mx-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--mx-bg);
}

.mx-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mx-wash {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(48% 55% at 50% 48%, rgba(224, 43, 16, 0) 0%, rgba(224, 43, 16, 0.52) 78%),
    linear-gradient(180deg, rgba(224, 43, 16, 0.4) 0%, rgba(224, 43, 16, 0.08) 45%, rgba(180, 26, 5, 0.72) 100%);
}

/* Fixed Top Navigation Bar */
.mx-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 30;
  padding: 20px clamp(20px, 3.2vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mx-left-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mx-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mx-nav-pill {
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mx-nav-pill.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  font-weight: 700;
}

.mx-outline-cta {
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.mx-outline-cta:hover {
  background: #ffffff;
  color: #dc2626;
}

/* Single-Screen Foreground Grid */
.mx-screen {
  position: relative;
  z-index: 20;
  min-height: 100dvh;
  padding: 86px clamp(20px, 3.2vw, 40px) 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Middle 2-Column Flanking Editorial Row */
.mx-mid-row {
  max-width: 1220px;
  width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.mx-side-block {
  max-width: 270px;
  background: rgba(185, 30, 8, 0.42);
  backdrop-filter: blur(6px);
  padding: 16px 18px;
  border-radius: 16px;
}

.mx-eyebrow {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

/* Bottom Anchor Row: Monumental Display H1 + Big White Pill CTA + 2 Glass KPI Cards */
.mx-bot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.mx-h1 {
  margin: 0 0 18px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(3.1rem, 8.2vw, 6.8rem);
  font-weight: 800;
  line-height: 0.92;
  color: #ffffff;
}

.mx-cta-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.mx-big-pill {
  padding: 18px 46px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  color: #000000;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease;
}

.mx-big-pill:hover { background: #f5f5f5; transform: translateY(-2px); }

.mx-kpi-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mx-kpi-card {
  min-width: 158px;
  min-height: 146px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  color: var(--mx-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mx-kpi-card strong {
  font-family: 'Readex Pro', sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
}

.mx-kpi-card span {
  font-size: 0.78rem;
  color: var(--mx-caption);
  font-weight: 600;
}

.mx-showcase-mini {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .mx-pills { display: none; }
  .mx-mid-row { flex-direction: column; align-items: flex-start; margin: 24px 0; }
}
