:root {
  --bg: #06090d;
  --bg2: #0b1118;
  --card: rgba(14, 21, 30, 0.82);
  --line: rgba(238, 232, 220, 0.12);
  --line2: rgba(79, 200, 244, 0.4);
  --text: #eee8dc;
  --muted: #9aa7b1;
  --dim: #6b7883;
  --ac: #4fc8f4;
  --red: #ff5a4e;
  --font: "Sora", "Noto Kufi Arabic", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --nav: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html[lang="ar"] body {
  font-family: "Noto Kufi Arabic", "Sora", system-ui, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.grabbing,
body.grabbing * {
  cursor: grabbing !important;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 3px;
}

#nodeCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav);
  z-index: 100;
  background: rgba(6, 9, 13, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav.scrolled {
  background: rgba(6, 9, 13, 0.92);
}

.nav-inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ac);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 11px var(--mono);
  padding: 7px 10px;
  cursor: pointer;
}

.lang-toggle:hover {
  color: var(--ac);
  border-color: var(--ac);
}

.nav-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav) 0 auto 0;
  z-index: 99;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  font: 600 13px var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    box-shadow 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.btn-primary {
  background: var(--ac);
  color: #04141c;
}

.btn-primary:hover {
  box-shadow: 0 0 26px rgba(79, 200, 244, 0.45);
}

.btn-ghost {
  border-color: var(--line2);
  color: var(--text);
  background: rgba(6, 9, 13, 0.5);
}

.btn-ghost:hover {
  border-color: var(--ac);
  color: var(--ac);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(6, 9, 13, 0.92) 0%,
      rgba(6, 9, 13, 0.4) 30%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 60% at 50% 50%,
      transparent 40%,
      rgba(6, 9, 13, 0.7) 100%
    );
}

.hero-content {
  position: absolute;
  inset-inline-start: 40px;
  bottom: 72px;
  max-width: 460px;
  z-index: 3;
}

.hero-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 420px;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stage-panel {
  position: absolute;
  inset-inline-end: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 268px;
  padding: 20px;
  background: rgba(8, 13, 19, 0.86);
  border: 1px solid var(--line);
  font-family: var(--mono);
}

.stage-label {
  font-size: 10px;
  color: var(--dim);
  margin-bottom: 8px;
}

.stage-number {
  font-size: 44px;
  line-height: 1;
  color: var(--ac);
  margin-bottom: 6px;
}

.stage-name {
  font: 600 17px var(--font);
  margin-bottom: 6px;
}

.stage-desc {
  font: 12px/1.5 var(--font);
  color: var(--muted);
  min-height: 5.4em;
  margin-bottom: 14px;
}

.stage-bar {
  height: 2px;
  background: var(--line);
  margin-bottom: 14px;
}

.stage-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ac);
}

.stage-list {
  list-style: none;
  display: grid;
  gap: 2px;
}

.stage-list li {
  font-size: 10px;
  color: var(--dim);
  padding-inline-start: 8px;
  border-inline-start: 2px solid transparent;
  white-space: pre;
}

.stage-list li.on {
  color: var(--ac);
  border-color: var(--ac);
}

.scroll-hint {
  position: absolute;
  inset-inline-end: 50%;
  transform: translateX(50%);
  bottom: 20px;
  z-index: 3;
  font: 10px var(--mono);
  color: var(--dim);
  transition: opacity 0.4s;
}

.creds {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 18px 0;
  background: rgba(11, 17, 24, 0.94);
  border-block: 1px solid var(--line);
}

