/* ==========================================================================
   Taskey — صفحه‌ی فرود
   نسخه‌ی شبانه/سینمایی. یک فایل، بدون build، بدون وابستگی.
   رنگ‌ها فقط در :root. تغییر ظاهر = فقط همین بلوک.
   ========================================================================== */

html, body { background: #07090c; }

/* ─────────────────────────── فونت ─────────────────────────── */

@font-face {
  font-family: "Vazirmatn";
  src: url("/site/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/site/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/site/fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/site/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/site/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/site/fonts/Vazirmatn-Black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ─────────────────────────── توکن‌ها ─────────────────────────── */

:root {
  color-scheme: dark;              /* زمینه‌ی شبانه؛ ثابت، بدون سوییچ خودکار */

  /* برند (هم‌خوان با Theme اپ) */
  --accent: #10b981;
  --accent-2: #34d399;
  --accent-deep: #059669;
  --accent-ink: #04120c;
  --accent-soft: rgb(16 185 129 / 0.13);
  --accent2: #f59e0b;
  --invoice: #ffc80a;

  /* وضعیت */
  --good: #16a34a;
  --bad: #e5484d;
  --warn: #f59e0b;
  --info: #3b82f6;
  --purple: #a855f7;
  --teal: #14b8a6;

  /* زمینه و سطح */
  --bg: #07090c;
  --bg-2: #0a0e13;
  --surface: #0b0f14;
  --surface2: #11161d;
  --surface3: #161d26;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --ink: #f3f7f4;
  --ink-soft: #d9e4de;
  --muted: #8e9ea8;
  --muted2: #b8c6bf;

  /* نگاشت معنایی مرحله‌ها */
  --stage-todo: var(--muted);
  --stage-doing: var(--info);
  --stage-review: var(--warn);
  --stage-delivered: var(--teal);
  --stage-paid: var(--good);

  /* شکل و تایپ */
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 11px;
  --font: "Vazirmatn", -apple-system, BlinkMacSystemFont, "SF Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", "Vazirmatn", sans-serif;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.5), 0 8px 24px -14px rgb(0 0 0 / 0.8);
  --shadow: 0 24px 60px -30px rgb(0 0 0 / 0.95), 0 2px 8px rgb(0 0 0 / 0.4);
  --glow: 0 0 0 1px rgb(16 185 129 / 0.16), 0 24px 70px -34px rgb(16 185 129 / 0.55);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-state: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────── پایه ─────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgb(16 185 129 / 0.10), transparent 62%),
    radial-gradient(900px 520px at 8% 4%, rgb(59 130 246 / 0.05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgb(16 185 129 / 0.32); color: #fff; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* لفاف صفحه */
.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.small { font-size: 13.5px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; font-family: var(--font-round); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─────────────────────────── سطوح ─────────────────────────── */

.glass {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.055), rgb(255 255 255 / 0.018));
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}

/* ─────────────────────────── دکمه‌ها ─────────────────────────── */

.btn {
  --btn-pad-y: 12px;
  --btn-pad-x: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s var(--ease-state), background-color 0.22s, border-color 0.22s, box-shadow 0.22s, color 0.22s;
}
.btn:active { transform: scale(0.97); }
.btn.lg { --btn-pad-y: 16px; --btn-pad-x: 30px; font-size: 15.5px; }
.btn.sm { --btn-pad-y: 10px; --btn-pad-x: 18px; font-size: 13.5px; }
.btn.block { width: 100%; }

.btn.primary {
  background: var(--ink);
  color: #07100c;
  box-shadow: 0 10px 30px -14px rgb(243 247 244 / 0.55);
}
.btn.primary:hover { background: #fff; box-shadow: 0 14px 36px -14px rgb(243 247 244 / 0.7); transform: translateY(-1px); }

.btn.ghost {
  color: var(--ink-soft);
  border-color: var(--line-2);
  background: rgb(255 255 255 / 0.03);
}
.btn.ghost:hover { background: rgb(255 255 255 / 0.07); border-color: rgb(255 255 255 / 0.26); transform: translateY(-1px); }

.btn .arw {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 999px;
  background: rgb(7 9 12 / 0.12);
  transition: transform 0.28s var(--ease-state);
}
.btn.primary:hover .arw { transform: translateX(-3px); }

/* ─────────────────────────── نوار بالا ─────────────────────────── */

.nav {
  position: fixed;
  inset-inline: 14px;
  top: 14px;
  z-index: 60;
  border-radius: 999px;
  padding: 8px 10px 8px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgb(9 12 16 / 0.62);
  border: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, top 0.3s;
}
.nav.scrolled {
  top: 8px;
  background: rgb(9 12 16 / 0.86);
  border-color: var(--line);
  box-shadow: 0 18px 40px -28px rgb(0 0 0 / 0.9);
}
.nav .inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16.5px;
  padding-inline-start: 6px;
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--accent-2), var(--accent-deep));
  color: #04120c;
  box-shadow: 0 8px 20px -10px rgb(16 185 129 / 0.9);
  flex: 0 0 34px;
}

.nav .links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav .links a {
  position: relative;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted2);
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav .links a:hover { color: var(--ink); background: rgb(255 255 255 / 0.06); }
.nav .spacer { flex: 1; }

/* ─────────────────────────── قهرمان ─────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: 118px 34px;
  overflow: hidden;
}

/* نور پس‌زمینه — فقط گرادیان CSS؛ هیچ فایل ویدیویی یا تصویری بار نمی‌شود */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.hero-aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.hero-aurora .a1 {
  width: 54vw; height: 54vw;
  left: -10vw; top: 12vh;
  background: radial-gradient(circle, rgb(16 185 129 / 0.38), rgb(16 185 129 / 0.10) 46%, transparent 72%);
  animation: drift1 34s ease-in-out infinite alternate;
}
.hero-aurora .a2 {
  width: 42vw; height: 42vw;
  left: 20vw; bottom: -10vh;
  background: radial-gradient(circle, rgb(20 184 166 / 0.24), transparent 70%);
  animation: drift2 44s ease-in-out infinite alternate;
}
.hero-aurora .a3 {
  width: 34vw; height: 34vw;
  left: 52vw; top: -6vh;
  background: radial-gradient(circle, rgb(59 130 246 / 0.18), transparent 72%);
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 3vh, 0) scale(1.12); }
}
@keyframes drift2 {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-5vw, -4vh, 0) scale(0.94); }
}
@keyframes drift3 {
  from { transform: translate3d(0, 0, 0) scale(0.96); }
  to   { transform: translate3d(3vw, 5vh, 0) scale(1.08); }
}
.hero-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 18% 46%, transparent 0%, rgb(7 9 12 / 0.35) 62%, rgb(7 9 12 / 0.7) 100%),
    linear-gradient(to top, var(--bg) 0%, rgb(7 9 12 / 0.5) 14%, transparent 44%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-copy { position: relative; z-index: 2; max-width: 40rem; will-change: opacity, transform; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted2);
  opacity: 0.86;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.035);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgb(52 211 153 / 0.14);
  animation: pulse 3.4s ease-in-out infinite;
}
.eyebrow.plain::before { display: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

h1 {
  margin-top: 22px;
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: normal;
  color: var(--ink);
  text-wrap: balance;
}
h1 .line { display: block; overflow: hidden; }
.js h1 .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.is-ready h1 .line > span { transform: none; }
h1 .line:nth-child(2) > span { transition-delay: 0.12s; }

h1 .hl {
  color: var(--accent-2);
  position: relative;
}

.lead {
  margin-top: 22px;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.1vw, 1.06rem);
  line-height: 1.8;
  color: var(--muted2);
  font-weight: 400;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--accent-2); flex: 0 0 auto; }

