/* NeonShield download site - the app's own "night signal" look.
   Ink-indigo, a dot-matrix world, colour that means state: mint = works,
   coral = dead, amber = you. Periwinkle is for things you can press.
   Barlow (a DIN, like the app's Bahnschrift) for English, Vazirmatn for Persian. */

@font-face { font-family: "Vazirmatn"; font-weight: 100 900; font-display: swap;
  src: url("fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 100 900; font-display: swap;
  src: url("fonts/vazirmatn-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #080b14;
  --ink-2: #0b101e;
  --surface: #0f1527;
  --raise: #151d35;
  --line: rgba(140, 158, 255, .12);
  --line-2: rgba(140, 158, 255, .24);
  --text: #e8ecf8;
  --muted: #9aa4c4;
  --dim: #6c779b;
  --accent: #8c9eff;
  --accent-2: #b3bfff;
  --accent-ink: #0b1030;
  --safe: #53e3a6;
  --danger: #ff7a6b;
  --me: #ffb547;
  --r: 14px;
  --r-sm: 10px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

/* one language at a time */
html[lang="fa"] [lang="en"], html[lang="en"] [lang="fa"] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 "Barlow", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[lang="fa"] body { font-family: "Vazirmatn", Tahoma, system-ui, sans-serif; font-size: 16px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); }
code { font: 500 .88em/1 ui-monospace, "Cascadia Mono", Consolas, monospace; direction: ltr; unicode-bidi: isolate;
  background: rgba(140, 158, 255, .1); padding: .15em .4em; border-radius: 6px; color: var(--accent-2); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.012em; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3 { letter-spacing: 0; font-weight: 750; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin-bottom: 36px; }
html[lang="fa"] h2 { line-height: 1.45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--accent);
  color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(8, 11, 20, .86); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .top { background: rgba(8, 11, 20, .7); backdrop-filter: blur(14px); } }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font: 600 18px/1 "Barlow", sans-serif; letter-spacing: .2px; }
.mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--accent-ink);
  background: linear-gradient(140deg, var(--accent-2), var(--accent) 55%, #6f7fe6);
  box-shadow: 0 6px 18px rgba(140, 158, 255, .32); }
.mark svg { width: 17px; height: 17px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.nav a:hover { color: var(--text); background: rgba(140, 158, 255, .08); }
.lang { font: 600 14px/1 "Vazirmatn", "Barlow", sans-serif; color: var(--text); background: transparent;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
html[lang="fa"] .lang { font-family: "Barlow", sans-serif; }
.lang:hover { border-color: var(--accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 12px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { color: var(--text); border-color: var(--line-2); background: rgba(140, 158, 255, .04); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.wide { width: 100%; }
.btn .i { width: 20px; height: 20px; flex: none; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 820px); display: flex; align-items: center;
  border-bottom: 1px solid var(--line); }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; }
/* a scrim behind the words so the map never fights the headline */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, var(--ink) 0%, rgba(8, 11, 20, .88) 30%, rgba(8, 11, 20, .2) 62%, transparent 80%); }
html[dir="rtl"] .hero::before { background: linear-gradient(to left, var(--ink) 0%, rgba(8, 11, 20, .88) 30%, rgba(8, 11, 20, .2) 62%, transparent 80%); }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 560px) 1fr; align-items: end;
  gap: 40px; padding-block: 96px 64px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -.025em; font-weight: 700;
  text-wrap: balance; }
html[lang="fa"] .hero h1 { font-size: clamp(34px, 4.9vw, 60px); line-height: 1.38; font-weight: 800; letter-spacing: 0; }
.lede { margin: 24px 0 0; font-size: 19px; color: var(--muted); max-width: 34em; }
html[lang="fa"] .lede { font-size: 17.5px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--dim); }

/* the search status, like the app's */
.scan { justify-self: end; align-self: end; width: min(340px, 100%); background: rgba(15, 21, 39, .94);
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 20px 20px;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .7); }
.scan-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.scan-head b { font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--me); box-shadow: 0 0 0 0 rgba(255, 181, 71, .5);
  animation: pulse 1.4s ease-out infinite; }
