/* ── Palette ──────────────────────────────────── */
:root {
  --blue-900: #0a1628;
  --blue-800: #0d1f3c;
  --blue-700: #1a3560;
  --blue-600: #1e4080;
  --blue-500: #2952a3;
  --blue-400: #4070c8;
  --blue-100: #dce8ff;

  --green-600: #1a7a4a;
  --green-500: #22a060;
  --green-400: #2dc274;
  --green-100: #d4f5e5;

  --gold-600: #b8860b;
  --gold-500: #d4a017;
  --gold-400: #f0bc2e;
  --gold-100: #fdf3d0;

  /* ── Semantic tokens (light) ── */
  --c-bg:       #ffffff;
  --c-bg-alt:   #f3f4f6;
  --c-surface:  #ffffff;
  --c-text:     #111827;
  --c-text-2:   #374151;
  --c-text-3:   #6b7280;
  --c-border:   #e5e7eb;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);

  --font: 'Cairo', sans-serif;
  --transition: .25s ease;
}

/* ── Dark mode overrides ──────────────────────── */
[data-theme="dark"] {
  --c-bg:       #0d1117;
  --c-bg-alt:   #161b22;
  --c-surface:  #1c2636;
  --c-text:     #e2e8f0;
  --c-text-2:   #cbd5e1;
  --c-text-3:   #94a3b8;
  --c-border:   #2a3f5a;

  --blue-100:   #182d5c;
  --green-100:  #0d3520;
  --gold-100:   #332800;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,.35);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.45);
}

/* ── English font ─────────────────────────────── */
[lang="en"] { --font: 'Inter', sans-serif; }

/* ── Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  line-height: 1.7;
  transition: background-color .3s ease, color .3s ease;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Container ────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--lg { padding: 14px 32px; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--blue-500);
  color: #fff;
  border-color: var(--blue-500);
}
.btn--primary:hover { background: var(--blue-600); border-color: var(--blue-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--blue-500);
  border-color: var(--blue-500);
}
.btn--outline:hover { background: var(--blue-500); color: #fff; transform: translateY(-1px); }

.btn--gold {
  background: var(--gold-500);
  color: var(--blue-900);
  border-color: var(--gold-500);
}
.btn--gold:hover { background: var(--gold-600); border-color: var(--gold-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ── Section helpers ──────────────────────────── */
.section-tag {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: .5px;
}
[data-theme="dark"] .section-tag { color: var(--blue-400); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section-header h2 { font-size: 2rem; font-weight: 900; color: var(--c-text); margin-bottom: 12px; }
.section-header p { color: var(--c-text-3); font-size: 1.05rem; }

/* ── Badge ────────────────────────────────────── */
.badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════════ */
/* NAV                                            */
/* ══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,22,40,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: var(--blue-900);
  box-shadow: var(--shadow-md);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue-400), var(--green-500));
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-inline-start: auto;
}
.nav__links a {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  font-weight: 600;
  transition: color var(--transition);
}
.nav__links a:hover { color: #fff; }
.nav__cta { margin-inline-start: 8px; }

/* ── Nav controls (theme + lang toggles) ──────── */
.nav__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ctrl-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
  font-family: var(--font);
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.ctrl-btn:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); }
.ctrl-btn svg { width: 17px; height: 17px; }

/* Icon visibility: moon in light, sun in dark */
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ── Mobile burger ────────────────────────────── */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-inline-start: auto;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav__mobile a {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 0;
}
.nav__mobile.open { display: flex; }

/* ══════════════════════════════════════════════ */
/* HERO                                           */
/* ══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(140deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  overflow: hidden;
  padding-top: 70px;
}
.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
}
.shape--1 {
  width: 600px; height: 600px;
  background: var(--blue-400);
  top: -200px; left: -200px;
  animation: float 8s ease-in-out infinite;
}
.shape--2 {
  width: 400px; height: 400px;
  background: var(--green-400);
  bottom: -100px; right: 10%;
  animation: float 10s ease-in-out infinite reverse;
}
.shape--3 {
  width: 250px; height: 250px;
  background: var(--gold-400);
  top: 30%; right: 25%;
  animation: float 6s ease-in-out infinite 2s;
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.04); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 20px;
}
.highlight {
  background: linear-gradient(90deg, var(--gold-400), var(--green-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  max-width: 620px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 56px;
  padding: 28px 40px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.8rem; font-weight: 900; color: #fff; }
.stat span { font-size: .85rem; color: rgba(255,255,255,.7); }
.stat__divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.2);
}

/* ══════════════════════════════════════════════ */
/* PRODUCTS                                       */
/* ══════════════════════════════════════════════ */
.products {
  padding: 100px 0;
  background: var(--c-bg-alt);
  transition: background .3s ease;
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.product-card {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 2px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background .3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-400);
}
.product-card--featured {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(41,82,163,.12), var(--shadow-md);
  background: linear-gradient(160deg, color-mix(in srgb, var(--blue-100) 40%, var(--c-surface)) 0%, var(--c-surface) 60%);
}

