:root {
  --brand: #378a3c;
  --brand-dark: #2a6d2f;
  --brand-darker: #1f5223;
  --brand-tint: #e8f5e9;
  --brand-tint-2: #d6ecd8;
  --business: #1f5223;
  --text: #14201f;
  --text-muted: #5f6e6b;
  --text-soft: #8b9794;
  --bg: #ffffff;
  --bg-soft: #f7f9f8;
  --bg-card: #ffffff;
  --border: #e6ebe8;
  --border-soft: #f0f3f1;
  --header-bg: rgba(255, 255, 255, .82);
  --mockup-chrome-bg: #f1f4f3;
  --mockup-body-bg: #fafbfb;
  --footer-bg: #0f1a16;
  --footer-text: #cdd6d3;
  --footer-text-muted: #8b9794;
  --footer-border: #1a2622;
  --shadow-sm: 0 1px 2px rgba(20, 32, 31, .06), 0 1px 1px rgba(20, 32, 31, .04);
  --shadow-md: 0 4px 14px rgba(20, 32, 31, .07), 0 2px 6px rgba(20, 32, 31, .04);
  --shadow-lg: 0 24px 60px rgba(20, 32, 31, .12), 0 8px 24px rgba(20, 32, 31, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1140px;
}

:root[data-theme="dark"] {
  --brand: #6cbb70;
  --brand-dark: #87cf8a;
  --brand-darker: #a4dba6;
  --brand-tint: #1a2c1d;
  --brand-tint-2: #243f28;
  --business: #a4dba6;
  --text: #e6ebe8;
  --text-muted: #9aa8a4;
  --text-soft: #6c7975;
  --bg: #0c1411;
  --bg-soft: #131c18;
  --bg-card: #141d19;
  --border: #233028;
  --border-soft: #1c2722;
  --header-bg: rgba(12, 20, 17, .82);
  --mockup-chrome-bg: #1a2520;
  --mockup-body-bg: #0f1814;
  --footer-bg: #050908;
  --footer-text: #cdd6d3;
  --footer-text-muted: #6c7975;
  --footer-border: #1a2622;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 1px rgba(0, 0, 0, .25);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55), 0 8px 24px rgba(0, 0, 0, .35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'SF Arabic', 'SF Pro Arabic', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}

html[lang="en"] body {
  font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────────── Header ───────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: background .25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
}

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

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  padding: 0;
}

.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn .icon-sun,
:root[data-theme="dark"] .icon-btn .icon-moon {
  display: none;
}

:root[data-theme="dark"] .icon-btn .icon-sun {
  display: block;
}

.lang-toggle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
}

.brand-name {
  letter-spacing: -0.02em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  transition: background .15s ease, transform .15s ease;
}

.header-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.icon-arrow {
  width: 18px;
  height: 18px;
}

/* ───────────── Hero ───────────── */
.hero {
  padding: clamp(60px, 9vw, 110px) 0 clamp(30px, 6vw, 60px);
  background:
    radial-gradient(60% 70% at 50% 0%, var(--brand-tint) 0%, transparent 70%),
    var(--bg);
  text-align: center;
  transition: background .25s ease;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--brand-darker) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  padding-bottom: 0.1em;
}

.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.hero-products {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .25s ease, color .25s ease;
}

.hero-chip:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.chip-dot-business {
  background: var(--business);
}

/* ───────────── Product sections ───────────── */
.product-section {
  padding: clamp(60px, 8vw, 110px) 0;
  scroll-margin-top: 80px;
}

.product-section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  transition: background .25s ease;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.product-grid-reverse {
  direction: ltr;
}

.product-grid-reverse > * {
  direction: rtl;
}

.product-copy {
  max-width: 520px;
}

.product-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-darker);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.tag-business {
  background: #e3ece4;
  color: var(--business);
}

.product-title {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text);
}

.product-lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}

.feature-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 50%;
  padding: 3px;
}

/* ───────────── Store buttons ───────────── */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #14201f;
  color: #fff;
  border-radius: 12px;
  transition: background .15s ease, transform .15s ease;
}

:root[data-theme="dark"] .store-btn {
  background: #1f2c2a;
  border: 1px solid var(--border);
}

.store-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

:root[data-theme="dark"] .store-btn:hover {
  background: #2a3835;
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-label small {
  font-size: 11px;
  opacity: .78;
}

.store-label strong {
  font-size: 16px;
  font-weight: 700;
}

/* ───────────── Business CTAs ───────────── */
.business-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px rgba(55, 138, 60, .25);
}

.cta-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(55, 138, 60, .35);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: border-color .15s ease, transform .15s ease;
}

.cta-secondary:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.icon-wa {
  width: 20px;
  height: 20px;
  color: #25d366;
}

/* ───────────── Phones visual ───────────── */
.product-visual {
  position: relative;
}

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
  perspective: 1200px;
}

