@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
  --bg: #f6f9ff;
  --surface: #ffffff;
  --text: #0f172f;
  --muted: #5d6988;
  --primary: #5753d8;
  --primary-dark: #4743bf;
  --border: #dbe2f1;
  --shadow: 0 14px 34px rgba(20, 30, 70, 0.08);
  --container: 1180px;
  --radius: 20px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(122, 114, 255, 0.1), transparent 28%),
    radial-gradient(circle at 85% 9%, rgba(131, 227, 247, 0.22), transparent 25%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

.section { padding: 64px 0; }

.section-title {
  margin: 0 0 24px;
  font-weight: 900;
  font-size: clamp(2rem, 3vw, 2.9rem);
  text-align: center;
}

.btn {
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 1rem;
  font-weight: 800;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(87, 83, 216, 0.36);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  border-color: #bfc9df;
  color: #1b2340;
  background: #fff;
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #ecebff;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 7px 14px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(9px);
  background: rgba(248, 250, 255, 0.86);
  border-bottom: 1px solid #e8edf8;
}

.topbar-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e9e8ff, #dce2ff);
  color: #4b46c5;
  font-size: 1.5rem;
  font-weight: 900;
}

.brand-text {
  line-height: 1.05;
  font-size: 1.8rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-weight: 800;
  color: #101a35;
}

.nav-links a { position: relative; }

.nav-links a + a {
  padding-right: 18px;
}

.nav-links a + a::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  background: #ccd4e9;
  transform: translateY(-50%);
}

.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: -8px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover { color: var(--primary); }

.nav-links a.active::after,
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; gap: 10px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #c6d0e8;
  background: #fff;
  font-size: 1.2rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 26px;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
}

.hero::before {
  width: 280px;
  height: 280px;
  left: -120px;
  top: 72px;
  border-radius: 50%;
  border: 2px solid #dde4f7;
}

.hero::after {
  width: 190px;
  height: 190px;
  right: -60px;
  top: 130px;
  background: rgba(140, 234, 244, 0.25);
  border-radius: 30px;
  transform: rotate(20deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 36px;
}

.hero-content h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.2;
  font-weight: 900;
}

.hero-content p {
  margin: 0 0 24px;
  font-size: clamp(1rem, 1.65vw, 1.85rem);
  color: #262f4b;
  font-weight: 700;
}

.hero-content .btn {
  min-width: 230px;
  font-size: 1.18rem;
  padding: 12px 20px;
}

.hero-visual {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(165deg, #f4f7ff 0%, #ffffff 54%, #f0fdff 100%);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
}

.social-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.dot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
}

.d-fb { background: #1877f2; }
.d-in { background: #e4405f; }
.d-tw { background: #1da1f2; }
.d-tt { background: #111; }
.d-yt { background: #ff0000; }

.rocket-panel {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  min-height: 250px;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 13px 30px rgba(26, 40, 82, 0.12);
  padding: 20px;
}

.rocket-shape {
  width: 88px;
  height: 124px;
  border-radius: 42px 42px 16px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ccd7ff 56%, #a9b6f6 100%);
  border: 3px solid #4752b9;
  position: relative;
  margin-bottom: 14px;
}

.rocket-shape::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #8fd4ff;
  border: 3px solid #4752b9;
}

.rocket-shape::after {
  content: '';
  position: absolute;
  bottom: -21px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 24px;
  background: linear-gradient(180deg, #ffad47, #ff5f39);
  border-radius: 0 0 16px 16px;
}

.rocket-panel h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 900;
}

.rocket-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.showcase-section {
  padding-top: 26px;
}

.home-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
}

.home-side {
  padding-top: 6px;
}

.side-title {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 900;
}

.side-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.side-features article {
  text-align: center;
  padding: 8px 4px;
}

.side-features h4 {
  margin: 8px 0 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.product-cards {
  gap: 14px;
}

.product-card {
  padding: 12px;
  border-radius: 16px;
}

.product-card h3 {
  margin-top: 10px;
  font-size: 1.1rem;
}

.product-card p {
  font-size: 0.98rem;
  min-height: 50px;
}

.product-card .price {
  margin: 10px 0;
  font-size: 1.12rem;
}

.product-card .btn {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.95rem;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.review-card {
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(27, 40, 83, 0.08);
}

.review-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.review-card .author {
  font-size: 0.82rem;
}

.cards-grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.product-thumb {
  min-height: 94px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff, #f4faff);
  border: 1px solid #e6ebfb;
  display: grid;
  place-items: center;
  color: #3f4cac;
  font-size: 1.7rem;
  font-weight: 900;
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.34rem;
  font-weight: 900;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: #435070;
  line-height: 1.7;
  font-weight: 600;
}

.price {
  margin: 13px 0;
  color: var(--primary-dark);
  font-size: 1.3rem;
  font-weight: 900;
}

.why-grid .card,
.stats-card,
.mini-card,
.testimonial { text-align: center; }

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  background: #ecebff;
  color: #4d49c3;
  font-size: 1.2rem;
  font-weight: 900;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.testimonial p {
  margin: 0;
  font-size: 1rem;
  color: #212e4b;
}

.author {
  margin-top: 8px;
  color: #6a7695;
  font-weight: 800;
}

.footer {
  margin-top: 24px;
  background: #f7f9ff;
  border-top: 1px solid #e4eaf8;
}

.footer-inner {
  padding: 30px 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.footer h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: #4a5776;
  font-weight: 700;
}

.copyright {
  text-align: center;
  border-top: 1px solid #e4eaf8;
  padding: 12px;
  color: #6a7694;
  font-weight: 700;
}

.page-hero {
  text-align: center;
  padding: 46px 0 8px;
}

.page-hero h1 {
  margin: 10px 0 8px;
  font-weight: 900;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  color: #687593;
  font-size: 0.9rem;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d0d8ee;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #4d5a79;
  font-weight: 800;
}

.list {
  margin: 0;
  padding: 0 16px 0 0;
  color: #415071;
  line-height: 1.9;
  font-weight: 700;
}

.form-wrap {
  max-width: 760px;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input,
.textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cdd6ea;
  background: #fff;
  border-radius: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 1rem;
}

.textarea { min-height: 140px; resize: vertical; }

.blog-cover {
  min-height: 182px;
  border-radius: 14px;
  border: 1px solid #e4e8f7;
  background: linear-gradient(130deg, #dfe7ff 0%, #f2f7ff 48%, #e4f9ff 100%);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: #4350ba;
  font-weight: 900;
}

@media (max-width: 1140px) {
  .topbar-inner { grid-template-columns: auto auto 1fr; }

  .nav-links {
    grid-column: 1 / -1;
    justify-self: start;
    padding-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .nav-links a + a {
    padding-right: 0;
  }

  .nav-links a + a::before {
    display: none;
  }

  .hero-grid,
  .two-col,
  .home-split { grid-template-columns: 1fr; }

  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .side-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .review-list { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, var(--container)); }

  .topbar-inner {
    min-height: 78px;
    grid-template-columns: auto auto;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions { display: none; }

  .hero { padding-top: 26px; }

  .hero-content { text-align: center; }

  .side-title { text-align: center; }

  .side-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .product-card,
  .review-card { padding: 14px; }

  .grid-4,
  .grid-3,
  .grid-2,
  .form-grid,
  .footer-inner { grid-template-columns: 1fr; }
}
