:root {
  color-scheme: light;
  --navy: #0b1726;
  --navy-soft: #13243d;
  --teal: #087e74;
  --teal-dark: #06665e;
  --mint: #4bc7b0;
  --gold: #d4a84f;
  --paper: #fff;
  --wash: #edf4f3;
  --ink-muted: #506579;
  --line: #d4e1df;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--navy-soft);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.38; }
h2 { font-size: clamp(1.95rem, 4vw, 3.15rem); font-weight: 900; text-wrap: balance; }
h3 { font-size: 1.13rem; font-weight: 800; }
em { color: var(--teal); font-style: normal; }
section[id], main[id] { scroll-margin-top: 99px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: clamp(44px, 6vw, 80px); }
.skip { position: fixed; inset-block-start: -100px; inset-inline-start: 16px; z-index: 10; background: white; padding: 9px 16px; }
.skip:focus { inset-block-start: 12px; }

.header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; line-height: 1.45; }
.brand img { width: 51px; height: 51px; object-fit: contain; }
.brand small { display: block; text-align: right; color: var(--ink-muted); font: 600 .62rem/1.8 system-ui, sans-serif; letter-spacing: .17em; }
.desktop-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(15px, 2.4vw, 36px); font-weight: 600; font-size: .9rem; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-switch { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: 7px; border: 1px solid var(--line); border-radius: 7px; font-size: .82rem; font-weight: 800; }
.language-switch:hover { background: var(--wash); color: var(--teal-dark); }
:root[lang="en"] { font-family: system-ui, sans-serif; }
:root[lang="en"] .brand small { display: none; }
.desktop-nav a:hover, .text-link:hover, .mobile-nav a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 10px 19px; border-radius: 7px; background: var(--teal); color: #fff; font-weight: 800; transition: background .2s, transform .2s; }
.button:hover { background: var(--teal-dark); transform: translateY(-2px); }
.button span, .text-link span { font-family: system-ui, sans-serif; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; }
.mobile-nav { display: none; }

