:root {
  --green-dark: #063b2f;
  --green: #0b6b4d;
  --green-soft: #e9f5ef;
  --gold: #c8a24a;
  --gold-soft: #fff7df;
  --text: #1d2939;
  --muted: #667085;
  --border: #e5e7eb;
  --white: #ffffff;
  --bg: #fbfdfc;
  --shadow: 0 20px 45px rgba(6, 59, 47, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.top-banner {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  padding: 9px 0;
  text-align: center;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.site-logo {
  width: 185px;
  max-height: 68px;
  object-fit: contain;
  display: block;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  display: grid;
  place-items: center;
  font-family: "Amiri", serif;
  font-size: 24px;
  box-shadow: 0 12px 28px rgba(11, 107, 77, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: #344054;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  font-size: 15px;
}

.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 14px 30px rgba(11, 107, 77, 0.22);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: white;
  color: var(--green-dark);
  border-color: rgba(11, 107, 77, 0.18);
}

.btn-outline:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  color: var(--green-dark);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 70px;
  background:
    radial-gradient(circle at 15% 18%, rgba(200, 162, 74, 0.17), transparent 28%),
    radial-gradient(circle at 85% 16%, rgba(11, 107, 77, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f3faf6 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(11, 107, 77, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(11, 107, 77, 0.035) 25%, transparent 25%);
  background-size: 48px 48px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 54px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: white;
  color: var(--green-dark);
  border: 1px solid rgba(11, 107, 77, 0.14);
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(6, 59, 47, 0.07);
}

.badge span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

h1 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -2.4px;
  color: var(--green-dark);
  margin-bottom: 22px;
}

.hero-text p {
  font-size: 19px;
  color: #475467;
  max-width: 650px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-point {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(11, 107, 77, 0.12);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 14px;
  color: #344054;
  font-weight: 600;
}

.dashboard-preview {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.preview-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white;
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.preview-header::after {
  content: "۞";
  position: absolute;
  right: 20px;
  bottom: -28px;
  font-family: "Amiri", serif;
  font-size: 108px;
  color: rgba(255, 255, 255, 0.08);
}

.preview-header small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.preview-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(229, 231, 235, 0.7);
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: blur(8px);
}

.stat-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.stat-icon {
  width: 76px;
  height: 76px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 42px;
}

.stat-card strong {
  display: block;
  color: var(--green-dark);
  font-size: 22px;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

section {
  padding: 86px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-label {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 13px;
  margin-bottom: 10px;
}

.section-head h2,
.about-content h2 {
  color: var(--green-dark);
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.13;
  letter-spacing: -1.2px;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.features-grid,
.institutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card,
.benefit-card,
.plan-card,
.step-card,
.institution-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(229, 231, 235, 0.7);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.04);
  transition: 0.25s ease;
  backdrop-filter: blur(8px);
}

.feature-card:hover,
.plan-card:hover,
.step-card:hover,
.institution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(11, 107, 77, 0.18);
}

.feature-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 22px;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.icon-box {
  width: 110px;
  height: 110px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
  font-size: 58px;
  margin-bottom: 22px;
}

.feature-card h3,
.benefit-card h3,
.plan-card h3,
.step-card h3,
.institution-card h3 {
  color: var(--green-dark);
  font-size: 19px;
  margin-bottom: 10px;
}

.feature-card p,
.benefit-card p,
.step-card p,
.institution-card p {
  color: var(--muted);
  font-size: 15px;
}

.about-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: center;
}

.about-card {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 32px;
  color: white;
  padding: 36px;
  box-shadow: var(--shadow);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.about-card::after {
  content: "القرآن";
  position: absolute;
  right: -8px;
  bottom: -16px;
  font-family: "Amiri", serif;
  font-size: 96px;
  color: rgba(255, 255, 255, 0.07);
}

.about-card h2 {
  font-size: 36px;
  line-height: 1.12;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.about-card p {
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  z-index: 1;
}

.about-content p {
  color: #475467;
  margin-bottom: 16px;
  font-size: 16.5px;
}

.subdomain-box {
  margin-top: 22px;
  background: var(--gold-soft);
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: 18px;
  padding: 18px;
  color: #5f4a10;
  font-weight: 700;
}

.subdomain-box code {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 15px;
  word-break: break-word;
}

.institutions {
  background:
    radial-gradient(circle at top right, rgba(11, 107, 77, 0.08), transparent 28%),
    #ffffff;
}

.institution-card.active {
  border-color: rgba(11, 107, 77, 0.25);
  box-shadow: var(--shadow);
}

.institution-logo-img {
  width: 125px;
  height: 125px;
  object-fit: contain;
  border-radius: 0;
  margin-bottom: 20px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.status-badge.muted {
  background: #f2f4f7;
  color: #667085;
}

.portal-link {
  margin: 18px 0;
  padding: 14px;
  border-radius: 16px;
  background: #f8faf9;
  border: 1px solid var(--border);
  font-size: 14px;
}

.portal-link span {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 700;
}

.portal-link a {
  color: var(--green);
  font-weight: 800;
  word-break: break-word;
}

.benefits {
  background: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.benefit-card {
  padding: 22px;
}

.benefit-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-top: 64px;
}

.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 22px;
  left: 24px;
  color: var(--gold);
  font-weight: 900;
  font-size: 22px;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.audience-pill {
  background: white;
  border: 1px solid rgba(11, 107, 77, 0.14);
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--green-dark);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
}

.pricing {
  background:
    radial-gradient(circle at top left, rgba(200, 162, 74, 0.12), transparent 28%),
    #f7fbf8;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan-card.featured {
  border: 2px solid rgba(11, 107, 77, 0.35);
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.plan-label {
  display: inline-flex;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 16px;
}

.plan-card h3 {
  font-size: 25px;
}

.plan-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.plan-card ul {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-bottom: 24px;
  color: #475467;
}

.plan-card li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  margin-right: 9px;
}

.cta {
  padding: 78px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white;
  border-radius: 34px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.cta-box::after {
  content: "۞";
  position: absolute;
  right: 28px;
  top: -20px;
  font-family: "Amiri", serif;
  font-size: 180px;
  color: rgba(255, 255, 255, 0.06);
}

.cta-box h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.contact-info {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.04);
}

.contact-info h3 {
  color: var(--green-dark);
  font-size: 27px;
  margin-bottom: 14px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 22px;
}

.contact-line {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: #344054;
  font-weight: 600;
}

form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.04);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  outline: none;
  background: #fcfcfd;
  transition: 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(11, 107, 77, 0.08);
  background: white;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  background: var(--green-dark);
  color: white;
  padding: 58px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 30px;
  margin-bottom: 36px;
}

.footer-logo {
  width: 170px;
  max-height: 70px;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
  background: white;
  padding: 8px;
  border-radius: 14px;
}

footer h3,
footer h4 {
  margin-bottom: 14px;
}

footer p,
footer a,
footer li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

footer ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

footer a:hover {
  color: white;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

@media (max-width: 1020px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-wrap,
  .cta-box,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .plans-grid,
  .institutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .plan-card.featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  .top-banner {
    font-size: 12px;
    padding: 8px 12px;
  }

  .nav-links {
    position: fixed;
    top: 122px;
    left: 4%;
    right: 4%;
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .site-logo {
    width: 150px;
    max-height: 58px;
  }

  .hero {
    padding: 62px 0 50px;
  }

  h1 {
    letter-spacing: -1.5px;
  }

  .features-grid,
  .plans-grid,
  .institutions-grid,
  .benefits-grid,
  .steps-grid,
  .stats-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 62px 0;
  }

  .cta-box {
    padding: 34px 24px;
  }

  .feature-img {
    width: 96px;
    height: 96px;
  }

  .icon-box {
    width: 96px;
    height: 96px;
    font-size: 50px;
  }

  .stat-img {
    width: 66px;
    height: 66px;
  }

  .stat-icon {
    width: 66px;
    height: 66px;
    font-size: 36px;
  }

  .institution-logo-img {
    width: 110px;
    height: 110px;
  }
}

.whatsapp-float {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 9999;
      width: 62px;
      height: 62px;
      border-radius: 50%;
      background: #25d366;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35);
      transition: 0.25s ease;
    }

    .whatsapp-float:hover {
      transform: translateY(-4px);
      background: #1ebe5d;
    }

    .whatsapp-float svg {
      width: 34px;
      height: 34px;
      fill: #ffffff;
    }

    .whatsapp-link {
      color: var(--green);
      font-weight: 800;
    }

    .whatsapp-link:hover {
      text-decoration: underline;
    }

    @media (max-width: 760px) {
      .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
      }

      .whatsapp-float svg {
        width: 30px;
        height: 30px;
      }
    }