@font-face {
  font-family: Vazir;
  src: url(Vazirmatn.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #123232;
  --deep: #102f34;
  --muted: #4a655e;
  --mint: #a4f3d0;
  --sea: #1b6858;
  --paper: #f9fbf7;
  --line: #cfdfd6;
  --header: 70px;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.8 Vazir, Tahoma, sans-serif;
  scroll-padding-top: calc(var(--header) + 1.25rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #bc6a11; outline-offset: 3px; }
.wrap { width: min(1190px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--deep);
  color: #ecfaf3;
  border-bottom: 1px solid #c0e0d12e;
}
.navigation, .brand, .navlinks, .nav-download, .foot { display: flex; align-items: center; }
.navigation { min-height: var(--header); gap: clamp(18px, 5vw, 60px); }
.brand { gap: 7px; font-size: 24px; font-weight: 900; }
.brand img { border-radius: 6px; }
.navlinks { gap: clamp(14px, 3vw, 30px); color: #c9ded6; }
.navlinks a:hover { color: white; }
.nav-download {
  margin-inline-start: auto; gap: 9px; padding: 6px 15px;
  border: 1px solid #a7d2c3; border-radius: 6px; font-weight: 750;
}
.nav-download img { filter: invert(1); }
.nav-download:hover, .nav-download[aria-current] { background: #254c4e; }

.hero, .download-header { background: var(--deep); color: white; }
.herogrid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 86px); align-items: center; padding-block: clamp(36px, 6vw, 87px);
}
.intro h1, .download-intro h1 {
  font-size: clamp(42px, 6.05vw, 82px); line-height: 1.26; font-weight: 900; letter-spacing: -.055em;
}
.intro em, .download-intro em { font-style: normal; color: var(--mint); }
.intro em { display: block; }
.intro p, .lead {
  color: #d3e2dd; font-size: clamp(16px, 1.8vw, 21px); max-width: 24em; margin-top: 18px;
}
.platforms {
  padding: 0; list-style: none; display: flex; flex-wrap: wrap;
  gap: 7px; margin: 24px 0 0;
}
.platforms li { padding: 2px 11px; border: 1px solid #a8d1c153; border-radius: 5px; font-size: 13px; color: #dbece4; }

.art {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 1.32; border: 1px solid #81bea788; border-radius: 12px;
  background: radial-gradient(ellipse at 42% 30%, #408c7a, #1a4f4e 61%, #13373b);
}
.art:hover { border-color: var(--mint); }
.art::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(#e1ffe45b 1px, transparent 1px); background-size: 17px 17px;
  mask-image: linear-gradient(black, transparent 96%);
}
.orbit { position: absolute; border: 1px solid #cbffe743; border-radius: 50%; aspect-ratio: 1; top: 42%; left: 50%; transform: translate(-50%, -50%); }
.o1 { width: 44%; }.o2 { width: 72%; }.o3 { width: 102%; }
.mark {
  position: absolute; left: 33%; top: 11%; width: 34%; aspect-ratio: 1;
  background: linear-gradient(145deg, #274e4d, #0b272d); border: 1px solid #acd9c779;
  border-radius: 15%; transform: rotate(-8deg); box-shadow: 8px 18px 30px #082a2d70;
}
.mark img { width: 100%; }
.transfer {
  position: absolute; bottom: 20%; left: 17%; right: 17%; padding: 14px 17px;
  background: #f4fcf6; color: var(--ink); border-radius: 8px;
  box-shadow: 0 10px 24px #0e292c3d; font: 13px system-ui, sans-serif;
}
.meterhead, .rate { display: flex; align-items: center; gap: 9px; }
.meterhead strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meterhead span:last-child, .rate span:last-child { margin-left: auto; }
.led { flex: 0 0 7px; height: 7px; background: #269575; border-radius: 50%; }
.track { height: 5px; background: #c8dcd1; margin: 11px 0 7px; border-radius: 4px; }
.track span { display: block; width: 72%; height: 100%; background: #238a6e; border-radius: inherit; }
.rate { color: #496961; font-size: 11px; }
.art-action {
  position: absolute; inset-inline-start: 17%; bottom: 5%; display: flex; align-items: center;
  gap: 8px; color: var(--mint); font-weight: 800;
}
.art-action img { filter: invert(91%) sepia(36%) saturate(532%) hue-rotate(86deg); }

.features { padding-block: clamp(34px, 5vw, 73px); }
h2 { font-size: clamp(25px, 3vw, 40px); line-height: 1.4; letter-spacing: -.045em; }
.cards, .downloads { display: grid; gap: 14px; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; }
.cards article, .download-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.cards article > img { background: #e4f4ea; border-radius: 6px; padding: 10px; width: 44px; height: 44px; }
.cards h3 { margin: 13px 0 5px; font-size: 18px; }
.cards p, .download-description, .directory-intro p { color: var(--muted); font-size: 15px; }

.directory { background: #edf5ef; border-block: 1px solid var(--line); padding-block: clamp(32px, 6vw, 78px); }
.directory-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); align-items: start; gap: 32px; }
.directory-intro p { margin-top: 12px; max-width: 25em; }
.directory-panel { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 16px; }
.search-field {
  display: flex; align-items: center; gap: 10px; border-radius: 6px;
  background: #f4f8f4; border: 1px solid #b6cfc0; padding-inline: 12px; min-height: 47px;
}
.search-field:focus-within { outline: 2px solid #2c8066; outline-offset: 2px; }
.search-field input { border: 0; outline: 0; background: transparent; color: var(--ink); width: 100%; min-width: 0; padding: 8px 0; }
#site-status { color: var(--muted); font-size: 13px; margin-block: 8px 12px; }
.site-results {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.site-results li {
  border-radius: 5px; background: #f2f7f3; padding: 5px 8px; text-align: left;
  font: 13px/1.5 system-ui, sans-serif; overflow-wrap: anywhere;
}
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 15px; color: var(--muted); font-size: 13px; }
.pagination button { background: #fff; color: var(--ink); border: 1px solid #b6cfc0; border-radius: 5px; padding: 4px 13px; cursor: pointer; }
.pagination button:hover:not(:disabled) { background: #e4f4ea; }.pagination button:disabled { opacity: .5; cursor: default; }

.download-header {
  background: linear-gradient(110deg, #215a52, var(--deep) 61%);
}
.download-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 46px 62px; }
.download-intro h1 { font-size: clamp(42px, 6vw, 72px); }
.download-mark { width: clamp(78px, 17vw, 185px); transform: rotate(-8deg); }
.download { padding-bottom: 70px; }
.downloads { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -22px; }
.download-card { display: flex; flex-direction: column; box-shadow: 0 12px 26px #0c30270c; }
.download-card h2 { margin-top: 15px; font-size: 27px; }
.platform-meta { margin-block: 7px 17px; color: var(--sea); text-align: right; font: 13px/1.4 system-ui, sans-serif; }
.download-description { margin-bottom: 18px; }
.primary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 43px;
  margin-top: auto; padding: 8px 13px; border-radius: 6px; font-weight: 800; background: var(--mint);
}
.primary:hover { background: #8ae6be; }
.os { width: 48px; height: 48px; display: grid; place-items: center; background: #e4f4ea; border-radius: 6px; }
.os.win { grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); place-content: center; gap: 2px; }
.os.win span { background: var(--sea); width: 9px; height: 9px; }
.android { background: #eff8f1; }
.android .os { background: var(--deep); }
.stores { margin-top: auto; display: grid; gap: 8px; }
.stores > * { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: #fff; font-weight: 720; font-size: 14px; }
.stores img { width: 25px; height: 25px; border-radius: 5px; }
.stores a:hover { border-color: var(--sea); }
.stores small { margin-inline-start: auto; color: var(--muted); font-size: 11px; }
footer { border-top: 1px solid var(--line); }
.foot { padding-block: 17px; gap: 17px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.foot .brand { color: var(--ink); font-size: 19px; }

@media (max-width: 920px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-grid { gap: 20px; }
  .site-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --header: 62px; }
  .wrap { width: calc(100% - 32px); }
  .herogrid, .directory-grid, .downloads { grid-template-columns: minmax(0, 1fr); }
  .art { width: min(100%, 500px); justify-self: center; aspect-ratio: 1.42; }
  .mark { width: 30%; left: 35%; top: 11%; }
  .download-intro { padding-block: 33px 52px; }
  .download { padding-bottom: 45px; }
}
@media (max-width: 390px) {
  .navigation { gap: 12px; }
  .navlinks { gap: 10px; font-size: 13px; }
  .nav-download { font-size: 13px; padding-inline: 9px; }
  .brand { font-size: 20px; }.brand img { width: 28px; height: 28px; }
  .cards { gap: 8px; }.cards article, .directory-panel { padding: 12px; }
  .cards h3 { font-size: 16px; }
  .transfer { left: 12%; right: 12%; padding: 10px; }
  .art-action { inset-inline-start: 12%; font-size: 14px; }
}
