@font-face {
  font-family: Geist;
  src: url("fonts/Geist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("fonts/Geist-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("fonts/Geist-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --bg: #f5f8fb;
  --primary: #00638e;
  --on-primary: #ffffff;
  --primary-container: #d4eaf6;
  --on-primary-container: #073246;
  --teal: #0fb5a6;
  --accent: #12c2b3;
  --text: #0f1b22;
  --text-secondary: #54636d;
  --text-on-dark: #f4f8fb;
  --surface: #ffffff;
  --sunken: #edf2f7;
  --border: #dce4ec;
  --border-strong: #c2cfd9;
  --shadow: 11, 27, 38;
  --header: 4.5rem;
  --wrap: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", Geist, "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body {
  line-height: 1.75;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .wordmark,
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--surface);
  color: var(--primary);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 248, 251, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-inline-start: auto;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--primary);
  border-radius: 999px;
  min-height: 2.5rem;
  padding: 0.35rem 0.9rem;
  font: inherit;
  font-weight: 600;
}

.lang {
  display: inline-flex;
  padding: 0.2rem;
  background: var(--sunken);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 600;
  min-height: 2.2rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(var(--shadow), 0.08);
}

.hero {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse 58% 70% at 100% 0%, rgba(15, 181, 166, 0.18), transparent 62%),
    radial-gradient(ellipse 42% 55% at 0% 18%, rgba(0, 99, 142, 0.12), transparent 58%);
}

html[dir="rtl"] .hero {
  background:
    radial-gradient(ellipse 58% 70% at 0% 0%, rgba(15, 181, 166, 0.18), transparent 62%),
    radial-gradient(ellipse 42% 55% at 100% 18%, rgba(0, 99, 142, 0.12), transparent 58%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[lang="ar"] .eyebrow {
  text-transform: none;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.eyebrow-on-dark {
  color: var(--accent);
}

h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.7rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

html[lang="ar"] h1 {
  max-width: 14ch;
  line-height: 1.25;
}

.lede,
.product-copy > p,
.bridge-lede,
.contact p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.lede {
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: #084f72;
}

.button-quiet {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border-strong);
}

.button-quiet:hover {
  background: var(--primary-container);
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem 1.35rem 0.6rem;
  box-shadow: 0 24px 60px rgba(var(--shadow), 0.08);
}

.arch {
  width: min(100%, 18rem);
  margin: 0.4rem auto 0.6rem;
}

.path-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.path-list a {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0.4rem;
  text-decoration: none;
  border-top: 1px solid var(--border);
}

.path-list a:hover strong {
  color: var(--primary);
}

.path-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

.path-list strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.path-list a > span:last-child {
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[lang="ar"] .badge {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}

.band {
  padding: 5rem 0;
}

.band-sunken {
  background: var(--sunken);
}

.product {
  display: grid;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
  gap: 3rem;
  align-items: start;
}

.index {
  margin: 0 0 0.4rem;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.product h2,
.bridge h2,
.contact h2 {
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.title-row h2 {
  margin: 0;
}

.title-row + p {
  margin-top: 0.8rem;
}

.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.points li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.2rem 1.2rem 1.3rem;
}

.points h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.points p {
  margin: 0;
  color: var(--text-secondary);
}

.bridge {
  background: var(--on-primary-container);
  color: var(--text-on-dark);
  padding: 5rem 0;
}

.bridge-lede {
  color: rgba(244, 248, 251, 0.82);
  max-width: 40rem;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.steps li {
  display: grid;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 1.25rem 1.3rem 1.35rem;
}

.step-no,
.steps strong {
  letter-spacing: -0.03em;
}

.step-no {
  color: var(--accent);
  font-weight: 600;
}

.steps li span:last-child {
  color: rgba(244, 248, 251, 0.78);
}

.contact .narrow {
  max-width: 40rem;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-bar {
  min-height: 4.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-bar p {
  margin: 0;
}

@media (max-width: 860px) {
  .header-bar {
    flex-wrap: wrap;
    row-gap: 0.55rem;
    padding-block: 0.75rem;
  }

  .wordmark {
    flex: 1 1 100%;
  }

  .wordmark span {
    white-space: nowrap;
  }

  .nav-toggle,
  .lang {
    flex: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-inline-start: 0;
  }

  .lang {
    margin-inline-start: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin: 0;
    padding: 0.35rem 1.25rem 0.85rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(var(--shadow), 0.08);
  }

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

  .site-nav a {
    padding: 0.7rem 0;
  }

  .hero,
  .band,
  .bridge {
    padding: 3.25rem 0;
  }

  .hero-grid,
  .product,
  .points,
  .steps {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}

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