:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #5b4bff;
  --primary-strong: #3f2dff;
  --border: #e5e7eb;
  --success: #0ea96e;
  --shadow-sm: 0 8px 20px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 16px 40px rgba(17, 24, 39, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(246, 248, 252, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #dbe9fb;
  border: 1px solid #b8d1f5;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.language-switcher {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.2rem;
  display: flex;
  gap: 0.2rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
}

.hero {
  padding: 5.6rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.82rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 10px 26px rgba(63, 45, 255, 0.34);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn:hover {
  transform: translateY(-2px);
}

.mockup {
  background: linear-gradient(150deg, #ffffff, #f2f5ff);
  border: 1px solid #e9edff;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.dot-row {
  display: flex;
  gap: 0.35rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  overflow: hidden;
  border-radius: 12px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.72rem;
  border-bottom: 1px solid #eef1f6;
  text-align: start;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.compare-badge {
  margin-top: 0.75rem;
  border: 1px dashed #c5cbff;
  background: #eef0ff;
  color: #3730a3;
  border-radius: 11px;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
}

section {
  padding: 3.4rem 0;
}

.section-title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.3;
  margin: 0 0 0.8rem;
}

.section-subtitle {
  margin: 0 0 1.2rem;
  color: var(--muted);
  max-width: 740px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.23s ease, box-shadow 0.23s ease, border-color 0.23s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #cdd4ff;
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0.4rem 0;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef0ff;
  color: var(--primary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.screen {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.screen-top {
  background: #f3f5ff;
  padding: 0.85rem;
  font-size: 0.86rem;
  color: #4b5563;
  border-bottom: 1px solid var(--border);
}

.screen-body {
  padding: 0.9rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-item {
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.check {
  color: var(--success);
  font-weight: 700;
}

.faq {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem;
}

.faq-item h4 {
  margin: 0 0 0.4rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.final-cta {
  text-align: center;
  background: linear-gradient(130deg, #f2f3ff, #eff5ff);
  border: 1px solid #dfe6ff;
  border-radius: 24px;
  padding: 2.2rem 1.3rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  padding: 1.6rem 0 2.4rem;
  color: #6b7280;
  font-size: 0.9rem;
  text-align: center;
}

body[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

body[dir="rtl"] .feature-item {
  flex-direction: row-reverse;
}

body[dir="rtl"] .cta-row {
  justify-content: flex-start;
}

@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .card-grid,
  .steps,
  .screens,
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 4.4rem;
  }

  .hero-grid,
  .split,
  .card-grid,
  .steps,
  .screens,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .nav {
    height: auto;
    padding: 0.75rem 0;
  }

  h1 {
    font-size: 2rem;
  }
}