.header.scrolled { background: var(--navy); color: white; border-color: var(--navy); }
.header.scrolled .brand small { color: #b8c9d2; }
.header.scrolled .desktop-nav a:hover { color: var(--mint); }
.header.scrolled .brand img { background: white; border-radius: 6px; }

.hero { --hero-surface: #f5f7f7; position: relative; padding-block: clamp(65px, 8vw, 126px); background: var(--hero-surface); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.eyebrow { display: inline-block; padding: 5px 15px; color: var(--teal-dark); background: #e6f2ef; border-radius: 4px; font-size: .86rem; font-weight: 800; margin-block-end: 18px; }
.hero h1 { font-size: clamp(2.65rem, 4.6vw, 4.35rem); font-weight: 900; line-height: 1.32; }
.lead { font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--ink-muted); line-height: 2; max-width: 50ch; }
.hero .lead { margin-block: 22px 30px; }
.hero-actions { position: relative; padding-block-start: 34px; }
.hero-actions::before,
.hero-actions::after { content: ""; position: absolute; inset-block-start: 0; height: 1px; pointer-events: none; }
.hero-actions::before { inset-inline: 0; background: var(--teal); }
.hero-actions::after {
  /* A narrow gap travels across the rule, following the page direction. */
  inset-inline-start: 0;
  width: 22px;
  background: var(--hero-surface);
  animation: hero-line-sweep 5s linear infinite;
}
@keyframes hero-line-sweep {
  to { inset-inline-start: calc(100% - 22px); }
}
.hero-visual { position: relative; isolation: isolate; margin-inline: 10px; }
.hero-visual::before { content: ""; position: absolute; inset: 0; border-radius: 13px; background: linear-gradient(150deg, var(--navy), var(--teal) 63%, var(--gold)); transform: rotate(3deg); z-index: -1; }
.photo { aspect-ratio: .91; border-radius: 13px; background: linear-gradient(155deg, transparent 52%, #0b17263b), url("assets/hero-monitoring-refined.jpg") center 42% / cover, var(--navy); }
.image-link { position: absolute; inset: auto auto 19px 19px; display: grid; place-content: center; text-align: center; width: 76px; height: 76px; border-radius: 50%; background: var(--teal); color: white; font-size: .82rem; font-weight: 800; line-height: 1.4; transition: background .2s; }
.image-link:hover { background: var(--teal-dark); }
.hero-orbit { position: absolute; inset: 9% 8% auto auto; width: 27%; aspect-ratio: 1; border: 1px dashed #f1fff4a6; border-radius: 50%; pointer-events: none; animation: hero-drift 6s ease-in-out infinite; }
.hero-orbit::before { content: ""; position: absolute; inset: 8% auto auto 12%; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px #4bc7b080; }
@keyframes hero-drift { 50% { transform: translate(-12px, 13px) rotate(-10deg); } }
.hero-rail { position: absolute; inset-inline-end: 4%; top: 50%; transform: translateY(-50%); display: grid; gap: 13px; justify-items: center; }
.hero-rail::before, .hero-rail::after { content: ""; width: 1px; height: 54px; background: #91bcb6; }
.hero-rail a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: white; font: 1rem system-ui; }
.hero-rail a:hover { background: var(--navy); }
@media (max-width: 1430px) { .hero-rail { display: none; } }

.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(24px, 7vw, 90px); }
.about-text .lead { margin-block: 18px 24px; }
.about-visual { position: relative; display: grid; align-items: center; min-height: 340px; padding: 10%; border-radius: 12px; background: radial-gradient(ellipse at 12% 16%, #2d5363, transparent 62%), var(--navy); }
.about-visual::after { content: ""; position: absolute; inset: 12% auto auto 11%; width: 31px; aspect-ratio: 1; border: 1px solid var(--mint); border-radius: 7px; animation: monitor-drift 5s ease-in-out infinite; }
@keyframes monitor-drift { 50% { transform: translateY(13px) rotate(14deg); } }
.monitor { display: flex; direction: ltr; align-items: end; gap: 8%; aspect-ratio: 1.8; padding: 10%; border: 1px solid #4f6b78; border-radius: 10px; background: repeating-linear-gradient(to top, transparent 0 24%, #ffffff18 25% 25.5%), #132840; box-shadow: 18px 18px 0 #4bc7b024; }
.monitor span { flex: 1; height: 30%; border-radius: 3px 3px 0 0; background: linear-gradient(var(--mint), #206460); }
.monitor span:nth-child(2n) { height: 58%; }
.monitor span:nth-child(3n) { height: 42%; }
.monitor span:nth-child(n+5) { height: 72%; }
.monitor span:last-child { height: 91%; background: linear-gradient(var(--gold), #7f673a); }

.sectors { background: var(--wash); }
.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sector-card { display: grid; overflow: hidden; background: white; border-radius: 8px; box-shadow: 0 6px 26px #0b172611; }
.sector-photo { display: block; min-width: 0; aspect-ratio: 1.08; background: var(--navy) url("assets/concept-sectors.jpg") var(--card-image-position) center / 300% auto no-repeat; transition: filter .4s, background-size .5s; }
.sector-health { --card-image-position: left; }
.sector-infra { --card-image-position: center; }
.sector-data { --card-image-position: right; }
.sector-caption {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 115px;
  padding: 19px 21px 25px;
  border-inline-start: 3px solid transparent;
  transition: border-color .4s, background .4s;
}
.sector-caption::before {
  /* Draw the lattice behind the text so it never intercepts the card link. */
  --lattice-ink: #087e743d;
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-end: -9px;
  inset-inline-end: -8px;
  width: min(148px, 50%);
  height: 95px;
  background:
    repeating-linear-gradient(30deg, transparent 0 13px, var(--lattice-ink) 13px 14px),
    repeating-linear-gradient(150deg, transparent 0 13px, var(--lattice-ink) 13px 14px),
    repeating-linear-gradient(90deg, transparent 0 15px, #4bc7b035 15px 16px);
  mask-image: linear-gradient(to top left, #000 15%, #000b 40%, transparent 77%);
  pointer-events: none;
  transition: opacity .4s;
}
:root[dir="rtl"] .sector-caption::before { transform: scaleX(-1); }
.sector-caption strong { font-size: 1.12rem; }
.sector-caption > span { color: var(--ink-muted); font-size: .85rem; }
.sector-card:is(:hover, :focus-visible) .sector-caption { background: #e9f5f1; border-color: var(--teal); }
.sector-card:is(:hover, :focus-visible) .sector-caption::before { opacity: .67; }
.sector-card:is(:hover, :focus-visible) .sector-photo { filter: saturate(1.22); }
.services { padding-block: clamp(36px, 4.6vw, 62px); background: var(--paper); }
.section-heading { margin-block-end: clamp(22px, 3vw, 30px); }
.services .section-heading, .solutions .section-heading, .faq .section-heading { text-align: center; }
.services .section-heading { margin-block-end: 22px; }
.services .eyebrow { margin-block-end: 8px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-grid article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 9px 12px;
  padding: clamp(14px, 1.6vw, 21px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background .5s, border-color .5s, transform .5s, box-shadow .5s;
}
.service-grid h3, .service-mark { align-self: center; }
.service-grid article:hover { background: #f3faf8; border-color: var(--teal); transform: translateY(-5px); box-shadow: 0 12px 26px #0b172610; }
.service-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--wash); color: var(--teal-dark); transition: background .5s, color .5s, transform .5s; }
.service-mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.service-grid article:hover .service-mark { transform: translateY(-3px); background: var(--teal); color: white; }
.service-grid p, .steps p, .contact p:not(.eyebrow) { color: var(--ink-muted); font-size: .92rem; margin-block-start: 10px; }
.service-grid p { grid-column: 1 / -1; margin-block-start: 0; }
.steps {
  --step-gap: 24px;
  --step-size: 44px;
  --step-rail: #82b6ad;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--step-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li { position: relative; display: grid; grid-template-rows: var(--step-size) 1fr; gap: 16px; min-width: 0; }
.step-number {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  width: var(--step-size);
  height: var(--step-size);
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: white;
  background: var(--teal-dark);
  font-size: 1rem;
  font-weight: 800;
}
.step-copy { padding: clamp(16px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: 10px; background: var(--wash); text-align: center; }
.step-copy p { margin-block-start: 7px; }
.steps li:not(:last-child)::before,
.steps li:not(:last-child)::after { content: ""; position: absolute; pointer-events: none; }
.steps li:not(:last-child)::before {
  inset-block-start: calc(var(--step-size) / 2);
  inset-inline-start: 50%;
  width: calc(100% + var(--step-gap));
  height: 1px;
  background: var(--step-rail);
}
.steps li:not(:last-child)::after {
  inset-block-start: calc(var(--step-size) / 2 - 4px);
  inset-inline-end: calc(var(--step-gap) / -2 - 4px);
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: rotate(-45deg);
}
:root[dir="rtl"] .steps li:not(:last-child)::after { transform: rotate(135deg); }

@media (max-width: 750px) {
  .steps { --step-gap: 22px; grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template: auto / var(--step-size) minmax(0, 1fr); gap: 13px; align-items: start; }
  .step-copy { text-align: start; }
  .steps li:not(:last-child)::before {
    inset-inline-start: calc(var(--step-size) / 2);
    width: 1px;
    height: calc(100% + var(--step-gap));
  }
  .steps li:not(:last-child)::after,
  :root[dir="rtl"] .steps li:not(:last-child)::after {
    inset: auto;
    inset-block-end: calc(var(--step-gap) / -2 - 4px);
    inset-inline-start: calc(var(--step-size) / 2 - 4px);
    transform: rotate(45deg);
  }
}

.faq { color: #f2f7f8; background: linear-gradient(110deg, #0b1726ec, #0b1726df), url("assets/concept-hero.jpg") center 45% / cover, var(--navy); }
.faq em { color: var(--mint); }
.faq .eyebrow { background: #ffffff14; color: var(--mint); }
.faq :focus-visible { outline-color: var(--mint); }
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px 24px; }
.questions details { border: 1px solid #385264; border-radius: 8px; background: #ffffff08; }
.questions summary, .mobile-nav summary { cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker, .mobile-nav summary::-webkit-details-marker { display: none; }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px; padding: 12px 16px; font-weight: 700; }
.questions summary::after { content: "+"; color: var(--mint); flex: none; font: 500 1.25rem/1 system-ui; }
.questions details[open] summary::after { content: "−"; }
.questions details[open] { border-color: #4bc7b07d; }
.questions p { padding: 0 16px 15px; font-size: .89rem; color: #c1d0db; }

.solutions { background: var(--paper); }
.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.solution-grid article { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: end; gap: 8px; min-height: 238px; padding: 24px; border-radius: 10px; color: white; background: radial-gradient(ellipse at 20% 0%, #087e74, transparent 75%), var(--navy); }
.solution-grid article::before { content: ""; position: absolute; z-index: -1; inset: 7% 10% auto auto; width: 105px; aspect-ratio: 1; border: 1px solid #a5efd270; border-radius: 22px; transform: rotate(20deg); box-shadow: 0 0 0 18px #a5efd217, 0 0 0 36px #a5efd20b; transition: transform .5s; }
.solution-grid article:hover::before { transform: scale(1.14) rotate(32deg); }
.solution-grid article span { color: var(--mint); font-size: 2.4rem; }
.solution-grid article p { color: #c0d4db; font-size: .9rem; }

.contact-box { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(20px, 5vw, 60px); border: 1px solid var(--line); border-radius: 17px; padding: clamp(18px, 4vw, 48px); background: var(--wash); }
.contact-actions { display: grid; align-items: center; justify-items: start; gap: 4px; }
.contact-actions bdi { direction: ltr; }
.consultation-form { display: grid; gap: 12px; padding: clamp(12px, 2.5vw, 25px); border: 1px solid var(--line); border-radius: 11px; background: white; }
.consultation-form label { display: grid; gap: 4px; min-width: 0; font-size: .87rem; font-weight: 700; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.consultation-form input, .consultation-form select, .consultation-form textarea { min-height: 44px; width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #acbfbd; border-radius: 6px; color: var(--navy); background: white; font: inherit; }
.consultation-form textarea { resize: vertical; }
.consultation-form .form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.security-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.security-fields label { flex: 1 1 155px; }
.security-question { display: block; color: var(--ink-muted); }
.question-refresh { min-height: 44px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--teal-dark); background: var(--wash); font: inherit; cursor: pointer; }
.consult-submit { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.consultation-form button:disabled { opacity: .55; cursor: default; transform: none; }
.consult-status { min-height: 1.4em; margin: 0 !important; color: var(--teal-dark) !important; }
.consult-status.is-error { color: #9b2626 !important; }
.footer {
  --footer-border: rgb(18 42 62 / 11%);
  --footer-muted: #9ba3b8;
  padding-block: 58px 30px;
  border-block-start: 1px solid var(--footer-border);
  background: #0a1422;
  color: #f3f5fb;
  line-height: 1.9;
}
:root[lang="en"] .footer { font-family: "Segoe UI", Arial, sans-serif; line-height: 1.75; }
.footer .wrap { width: min(1160px, calc(100% - 48px)); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand .brand { display: inline-flex; }
.footer .brand-logo-footer { width: 62px; height: 60px; padding: 6px; background: white; border-radius: 9px; }
.foot-brand p { margin-block-start: 18px; max-width: 34ch; color: var(--footer-muted); font-size: .88rem; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col b { margin-block-end: 6px; font-size: .95rem; }
.foot-col a { width: fit-content; color: var(--footer-muted); font-size: .87rem; transition: color .25s, transform .25s; }
.foot-col a:hover { color: white; transform: translateX(4px); }
:root[dir="rtl"] .foot-col a:hover { transform: translateX(-4px); }
.footer :focus-visible { outline-color: var(--mint); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-block-start: 50px; padding-block-start: 24px; border-block-start: 1px solid var(--footer-border); color: var(--footer-muted); font-size: .8rem; }
.foot-made { color: #9aaeba; }
.foot-made a { color: #60a5fa; font-weight: 700; text-decoration: underline; text-decoration-color: rgb(96 165 250 / 35%); text-underline-offset: 4px; transition: color .25s, text-decoration-color .25s; }
.foot-made a:hover { color: #93c5fd; text-decoration-color: currentColor; }

@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .footer .wrap { width: calc(100% - 32px); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
.back-to-top {
  position: fixed;
  z-index: 4;
  inset-inline-end: max(18px, env(safe-area-inset-right));
  inset-block-end: max(24px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font: 700 1.4rem/1 system-ui, sans-serif;
  box-shadow: 0 0 0 6px #087e7426, 0 8px 25px #0b172638;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(9px);
  transition: opacity .22s ease, transform .22s ease, background .2s, visibility .22s;
}
:root[dir="rtl"] .back-to-top { inset-inline-end: max(18px, env(safe-area-inset-left)); }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-dark); }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { min-height: 68px; }
  .desktop-nav, .header-cta { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 7px; }
  .menu-icon { width: 18px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
  .mobile-nav nav { position: absolute; inset: 100% 0 auto; display: grid; background: white; border-block-end: 1px solid var(--line); padding: 9px 24px; box-shadow: 0 16px 30px #0b172615; }
  .header.scrolled .mobile-nav nav { color: var(--navy); }
  .mobile-nav nav a { min-height: 44px; padding: 8px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-box { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .hero-inner, .about, .questions, .sector-grid, .service-grid, .solution-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.03rem, 8vw, 3rem); }
  .hero .lead { margin-block: 17px 23px; }
  .hero-actions { padding-block-start: 22px; }
  .about-visual { order: 1; min-height: 225px; }
  .hero-visual { margin-inline: 7px 10px; }
  .form-fields { grid-template-columns: minmax(0, 1fr); }
  .header-inner { gap: 6px; }
  .header-actions { gap: 5px; }
  .brand { gap: 5px; font-size: .85rem; }
  .brand img { width: 39px; height: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-actions::after { content: none; }
}
