
/* ============================================================
   کرج مدار بسته
   Palette from the logo: sky blue, navy, white.
   Light values live on bare :root; both dark states redefine them.
   ============================================================ */
:root {
  --navy:       #16406A;
  --navy-2:     #1D4E7F;
  --navy-3:     #265C93;
  --navy-deep:  #10314F;   /* only where a panel must sit back from the ground */

  --sky:        #1F7FC4;   /* accent, on light grounds */
  --sky-hi:     #7FC9F7;   /* accent, on navy grounds */
  --sky-ink:    #0B2740;   /* text sitting on a sky fill */
  --sky-wash:   rgba(31,127,196,.09);

  --paper:      #FFFFFF;
  --mist:       #EDF4FA;
  --line:       #D2E0EC;
  --text:       #0F2438;
  --text-soft:  #4C6479;
  --text-faint: #7E96AA;
  --card:       #FFFFFF;
  --card-line:  #DCE7F1;
  --shadow:     0 1px 2px rgba(10,27,46,.05), 0 8px 24px -12px rgba(10,27,46,.16);

  /* fixed values for the always-navy hero, panel and footer */
  --on-navy:       #E4EFF8;
  --on-navy-soft:  #A8C2D8;
  --on-navy-faint: #7E9BB4;

  /* semantic — separate from the accent */
  --ok:   #2F8F6B;
  --warn: #D08A1E;
  --bad:  #D2534F;

  --display: "Noto Kufi Arabic", "Vazirmatn", "Tahoma", sans-serif;
  --body:    "Vazirmatn", "Tahoma", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0B2135;
    --mist:       #102C46;
    --line:       #23496E;
    --text:       #E4EFF8;
    --text-soft:  #9FB6C8;
    --text-faint: #6E8AA1;
    --sky:        #7FC9F7;
    --sky-wash:   rgba(127,201,247,.12);
    --card:       #143453;
    --card-line:  #23496E;
    --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
    --ok:   #46C296;
    --warn: #E8A94A;
    --bad:  #E86B67;
  }
}
:root[data-theme="dark"] {
  --paper:      #0B2135;
  --mist:       #102C46;
  --line:       #23496E;
  --text:       #E4EFF8;
  --text-soft:  #9FB6C8;
  --text-faint: #6E8AA1;
  --sky:        #7FC9F7;
  --sky-wash:   rgba(127,201,247,.12);
  --card:       #143453;
  --card-line:  #23496E;
  --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
  --ok:   #46C296;
  --warn: #E8A94A;
  --bad:  #E86B67;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* so a jumped-to section does not sit flush against the top edge */
section[id] { scroll-margin-top: 18px; }

body {
  direction: rtl;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Persian is a connected script — letter-spacing breaks the joins, so none is set. */
h1, h2, h3 { font-family: var(--display); line-height: 1.5; text-wrap: balance; margin: 0; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.wrap { max-width: 1060px; margin-inline: auto; padding-inline: 22px; }

/* ------------------------------------------------ header */
.top {
  background: var(--navy);
  color: var(--on-navy);
  position: relative;
  overflow: hidden;
}
/* the camera's field of view, cast across the hero */
.top::before {
  content: "";
  position: absolute;
  top: -180px; inset-inline-start: -120px;
  width: 780px; height: 780px;
  background: conic-gradient(from 205deg at 0% 0%,
      rgba(127,201,247,.22) 0deg,
      rgba(127,201,247,.07) 26deg,
      transparent 42deg);
  pointer-events: none;
}
/* faint scanlines, the way a monitor feed looks */
.top::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg,
      rgba(255,255,255,.028) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.top > * { position: relative; z-index: 1; }

.nav {
  display: flex; align-items: center; gap: 20px;
  padding-block: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: 11px; margin-inline-end: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; object-fit: contain; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 17px; }
.nav-links { display: flex; gap: 22px; font-size: 14.5px; color: var(--on-navy-soft); }
.nav-links a { text-decoration: none; padding-block: 4px; }
.nav-links a:hover { color: var(--sky-hi); }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; row-gap: 4px; }
  .brand { margin-inline-end: 0; }
  .nav-links {
    width: 100%; overflow-x: auto; gap: 18px;
    padding-bottom: 6px; scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
}

/* ------------------------------------------------ hero */
.hero {
  padding-block: 54px 60px;
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 44px; align-items: center;
}
.hero-copy { display: grid; gap: 28px; max-width: 640px; }
.hero-logo { width: min(320px, 32vw); height: auto; justify-self: end; }
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-logo { display: none; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--sky-hi);
  background: rgba(127,201,247,.12);
  border: 1px solid rgba(127,201,247,.30);
  border-radius: 100px; padding: 5px 13px; width: fit-content;
}
.rec { width: 7px; height: 7px; border-radius: 50%; background: #E24C4C; animation: rec 2.4s ease-in-out infinite; }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.hero h1 { font-size: clamp(30px, 5.4vw, 47px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--sky-hi); }
.hero p { font-size: 17.5px; color: var(--on-navy-soft); margin: 0; max-width: 60ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 9px;
  font-family: var(--body); font-size: 15.5px; font-weight: 500;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--sky-hi); color: var(--sky-ink); font-weight: 700; }
.btn-solid:hover { background: #9AD6FA; }
.btn-ghost { border-color: rgba(255,255,255,.24); color: var(--on-navy); }
.btn-ghost:hover { border-color: var(--sky-hi); color: var(--sky-hi); }

/* trust strip */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 0;
}
.trust div { padding: 22px 4px; text-align: center; }
.trust dt { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--sky-hi); }
.trust dd { margin: 2px 0 0; font-size: 13.5px; color: var(--on-navy-faint); }
@media (max-width: 620px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ------------------------------------------------ sections */
section { padding-block: 62px; }
.band { background: var(--mist); }
.sec-head { max-width: 62ch; margin-bottom: 34px; display: grid; gap: 10px; }
.sec-head h2 { font-size: clamp(23px, 3.4vw, 30px); font-weight: 700; }
.sec-head p { margin: 0; color: var(--text-soft); font-size: 16px; }
.kicker { font-size: 13px; color: var(--sky); font-weight: 500; }

/* ------------------------------------------------ services */
/* dense backfills the gap the wide network card leaves, so source order
   still runs camera -> network -> electrical for readers and crawlers */
.svc { display: grid; grid-template-columns: repeat(2, 1fr);
       grid-auto-flow: dense; gap: 16px; align-items: start; }
@media (max-width: 700px) { .svc { grid-template-columns: 1fr; } }
.svc article.wide { grid-column: 1 / -1; }
.svc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; margin-top: 4px; }
@media (max-width: 620px) { .svc-split { grid-template-columns: 1fr; } }
.svc-split h4 {
  font-family: var(--display); font-size: 14px; font-weight: 600;
  color: var(--text); margin: 0 0 8px;
  padding-bottom: 7px; border-bottom: 1px solid var(--card-line);
}
.svc article {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 24px 22px;
  display: grid; gap: 10px; align-content: start;
}
.svc article.lead { border-color: var(--sky); }
.svc h3 { font-size: 18px; font-weight: 700; }
.svc p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.svc ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--text-soft); }
.svc li { padding-inline-start: 17px; position: relative; }
.svc li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--sky);
}
.svc-tag {
  font-size: 12px; color: var(--sky); background: var(--sky-wash);
  border-radius: 5px; padding: 2px 9px; width: fit-content;
}