.phone {
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  background: #16331a;
  position: absolute;
  width: 240px;
  height: auto;
  transition: transform .4s ease;
}

.phone-front {
  z-index: 2;
  transform: translateY(-6px);
  width: 260px;
}

.phone-back {
  z-index: 1;
  transform: translateX(-110px) translateY(20px) rotate(-6deg) scale(.92);
  opacity: .92;
}

.phone-back-end {
  transform: translateX(110px) translateY(20px) rotate(6deg) scale(.92);
}

.phone:hover {
  transform: translateY(-12px);
  z-index: 5;
}

.phone-back:hover {
  transform: translateX(-110px) translateY(10px) rotate(-6deg) scale(.95);
}

.phone-back-end:hover {
  transform: translateX(110px) translateY(10px) rotate(6deg) scale(.95);
}

/* ───────────── Dashboard mockup ───────────── */
.dashboard-mockup {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transform: rotate(-1deg);
  transition: transform .35s ease;
}

.dashboard-mockup:hover {
  transform: rotate(0deg);
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--mockup-chrome-bg);
  border-bottom: 1px solid var(--border);
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6dcd9;
}

.chrome-dot:nth-child(1) { background: #ff5f56; }
.chrome-dot:nth-child(2) { background: #ffbd2e; }
.chrome-dot:nth-child(3) { background: #27c93f; }

.chrome-url {
  margin-inline-start: 14px;
  font-size: 12px;
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  direction: ltr;
}

.mockup-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 420px;
  background: var(--mockup-body-bg);
}

.mockup-sidebar {
  background: var(--bg-card);
  border-inline-end: 1px solid var(--border-soft);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.mockup-brand img {
  width: 26px;
  height: 26px;
}

.mockup-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.nav-item {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text-soft);
  transition: background .15s ease, color .15s ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

.nav-active {
  background: var(--brand-tint);
  color: var(--brand-darker);
}

.mockup-main {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mockup-header h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.mockup-header p {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}

.mockup-period {
  font-size: 11px;
  padding: 5px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-label {
  font-size: 11px;
  color: var(--text-soft);
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.kpi-delta {
  font-size: 11px;
  font-weight: 700;
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 999px;
}

.delta-up {
  background: var(--brand-tint);
  color: var(--brand-darker);
}

.delta-warn {
  background: #fff4d6;
  color: #8a6300;
}

.mockup-chart {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.chart-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-soft);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
}

.chart-svg {
  width: 100%;
  height: 78px;
}

.mockup-list {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 4px 0;
}

.list-head {
  padding: 10px 14px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}

.list-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.list-row:last-child {
  border-bottom: 0;
}

.row-name {
  font-weight: 700;
  color: var(--text);
}

.row-meta {
  color: var(--text-soft);
}

.row-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.badge-warn {
  background: #ffe8df;
  color: #b3461f;
}

.badge-ok {
  background: var(--brand-tint);
  color: var(--brand-darker);
}

/* ───────────── Footer ───────────── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 36px 0;
  border-top: 1px solid var(--footer-border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.footer-logo {
  width: 28px;
  height: 28px;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(37, 211, 102, .12);
  border: 1px solid rgba(37, 211, 102, .35);
  color: #25d366;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s ease;
}

.footer-wa:hover {
  background: rgba(37, 211, 102, .2);
}

.footer-copy {
  font-size: 13px;
  color: var(--footer-text-muted);
}

/* ───────────── Responsive ───────────── */
@media (max-width: 880px) {
  .product-grid,
  .product-grid-reverse {
    grid-template-columns: 1fr;
    direction: rtl;
    gap: 50px;
  }

  .product-grid-reverse .product-visual {
    order: -1;
  }

  .product-copy {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .product-copy .feature-list li {
    text-align: start;
  }

  .feature-list {
    max-width: 480px;
    margin-inline: auto;
    margin-bottom: 32px;
  }

  .store-buttons,
  .business-cta {
    justify-content: center;
  }

  .phones {
    min-height: 480px;
  }

  .phone {
    width: 200px;
  }

  .phone-front {
    width: 220px;
  }

  .phone-back {
    transform: translateX(-90px) translateY(20px) rotate(-6deg) scale(.9);
  }

  .phone-back-end {
    transform: translateX(90px) translateY(20px) rotate(6deg) scale(.9);
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    padding: 10px 14px;
  }

  .mockup-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .mockup-body {
    grid-template-columns: 44px 1fr;
  }

  .mockup-sidebar {
    padding: 10px 4px;
  }

  .nav-item {
    width: 32px;
    height: 32px;
  }

  .phones {
    min-height: 420px;
  }

  .phone {
    width: 170px;
  }

  .phone-front {
    width: 190px;
  }

  .phone-back {
    transform: translateX(-72px) translateY(16px) rotate(-6deg) scale(.85);
  }

  .phone-back-end {
    transform: translateX(72px) translateY(16px) rotate(6deg) scale(.85);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
