:root {
  color-scheme: dark;
  --ink: #effcf7;
  --muted: #a8c2ba;
  --surface: #0d2924;
  --line: rgb(188 238 218 / 14%);
  --brand: #55e6ad;
  --brand-strong: #16c985;
  --deep: #061512;
  --shadow: 0 28px 80px rgb(0 0 0 / 36%);
}

* { box-sizing: border-box; }
html { background: var(--deep); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 15% 0%, rgb(32 164 116 / 18%), transparent 38rem),
    linear-gradient(145deg, #061512 0%, #09231e 58%, #071b18 100%);
  font-family: Inter, "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.6;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.page-shell { width: min(1180px, calc(100% - 48px)); min-height: 100vh; margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}
.wordmark, .language-switch { color: inherit; text-decoration: none; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.wordmark-mark, .avatar {
  display: grid;
  place-items: center;
  color: #062019;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  font-weight: 900;
}
.wordmark-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px 13px 13px 5px;
  box-shadow: 0 10px 30px rgb(38 215 150 / 24%);
}
.language-switch {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgb(255 255 255 / 3%);
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.language-switch:hover, .language-switch:focus-visible {
  border-color: rgb(85 230 173 / 58%);
  color: var(--ink);
  transform: translateY(-1px);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
  min-height: 650px;
  padding-block: 82px 70px;
}
.eyebrow, .section-label {
  margin: 0 0 22px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
[dir="rtl"] .eyebrow, [dir="rtl"] .section-label { letter-spacing: 0; }
h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(3.25rem, 7vw, 6.6rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}
[dir="rtl"] h1 { font-size: clamp(3rem, 6vw, 5.7rem); letter-spacing: -0.025em; line-height: 1.1; }
.lede {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 10px 16px;
  border: 1px solid rgb(85 230 173 / 25%);
  border-radius: 999px;
  color: #d8fff0;
  background: rgb(85 230 173 / 8%);
  font-size: 0.9rem;
  font-weight: 800;
}
.status-pill span, .online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgb(85 230 173 / 10%);
}
.preview-wrap { position: relative; display: grid; place-items: center; min-height: 520px; }
.glow { position: absolute; border-radius: 50%; }
.glow-one { width: 370px; height: 370px; background: rgb(27 193 132 / 14%); }
.glow-two {
  width: 280px;
  height: 280px;
  border: 1px solid rgb(85 230 173 / 20%);
  box-shadow: 0 0 90px rgb(85 230 173 / 10%);
}
.phone-card {
  position: relative;
  width: min(360px, 88vw);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgb(213 255 238 / 18%);
  border-radius: 34px;
  background: linear-gradient(160deg, rgb(18 53 46 / 96%), rgb(7 27 23 / 98%));
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
[dir="rtl"] .phone-card { transform: rotate(-2deg); }
.phone-topbar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.avatar { width: 38px; height: 38px; border-radius: 50%; }
.online-dot { margin-inline-start: auto; }
.conversation { display: flex; flex-direction: column; gap: 18px; padding: 38px 22px; }
.bubble {
  max-width: 84%;
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.94rem;
  line-height: 1.5;
}
.bubble-user { align-self: flex-end; border-end-end-radius: 5px; background: #1c5144; }
.bubble-whattsi {
  align-self: flex-start;
  border-end-start-radius: 5px;
  color: #17362e;
  background: #dffbef;
}
.composer {
  position: absolute;
  inset-inline: 20px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 4%);
}
.composer span { flex: 1; height: 7px; border-radius: 8px; background: rgb(255 255 255 / 12%); }
.composer i { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); }
.steps-section { padding: 64px 0 80px; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 2%));
}
.step-number { color: var(--brand); font-size: 0.78rem; font-weight: 900; }
.step h2 { margin: 38px 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a, .back-link, .document-content a { color: var(--brand); }
.document-shell { width: min(760px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; padding: 72px 0; }
.back-link { display: inline-block; margin-bottom: 64px; font-weight: 700; text-decoration: none; }
.back-link:hover, .back-link:focus-visible { text-decoration: underline; }
.document-content { padding: clamp(28px, 6vw, 58px); border: 1px solid var(--line); border-radius: 28px; background: rgb(6 21 18 / 48%); }
.document-content h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.document-content section { margin-top: 42px; }
.document-content h2 { margin: 0 0 10px; font-size: 1.25rem; }
.document-content p { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 18px; padding-top: 64px; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .preview-wrap { min-height: 500px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; }
  .step h2 { margin-top: 20px; }
}
@media (max-width: 560px) {
  .page-shell { width: min(100% - 30px, 1180px); }
  .site-header { min-height: 78px; }
  .wordmark { font-size: 1.08rem; }
  .wordmark-mark { width: 34px; height: 34px; }
  .language-switch { padding: 7px 12px; font-size: 0.86rem; }
  .hero { min-height: auto; padding: 54px 0 48px; }
  h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  [dir="rtl"] h1 { font-size: clamp(2.65rem, 13vw, 3.8rem); }
  .preview-wrap { min-height: 450px; }
  .phone-card, [dir="rtl"] .phone-card { min-height: 430px; border-radius: 28px; transform: none; }
  .steps-section { padding-block: 52px; }
  footer { flex-direction: column; }
  .document-shell { width: min(100% - 30px, 760px); padding-block: 36px; }
  .back-link { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
