:root {
  --bg: #f7faff;
  --surface: #ffffff;
  --surface-2: #eef5ff;
  --text: #0f1e3a;
  --muted: #63708a;
  --primary: #0b5cff;
  --primary-2: #4b8cff;
  --line: #dce6f5;
  --shadow: 0 20px 60px rgba(16, 45, 95, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
}
html[dir="rtl"] body { font-family: "Noto Sans Arabic", Inter, sans-serif; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(960px, calc(100% - 40px)); }
.section { padding: 92px 0; }
.center { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220,230,245,0.8);
}
.nav-wrap { min-height: 84px; padding-block: 10px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--primary), #65a5ff); box-shadow: 0 8px 24px rgba(11,92,255,.25); }
.brand-logo { display: block; width: auto; height: auto; max-width: 210px; max-height: 58px; object-fit: contain; }
.brand-name { font-size: 20px; letter-spacing: -0.02em; }
.main-nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; font-weight: 600; }
.main-nav a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 4px; padding: 4px; background: #edf3ff; border-radius: 12px; }
.lang-switch button { border: 0; background: transparent; color: var(--muted); padding: 7px 9px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 700; }
.lang-switch button.active { background: #fff; color: var(--primary); box-shadow: 0 3px 12px rgba(11,92,255,.12); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; border: 1px solid transparent; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 12px 28px rgba(11,92,255,.22); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 14px; }
.full { width: 100%; }

.hero { padding-top: 110px; overflow: hidden; }
.hero-grid { direction: ltr; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -0.055em; max-width: 740px; margin-bottom: 24px; }
h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -0.04em; margin-bottom: 18px; }
h3 { font-size: 20px; margin-bottom: 10px; }
.hero-lead, .section-heading p, .contact-section p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-lead { max-width: 680px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-points { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 24px; margin-top: 34px; color: var(--muted); font-weight: 600; }
.hero-points div { display: flex; align-items: center; gap: 8px; }
.hero-points span:first-child { color: var(--primary); }


.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading.center { margin-left: auto; margin-right: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature-card { padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(16,45,95,.06); }
.feature-card .icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 18px; background: #edf4ff; color: var(--primary); font-weight: 800; }
.feature-card p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }

.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.screen-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(16, 45, 95, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.screen-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(16, 45, 95, 0.18);
}

.screen-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  background: #eef5ff;
}

.screen-card figcaption {
  padding: 18px 22px 20px;
  font-weight: 700;
  font-size: 17px;
}

.contact-section { background: #fff; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.contact-chip { padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line); background: #f8fbff; font-weight: 700; }
.contact-form { background: #f8fbff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: grid; gap: 16px; }
.contact-form button:disabled { cursor: wait; opacity: .7; transform: none; }
.contact-form label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #cedbf0; border-radius: 12px; background: #fff; padding: 13px 14px; color: var(--text); outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #80abff; box-shadow: 0 0 0 3px rgba(11,92,255,.08); }
.form-note { margin: 0 !important; font-size: 12px !important; line-height: 1.5 !important; }

.site-footer { border-top: 1px solid var(--line); background: #f7faff; }
.footer-inner { min-height: 110px; display: flex; align-items: center; gap: 24px; justify-content: space-between; color: var(--muted); font-size: 13px; }
.footer-inner p { margin: 0; }
.footer-brand { color: var(--text); }

html[dir="rtl"] .main-nav, html[dir="rtl"] .nav-actions, html[dir="rtl"] .hero-actions, html[dir="rtl"] .hero-points div, html[dir="rtl"] .contact-links { direction: rtl; }

@media (max-width: 980px) {
  .nav-wrap { flex-wrap: wrap; padding-block: 8px; gap: 8px 16px; }
  .main-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 12px 20px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .screens-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 24px, 1180px); }
  .section { padding: 68px 0; }
  .brand-logo { max-width: 165px; max-height: 55px; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .nav-wrap { min-height: 0; gap: 8px; }
  .brand-name { font-size: 17px; }
  .hero { padding-top: 72px; }
  h1 { font-size: 45px; }
  .hero-points { grid-template-columns: 1fr; }
  .feature-grid, .screens-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 28px 0; align-items: flex-start; flex-direction: column; }
}

[hidden] { display: none !important; }
section, #top { scroll-margin-top: 140px; }
.hero-grid > *, .contact-grid > * { min-width: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pricing-section { background: var(--surface-2); }
.section-cta { margin-top: 30px; }
.custom-section p { color: var(--muted); font-size: 18px; line-height: 1.8; margin-bottom: 28px; }
.btn { text-align: center; padding-block: 12px; }
:focus-visible { outline: 3px solid #0b5cff; outline-offset: 4px; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { line-height: 1.45; letter-spacing: normal; }
html[dir="rtl"] .eyebrow { letter-spacing: normal; }
html[dir="rtl"] h3 { line-height: 1.6; }
.contact-form textarea { resize: vertical; }
@media (max-width: 640px) {
  .plan-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .main-nav { font-size: 12px; }
  h1 { font-size: clamp(36px, 10vw, 45px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.hero-video-shell { width: 100%; max-width: 680px; justify-self: center; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.hero-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
html[dir="rtl"] .hero-copy { direction: rtl; }
