﻿:root {
  --purple: #714B67;
  --teal: #017E84;
  --teal-solid: #017E84;
  --text: #212529;
  --heading: #212529;
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --muted: #4B5563;
  --border: #E5E7EB;
  --accent: #714B67;
  --purple-tint: #F6F0F5;
  --teal-tint: #E8F4F4;
  --footer: #212529;
  --mock-row: #E5E7EB;
  --mock-bar: #F3F4F6;
  --shadow: 0 18px 40px -18px rgba(33, 37, 41, .28), 0 2px 6px rgba(33, 37, 41, .06);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #2BB3BA;
    --text: #D6DAE0;
    --heading: #F3F4F6;
    --bg: #16181b;
    --surface: #212529;
    --muted: #A8B0BA;
    --border: #3a4047;
    --accent: #D9B8CE;
    --purple-tint: rgba(217, 184, 206, .08);
    --teal-tint: rgba(43, 179, 186, .09);
    --footer: #0F1113;
    --mock-row: #3a4047;
    --mock-bar: #2A2F34;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --teal: #2BB3BA;
  --text: #D6DAE0;
  --heading: #F3F4F6;
  --bg: #16181b;
  --surface: #212529;
  --muted: #A8B0BA;
  --border: #3a4047;
  --accent: #D9B8CE;
  --purple-tint: rgba(217, 184, 206, .08);
  --teal-tint: rgba(43, 179, 186, .09);
  --footer: #0F1113;
  --mock-row: #3a4047;
  --mock-bar: #2A2F34;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

/* Language visibility */
:root[lang="ar"] [lang="en"],
:root[lang="en"] [lang="ar"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { color: var(--heading); margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; max-width: 68ch; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
}
section { scroll-margin-block-start: 16px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.band { background: var(--surface); border-block: 1px solid var(--border); }
.section-title { font-size: clamp(26px, 3.4vw, 38px); margin-block-end: 16px; }
.section-lead { color: var(--muted); margin-block-end: 40px; }

/*========== Buttons ============*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding-block: 10px; padding-inline: 24px;
  border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.3;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: #5E3E56; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--purple-tint); }

/*========== Header ============*/
.site-header { background: var(--surface); border-block-end: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 19px; color: var(--heading); }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
:root[data-theme="dark"] .brand img { background: #fff; padding: 4px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img { background: #fff; padding: 4px; }
}
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--heading); }
.header-actions { display: flex; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding-inline: 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--heading);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}

