/* سایت UploadFly — همان رنگ و فونت ربات (design.md)، سطح‌های تخت و خوانا برای متن طولانی. روشن/تیره با سیستم کاربر. */
@font-face { font-family: "Vazirmatn"; font-weight: 100 900; font-display: swap; src: url("fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 100 900; font-display: swap; src: url("fonts/vazirmatn-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2600-26FF; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF; }

:root {
  --bg: #f5f6fb; --surface: #ffffff; --sunken: #eceef7; --line: #e2e5f0;
  --ink: #1c1e3a; --ink-2: #4c5072; --ink-3: #7c80a0;
  --accent: #5b5bd6; --accent-2: #33c3e8; --accent-soft: #ececfd; --star: #c98a00; --good: #1f9d6b; --bad: #d4434a;
  --hero-from: #2d3060; --hero-to: #1b1d3f;
  --radius: 20px; --shadow: 0 1px 2px rgb(28 30 58 / 0.05), 0 10px 30px rgb(28 30 58 / 0.06);
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111217; --surface: #1a1b22; --sunken: #23252e; --line: #2c2e39; --ink: #f2f3f7; --ink-2: #b4b7c6; --ink-3: #868a9c;
          --accent: #8585fa; --accent-soft: #24243f; --star: #ffc53d; --good: #3dd68c; --bad: #ff6b72;
          --shadow: 0 1px 2px rgb(0 0 0 / 0.4); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.85 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 800; line-height: 1.35; margin: 0; font-style: normal; overflow-wrap: anywhere; min-width: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 8px 14px; border-radius: 10px; background: var(--accent); color: #fff; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }

/* ---------- سربرگ ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.brand .mark { width: 32px; height: 32px; }
.brand span { font: 600 16px/1 "Unbounded", var(--font); letter-spacing: -0.02em; direction: ltr; }
.foot .social { display: flex; gap: 14px; margin-top: 10px; }
.foot .social a { color: inherit; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--sunken); }
.nav .lang { color: var(--ink-3); }
.menu { display: none; }

/* ---------- دکمه‌ها ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform 120ms, box-shadow 120ms, background 120ms; }
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px rgb(91 91 214 / 0.28); }
.btn-primary:hover { box-shadow: 0 14px 30px rgb(91 91 214 / 0.36); }
.btn-ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-light { color: var(--hero-to); background: #fff; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- قهرمان ---------- */
.hero { padding: 72px 0 56px; }
.hero-page { padding: 64px 0 24px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.kicker { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -0.01em; }
.hero-page h1 { font-size: clamp(28px, 4vw, 42px); }
.hl { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.hero-cta.center { justify-content: center; }
.note { color: var(--ink-3); font-size: 15px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: 15px; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--good); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic.no { stroke: var(--bad); }

/* نمایش جریان: فایل ← لینک ← فروش (تصویرسازی، نه قاب گوشی) */
.flow { display: grid; gap: 0; justify-items: stretch; padding: 28px; border-radius: 28px; background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); box-shadow: var(--shadow); }
.flow-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.12); color: #fff; min-width: 0; }
.flow-card div { display: grid; min-width: 0; line-height: 1.5; }
.flow-card b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-card small { font-size: 13px; color: rgb(255 255 255 / 0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-card.sale { background: rgb(255 197 61 / 0.14); border-color: rgb(255 197 61 / 0.35); }
.flow-arrow { width: 2px; height: 22px; margin: 4px auto; background: linear-gradient(rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.5)); border-radius: 2px; }
.k { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.k-doc { background: #8b5cf6; } .k-link { background: rgb(255 255 255 / 0.16); } .k-star { background: #ffc53d; color: #3a2a00; font-size: 20px; }

/* ---------- بخش‌ها ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.split p { color: var(--ink-2); }
.link-more { display: inline-block; margin-top: 16px; font-weight: 700; text-decoration: none; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 16px; }
.table-card { border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font-size: 14px; color: var(--ink-3); }
.compare thead th:last-child { color: var(--accent); }
.compare tbody th { font-weight: 600; }
.compare td { color: var(--ink-2); }
.compare td:last-child { color: var(--ink); font-weight: 600; }
.compare td .ic { vertical-align: -5px; margin-inline-end: 4px; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.uses { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.uses li { display: grid; gap: 2px; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.uses b { font-size: 17px; } .uses span { color: var(--ink-3); font-size: 15px; }
.feature-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.feature { padding: 26px 28px; border-bottom: 1px solid var(--line); }
.feature:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.feature:nth-last-child(-n+2) { border-bottom: 0; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 16px; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: 28px; color: #fff; background: radial-gradient(80% 120% at 0% 0%, rgb(51 195 232 / 0.35), transparent 60%), linear-gradient(135deg, var(--hero-from), var(--accent)); }
.band .h2 { margin-bottom: 6px; color: #fff; }
.band p { color: rgb(255 255 255 / 0.8); }

/* کره‌ی «بازار تو: کل زمین» (globe.js): نقطه‌های خشکی، قوس فروش با ستاره، با موس/انگشت می‌چرخد */
.globe-sec { --globe-dot: var(--accent); --globe-arc: #1fa6c9; --globe-star: #e6a100;
  --globe-glow: rgb(91 91 214 / 0.16); --globe-glow-0: rgb(91 91 214 / 0); --globe-ball: rgb(91 91 214 / 0.1); --globe-ball-0: rgb(91 91 214 / 0.02); overflow: hidden; }
@media (prefers-color-scheme: dark) {
  .globe-sec { --globe-dot: #a5a5ff; --globe-arc: #5fd6f2; --globe-star: #ffc53d; --globe-glow: rgb(133 133 250 / 0.22); --globe-glow-0: rgb(133 133 250 / 0); --globe-ball: rgb(133 133 250 / 0.12); --globe-ball-0: rgb(133 133 250 / 0.03); }
}
.globe-head { display: grid; justify-items: center; text-align: center; }
.globe-head .lead { margin-top: 0; }
.globe { position: relative; height: clamp(320px, 46vw, 560px); margin-top: 8px; border-bottom: 1px solid var(--line); cursor: grab; outline-offset: -3px; }
.globe.grabbing { cursor: grabbing; }
.globe canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.globe-hint { position: absolute; inset-inline-end: 0; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); font-size: 13px; pointer-events: none; }
.globe-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.globe-cell { padding: 26px 24px; border-inline-end: 1px solid var(--line); }
.globe-cell:last-child { border-inline-end: 0; }
.globe-cell h3 { font-size: 18px; margin: 12px 0 6px; }
.globe-cell p { color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.cell-ic { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- متن راهنما ---------- */
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ol, .prose ul { padding-inline-start: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose b, .prose strong { color: var(--ink); }
.checklist { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; }
.checklist .ic { margin-top: 6px; }
.kinds { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds li { margin: 0 !important; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.mini-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini-cards div { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.mini-cards b { display: block; margin-bottom: 4px; }
.mini-cards p { font-size: 15px; }
.warn { margin: 18px 0; padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); color: var(--ink); }

/* ---------- سؤال‌ها ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; transition: transform 160ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 18px; color: var(--ink-2); }

/* ---------- پانویس ---------- */
.foot { margin-top: 32px; padding: 44px 0 28px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 40px; }
.foot-brand p { margin-top: 10px; color: var(--ink-3); font-size: 15px; max-width: 46ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: start; }
.foot nav a, .foot-contact a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot nav a:hover, .foot-contact a:hover { color: var(--accent); }
.foot-contact { grid-column: 1 / -1; font-size: 15px; color: var(--ink-3); }
.copy { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.support-links { color: var(--ink-3); }

/* ---------- گوشی و تبلت ---------- */
@media (max-width: 900px) {
  .hero-in, .split { grid-template-columns: 1fr; gap: 36px; }
  .uses, .mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu { display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; margin-inline-start: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
  .menu span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .top-cta { margin-inline-start: auto; }
  .menu { margin-inline-start: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 32px; } .hero-page { padding: 40px 0 8px; }
  .lead { font-size: 17px; }
  .steps, .uses, .mini-cards, .feature-rows { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(odd) { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
  .section { padding: 40px 0; }
  .band { flex-direction: column; align-items: stretch; text-align: center; padding: 28px 22px; }
  .foot-in { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .top-cta { padding: 0 12px; font-size: 13px; }
  .brand span { display: none; }
  .flow { padding: 18px; }
  .globe { height: 340px; }
  .globe-cells { grid-template-columns: 1fr; }
  .globe-cell { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 22px 4px; }
  .globe-cell:last-child { border-bottom: 0; }
  .compare th, .compare td { padding: 12px 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
