/* JT Browser / Justice CFW — shared styles.
   One stylesheet serves both languages: everything that could flip is written
   with logical properties, so switching <html dir> mirrors the whole layout. */

:root {
  --bg: #000000;
  --surface: #14161b;
  --surface-2: #1c1f26;
  --border: #23262e;
  --text: #f1f3f5;
  --muted: #9ba2ad;
  --accent: #4f7ccd;
  --accent-hot: #6d95dc;
  --accent-dim: rgba(79, 124, 205, 0.14);
  --radius: 16px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic",
               "Tahoma", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- glow ---------- */

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 45vw at 50% -12%, rgba(79, 124, 205, 0.20), transparent 62%),
    radial-gradient(40vw 40vw at 95% 108%, rgba(79, 124, 205, 0.10), transparent 62%);
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.brand img { width: 26px; height: 26px; display: block; }

.nav nav {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
  align-items: center;
}

.nav nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .15s, background .15s;
}

.nav nav a:hover { color: var(--text); background: var(--surface); }
.nav nav a.active { color: var(--accent-hot); background: var(--accent-dim); }

.lang {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.lang:hover {
  border-color: var(--accent);
  color: var(--accent-hot);
  background: var(--surface-2);
}

/* ---------- hero ---------- */

.hero { padding: 86px 0 64px; text-align: center; }

.hero img.mark {
  width: 104px;
  height: 104px;
  filter: drop-shadow(0 14px 36px rgba(79, 124, 205, 0.36));
}

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}

.hero h1 span { color: var(--accent); }

.hero p.lead {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
}

.badge {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-hot);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(79, 124, 205, 0.28);
}

.btn-primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); }

.btn svg { width: 19px; height: 19px; flex: none; }

.meta { margin-top: 16px; color: var(--muted); font-size: 13.5px; }

/* ---------- sections ---------- */

section { padding: 64px 0; }

.section-head { text-align: center; margin-bottom: 44px; }

.section-head h2 {
  margin: 0;
  font-size: clamp(25px, 3.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-head p { margin: 12px auto 0; max-width: 580px; color: var(--muted); }

/* ---------- screenshot ---------- */

.shot {
  margin: 0 auto;
  max-width: 980px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: var(--surface);
}

.shot img { display: block; width: 100%; height: auto; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: transform .18s, border-color .18s, background .18s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--surface-2);
}

.card .ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent-hot);
  margin-bottom: 16px;
}

.card .ic svg { width: 22px; height: 22px; }

.card h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 650; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }

.step {
  position: relative;
  padding: 22px 24px;
  padding-inline-start: 76px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 24px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.step h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 650; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- rules ---------- */

.rules { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }

.rule {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
}

.rule .n {
  flex: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  min-width: 26px;
}

.rule p { margin: 0; color: var(--muted); font-size: 14.8px; }
.rule strong { color: var(--text); font-weight: 650; }

/* ---------- note ---------- */

.note {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.note strong { color: var(--text); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 40px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13.5px;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--accent-hot); }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .nav .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .nav nav { margin-inline-start: 0; width: 100%; justify-content: space-between; }
  .hero { padding: 56px 0 44px; }
  section { padding: 48px 0; }
  .step { padding-inline-start: 68px; }
}
