/* ─── Souqtopia marketing site ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Zain:wght@600;700&display=swap');

:root {
  --bg: #211F2A;
  --bg-elev: #2C2A36;
  --bg-elev-2: #3A3846;
  --text: #FFFFFF;
  --text-muted: #B8B5C2;
  --text-dim: #8A8794;
  --gold: #dfb05c;
  --gold-light: #e9c789;
  --gold-dark: #b8923f;
  --coral: #d0544d;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --max-w: 1180px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 36px;
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(223,176,92,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Arabic', 'Geeza Pro', Tahoma, 'Segoe UI', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(33, 31, 42, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: flex-end;
  /* gap: 10px; */
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav-brand span {
  font-family: 'Zain', sans-serif;
  font-weight: 700;
}
.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gold);
  color: #1a1822;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 12px;
}
.lang-switch a {
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.lang-switch a.active {
  color: var(--gold);
  background: rgba(223,176,92,0.1);
}
.nav-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 16px;
}
.lang-switch { flex-shrink: 0; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-right { gap: 10px; }
  .lang-switch { font-size: 11px; }
  .lang-switch a { padding: 3px 6px; }
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(223,176,92,0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(223,176,92,0.12);
  border: 1px solid rgba(223,176,92,0.3);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(208,84,77,0.6);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}
.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #fff;
  color: #000;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.store-btn .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: start;
}
.store-btn .store-text small {
  font-size: 11px;
  color: #555;
  font-weight: 500;
}
.store-btn .store-text strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* phone mockup */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-frame {
  position: relative;
  width: 320px;
  padding: 14px;
  background: linear-gradient(145deg, #2a2833, #1a1822);
  border-radius: 48px;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  border: 1px solid var(--border-strong);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}
.phone-frame:hover { transform: rotate(0deg) scale(1.02); }
.phone-frame img {
  width: 100%;
  border-radius: 36px;
  display: block;
}

@media (max-width: 900px) {
  .hero { padding: 60px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  body[dir="rtl"] .hero-inner { text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }
  .phone-frame { width: 260px; transform: rotate(0); }
}

/* ─── Features ────────────────────────────────────────── */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 32px 28px;
  border-radius: var(--r-lg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(223,176,92,0.3);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(223,176,92,0.18), rgba(223,176,92,0.05));
  border: 1px solid rgba(223,176,92,0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gold);
}
.feature h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 15px;
  color: var(--text-muted);
}

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

/* ─── Screenshots showcase ────────────────────────────── */
.showcase {
  background: linear-gradient(180deg, transparent, rgba(223,176,92,0.04), transparent);
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: end;
  max-width: 980px;
  margin: 0 auto;
}
.showcase-item {
  position: relative;
}
.showcase-item img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-strong);
  transition: transform 0.3s ease;
}
.showcase-item:nth-child(2) img { transform: translateY(-30px); }
.showcase-item:hover img { transform: translateY(-8px); }
.showcase-item:nth-child(2):hover img { transform: translateY(-38px); }
.showcase-item .caption {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .showcase-grid { grid-template-columns: 1fr; max-width: 320px; gap: 50px; }
  .showcase-item:nth-child(2) img { transform: none; }
  .showcase-item:nth-child(2):hover img { transform: translateY(-8px); }
}

/* ─── Seller CTA ──────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, rgba(223,176,92,0.12), rgba(208,84,77,0.08));
  border: 1px solid rgba(223,176,92,0.2);
  border-radius: var(--r-xl);
  padding: 60px 48px;
  text-align: center;
}
.cta h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.cta p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 28px;
}
.cta .store-buttons { justify-content: center; }

@media (max-width: 600px) {
  .cta { padding: 40px 24px; }
}

/* ─── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 36px;
  background: #1a1822;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
}
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-tag { color: var(--text-dim); font-size: 14px; max-width: 280px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

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

/* ─── Legal pages (privacy / terms / support) ─────────── */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal .last-updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.legal h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}
.legal p, .legal li {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.legal ul, .legal ol {
  padding-inline-start: 24px;
  margin-bottom: 16px;
}
.legal strong { color: var(--text); }
.legal a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(223,176,92,0.4); }
.legal a:hover { text-decoration-color: var(--gold); }
.legal hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
.legal .doc-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.legal .doc-switcher a {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.legal .doc-switcher a.active {
  background: rgba(223,176,92,0.15);
  border-color: rgba(223,176,92,0.3);
  color: var(--gold);
}
