:root {
  --primary: #004AAD;
  --primary-2: #2b6bd3;
  --accent: #FF6B35;
  --bg: #F8FAFC;
  --text: #111827;
  --muted: #6B7280;
  --card: #ffffff;
  --border: rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Vazirmatn", "Shabnam", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

/* ---------------- Header ---------------- */
.header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.header-row {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  white-space: nowrap;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.24);
}

.brand-badge img {
  width: 22px;
  height: 22px;
  display: block;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav a {
  color: rgba(255,255,255,0.90);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a:hover {
  background: rgba(255,255,255,0.10);
}

.nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
}

.auth {
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  white-space: nowrap;
}

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

.menu-btn {
  display: none;
  margin-inline-start: auto; /* push to the far left in RTL */
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  cursor: pointer;
  padding: 10px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column; /* ✅ show 3 stacked lines (hamburger), not dots */
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
}

/* Mobile: move nav + auth into a drawer for a cleaner header */
@media (max-width: 860px) {
  .nav { display: none; }
  .auth { display: none; }
  .menu-btn { display: inline-flex; }

  /* ✅ Center the app name on mobile header */
  .header-row { position: relative; justify-content: center; }
  .header-row .brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .header-row .menu-btn {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-inline-start: 0;
  }
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
}

.drawer.open { display: block; }

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(2px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(340px, 88vw);
  background: #fff;
  color: var(--text);
  padding: 14px;
  box-shadow: -20px 0 60px rgba(0,0,0,0.22);
  transform: translateX(110%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer.open .drawer-panel { transform: translateX(0); }

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Make drawer brand bigger (icon + name) */
.drawer-top .brand {
  font-size: 20px;
}

.drawer-top .brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.drawer-top .brand-badge img {
  width: 28px;
  height: 28px;
}

.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  font-weight: 900;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.drawer-nav a {
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 900;
  color: #111827;
}

.drawer-nav a.active {
  background: rgba(0,74,173,0.10);
  border-color: rgba(0,74,173,0.26);
  color: var(--primary);
}

.drawer-actions {
  margin-top: auto;
}

.drawer-actions .auth {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 12px 14px;
}

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, rgba(0,74,173,0.72) 100%);
  color: #fff;
  padding: 42px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.25;
}

.hero p {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.92);
  line-height: 1.9;
  font-size: 16px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  border-radius: 14px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(0, 74, 173, 0.28);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.btn.secondary {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.32);
}

.btn.muted {
  background: rgba(17, 24, 39, 0.06);
  color: #374151;
  border: 1px solid var(--border);
  box-shadow: none;
}

/* On light CTA background, make the secondary button as visible as primary */
.cta .btn.secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(0, 74, 173, 0.28);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.hero-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image picture {
  display: block;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------------- Sections ---------------- */
.section {
  padding: 34px 0;
}

.section h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.section .subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: start;
}

.step .num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0,74,173,0.10);
  border: 1px solid rgba(0,74,173,0.18);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--primary);
}

.step h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
}

.step-img {
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.step-img img { width: 100%; height: auto; display: block; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,107,53,0.10);
  border: 1px solid rgba(255,107,53,0.20);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
}

.icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Download page icons (brand-like) */
.dl-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(0, 74, 173, 0.08);
  border: 1px solid rgba(0, 74, 173, 0.14);
  display: grid;
  place-items: center;
}

.dl-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.download-card {
  display: flex;
  flex-direction: column;
}

.download-actions {
  margin-top: auto;
  padding-top: 14px;
}

.download-actions .btn {
  width: 100%;
  justify-content: center;
}

.feature h4 { margin: 0; font-size: 14px; font-weight: 900; }
.feature p { margin: 6px 0 0; color: var(--muted); line-height: 1.9; font-size: 14px; }

/* ---------------- Screenshots scroller (bounce) ---------------- */
.shots-scroller {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.shots-scroll {
  direction: ltr; /* make scrollLeft consistent across browsers */
  display: flex;
  gap: 14px;
  padding: 16px;
  overflow-x: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
}

.shots-scroll::-webkit-scrollbar { display: none; }

.shot {
  width: 220px;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f3f4f6;
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .shot { width: 170px; height: 340px; }
}

.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shot picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------------- CTA ---------------- */
.cta {
  background: rgba(0,74,173,0.06);
  border: 1px solid rgba(0,74,173,0.14);
  border-radius: 18px;
  padding: 18px;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cta h3 { margin: 0; font-size: 16px; font-weight: 900; }
.cta p { margin: 6px 0 0; color: var(--muted); line-height: 1.9; font-size: 14px; }

/* ---------------- Footer ---------------- */
.footer {
  background: #0b1220;
  color: rgba(255,255,255,0.88);
  padding: 28px 0;
  margin-top: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.footer a { color: #fff; opacity: 0.92; }
.footer a:hover { opacity: 1; }

.footer small { color: rgba(255,255,255,0.72); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Utility */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

/* Footer badges need a dark background so text is visible */
.footer .badge {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: none;
}

.footer .badge:hover {
  background: rgba(255,255,255,0.14);
}

.notice {
  background: rgba(255,107,53,0.08);
  border: 1px solid rgba(255,107,53,0.18);
  border-radius: 18px;
  padding: 14px;
  margin-top: 14px;
  color: #1f2937;
  line-height: 1.9;
}

