:root {
  --ink: #16202c;
  --muted: #63717f;
  --brand: #1f6feb;
  --brand-dark: #1554b8;
  --bg: #f6f9fd;
  --line: #dbe6f3;
  --card: #ffffff;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
}

.wrap { width: min(1120px, 92%); margin: 0 auto; }
.narrow { width: min(820px, 92%); }

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand strong { display: block; font-size: 15px; }
.brand small { color: var(--muted); font-size: 12px; }

.logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #4f9bff);
  color: #fff; font-weight: 800; font-size: 18px;
}

nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { font-size: 14px; color: var(--muted); font-weight: 600; }
nav a:hover { color: var(--brand); }

.topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.lang-toggle:hover { border-color: var(--brand); background: #f0f6ff; }
.lang-toggle .globe { font-size: 14px; }

html[dir="ltr"] body { font-family: "Cairo", "Segoe UI", Arial, sans-serif; }
html[dir="ltr"] .hero h1 { letter-spacing: -0.3px; }

.hero {
  background: radial-gradient(circle at 15% 10%, #e8f1ff 0%, transparent 55%), #fff;
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}

.hero-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: #e7f0ff;
  color: var(--brand-dark);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.35;
  margin: 0 0 16px;
  font-weight: 800;
}
.hero h1 span { color: var(--brand); }
.hero p { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.hero .note { font-size: 12.5px; margin: 18px 0 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, background .15s ease;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.small { padding: 9px 16px; }
.btn.full { width: 100%; margin-top: 8px; }

/* Placeholder platforms stay grey and inert; only real builds get the blue button. */
.btn[aria-disabled="true"],
.btn[aria-disabled="true"]:hover {
  background: #e7ecf3;
  border-color: #dde5ee;
  color: #9aa6b4;
  cursor: not-allowed;
  transform: none;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 18px 50px -28px rgba(20, 60, 120, .45);
}
.hero-card h3 { margin: 14px 0 2px; font-size: 19px; }
.hero-card .muted { margin: 0 0 14px; font-size: 13px; }

.app-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 28px;
  background: #eef4ff;
  border: 1px solid #d8e6ff;
}

.meta { list-style: none; padding: 0; margin: 0 0 8px; border-top: 1px dashed var(--line); }
.meta li {
  display: flex; justify-content: space-between;
  padding: 9px 0; font-size: 13.5px;
  border-bottom: 1px dashed var(--line);
}
.meta span { color: var(--muted); }

.section { padding: 60px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.title { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 28px; }

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.card, .step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.section.alt .card { background: var(--bg); }
.card h3, .step h3 { margin: 0 0 6px; font-size: 17px; }
.card p, .step p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }

.step .num {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #e7f0ff; color: var(--brand-dark);
  font-weight: 800; margin-bottom: 12px;
}

.copy-row { display: flex; gap: 8px; margin-top: 10px; }
.copy-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  direction: ltr;
  text-align: left;
  color: var(--ink);
}
.hint { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

#download > .wrap > .card { margin-bottom: 20px; }
.downloads .card { display: flex; flex-direction: column; }
.os-tag {
  display: inline-block;
  align-self: flex-start;
  background: #eef4ff;
  border: 1px solid #d8e6ff;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  direction: ltr;
}
.downloads .btn { margin-top: auto; }
.downloads .btn + .btn { margin-top: 8px; }

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+"; color: var(--brand); margin-inline-end: 10px; font-weight: 800; }
details[open] summary::before { content: "−"; }
details p { margin: 10px 0 2px; color: var(--muted); font-size: 14px; }

.checklist { margin: 6px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: 14px; }
.checklist li { margin-bottom: 6px; }

footer { padding: 26px 0; background: #0f1b29; color: #cfe0f2; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
footer .muted { color: #8fa6bd; margin: 0; }
footer p { margin: 0; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  nav { gap: 12px; }
  .topbar-right { gap: 12px; width: 100%; justify-content: space-between; }
  .hero { padding: 44px 0; }
  .section { padding: 44px 0; }
}
