:root {
  --ink: #071827;
  --ink-2: #0d263c;
  --steel: #42566b;
  --muted: #6a7a8c;
  --line: #dbe3ec;
  --paper: #ffffff;
  --soft: #f3f7fb;
  --blue: #075ed8;
  --blue-2: #1696ff;
  --cyan: #38d6ff;
  --green: #46ffad;
  --radius: 26px;
  --shadow: 0 30px 90px rgba(7, 24, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

body[dir="rtl"] {
  font-family: Tahoma, Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a,
button,
.btn,
.language-switch,
.menu-toggle,
.system-card,
.timeline article,
.scope-list div,
.contact-links a {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(7, 24, 39, 0.72);
  backdrop-filter: blur(18px);
  color: #ffffff;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 16px 45px rgba(7, 24, 39, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  padding: 4px;
}

.brand b {
  display: block;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: currentColor;
  opacity: 0.68;
  font-size: 11px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a,
.language-switch {
  text-decoration: none;
  border: 0;
  background: transparent;
  color: rgb(50, 44, 154);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 999px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.main-nav a:hover,
.language-switch:hover {
  background: rgba(124, 17, 24, 0.12);
  transform: translateY(-1px);
}

.language-switch {
  background: rgba(255, 255, 255, 0.12);
}

.topbar.scrolled .language-switch {
  background: var(--soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
}

/* Hero */

.hero {
  position: relative;
  min-height: 840px;
  padding: 160px 0 92px;
  overflow: hidden;
  color: #ffffff;
  background: var(--ink);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(7, 24, 39, 0.94),
      rgba(7, 24, 39, 0.76) 48%,
      rgba(7, 24, 39, 0.42)
    ),
    radial-gradient(circle at 70% 22%, rgba(22, 150, 255, 0.34), transparent 28rem);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 25px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  line-height: 0.94;
  letter-spacing: -0.064em;
}

.hero-lead {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: 20px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  opacity: 0.96;
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(22, 150, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 22px 44px rgba(22, 150, 255, 0.34);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Hero panel */

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.panel-header {
  height: 56px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.panel-body {
  padding: 26px;
}

.system-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(7, 24, 39, 0.58);
}

.system-status b {
  display: block;
  font-size: 20px;
}

.system-status small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
}

.system-status > span {
  font-size: 12px;
  font-weight: 900;
  color: var(--green);
  background: rgba(70, 255, 173, 0.12);
  padding: 8px 10px;
  border-radius: 999px;
}

.status-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.status-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-list span {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(56, 214, 255, 0.14);
  color: var(--cyan);
  font-weight: 900;
}

.status-list p {
  margin: 0;
}

.status-list b {
  display: block;
}

.status-list small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.66);
}

/* Systems */

.systems,
.process {
  padding: 96px 0;
  background: #474747;
}

.section-title {
  max-width: 820px;
  margin-bottom: 46px;
}

.section-title.compact {
  max-width: 760px;
}

.section-title h2,
.work-copy h2,
.cta h2 {
  margin: 0;
  font-size: 60pex;
  line-height: 1.04;
  letter-spacing: -0.052em;
  color: var(--ink);
}

.section-title p:not(.eyebrow),
.work-copy p,
.cta p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 25px;
  line-height: 1.72;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.system-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 16px 48px rgba(7, 24, 39, 0.1);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.system-card.wide {
  grid-column: span 2;
}

.system-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.system-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      transparent 18%,
      rgba(7, 24, 39, 0.36) 44%,
      rgba(7, 24, 39, 0.92)
    );
}

.system-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(7, 24, 39, 0.18);
}

.system-card:active {
  transform: translateY(-2px) scale(0.99);
}

.system-card:hover img {
  transform: scale(1.05);
}

.system-card div {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #ffffff;
}

.system-card span {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.system-card h3 {
  margin: 10px 0 10px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.system-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.62;
}

/* Scope */

.section-light {
  padding: 96px 0;
  background: var(--soft);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 60px;
  align-items: center;
}

.image-stack {
  position: relative;
  min-height: 560px;
}

.stack-main {
  width: 82%;
  height: 520px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.stack-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 220px;
  object-fit: cover;
  border-radius: 24px;
  border: 10px solid var(--soft);
  box-shadow: var(--shadow);
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.scope-list div {
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.scope-list div:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(7, 24, 39, 0.12);
  border-color: rgba(22, 150, 255, 0.28);
}

.scope-list div:active {
  transform: translateY(-1px) scale(0.99);
}

.scope-list b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.scope-list span {
  color: var(--steel);
  line-height: 1.55;
}

/* Process */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline article {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 24, 39, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.timeline article:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(7, 24, 39, 0.12);
  border-color: rgba(22, 150, 255, 0.28);
}

.timeline article:active {
  transform: translateY(-1px) scale(0.99);
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

.timeline h3 {
  margin: 24px 0 10px;
  font-size: 24px;
  color: var(--ink);
}

.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* CTA */

.cta {
  padding: 86px 0;
  background: var(--ink);
}

.cta-card {
  padding: 44px;
  border-radius: 36px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 24, 39, 0.94), rgba(7, 24, 39, 0.66)),
    url("assets/images/cctv.jpg") center / cover;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta h2 {
  color: #ffffff;
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.contact-links a:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(7, 24, 39, 0.18);
}

.contact-links a:active {
  transform: translateY(-1px) scale(0.99);
}

/* Footer */

.footer {
  padding: 32px 0;
  background: #04101b;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer b {
  color: #ffffff;
}

.footer p {
  margin: 6px 0 0;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* RTL */

body[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(
      270deg,
      rgba(7, 24, 39, 0.94),
      rgba(7, 24, 39, 0.76) 48%,
      rgba(7, 24, 39, 0.42)
    ),
    radial-gradient(circle at 30% 22%, rgba(22, 150, 255, 0.34), transparent 28rem);
}

body[dir="rtl"] .brand,
body[dir="rtl"] .main-nav,
body[dir="rtl"] .hero-actions,
body[dir="rtl"] .status-list div {
  flex-direction: row-reverse;
}

body[dir="rtl"] .system-card div {
  text-align: right;
}

body[dir="rtl"] .stack-card {
  right: auto;
  left: 0;
}

/* Responsive */

@media (max-width: 1020px) {
  .hero-grid,
  .split-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-card.wide {
    grid-column: span 1;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    top: 10px;
    height: 66px;
    padding: 0 12px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand b {
    font-size: 13px;
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 76px;
    margin: 0 auto;
    width: calc(100vw - 28px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a,
  .language-switch {
    text-align: center;
    background: var(--soft);
  }

  .hero {
    padding: 128px 0 70px;
  }

  .hero h1 {
    font-size: 44px;
    letter-spacing: -0.045em;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-panel {
    border-radius: 24px;
  }

  .systems,
  .section-light,
  .process,
  .cta {
    padding: 64px 0;
  }

  .systems-grid,
  .scope-list,
  .timeline {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: 390px;
  }

  .section-title h2,
  .work-copy h2,
  .cta h2 {
    font-size: 36px;
    letter-spacing: -0.04em;
  }

  .image-stack {
    min-height: auto;
  }

  .stack-main,
  .stack-card {
    width: 100%;
    height: 320px;
    position: static;
    border: 0;
    margin-top: 14px;
  }

  .cta-card {
    padding: 28px;
    border-radius: 26px;
  }

  .footer-grid {
    display: grid;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 38px;
  }

  .system-card {
    min-height: 350px;
  }

  .system-card h3 {
    font-size: 24px;
  }

  .system-card p {
    font-size: 14px;
  }
}
