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

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

:root {
  --deep: #092428;
  --deep-2: #0d3236;
  --deep-3: #12403f;
  --mint: #6bc4a0;
  --mint-soft: rgba(107, 196, 160, 0.14);
  --yellow: #e5e038;
  --white: #ffffff;
  --paper: #f4f7f6;
  --ink: #0a2a2e;
  --ink-2: #465c5e;
  --ink-3: #6b8082;
  --line: #dbe4e0;
  --line-dark: rgba(255, 255, 255, 0.1);
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --on-dark-3: rgba(255, 255, 255, 0.5);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -24px rgba(9, 36, 40, 0.35);
  --shadow-lg: 0 50px 120px -40px rgba(3, 20, 22, 0.65);
  --container: 1200px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: var(--mint);
  color: var(--deep);
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--deep);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(-4px);
}

.btn--primary {
  background: var(--mint);
  color: var(--deep);
  box-shadow: 0 14px 34px -14px rgba(107, 196, 160, 0.9);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform 0.8s var(--ease);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -14px rgba(107, 196, 160, 1);
}

.btn--primary:hover::after {
  transform: translateX(-120%);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--mint);
  background: rgba(107, 196, 160, 0.12);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--deep);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--deep-3);
  transform: translateY(-2px);
}

/* Section headings */
.section {
  position: relative;
  padding: 120px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #2f8a67;
  font-size: 14px;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--yellow);
  transform: rotate(45deg);
}

.on-dark .eyebrow {
  color: var(--mint);
  background: rgba(107, 196, 160, 0.12);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.section-head p {
  color: var(--ink-2);
  font-size: 18px;
}

.on-dark .section-head p {
  color: var(--on-dark-2);
}

.accent {
  background: linear-gradient(90deg, var(--mint), #b9e36a 60%, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.on-dark {
  color: var(--white);
  background: var(--deep);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 84px 0;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .container {
    width: min(var(--container), 100% - 32px);
  }
}
