:root {
  --blue: #2980b9;
  --blue-l: #3498db;
  --orange: #e8531e;
  --orange-l: #f39c12;
  --bg: #0a0a0f;
  --surface: #111118;
  --card: rgba(26, 26, 36, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --dim: #b0b0c4;
  --muted: #7c7c92;
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', system-ui, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- background ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(41, 128, 185, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 128, 185, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.bg-glow--blue { width: 620px; height: 620px; background: #1a5276; top: -220px; right: -160px; }
.bg-glow--orange { width: 480px; height: 480px; background: #7e2e0a; bottom: 10%; left: -180px; opacity: 0.25; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 15, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav--scrolled { background: rgba(10, 10, 15, 0.92); border-bottom-color: var(--border); }

.nav__inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 6px 22px rgba(41, 128, 185, 0.35);
}
.brand__name { font-family: Inter, sans-serif; font-weight: 800; letter-spacing: 0.5px; font-size: 19px; }
.brand__name b { color: var(--blue-l); font-weight: 800; }
.brand__name i { color: var(--orange); font-style: normal; }
.brand--sm .brand__mark { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }
.brand--sm .brand__name { font-size: 15px; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dim);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav__cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue), var(--blue-l));
  box-shadow: 0 6px 20px rgba(41, 128, 185, 0.3);
}
.nav__cta:hover { filter: brightness(1.1); }
@media (max-width: 720px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---------- hero ---------- */
main { position: relative; z-index: 1; }

.hero { padding: 78px 0 40px; text-align: center; }
.hero__badge {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(41, 128, 185, 0.45);
  border-radius: 999px;
  background: rgba(41, 128, 185, 0.1);
  color: #85c1e9;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.15;
  font-weight: 900;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}
.grad {
  display: block;
  background: linear-gradient(100deg, #5dade2 0%, #f39c12 60%, #e8531e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 680px;
  margin: 0 auto 34px;
  color: var(--dim);
  font-size: clamp(15px, 2vw, 18px);
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.2s, filter 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--orange));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(232, 83, 30, 0.55);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--border); color: var(--dim); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn--lg { padding: 16px 34px; font-size: 17px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 56px auto 0;
  max-width: 780px;
}
.stat {
  padding: 18px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(8px);
}
.stat__num {
  display: block;
  font-family: Inter, sans-serif;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  background: linear-gradient(180deg, #fff, #85c1e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.scroll-hint {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(41, 128, 185, 0.05), transparent); }

.section__head { max-width: 660px; margin-bottom: 42px; }
.section__head--sm { margin-bottom: 24px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--orange-l);
  margin-bottom: 12px;
}
.section__head h2 { font-size: clamp(24px, 4vw, 36px); line-height: 1.3; margin: 0 0 12px; font-weight: 800; }
.section__head p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- product cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--services { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 128, 185, 0.45);
  box-shadow: 0 24px 50px -28px rgba(41, 128, 185, 0.8);
}
.card:hover::before { opacity: 1; }

.card__top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.card__icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 22px;
  background: rgba(41, 128, 185, 0.14);
  border: 1px solid rgba(41, 128, 185, 0.28);
}
.card__titles { flex: 1; min-width: 0; }
.card__name { font-size: 17px; font-weight: 800; margin: 0; line-height: 1.4; }
.card__en { font-family: Inter, sans-serif; font-size: 11.5px; color: var(--muted); letter-spacing: 0.4px; }
.card__desc { color: var(--dim); font-size: 14px; margin: 0 0 16px; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #85c1e9;
  background: rgba(41, 128, 185, 0.12);
  border: 1px solid rgba(41, 128, 185, 0.2);
  padding: 3px 9px;
  border-radius: 999px;
}

.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.card__link {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  transition: background 0.2s, transform 0.2s;
}
.card__link:hover { background: rgba(41, 128, 185, 0.25); transform: translateX(-3px); }

.badge-live {
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } }

.card--soon { opacity: 0.82; }
.card--soon .card__icon { background: rgba(243, 156, 18, 0.12); border-color: rgba(243, 156, 18, 0.3); }
.badge-soon {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-l);
  background: rgba(243, 156, 18, 0.12);
  border: 1px solid rgba(243, 156, 18, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- services ---------- */
.svc {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  transition: background 0.2s, transform 0.2s;
}
.svc:hover { background: rgba(41, 128, 185, 0.09); transform: translateY(-3px); }
.svc__n { font-family: Inter, sans-serif; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.svc h3 { font-size: 15.5px; margin: 6px 0 6px; font-weight: 800; }
.svc p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story h2 { font-size: clamp(21px, 3vw, 29px); line-height: 1.45; margin: 0 0 18px; font-weight: 800; }
.story p { color: var(--dim); font-size: 15px; }
.story b { color: #fff; }
.story__founder {
  display: flex; align-items: center; gap: 14px;
  margin-top: 26px; padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.story__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  font-weight: 800; font-size: 18px;
}
.story__founder div span { display: block; font-size: 12.5px; color: var(--muted); }
.story__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini {
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  text-align: center;
}
.mini b { display: block; font-family: Inter, sans-serif; font-size: 24px; color: #85c1e9; }
.mini span { font-size: 12.5px; color: var(--muted); }

/* ---------- cta ---------- */
.cta { padding: 40px 0 90px; }
.cta__inner {
  text-align: center;
  padding: 52px 28px;
  border: 1px solid rgba(41, 128, 185, 0.35);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 0%, rgba(41, 128, 185, 0.22), transparent 60%),
    radial-gradient(circle at 85% 100%, rgba(232, 83, 30, 0.18), transparent 55%),
    var(--surface);
}
.cta h2 { font-size: clamp(23px, 4vw, 34px); margin: 0 0 10px; font-weight: 900; }
.cta p { color: var(--dim); margin: 0 0 26px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 30px 0; position: relative; z-index: 1; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: 13px; color: var(--dim); }
.footer a { color: #85c1e9; }
.muted { color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
