/* ============================================================
   داوینچی استودیو — landing page
   Brand tokens mirror app src/styles/tokens.css
   ============================================================ */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/vazirmatn-arabic-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/vazirmatn-arabic-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/vazirmatn-arabic-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/vazirmatn-arabic-800-normal.woff2') format('woff2');
}

:root {
  --bg: #12101c;
  --bg-soft: #1a1726;
  --surface: #211d31;
  --surface-2: #2a2540;
  --line: #35304c;
  --line-soft: #2c2742;
  --text: #f2f0fa;
  --text-2: #b6b1cc;
  --text-3: #8a84a6;
  --accent: #8b5cf6;
  --accent-strong: #7c3aed;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --accent-line: rgba(139, 92, 246, 0.4);
  --coin: #f5b73d;
  --radius: 16px;
  --radius-lg: 22px;
  --font: 'Vazirmatn', 'Tahoma', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.5; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 780px; }

.grad {
  background: linear-gradient(120deg, #a78bfa, #8b5cf6 55%, #f5b73d 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 16, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
}
.brand-name { white-space: nowrap; }
.nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  padding: 12px 24px;
  font-size: 15.5px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(124, 58, 237, 0.45); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 10px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 16px;
}
.hero-sub {
  color: var(--text-2);
  font-size: 17px;
  max-width: 34em;
  margin-bottom: 28px;
}

/* download group — platform sections */
.dl-group {
  display: grid;
  gap: 26px;
  margin-bottom: 22px;
}
.dl-section {
  position: relative;
  padding-top: 6px;
}
.dl-label {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
}
.dl-watermark {
  width: 22px;
  height: 22px;
  color: var(--accent);
  opacity: 0.55;
}
.dl-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}
.dl-btns-center { justify-content: center; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.dl-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.dl-btn small {
  font-size: 11px;
  color: var(--text-3);
  margin-inline-start: 6px;
  letter-spacing: 0.03em;
}
.dl-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  padding: 13px 34px;
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.4);
}
.dl-primary svg { width: 22px; height: 22px; }
.dl-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(124, 58, 237, 0.5); }
.dl-store {
  background: #f4f2fb;
  color: #241f38;
  padding: 13px 26px;
  border: 1px solid transparent;
}
.dl-store strong { font-weight: 800; }
.dl-store:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.dl-pwa {
  background: transparent;
  color: var(--text);
  padding: 12px 26px;
  border: 1px solid var(--line);
}
.dl-pwa:hover { transform: translateY(-2px); border-color: var(--accent-line); background: var(--accent-soft); }
.dl-note {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 10px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  color: var(--text-3);
  font-size: 13.5px;
}
.hero-trust li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.hero-ios-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-3);
}

/* hero visual — phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.glow-1 { width: 320px; height: 320px; background: rgba(124, 58, 237, 0.45); top: -20px; left: 0; }
.glow-2 { width: 240px; height: 240px; background: rgba(245, 183, 61, 0.18); bottom: -40px; right: 10px; }

.phone {
  position: relative;
  z-index: 1;
  width: 270px;
  border-radius: 36px;
  background: #0d0b15;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.03);
  padding: 14px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.phone-notch {
  width: 90px;
  height: 22px;
  background: #0d0b15;
  border-radius: 999px;
  margin: 0 auto 10px;
  border: 1px solid var(--line-soft);
}
.phone-screen {
  background: var(--bg-soft);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.app-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--line-soft);
}
.shot {
  position: relative;
  height: 240px;
  margin: 12px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.shot-scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 70% 10%, rgba(245, 183, 61, 0.35), transparent 55%),
    radial-gradient(150% 110% at 30% 90%, #3b3554 0%, #211d31 60%, #171426 100%);
}
.shot-bottle {
  position: relative;
  width: 84px;
  margin-bottom: 26px;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5));
}
.spark {
  position: absolute;
  color: var(--coin);
  text-shadow: 0 0 12px rgba(245, 183, 61, 0.8);
  animation: twinkle 2.2s ease-in-out infinite;
}
.s1 { top: 22px; left: 26px; font-size: 20px; }
.s2 { top: 60px; right: 20px; font-size: 13px; animation-delay: 1.1s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}
.app-chip {
  margin: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-size: 11.5px;
  color: var(--text-2);
  padding: 8px 12px;
  text-align: center;
}
.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}
.app-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  padding: 9px 0;
}
.app-cost {
  margin-inline-start: 10px;
  color: var(--coin);
  font-size: 12.5px;
  font-weight: 700;
}

/* ---------- categories strip ---------- */
.cats {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding: 18px 0;
}
.cats-inner { display: flex; align-items: center; gap: 16px; }
.cats-title {
  color: var(--text-3);
  font-size: 13.5px;
  white-space: nowrap;
  font-weight: 500;
}
.cats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cats-list li {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); }
.section-title {
  text-align: center;
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 800;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: var(--text-2);
  max-width: 36em;
  margin: 0 auto 48px;
  font-size: 15.5px;
}

/* features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  margin-bottom: 16px;
}
.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14.5px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0 22px;
  overflow: hidden;
}
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-inline-end: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  color: var(--text-2);
  font-size: 14.5px;
  padding: 0 0 20px;
}

/* CTA */
.cta {
  position: relative;
  padding: 90px 0;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(124, 58, 237, 0.28), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.cta h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; margin-bottom: 10px; }
.cta p { color: var(--text-2); margin-bottom: 30px; }

/* footer */
.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-inline-start: auto;
  color: var(--text-2);
  font-size: 13.5px;
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  width: 100%;
  color: var(--text-3);
  font-size: 12.5px;
  margin-top: 4px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { padding: 48px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .dl-btns { justify-content: center; }
  .hero-trust, .cats-inner { justify-content: center; }
  .features-grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features-grid, .steps { grid-template-columns: 1fr; }
  .dl-primary, .dl-store, .dl-pwa { width: 100%; }
  .section { padding: 60px 0; }
  .footer-nav { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .spark { animation: none; }
  * { transition: none !important; }
}