/* ------------------------------------------------ products */
.prod { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 14px; }
.prod article {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: 11px; padding: 20px 18px;
  display: grid; gap: 8px; align-content: start;
}
.prod h3 { font-size: 15.5px; font-weight: 700; }
.prod dl { margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 13.5px; }
.prod dt { color: var(--text-faint); }
.prod dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.note { display: block; font-size: 13.5px; color: var(--text-faint); margin-top: 4px; }

.stock { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ok); }

.price-was {
  font-size: 13.5px; color: var(--text-faint);
  text-decoration: line-through; font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.price-off {
  /* inline-block stops the parent's strike-through running through the chip */
  display: inline-block; text-decoration: none;
  font-size: 11.5px; font-weight: 700; color: #FFFFFF;
  background: var(--bad); border-radius: 5px; padding: 1px 7px;
  margin-inline-start: 6px; vertical-align: 1px;
}
.bundle .price-was { color: var(--on-navy-faint); font-size: 15px; }

.price {
  font-family: var(--display); font-size: 19px; font-weight: 700;
  color: var(--text); font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.price small { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--text-faint); }
.price-note { font-size: 13px; color: var(--on-navy-soft); margin-top: 2px; }

.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* on a phone the two ways to reach us stay within thumb reach at all times */
.callbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 40;
  display: none; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); box-shadow: 0 -2px 16px rgba(10,27,46,.18);
}
.callbar a {
  padding: 13px 8px; text-align: center; text-decoration: none;
  font-weight: 700; font-size: 15px;
  background: var(--card); color: var(--text);
}
.callbar a.chat { background: var(--sky); color: #FFFFFF; }
@media (max-width: 700px) {
  .callbar { display: grid; }
  body { padding-bottom: 58px; }
}

.order {
  display: block; text-align: center; text-decoration: none;
  background: var(--sky); color: #FFFFFF; font-weight: 700; font-size: 14.5px;
  border-radius: 8px; padding: 10px 16px; margin-top: 10px;
  transition: filter .15s ease;
}
.order:hover { filter: brightness(1.08); }
.order.revealed { direction: ltr; unicode-bidi: isolate;
                  font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.order-alt {
  display: block; text-align: center; text-decoration: none;
  color: var(--on-navy); font-size: 14px;
  border: 1px solid rgba(255,255,255,.26); border-radius: 8px;
  padding: 9px 16px; margin-top: 8px;
}
.order-alt:hover { border-color: var(--sky-hi); color: var(--sky-hi); }

/* the lead package — one lifted object, not another card in the grid */
.bundle {
  display: grid; grid-template-columns: .62fr 1.4fr .85fr; gap: 26px;
  background: var(--navy); color: var(--on-navy);
  border-radius: 14px; padding: 28px 28px 30px; margin-bottom: 18px;
}
@media (max-width: 860px) { .bundle { grid-template-columns: 1fr; gap: 20px; } }
.bundle h3 { font-size: 21px; font-weight: 700; margin: 8px 0 8px; }
.bundle p { margin: 0 0 14px; color: var(--on-navy-soft); font-size: 15px; }
.bundle .svc-tag { background: rgba(127,201,247,.15); color: var(--sky-hi); }
.bundle .price { color: #FFFFFF; font-size: 27px; }
.bundle .price small { color: var(--on-navy-soft); }
.bundle-buy { align-self: center; }
.bundle .order { background: var(--sky-hi); color: var(--sky-ink); }
/* on the navy ground the light-theme green is too dark to read */
.bundle .stock { color: #6FD9AF; }

.ask {
  margin-top: 10px; font-size: 14px; font-weight: 500;
  color: var(--sky); text-decoration: none;
  border-top: 1px solid var(--card-line); padding-top: 11px;
}
.ask:hover { text-decoration: underline; }

/* ------------------------------------------------ monitoring callout */
.watch {
  background: var(--navy-2); color: var(--on-navy);
  border-radius: 14px; padding: 32px 30px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center;
}
@media (max-width: 780px) { .watch { grid-template-columns: 1fr; } }
.watch h2 { font-size: clamp(21px, 3vw, 27px); font-weight: 700; margin-bottom: 12px; }
.watch p { color: var(--on-navy-soft); font-size: 15.5px; margin: 0 0 18px; }
.panel {
  background: var(--navy-deep); border: 1px solid #2A6094; border-radius: 10px;
  padding: 14px 16px; display: grid; gap: 9px; font-size: 13.5px;
}
.panel-row { display: flex; align-items: center; gap: 9px; }
.panel-row > span:first-child { margin-inline-end: auto; color: #C9DDEC; }
.panel small { color: var(--on-navy-faint); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.ok   { background: #46C296; box-shadow: 0 0 0 3px rgba(70,194,150,.16); }
.dot.warn { background: #E8A94A; box-shadow: 0 0 0 3px rgba(232,169,74,.16); }
.dot.bad  { background: #E86B67; box-shadow: 0 0 0 3px rgba(232,107,103,.16); }

/* ------------------------------------------------ areas */
.areas { display: flex; flex-wrap: wrap; gap: 9px; }
.areas a {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: 8px; padding: 8px 15px; font-size: 14.5px;
  text-decoration: none; color: var(--text);
}
.areas a:hover { border-color: var(--sky); color: var(--sky); }

/* ------------------------------------------------ faq */
.faq { display: grid; max-width: 74ch; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; padding: 14px 0; font-weight: 500; font-size: 16px;
  list-style: none; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-inline-start: auto; color: var(--sky);
  font-size: 20px; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 16px; color: var(--text-soft); font-size: 15px; }

/* ------------------------------------------------ contact / footer */
.contact { background: var(--navy); color: var(--on-navy); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
.contact h2 { font-size: clamp(23px, 3.4vw, 30px); font-weight: 700; margin-bottom: 12px; }
.contact-lede { color: var(--on-navy-soft); font-size: 16px; margin: 0; }
.chan { display: grid; gap: 12px; }
.chan a {
  display: flex; align-items: center; gap: 13px;
  background: var(--navy-2); border: 1px solid #2A6094; border-radius: 10px;
  padding: 15px 17px; text-decoration: none;
}
.chan a:hover { border-color: var(--sky-hi); }
.chan b { font-family: var(--display); font-size: 16px; font-weight: 600; direction: ltr; display: block; }
.chan small { display: block; color: var(--on-navy-faint); font-size: 13px; font-weight: 400; }
.chan-ico {
  width: 38px; height: 38px; flex: none; border-radius: 9px;
  background: rgba(127,201,247,.15); color: var(--sky-hi);
  display: grid; place-items: center; font-size: 16px;
}
.foot {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 20px; font-size: 13px; color: var(--on-navy-faint);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* ------------------------------------------------ project cases */
/* 20 tiles fill 5, 4 and 2 columns exactly, so no row is left short */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shot {
  aspect-ratio: 1; padding: 0; cursor: zoom-in; display: block;
  border: 1px solid var(--card-line); background: var(--mist);
  border-radius: 8px; overflow: hidden; transition: border-color .15s ease;
}
.shot:hover { border-color: var(--sky); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* enlarge on click */
/* Closed is the default state in CSS, so a missing [hidden] rule in some
   other environment can never leave this overlay stuck on the page. */
#lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 50; cursor: zoom-out;
  background: rgba(6, 20, 33, .93);
  place-items: center;
  padding: 24px;
}
#lightbox.open { display: grid; }
#lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 8px; align-self: center;
}

/* ------------------------------------------------ package icons */
/* Every package is 4-channel, so the brand is what actually differs —
   the icon leads with it and the glyph says which kind of kit it is. */
.ico {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 9px; margin-bottom: 13px;
  background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 100%);
  color: var(--sky-hi);
  display: grid; align-content: center; justify-items: center; gap: 5px;
  padding: 10px; overflow: hidden;
}
.ico::after {           /* the field-of-view wedge, echoing the hero */
  content: ""; position: absolute; inset: 0;
  background: conic-gradient(from 200deg at 100% 0%,
      rgba(127,201,247,.16) 0deg, rgba(127,201,247,.04) 22deg, transparent 38deg);
}
.ico svg { width: 52px; position: relative; z-index: 1; }
.ico-brand {
  position: relative; z-index: 1;
  font-family: var(--body); font-size: 16px; font-weight: 700;
  letter-spacing: .04em; color: #FFFFFF; direction: ltr; line-height: 1.2;
}
.ico-spec { position: relative; z-index: 1; font-size: 11.5px; color: #9EBFD8; }

.ico-lg {
  aspect-ratio: 4 / 3; margin-bottom: 0; align-self: center; gap: 9px;
  background: linear-gradient(160deg, var(--navy-3) 0%, var(--navy-2) 100%);
  border: 1px solid rgba(255,255,255,.13);
}
.ico-lg svg { width: 78px; }
.ico-lg .ico-brand { font-size: 21px; }
.ico-lg .ico-spec { font-size: 13px; }

/* the equipment-only caveat has to be impossible to miss */
.pricing-note {
  border-inline-start: 3px solid var(--sky);
  background: var(--sky-wash);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px; font-size: 14.5px; color: var(--text);
  margin-top: 4px;
}
.pricing-note strong { font-weight: 700; }

/* --- supplied by the host build, not needed inside the Artifact wrapper --- */
:root { color-scheme: light dark; }
img { max-width: 100%; }
[hidden] { display: none !important; }