/* ── صحنه‌ی چپ: حلقه‌ی کار ── */

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 16px 0;
}
.stage-glow {
  position: absolute;
  width: min(84%, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(16 185 129 / 0.16), rgb(16 185 129 / 0.03) 48%, transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}
.ring {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
}
.ring.a {
  width: min(88%, 500px);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 0.09);
}
.ring.b {
  width: min(66%, 372px);
  aspect-ratio: 1;
  border: 1px dashed rgb(255 255 255 / 0.11);
}
.ring.spin {
  width: min(88%, 500px);
  aspect-ratio: 1;
  background: conic-gradient(from 0deg,
    transparent 0 52%,
    rgb(16 185 129 / 0.35) 74%,
    rgb(52 211 153 / 0.85) 87%,
    rgb(16 185 129 / 0.2) 94%,
    transparent 99%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.4px));
  animation: spin 28s linear infinite;
}
.ring.spin.rev {
  width: min(66%, 372px);
  animation-direction: reverse;
  animation-duration: 40s;
  opacity: 0.55;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ماکت گوشی: لایه‌ی جدا برای چرخش سه‌بعدی ملایم */
.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 0.485;
  transform-style: preserve-3d;
  will-change: transform;
  border-radius: 40px;
  padding: 9px;
  background: linear-gradient(165deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.03) 40%, rgb(255 255 255 / 0.08));
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.07),
    0 40px 90px -40px rgb(0 0 0 / 0.95),
    0 0 80px -30px rgb(16 185 129 / 0.35);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: linear-gradient(180deg, #0c1218 0%, #090e13 46%, #0a1015 100%);
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(255 255 255 / 0.06);
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 2px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  font-family: var(--font-round);
  font-variant-numeric: tabular-nums;
}
.statusbar .right { display: inline-flex; align-items: center; gap: 3px; }

