@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBMPlexSansArabic-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBMPlexSansArabic-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBMPlexSansArabic-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBMPlexSansArabic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111827;
  --muted: #566276;
  --soft: #eef4fb;
  --line: #dce7f4;
  --paper: #ffffff;
  --blue: #3159f5;
  --violet: #7257ff;
  --green: #14b982;
  --cyan: #20a7c9;
  --gold: #f4a824;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(31, 47, 86, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(49, 89, 245, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 185, 130, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbff 0%, #f6fbf7 48%, #fffaf0 100%);
  background-size: 42px 42px, 42px 42px, 100% 100%;
  line-height: 1.75;
}

body.menu-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 22px 0;
}

.nav-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 231, 244, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(31, 47, 86, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 12px 28px rgba(49, 89, 245, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  border-radius: 8px;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 13px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #eef5ff;
  color: var(--blue);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  place-items: center;
  padding: 10px;
}

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

.menu-toggle span + span {
  margin-top: 4px;
}

.section-band {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(54px, 7vw, 86px) 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3.7rem, 8.5vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 700;
  padding: 12px 18px;
}

.primary-action {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 18px 38px rgba(49, 89, 245, 0.24);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hero-metrics div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-metrics dt {
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 54px 4px 24px;
  z-index: -1;
  border: 1px solid rgba(220, 231, 244, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 251, 255, 0.78)),
    repeating-linear-gradient(90deg, rgba(49, 89, 245, 0.07) 0 1px, transparent 1px 24px);
  box-shadow: var(--shadow);
}

.hero-lottie {
  width: min(100%, 540px);
  min-height: 420px;
}

.visual-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(220, 231, 244, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(31, 47, 86, 0.1);
  color: #243047;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 12px;
}

.note-one {
  top: 92px;
  right: 18px;
}

.note-two {
  left: 28px;
  bottom: 112px;
}

.note-three {
  right: 48px;
  bottom: 56px;
}

.intro-strip {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px 22px;
  box-shadow: 0 16px 46px rgba(31, 47, 86, 0.07);
}

.intro-strip span {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}

.intro-strip p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
}

.mini-lottie {
  width: 140px;
  height: 102px;
}

.features {
  padding: 52px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading h2,
.trust-band h2,
.legal-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(31, 47, 86, 0.08);
  padding: 18px;
}

.feature-lottie {
  width: 100%;
  height: 180px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 244, 251, 0.82), rgba(255, 255, 255, 0.42));
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.35;
}

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

.trust-band {
  width: min(1180px, calc(100% - 44px));
  margin: 18px auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  border-block: 1px solid rgba(220, 231, 244, 0.95);
  padding: 34px 0;
}

.trust-band p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.legal-section {
  padding: 58px 0 22px;
}

.legal-heading {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.legal-lottie {
  width: 128px;
  height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.legal-grid {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 52px rgba(31, 47, 86, 0.08);
  padding: clamp(20px, 2.6vw, 32px);
}

.legal-en {
  text-align: left;
}

.legal-ar {
  text-align: right;
}

.legal-panel h3 {
  margin-bottom: 4px;
  font-size: 1.7rem;
  line-height: 1.25;
}

.legal-date {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-panel h4 {
  margin: 24px 0 8px;
  color: #172036;
  font-size: 1.05rem;
  line-height: 1.45;
}

.legal-panel p {
  margin-bottom: 14px;
  color: #425066;
  font-size: 0.98rem;
}

.site-footer {
  width: min(1180px, calc(100% - 44px));
  margin: 34px auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 20px;
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.site-footer div {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #334155;
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 440px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    padding: 10px 12px 0;
  }

  .nav-shell {
    position: relative;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 8px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .section-band,
  .intro-strip,
  .trust-band,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 5.8rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-lottie {
    min-height: 340px;
  }

  .visual-note {
    font-size: 0.82rem;
  }

  .note-one {
    top: 54px;
    right: 6px;
  }

  .note-two {
    left: 6px;
    bottom: 86px;
  }

  .note-three {
    right: 16px;
    bottom: 34px;
  }

  .intro-strip {
    grid-template-columns: 1fr;
  }

  .mini-lottie {
    justify-self: center;
  }

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

  .feature-card {
    min-height: auto;
  }

  .legal-heading {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .legal-lottie {
    width: 84px;
    height: 78px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