.creds-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.cred {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.cred b {
  font: 500 14px var(--mono);
  color: var(--ac);
}

.cred span {
  font-size: 11px;
  color: var(--dim);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

html[dir="rtl"] .creds-track {
  animation-direction: reverse;
}

.section {
  position: relative;
  z-index: 2;
  padding: 110px 24px;
  background: rgba(6, 9, 13, 0.74);
}

.head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.tag {
  display: block;
  font: 11px var(--mono);
  color: var(--ac);
  margin-bottom: 14px;
}

.title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.sub {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
}

.rail {
  max-width: 1200px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  border-top: 1px solid var(--line);
}

.st-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-align: start;
  background: none;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 8px;
  font: 500 15px var(--font);
  cursor: pointer;
  transition:
    color 0.2s,
    padding 0.25s;
}

.st-item span {
  font: 11px var(--mono);
  color: var(--ac);
}

.st-item:hover {
  color: var(--ac);
  padding-inline-start: 18px;
}
/* ============================================================
   LIFECYCLE PANEL — boxed console CTA for the services rail
   ============================================================ */
.lifecycle-panel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 36px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(
      120% 140% at 82% 0%,
      rgba(79, 200, 244, 0.08),
      transparent 55%
    ),
    linear-gradient(165deg, rgba(14, 20, 28, 0.7), rgba(7, 11, 16, 0.9));
  overflow: hidden;
}

.lp-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(79, 200, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 200, 244, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(
    120% 100% at 50% 0%,
    #000 0%,
    transparent 75%
  );
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 75%);
}

.lp-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
  border: 1px solid var(--line2);
  opacity: 0.8;
}
.lp-corner.tl {
  top: -1px;
  inset-inline-start: -1px;
  border-inline-end: 0;
  border-bottom: 0;
  border-start-start-radius: 22px;
}
.lp-corner.tr {
  top: -1px;
  inset-inline-end: -1px;
  border-inline-start: 0;
  border-bottom: 0;
  border-start-end-radius: 22px;
}
.lp-corner.bl {
  bottom: -1px;
  inset-inline-start: -1px;
  border-inline-end: 0;
  border-top: 0;
  border-end-start-radius: 22px;
}
.lp-corner.br {
  bottom: -1px;
  inset-inline-end: -1px;
  border-inline-start: 0;
  border-top: 0;
  border-end-end-radius: 22px;
}

.lifecycle-panel .rail {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.lp-cta {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 30px 4px 34px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.lp-cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lp-cta-label {
  font: 11px var(--mono);
  color: var(--ac);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-cta-sub {
  font-size: 13.5px;
  color: var(--muted);
}

.btn-enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: linear-gradient(
    135deg,
    rgba(79, 200, 244, 0.16),
    rgba(79, 200, 244, 0.03)
  );
  color: var(--text);
  font: 600 14px var(--font);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 0.4s,
    box-shadow 0.4s,
    transform 0.3s;
}

.btn-enter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0.22) 49%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.22) 51%,
    rgba(255, 255, 255, 0) 58%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: 150% 0;
  mix-blend-mode: overlay;
  transition: background-position 2.2s cubic-bezier(0.4, 0, 0.15, 1);
}

.btn-enter .be-label,
.btn-enter .be-arrow {
  position: relative;
  z-index: 2;
}

.btn-enter:hover::before,
.btn-enter:focus-visible::before {
  background-position: -70% 0;
  transition-delay: 0.08s;
}

.be-glow {
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: 999px;
  background: radial-gradient(
    60% 140% at 50% 50%,
    rgba(79, 200, 244, 0.55),
    transparent 70%
  );
  opacity: 0;
  animation: beGlowPulse 2.6s ease-in-out infinite;
}
@keyframes beGlowPulse {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.55;
  }
}

.be-arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.28, 1);
}
.btn-enter:hover .be-arrow,
.btn-enter:focus-visible .be-arrow {
  transform: translateX(5px);
}

@media (max-width: 640px) {
  .lifecycle-panel {
    padding-inline: 20px;
    border-radius: 18px;
  }
  .lp-cta {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 28px;
  }
  .btn-enter {
    width: 100%;
    justify-content: center;
  }
}

.center {
  text-align: center;
}

.products-grid,
.projects-grid,
.vision-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.products-grid {
  grid-template-columns: 1fr 1fr;
}