.appui {
  padding: 4px 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 2px 2px;
}
.hdr .hello { text-align: right; line-height: 1.3; }
.hdr .hello .d { font-size: 7.5px; color: var(--muted); }
.hdr .hello .n { font-size: 12px; font-weight: 800; letter-spacing: normal; }
.hdr .bell, .hdr .gear {
  position: relative;
  width: 25px; height: 25px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.06);
  color: var(--muted2);
  border: 1px solid rgb(255 255 255 / 0.05);
  flex: 0 0 25px;
}
.hdr .bell .dot {
  position: absolute;
  top: -4px; inset-inline-start: -4px;
  min-width: 13px; height: 13px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 1.5px solid #0a0f14;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgb(16 185 129 / 0.16), rgb(16 185 129 / 0.05));
  border: 1px solid rgb(16 185 129 / 0.22);
}
.hero-card .ringwrap { position: relative; width: 44px; height: 44px; flex: 0 0 44px; }
.hero-card .pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  color: var(--accent-2);
  font-family: var(--font-round);
  font-variant-numeric: tabular-nums;
}
.hero-card .txt { min-width: 0; line-height: 1.35; }
.hero-card .k { font-size: 7px; color: var(--muted2); }
.hero-card .v { font-size: 11px; font-weight: 800; margin-top: 1px; }
.hero-card .s { font-size: 7px; color: var(--muted); margin-top: 1px; }

.card-w {
  padding: 9px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.035);
  border: 1px solid rgb(255 255 255 / 0.06);
}
.rowb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.3;
}
.rowb .t { font-size: 7.5px; font-weight: 700; color: var(--muted2); }
.rowb .c { font-size: 6.5px; color: var(--muted); }
.pills { display: flex; gap: 4px; margin-top: 6px; }
.pills span {
  font-size: 6.5px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid rgb(255 255 255 / 0.07);
}
.pills span.on {
  background: rgb(16 185 129 / 0.16);
  color: var(--accent-2);
  border-color: rgb(16 185 129 / 0.28);
  font-weight: 700;
}

.prow {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 7px;
  margin-top: 7px;
  border-top: 1px solid rgb(255 255 255 / 0.05);
}
.prow .flag {
  width: 15px; height: 15px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  flex: 0 0 15px;
}
.prow .body { flex: 1; min-width: 0; }
.prow .pt { font-size: 7.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .ps { font-size: 6px; color: var(--muted); margin-top: 1px; }
.prow .pbar {
  height: 2.5px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  margin-top: 4px;
  overflow: hidden;
}
.prow .pbar i { display: block; height: 100%; border-radius: 999px; }
.prow .end { text-align: left; line-height: 1.25; flex: 0 0 auto; }
.prow .pp { font-size: 8px; font-weight: 900; font-family: var(--font-round); font-variant-numeric: tabular-nums; }
.prow .pd { font-size: 6px; color: var(--muted); white-space: nowrap; }

.tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 7px 4px 9px;
  border-top: 1px solid rgb(255 255 255 / 0.06);
  background: rgb(255 255 255 / 0.02);
  font-size: 6.5px;
  color: var(--muted);
}
.tabbar div { display: grid; justify-items: center; gap: 2px; }
.tabbar .on { color: var(--accent-2); font-weight: 700; }

