:root {
  --navy: #1e3a8a;
  --navy-2: #172f73;
  --blue: #2f5bd3;
  --gold: #fcd34d;
  --orange: #f59e0b;
  --ink: #0f172a;
  --muted: #5b6475;
  --line: #e3e8f2;
  --bg: #ffffff;
  --soft: #f4f6fb;
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ecf5;
    --muted: #a3acc0;
    --line: #26304a;
    --bg: #0b1226;
    --soft: #101a35;
    --card: #131e3d;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Nastaliq Urdu", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; }
.brand img { border-radius: 10px; }
.b { color: var(--ink); }
.h { color: var(--orange); }
.links { display: flex; gap: 20px; margin-inline-start: auto; }
.links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.links a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
#lang {
  height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px;
  background: var(--card); color: var(--ink); font: inherit; font-size: 14px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; white-space: nowrap;
}
.btn.big { height: 50px; padding: 0 24px; font-size: 17px; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--blue); }
.btn.light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.light:hover { border-color: var(--blue); }
.hero .login-link { color: #fff; font-weight: 600; }
.btn.whatsapp { background: #16a34a; color: #fff; }

/* hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #2448b0 60%, var(--blue) 100%); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 72px 16px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.15; margin: 12px 0 16px; }
.lead { font-size: 19px; color: #dbe4ff; margin: 0 0 24px; max-width: 560px; }
.pill { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: #3b2a00; font-weight: 700; font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 14px; }
.hero .btn.primary { background: var(--gold); color: #2a1f00; }
.hero .btn.primary:hover { background: #ffe07a; }
.hero .btn.light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero .muted { color: #c3d0f5; }
.hero-card {
  justify-self: center; width: 100%; max-width: 340px; padding: 24px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid; gap: 10px; justify-items: center;
}
.hero-card img { border-radius: 40px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); margin-bottom: 8px; }
.stat {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: #fff; color: #0f172a; border-radius: 12px; padding: 10px 14px; font-size: 15px;
}
.stat b { font-size: 18px; color: var(--navy); }

/* sections */
.section { padding: 64px 16px; }
.section h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 24px; }
.band { background: var(--soft); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 6px 0 6px; font-size: 18px; }
.card p { margin: 0 0 14px; color: var(--muted); }
.card .ic { font-size: 28px; }
.card.highlight { border: 2px solid var(--orange); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 6px; }
.steps li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700;
}
.steps span { color: var(--muted); }

/* app screenshots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shot { margin: 0; text-align: center; }
.shot img {
  width: 100%; height: auto; aspect-ratio: 270 / 585; display: block;
  border-radius: 22px; border: 6px solid #10204d; background: #10204d;
  box-shadow: 0 14px 34px rgba(16, 32, 77, 0.22);
}
.shot figcaption { margin-top: 12px; font-weight: 600; }

.foot { border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; padding: 20px 16px; color: var(--muted); font-size: 14px; }

[dir="rtl"] body { font-size: 17px; }

@media (max-width: 860px) {
  .links { display: none; }
  .top-actions { margin-inline-start: auto; }
  .hero-grid { grid-template-columns: 1fr; padding: 48px 16px; }
  .hero-card { display: none; }
  .grid, .two, .steps { grid-template-columns: 1fr; }
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  }
  .shot { scroll-snap-align: center; }
  .section { padding: 44px 16px; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .btn.big { width: 100%; }
}