.product {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.badge {
  width: fit-content;
  font: 10px var(--mono);
  color: var(--ac);
  padding: 4px 10px;
  border: 1px solid var(--line2);
}

.product h3 {
  font-size: 26px;
  font-weight: 600;
}

.product p {
  color: var(--muted);
  font-size: 14px;
}

.dash {
  background: #070b10;
  border: 1px solid var(--line);
}

.dash-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font: 11px var(--mono);
  color: var(--muted);
}

.live {
  color: #46d39a;
}

.dash-body {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric span {
  display: block;
  font: 10px var(--mono);
  color: var(--dim);
}

.metric b {
  font: 500 22px var(--mono);
}

.bar {
  height: 3px;
  background: var(--line);
  margin-top: 6px;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--ac);
  transition: width 0.8s;
}

#sparkCanvas {
  width: 100%;
  height: 28px;
  display: block;
}

.iot {
  grid-column: 1 / -1;
  height: 84px;
  position: relative;
  background: #0a1118;
  border: 1px solid var(--line);
  overflow: hidden;
}

.iot i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ac);
  opacity: 0.45;
  transition:
    transform 0.4s,
    opacity 0.4s;
}

.iot i.hot {
  transform: scale(2);
  opacity: 1;
  box-shadow: 0 0 8px var(--ac);
}

.maq-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 220px;
}

.unit-wrap {
  position: relative;
  background: #0a1118;
  border-inline-end: 1px solid var(--line);
  min-height: 220px;
}

#unitCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.unit-note {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 10px;
  font: 10px var(--mono);
  color: var(--dim);
  pointer-events: none;
}

.unit-stats {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.unit-stats span {
  display: block;
  font: 10px var(--mono);
  color: var(--dim);
}

.unit-stats b {
  font: 500 20px var(--mono);
  color: var(--ac);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tags span,
.pc-meta span {
  font: 10px var(--mono);
  color: var(--dim);
  padding: 4px 8px;
  border: 1px solid var(--line);
}

.projects-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 44px;
}

.project {
  background: var(--card);
  border: 1px solid var(--line);
  transition:
    transform 0.2s,
    border-color 0.3s;
  will-change: transform;
}

.project:hover {
  border-color: var(--line2);
}

.pc-vis {
  position: relative;
  background: #070b10;
  border-bottom: 1px solid var(--line);
}

.pc-wire {
  width: 100%;
  height: auto;
  display: block;
}

.pc-lod {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  font: 10px var(--mono);
  color: var(--ac);
  padding: 3px 8px;
  border: 1px solid var(--line2);
  background: rgba(6, 9, 13, 0.85);
}

.pc-body {
  padding: 18px;
}

.pc-body h3 {
  font-size: 16px;
  font-weight: 600;
}

.pc-body p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 12px;
}

.pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clients {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  font-size: 13px;
  color: var(--muted);
}

.clients b {
  font: 10px var(--mono);
  color: var(--dim);
  width: 100%;
  text-align: center;
  font-weight: 400;
}

#contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 420px;
  flex: 1 1 380px;
}

.form {
  flex: 1 1 480px;
  max-width: 560px;
}

.contact-inner .sub {
  margin: 0 0 32px;
}

.contact-inner .head {
  text-align: start;
  margin: 0;
}

.cd {
  display: grid;
  gap: 18px;
}

.cd span {
  display: block;
  font: 10px var(--mono);
  color: var(--dim);
}

.cd a {
  text-decoration: none;
}

.cd a:hover {
  color: var(--ac);
}

.form {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font: 11px var(--mono);
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  background: #070b10;
  border: 1px solid var(--line);
  color: var(--text);
  font: 14px var(--font);
  padding: 12px 14px;
  border-radius: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ac);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.portal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  visibility: hidden;
  clip-path: circle(0% at 50% 50%);
}

.portal.open {
  visibility: visible;
}

#portalCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.p-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(6, 9, 13, 0.85),
      transparent 35%,
      transparent 65%,
      rgba(6, 9, 13, 0.85)
    ),
    linear-gradient(to top, rgba(6, 9, 13, 0.9), transparent 25%);
}

