/* Modrik — shared site styles (AR-first, RTL default) */
:root {
  --ink: #0b1220;          /* deep navy (shared with MinbarLive) */
  --ink-soft: #141b26;
  --ink-raised: #1b2433;
  --ivory: #ece6d8;
  --cream: #f6f1e7;
  --muted: rgba(236, 230, 216, 0.55);
  --muted-2: rgba(236, 230, 216, 0.34);
  --blue: #1f6feb;         /* action color */
  --blue-soft: #3b82f6;
  --gold: #e3c27a;         /* reserved: scripture / MinbarLive accents */
  --gold-deep: #c9a45c;
  --radius: 14px;
  --maxw: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: "Inter", "Segoe UI", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(236, 230, 216, 0.08);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; height: 66px; }
header.site .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: .3px; }
header.site .logo img { height: 34px; width: auto; }
nav.main { display: flex; gap: 26px; align-items: center; font-size: .95rem; }
nav.main a { color: var(--muted); transition: color .2s; }
nav.main a:hover, nav.main a.active { color: var(--ivory); }
.lang-switch {
  border: 1px solid rgba(236,230,216,.25); border-radius: 999px;
  padding: 4px 14px; font-size: .85rem; color: var(--ivory) !important;
}
.lang-switch:hover { border-color: var(--blue-soft); color: var(--blue-soft) !important; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% -10%, rgba(31,111,235,.18), transparent),
    radial-gradient(ellipse 50% 40% at 10% 110%, rgba(227,194,122,.07), transparent);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero .kicker { color: var(--blue-soft); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.25; font-weight: 800; max-width: 17em; }
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 38em; margin: 22px 0 34px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; border-radius: 10px; padding: 12px 26px; font-weight: 600;
  font-size: 1rem; transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 22px rgba(31,111,235,.35); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(236,230,216,.3); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory); }
.under-cta { color: var(--muted-2); font-size: .88rem; margin-top: 16px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--ink-soft); }
.section-kicker { color: var(--blue-soft); font-weight: 600; margin-bottom: 8px; }
h2.section-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
p.section-lead { color: var(--muted); max-width: 44em; margin-bottom: 40px; }

/* cards */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card {
  background: var(--ink-raised); border: 1px solid rgba(236,230,216,.07);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--muted); font-size: .95rem; }
.card .icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }

/* product feature rows */
.product-card {
  background: linear-gradient(160deg, var(--ink-raised), var(--ink-soft));
  border: 1px solid rgba(236,230,216,.09); border-radius: 18px; padding: 34px;
  display: flex; flex-direction: column; gap: 12px;
}
.product-card .plogo { height: 44px; width: auto; align-self: flex-start; }
.product-card h3 { font-size: 1.45rem; font-weight: 800; }
.product-card p { color: var(--muted); }
.product-card .link { color: var(--blue-soft); font-weight: 600; margin-top: 8px; }

/* screenshots */
.shot {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  border: 1px solid rgba(236,230,216,.1);
}
.shot img { width: 100%; }
.shot-cap { color: var(--muted-2); font-size: .85rem; margin-top: 10px; text-align: center; }
.shot-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { position: relative; padding: 26px 26px 26px; background: var(--ink-raised); border-radius: var(--radius); border: 1px solid rgba(236,230,216,.07); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-weight: 700; border-radius: 50%; margin-bottom: 14px;
}
.step h4 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; text-align: center; }
.stat .num { font-size: 2.1rem; font-weight: 800; color: var(--blue-soft); }
.stat .lbl { color: var(--muted); font-size: .9rem; }

/* minbarlive-specific accents */
.ml-gold { color: var(--gold); }
.quran-quote {
  font-family: "Amiri Quran", "Amiri", serif;
  color: var(--gold); font-size: 1.7rem; text-align: center; line-height: 2.2;
}
.ml-hero { background: url("minbarlive/hero-background.png") center/cover; position: relative; }
.ml-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11,18,32,.72), var(--ink)); }
.ml-hero .container { position: relative; z-index: 2; }

/* footer */
footer.site { background: #070d17; padding: 46px 0 30px; border-top: 1px solid rgba(236,230,216,.07); }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; margin-bottom: 26px; }
footer.site h4 { font-size: .95rem; margin-bottom: 12px; }
footer.site a { color: var(--muted); font-size: .9rem; display: block; margin-bottom: 8px; }
footer.site a:hover { color: var(--ivory); }
footer.site .fine { color: var(--muted-2); font-size: .82rem; border-top: 1px solid rgba(236,230,216,.06); padding-top: 20px; }

@media (max-width: 720px) {
  nav.main { gap: 16px; }
  nav.main a.hide-m { display: none; }
  .hero { padding: 64px 0 48px; }
}
