:root {
  --primary: #3f5a4f;
  --primary-dark: #2f463d;
  --primary-light: #e6ede9;
  --primary-soft: #f3f7f5;
  --bg: #fbfcfb;
  --surface: #ffffff;
  --text: #18221d;
  --muted: #5e6d66;
  --border: #dce5e0;
  --success: #2f7d57;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(23, 37, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
  font-size: 16px;
  color: var(--text);
  background: radial-gradient(circle at top left, #f3f7f5 0%, #fbfcfb 40%) no-repeat;
  line-height: 1.8;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 8px;
  top: -48px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 9999;
}

.skip-link:focus {
  top: 8px;
}

.section {
  padding: 74px 0;
}

.section.alt {
  background: var(--primary-soft);
  border-block: 1px solid #edf2ef;
}

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  margin: 0 0 10px;
  color: var(--primary-dark);
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 28px;
}

.tree-pattern {
  position: relative;
  overflow: hidden;
}

.tree-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 12% 18%, rgba(63, 90, 79, 0.06) 2px, transparent 2px),
    radial-gradient(circle at 80% 25%, rgba(63, 90, 79, 0.05) 2px, transparent 2px),
    linear-gradient(135deg, rgba(63, 90, 79, 0.035) 1px, transparent 1px);
  background-size: 56px 56px, 70px 70px, 40px 40px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(220, 229, 224, 0.6);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 24px rgba(32, 50, 42, 0.1);
}

.nav-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.15rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
}

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

.cta-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

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

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--primary-light);
}

.hero {
  padding: 88px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 34px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  margin: 0;
  color: var(--primary-dark);
  line-height: 1.2;
}

.slogan {
  margin: 14px 0;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  color: #2d453b;
}

.hero p {
  color: var(--muted);
  margin: 0 0 24px;
}

.hero-card {
  background: linear-gradient(170deg, #fff 0%, #f1f6f3 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset-inline-end: 16px;
  top: 16px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 90, 79, 0.14) 0%, rgba(63, 90, 79, 0) 70%);
}

.hero-card img {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.mobile-shots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.phone-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  background: transparent;
  height: clamp(280px, 35vw, 430px);
}

.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  display: block;
  background: transparent;
  filter: drop-shadow(0 14px 22px rgba(15, 20, 17, 0.18));
}

.phone-card:nth-child(1) .phone-shot { transform: rotate(-1deg); }
.phone-card:nth-child(2) .phone-shot { transform: rotate(0.8deg); }
.phone-card:nth-child(3) .phone-shot { transform: rotate(-0.8deg); }
.phone-card:nth-child(4) .phone-shot { transform: rotate(1deg); }
.phone-card:nth-child(5) .phone-shot { transform: rotate(-0.9deg); }
.phone-card:nth-child(6) .phone-shot { transform: rotate(0.6deg); }
.phone-card:nth-child(7) .phone-shot { transform: rotate(-0.7deg); }
.phone-card:nth-child(8) .phone-shot { transform: rotate(0.9deg); }
.phone-card:nth-child(9) .phone-shot { transform: rotate(-0.5deg); }

.screen-shot {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #f8faf9;
  border: 1px solid #edf2ef;
}

.screen-shot::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px;
  inset-inline-start: 16px;
  background: rgba(24, 34, 29, 0.72);
  color: #fff;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 4px 10px;
}

.shot-a {
  grid-column: span 3;
  min-height: 250px;
  transform: rotate(-2deg);
}

.shot-b {
  grid-column: span 3;
  min-height: 230px;
  transform: rotate(2deg);
}

.shot-c {
  grid-column: span 3;
  min-height: 280px;
  transform: rotate(-1.2deg);
}

.shot-d {
  grid-column: span 3;
  min-height: 245px;
  transform: rotate(1.4deg);
}

.shot-e {
  grid-column: span 4;
  min-height: 240px;
  transform: rotate(0.6deg);
}

.shot-f {
  grid-column: span 4;
  min-height: 240px;
  transform: rotate(-1deg);
}

.shot-g {
  grid-column: span 4;
  min-height: 240px;
  transform: rotate(0.9deg);
}

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

.badge {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary-dark);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

.testimonial-box {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 130px;
}

.testimonial-quote {
  margin: 0 0 10px;
  color: var(--text);
}

.testimonial-author {
  color: var(--muted);
  font-size: 0.95rem;
}

.features-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 8px 14px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.filter-chip.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

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

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-meta {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

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

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.step-no {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  position: relative;
}

.ribbon {
  position: absolute;
  top: -12px;
  inset-inline-start: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 4px 10px;
}

.plan-name {
  margin: 0;
  color: var(--primary-dark);
}

.plan-price {
  margin: 8px 0;
  font-size: 2rem;
  font-weight: 700;
}

.plan-price small {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.price-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.plan-list li {
  margin-bottom: 8px;
  color: var(--text);
}

.accordion {
  display: grid;
  gap: 10px;
}

.acc-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.acc-btn {
  width: 100%;
  text-align: right;
  font: inherit;
  border: 0;
  background: transparent;
  padding: 16px;
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.acc-content p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.cta-band {
  background: linear-gradient(135deg, #3f5a4f 0%, #587a6a 100%);
  color: #fff;
  border-radius: 24px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-band h2 {
  margin: 0 0 8px;
}

.site-footer {
  margin-top: 60px;
  background: #1f2f28;
  color: #e5ece8;
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #dce6e1;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-mini-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.screens-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.screen-mini {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}

.screen-mini img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #edf2ef;
  background: #f8faf9;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

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

.error {
  color: #a12a2a;
  font-size: 0.88rem;
  margin-top: 6px;
}

.toast {
  position: fixed;
  inset-inline-start: 20px;
  bottom: 20px;
  background: #15382b;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.legal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.legal h1,
.legal h2,
.legal h3 {
  color: var(--primary-dark);
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.voice-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.voice-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid var(--border);
  object-fit: cover;
  margin-bottom: 10px;
}

.voice-card h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
}

.voice-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.voice-card span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 14px;
  text-align: right;
}

th {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

@media (max-width: 980px) {
  .hero-grid,
  .features-grid,
  .pricing-grid,
  .steps,
  .voices-grid,
  .contact-layout,
  .badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .shot-a,
  .shot-b,
  .shot-c,
  .shot-d {
    grid-column: span 6;
  }

  .shot-e,
  .shot-f,
  .shot-g {
    grid-column: span 4;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    position: relative;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    inset-inline: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 4%;
    flex-direction: column;
    align-items: stretch;
  }

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

  .cta-inline {
    display: none;
  }

  .hero,
  .section {
    padding: 56px 0;
  }

  .hero-grid,
  .features-grid,
  .pricing-grid,
  .steps,
  .voices-grid,
  .contact-layout,
  .badges,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-side {
    align-items: flex-start;
  }

  .mobile-shots-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .phone-card {
    height: 320px;
  }

  .phone-shot {
    transform: none !important;
  }

  .shot-a,
  .shot-b,
  .shot-c,
  .shot-d,
  .shot-e,
  .shot-f,
  .shot-g {
    grid-column: span 12;
    min-height: 220px;
    transform: none;
  }

  .screens-mini {
    grid-template-columns: 1fr;
  }

  .testimonial-box {
    min-height: auto;
  }
}