html[dir="rtl"] .p-scrim {
  transform: scaleX(-1);
}

.p-top {
  position: absolute;
  inset: 20px 24px auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

#pHud {
  font: 12px var(--mono);
  color: var(--ac);
}

#pStage {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 8px;
}

.p-bar {
  height: 2px;
  width: 220px;
  background: var(--line);
  margin-top: 12px;
}

.p-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ac);
}

.p-exit {
  background: rgba(6, 9, 13, 0.7);
  color: var(--text);
  border: 1px solid var(--line2);
  padding: 10px 16px;
  font: 12px var(--mono);
  cursor: pointer;
  white-space: nowrap;
}

.p-exit:hover {
  border-color: var(--ac);
  color: var(--ac);
}

#pServices {
  position: absolute;
  inset-inline-end: 32px;
  top: 50%;
  transform: translateY(-50%);
  list-style: none;
  width: 260px;
  font: 13px/1.4 var(--mono);
}

#pServices li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--ac);
  margin-bottom: 8px;
  background: rgba(6, 9, 13, 0.6);
}

.p-bottom {
  position: absolute;
  inset: auto 24px 20px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.p-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.p-bottom button {
  background: rgba(6, 9, 13, 0.7);
  color: var(--muted);
  border: 1px solid var(--line);
  font: 11px var(--mono);
  padding: 8px 10px;
  cursor: pointer;
  min-width: 38px;
}

.p-bottom button:hover,
.p-bottom button.on {
  color: var(--ac);
  border-color: var(--ac);
}

.p-keys {
  position: absolute;
  inset: auto 24px 64px 24px;
  text-align: center;
  font: 10px var(--mono);
  color: var(--dim);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .creds-track {
    animation: none;
  }
}

.hero-tags {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hn {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}
.hn > * {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  transition:
    opacity 1.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hn.on > * {
  opacity: 1;
  transform: none;
  filter: none;
}
.hn-main .box {
  position: absolute;
  top: -62px;
  left: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  padding: 9px 14px;
  background: rgba(6, 9, 13, 0.8);
  border: 1px solid var(--line2);
  backdrop-filter: blur(8px);
}
.hn-main.left .box {
  left: auto;
  right: 18px;
}
.hn-main b {
  font: 500 12px var(--mono);
  color: var(--ac);
}
.hn-main span {
  font: 500 14px var(--font);
  color: var(--text);
}
.hn-dot i {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--ac);
}
.hn-dot i::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--ac);
  animation: hnRing 3.6s ease-out infinite;
}
@keyframes hnRing {
  0% {
    transform: scale(0.4);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}
.hn-dot span {
  position: absolute;
  top: -14px;
  left: 18px;
  white-space: nowrap;
  padding: 6px 10px;
  background: rgba(6, 9, 13, 0.78);
  border: 1px solid var(--line);
  font: 12px var(--font);
  color: var(--text);
}
.hn-dot.left span {
  left: auto;
  right: 18px;
}
.hn-dot span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 12px;
  height: 1px;
  background: var(--ac);
}
.hn-dot.left span::before {
  left: auto;
  right: -14px;
}
@media (max-width: 768px) {
  .hn-main span {
    font-size: 12px;
  }
  .hn-dot span {
    font-size: 10px;
    padding: 4px 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hn > * {
    transition: none;
    filter: none;
  }
  .hn-dot i::after {
    animation: none;
  }
}

.hn-main::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px var(--ac);
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hn-main.on::before {
  opacity: 1;
}
.hn-main .box {
  top: -19px;
  left: 22px;
}
.hn-main.left .box {
  left: auto;
  right: 22px;
}
.hn-main .box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -18px;
  width: 18px;
  height: 1px;
  background: var(--ac);
}
.hn-main.left .box::before {
  left: auto;
  right: -18px;
}

.hn > * {
  transition-duration: 0.5s;
}
.hn.on > * {
  transition-duration: 1.6s;
}
.hn-main::before {
  transition-duration: 0.5s;
}
.hn-main.on::before {
  transition-duration: 1.6s;
}
/* ============================================================
   VISION / MANDATES — single explorable 3D WebGL stage, no cards
   ============================================================ */