/*========== Hero ============*/
.hero { padding-block: clamp(48px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.25; margin-block-end: 22px; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { color: var(--muted); font-size: 18px; margin-block-end: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/*========== CSS app-window mockup ============*/
.mockup { position: relative; aspect-ratio: 10 / 8.4; width: 100%; max-width: 560px; margin-inline: auto; }
.win {
  position: absolute; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.win-web { inset-block-start: 0; inset-inline-start: 0; width: 74%; }
.win-desk { inset-block-end: 0; inset-inline-end: 0; width: 66%; }
.win-bar {
  display: flex; align-items: center; gap: 6px;
  padding-block: 10px; padding-inline: 14px;
  background: var(--mock-bar); border-block-end: 1px solid var(--border);
  font-size: 12px; color: var(--muted); direction: ltr;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mock-row); }
.url { margin-inline-start: 10px; padding-inline: 10px; border-radius: 6px; background: var(--surface); flex: 1; line-height: 22px; }
.win-body { padding: 18px; display: grid; gap: 12px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-block-end: 4px; border-block-end: 1px solid var(--border); }
.chart span { flex: 1; border-radius: 4px 4px 0 0; background: var(--purple); }
.chart span:nth-child(even) { background: var(--teal); }
.row { height: 10px; border-radius: 5px; background: var(--mock-row); }
.row.w90 { width: 90%; } .row.w75 { width: 75%; } .row.w60 { width: 60%; } .row.w45 { width: 45%; }
.desk-body .row { height: 12px; }
.pill {
  display: inline-block; padding-inline: 12px; padding-block: 2px;
  border-radius: 999px; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.7;
}
.pill-purple { background: var(--purple); }
.pill-teal { background: var(--teal-solid); }
.win .pill { position: absolute; inset-block-end: 14px; inset-inline-end: 14px; }
.win-desk .win-body { padding-block-end: 52px; }
.win-web .win-body { padding-block-end: 50px; }

/*========== About ============*/
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 72px); }
.about-text { display: grid; gap: 18px; color: var(--muted); }
.about-text p:first-child { color: var(--text); font-size: 19px; }

/*========== Products ============*/
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-block-start: 6px solid var(--purple); border-radius: 14px; padding: 32px;
}
.product.desk { border-block-start-color: var(--teal-solid); }
.product h3 { font-size: 24px; }
.product .sub { color: var(--muted); margin-block-start: -10px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-inline-start: 22px; }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .7em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
}
.note { padding-block: 12px; padding-inline: 16px; border-radius: 8px; font-size: 16px; font-weight: 500; }
.web .note { background: var(--purple-tint); color: var(--accent); }
.desk .note { background: var(--teal-tint); color: var(--teal); }
.download {
  align-self: flex-start; background: var(--teal-solid); color: #fff;
  cursor: not-allowed; opacity: .92;
}
.download svg { width: 20px; height: 20px; flex: none; }
.download .soon { background: rgba(255, 255, 255, .22); color: #fff; font-size: 12px; padding-block: 0; }

/* Features */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.features li {
  padding-block: 20px; padding-inline: 20px 0;
  border-inline-start: 4px solid var(--teal); border-block-end: 1px solid var(--border);
  margin-block-end: -1px;
}
.features h3 { font-size: 19px; margin-block-end: 4px; }
.features p { color: var(--muted); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-block-start: 1px solid var(--border); padding-block-start: 32px; }
.why-grid h3 { color: var(--accent); font-size: 19px; margin-block-end: 8px; }
.why-grid p { color: var(--muted); }

/*========== Testimonials ============*/
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  display: flex; flex-direction: column; gap: 20px; margin: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 28px;
}
.testimonial blockquote { margin: 0; flex: 1; }
.testimonial blockquote::before {
  content: "\201D"; display: block; height: 36px;
  color: var(--teal); font-size: 64px; font-weight: 700; line-height: 1;
}
:root[dir="ltr"] .testimonial blockquote::before { content: "\201C"; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-block-start: 16px; border-block-start: 1px solid var(--border); }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--purple-tint); color: var(--accent); font-weight: 700;
}
.testimonial .name { display: block; color: var(--heading); font-weight: 700; line-height: 1.4; }
.testimonial .role { display: block; color: var(--muted); font-size: 15px; line-height: 1.4; }

/*========== Footer ============*/
.site-footer { background: var(--footer); color: #E5E7EB; padding-block: clamp(56px, 8vw, 88px) 28px; padding-block-end: max(28px, env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px); }
.site-footer h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin-block-end: 16px; }
.site-footer .cta p { color: #C4CAD2; margin-block-end: 28px; }
.btn-white { background: #fff; color: #212529; }
.btn-white:hover { background: #F3F4F6; }
.site-footer :focus-visible { outline-color: #2BB3BA; }
.contact-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 12px; padding-block: 10px; border-block-end: 1px solid rgba(255, 255, 255, .1); }
.contact-list .k { color: #9CA3AF; min-width: 92px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.follow-title { color: #fff; font-size: 17px; margin-block-end: 14px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22); color: #fff;
}
.social a:hover { background: #017E84; border-color: #017E84; }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-block-start: 56px; padding-block-start: 24px;
  border-block-start: 1px solid rgba(255, 255, 255, .12);
  color: #9CA3AF; font-size: 15px;
}

/*========== Header ============*/
@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 400px) {
  .brand-name { display: none; }
}

/*========== Hero ============*/
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/*========== About ============*/
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/*========== Products ============*/
@media (max-width: 820px) { .products-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .product { padding: 24px; } }

/*========== Features ============*/
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/*========== Why ============*/
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/*========== Testimonials ============*/
@media (max-width: 980px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonials { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .testimonial { padding: 24px; } }

/*========== Footer ============*/
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

