/* ===================== Tokens ===================== */
:root {
  --blue-900: #081A40;
  --blue-800: #0B2A6B;
  --blue-700: #1B4FD8;
  --blue-600: #2563EB;
  --blue-500: #2F6BFF;
  --blue-400: #4FA8FF;
  --blue-300: #8FCBFF;

  --violet: #7C5CFF;
  --teal:   #15B8A6;
  --orange: #FF8A3D;
  --green-600: #1E7F4B;
  --green-500: #2BA362;

  --ink: #0E1A33;
  --muted: #56657F;
  --line: #E3EAF6;
  --bg: #F3F7FE;        /* خلفية عامة مائلة للأزرق الفاتح */
  --bg-tint: #E8F0FE;   /* أقسام ملوّنة */
  --white: #FFFFFF;

  --grad: linear-gradient(120deg, #4FA8FF, #1B4FD8);
  --grad-strong: linear-gradient(125deg, #2F6BFF 0%, #1B4FD8 45%, #0B2A6B 100%);
  --grad-soft: linear-gradient(135deg, #E7F0FF, #F4F9FF);

  --shadow-sm: 0 6px 20px rgba(27, 79, 216, .10);
  --shadow-md: 0 18px 44px rgba(27, 79, 216, .16);
  --shadow-lg: 0 34px 74px rgba(11, 42, 107, .22);

  --radius: 18px;
  --radius-lg: 26px;
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ===================== Base ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.ico { width: 1em; height: 1em; fill: currentColor; }
.grad-text {
  background: linear-gradient(120deg, #8FCBFF, #ffffff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===================== Buttons ===================== */
.btn {
  --pad: 13px 26px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: var(--pad); border-radius: 999px;
  font-weight: 600; font-size: .98rem; font-family: inherit;
  border: none; background: var(--grad); color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); filter: brightness(1.06); }
.btn--sm { --pad: 9px 18px; font-size: .9rem; }
.btn--lg { --pad: 16px 32px; font-size: 1.05rem; }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--wa { background: linear-gradient(120deg, #25D366, #128C7E); }

.ico-wa { width: 20px; height: 20px; fill: currentColor; }
.ico-arrow { width: 1.05em; height: 1.05em; fill: currentColor; }

/* ===================== Header ===================== */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  padding-block: 14px;
  transition: background .35s, box-shadow .35s, padding .35s;
}
.header.scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(11, 42, 107, .08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand__logo { width: 46px; height: 46px; transition: transform .3s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.06) rotate(-3deg); }

.nav { display: flex; gap: 6px; }
.nav__link {
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-weight: 500; font-size: .96rem;
  transition: color .25s, background .25s;
}
.nav__link:hover { color: var(--blue-700); background: var(--bg-tint); }
.header:not(.scrolled) .nav__link { color: #25406f; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-block: 140px 110px; overflow: hidden;
  background: var(--grad-strong);
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; mix-blend-mode: screen; animation: float 16s ease-in-out infinite; }
.blob--1 { width: 460px; height: 460px; background: #4FA8FF; top: -90px; inset-inline-start: -70px; }
.blob--2 { width: 380px; height: 380px; background: #7C5CFF; bottom: -120px; inset-inline-end: 6%; animation-delay: -5s; }
.blob--3 { width: 320px; height: 320px; background: #00D4FF; top: 24%; inset-inline-end: 28%; animation-delay: -9s; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(34px, -44px) scale(1.08); }
  66% { transform: translate(-28px, 28px) scale(.94); }
}

.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin-inline: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  font-weight: 600; font-size: .9rem; margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.badge .ico { width: 1.05em; height: 1.05em; color: #8FCBFF; }
.hero__title { font-size: clamp(2.3rem, 6vw, 4.3rem); font-weight: 700; line-height: 1.25; letter-spacing: -.5px; margin-bottom: 22px; }
.hero__sub { font-size: clamp(1.02rem, 2.2vw, 1.22rem); color: rgba(255,255,255,.85); max-width: 660px; margin: 0 auto 38px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 58px; }
.stat {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  padding: 18px 28px; border-radius: var(--radius);
  min-width: 150px; backdrop-filter: blur(6px);
}
.stat strong { display: block; font-size: 2rem; color: #fff; }
.stat span { color: rgba(255,255,255,.78); font-size: .9rem; }

.hero__wave { position: absolute; inset-inline: 0; inset-block-end: -1px; z-index: 1; line-height: 0; }
.hero__wave svg { width: 100%; height: 90px; display: block; }
.hero__wave path { fill: var(--bg); }

/* ===================== Sections ===================== */
.section { padding-block: 100px; position: relative; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--grad-strong); color: #fff; overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(124,92,255,.35), transparent 45%), radial-gradient(circle at 0% 100%, rgba(0,212,255,.25), transparent 45%);
}
.section--dark .container { position: relative; z-index: 1; }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 58px; }
.eyebrow {
  display: inline-block; color: var(--blue-600);
  font-weight: 700; letter-spacing: 1px; font-size: .9rem; margin-bottom: 12px;
  padding: 5px 14px; border-radius: 999px; background: rgba(37,99,235,.10);
}
.eyebrow--light { color: #8FCBFF; background: rgba(143,203,255,.14); }
.section__title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }
.section__lead--light { color: rgba(255,255,255,.82); }

/* ===================== Features ===================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.feature::after { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 5px; background: var(--accent); }
.feature--blue   { --accent: linear-gradient(90deg, #4FA8FF, #1B4FD8); --tint: #EAF2FF; --c: #1B4FD8; }
.feature--violet { --accent: linear-gradient(90deg, #A78BFA, #7C5CFF); --tint: #F1ECFF; --c: #7C5CFF; }
.feature--teal   { --accent: linear-gradient(90deg, #5EEAD4, #15B8A6); --tint: #E3FBF6; --c: #0E9B8C; }
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feature__ico {
  width: 64px; height: 64px; margin-bottom: 20px; border-radius: 18px;
  display: grid; place-items: center; background: var(--tint); color: var(--c);
}
.feature__ico .ico { width: 30px; height: 30px; }
.feature h3 { font-size: 1.22rem; margin-bottom: 8px; }
.feature p { color: var(--muted); }

/* ===================== Cards (Brands) ===================== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.card__media {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center; overflow: hidden;
}
.card__media--game    { background: linear-gradient(140deg, #FFE0C4, #FF8A3D); }
.card__media--design  { background: linear-gradient(140deg, #D8C9FF, #7C5CFF); }
.card__media--charity { background: linear-gradient(140deg, #Dff6E8, #BdEfd0); }
.card__media--soon    { background: linear-gradient(140deg, #DCE9FF, #9FC2FF); }
.card__media-ico { color: #fff; }
.card__media-ico .ico { width: 54px; height: 54px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.card__shot { width: 100%; height: 100%; object-fit: cover; }
.card__logo { width: 96px; height: auto; filter: drop-shadow(0 6px 12px rgba(0,0,0,.12)); }

.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card__title { font-size: 1.3rem; }
.card__tag {
  font-size: .76rem; font-weight: 600; color: var(--blue-700);
  background: #EAF2FF; padding: 4px 11px; border-radius: 999px;
}
.card__tag--orange { color: #C2611B; background: #FFEAD8; }
.card__tag--violet { color: #6D45F5; background: #F0EAFF; }
.card__tag--green  { color: var(--green-600); background: #E4F6EC; }
.card__desc { color: var(--muted); font-size: .96rem; margin-bottom: 20px; flex: 1; }
.card__cta { font-weight: 600; color: var(--blue-700); display: inline-flex; align-items: center; gap: 6px; transition: gap .25s, color .25s; }
.card__cta .ico-arrow { transition: transform .25s var(--ease); }
.card__cta:hover { color: var(--blue-500); }
.card__cta:hover .ico-arrow { transform: translateX(-5px); }
.card__cta--green { color: var(--green-600); }
.card__cta--green:hover { color: var(--green-500); }
.card--soon { border-style: dashed; }

/* ===================== Services ===================== */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 30px 26px;
  color: #fff;
  transition: transform .35s var(--ease), background .35s, border-color .35s;
  backdrop-filter: blur(4px);
}
.service:hover { transform: translateY(-8px); background: rgba(255,255,255,.13); border-color: rgba(143,203,255,.55); }
.service__ico {
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(143,203,255,.35), rgba(124,92,255,.35));
  color: #fff;
}
.service__ico .ico { width: 28px; height: 28px; }
.service h3 { font-size: 1.16rem; margin-bottom: 6px; }
.service p { color: rgba(255,255,255,.78); font-size: .94rem; }
.service__arrow {
  position: absolute; inset-block-start: 28px; inset-inline-start: 26px;
  color: #8FCBFF; opacity: 0; transition: opacity .3s, transform .3s var(--ease); transform: translateX(8px);
}
.service__arrow .ico { width: 22px; height: 22px; }
.service:hover .service__arrow { opacity: 1; transform: translateX(0); }

/* ===================== Partners ===================== */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner-slot {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  color: #9AAAC4; font-weight: 600; font-size: .92rem;
  transition: border-color .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
  overflow: hidden; padding: 18px;
}
.partner-slot img { max-height: 100%; width: auto; object-fit: contain; }
.partner-slot:hover { border-color: var(--blue-400); color: var(--blue-700); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.partners__cta { text-align: center; margin-top: 34px; }

/* ===================== CTA ===================== */
.cta { padding-block: 96px; background: var(--grad-strong); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(124,92,255,.35), transparent 45%), radial-gradient(circle at 90% 90%, rgba(0,212,255,.25), transparent 45%); }
.cta__inner { position: relative; z-index: 1; text-align: center; color: #fff; max-width: 720px; margin-inline: auto; }
.cta__title { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 14px; }
.cta__sub { font-size: 1.1rem; opacity: .9; margin-bottom: 30px; }

/* ===================== Footer ===================== */
.footer { background: var(--blue-900); color: #B9C8E6; padding-block: 54px 26px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer__brand { display: flex; align-items: center; gap: 14px; max-width: 360px; }
.footer__logo { width: 54px; height: 54px; background: #fff; border-radius: 14px; padding: 5px; }
.footer__brand p { font-size: .95rem; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { color: #B9C8E6; transition: color .25s; }
.footer__nav a:hover { color: #fff; }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 24px; font-size: .9rem; color: #7C90B8; }

/* CR badge — تقني */
.cr-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,168,255,.14), rgba(124,92,255,.12));
  border: 1px solid rgba(143,203,255,.28);
}
.cr-badge > .ico { width: 20px; height: 20px; color: #8FCBFF; }
.cr-badge__label { color: #93A7CE; font-size: .82rem; }
.cr-badge__num {
  font-weight: 700; color: #fff; letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums; font-family: "Courier New", monospace;
}
.cr-badge__verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .76rem; color: #5EEAD4;
  padding-inline-start: 10px; margin-inline-start: 4px; border-inline-start: 1px solid rgba(255,255,255,.15);
}
.cr-badge__verified .ico { width: 14px; height: 14px; }

/* ===================== WhatsApp float ===================== */
.wa-float {
  position: fixed; inset-block-end: 24px; inset-inline-start: 24px;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: grid; place-items: center; z-index: 90;
  box-shadow: 0 10px 30px rgba(18, 140, 126, .45);
  animation: pulse 2.6s infinite; transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 10px 30px rgba(18,140,126,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 10px 30px rgba(18,140,126,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px rgba(18,140,126,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================== Reveal ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .features, .cards, .services { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset-block-start: 72px; inset-inline: 14px;
    flex-direction: column; gap: 4px; background: #fff; padding: 14px;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    transform: translateY(-14px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 12px; color: var(--muted); }
  .nav-toggle { display: flex; }
  .header:not(.scrolled) .nav-toggle span { background: #fff; }
  .header__actions .btn--sm { display: none; }
}
@media (max-width: 560px) {
  .features, .cards, .services, .partners { grid-template-columns: 1fr; }
  .section { padding-block: 74px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .footer__inner, .footer__bottom { flex-direction: column; text-align: center; }
  .footer__brand { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .wa-float { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