.vision-section {
  overflow: hidden;
}

.vision-stage {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 560px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(
      120% 140% at 78% 18%,
      rgba(79, 200, 244, 0.1),
      transparent 60%
    ),
    linear-gradient(165deg, #0b121a, #060a0f 65%);
  overflow: hidden;
  touch-action: pan-y;
}

.vision-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: grab;
}
.vision-stage.grabbing .vision-canvas {
  cursor: grabbing;
}

.vision-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(6, 9, 13, 0.86) 0%,
    rgba(6, 9, 13, 0.35) 32%,
    transparent 56%
  );
}

.vision-index {
  position: absolute;
  inset-inline-start: 36px;
  top: 44px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vi-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: none;
  border: 0;
  border-inline-start: 2px solid var(--line);
  padding: 10px 0 10px 16px;
  text-align: start;
  color: var(--dim);
  cursor: pointer;
  transition:
    color 0.3s,
    border-color 0.3s,
    padding 0.3s;
}

.vi-n {
  font: 11px var(--mono);
}
.vi-l {
  font: 500 14px var(--font);
  white-space: nowrap;
}

.vi-item:hover {
  color: var(--muted);
}

.vi-item.on {
  color: var(--text);
  border-inline-start-color: var(--ac);
  padding-inline-start: 22px;
}
.vi-item.on .vi-n {
  color: var(--ac);
}

.vision-detail {
  position: absolute;
  inset-inline-end: 40px;
  bottom: 42px;
  z-index: 3;
  max-width: 380px;
  text-align: end;
}

.vd-tag {
  display: inline-block;
  font: 10px var(--mono);
  color: var(--ac);
  padding: 4px 10px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}

.vision-detail h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s 0.05s,
    transform 0.55s 0.05s;
}

.vision-detail p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s 0.1s,
    transform 0.55s 0.1s;
}

.vd-meta {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  font: 11px var(--mono);
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s 0.15s,
    transform 0.55s 0.15s;
}
.vd-meta span {
  color: var(--ac);
}

.vision-detail.in .vd-tag,
.vision-detail.in h3,
.vision-detail.in p,
.vision-detail.in .vd-meta {
  opacity: 1;
  transform: none;
}

.vision-hint {
  position: absolute;
  inset-inline-start: 36px;
  bottom: 22px;
  z-index: 3;
  font: 10px var(--mono);
  color: var(--dim);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.vision-progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--line);
  z-index: 3;
}
.vision-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ac);
}

@media (max-width: 900px) {
  .vision-stage {
    height: auto;
    min-height: 640px;
  }
  .vision-index {
    position: relative;
    inset: auto;
    top: auto;
    padding: 28px 20px 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .vi-item {
    border-inline-start: 0;
    border-bottom: 2px solid var(--line);
    padding: 6px 2px 8px;
  }
  .vi-item.on {
    padding-inline-start: 2px;
    border-bottom-color: var(--ac);
  }
  .vision-detail {
    position: relative;
    inset: auto;
    margin: 24px 20px 60px;
    max-width: none;
    text-align: start;
  }
  .vd-meta {
    justify-content: flex-start;
  }
  .vision-hint {
    display: none;
  }
}

/* ============================================================
   TIMELINE — animated zigzag spine
   ============================================================ */
.timeline-section {
  overflow: hidden;
}

.tl-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.tl-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.tl-path-base {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}

.tl-path-draw {
  fill: none;
  stroke: url(#tlGrad);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(79, 200, 244, 0.65));
}

.tl {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 8px 0;
}

.tl-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  opacity: 0;
}

.tl-item:nth-child(odd) {
  justify-content: flex-end;
  transform: translateX(46px);
}

.tl-item:nth-child(even) {
  flex-direction: row-reverse;
  justify-content: flex-end;
  transform: translateX(-46px);
}

.tl-item.visible {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.9, 0.28, 1),
    transform 0.8s cubic-bezier(0.22, 0.9, 0.28, 1);
}

