:root {
  --ink: #10202b;
  --muted: #60707a;
  --line: #dfe6e9;
  --paper: #f7f9fa;
  --accent: #0d6171;
  --white: #fff;
  --max: 1160px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, Arial, "Noto Sans Arabic", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: white;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: var(--max);
  margin: auto;
  padding: 0 24px;
}
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  z-index: 5;
  backdrop-filter: blur(10px);
}
nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.04em;
}
.navright {
  display: flex;
  align-items: center;
  gap: 24px;
}
.links {
  display: flex;
  gap: 25px;
  font-size: 14px;
}
.langs {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
}
.lang {
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}
.lang.active {
  background: var(--ink);
  color: white;
}
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-weight: 700;
}
.btn.alt {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.hero {
  padding: 105px 0 80px;
  background: linear-gradient(135deg, #f7f9fa 0%, #eef5f5 100%);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}
h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  max-width: 950px;
  margin: 15px 0 24px;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 18px;
}
.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 750px;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.strip .wrap {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
section {
  padding: 85px 0;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.intro p {
  color: var(--muted);
  font-size: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 35px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 27px;
  background: white;
}
.card .n {
  font-size: 12px;
  color: var(--accent);
  font-weight: 800;
}
.card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.dark {
  background: var(--ink);
  color: white;
}
.dark p {
  color: #bdc9cf;
}
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 25px;
  align-items: center;
  margin-top: 35px;
}
.flowbox {
  border: 1px solid #42515a;
  border-radius: 10px;
  padding: 28px;
}
.arrow {
  font-size: 30px;
}
.markets {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.pill {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.contact {
  background: var(--paper);
}
.contactbox {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: 12px;
  background: white;
}
.details {
  color: var(--muted);
}
footer {
  padding: 35px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
html[dir="rtl"] body {
  text-align: right;
}
html[dir="rtl"] .eyebrow {
  text-transform: none;
  letter-spacing: 0;
}
html[dir="rtl"] h1 {
  letter-spacing: 0;
}
html[dir="rtl"] .links,
html[dir="rtl"] .strip .wrap,
html[dir="rtl"] .actions,
html[dir="rtl"] .markets {
  direction: rtl;
}
@media (max-width: 850px) {
  .links {
    display: none;
  }
  .grid,
  .intro,
  .contactbox {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .arrow {
    transform: rotate(90deg);
    text-align: center;
  }
  .hero {
    padding-top: 70px;
  }
  section {
    padding: 60px 0;
  }
  .navright {
    gap: 8px;
  }
}

:root {
  --navy: #0b1720;
  --teal: #0f6875;
  --teal2: #138b95;
  --soft: #f4f7f6;
}

body {
  overflow-x: hidden;
}
.wrap {
  max-width: 1200px;
}
.brand {
  font-size: 18px;
}
.brand:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 3px solid var(--teal);
  transform: rotate(45deg);
  margin-inline-end: 10px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(19, 139, 149, 0.17),
      transparent 26%
    ),
    linear-gradient(135deg, #f8faf9 0%, #edf4f2 55%, #f7f9fa 100%);
}
.hero:after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -48%;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(15, 104, 117, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(15, 104, 117, 0.035),
    0 0 0 140px rgba(15, 104, 117, 0.025);
}
html[dir="rtl"] .hero:after {
  right: auto;
  left: -8%;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero h1 {
  max-width: 980px;
}
.hero .lead {
  max-width: 800px;
}
.btn {
  transition: 0.2s ease;
  box-shadow: 0 8px 22px rgba(11, 23, 32, 0.08);
}
.btn:hover {
  transform: translateY(-2px);
}
.strip {
  background: #fff;
}
.strip .wrap {
  justify-content: space-between;
}
.card {
  box-shadow: 0 8px 30px rgba(16, 32, 43, 0.035);
  transition: 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 32, 43, 0.08);
  border-color: #c8d5d8;
}
.card .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaf3f3;
}
.dark {
  background: linear-gradient(135deg, #0b1720, #112c35);
}
.dark .eyebrow {
  color: #62c1c7;
}
.flowbox {
  background: rgba(255, 255, 255, 0.025);
}
.pill {
  background: #fff;
  box-shadow: 0 5px 15px rgba(16, 32, 43, 0.025);
}
.contactbox {
  box-shadow: 0 18px 50px rgba(16, 32, 43, 0.07);
  position: relative;
  overflow: hidden;
}
.contactbox:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(15, 104, 117, 0.06);
  right: -70px;
  bottom: -90px;
}
.visual-band {
  padding: 34px 0;
  background: #0d222b;
  color: #fff;
}
.visual-band .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: #31434a;
}
.visual-stat {
  background: #0d222b;
  padding: 26px;
}
.visual-stat b {
  font-size: 13px;
  color: #74c5ca;
  letter-spacing: 0.1em;
}
.visual-stat span {
  display: block;
  font-size: 18px;
  margin-top: 5px;
}
.paper-section {
  background: var(--paper);
}
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.legalnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
@media (max-width: 850px) {
  .visual-band .wrap {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 78px 0 68px;
  }
  .strip .wrap {
    justify-content: flex-start;
  }
  .brand {
    font-size: 15px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 55px;
  align-items: center;
}
.hero-art {
  min-height: 390px;
  position: relative;
}
.orbit {
  position: absolute;
  inset: 5% 0 0 5%;
  border: 1px solid rgba(15, 104, 117, 0.22);
  border-radius: 50%;
}
.orbit.o2 {
  inset: 18% 12% 12% 18%;
}
.core {
  position: absolute;
  left: 44%;
  top: 42%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 20px 50px rgba(11, 23, 32, 0.2);
}
.node {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(11, 23, 32, 0.08);
}
.n1 {
  top: 10%;
  left: 8%;
}
.n2 {
  top: 18%;
  right: 0;
}
.n3 {
  bottom: 14%;
  left: 0;
}
.n4 {
  bottom: 5%;
  right: 8%;
}
.section-head {
  max-width: 760px;
}
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.trust div {
  border-left: 2px solid var(--teal);
  padding: 5px 0 5px 14px;
}
.trust b {
  display: block;
  font-size: 13px;
}
.trust span {
  font-size: 12px;
  color: var(--muted);
}
.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  background: #fff;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form button {
  border: 0;
  cursor: pointer;
  text-align: left;
}
.legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.legal-panel {
  display: none;
  padding: 60px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.legal-panel:target {
  display: block;
}
.legal-panel p {
  max-width: 850px;
  color: var(--muted);
}
.placeholder-note {
  padding: 12px 14px;
  border: 1px dashed #b7c5c9;
  border-radius: 8px;
  background: #f8fbfb;
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.mobile-menu {
  display: none;
}
@media (max-width: 850px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 310px;
  }
  .trust {
    grid-template-columns: 1fr 1fr;
  }
  .contact-form button {
    text-align: center;
  }
}
@media (max-width: 520px) {
  .hero-art {
    min-height: 270px;
  }
  .core {
    width: 90px;
    height: 90px;
    font-size: 13px;
  }
  .node {
    font-size: 10px;
    padding: 8px 10px;
  }
  .trust {
    grid-template-columns: 1fr;
  }
}

.counter {
  font-size: 12px;
  color: var(--muted);
  text-align: end;
  margin-top: -4px;
}
html[dir="rtl"] .counter {
  text-align: start;
}
.counter.over {
  color: #b3261e;
  font-weight: 700;
}
.formhint {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}
.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: #e0a1a1;
}
.contact-form button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.contact-form button[disabled]:hover {
  transform: none;
}


/* Navigation stability fixes */
nav, .navright, .links, .langs {
  direction: ltr;
}
html[dir="rtl"] nav,
html[dir="rtl"] .navright,
html[dir="rtl"] .links,
html[dir="rtl"] .langs {
  direction: ltr;
}
.links a {
  white-space: nowrap;
}

/* On smaller screens keep Home visible instead of hiding the whole nav */
@media (max-width: 850px) {
  .links {
    display: flex;
  }
  .links a {
    display: none;
  }
  .links a[data-i="navHome"] {
    display: inline-block;
  }
}


/* FINAL NAVIGATION FIX */
nav, .navright, .links, .langs,
html[dir="rtl"] nav, html[dir="rtl"] .navright,
html[dir="rtl"] .links, html[dir="rtl"] .langs {
  direction: ltr;
}
.links a { white-space: nowrap; }
@media (max-width: 850px) {
  .links { display: flex; }
  .links a { display: none; }
  .links a[data-i="navHome"] { display: inline-block; }
}
