/*
  Mashroaat Platforms — marketing site.

  Continuity with the products themselves is deliberate: same type family, same
  restrained palette, so arriving at a platform from here doesn't feel like a
  different company. The one saturated colour is reserved for entry points,
  because a directory of platforms is really a directory of doors.
*/

:root {
  --ink: #16181d;
  --ink-2: #4a515a;
  --ink-3: #7c848e;
  --paper: #fbfbfa;
  --panel: #ffffff;
  --line: #e4e6e9;
  --line-strong: #ccd0d5;
  --ground: #12151a;
  --ground-2: #1c2029;
  --signal: #b4530f;
  --signal-soft: #fdf1e6;
  --calm: #0f6e56;
  --calm-soft: #e4f3ee;

  --sans: "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1080px;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { margin: 0; font-size: 16px; line-height: 1.7; }

.wrap {
  max-inline-size: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* URLs and technical strings stay left-to-right inside Arabic prose */
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--mono);
  font-size: 0.92em;
}

/* ---------------------------------------------------------------- header */

header.site {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  background: rgba(251, 251, 250, 0.92);
  backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-block-size: 62px;
}

.brand {
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  color: var(--ink);
}
.brand span { color: var(--signal); }

header.site nav {
  display: flex;
  gap: 18px;
  margin-inline-start: auto;
  flex-wrap: wrap;
  align-items: center;
}

header.site nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
}
header.site nav a:hover { color: var(--ink); }

.lang {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}
.lang:hover { background: var(--line); }

/* ------------------------------------------------------------------ hero */

.hero {
  background: var(--ground);
  color: #fff;
  padding-block: 88px 96px;
  border-block-end: 1px solid var(--ground-2);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 600;
  max-inline-size: 20ch;
}

.hero p {
  font-size: clamp(16px, 2.2vw, 19px);
  color: #b9c0c9;
  margin: 0 0 30px;
  max-inline-size: 56ch;
}

.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 15px;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease;
}
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: #9c4709; }
.btn-ghost { border: 1px solid #3a414c; color: #e7eaee; }
.btn-ghost:hover { border-color: #5b636f; }

/* -------------------------------------------------------------- sections */

section { padding-block: 72px; }
section.alt { background: var(--panel); border-block: 1px solid var(--line); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 10px;
}

h2.section {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 14px;
  font-weight: 600;
}

.lede {
  color: var(--ink-2);
  max-inline-size: 62ch;
  margin: 0 0 36px;
  font-size: 17px;
}

/* --------------------------------------------------------- product cards */

.product {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 30px;
}

@media (min-width: 860px) {
  .product { grid-template-columns: 1.25fr 1fr; }
}

.product + .product { margin-block-start: 28px; }

.product h3 {
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 600;
}

.product .tag {
  display: inline-block;
  font-size: 12px;
  border-radius: 5px;
  padding: 2px 8px;
  background: var(--calm-soft);
  color: var(--calm);
  margin-inline-start: 8px;
  vertical-align: middle;
}

.product p.what { color: var(--ink-2); margin: 0 0 18px; }

ul.features { list-style: none; margin: 0; padding: 0; }

ul.features li {
  position: relative;
  padding-inline-start: 20px;
  margin-block-end: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

ul.features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 11px;
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0.55;
}

/* The signature element: the actual doors into each platform. */
.doors {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 6px;
  align-self: start;
}

.door {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 13px 14px;
  border-radius: 7px;
  transition: background 130ms ease;
}
.door + .door { border-block-start: 1px solid var(--line); }
.door:hover { background: var(--signal-soft); }

.door .who {
  font-size: 12px;
  color: var(--ink-3);
  display: block;
  margin-block-end: 3px;
}
.door .label { font-size: 15px; font-weight: 500; display: block; }
.door .url {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  direction: ltr;
  unicode-bidi: isolate;
  display: block;
  margin-block-start: 4px;
  word-break: break-all;
}

.note {
  font-size: 13px;
  color: var(--ink-3);
  margin-block-start: 12px;
  line-height: 1.6;
}

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

.grid3 { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }

.cell h4 { margin: 0 0 6px; font-size: 16.5px; font-weight: 600; }
.cell p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------------------------------------------------------------- footer */

footer.site {
  background: var(--ground);
  color: #a8b0ba;
  padding-block: 44px;
  font-size: 14.5px;
}
footer.site a { color: #e7eaee; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* Contact panel and its secondary button. */
.contactbox {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 34px;
}
.contactbox .lede { margin-block-end: 24px; }

.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline:hover { background: var(--line); }