.tl-item:nth-child(1) {
  transform: translateX(64px);
}

.tl-node {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--dim);
  background: var(--bg);
  transition:
    border-color 0.4s,
    background 0.4s,
    box-shadow 0.4s;
}

.tl-node i {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  opacity: 0;
}

.tl-item.lit .tl-node {
  border-color: var(--ac);
  background: var(--ac);
  box-shadow: 0 0 18px rgba(79, 200, 244, 0.75);
}

.tl-item.lit .tl-node i {
  opacity: 1;
  animation: tlPulse 2.2s ease-out infinite;
}

@keyframes tlPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.tl-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(
    160deg,
    rgba(15, 22, 31, 0.9),
    rgba(7, 11, 16, 0.95)
  );
  border: 1px solid var(--line);
  transition:
    border-color 0.4s,
    box-shadow 0.4s,
    transform 0.4s;
}

.tl-item.lit .tl-card {
  border-color: var(--line2);
  box-shadow: 0 18px 38px -20px rgba(79, 200, 244, 0.35);
}

.tl-item:hover .tl-card {
  transform: translateY(-4px);
}

.tl-year {
  display: inline-block;
  font: 12px var(--mono);
  color: var(--ac);
  padding: 3px 10px;
  margin-bottom: 10px;
  border: 1px solid var(--line2);
  border-radius: 999px;
}

.tl-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 7px;
}

.tl-card p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 480px;
}

@media (max-width: 700px) {
  .tl-item,
  .tl-item:nth-child(odd),
  .tl-item:nth-child(even) {
    flex-direction: row;
    justify-content: flex-start;
    transform: translateX(24px);
  }
  .tl-card {
    max-width: none;
  }
}

/* ============================================================
   FOOTER — floating curved 3D panel with outlined watermark
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  margin: 0;
  border-radius: 40px 40px 0 0;
  overflow: hidden;
  background:
    radial-gradient(
      120% 160% at 12% -10%,
      rgba(79, 200, 244, 0.12),
      transparent 55%
    ),
    linear-gradient(180deg, #0a1119 0%, #060a0f 60%, #050709 100%);
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow:
    0 -26px 70px -30px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

.footer-blob.b1 {
  width: 420px;
  height: 420px;
  top: -160px;
  inset-inline-start: -80px;
  background: radial-gradient(
    circle,
    rgba(79, 200, 244, 0.35),
    transparent 70%
  );
  animation: footerFloat 16s ease-in-out infinite;
}

.footer-blob.b2 {
  width: 360px;
  height: 360px;
  bottom: -180px;
  inset-inline-end: -60px;
  background: radial-gradient(
    circle,
    rgba(233, 180, 76, 0.16),
    transparent 70%
  );
  animation: footerFloat 20s ease-in-out infinite reverse;
}

@keyframes footerFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -24px) scale(1.08);
  }
}

.footer-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px
  );
  background-size: 3px 3px;
  opacity: 0.5;
}

.footer-top {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px 44px;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 48px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 320px;
  margin: 16px 0 22px;
}

.footer-logo {
  margin-bottom: 4px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition:
    border-color 0.3s,
    color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-socials a:hover {
  color: var(--ac);
  border-color: var(--ac);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -10px rgba(79, 200, 244, 0.6);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font: 11px var(--mono);
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-col a,
.footer-col span {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--ac);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--dim);
}

.footer-watermark {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  line-height: 0.78;
  text-align: center;
  padding-bottom: 10px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent,
    #000 35%,
    #000 85%,
    transparent
  );
  mask-image: linear-gradient(
    180deg,
    transparent,
    #000 35%,
    #000 85%,
    transparent
  );
}

.footer-watermark span {
  display: inline-block;
  white-space: nowrap;
  font: 800 clamp(64px, 15vw, 190px) var(--font);
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 232, 220, 0.16);
  transform: translateY(18%);
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .vision-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stage-panel {
    width: 230px;
    inset-inline-end: 16px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .section {
    padding: 72px 20px;
  }
  .hero-content {
    inset-inline: 20px;
    bottom: 176px;
  }
  .stage-panel {
    inset: auto 16px 16px 16px;
    transform: none;
    width: auto;
    padding: 12px 14px;
  }
  .stage-desc,
  .stage-list,
  .stage-label,
  .scroll-hint {
    display: none;
  }
  .stage-number {
    font-size: 26px;
  }
  .projects-grid,
  .vision-grid,
  .row,
  .maq-body {
    grid-template-columns: 1fr;
  }
  .contact-inner {
    gap: 36px;
  }
  .unit-wrap {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }
  #pServices {
    inset: auto 16px 120px 16px;
    top: auto;
    transform: none;
    width: auto;
  }
  #pServices li {
    padding: 8px 12px;
    margin-bottom: 4px;
  }
  .p-keys {
    display: none;
  }

  .footer {
    margin: 0;
    border-radius: 28px 28px 0 0;
  }
  .footer-top {
    padding: 52px 24px 32px;
    gap: 36px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }
  .footer-bottom {
    padding: 18px 24px;
    flex-direction: column;
  }
  .footer-watermark span {
    font-size: clamp(46px, 18vw, 90px);
  }
}

/* ============================================================
   CLIENTS — glass logo showcase
   ============================================================ */
