:root {
  --ink: #0a1230;
  --ink-2: #131d45;
  --indigo: #3b5bfd;
  --teal: #14c9a8;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #141b33;
  --muted: #4a5372;
  --line: rgba(20, 27, 51, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans Arabic", "Inter", Tahoma, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

[lang="en"] {
  font-family: "Inter", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

[lang="ar"] {
  font-family: "Noto Sans Arabic", "Inter", Tahoma, Arial, sans-serif;
}

/* one language at a time; Arabic without JavaScript */
html[lang="ar"] [data-lang="en"],
html[lang="en"] [data-lang="ar"] {
  display: none !important;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-inline: 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding-inline: 28px;
  }
}

/* ---------------- top bar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 18, 48, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand-mark rect {
  fill: #fff;
}

.brand-mark path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark circle {
  fill: var(--teal);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: "Inter", Tahoma, Arial, sans-serif;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-toggle {
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(20, 201, 168, 0.22), transparent 26rem),
    radial-gradient(circle at 10% 90%, rgba(59, 91, 253, 0.35), transparent 30rem),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 11vw, 120px) clamp(56px, 9vw, 100px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 17em;
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

[lang="ar"] .hero h1 {
  font-family: "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

.lead {
  max-width: 36em;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
}

.lead a {
  color: #fff;
  font-weight: 600;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--ink);
  background: var(--teal);
}

.btn-primary:hover {
  background: #2fdcbc;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
}

/* ---------------- sections ---------------- */
.section {
  padding-block: clamp(48px, 8vw, 88px);
}

.section-tint {
  background: linear-gradient(180deg, #eef2fb 0%, #f6f8fc 100%);
}

.section-title {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
}

[lang="ar"] .section-title {
  font-family: "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(10, 18, 48, 0.04);
}

.card h3 {
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(59, 91, 253, 0.09);
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------- product ---------------- */
.product {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(59, 91, 253, 0.1);
  transition: transform 0.15s, box-shadow 0.15s;
}

.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(59, 91, 253, 0.16);
}

.product-logo {
  display: grid;
  flex: none;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 3px solid #2ef2c2;
  border-radius: 50%;
  color: #0b1026;
  background: #eef6ff;
  font-family: "Inter", Tahoma, Arial, sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.badge {
  padding: 2px 10px;
  border-radius: 999px;
  color: #0b6b5a;
  background: rgba(20, 201, 168, 0.14);
  font-size: 0.78rem;
  font-weight: 600;
}

.product-desc {
  color: var(--muted);
}

.product-link {
  color: var(--indigo);
  font-family: "Inter", Tahoma, Arial, sans-serif;
  font-weight: 600;
}

/* ---------------- company facts ---------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 32px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* a line above every row; the first row's line sits outside the box and is clipped */
.facts > div {
  margin-top: -1px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.num {
  font-family: "Inter", Tahoma, Arial, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------------- contact ---------------- */
.section-dark {
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(20, 201, 168, 0.18), transparent 22rem),
    var(--ink);
}

.section-dark .section-title {
  color: #fff;
}

.contact p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.btn-mail {
  min-height: 52px;
  padding-inline: 26px;
  font-family: "Inter", Tahoma, Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

/* ---------------- footer ---------------- */
.footer {
  color: rgba(255, 255, 255, 0.6);
  background: #070d24;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-block: 20px;
}

.footer p {
  margin: 0;
}

.footer [dir="ltr"] {
  font-family: "Inter", Tahoma, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .product {
    transition: none;
  }
}
