:root {
  --ink: #0b1220;
  --muted: #526173;
  --line: rgba(15, 23, 42, 0.1);
  --brand: #2563eb;
  --brand-2: #0f172a;
  --brand-soft: #eff6ff;
  --surface: #ffffff;
  --soft: #f7faff;
  --footer: #07111f;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 36%, #f6f9ff 100%);
  font-family: "Cairo", "Almarai", Arial, sans-serif;
}

html[dir="ltr"] body {
  font-family: "Cairo", "Almarai", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header,
.hero,
.section,
.cta-section,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 10px -10px;
  z-index: -1;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img,
.footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.brand strong,
.brand small,
.footer-logo strong,
.footer-logo small {
  display: block;
}

.brand strong,
.footer-logo strong {
  font-size: 1.08rem;
  font-weight: 950;
}

.brand small,
.footer-logo small {
  color: var(--muted);
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.button,
.project-body a,
.article-card a,
.legal-links a,
.footer-links a,
.footer-contact a {
  text-decoration: none;
  font-weight: 900;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #334155;
}

.site-nav a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.site-nav .lang-switch {
  color: #0f172a;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 1.25rem;
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.78fr);
  gap: 30px;
  align-items: center;
  padding: 54px 0 38px;
}

.hero-copy {
  padding: 12px 0;
}

.eyebrow,
.section-kicker,
.project-body span,
.article-card span,
.legal-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 0.78rem;
  font-weight: 950;
}

.hero h1,
.section h2,
.cta-section h2,
.legal-hero h1 {
  margin: 14px 0 0;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 950;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.55rem, 5vw, 4.9rem);
}

.hero p,
.section-head p,
.intro-band p,
.split-section p,
.legal-hero p,
.legal-card p,
.legal-card li,
.project-body p,
.article-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
}

.hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.hero-actions,
.trust-row,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.2);
}

.button.ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.trust-row {
  margin-top: 22px;
}

.trust-row span {
  color: #334155;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.hero-panel {
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 34px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.42), transparent 36%),
    linear-gradient(145deg, #0b1220, #172554 56%, #1d4ed8);
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  align-content: end;
  gap: 16px;
}

.panel-card,
.panel-grid div {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.panel-card {
  border-radius: 26px;
  padding: 22px;
}

.panel-card strong,
.panel-card span,
.panel-grid strong,
.panel-grid span {
  display: block;
}

.panel-card strong {
  font-size: 1.8rem;
  font-weight: 950;
}

.panel-card span,
.panel-grid span {
  color: #dbeafe;
  margin-top: 6px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.panel-grid div {
  border-radius: 20px;
  padding: 18px;
}

.panel-grid strong {
  font-size: 1.5rem;
  font-weight: 950;
}

.section {
  padding: 54px 0;
}

.intro-band,
.split-section,
.cta-section,
.legal-hero,
.contact-shell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.intro-band,
.split-section {
  padding: 34px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 3rem);
}

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

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

.project-card,
.article-card,
.contact-card,
.legal-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.055);
}

.project-card,
.article-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 24px 58px rgba(37, 99, 235, 0.12);
}

.project-media {
  min-height: 190px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 38%),
    linear-gradient(180deg, #f8fbff, #eef4ff);
}

.project-media img {
  width: min(260px, 72%);
  height: auto;
  object-fit: contain;
}

.project-pattern {
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
  background:
    radial-gradient(circle at top left, rgba(147, 197, 253, 0.35), transparent 34%),
    linear-gradient(135deg, #0b1220, #1d4ed8);
}

.project-body,
.article-card,
.contact-card,
.legal-card {
  padding: 23px;
}

.project-body h3,
.article-card h2,
.article-card h3,
.contact-card h2,
.legal-card h2 {
  margin: 12px 0 0;
  font-size: 1.34rem;
  line-height: 1.35;
  font-weight: 950;
}

.project-body a,
.article-card a,
.legal-links a {
  color: var(--brand);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list article {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f8fbff;
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  font-weight: 950;
}

.feature-list span {
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.75;
}

.cta-section {
  margin-top: 24px;
  margin-bottom: 44px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(circle at left, rgba(37, 99, 235, 0.12), transparent 36%),
    #fff;
}

html[dir="ltr"] .cta-section {
  background:
    radial-gradient(circle at right, rgba(37, 99, 235, 0.12), transparent 36%),
    #fff;
}

.cta-section span {
  color: var(--brand);
  font-weight: 950;
}

.cta-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.6rem);
}

.legal-page,
.contact-page {
  padding: 42px 0;
}

.legal-hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 20px;
  min-height: 260px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: 34px;
  top: 34px;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: url("smart-publisher-icon-96.webp") center / 72px 72px no-repeat, #fff;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.16);
}

.legal-hero h1 {
  max-width: 820px;
  padding-inline-end: 120px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.legal-hero p {
  max-width: 780px;
  padding-inline-end: 120px;
}

.legal-card {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 16px;
}

.legal-card section + section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}

.legal-links a {
  padding: 10px 13px;
  border-radius: 999px;
  background: #eff6ff;
}

.contact-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.contact-grid {
  display: grid;
  gap: 12px;
}

.map-frame {
  min-height: 460px;
  border: 0;
  width: 100%;
  border-radius: 22px;
}

.site-footer {
  margin-top: 36px;
  margin-bottom: 28px;
  color: #dbeafe;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.24), transparent 34%),
    linear-gradient(135deg, #07111f, #0f172a 54%, #172554);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 24px 65px rgba(15, 23, 42, 0.18);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(140px, 0.65fr) minmax(170px, 0.75fr) minmax(190px, 0.8fr);
  gap: 28px;
}

.footer-logo img {
  background: #fff;
}

.footer-logo small,
.footer-brand-block p,
.footer-bottom,
.footer-links a,
.footer-contact a {
  color: #cbd5e1;
}

.footer-brand-block p {
  max-width: 420px;
  margin: 14px 0 0;
  line-height: 1.8;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-links strong,
.footer-contact strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.footer-links a,
.footer-contact a {
  width: fit-content;
  line-height: 1.55;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #93c5fd;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .intro-band,
  .split-section,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .article-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-panel {
    min-height: 330px;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-hero h1,
  .legal-hero p {
    padding-inline-end: 0;
  }

  .legal-hero::after {
    position: static;
    display: block;
    margin-bottom: 18px;
  }
}
