/* NJ-Sort site. Dark indigo from the app's own logo, amber for the one moving thing.
   Font: Thmanyah Sans when installed (never web-served: licence), else the system UI face.
   Shared by the English page and /ar/. Logical properties, so the same rules serve LTR and RTL. */
:root {
  --band: #0e1027; --band-2: #171a3b; --band-line: #262a5a; --band-text: #eceeff; --band-muted: #a3a8d4;
  --bg: #0e1027; --bg-2: #171a3b; --line: #262a5a; --text: #eceeff; --muted: #a3a8d4;
  --accent: #ffb02e; --accent-ink: #181a3a;
  --r: 14px; --ease: cubic-bezier(.16, 1, .3, 1); --shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f5f5fc; --bg-2: #ffffff; --line: #dedff0; --text: #14163a; --muted: #4f5380; --accent: #8a5200; --shadow: 0 30px 60px -34px rgba(24, 26, 80, .35); }
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 "Thmanyah Sans", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid #ffb02e; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: #ffb02e; color: #181a3a; padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 20; text-decoration: none; }
.skip:focus { top: 12px; }
h1, h2, h3 { text-wrap: balance; } p { text-wrap: pretty; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the dark band: header + hero, always dark because the video is */
.band { background: var(--band); color: var(--band-text); background-image: radial-gradient(70% 90% at 40% 55%, #231b6b 0, transparent 70%), radial-gradient(90% 70% at 85% 0, #2a2078 0, transparent 60%); }
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(14, 16, 39, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--band-text); }
nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 20px; align-items: center; font-size: 15px; color: var(--band-muted); }
.nav-links a { text-decoration: none; transition: color .15s; padding: 12px 0; }
@media (hover: hover) { .nav-links a:hover { color: #fff; } }
.nav-links a.btn { padding: 12px 20px; color: #181a3a; }
.nav-links a.lang { padding: 12px 10px; border: 1px solid var(--band-line); border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; color: var(--band-text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 600; text-decoration: none;
       white-space: nowrap; transition: transform .2s var(--ease), background-color .2s; min-height: 44px; }
.btn:active { transform: scale(.96); }
.btn-primary { background: #ffb02e; color: #181a3a; box-shadow: 0 8px 20px -8px rgba(255, 176, 46, .55); }
@media (hover: hover) { .btn-primary:hover { transform: translateY(-1px); } }
.btn-ghost { border: 1px solid var(--band-line); color: var(--band-text); }
@media (hover: hover) { .btn-ghost:hover { background: var(--band-2); } }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; padding-block: 56px 88px; }
h1 { font-size: clamp(40px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
h1 em { font-style: normal; color: #ffb02e; }
.lede { color: var(--band-muted); font-size: 19px; max-width: 36ch; margin: 22px 0 32px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.stage { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #141737; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.stage video, .stage .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stage .still { display: none; }
.pause { position: absolute; inset-inline-end: 10px; top: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; z-index: 2; background: rgba(10, 12, 30, .6); color: #eceeff; display: grid; place-items: center; transition: background-color .15s, transform .2s var(--ease); }
.pause:active { transform: scale(.96); }
@media (hover: hover) { .pause:hover { background: rgba(10, 12, 30, .85); } }
.pause .i-play { display: none; } .pause[aria-pressed="true"] .i-pause { display: none; } .pause[aria-pressed="true"] .i-play { display: block; }
.pause[hidden] { display: none; }
.stagebox { position: relative; }
/* hero: the video bleeds to the inline-end edge of the screen, text keeps the page grid */
.band .hero.wrap { max-width: none; margin: 0; padding: 0; gap: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 56vw); align-items: stretch; }
.band .hero > div:first-child { padding-block: 64px; padding-inline: max(24px, calc((100vw - 1160px) / 2 + 24px)) 40px; align-self: center; }
.band .stage { border-radius: 0; box-shadow: none; }
/* the video's indigo melts into the band on the text side: no hard seam */
@media (min-width: 861px) {
  .band .stage { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%); mask-image: linear-gradient(to right, transparent 0, #000 10%); }
  [dir="rtl"] .band .stage { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 10%); mask-image: linear-gradient(to left, transparent 0, #000 10%); }
  .band .hero > div:first-child { padding-block: 40px; }
  .band .lede { font-size: 20px; margin: 20px 0 28px; }
}

/* proof strip */
.proof { background: var(--bg-2); border-block: 1px solid var(--line); }
.proof ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof li { padding: 22px 20px; text-align: center; font-weight: 600; font-size: 15px; }
.proof li + li { border-inline-start: 1px solid var(--line); }
.proof li small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }

section.wrap { padding-block: 96px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; max-width: 22ch; }
.sub { color: var(--muted); max-width: 62ch; margin-top: 14px; font-size: 18px; }

.shotrow { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 40px; margin-top: 48px; align-items: center; }
.shot { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.shot img { width: 100%; height: auto; display: block; }
.legend { list-style: none; padding: 0; counter-reset: n; display: grid; gap: 22px; }
.legend li { counter-increment: n; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--muted); font-size: 15.5px; }
.legend li::before { content: counter(n); width: 32px; height: 32px; border-radius: 50%; background: #ffb02e; color: #181a3a; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.legend b { display: block; color: var(--text); font-size: 17px; letter-spacing: -.01em; }

.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; margin-top: 48px; align-items: start; }
.lead { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; letter-spacing: -.015em; font-weight: 600; text-wrap: pretty; }
.lead + p { color: var(--muted); margin-top: 18px; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 17px; letter-spacing: -.01em; }
.row p { color: var(--muted); font-size: 15.5px; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 24px; margin-top: 56px; padding: 26px 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.keys > h3, .keys > p { grid-column: 1 / -1; }
.keys > p { color: var(--muted); font-size: 15px; }
.keys b { display: block; font-size: 15px; margin-bottom: 8px; }
kbd { display: inline-block; direction: ltr; unicode-bidi: isolate; font: 600 13px/1 "Thmanyah Sans", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; min-width: 28px; text-align: center; padding: 6px 9px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--bg-2); color: var(--text); }
.keys kbd { background: var(--bg); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 2px solid #ffb02e; }
.step { padding: 28px 28px 0 0; }
[dir="rtl"] .step { padding: 28px 0 0 28px; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); margin-top: 8px; }
code { direction: ltr; unicode-bidi: isolate; font: 600 .9em ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.fine { margin-top: 40px; color: var(--muted); font-size: 15px; max-width: 72ch; padding-inline-start: 16px; border-inline-start: 3px solid #ffb02e; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .seo { flex-basis: 100%; display: grid; gap: 8px; }
footer h2 { font-size: 14px; letter-spacing: 0; font-weight: 700; color: var(--text); max-width: none; }
footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
footer li a, footer [aria-current] { display: inline-block; padding: 10px 0; }
footer [aria-current] { color: var(--text); font-weight: 600; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; }
  .stage video, .pause { display: none; } .stage .still { display: block; }
  .btn, .pause { transition: none; }
}
@media (max-width: 860px) {
  .band .hero.wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .band .hero > div:first-child { padding: 32px 16px 28px; }
  body { overflow-x: hidden; }
  .wrap { padding-inline: 16px; }
  .stage { border-radius: 0; }
  .pause { top: auto; bottom: 10px; inset-inline-end: auto; inset-inline-start: 10px; }
  .lede { font-size: 17px; margin: 16px 0 22px; }
  .proof ul { grid-template-columns: 1fr 1fr; }
  .proof li:nth-child(3) { border-inline-start: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--line); }
  section.wrap { padding-block: 64px; }
  .shotrow { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feat { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .keys { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; } .step, [dir="rtl"] .step { padding-inline: 0; }
  .nav-links a:not(.btn):not(.lang) { display: none; }
  .nav-links { gap: 10px; }
  nav .btn { padding: 12px 16px; }
}
.nb { white-space: nowrap; }
