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

:root {
  /* Dark, bold, monochrome */
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #181818;
  --text: #f1f0ea;          /* warm off-white */
  --muted: rgba(241, 240, 234, 0.55);
  --faint: rgba(241, 240, 234, 0.35);
  --line: rgba(241, 240, 234, 0.13);
  --line-strong: rgba(241, 240, 234, 0.22);

  scroll-behavior: smooth;
}

html[lang="ar"] body { font-family: 'Tajawal', system-ui, sans-serif; }
html[lang="ar"] .display,
html[lang="ar"] .display-sm,
html[lang="ar"] .section-title,
html[lang="ar"] .hero-tagline { font-family: 'Tajawal', sans-serif; font-weight: 800; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.display,
.display-sm,
.section-title,
.hero-tagline {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }

::selection { background: var(--text); color: var(--bg); }

/* ===== NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.3rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-inline-end: auto;
}
.logo span { color: var(--muted); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 0.5rem 1.2rem;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.lang-toggle:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ===== HELPERS ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
html[lang="ar"] .eyebrow { letter-spacing: 0.12em; }

.rule { width: 60px; height: 2px; background: var(--text); margin: 2rem auto; }

/* ===== HERO ===== */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7rem 2.5rem 4rem;
}

.hero .display {
  font-size: clamp(2.8rem, 11.5vw, 9.5rem);
  line-height: 0.9;
  margin-top: 1.5rem;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  color: var(--text);
}

.hero-tagline {
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-top: 1.5rem;
  max-width: 880px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 580px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  padding: 1.05rem 2.6rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  transition: all 0.25s;
}
.btn:hover { background: transparent; color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ===== MARQUEE ===== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.6rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  animation: marquee 32s linear infinite;
}
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
.marquee-track span {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
}
.marquee-track .dot { color: var(--faint); font-weight: 400; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 7rem 2.5rem;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin-bottom: 3.5rem;
}
.section-head.center { justify-content: center; text-align: center; }

.section-no {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 600;
}

.section-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.02;
  color: var(--text);
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 780px;
  margin-bottom: 1.4rem;
}
.lead.center { margin-inline: auto; text-align: center; }

.about-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

/* ===== WHY ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.why-item {
  background: var(--bg);
  padding: 2.75rem 2.4rem;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  transition: background 0.3s;
}
.why-item:hover { background: var(--bg-2); }
.why-mark {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 600;
}
.why-item h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0.9rem 0 0.8rem;
  color: var(--text);
  line-height: 1.2;
}
html[lang="ar"] .why-item h3 { font-family: 'Tajawal', sans-serif; font-weight: 700; }
.why-item p { color: var(--muted); font-size: 0.97rem; font-weight: 300; }

/* ===== EXPERTISE CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.card {
  position: relative;
  background: var(--bg);
  padding: 3rem 2.75rem;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  transition: background 0.3s;
}
.card:hover { background: var(--bg-2); }
.card-index { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--muted); font-weight: 600; }
.card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0.8rem 0 1.5rem;
  color: var(--text);
  line-height: 1.15;
}
html[lang="ar"] .card h3 { font-family: 'Tajawal', sans-serif; font-weight: 800; }
.card ul { list-style: none; }
.card ul li {
  position: relative;
  padding-inline-start: 1.6rem;
  margin-bottom: 0.95rem;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.6;
}
.card ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 6px; height: 6px;
  background: var(--text);
  opacity: 0.5;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.svc {
  background: var(--bg);
  padding: 2.75rem 2.4rem;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  transition: background 0.3s;
}
.svc:hover { background: var(--bg-2); }
.svc-no { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--muted); font-weight: 600; }
.svc h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0.9rem 0 0.7rem;
  color: var(--text);
  line-height: 1.18;
}
html[lang="ar"] .svc h3 { font-family: 'Tajawal', sans-serif; font-weight: 800; }
.svc p { color: var(--muted); font-size: 0.96rem; font-weight: 300; }

/* ===== PROCESS ===== */
.process { list-style: none; border-top: 1px solid var(--line); }
.process .step {
  display: grid;
  grid-template-columns: 6rem 1fr;
  column-gap: 2rem;
  align-items: start;
  padding: 2.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: padding-inline-start 0.35s, background 0.35s;
}
.process .step:hover { padding-inline-start: 1.5rem; background: var(--bg-2); }
.step-no {
  grid-column: 1;
  grid-row: 1 / 3;
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--faint);
  line-height: 1;
}
.step h3 {
  grid-column: 2;
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.45rem;
}
html[lang="ar"] .step h3 { font-family: 'Tajawal', sans-serif; font-weight: 800; }
.step p { grid-column: 2; color: var(--muted); font-size: 1.02rem; font-weight: 300; max-width: 640px; }

/* ===== VISION / MISSION ===== */
.vm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.vm-card {
  background: var(--bg);
  padding: 4rem 3rem;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  transition: background 0.3s;
}
.vm-card:hover { background: var(--bg-2); }
.vm-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
html[lang="ar"] .vm-label { font-family: 'Tajawal', sans-serif; letter-spacing: 0.1em; }
.display-sm {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ===== CONTACT ===== */
.contact { text-align: center; }
.contact-cta { display: flex; justify-content: center; margin-top: 2.8rem; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
  margin-top: 3.5rem;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--bg);
  padding: 2.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  transition: background 0.3s;
}
a.contact-item:hover { background: var(--bg-2); }
.contact-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
}
.contact-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
html[lang="ar"] .contact-value { font-family: 'Tajawal', sans-serif; font-weight: 700; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--text);
  padding: 5rem 2.5rem 3rem;
  text-align: center;
}
.footer-mark {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.footer-mark span { color: var(--muted); }
.footer-name {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  max-width: 720px;
  margin: 0 auto 1rem;
  line-height: 1.9;
}
.footer-copy { color: var(--faint); font-size: 0.82rem; letter-spacing: 0.05em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  nav { padding: 1.1rem 1.4rem; }
  .section { padding: 4.5rem 1.4rem; }
  .hero { padding: 5rem 1.4rem 3rem; }
  .card { padding: 2.2rem 1.6rem; }
  .vm-card { padding: 3rem 1.8rem; }
  .process .step { grid-template-columns: 3.5rem 1fr; column-gap: 1rem; }
  .step-no { font-size: 2rem; }
}
