:root {
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --display: "Instrument Serif", "IBM Plex Sans Arabic", serif;
  --ink: #14231c;
  --ink-soft: #3d5248;
  --muted: #5f7368;
  --paper: #f3f6f4;
  --paper-2: #e7eee9;
  --line: rgba(20, 35, 28, 0.12);
  --forest: #1a3d2e;
  --leaf: #2f6b4f;
  --leaf-deep: #163528;
  --mist: #d9e6de;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(20, 35, 28, 0.12);
  --radius: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(47, 107, 79, 0.08), transparent 55%),
    radial-gradient(900px 500px at -10% 40%, rgba(217, 230, 222, 0.7), transparent 50%),
    var(--paper);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3 { margin: 0 0 0.6rem; color: var(--ink); line-height: 1.25; font-weight: 600; }
button, input, textarea, select { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0;
  padding: 0.75rem 1rem; background: var(--forest); color: #fff; z-index: 100;
}
.skip-link:focus { inset-inline-start: 1rem; top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(243, 246, 244, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 246, 244, 0.94);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  margin-inline-end: auto;
}
.brand-mark {
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7cbc95, var(--leaf) 55%, var(--forest));
  box-shadow: 0 0 0 4px rgba(47, 107, 79, 0.12);
}
.brand-name {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: var(--forest);
}
.nav {
  display: flex; gap: 1.35rem; align-items: center;
}
.nav a {
  font-size: 0.92rem; color: var(--ink-soft); font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--forest); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang select {
  border: 1px solid var(--line); background: transparent;
  border-radius: 999px; padding: 0.4rem 0.85rem; color: var(--ink-soft);
  cursor: pointer;
}
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; gap: 6px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px; background: var(--ink);
  margin-inline: auto; transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.7rem 1.35rem; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition:
    transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; }
.btn-solid {
  background: var(--forest); color: #fff;
  box-shadow: 0 10px 28px rgba(26, 61, 46, 0.22);
}
.btn-solid:hover { background: var(--leaf-deep); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.14); color: #fff;
  border-color: rgba(255,255,255,0.35); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.24); }
.btn-line {
  background: transparent; color: var(--forest); border-color: rgba(26, 61, 46, 0.25);
}
.btn-line:hover { background: var(--mist); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: grid; align-items: end;
  overflow: hidden; color: #fff;
}
.hero-media {
  position: absolute; inset: 0;
  animation: heroZoom 18s var(--ease) infinite alternate;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 24, 18, 0.12) 0%, rgba(10, 24, 18, 0.38) 42%, rgba(10, 24, 18, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 24, 18, 0.28), transparent 58%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6rem);
  max-width: 38rem;
  margin-inline: 0 auto 0 0;
  animation: riseIn 1s var(--ease) both;
}
[dir="rtl"] .hero-content { margin-inline: 0 0 0 auto; }

.brand-display {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1; margin: 0 0 1rem;
  color: #fff; font-weight: 400;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600; color: #fff; max-width: 18ch;
  margin-bottom: 0.9rem;
}
.hero-lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem; max-width: 34ch; margin-bottom: 1.6rem;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-media { will-change: transform; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-head { max-width: 36rem; margin-bottom: 2.75rem; }
.eyebrow {
  display: inline-block; margin: 0 0 0.65rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--leaf);
}
.section-head h2, .feature-band-copy h2, .apps h2, .contact h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 1.75rem 1.25rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}
.pillar:hover { background: rgba(255,255,255,0.45); }
.pillar-num {
  display: block; font-family: var(--display);
  font-size: 1.5rem; color: var(--leaf); margin-bottom: 0.85rem;
}
.pillar h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.pillar p { margin: 0; font-size: 0.95rem; }

/* Feature band */
.feature-band {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 0; padding: 0; min-height: 520px;
  background: var(--forest); color: #fff;
}
.feature-band-media { min-height: 320px; overflow: hidden; }
.feature-band-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.feature-band-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 4.5rem);
}
.feature-band .eyebrow { color: #9dceb4; }
.feature-band h2 { color: #fff; }
.feature-band p { color: rgba(255,255,255,0.78); }
.why-list {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
  display: grid; gap: 0.85rem;
}
.why-list li {
  position: relative; padding-inline-start: 1.35rem;
  color: rgba(255,255,255,0.9); font-weight: 500;
}
.why-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.55em;
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: #9dceb4;
}

.apps { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.download-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, #fff, #f7faf8);
  box-shadow: var(--shadow);
}
.download-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.download-card-top h3 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
}
.download-card-top p {
  margin: 0;
  font-size: 0.92rem;
}
.os-badge {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.os-badge.android {
  color: #fff;
  background: #3ddc84;
}
.os-badge.apple {
  color: #fff;
  background: #111;
}
.qr-frame {
  align-self: center;
  padding: 0.75rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.qr-frame img {
  width: 168px;
  height: 168px;
  image-rendering: pixelated;
}
.download-card .btn {
  width: 100%;
}

@media (max-width: 760px) {
  .download-cards { grid-template-columns: 1fr; }
}

.apps-grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem; align-items: end;
}
.apps-note {
  font-family: var(--display); font-size: 1.35rem;
  color: var(--ink-soft); border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* Contact */
.about { background: #fff; }
.about-grid { display: grid; gap: 1.5rem; }
.about-body {
  max-width: 46rem;
  display: grid;
  gap: 1rem;
}
.about-body p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.services { background: var(--paper); }
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
}
.service-item {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.service-item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}
.service-item p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-channels {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.95rem;
}
.contact-channels li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.contact-channels span:first-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--leaf);
  letter-spacing: 0.04em;
}
.contact-channels a {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}
.contact-channels a:hover { color: var(--leaf); }

.footer-contact {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-weight: 600;
  color: var(--ink-soft);
}
.footer-contact a:hover { color: var(--forest); }

@media (max-width: 960px) {
  .service-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .service-list { grid-template-columns: 1fr; }
}

.contact-layout {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.contact-meta { margin-top: 1.5rem; font-weight: 500; color: var(--ink-soft); }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, #fff, #f7faf8);
  box-shadow: var(--shadow);
}
.contact-form label {
  display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
}
.contact-form label.full { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0.85rem 1rem; background: #fff; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: rgba(47, 107, 79, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 107, 79, 0.12);
}
.contact-form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 0.25rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-status.is-ok {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #a7f3d0;
}
.form-status.is-err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem; background: var(--paper);
}
.footer-inner {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr auto; align-items: start;
}
.footer-inner strong { color: var(--forest); font-size: 1.1rem; }
.footer-inner p { margin: 0.2rem 0 0; }
.footer-inner nav {
  display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; justify-content: end;
}
.footer-inner nav a { color: var(--muted); font-size: 0.9rem; }
.footer-inner nav a:hover { color: var(--forest); }
.copy { grid-column: 1 / -1; margin: 0.5rem 0 0; font-size: 0.85rem; }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-band-media { max-height: 280px; }
  .apps-grid, .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { justify-content: start; }
}

@media (max-width: 760px) {
  .nav, .header-actions .btn-solid { display: none; }
  .header-actions { margin-inline-start: auto; }
  .nav-toggle { display: flex; }
  .site-header.is-open {
    height: auto; min-height: var(--header-h);
  }
  .site-header.is-open .header-inner {
    flex-wrap: wrap; padding-bottom: 1rem;
  }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: flex-start;
    width: 100%; gap: 0.85rem; padding-top: 0.5rem;
  }
  .site-header.is-open .header-actions .btn-solid { display: inline-flex; }
  .pillars { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-content { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
