:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --accent: #0f766e;
  --soft: #eef2ff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Naskh Arabic", Tahoma, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.loading {
  min-height: 70vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.page { overflow: hidden; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: env(safe-area-inset-inline, 0px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
}

.brand-mark svg { width: 18px; height: 18px; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.menu-toggle svg { width: 21px; height: 21px; }

.nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover { color: var(--brand); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
  gap: 2px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding-block: 88px 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.hero p.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 30px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-start: 26px;
  color: var(--muted);
  font-size: 13px;
}

.stars { color: #f59e0b; letter-spacing: 2px; }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 40px 10px 20px 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #dbeafe 0%, transparent 68%);
  opacity: 0.8;
}

.phone {
  position: relative;
  width: 292px;
  height: 580px;
  background: var(--ink);
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

[dir="rtl"] .phone { transform: rotate(3deg); }

.phone-screen {
  height: 100%;
  border-radius: 33px;
  background: #fff;
  padding: 26px 18px 18px;
  overflow: hidden;
}

.phone-notch {
  width: 86px;
  height: 20px;
  border-radius: 0 0 12px 12px;
  background: var(--ink);
  margin: -26px auto 18px;
}

.phone-hello {
  font-size: 12px;
  color: var(--muted);
}

.phone-title {
  font-size: 22px;
  font-weight: 700;
  margin-block-end: 16px;
}

.phone-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  margin-block-end: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-check {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 2px solid var(--brand);
}

.phone-card.done .phone-check {
  background: var(--brand);
  position: relative;
}

.phone-card.done .phone-check::after {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  inset-block-start: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.phone-line { height: 8px; border-radius: 4px; background: #e2e8f0; flex: 1; }
.phone-line.short { max-width: 62%; }
.phone-card.done .phone-line { color: var(--muted); text-decoration: line-through; opacity: 0.6; }

.phone-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-chip.top { inset-block-start: 70px; inset-inline-end: -18px; }
.phone-chip.bottom { inset-block-end: 74px; inset-inline-start: -24px; }
.phone-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.section { padding-block: 88px; }

.section-head { max-width: 620px; margin-inline: auto; text-align: center; }

.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin: 12px 0 12px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section-head p { color: var(--muted); margin: 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-block-start: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  min-height: 230px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-block-end: 20px;
}

.feature-icon svg { width: 21px; height: 21px; }

.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { background: var(--surface); border-block: 1px solid var(--line); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-block-start: 44px;
}

.step { position: relative; padding-inline-start: 62px; }

.step-number {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.step h3 { margin: 8px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.cta { padding-block: 100px; }

.cta-card {
  background: var(--ink);
  color: #fff;
  border-radius: 26px;
  padding: 64px 40px;
  text-align: center;
}

.cta-card h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; }
.cta-card p { margin: 0 auto 28px; color: #cbd5e1; max-width: 46ch; }
.cta-card .btn { background: #fff; color: var(--ink); }

.site-footer {
  border-block-start: 1px solid var(--line);
  padding-block: 34px;
  color: var(--muted);
  font-size: 13px;
}

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

.arrow-rtl { transform: scaleX(1); }
[dir="rtl"] .arrow-rtl { transform: scaleX(-1); }

@media (max-width: 900px) {
  .header-inner { min-height: 64px; gap: 12px; }
  .nav {
    display: none;
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    background: var(--surface);
    border-block-end: 1px solid var(--line);
    padding: 12px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: 15px; }
  .nav a:hover { background: var(--soft); }
  .menu-toggle { display: inline-flex; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 48px 64px; }
  .hero h1 { font-size: clamp(38px, 8vw, 54px); text-wrap: balance; }
  .hero p.lead { max-width: 52ch; }
  .hero-visual { min-height: 460px; }
  .features-grid, .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { min-height: 0; padding: 24px; }
  .section { padding-block: 64px; }
  .section h2 { text-wrap: balance; }
  .cta { padding-block: 64px; }
}

@media (max-width: 760px) {
  .header-cta { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .phone-chip { display: none; }
  .hero-visual::before { inset: 20px; }
  .phone {
    width: min(280px, 78vw);
    height: auto;
    aspect-ratio: 292 / 580;
    transform: none;
  }
  [dir="rtl"] .phone { transform: none; }
  .phone-screen { padding: 24px 16px 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; text-align: start; }
  .cta-card { padding: 48px 24px; border-radius: 22px; }
  .cta-card .btn { width: 100%; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1120px); }
  .site-header { padding-block-start: env(safe-area-inset-top, 0px); }
  .header-inner { min-height: 60px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; }
  .lang-switch button { padding: 8px 12px; min-height: 40px; }
  .hero { padding-block: 40px 52px; gap: 12px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); letter-spacing: -0.03em; }
  .hero p.lead { font-size: 16px; }
  .hero-actions { margin-block-start: 24px; gap: 10px; }
  .btn { min-height: 48px; }
  .rating { margin-block-start: 20px; font-size: 12px; }
  .hero-visual { min-height: 400px; }
  .phone { width: min(250px, 74vw); }
  .section { padding-block: 52px; }
  .section-head { text-align: start; }
  .feature-card { padding: 20px; }
  .feature-icon { width: 40px; height: 40px; margin-block-end: 14px; }
  .steps-grid { gap: 20px; }
  .step { padding-inline-start: 54px; }
  .step-number { width: 36px; height: 36px; font-size: 14px; }
  .cta { padding-block: 52px; }
  .cta-card { padding: 40px 20px; }
  .cta-card h2 { font-size: 30px; }
  .site-footer { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 390px) {
  .header-tools { gap: 8px; }
  .lang-switch button { padding: 8px 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
