:root {
  --ink: #16202a;
  --muted: #5d6975;
  --line: #dde5ec;
  --paper: #f8fbff;
  --white: #ffffff;
  --blue: #1c6df2;
  --blue-dark: #0e387d;
  --green: #2fb66d;
  --yellow: #f5c84c;
  --shadow: 0 22px 60px rgba(22, 32, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 229, 236, 0.9);
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 74px;
  padding: 0 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  font-weight: 850;
  min-width: 0;
}

.brand img {
  border-radius: 12px;
  height: 44px;
  width: 44px;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.language-switch {
  position: relative;
}

.language-switch select {
  appearance: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-width: 116px;
  padding: 10px 34px 10px 12px;
}

.language-switch::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  content: "";
  pointer-events: none;
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-35%);
}

body[dir="rtl"] {
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

body[dir="rtl"] .language-switch::after {
  left: 13px;
  right: auto;
}

body[dir="rtl"] .trust-item {
  border-left: 0;
  border-right: 3px solid var(--blue);
  padding-left: 0;
  padding-right: 13px;
}

.nav-links a:hover,
.nav-links .active {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  border-radius: 8px;
  color: var(--white) !important;
  padding: 10px 14px;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 82px 24px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(0, 1fr) 500px;
  min-height: calc(100vh - 74px);
  padding-top: 62px;
}

.eyebrow {
  align-items: center;
  color: var(--blue-dark);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 9px;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.dot {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  height: 12px;
  width: 12px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5.35rem);
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 880px;
}

h3 {
  font-size: 1.18rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 24px 0 0;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 50px;
  padding: 13px 19px;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.trust-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  max-width: 740px;
}

.trust-item {
  border-left: 3px solid var(--blue);
  color: var(--muted);
  font-size: 0.94rem;
  padding-left: 13px;
}

.trust-item strong {
  color: var(--ink);
  display: block;
  font-size: 1.12rem;
}

.app-panel {
  align-self: center;
  background: linear-gradient(135deg, #eef7ff, #ffffff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  padding: 16px;
}

.panel-head img {
  border-radius: 12px;
  height: 54px;
  width: 54px;
}

.panel-head strong {
  display: block;
  font-size: 1.05rem;
}

.panel-head span {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
}

.resize-card {
  padding: 22px;
}

.hero-screens {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-screens img {
  aspect-ratio: 333 / 592;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(22, 32, 42, 0.16);
  height: auto;
  object-fit: cover;
  width: 100%;
}

.hero-screens img:nth-child(2) {
  transform: translateY(-18px);
}

.size-pills {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.size-pills span {
  background: #eef5ff;
  border: 1px solid #d8e7ff;
  border-radius: 8px;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px;
  text-align: center;
}

.keyword-strip {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.keyword-strip .inner {
  align-items: center;
  display: flex;
  gap: 14px;
  margin: 0 auto;
  max-width: 1180px;
  overflow-x: auto;
  padding: 14px 24px;
}

.keyword-strip span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 0.92rem;
  padding: 7px 12px;
}

.section-intro {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 18px 0 0;
  max-width: 760px;
}

.split {
  align-items: start;
  display: grid;
  gap: 46px;
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-grid,
.link-grid,
.faq-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature,
.link-card,
.faq,
.use-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.feature .icon {
  align-items: center;
  background: #eaf3ff;
  border-radius: 8px;
  color: var(--blue-dark);
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  margin-bottom: 18px;
  width: 38px;
}

.feature p,
.link-card p,
.faq p,
.use-card p {
  color: var(--muted);
  margin: 10px 0 0;
}

.link-card {
  display: block;
}

.link-card:hover {
  border-color: #bdd4fa;
  transform: translateY(-1px);
}

.link-card strong {
  color: var(--blue-dark);
  display: block;
  margin-top: 14px;
}

.steps,
.use-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.preview-band {
  background: #eef5ff;
}

.screens-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.screens-row img {
  aspect-ratio: 333 / 592;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(22, 32, 42, 0.14);
  object-fit: cover;
  width: 100%;
}

.step {
  border-top: 4px solid var(--green);
  padding-top: 18px;
}

.step strong {
  color: var(--green);
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.page-hero {
  padding-bottom: 48px;
}

.cta {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1180px) / 2 + 24px));
}

.cta .section-intro {
  color: rgba(255, 255, 255, 0.72);
}

.cta .button.primary {
  background: var(--blue);
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 24px;
}

.footer a {
  color: var(--ink);
  font-weight: 750;
  margin-right: 14px;
}

body[dir="rtl"] .footer a {
  margin-left: 14px;
  margin-right: 0;
}

@media (max-width: 960px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .app-panel {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 58px 18px;
  }

  .nav {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-links {
    gap: 11px;
    font-size: 0.9rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-row,
  .feature-grid,
  .link-grid,
  .faq-grid,
  .steps,
  .use-grid {
    grid-template-columns: 1fr;
  }

  .size-pills {
    grid-template-columns: 1fr;
  }

  .hero-screens {
    gap: 8px;
  }

  .hero-screens img:nth-child(2) {
    transform: translateY(-8px);
  }

  .screens-row {
    display: flex;
    margin-left: -18px;
    margin-right: -18px;
    overflow-x: auto;
    padding: 0 18px 12px;
    scroll-snap-type: x mandatory;
  }

  .screens-row img {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
}
