
    :root {
      --ink: #111;
      --paper: #faf8f4;
      --card: #fff;
      --line: #e6e1d8;
      --muted: #6b665e;
      --accent: #e04a2f;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
      line-height: 1.6;
    }
    .en { font-family: "IBM Plex Sans", system-ui, sans-serif; }
    a { color: inherit; }
    .wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

    header { padding: 56px 0 40px; text-align: center; }
    header img { width: 120px; height: auto; }
    h1 { font-size: clamp(32px, 6vw, 52px); margin: 18px 0 6px; font-weight: 700; }
    .tagline { font-size: clamp(17px, 2.4vw, 21px); margin: 0; }
    .pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
    .pill { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 14px; }

    h2 { font-size: 22px; margin: 0 0 18px; }
    .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
    .app {
      position: relative;
      display: flex; flex-direction: column; align-items: center; text-align: center;
      background: var(--card); border: 1px solid var(--line); border-radius: 18px;
      padding: 22px 16px 18px; text-decoration: none; min-height: 270px;
      transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    }
    a.app:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.08); border-color: #cfc8bb; }
    .app img { height: 140px; width: auto; max-width: 100%; object-fit: contain; }
    .app .name { font-weight: 700; font-size: 18px; margin-top: 12px; }
    .app .what { font-size: 14px; color: var(--muted); }
    .app .what .en { direction: ltr; display: inline-block; }
    .badge {
      position: absolute; top: 12px; inset-inline-start: 12px;
      font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
      background: #f0ece4; color: var(--muted);
    }
    .badge.live { background: var(--accent); color: #fff; }

    section { padding: 24px 0 40px; }
    .about { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .about div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
    .about h3 { margin: 0 0 6px; font-size: 17px; }
    .about p { margin: 0; color: var(--muted); font-size: 15px; }
    .about .lead { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); padding: 36px 28px; text-align: center; }
    .about .lead p { color: #fff; font-size: clamp(22px, 4vw, 32px); font-weight: 700; line-height: 1.5; }

    footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
    footer p { margin: 4px 0; }
    .lang { position: absolute; top: 16px; inset-inline-end: 20px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
    .lang:hover { border-color: var(--ink); }
    html[lang="en"] body { font-family: "IBM Plex Sans", system-ui, sans-serif; }
      .credits { margin-top: 14px !important; direction: ltr; text-align: start; }
    html[dir="rtl"] .credits { text-align: right; }
    .credits a, footer nav a { text-decoration: none; border-bottom: 1px solid var(--line); }
    .credits a:hover, footer nav a:hover { border-color: var(--ink); }
    footer nav { display: flex; gap: 16px; margin-bottom: 10px; }
    .doc { max-width: 760px; margin: 0 auto; padding: 72px 0 40px; }
    .doc h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 4px; }
    .doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
    .doc h2 { font-size: 20px; margin: 32px 0 8px; }
    .doc p, .doc li { color: #2b2925; }
    .doc ul { padding-inline-start: 22px; }
    .back { display: inline-block; margin-bottom: 24px; color: var(--muted); text-decoration: none; }
    .app[style*="--c"] { background: var(--c); border-color: var(--c); }
    .app[style*="--c"] .what { color: rgba(0,0,0,.7); }
    .app.on-dark .name { color: #fff; }
    .app.on-dark .what { color: rgba(255,255,255,.82); }
    .app[style*="--c"] .badge { background: rgba(255,255,255,.85); color: #111; }
    .app[style*="--c"] .badge.live { background: #111; color: #fff; }
