@font-face {
  font-family: "Plex Arabic";
  src: url("assets/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("assets/fonts/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0b1120;
  --bg2: #0f1830;
  --card: #141d33;
  --line: #24304d;
  --text: #f2f4f8;
  --muted: #9aa6bd;
  --accent: #7aa7ff;
  --mint: #3ddc97;
  --spark: #ffd166;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 80% -10%, #1c3d8c55, transparent), var(--bg);
  color: var(--text);
  font-family: "Plex Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

/* Language switching: show only the active language. */
html[lang="ar"] [lang="en"], html[lang="en"] [lang="ar"] { display: none !important; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 48px);
  background: #0b1120cc; backdrop-filter: blur(12px);
  border-bottom: 1px solid #ffffff10;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 10px; }
.brand.small { justify-content: center; font-size: .95rem; }
.brand.small img { border-radius: 6px; }
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--text); }
nav .pill { color: #0b1120; background: var(--mint); padding: 6px 16px; border-radius: 999px; font-weight: 700; }
#lang {
  background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer;
}

main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
section { padding: clamp(56px, 8vw, 96px) 0; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.15; margin: .2em 0 .4em; }
h1 em { font-style: normal; color: var(--mint); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 .6em; line-height: 1.3; }
h3 { margin: .4em 0 .3em; font-size: 1.15rem; }
.eyebrow { color: var(--spark); font-weight: 700; margin: 0; }
.lead { color: #cfd7e6; font-size: 1.12rem; max-width: 36em; }
.fine { color: var(--muted); font-size: .9rem; }
.sub { color: var(--muted); margin-top: -.6em; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 16px; font-weight: 700; font-size: 1rem;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn.primary { background: var(--mint); color: #08131f; box-shadow: 0 10px 30px #3ddc9733; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { border: 1px solid var(--line); color: var(--muted); }
.btn.big { padding: 18px 30px; font-size: 1.1rem; }

.hero-phones { position: relative; height: 620px; }
.phone {
  position: absolute; width: 270px; border-radius: 36px; padding: 10px;
  background: #05080f; border: 1px solid #ffffff1a;
  box-shadow: 0 40px 80px #00000080;
}
.phone img { border-radius: 28px; }
.phone.front { inset-inline-start: 6%; top: 40px; z-index: 2; }
.phone.back { inset-inline-start: 42%; top: 0; transform: rotate(4deg); opacity: .9; }

.features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features article {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.features p { color: var(--muted); margin: 0; }
.ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: #7aa7ff1f; color: var(--spark); font-size: 1.4rem;
}

.gallery {
  display: flex; gap: 18px; overflow-x: auto; padding-top: 0;
  scroll-snap-type: x mandatory;
}
.gallery figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.gallery img { border-radius: 24px; border: 1px solid var(--line); }
.gallery figcaption { text-align: center; color: var(--muted); margin-top: 8px; font-size: .95rem; }

.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-weight: 700;
}

.privacy { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.privacy ul { padding-inline-start: 1.1em; color: #cfd7e6; }
.privacy li { margin-bottom: .5em; }
.safety {
  background: #ffd16612; border: 1px solid #ffd16640; border-radius: var(--radius); padding: 24px;
}
.safety p { color: #e9dfc2; margin: 0; }

.download { text-align: center; }
.download img { margin: 0 auto 10px; border-radius: 22px; }
.download p { color: var(--muted); max-width: 34em; margin: 0 auto 24px; }
.verify { max-width: 640px; margin: 26px auto 0; text-align: start; color: var(--muted); }
.verify summary { cursor: pointer; color: var(--text); }
.verify dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.verify dt { color: var(--text); }
.verify dd { margin: 0; direction: ltr; text-align: start; }
.hash { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; word-break: break-all; }

footer {
  border-top: 1px solid #ffffff10; text-align: center; color: var(--muted);
  padding: 32px 16px 48px; font-size: .9rem;
}
footer p { margin: .4em 0; }

.doc { max-width: 760px; margin: 0 auto; padding: 48px 16px 80px; }
.doc h1 { font-size: 2.2rem; }
.doc h2 { font-size: 1.3rem; margin-top: 1.6em; }
.doc p, .doc li { color: #cfd7e6; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-phones { height: 520px; }
  .phone { width: 220px; }
  .features .grid { grid-template-columns: 1fr 1fr; }
  .privacy { grid-template-columns: 1fr; }
  nav a:not(.pill) { display: none; }
}
@media (max-width: 560px) {
  .features .grid { grid-template-columns: 1fr; }
  .hero-phones { height: 440px; }
  .phone { width: 180px; border-radius: 28px; }
  .phone img { border-radius: 20px; }
  .phone.back { inset-inline-start: 46%; }
}

.verify ol { margin: 10px 0; padding-inline-start: 22px; line-height: 1.8; }
.verify .fine { font-size: .8rem; opacity: .75; margin-top: 10px; }
