:root {
  --purple: #6a1b9a;
  --purple-light: #8b5cf6;
  --purple-bg: #f7f2fb;
  --orange: #ff8c00;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --green: #4caf50;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-50: #f8fafc;
  --gradient-brand: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
  --gradient-hero: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 35%, #eff6ff 70%, #f0fdf4 100%);
  --shadow: 0 12px 40px rgba(106, 27, 154, 0.08);
  --radius: 16px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.7;
  overflow-x: hidden;
}
body[dir="ltr"] { font-family: 'Segoe UI', 'Cairo', Tahoma, sans-serif; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.brand-strip { height: 4px; background: var(--gradient-brand); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 16px;
}
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-link img { width: 44px; height: 44px; object-fit: contain; }
.brand-text strong { display: block; font-size: 1.15rem; color: var(--purple); line-height: 1.2; }
.brand-text small { display: block; font-size: .72rem; color: var(--slate-500); }

.nav-desktop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-desktop a {
  color: var(--slate-700); text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: 8px 12px; border-radius: 8px; transition: .2s;
}
.nav-desktop a:hover { background: var(--purple-bg); color: var(--purple); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: flex; border: 1px solid var(--slate-200); border-radius: 999px; overflow: hidden; background: #fff;
}
.lang-switch button {
  border: 0; background: transparent; padding: 6px 10px; font-size: .75rem; font-weight: 700;
  cursor: pointer; color: var(--slate-500); transition: .2s;
}
.lang-switch button.active { background: var(--purple); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: .9rem;
  text-decoration: none; border: 0; cursor: pointer; transition: .25s;
}
.btn-primary { background: var(--gradient-brand); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: #fff; color: var(--purple); border: 2px solid var(--purple-light); }
.btn-outline:hover { background: var(--purple-bg); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--slate-700); border: 1px solid var(--slate-200); }

.menu-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--slate-200);
  border-radius: 10px; background: #fff; font-size: 1.2rem; cursor: pointer;
}
.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
  padding: 20px; z-index: 999; flex-direction: column; gap: 8px; overflow-y: auto;
  border-top: 1px solid var(--slate-200);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 16px; border-radius: 10px; text-decoration: none; color: var(--slate-700);
  font-weight: 600; background: var(--slate-50);
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 48px) 0 64px;
  background: var(--gradient-hero);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #fde68a; color: #b45309;
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.25; margin-bottom: 14px;
}
.hero h1 span {
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: var(--slate-500); font-size: 1.05rem; max-width: 560px; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.stat-card {
  background: rgba(255,255,255,.85); border: 1px solid var(--slate-200);
  border-radius: 12px; padding: 14px; text-align: center;
}
.stat-card strong { display: block; font-size: 1.35rem; color: var(--purple); }
.stat-card span { font-size: .78rem; color: var(--slate-500); }

.hero-visual {
  background: #fff; border-radius: 20px; border: 1px solid var(--slate-200);
  box-shadow: var(--shadow); padding: 16px; position: relative;
}
.hero-visual::before {
  content: ''; position: absolute; inset: -8px; border-radius: 24px; z-index: -1;
  background: var(--gradient-brand); opacity: .15;
}
.hero-visual img { width: 100%; height: auto; display: block; border-radius: 12px; }
.hero-logos-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px;
}
.hero-logos-row img {
  width: 100%; height: 56px; object-fit: contain; background: var(--slate-50);
  border-radius: 10px; padding: 8px; border: 1px solid var(--slate-200);
}