/* کارت‌های شناور دور گوشی */
.floatchip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  background: rgb(12 17 23 / 0.84);
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3;
  animation: bob 7s ease-in-out infinite;
}
.floatchip .ic {
  width: 22px; height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
}
.floatchip small { display: block; font-size: 9.5px; font-weight: 500; color: var(--muted); }
.floatchip.c1 { top: 12%; inset-inline-start: -4%; }
.floatchip.c2 { top: 44%; inset-inline-end: -8%; animation-delay: -2.4s; }
.floatchip.c3 { bottom: 13%; inset-inline-start: 2%; animation-delay: -4.6s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ── نوار آمار پایین قهرمان ── */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.stats-strip > div {
  padding-inline: 18px;
  border-inline-start: 1px solid var(--line);
}
.stats-strip > div:first-child { padding-inline-start: 0; border: 0; }
.stats-strip .num {
  font-family: var(--font);
  font-variant-numeric: proportional-nums;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stats-strip .lbl { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ─────────────────────────── بخش‌ها ─────────────────────────── */

section { padding-block: 96px; position: relative; }
section.surface {
  background: linear-gradient(180deg, var(--bg-2), rgb(10 14 19 / 0.6));
  border-block: 1px solid var(--line);
}

.sec-head { max-width: 640px; margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 18px; }

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: normal;
  text-wrap: balance;
}
.duo { display: block; }
.duo .b {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.82em;
  margin-top: 8px;
}
.sec-head .lead { margin: 16px auto 0; text-align: center; text-wrap: pretty; }
.card p, .person .quote, .steps p, .faq .a { text-wrap: pretty; }

/* ─────────── آدم‌ها ─────────── */

.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 44px;
}
.person {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.015));
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease-state), background-color 0.3s;
  overflow: hidden;
}
.person::before {
  content: "";
  position: absolute;
  inset-inline: 0; top: 0;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--tint, var(--accent)) 50%, transparent);
  opacity: 0.5;
}
.person:hover { transform: translateY(-3px); border-color: rgb(255 255 255 / 0.16); }
.person .who { display: flex; align-items: center; gap: 11px; }
.person .face {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--tint, var(--accent));
  background: var(--tint-bg, var(--accent-soft));
  border: 1px solid rgb(255 255 255 / 0.07);
}
.person .name { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.person .job { font-size: 11.5px; color: var(--muted); }
.person .quote {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--muted2);
}

/* ─────────── کارت‌ها ─────────── */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 0;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.055), rgb(255 255 255 / 0.018));
  border: 1px solid var(--line-2);
  transition: transform 0.35s var(--ease-state), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgb(255 255 255 / 0.16);
  box-shadow: 0 30px 60px -40px rgb(0 0 0 / 0.9);
}
.card .ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--tint, var(--accent));
  background: var(--tint-bg, var(--accent-soft));
  border: 1px solid rgb(255 255 255 / 0.06);
}
.card h3 {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.45;
}
.card p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--muted2);
}

/* ویژگی شاخص (bento) */
.card.lead-card {
  background:
    radial-gradient(520px 200px at 100% 0%, rgb(16 185 129 / 0.13), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / 0.055), rgb(255 255 255 / 0.015));
  border-color: rgb(16 185 129 / 0.2);
}
.card.lead-card h3 { font-size: 19px; }
.card .meta {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  flex-wrap: wrap;
}
.card .meta span {
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted2);
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.07);
}

/* ─────────── سه قدم ─────────── */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 44px;
  align-items: start;
}
.steps { display: grid; gap: 8px; }
.steps li {
  display: flex;
  gap: 15px;
  padding: 18px 18px 18px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.steps li:hover { background: rgb(255 255 255 / 0.03); border-color: var(--line); }
.steps .n {
  width: 32px; height: 32px;
  flex: 0 0 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-round);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  background: rgb(16 185 129 / 0.12);
  border: 1px solid rgb(16 185 129 / 0.22);
}
.steps h3 { font-size: 15px; font-weight: 800; line-height: 1.5; }
.steps p { margin-top: 5px; font-size: 13.5px; line-height: 1.75; color: var(--muted2); }

