.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(232, 237, 245, 0.9);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: 4.25rem;
}

.navbar-nav {
  gap: 0.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 4.25rem);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.38), rgba(7, 94, 184, 0.09)),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.82));
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

[dir="rtl"] .hero-copy {
  align-items: flex-start;
  text-align: right;
}

.hero-copy h1 {
  margin: 1.25rem 0 1rem;
  color: #092f63;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 39rem;
  margin: 0 0 1.8rem;
  color: #526174;
  font-size: 1.03rem;
}

.hero-showcase {
  position: relative;
  min-height: 30rem;
  display: grid;
  align-content: center;
  gap: 1.2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.section {
  padding: 5rem 0;
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading > span {
  display: inline-flex;
  margin-bottom: 0.6rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.78rem;
}

.section-heading h2,
.section-title-row h2 {
  margin: 0;
  color: #101828;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0;
}

.section-heading p,
.section-title-row p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.apps-section {
  background: rgba(255, 255, 255, 0.5);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.apps-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.site-footer {
  padding: 3.5rem 0 1.5rem;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.copyright {
  max-width: 1320px;
  margin: 2rem auto 0;
  padding: 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 991px) {
  .header-actions {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 1rem 0 0.25rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-showcase {
    min-height: auto;
  }

  .category-grid,
  .apps-strip,
  .blog-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 2.25rem 0 3rem;
  }

  .hero-copy,
  [dir="rtl"] .hero-copy {
    align-items: stretch;
    text-align: start;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .stats-grid,
  .category-grid,
  .apps-strip,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.4rem 0;
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
  }
}