.scan.done .pulse { background: var(--safe); animation: none; box-shadow: 0 0 10px rgba(83, 227, 166, .6); }
@keyframes pulse { to { box-shadow: 0 0 0 9px rgba(255, 181, 71, 0); } }
.scan-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; }
.scan-nums div { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; }
.scan-nums dt { font-size: 12.5px; color: var(--dim); }
.scan-nums dd { margin: 2px 0 0; font: 600 22px/1.2 "Barlow", sans-serif; font-variant-numeric: tabular-nums; }
html[lang="fa"] .scan-nums dd { font-family: "Vazirmatn", sans-serif; font-size: 20px; }
.scan-nums dd.ok { color: var(--safe); }
.scan-nums dd small { font-size: 13px; font-weight: 500; color: var(--muted); font-family: "Barlow", sans-serif; }
.again { margin-top: 14px; font: inherit; font-size: 14px; color: var(--accent-2); background: none; border: 0;
  padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- how ---------- */
.how { padding-block: 104px 96px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { position: relative; padding-top: 22px; border-top: 1px solid var(--line-2); }
.step-n { display: block; font: 600 15px/1 "Barlow", sans-serif; color: var(--accent); margin-bottom: 18px; }
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); max-width: 32em; }
.shot { margin: 80px 0 0; }
.shot img { border-radius: 16px; border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), 0 0 120px -40px rgba(140, 158, 255, .25); }
.shot figcaption { margin-top: 14px; font-size: 14px; color: var(--dim); text-align: center; }

/* ---------- downloads ---------- */
.dl { padding-block: 96px; background: var(--ink-2); border-block: 1px solid var(--line); scroll-margin-top: 64px; }
.plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plat { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 24px 24px; }
.plat.is-here { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 30px 70px -30px rgba(140, 158, 255, .35); }
.plat-head { display: flex; align-items: center; gap: 12px; }
.plat-head h3 { font-size: 24px; }
.os { width: 26px; height: 26px; color: var(--accent-2); flex: none; }
.here { display: none; margin-inline-start: auto; font-size: 12.5px; font-weight: 600; color: var(--accent-ink);
  background: var(--accent); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.plat.is-here .here { display: inline-block; }
.meta { margin: 8px 0 0; font-size: 14.5px; color: var(--dim); font-variant-numeric: tabular-nums; min-height: 1.6em; }
.facts { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.facts li { position: relative; padding-inline-start: 22px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.facts li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--safe); }
.facts li.need::before { background: var(--me); }
.facts li.need { color: var(--text); }
.facts a { color: var(--accent-2); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apple { margin: 22px 0 0; color: var(--muted); text-align: center; }
.sums { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 20px; }
.sums summary { cursor: pointer; color: var(--muted); font-size: 15px; width: fit-content; }
.sums summary:hover { color: var(--text); }
.sums p { color: var(--dim); font-size: 14.5px; }
.sums table { width: 100%; border-collapse: collapse; direction: ltr; font-size: 13px; }
.sums td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sums td:first-child { color: var(--text); white-space: nowrap; padding-right: 22px; font-family: "Barlow", sans-serif; font-size: 14px; }
.sums td:last-child { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); word-break: break-all; }

/* ---------- features ---------- */
.feat { padding-block: 104px; }
.feat-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.feats { display: grid; gap: 26px; margin: 0; }
.feats dt { font-weight: 600; font-size: 19px; }
.feats dd { margin: 4px 0 0; color: var(--muted); max-width: 32em; }
.protos { margin: 34px 0 0; font-size: 14.5px; color: var(--dim); }
.feat-shot { border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -34px rgba(0, 0, 0, .85); }

/* ---------- faq ---------- */
.faq { padding-block: 40px 110px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 18px; font-weight: 600;
  display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { margin: -4px 0 22px; color: var(--muted); max-width: 40em; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 28px; color: var(--dim); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .plats { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .feat-in { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  /* words, then the map, then what the search found */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 24px; }
  .hero::before { display: none; }
  .hero-in { display: contents; }
  .hero-copy { order: 1; margin: 44px 20px 0; position: relative; z-index: 2; }
  .hero-map { order: 2; position: relative; inset: auto; height: 250px; margin-top: 18px; }
  .scan { order: 3; position: relative; z-index: 2; width: auto; margin: -8px 20px 0; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  html[lang="fa"] .hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .lede { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .how, .dl, .feat { padding-block: 72px; }
  .shot { margin-top: 56px; }
  h2 { margin-bottom: 28px; }
}
.pair .btn { padding: 0 12px; white-space: nowrap; }