/* کارت نمونه‌ی مشتری */
.demo {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ─────────── مقایسه ─────────── */

.compare {
  margin-top: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.012));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare th, .compare td {
  padding: 15px 18px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
  padding-block: 18px;
  background: rgb(255 255 255 / 0.02);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody td:first-child { color: var(--ink-soft); font-weight: 500; }
.compare .col-us {
  background: rgb(16 185 129 / 0.07);
  color: var(--accent-2) !important;
  font-weight: 700;
  border-inline: 1px solid rgb(16 185 129 / 0.16);
}
.compare thead .col-us { color: var(--accent-2) !important; }
.compare .yes { font-weight: 900; text-align: center; }
.compare .no { color: var(--muted); text-align: center; font-size: 13px; }

/* ─────────── قیمت ─────────── */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 44px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.012));
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-state), border-color 0.35s;
}
.plan:hover { transform: translateY(-3px); border-color: rgb(255 255 255 / 0.16); }
.plan .name { font-size: 13px; font-weight: 700; color: var(--muted2); }
.plan .price {
  margin-top: 10px;
  font-family: var(--font-round);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
}
.plan .price small { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-inline-start: 5px; }
.plan ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  font-size: 13.5px;
  color: var(--muted2);
}
.plan li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.6; }
.plan .tick {
  flex: 0 0 auto;
  color: var(--accent-2);
  font-weight: 900;
  font-size: 12px;
  margin-top: 2px;
}
.plan .btn { margin-top: auto; }
.plan.featured {
  background:
    radial-gradient(420px 180px at 50% 0%, rgb(16 185 129 / 0.18), transparent 72%),
    linear-gradient(180deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.02));
  border-color: rgb(16 185 129 / 0.28);
  box-shadow: var(--glow);
}
.plan .badge {
  position: absolute;
  top: -11px;
  inset-inline-start: 24px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  color: #04120c;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
}

/* ─────────── سؤالات ─────────── */

.faq {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s;
}
.faq details[open] { background: rgb(255 255 255 / 0.022); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--muted2), var(--muted2)) center / 9px 1.5px no-repeat,
    linear-gradient(var(--muted2), var(--muted2)) center / 1.5px 9px no-repeat;
  transition: transform 0.3s var(--ease-state), background-color 0.3s, border-color 0.3s;
}
.faq details[open] summary::after {
  transform: rotate(90deg);
  border-color: rgb(16 185 129 / 0.4);
  background:
    linear-gradient(var(--accent-2), var(--accent-2)) center / 9px 1.5px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) center / 1.5px 9px no-repeat;
}
.faq summary:hover { color: var(--ink); }
.faq .a {
  padding: 0 6px 22px;
  font-size: 13.8px;
  line-height: 1.85;
  color: var(--muted2);
  max-width: 46rem;
}

/* ─────────── فراخوان پایانی ─────────── */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(38px, 6vw, 76px) clamp(20px, 5vw, 64px);
  border-radius: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  background:
    radial-gradient(620px 260px at 50% 0%, rgb(16 185 129 / 0.18), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.012));
}
.final::before {
  content: "";
  position: absolute;
  inset-inline: 0; top: 0;
  height: 1px;
  background: linear-gradient(to left, transparent, rgb(52 211 153 / 0.7), transparent);
}
.final h2 { font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 900; line-height: 1.26; }
.final p {
  margin: 16px auto 0;
  max-width: 34rem;
  color: var(--muted2);
  font-size: 15px;
  line-height: 1.8;
}
.final .actions { justify-content: center; margin-top: 28px; }

/* ─────────── پاورقی ─────────── */

footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
  background: var(--bg-2);
}
footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}
footer .brand { font-size: 15px; padding: 0; }
footer .brand .mark { width: 30px; height: 30px; border-radius: 10px; flex: 0 0 30px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
footer .links a { transition: color 0.2s; }
footer .links a:hover { color: var(--ink); }
footer .tiny { color: var(--muted); }

/* ─────────── انیمیشن ورود با اسکرول ─────────── */

/* فقط وقتی JS هست پنهان می‌شود؛ با JS خاموش، همه‌چیز خوانا می‌ماند */
.reveal {
  --d: 0ms;                                  /* تأخیر پله‌ای، از JS */
  transition:
    opacity 0.75s var(--ease-out) var(--d),
    transform 0.85s var(--ease-out) var(--d),
    clip-path 0.9s var(--ease-out) var(--d);
  will-change: opacity, transform;
}
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
}
.reveal[data-reveal="fade"] { transform: none; }
.reveal[data-reveal="side"] { transform: translate3d(28px, 10px, 0); }
.reveal[data-reveal="scale"] { transform: scale(0.955) translate3d(0, 16px, 0); }
.reveal[data-reveal="wipe"] {
  transform: none;
  clip-path: inset(0 0 100% 0);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.in[data-reveal="wipe"] { clip-path: inset(0 -2% -2% -2%); }

/* تیتر بخش‌ها: از پایین پرده‌برداری می‌شود */
.reveal.in h2 {
  animation: titleWipe 0.95s var(--ease-out) both;
}
@keyframes titleWipe {
  from { clip-path: inset(0 0 88% 0); transform: translate3d(0, 16px, 0); }
  to   { clip-path: inset(0 -3% -8% -3%); transform: none; }
}

/* فرزندان یک گروه، پله‌ای بالا می‌آیند */
.cards > .reveal,
.people > .reveal,
.plans > .reveal,
.faq > details {
  transition-delay: var(--d, 0ms);
}

/* ردیف‌های جدول مقایسه بعد از باز شدن قاب */
.compare.in tbody tr {
  animation: rowIn 0.6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}
@keyframes rowIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

/* سه قدم: با ورود، هر قدم روشن می‌شود و شماره‌اش سبز می‌ماند */
.js .steps li {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.in .steps li { opacity: 1; transform: none; }
.in .steps li:nth-child(1) { transition-delay: 60ms; }
.in .steps li:nth-child(2) { transition-delay: 200ms; }
.in .steps li:nth-child(3) { transition-delay: 340ms; }

/* نوار مانده‌ی طلب: با اسکرول از راست پر می‌شود */
.fill { transform-origin: right center; }
.js .fill { transform: scaleX(0); transition: transform 1.1s var(--ease-out) 220ms; }
.in .demo .fill { transform: scaleX(1); }

/* نوار پیشرفت مطالعه */
.progress {
  position: fixed;
  top: 0; inset-inline: 0;
  height: 2px;
  z-index: 70;
  transform: scaleX(0);
  transform-origin: right center;
  background: linear-gradient(to left, var(--accent-2), var(--accent) 45%, transparent);
  pointer-events: none;
  will-change: transform;
}

/* زیرخط لینک‌های نوار بالا، از سمت راست رشد می‌کند */
.nav .links a::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 4px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s var(--ease-state);
}
.nav .links a:hover::after { transform: scaleX(0.72); }

/* باز شدن نرم پاسخ‌ها */
.faq details[open] .a { animation: faqIn 0.42s var(--ease-out) both; }
@keyframes faqIn {
  from { opacity: 0; transform: translate3d(0, -6px, 0); }
  to   { opacity: 1; transform: none; }
}

/* آماره‌ها با اسکرول شمارش می‌شوند */
.stats-strip .num { font-variant-numeric: tabular-nums; }

/* میکروحرکت‌های هاور */
.person:hover .face { transform: translateY(-2px) rotate(-3deg); }
.person .face { transition: transform 0.35s var(--ease-out); }
.plan:hover .price { transform: translateY(-1px); }
.plan .price { transition: transform 0.35s var(--ease-out); }

/* نویز — یک‌پارچه‌سازی ویدیو با UI */
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ═══════════════════════════ نقاط شکست ═══════════════════════════ */

@media (min-width: 640px) {
  .wrap { padding-inline: 28px; }
  .people { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  section { padding-block: 108px; }
  .stats-strip > div { padding-inline: 26px; }
}

@media (min-width: 900px) {
  .wrap { padding-inline: 40px; }
  .split { grid-template-columns: 1fr 1fr; gap: 44px; }
  section { padding-block: 124px; }
  .nav { inset-inline: 24px; top: 18px; }
  footer .inner, .nav .inner { padding-inline: 8px; }
}

/* سه پلن از این عرض به بعد کنار هم می‌نشینند */
@media (min-width: 760px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  /* `translate` جدا از `transform` است تا انیمیشن ورود، برجستگی کارت را پاک نکند */
  .plan.featured { translate: 0 -8px; }
  .plan.featured:hover { translate: 0 -11px; }
}

@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* شخصیت‌ها: عمداً تا ۱۲۰۰ دو ستون می‌مانند تا نقل‌قول‌ها خوانا بمانند */
@media (min-width: 1200px) {
  .people { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  body { font-size: 16.5px; }
  .hero-grid { gap: 64px; }
}

/* ─────────── تبلت/موبایل: چیدمان «جریان» قهرمان ─────────── */

@media (max-width: 1023px) {
  .hero { min-height: 0; padding-block: 116px 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: none; }
  .stage { min-height: 470px; order: 2; }
  .stats-strip { margin-top: 34px; }
  /* نور پس‌زمینه در موبایل کوچک‌تر و کم‌رنگ‌تر */
  .hero-aurora .a1 { width: 80vw; height: 80vw; left: -24vw; top: 2vh; }
  .hero-aurora .a2 { width: 64vw; height: 64vw; left: 40vw; bottom: -4vh; }
  .hero-aurora .a3 { display: none; }
  .hero-aurora::after {
    background:
      radial-gradient(120% 66% at 50% 26%, transparent 0%, rgb(7 9 12 / 0.62) 46%, rgb(7 9 12 / 0.94) 88%),
      linear-gradient(to top, var(--bg) 2%, transparent 44%);
  }
  /* در چیدمان جریان، کارت‌های شناور باید داخل کادر بمانند */
  .floatchip.c1 { top: 3%; inset-inline-start: 0; }
  .floatchip.c2 { top: 45%; inset-inline-end: 0; }
  .floatchip.c3 { bottom: 4%; inset-inline-start: 6%; }
  /* ورود از پهلو فقط در دسکتاپ؛ در موبایل از پایین می‌آید تا از کادر نزند */
  .reveal[data-reveal="side"] { transform: translate3d(0, 22px, 0); }
}

@media (max-width: 899px) {
  .nav .links { display: none; }
  .nav { padding: 7px 8px; }
  .nav .inner { gap: 8px; }
}

@media (max-width: 639px) {
  section { padding-block: 74px; }
  .nav { inset-inline: 10px; top: 10px; border-radius: 20px; }
  .brand { font-size: 15.5px; }
  .brand .mark { width: 31px; height: 31px; flex: 0 0 31px; }
  h1 { font-size: clamp(1.95rem, 8.9vw, 2.5rem); line-height: 1.26; }
  .lead { font-size: 14.5px; line-height: 1.85; }
  .actions { gap: 10px; }
  .actions .btn { width: 100%; }
  .trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    font-size: 12px;
    margin-top: 22px;
    padding-top: 18px;
  }
  .stage { min-height: 430px; }
  .phone { width: min(238px, 66vw); }
  .floatchip { font-size: 10.5px; padding: 8px 10px; }
  .floatchip.c1 { inset-inline-start: 0; top: 4%; }
  .floatchip.c2 { inset-inline-end: 0; top: 46%; }
  .floatchip.c3 { display: none; }
  .stats-strip { gap: 14px; }
  .stats-strip > div { padding-inline: 12px; }
  .stats-strip > div:first-child { padding-inline-start: 0; }
  .stats-strip .num { font-size: 1.2rem; }
  .stats-strip .lbl { font-size: 10.5px; }
  .card, .person { padding: 20px; }
  .final { padding: 34px 20px; }
  .final .actions .btn { width: 100%; }
  footer .inner { justify-content: center; text-align: center; gap: 12px; }
  footer .links { justify-content: center; }
}

/* لپ‌تاپ‌های کوتاه: قهرمان نباید ببرد */
@media (max-height: 850px) and (min-width: 1024px) {
  .hero { min-height: 0; padding-block: 104px 28px; }
  .stage { min-height: 440px; }
  .phone { width: min(248px, 56vw); }
  h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
  .lead { margin-top: 16px; font-size: 15px; line-height: 1.75; }
  .actions { margin-top: 22px; }
  .trust { margin-top: 18px; padding-top: 16px; }
  .stats-strip { margin-top: 24px; padding-top: 18px; }
}

/* ─────────── دسترس‌پذیری: حرکت کمتر ─────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  h1 .line > span { transform: none; }
  .hero-aurora span { animation: none; }
  .ring.spin { animation: none; opacity: 0.5; }
  .floatchip { animation: none; }
}

/* ─────────── چاپ ─────────── */

@media print {
  html, body { background: #fff !important; color: #111 !important; }
  .nav, .hero-aurora, .stage, .grain, .floatchip, .actions, footer .links, .progress { display: none !important; }
  section { padding-block: 20px; break-inside: avoid; }
  .card, .person, .plan, .compare, .final {
    background: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="/app"] { color: #111 !important; }
}
