:root {
  --ink: #111317;
  --navy: #1c2541;
  --electric: #d6ff2b;
  --mist: #eef0f2;
  --cloud: #f7f7f6;
  --line: #d7d9dd;
  --muted: #5f6571;
  --accent: #0f62fe;
  --max: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cloud);
  line-height: 1.5;
}

@keyframes drift {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 247, 246, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-mark {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
}

.logo-mark--footer {
  width: 99px;
  height: 99px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lang-switcher a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
}

.flag {
  font-size: 14px;
  line-height: 1;
}

[dir="rtl"] h1 {
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.nav-links .lang-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.nav-toggle span + span { margin-top: 6px; }

.cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 30px rgba(17, 19, 23, 0.15);
}

.footer-cta {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  box-shadow: none;
}

.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0%, #f0f1f2 55%, #e5e7ea 100%),
    linear-gradient(120deg, rgba(214, 255, 43, 0.15), transparent 60%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ghost {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.hero-media {
  align-self: center;
  justify-self: center;
}

.media-frame {
  position: relative;
  border-radius: 24px;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
  animation: drift 4.5s ease-in-out infinite;
}

.media-frame picture,
.media-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.media-frame img {
  object-fit: contain;
}

.media--hand img {
  -webkit-mask-image:
    linear-gradient(to bottom, #000 55%, transparent 100%),
    linear-gradient(to right, #000 78%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, #000 55%, transparent 100%),
    linear-gradient(to right, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.media--bag img {
  -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 100%);
  mask-image: linear-gradient(to right, #000 80%, transparent 100%);
}

.media--orbit { aspect-ratio: 1.09 / 1; }
.media--hand { aspect-ratio: 1.29 / 1; }
.media--bag { aspect-ratio: 1 / 1; }

section { padding: 80px 0; }

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  color: var(--navy);
}

.section-sub {
  color: var(--muted);
  max-width: 720px;
}

.who {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.who-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.who-grid > :first-child { order: 2; }
.who-grid > :last-child { order: 1; }

.work-visual {
  margin: 18px auto 0;
}

@media (prefers-reduced-motion: reduce) {
  .media-frame { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.domains {
  background: var(--cloud);
  border-bottom: 1px solid var(--line);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--line);
  background: #fff;
}

.domain-item {
  padding: 24px 18px;
  border: 1px solid var(--line);
  margin-left: -1px;
  margin-top: -1px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}


.framework {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.framework-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
}

.framework-steps {
  display: grid;
  gap: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.framework-steps span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.framework-steps span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--electric);
  border: 1px solid var(--ink);
}

.work {
  background: var(--cloud);
}

.work-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.work-card {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-card .tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

footer {
  background: var(--ink);
  color: #fff;
  padding: 50px 0;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: center;
}

.footer-grid a { color: #fff; }

.footer-grid > :last-child {
  display: flex;
  justify-content: flex-end;
}

.footer-social {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.footer-copy {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 28px;
  margin-left: auto;
  margin-right: auto;
}

.social-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  header { position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 14px;
  }

  .nav-links.is-open { display: flex; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .hero { padding-top: 60px; }
  .nav-links .lang-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .nav { padding: 14px 0; }
  .cta {
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
  }
  .logo { padding-left: 21px; }
  .cta { margin-left: auto; margin-right: 0; }
  .nav-actions { gap: 10px; padding-right: 21px; }
  .lang-switcher { display: none; }
}

[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", "Noto Kufi Arabic", system-ui, sans-serif;
}

[dir="rtl"] .nav {
  flex-direction: row-reverse;
}


[dir="rtl"] .hero-actions {
  justify-content: flex-end;
}

[dir="rtl"] .domain-item {
  text-align: right;
}

[dir="rtl"] .framework-steps span::before {
  margin-left: 0;
  margin-right: 10px;
}

[dir="rtl"] .footer-grid {
  direction: rtl;
}
