/* Albushra Technology design system.
   Colors come from the company logo: deep navy, electric blue → cyan, gold dot. */
:root {
  --bg: #070d24;
  --bg-2: #0c1638;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(160, 190, 255, 0.14);
  --text: #e9efff;
  --muted: #a3b1d6;
  --blue: #2f6bff;
  --cyan: #2ec5ff;
  --gold: #f5b82e;
  --grad: linear-gradient(120deg, #2f6bff 0%, #2ec5ff 60%, #7ee0ff 100%);
  --radius: 18px;
  --shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.7);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f7ff;
  --bg-2: #e9eefc;
  --surface: #ffffff;
  --surface-2: #f0f4ff;
  --line: rgba(20, 40, 100, 0.12);
  --text: #0b1533;
  --muted: #4a5878;
  --blue: #1f56e0;
  --cyan: #0a8fc4;
  --gold: #a87300;
  --shadow: 0 18px 40px -24px rgba(20, 40, 100, 0.35);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f7ff;
    --bg-2: #e9eefc;
    --surface: #ffffff;
    --surface-2: #f0f4ff;
    --line: rgba(20, 40, 100, 0.12);
    --text: #0b1533;
    --muted: #4a5878;
    --blue: #1f56e0;
    --cyan: #0a8fc4;
    --gold: #a87300;
    --shadow: 0 18px 40px -24px rgba(20, 40, 100, 0.35);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 6vw, 56px); letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 3.4vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; direction: ltr; unicode-bidi: isolate; }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* language switching: both languages are in the HTML; CSS shows one */
:root[data-lang="ar"] .l-en, :root[data-lang="en"] .l-ar { display: none !important; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand-txt { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; line-height: 1.1; }
.brand-txt small { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.tools { display: flex; gap: 6px; }
.btn-ghost { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 14px var(--font); cursor: pointer; display: grid; place-items: center; }
@media (max-width: 720px) { .nav { display: none; } .tools { margin-inline-start: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; text-decoration: none; font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 10px 30px -12px rgba(47, 107, 255, 0.8); transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-alt { background: var(--surface-2); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 32px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.o1 { width: 420px; height: 420px; background: #1f4dff; top: -120px; inset-inline-end: -80px; animation: drift 14s ease-in-out infinite alternate; }
.o2 { width: 320px; height: 320px; background: #00b3ff; bottom: -140px; inset-inline-start: -60px; opacity: 0.35; animation: drift 18s ease-in-out infinite alternate-reverse; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); opacity: 0.5; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.eyebrow { font-family: var(--display); font-size: 13px; letter-spacing: 0.18em; color: var(--cyan); font-weight: 600; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.hero h1 .l-ar, .hero h1 .l-en { background: linear-gradient(120deg, var(--text) 30%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-art img { width: 100%; max-width: 360px; border-radius: 32px; box-shadow: 0 40px 90px -30px rgba(47, 107, 255, 0.6); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.stat { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font: 700 30px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 180px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* sections */
.section { padding: 56px 0; }
.sec-head { margin-bottom: 20px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.pill { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 14px var(--font); cursor: pointer; }
.pill.is-on { background: var(--grad); color: #fff; border-color: transparent; }
.search { display: block; margin: 14px 0 8px; }
.search input { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 16px var(--font); }
.group { margin-top: 28px; }
.group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 20px; }
.group-title .muted { font: 400 14px var(--font); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { position: relative; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); opacity: 0.9; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: var(--shadow); }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.card h3 { margin-bottom: 4px; }
.card p { color: var(--muted); font-size: 14px; min-height: 3em; }
.app-icon { border-radius: 14px; background: var(--surface-2); object-fit: cover; }
.app-icon.lg { width: 96px; height: 96px; border-radius: 24px; flex: none; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.s-live { color: #22c58b; border-color: rgba(34, 197, 139, 0.35); }
.badge.s-beta { color: var(--cyan); border-color: rgba(46, 197, 255, 0.35); }
.badge.s-prototype, .badge.s-soon { color: var(--gold); border-color: rgba(245, 184, 46, 0.35); }
.badge.s-archived { opacity: 0.7; }
.card.is-hidden, .group.is-hidden { display: none; }

/* about */
.about { background: linear-gradient(180deg, transparent, var(--bg-2)); }
.about-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.values li { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.values span { color: var(--muted); font-size: 14px; }
@media (max-width: 820px) { .about-in { grid-template-columns: 1fr; } }

.contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.contact-item { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.contact-item:hover { border-color: var(--blue); }
.contact-item span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

/* app page */
.app-hero { padding: 36px 0 24px; background: radial-gradient(ellipse at 80% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.app-head { display: flex; gap: 18px; align-items: center; }
.app-head h1 { font-size: clamp(26px, 5vw, 44px); margin-bottom: 4px; }
.app-body { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.features { padding-inline-start: 20px; }
.features li { margin-bottom: 6px; }
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shots img { height: 420px; width: auto; border-radius: 16px; scroll-snap-align: start; border: 1px solid var(--line); }
.facts { align-self: start; position: sticky; top: 84px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.back { color: var(--cyan); text-decoration: none; }
@media (max-width: 820px) { .app-body { grid-template-columns: 1fr; } .facts { position: static; } .app-head { align-items: flex-start; } .app-icon.lg { width: 72px; height: 72px; } }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 20px; margin-top: 40px; background: var(--bg-2); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer img { border-radius: 16px; }
.footer h3 { font-size: 15px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.copy { color: var(--muted); font-size: 13px; margin-top: 24px; }
@media (max-width: 720px) { .footer-in { grid-template-columns: 1fr; } }

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

/* Google Play closed testing */
.testers { margin-top: 20px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.testers ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 18px; }
.testers li > b { display: block; margin-bottom: 10px; }
.testers .btn { min-height: 44px; }
.tester-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tester-app { display: flex; gap: 12px; align-items: center; padding: 12px; min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; }
.tester-app:hover { border-color: var(--blue); }
.tester-app img { border-radius: 10px; flex: none; }
.tester-app span { display: grid; }
.tester-app small { color: var(--muted); font-size: 13px; line-height: 1.5; }
section[id], .group { scroll-margin-top: 80px; }