/* Sections */
section { padding: 72px 0; }
section:nth-child(even) { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.section-head p { color: var(--slate-500); }
.section-label {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 8px;
}

/* Business types */
.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.biz-card {
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 24px; transition: .25s;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.biz-card.restaurant { border-top: 4px solid var(--teal); }
.biz-card.retail { border-top: 4px solid var(--purple); }
.biz-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.biz-card-head img { width: 52px; height: 52px; object-fit: contain; }
.biz-card ul { list-style: none; display: grid; gap: 8px; }
.biz-card li {
  font-size: .9rem; color: var(--slate-700); padding-inline-start: 22px; position: relative;
}
.biz-card li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 700;
}

/* POS showcase */
.pos-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pos-copy h3 { font-size: 1.4rem; margin-bottom: 12px; }
.pos-copy p { color: var(--slate-500); margin-bottom: 16px; }
.pos-features { display: grid; gap: 10px; margin-bottom: 20px; }
.pos-feature {
  display: flex; gap: 10px; align-items: flex-start; background: var(--slate-50);
  border: 1px solid var(--slate-200); border-radius: 12px; padding: 12px 14px;
}
.pos-feature i { color: var(--purple); margin-top: 3px; }
.pos-feature strong { display: block; font-size: .92rem; }
.pos-feature span { font-size: .82rem; color: var(--slate-500); }

.screenshot-grid { display: grid; gap: 16px; }
.screenshot-slot {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 2px dashed var(--slate-200); background: linear-gradient(180deg, #fff, var(--slate-50));
  min-height: 200px;
}
.screenshot-slot.featured { min-height: 280px; }
.screenshot-slot img {
  width: 100%; height: 100%; object-fit: cover; display: block; min-height: inherit;
}
.screenshot-slot:not(.is-empty) .screenshot-empty { display: none; }
.screenshot-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 20px; gap: 8px;
}
.screenshot-empty i { font-size: 2rem; color: var(--purple-light); opacity: .6; }
.screenshot-empty p { font-size: .85rem; color: var(--slate-500); max-width: 260px; }
.screenshot-empty code {
  font-size: .72rem; background: #fff; border: 1px solid var(--slate-200);
  padding: 4px 8px; border-radius: 6px; color: var(--purple); direction: ltr;
}
.screenshot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.screenshot-caption {
  font-size: .78rem; color: var(--slate-500); text-align: center; margin-top: 6px;
}

/* Module tabs */
.module-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px;
}
.module-tab {
  border: 1px solid var(--slate-200); background: #fff; color: var(--slate-700);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .85rem; cursor: pointer;
}
.module-tab.active { background: var(--purple); border-color: var(--purple); color: #fff; }
.module-panel { display: none; animation: fadeIn .35s ease; }
.module-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
}
.feature-card {
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 14px; padding: 20px;
  transition: .25s;
}
.feature-card:hover { border-color: var(--purple-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card.restaurant { border-inline-start: 4px solid var(--teal); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--purple-bg); color: var(--purple); font-size: 1.1rem; margin-bottom: 12px;
}
.feature-card.restaurant .feature-icon { background: #ecfdf5; color: var(--teal); }
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p { font-size: .86rem; color: var(--slate-500); }
.tag {
  display: inline-block; font-size: .68rem; font-weight: 800; padding: 2px 8px;
  border-radius: 999px; background: var(--teal); color: #fff; margin-inline-start: 6px; vertical-align: middle;
}
.tag.new { background: var(--orange); }

/* Highlights strip */
.highlights {
  background: linear-gradient(135deg, var(--purple) 0%, #4c1d95 100%);
  color: #fff; padding: 48px 0;
}
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.highlight-item { text-align: center; padding: 12px; }
.highlight-item i { font-size: 1.6rem; margin-bottom: 10px; opacity: .9; }
.highlight-item strong { display: block; margin-bottom: 4px; }
.highlight-item span { font-size: .85rem; opacity: .85; }

/* Tutorials */
.tutorial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.tutorial-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: inherit; transition: .25s;
}
.tutorial-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--purple-light);
}
.tutorial-card.retail { border-top: 4px solid var(--purple); }
.tutorial-card.restaurant { border-top: 4px solid var(--teal); }
.tutorial-card-icon img {
  width: 52px; height: 52px; object-fit: contain; border-radius: 12px;
  background: var(--slate-50); padding: 6px; border: 1px solid var(--slate-200);
}
.tutorial-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--slate-900); }
.tutorial-card-body p { font-size: .88rem; color: var(--slate-500); margin-bottom: 14px; line-height: 1.6; }
.tutorial-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 700; color: #ff0000;
}
.tutorial-link i { font-size: 1.15rem; }

/* Download CTA */
.download-section {
  background: var(--gradient-hero); text-align: center;
}
.download-box {
  max-width: 720px; margin: 0 auto; background: #fff; border-radius: 20px;
  border: 1px solid var(--slate-200); box-shadow: var(--shadow); padding: 36px 28px;
}
.download-box img { width: 72px; height: 72px; margin-bottom: 16px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.download-note { font-size: .82rem; color: var(--slate-500); margin-top: 14px; }
.version-badge {
  display: inline-block; background: var(--purple-bg); color: var(--purple);
  font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card {
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 14px;
  padding: 20px; text-align: center;
}
.contact-card i { font-size: 1.4rem; color: var(--purple); margin-bottom: 10px; }
.contact-card a { color: var(--purple); font-weight: 700; text-decoration: none; }

/* Footer */
.site-footer {
  background: var(--slate-900); color: #94a3b8; padding: 36px 0; text-align: center; font-size: .88rem;
}
.site-footer strong { color: #e2e8f0; display: block; margin-bottom: 6px; }
.footer-logos { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-logos img { height: 36px; object-fit: contain; opacity: .85; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .pos-showcase, .biz-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions .btn-outline { display: none; }
}
@media (max-width: 600px) {
  .hero-stats, .screenshot-row, .hero-logos-row { grid-template-columns: 1fr; }
  .lang-switch button { padding: 6px 8px; font-size: .68rem; }
  section { padding: 56px 0; }
}
