:root {
  --navy: #0d1b2a;
  --blue: #1e3a8a;
  --green: #22c55e;
  --muted: #64748b;
  --line: #dbeafe;
  --soft: #f0f4f8;
  --mint: #e8f7ef;
  --white: #ffffff;
  --amber: #f59e0b;
  --danger: #dc3545;
  --shadow: 0 20px 50px rgba(13, 27, 42, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  direction: rtl;
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--navy);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 45%, #f7fafc 100%);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

p, li, h1, h2, h3, a, span {
  overflow-wrap: anywhere;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e6eef7;
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 148px;
  height: auto;
  display: block;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.navlinks a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
  font-size: 14px;
}

.navlinks a:hover,
.navlinks a.active {
  background: #eef6ff;
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--navy); color: white; }
.btn-green { background: var(--green); color: white; }
.btn-soft { background: #eff6ff; color: var(--blue); border-color: #bfdbfe; }
.btn-outline { background: white; color: var(--navy); border-color: #cbd5e1; }

.hero {
  padding: 72px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
}

h1, h2, h3 { line-height: 1.35; margin: 0; }
h1 { font-size: clamp(36px, 5vw, 62px); letter-spacing: 0; margin-top: 18px; }
h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 12px; }
h3 { font-size: 22px; margin-bottom: 8px; }

.lead {
  font-size: 19px;
  color: #475569;
  margin: 18px 0 26px;
  max-width: 760px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-card {
  background: white;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.hero-card img,
.screen img {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.section {
  padding: 54px 0;
}

.section-soft {
  background: #f8fbff;
  border-block: 1px solid #e6eef7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.card {
  background: white;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(13,27,42,.05);
}

.icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--mint);
  color: #15803d;
  font-weight: 900;
  margin-bottom: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
}

.notice {
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 16px;
  padding: 18px;
  color: #854d0e;
}

.legal-box {
  background: white;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 24px;
  margin: 18px 0;
}

.legal-box p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.footer {
  padding: 34px 0;
  background: var(--navy);
  color: white;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer a { color: #dbeafe; font-weight: 700; }

.meta {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .cards {
    grid-template-columns: 1fr;
  }
  .nav {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 0;
    gap: 12px;
  }
  .brand img { width: 128px; }
  .navlinks {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .navlinks::-webkit-scrollbar { display: none; }
  .navlinks a {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .hero { padding: 42px 0 28px; }
  .hero-card { border-radius: 18px; }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }
  .topbar {
    position: sticky;
  }
  .brand {
    justify-content: space-between;
  }
  .brand img {
    width: 112px;
  }
  .navlinks a {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
  }
  h1 {
    font-size: 34px;
    margin-top: 14px;
  }
  h2 {
    font-size: 25px;
  }
  h3 {
    font-size: 20px;
  }
  .lead {
    font-size: 16px;
    margin: 14px 0 20px;
  }
  .section {
    padding: 34px 0;
  }
  .actions,
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    min-height: 48px;
  }
  .card,
  .legal-box,
  .notice {
    border-radius: 16px;
    padding: 18px;
  }
  .hero-card {
    padding: 10px;
  }
  .hero-card img,
  .screen img {
    border-radius: 12px;
  }
  .footer {
    text-align: center;
    padding: 28px 0;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 30px;
  }
  .eyebrow {
    font-size: 12px;
    padding: 7px 11px;
  }
  .list li {
    padding: 12px;
  }
}