.clients-head {
  margin-bottom: 40px;
}

.clients-panel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 40px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(
      120% 140% at 15% 0%,
      rgba(79, 200, 244, 0.07),
      transparent 55%
    ),
    linear-gradient(165deg, rgba(14, 20, 28, 0.7), rgba(7, 11, 16, 0.9));
  overflow: hidden;
}

.clients-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.client-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(
    165deg,
    rgba(14, 20, 28, 0.92),
    rgba(7, 11, 16, 0.97)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
  isolation: isolate;
  transform: perspective(700px) rotateX(0deg) rotateY(0deg);
  transition:
    background 0.4s,
    transform 0.35s ease-out;
}

.client-tile::before {
  content: attr(data-i);
  position: absolute;
  top: 12px;
  inset-inline-start: 14px;
  z-index: 2;
  font: 10px var(--mono);
  color: var(--dim);
  opacity: 0.55;
}

.client-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    200px circle at var(--mx, 50%) var(--my, 50%),
    rgba(79, 200, 244, 0.18),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s;
}
.client-tile:hover::after {
  opacity: 1;
}

.logo-plate {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86%;
  height: 68%;
  border-radius: 12px;
  background: rgba(238, 232, 220, 0.045);
  border: 1px solid rgba(238, 232, 220, 0.06);
  transition:
    background 0.45s,
    border-color 0.45s,
    transform 0.45s,
    box-shadow 0.45s;
}

.client-tile:hover .logo-plate {
  background: rgba(238, 232, 220, 0.92);
  border-color: rgba(238, 232, 220, 0.92);
  transform: translateY(-5px) translateZ(20px);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.65);
}

.logo-plate img {
  max-width: 68%;
  max-height: 34px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1) opacity(0.42);
  transition: filter 0.45s;
}

.client-tile:hover .logo-plate img {
  filter: none;
}

.clients-marquee {
  position: relative;
  z-index: 1;
  margin: 30px -40px 0;
  padding: 18px 40px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.cm-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: cmScroll 34s linear infinite;
}

.cm-track img {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.24);
  transition: filter 0.3s;
}
.cm-track img:hover {
  filter: brightness(0) invert(1) opacity(0.55);
}

@keyframes cmScroll {
  to {
    transform: translateX(-50%);
  }
}

html[dir="rtl"] .cm-track {
  animation-direction: reverse;
}

@media (max-width: 1100px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .clients-panel {
    padding: 32px 20px 0;
    border-radius: 18px;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients-marquee {
    margin: 24px -20px 0;
    padding: 16px 20px;
  }
  .client-tile {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-track {
    animation: none;
  }
}