.product-card__badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  color: var(--blue-900);
  font-size: .78rem;
  font-weight: 900;
  padding: 5px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.product-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  transition: background .3s ease;
}
.product-card__icon svg { width: 28px; height: 28px; }
.product-card__icon--blue { background: var(--blue-100); color: var(--blue-600); }
.product-card__icon--green { background: var(--green-100); color: var(--green-600); }
.product-card__icon--gold { background: var(--gold-100); color: var(--gold-600); }
[data-theme="dark"] .product-card__icon--blue { color: var(--blue-400); }
[data-theme="dark"] .product-card__icon--green { color: var(--green-400); }
[data-theme="dark"] .product-card__icon--gold { color: var(--gold-400); }

.product-card h3 { font-size: 1.25rem; font-weight: 900; color: var(--c-text); }
.product-card p { color: var(--c-text-3); font-size: .95rem; flex: 1; }

.product-card__features { display: flex; flex-direction: column; gap: 6px; }
.product-card__features li { font-size: .875rem; color: var(--c-text-2); }

/* ══════════════════════════════════════════════ */
/* ABOUT                                          */
/* ══════════════════════════════════════════════ */
.about {
  padding: 100px 0;
  background: var(--c-bg);
  transition: background .3s ease;
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.about__visual {
  position: relative;
  min-height: 360px;
}
.about__blob {
  position: absolute;
  width: 340px; height: 340px;
  background: linear-gradient(135deg, var(--blue-100) 0%, var(--green-100) 100%);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: blobMorph 10s ease-in-out infinite;
  transition: background .3s ease;
}
@keyframes blobMorph {
  0%,100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  50%      { border-radius: 40% 60% 30% 70% / 60% 40% 50% 50%; }
}
.about__card {
  position: absolute;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  z-index: 2;
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-text);
  transition: background .3s ease, border-color .3s ease;
}
.about__card--1 { top: 20%; left: 5%; }
.about__card--2 { bottom: 20%; right: 5%; }
.card-icon { font-size: 1.5rem; }

.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__text h2 { font-size: 2rem; font-weight: 900; color: var(--c-text); }
.about__text p { color: var(--c-text-3); font-size: 1rem; }
.about__text p strong { color: var(--c-text); }

.about__values { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.value {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--c-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  transition: background .3s ease, border-color .3s ease;
}
.value__icon { font-size: 1.6rem; flex-shrink: 0; }
.value strong { display: block; font-size: .95rem; color: var(--c-text); }
.value span { font-size: .85rem; color: var(--c-text-3); }

/* ══════════════════════════════════════════════ */
/* CTA BAND                                       */
/* ══════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(120deg, var(--blue-700) 0%, var(--blue-500) 100%);
  padding: 64px 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.75rem; font-weight: 900; color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 6px; }


/* ══════════════════════════════════════════════ */
/* FOOTER                                         */
/* ══════════════════════════════════════════════ */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.75);
}
.footer__inner {
  display: flex;
  gap: 64px;
  padding: 60px 24px 40px;
  flex-wrap: wrap;
}
.footer__brand { flex: 1; min-width: 200px; }
.footer__brand p { margin-top: 10px; font-size: .9rem; color: rgba(255,255,255,.5); }
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}
.footer__links strong { color: #fff; font-size: .95rem; margin-bottom: 4px; }
.footer__links a { font-size: .875rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 20px 24px;
  font-size: .85rem;
  color: rgba(255,255,255,.35);
}

/* ══════════════════════════════════════════════ */
/* RESPONSIVE                                     */
/* ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { min-height: 240px; }
  .about__blob { width: 240px; height: 240px; }
}

@media (max-width: 700px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__controls { margin-inline-start: auto; }
  .form-row { grid-template-columns: 1fr; }
  .hero__stats { gap: 20px; padding: 20px 24px; }
  .stat__divider { display: none; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .section-header h2 { font-size: 1.6rem; }
  .hero__title { font-size: 1.8rem; }
  .footer__inner { flex-direction: column; gap: 32px; }
}
