/* ════════════════════════════════════════════════════════════════
   مسترکارکت — سایت معرفی
   ایده: کلِ صفحه یک روزِ کاری است. هر بخش ساعتِ خودش را دارد (data-time)
   و آسمانِ پشتِ صفحه (data-sky) از صبح به شب و دوباره به سپیده می‌رسد.
   ════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn.woff2?v=f16d6f9df8') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* رنگ‌های آسمان قابلِ انیمیشن‌اند */
@property --sky-a { syntax: '<color>'; inherits: true; initial-value: #fdf1e6; }
@property --sky-b { syntax: '<color>'; inherits: true; initial-value: #eaf4ff; }
@property --sky-c { syntax: '<color>'; inherits: true; initial-value: #f7fbff; }
@property --sun   { syntax: '<color>'; inherits: true; initial-value: #ffd9a8; }
@property --night { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --ink: #03173D;
  --ink-2: #1f3358;
  --muted: #586887;
  --line: rgba(3, 23, 61, .10);
  --card: rgba(255, 255, 255, .72);
  --card-solid: #ffffff;
  --card-brd: rgba(255, 255, 255, .9);
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 24px 60px -24px rgba(3, 23, 61, .28), 0 8px 18px -10px rgba(3, 23, 61, .16);

  --blue: #0194F9;
  --sky: #1BBFFD;
  --aqua: #33D7FD;
  --teal: #04BFA6;
  --green: #0ECD9E;
  --mint: #44E6A0;
  --amber: #f59e0b;
  --rose: #e11d48;
  --brand: linear-gradient(100deg, #0ECD9E 0%, #1BBFFD 48%, #0194F9 100%);
  --brand-v: linear-gradient(180deg, #1BBFFD, #0ECD9E);

  --r: 22px;
  --r-sm: 14px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Vazirmatn', 'IRANYekan', Tahoma, sans-serif;
  font-feature-settings: 'ss01';
  color: var(--ink);
  background: #f7fbff;
  line-height: 1.85;
  font-size: 16.5px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(27, 191, 253, .3); }
:focus-visible { outline: 2.5px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
kbd {
  font-family: inherit; font-size: .72em; font-weight: 700; direction: ltr;
  padding: .12em .5em; border-radius: 6px; border: 1px solid var(--line);
  background: rgba(255,255,255,.5); color: var(--muted); white-space: nowrap;
}
b, strong { font-weight: 800; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap.narrow { --wrap: 820px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }

/* ───────── متن ───────── */
.grad {
  background: var(--brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* حروفِ فارسی (نقطه‌ها، «ی») از جعبه بیرون می‌زنند؛ فضا بدهید تا بریده نشوند */
  padding-block: .08em .18em; margin-block: -.08em -.18em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
[data-tone=dark] .grad { background-image: linear-gradient(100deg, #44E6A0, #33D7FD 50%, #59b6ff); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .86rem; font-weight: 700; color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--brand); }
[data-tone=dark] .eyebrow { color: var(--aqua); }
.h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.25; font-weight: 900; margin: 0 0 1.1rem;
  text-wrap: balance;
}
.h2.big { font-size: clamp(2.2rem, 4.4vw, 4rem); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); margin: 0 0 1.4rem; max-width: 60ch; text-wrap: pretty; }
.lead b { color: var(--ink); }
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center { text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-inline-start: 1.9rem; color: var(--ink-2); }
.ticks li::before {
  content: '\F26E'; font-family: bootstrap-icons; position: absolute; inset-inline-start: 0; top: .05em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: .95rem;
  color: #fff; background: var(--brand-v);
}
[data-tone=dark] .ticks li { color: var(--ink); }

/* ───────── دکمه‌ها ───────── */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 46px; padding: 0 1.25rem; border-radius: 999px; border: 0;
  font-weight: 800; font-size: .96rem; white-space: nowrap;
  background: var(--bg); position: relative; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.btn-lg { height: 56px; padding: 0 1.6rem; font-size: 1.04rem; }
.btn-primary {
  color: #fff; background: var(--brand);
  box-shadow: 0 14px 30px -12px rgba(1, 148, 249, .65), 0 1px 0 rgba(255,255,255,.35) inset;
  overflow: hidden;
}
.btn-primary::after { /* درخششِ روی دکمه */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .9s var(--ease);
}
.btn-primary:hover::after { transform: translateX(-120%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(1, 148, 249, .75); }
.btn-primary i { transition: transform .4s var(--ease); }
.btn-primary:hover i.bi-arrow-left { transform: translateX(-4px); }
.btn-ghost {
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost kbd { background: transparent; }

.pill {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .38rem .5rem .38rem 1rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-brd);
  box-shadow: 0 6px 18px -10px rgba(3,23,61,.25);
  font-size: .86rem; color: var(--ink-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .3s var(--ease);
}
.pill:hover { transform: translateY(-1px); }
.pill i { color: var(--blue); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(14,205,158,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(14,205,158,0); } 100% { box-shadow: 0 0 0 0 rgba(14,205,158,0); } }

/* ═════════ آسمان ═════════ */
/* رنگ‌های آسمان فقط روی همین عنصر عوض می‌شوند؛ روی :root، گذارِ متغیرهای ارث‌بر هر فریم سبکِ همه‌ی صفحه را دوباره حساب می‌کرد */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  transition: --sky-a 1.6s var(--ease-io), --sky-b 1.6s var(--ease-io), --sky-c 1.6s var(--ease-io),
              --sun 1.6s var(--ease-io), --night 1.6s var(--ease-io);
  background:
    radial-gradient(120% 70% at 50% 120%, color-mix(in oklab, var(--sun) 55%, transparent), transparent 60%),
    linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 52%, var(--sky-c) 100%);
}
.sky-stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--night); }
.sky-orb {
  position: absolute; width: 46vmin; height: 46vmin; left: 0; top: 0;
  transform: translate3d(var(--ox, 70vw), var(--oy, 10vh), 0) translate(-50%, -50%);
  will-change: transform;
}
.sky-orb span { position: absolute; inset: 0; border-radius: 50%; transition: opacity 1.6s var(--ease-io); }
.sky-orb .sun {
  background: radial-gradient(circle, color-mix(in oklab, var(--sun) 90%, white) 0 9%, color-mix(in oklab, var(--sun) 55%, transparent) 22%, transparent 62%);
  opacity: calc(1 - var(--night));
  filter: blur(6px);
}
.sky-orb .moon {
  inset: 42%;
  background: radial-gradient(circle at 36% 36%, #fbfdff, #d5e3ff 55%, #9fb6e6);
  box-shadow: 0 0 50px 14px rgba(170, 200, 255, .2), 0 0 140px 50px rgba(120, 160, 255, .1);
  opacity: calc(var(--night) * .85);
}
.sky-haze {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 85% 15%, rgba(27,191,253,.20), transparent 70%),
    radial-gradient(35% 30% at 10% 55%, rgba(14,205,158,.16), transparent 70%),
    radial-gradient(30% 30% at 60% 95%, rgba(1,148,249,.12), transparent 70%);
  animation: haze 28s ease-in-out infinite alternate;
  opacity: calc(1 - var(--night) * .4);
}
@keyframes haze { to { transform: translate3d(-4%, 3%, 0) rotate(6deg) scale(1.06); } }
.sky-grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═════════ پیش‌نمایش ═════════ */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: #f7fbff;
  transition: clip-path 1.1s var(--ease-io), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.loader-mark { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.loader-mark img { width: 58px; animation: loaderIn 1s var(--ease) both; }
.loader-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.loader-ring circle { fill: none; stroke: url(#lg-ring); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ring 1.2s .1s var(--ease-io) forwards; }
.loader-word { height: 40px; width: auto; animation: loaderIn 1s .25s var(--ease) both; }
@keyframes loaderIn { from { opacity: 0; transform: translateY(14px) scale(.92); filter: blur(8px); } }
@keyframes ring { to { stroke-dashoffset: 0; } }
body:not(.is-loading) .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }

/* ═════════ نوار بالا ═════════ */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1240px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 10px 30px -14px rgba(3, 23, 61, .25);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .8s, border-color .8s, color .8s, transform .6s var(--ease), top .6s var(--ease);
}
body.night-ui .nav { background: rgba(6, 18, 48, .55); border-color: rgba(255,255,255,.1); color: #eaf3ff; }
body.night-ui .nav kbd { color: #a9b8d6; border-color: rgba(255,255,255,.15); }
.nav.hide { transform: translate(-50%, -130%); }
.nav-brand { display: flex; align-items: center; gap: 6px; padding-inline: 8px 4px; }
.nav-brand .nb-mark { width: 34px; height: 34px; flex: none; }
.nav-brand .nb-word { height: 25px; width: auto; flex: none; max-width: none; }
.nav-brand .nb-dark { display: none; }
body.night-ui .nav-brand .nb-dark { display: block; }
body.night-ui .nav-brand img:not(.nb-dark) { display: none; }
.nav-links { display: flex; gap: 2px; margin-inline-start: 6px; }
.nav-links > a, .dd-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 13px; border-radius: 999px; font-size: .92rem; font-weight: 700;
  border: 0; background: transparent; opacity: .82; transition: background .3s, opacity .3s; }
.nav-links > a:hover, .nav-links > a.on, .dd-btn:hover, .dd-btn.on, .dd.open .dd-btn { opacity: 1; background: rgba(1, 148, 249, .1); }
body.night-ui .nav-links > a:hover, body.night-ui .nav-links > a.on, body.night-ui .dd-btn:hover, body.night-ui .dd.open .dd-btn { background: rgba(255,255,255,.1); }
.nav-search {
  margin-inline-start: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 8px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.4); font-size: .86rem; color: inherit; opacity: .9;
}
body.night-ui .nav-search { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.nav-search span { opacity: .75; }
.nav-clock {
  display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px;
  font-variant-numeric: tabular-nums; font-size: .9rem; border: 1px solid var(--line);
}
body.night-ui .nav-clock { border-color: rgba(255,255,255,.14); }
.nav-clock i { color: #f5a623; transition: color .6s; }
body.night-ui .nav-clock i { color: #cfe0ff; }
.nav-cta { height: 40px; font-size: .9rem; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; position: relative; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease); }
.nav-burger span:first-child { top: 16px; } .nav-burger span:last-child { top: 24px; }
.nav.open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ═════════ قهرمان ═════════ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 120px var(--gutter) 80px; max-width: 1380px; margin-inline: auto;
}
.hero-pill { margin-bottom: 1.6rem; }
.hero-title { font-size: clamp(2.1rem, 4.1vw, 4.3rem); line-height: 1.25; font-weight: 900; margin: 0 0 1.4rem; }
.hero-title .line { display: block; overflow: hidden; padding-block: .06em .16em; margin-block: -.06em -.16em; white-space: nowrap; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
body.ready .hero-title .line > span { transform: none; }
.hero-lead { font-size: clamp(1.04rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 54ch; margin: 0 0 2rem; }
.hero-lead b { color: var(--ink); }
.hero-lead em { font-style: normal; font-weight: 800; color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.4rem; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-facts li { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: .9rem; }
.hero-facts b { font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-copy > * { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
body.ready .hero-copy > * { opacity: 1; transform: none; }
body.ready .hero-copy > :nth-child(1) { transition-delay: .05s; }
body.ready .hero-copy > :nth-child(3) { transition-delay: .35s; }
body.ready .hero-copy > :nth-child(4) { transition-delay: .5s; }
body.ready .hero-copy > :nth-child(5) { transition-delay: .65s; }
.hero-title { opacity: 1 !important; transform: none !important; }

.hero-stage { position: relative; height: min(620px, 72vh); perspective: 1600px; }
.hero-glow {
  position: absolute; inset: 8% 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(27,191,253,.45), rgba(14,205,158,.22) 55%, transparent);
  filter: blur(40px); animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.hero-s {
  position: absolute; width: 46%; left: 50%; top: 48%;
  transform: translate(-50%, -50%) rotate(-8deg); opacity: .16; filter: blur(1px) saturate(1.3);
  animation: floatS 12s ease-in-out infinite;
}
@keyframes floatS { 50% { transform: translate(-50%, -54%) rotate(-3deg); } }
.orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(1,148,249,.22); transform: translate(-50%, -50%) rotateX(68deg); }
.orbit.o1 { width: 104%; aspect-ratio: 1; animation: spin 60s linear infinite; }
.orbit.o2 { width: 78%; aspect-ratio: 1; border-style: solid; border-color: rgba(14,205,158,.18); animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotateX(68deg) rotate(360deg); } }

.app {
  position: absolute; left: 50%; top: 50%; width: min(600px, 96%);
  transform: translate(-50%, -50%) rotateY(var(--ry, 12deg)) rotateX(var(--rx, 6deg)) rotateZ(-1deg);
  transform-style: preserve-3d;
  border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 50px 100px -30px rgba(3, 23, 61, .45), 0 18px 36px -18px rgba(3, 23, 61, .3), 0 0 0 1px rgba(3,23,61,.04);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; transition: opacity 1.2s .3s var(--ease), transform .8s var(--ease);
}
body.ready .app { opacity: 1; }
.app-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: rgba(3,23,61,.035); border-bottom: 1px solid var(--line); direction: ltr; }
.app-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.app-bar > i:nth-child(2) { background: #febc2e; } .app-bar > i:nth-child(3) { background: #28c840; }
.app-url { margin: 0 auto; font-size: .72rem; color: var(--muted); background: rgba(255,255,255,.8); padding: 2px 14px; border-radius: 999px; direction: rtl; }
.app-url i { font-size: .62rem; color: var(--green); }
.app-body { display: grid; grid-template-columns: 138px 1fr; min-height: 360px; }
.app-side { background: linear-gradient(180deg, #06204f, #03173D); padding: 10px 8px; display: grid; align-content: start; gap: 3px; }
.app-side .si { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 8px; font-size: .68rem; color: rgba(234,243,255,.72); white-space: nowrap; overflow: hidden; }
.app-side .si i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; font-size: .62rem; color: #fff; background: var(--c); flex: none; }
.app-side .si.on { background: rgba(255,255,255,.1); color: #fff; }
.app-side .si.head { color: #fff; font-weight: 800; font-size: .76rem; padding-block: 6px 10px; }
.app-side .si.head img { width: 18px; }
.app-main { padding: 14px; display: grid; gap: 12px; align-content: start; }
.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-head small { display: block; color: var(--muted); font-size: .66rem; line-height: 1.4; }
.app-head b { font-size: .96rem; }
.app-chip { font-size: .66rem; padding: 3px 10px; border-radius: 999px; background: rgba(14,205,158,.12); color: #047a63; font-weight: 700; }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { padding: 9px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; gap: 1px; }
.kpi small { font-size: .62rem; color: var(--muted); }
.kpi b { font-size: .92rem; font-variant-numeric: tabular-nums; line-height: 1.5; white-space: nowrap; }
.kpi span { font-size: .6rem; color: var(--muted); }
.kpi .up { color: #059669; font-weight: 700; }
.kpi.ok b { color: #059669; }
.app-chart { position: relative; height: 110px; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.app-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.app-chart .area { opacity: 0; transition: opacity 1s 1.6s; }
body.ready .app-chart .line { animation: draw 2.2s .8s var(--ease-io) forwards; }
body.ready .app-chart .area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bars { position: absolute; inset: auto 10px 0; height: 70%; display: flex; align-items: flex-end; gap: 8%; padding-inline: 4%; opacity: .25; }
.bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 4px 4px 0 0; background: var(--brand-v); transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s var(--ease); }
body.ready .bars i { transform: none; }
.bars i:nth-child(2) { transition-delay: .1s; } .bars i:nth-child(3) { transition-delay: .2s; } .bars i:nth-child(4) { transition-delay: .3s; }
.bars i:nth-child(5) { transition-delay: .4s; } .bars i:nth-child(6) { transition-delay: .5s; } .bars i:nth-child(7) { transition-delay: .6s; }
.app-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; height: 112px; overflow: hidden; }
.app-feed li {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .68rem;
  animation: feedIn .7s var(--ease) both;
}
.app-feed li i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: var(--c); font-size: .7rem; }
.app-feed li small { color: var(--muted); font-size: .6rem; display: block; line-height: 1.3; }
.app-feed li em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }

.toast-zone { position: absolute; inset: 0; pointer-events: none; }
.toast {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 16px; border-radius: 16px; max-width: 300px;
  background: rgba(255,255,255,.92); border: 1px solid #fff;
  box-shadow: 0 24px 48px -20px rgba(3,23,61,.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: .84rem; line-height: 1.5;
  animation: toastIn .9s var(--ease) both, toastOut .6s var(--ease) 4.6s forwards;
}
.toast i { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--c, var(--blue)); font-size: 1rem; }
.toast small { display: block; color: var(--muted); font-size: .72rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(24px) scale(.9); filter: blur(6px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-16px) scale(.96); filter: blur(4px); } }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(3,23,61,.25); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ═════════ نوارِ بخش‌ها ═════════ */
.ticker { padding: 18px 0 40px; display: grid; gap: 12px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); overflow: hidden; }
.ticker-row { display: flex; gap: 12px; width: max-content; animation: tick var(--dur, 80s) linear infinite; }
.ticker-row[data-dir="-1"] { animation-direction: reverse; }
.ticker:hover .ticker-row { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(50%); } }
.chip-m {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-brd); white-space: nowrap; font-size: .9rem; font-weight: 600;
  box-shadow: 0 6px 16px -12px rgba(3,23,61,.3);
}
.chip-m i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); font-size: .8rem; }

/* ═════════ بیانیه ═════════ */
.manifesto { padding: clamp(80px, 16vh, 180px) var(--gutter); }
.manifesto-text {
  max-width: 1100px; margin: 0 auto; text-align: center;
  font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.75; font-weight: 800; text-wrap: balance;
}
.manifesto-text .w { opacity: .14; transition: opacity .5s, color .5s; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text .w.hl.on { color: var(--blue); }

/* ═════════ یک روز ═════════ */
.day { position: relative; height: calc(var(--scenes, 6) * 100vh); }
.day-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.day-head {
  position: absolute; z-index: 3; top: 92px; inset-inline: var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  max-width: 1300px; margin-inline: auto;
}
.day-head .eyebrow { margin: 0; }
.day-clock { display: flex; align-items: baseline; gap: 12px; justify-self: end; grid-column: 3; }
.day-clock b { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.day-clock span { color: var(--muted); font-size: .92rem; }
.day-progress { grid-column: 2; grid-row: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.day-progress i { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: right; transform: scaleX(var(--p, 0)); }
.day-track { display: flex; height: 100%; width: calc(var(--scenes, 6) * 100vw); will-change: transform; }
.scene {
  flex: none; width: 100vw; height: 100%;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 80px);
  padding: 150px max(var(--gutter), calc((100vw - 1300px) / 2)) 60px;
}
.scene-time { display: inline-block; font-size: .95rem; font-weight: 800; color: var(--blue); padding: 4px 12px; border-radius: 999px; background: rgba(1,148,249,.09); margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.scene h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.28; font-weight: 900; margin: 0 0 1rem; text-wrap: balance; }
.scene p { color: var(--muted); font-size: 1.06rem; margin: 0 0 1.4rem; max-width: 52ch; }
.scene-copy > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.play .scene-copy > * { opacity: 1; transform: none; }
.play .scene-copy > :nth-child(2) { transition-delay: .08s; }
.play .scene-copy > :nth-child(3) { transition-delay: .16s; }
.play .scene-copy > :nth-child(4) { transition-delay: .24s; }
.scene-art { position: relative; height: min(520px, 62vh); display: grid; place-items: center; }

/* ویزیت */
.route { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; }
.route path { fill: none; stroke: var(--sky); stroke-width: 2.5; stroke-dasharray: .012 .012; stroke-linecap: round; opacity: .7; }
.route circle { fill: #fff; stroke: var(--blue); stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease); }
.play .route circle { transform: scale(1); }
.play .route circle:nth-of-type(2) { transition-delay: .2s; } .play .route circle:nth-of-type(3) { transition-delay: .4s; } .play .route circle:nth-of-type(4) { transition-delay: .6s; }
.phone {
  position: relative; width: 270px; height: 520px; max-height: 100%; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #0b2a5e, #03173D); box-shadow: 0 50px 90px -30px rgba(3,23,61,.6), inset 0 0 0 2px rgba(255,255,255,.08);
  transform: rotate(-4deg) translateY(30px); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.play .phone { transform: rotate(-4deg); opacity: 1; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 90px; height: 22px; margin-left: -45px; border-radius: 12px; background: #000; z-index: 2; }
.phone-screen { height: 100%; border-radius: 32px; background: #f4f8fd; overflow: hidden; display: flex; flex-direction: column; padding: 50px 12px 12px; gap: 10px; }
.ph-head { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: linear-gradient(120deg, #db2777, #f472b6); color: #fff; }
.ph-head > i { font-size: 1.3rem; }
.ph-head b { display: block; font-size: .9rem; line-height: 1.4; }
.ph-head small { font-size: .7rem; opacity: .85; }
.ph-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ph-items li { display: grid; grid-template-columns: 30px 1fr 28px; gap: 8px; align-items: center; position: relative; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px -8px rgba(3,23,61,.3); }
.ph-items .sw { width: 30px; height: 30px; border-radius: 10px; background: var(--c); opacity: .9; }
.ph-items b { font-size: .76rem; display: block; line-height: 1.5; }
.ph-items small { font-size: .64rem; color: var(--muted); }
.ph-items button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-weight: 900; line-height: 1; padding: 0; }
.ph-items li.tap button { animation: tap .5s var(--ease); }
@keyframes tap { 50% { transform: scale(.8); box-shadow: 0 0 0 8px rgba(27,191,253,.25); } }
.ph-items em { position: absolute; top: -6px; left: -6px; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; background: var(--ink); color: #fff; font-style: normal; font-size: .68rem; display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--ease); }
.ph-items li.has em { transform: scale(1); }
.ph-basket { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; font-size: .78rem; }
.ph-basket .basket-sum { margin-inline-start: auto; font-variant-numeric: tabular-nums; }

/* فاکتور */
.invoice {
  position: relative; width: min(440px, 100%); padding: 24px; border-radius: 20px; background: #fff;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transform: perspective(1200px) rotateX(10deg) translateY(30px); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.play .invoice { transform: perspective(1200px) rotateX(0); opacity: 1; }
.inv-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px dashed var(--line); }
.inv-h small { color: var(--muted); display: block; font-size: .78rem; line-height: 1.3; }
.inv-h b { font-size: 1.2rem; }
.inv-h img { width: 34px; }
.inv-to { display: grid; grid-template-columns: auto 1fr auto auto; gap: 4px 10px; font-size: .82rem; padding: 12px 0; }
.inv-to span { color: var(--muted); }
.inv-t { width: 100%; border-collapse: collapse; font-size: .82rem; }
.inv-t th { text-align: start; color: var(--muted); font-weight: 600; font-size: .74rem; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.inv-t td { padding: 9px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.inv-t th:last-child, .inv-t td:last-child { text-align: end; }
.inv-t tbody tr { opacity: 0; transform: translateX(-20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.play .inv-t tbody tr { opacity: 1; transform: none; }
.play .inv-t tbody tr:nth-child(1) { transition-delay: .5s; } .play .inv-t tbody tr:nth-child(2) { transition-delay: .8s; } .play .inv-t tbody tr:nth-child(3) { transition-delay: 1.1s; }
.inv-sum { display: grid; gap: 4px; padding-top: 12px; font-size: .84rem; }
.inv-sum div { display: flex; justify-content: space-between; }
.inv-sum span { color: var(--muted); }
.inv-sum .tot { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(100deg, rgba(14,205,158,.12), rgba(1,148,249,.12)); font-size: 1rem; }
.inv-sum .tot span { color: var(--ink); font-weight: 700; }
.inv-sum .tot b { font-variant-numeric: tabular-nums; }
.stamp {
  position: absolute; left: -26px; bottom: -24px; padding: 6px 16px; border: 3px solid #059669; border-radius: 12px; color: #059669;
  font-weight: 900; font-size: 1.3rem; text-align: center; line-height: 1.3; transform: rotate(-12deg) scale(2.2); opacity: 0;
  transition: transform .45s cubic-bezier(.5, 1.8, .5, 1) 1.9s, opacity .2s 1.9s; background: rgba(255,255,255,.88);
  box-shadow: 0 10px 24px -12px rgba(5,150,105,.6);
}
.stamp small { display: block; font-size: .64rem; font-weight: 700; }
.play .stamp { transform: rotate(-12deg) scale(1); opacity: 1; }
.art-invoice .invoice { z-index: 1; }
.slip {
  position: absolute; z-index: 0; top: calc(50% - 250px); left: 6%; display: flex; align-items: center; gap: 8px;
  padding: 12px 16px 40px; border-radius: 16px; background: #fffaf0; border: 1px solid #f6e3bd; box-shadow: var(--shadow); font-size: .84rem;
  transform: rotate(-7deg) translateY(60px); opacity: 0; transition: transform 1s var(--ease) 2.3s, opacity .6s 2.3s;
}
.play .slip { transform: rotate(-7deg); opacity: 1; }
.slip i { color: #b45309; }
.slip span { color: #b45309; font-weight: 700; margin-inline-start: 8px; }
.slip span::before { content: '\F26E'; font-family: bootstrap-icons; margin-inline-end: 4px; }

/* انبار */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: min(440px, 100%); }
.bin {
  position: relative; aspect-ratio: 1 / 1.05; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden;
  display: grid; align-content: center; justify-items: center; gap: 0; box-shadow: var(--shadow); isolation: isolate;
  opacity: 0; transform: translateY(24px) scale(.95); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.play .bin { opacity: 1; transform: none; }
.bin::before { content: ''; position: absolute; inset: auto 0 0; height: calc(var(--v) * 100%); background: linear-gradient(180deg, color-mix(in oklab, var(--c) 30%, white), color-mix(in oklab, var(--c) 55%, white)); z-index: -1; transform-origin: bottom; transform: scaleY(0); transition: transform 1.4s var(--ease) .4s; }
.play .bin::before { transform: scaleY(1); }
.bin i { font-size: 1.4rem; color: color-mix(in oklab, var(--c) 70%, black); }
.bin b { font-size: .9rem; }
.bin span { font-size: .74rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bin.warn { box-shadow: 0 0 0 2px rgba(245,158,11,.5), var(--shadow); }
.play .bin.warn { animation: warn 1.6s ease-in-out 1.8s infinite; }
@keyframes warn { 50% { box-shadow: 0 0 0 6px rgba(245,158,11,.25), var(--shadow); } }
.shelf .bin:nth-child(2) { transition-delay: .08s; } .shelf .bin:nth-child(3) { transition-delay: .16s; } .shelf .bin:nth-child(4) { transition-delay: .24s; } .shelf .bin:nth-child(5) { transition-delay: .32s; } .shelf .bin:nth-child(6) { transition-delay: .4s; }
.count-card {
  position: absolute; bottom: 2%; right: -2%; width: 290px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.95);
  box-shadow: 0 30px 60px -24px rgba(3,23,61,.45); border: 1px solid #fff; font-size: .82rem;
  opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease) .9s, transform .8s var(--ease) .9s;
}
.play .count-card { opacity: 1; transform: none; }
.cc-h { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.cc-h i { color: var(--amber); }
.rounds { list-style: none; padding: 0; margin: 0 0 8px; display: flex; gap: 6px; }
.rounds li { flex: 1; text-align: center; padding: 4px 0; border-radius: 8px; background: rgba(3,23,61,.05); color: var(--muted); font-size: .72rem; transition: background .4s, color .4s; }
.rounds li.done { background: rgba(14,205,158,.16); color: #047857; font-weight: 700; }
.cc-diff { font-size: .74rem; color: #b45309; opacity: 0; transition: opacity .6s; }
.cc-diff.show { opacity: 1; }
.cc-diff span { color: var(--muted); }
.alert-pill {
  position: absolute; top: 6%; left: 0; display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px;
  background: #fff7e6; color: #b45309; font-weight: 700; font-size: .86rem; box-shadow: 0 16px 30px -16px rgba(180,83,9,.5); border: 1px solid #fde7b0;
  opacity: 0; transform: translateY(-14px) scale(.95); transition: opacity .6s var(--ease) 1.6s, transform .6s var(--ease) 1.6s;
}
.play .alert-pill { opacity: 1; transform: none; }
.alert-pill.blue { background: #eef7ff; color: #0369a1; border-color: #cfe7ff; box-shadow: 0 16px 30px -16px rgba(3,105,161,.4); }
.alert-pill.green { background: #ecfdf5; color: #047857; border-color: #b7f0d8; box-shadow: 0 16px 30px -16px rgba(4,120,87,.4); top: auto; bottom: 4%; left: auto; right: 6%; }

/* چک */
.art-cheque { align-content: center; gap: 26px; }
.cheque {
  position: relative; width: min(470px, 100%); aspect-ratio: 2.25; padding: 20px 24px; border-radius: 18px; overflow: hidden;
  background:
    repeating-linear-gradient(115deg, rgba(4,191,166,.06) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, #f1fbf8, #e6f6ff);
  border: 1px solid rgba(4,191,166,.3); box-shadow: var(--shadow);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: perspective(900px) rotateY(-50deg) translateX(-40px); opacity: 0; transition: transform 1.1s var(--ease), opacity .8s;
}
.play .cheque { transform: perspective(900px) rotateY(0); opacity: 1; }
.cq-top { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; gap: 10px; }
.cq-top span { color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; }
.cq-mid { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-content: center; font-size: .86rem; }
.cq-mid span { color: var(--muted); }
.cq-amt { font-size: 1.15rem; }
.cq-sign { justify-self: end; width: 150px; }
.cq-sign path { fill: none; stroke: #1e3a8a; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.play .cq-sign path { animation: draw 1.4s .9s var(--ease-io) forwards; }
.cq-flow { list-style: none; padding: 0; margin: 0; display: flex; gap: 0; width: min(470px, 100%); }
.cq-flow li { flex: 1; position: relative; display: grid; justify-items: center; gap: 6px; font-size: .8rem; color: var(--muted); text-align: center; }
.cq-flow li i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; background: #fff; border: 2px solid var(--line); transition: all .5s var(--ease); position: relative; z-index: 1; }
.cq-flow li::before { content: ''; position: absolute; top: 23px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.cq-flow li:first-child::before { display: none; }
.cq-flow li::after { content: ''; position: absolute; top: 23px; left: 50%; width: 100%; height: 2px; background: var(--brand); transform-origin: right; transform: scaleX(0); transition: transform .6s var(--ease); }
.cq-flow li:first-child::after { display: none; }
.cq-flow li.on { color: var(--ink); font-weight: 700; }
.cq-flow li.on i { background: var(--brand-v); color: #fff; border-color: transparent; box-shadow: 0 10px 20px -8px rgba(1,148,249,.6); }
.cq-flow li.on::after { transform: scaleX(1); }
.art-cheque .alert-pill { top: 2%; }

/* تولید */
.art-factory { align-content: center; gap: 16px; width: 100%; }
.stations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(560px, 100%); }
.stn { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .76rem; text-align: center; transition: transform .4s var(--ease), box-shadow .4s; }
.stn i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, #f97316, #f59e0b); }
.stn.hot { transform: translateY(-6px); box-shadow: 0 0 0 2px rgba(249,115,22,.35), var(--shadow); }
.stn:nth-child(3) i { animation: spinGear 4s linear infinite; }
@keyframes spinGear { to { transform: rotate(360deg); } }
.belt { position: relative; width: min(560px, 100%); height: 64px; border-radius: 32px; background: linear-gradient(180deg, #1f2b46, #0b1630); overflow: hidden; box-shadow: inset 0 -6px 0 rgba(0,0,0,.25), 0 20px 40px -20px rgba(3,23,61,.6); }
.belt::before { content: ''; position: absolute; inset: auto 0 6px; height: 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 14px, transparent 14px 28px); animation: belt 1s linear infinite; }
@keyframes belt { to { background-position: 28px 0; } }
.belt-items { position: absolute; inset: 0; }
.belt-items span { position: absolute; top: 12px; right: -50px; width: 38px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 1rem; color: #fff; animation: ride 6s linear forwards; }
@keyframes ride { to { transform: translateX(calc(-1 * (min(560px, 100vw) + 100px))); } }
.cost-card { width: min(560px, 100%); padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 4px 8px; }
.cost-card small { color: var(--muted); font-size: .8rem; }
.cost-card b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.cost-card > span { color: var(--muted); font-size: .8rem; }
.cost-bar { grid-column: 1 / -1; display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin-top: 8px; gap: 2px; }
.cost-bar i { width: calc(var(--w) * 100%); background: var(--c); color: #fff; font-style: normal; font-size: .7rem; display: grid; place-items: center; transform-origin: right; transform: scaleX(0); transition: transform 1s var(--ease); }
.play .cost-bar i { transform: none; }
.play .cost-bar i:nth-child(2) { transition-delay: .2s; } .play .cost-bar i:nth-child(3) { transition-delay: .4s; }

/* بستنِ ماه */
.art-close { align-content: center; gap: 30px; }
.balance { position: relative; width: min(460px, 100%); height: 210px; }
.beam { position: absolute; top: 40px; left: 6%; right: 6%; height: 6px; border-radius: 3px; background: var(--ink); transform: rotate(var(--tilt, 9deg)); transition: transform 1.6s cubic-bezier(.34, 1.56, .64, 1); }
.play .beam { --tilt: 0deg; transition-delay: .8s; }
.pan { position: absolute; top: 6px; width: 46%; display: grid; justify-items: center; gap: 2px; padding: 34px 6px 14px; }
.pan::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 30px; background: var(--ink); }
.pan.l { left: -8%; } .pan.r { right: -8%; }
.pan small { color: var(--muted); font-size: .8rem; }
.pan b { font-size: clamp(.95rem, 1.6vw, 1.2rem); font-variant-numeric: tabular-nums; padding: 8px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); white-space: nowrap; }
.pivot { position: absolute; top: 40px; left: 50%; width: 0; height: 0; transform: translateX(-50%); border: 28px solid transparent; border-bottom: 120px solid rgba(3,23,61,.12); border-top: 0; }
.months { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 460px; }
.months span { padding: 6px 12px; border-radius: 10px; font-size: .8rem; background: rgba(14,205,158,.12); color: #047857; font-weight: 700; }
.months span::before { content: '\F26E'; font-family: bootstrap-icons; margin-inline-end: 4px; }
.months .now { background: rgba(3,23,61,.06); color: var(--muted); transition: all .6s var(--ease) 2.2s; }
.months .now::before { content: '\F293'; }
.play .months .now { background: var(--brand); color: #fff; box-shadow: 0 10px 20px -10px rgba(1,148,249,.7); }
.art-close .alert-pill.green { transition-delay: 2.6s; }

/* ═════════ حقوق ═════════ */
.payroll { padding: clamp(80px, 14vh, 160px) 0; }
.payslip { justify-self: center; width: min(420px, 100%); padding: 22px; border-radius: 24px; background: var(--card-solid); box-shadow: var(--shadow); border: 1px solid var(--line); transform: rotate(2deg); }
.ps-h { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.ps-h > i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.ps-h b { display: block; line-height: 1.5; }
.ps-h small { color: var(--muted); }
.ps-rows { display: grid; gap: 2px; padding: 12px 0; font-size: .9rem; }
.ps-rows div { display: flex; justify-content: space-between; padding: 6px 0; font-variant-numeric: tabular-nums; }
.ps-rows span { color: var(--muted); }
.ps-rows .neg b { color: var(--rose); }
.ps-net { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; background: linear-gradient(110deg, #6366f1, #8b5cf6); color: #fff; }
.ps-net b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }

/* ═════════ تیره ═════════ */
[data-tone=dark] {
  --ink: #eef5ff; --ink-2: #d7e3f7; --muted: #a8b7d4; --line: rgba(255,255,255,.12);
  --card: rgba(12, 24, 60, .62); --card-solid: rgba(13, 26, 60, .82); --card-brd: rgba(255,255,255,.12);
  --shadow: 0 30px 60px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06) inset;
  color: var(--ink);
}

/* ═════════ آرتا و کاوه ═════════ */
.ai { padding: clamp(100px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); }
.ai-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.ai-people { display: grid; gap: 14px; align-content: start; }
.persona { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--card-brd); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.persona b { font-size: 1.2rem; }
.persona small { margin-inline-start: 8px; color: var(--muted); }
.persona p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.avatar { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.5rem; color: #fff; }
.arta .avatar { background: linear-gradient(135deg, #1BBFFD, #0194F9); }
.kaveh .avatar { background: linear-gradient(135deg, #0ECD9E, #047857); }
.avatar .ring { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--aqua); border-left-color: var(--aqua); opacity: 0; }
.persona.talking .ring { opacity: 1; animation: spinR 1s linear infinite; }
@keyframes spinR { to { transform: rotate(360deg); } }
.ai-scenarios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ai-scenarios button { display: inline-flex; gap: 6px; align-items: center; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 700; font-size: .88rem; color: var(--muted); transition: all .3s var(--ease); }
.ai-scenarios button:hover { color: var(--ink); border-color: rgba(255,255,255,.3); }
.ai-scenarios button.on { color: #03173D; background: linear-gradient(100deg, #44E6A0, #33D7FD); border-color: transparent; }
.chat {
  display: flex; flex-direction: column; min-height: 560px; border-radius: 28px; overflow: hidden;
  background: rgba(8, 18, 46, .7); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04) inset;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.chat-top { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.chat-top small { margin-inline-start: auto; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.chat-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; justify-content: flex-end; }
.msg { max-width: 88%; display: flex; gap: 10px; align-items: flex-end; animation: msgIn .6s var(--ease) both; }
.msg .who { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 900; color: #fff; }
.msg.me { align-self: flex-start; }
.msg.me .bubble { background: linear-gradient(120deg, #0194F9, #1BBFFD); color: #fff; border-start-start-radius: 6px; }
.msg.me .who { background: rgba(255,255,255,.14); }
.msg.bot { align-self: flex-end; flex-direction: row-reverse; }
.msg.bot .bubble { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-start-end-radius: 6px; }
.msg.arta .who { background: linear-gradient(135deg, #1BBFFD, #0194F9); }
.msg.kaveh .who { background: linear-gradient(135deg, #0ECD9E, #047857); }
.bubble { padding: 12px 16px; border-radius: 20px; font-size: .94rem; line-height: 1.85; }
.bubble .typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.bubble .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bubble .typing i:nth-child(2) { animation-delay: .15s; } .bubble .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 40% { opacity: 1; transform: translateY(-3px); } 0%, 80%, 100% { opacity: .3; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.voice { display: inline-flex; align-items: center; gap: 3px; height: 22px; margin-inline-end: 8px; vertical-align: middle; }
.voice i { width: 3px; border-radius: 2px; background: rgba(255,255,255,.85); height: calc(var(--h) * 100%); }
.photo { display: block; width: 210px; aspect-ratio: 2.2; margin-bottom: 8px; border-radius: 10px; background: repeating-linear-gradient(115deg, rgba(255,255,255,.18) 0 2px, transparent 2px 8px), linear-gradient(135deg, #7dd3c0, #9fd9ff); position: relative; }
.photo::after { content: 'عکسِ چک'; position: absolute; bottom: 6px; right: 10px; font-size: .7rem; color: #03173D; font-weight: 700; }
.doc { margin-top: 10px; border-radius: 14px; background: rgba(255,255,255,.95); color: #03173D; padding: 12px 14px; font-size: .8rem; min-width: min(380px, 62vw); }
.doc-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.doc-h b { font-size: .9rem; }
.doc-h span { white-space: nowrap; font-size: .68rem; padding: 2px 8px; border-radius: 999px; background: #fff7e6; color: #b45309; font-weight: 700; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th { font-weight: 600; color: #5b6b8a; font-size: .68rem; text-align: start; padding: 3px 4px; border-bottom: 1px solid rgba(3,23,61,.1); }
.doc td { padding: 5px 4px; border-bottom: 1px solid rgba(3,23,61,.06); font-variant-numeric: tabular-nums; }
.doc tr { animation: msgIn .5s var(--ease) both; }
.doc td.n, .doc th.n { text-align: end; }
.doc .bal { display: flex; justify-content: space-between; margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(14,205,158,.12); color: #047857; font-weight: 700; }
.verdict { display: flex; flex-direction: column; gap: 4px; }
.verdict .ok { color: var(--mint); font-weight: 800; }
.approve { align-self: flex-start; margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; font-size: .86rem; border: 0; box-shadow: 0 0 0 0 rgba(27,191,253,.6); animation: ping 1.8s infinite, msgIn .6s var(--ease) both; }
.chat-input { display: flex; align-items: center; gap: 12px; margin: 0 16px 16px; padding: 10px 12px 10px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.chat-ph { color: var(--muted); font-size: .92rem; flex: 1; }
.mic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.wave { display: none; align-items: center; gap: 3px; height: 26px; flex: 1; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--aqua); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-duration: .8s; } .wave i:nth-child(3n) { animation-duration: 1.2s; }
@keyframes wave { 50% { height: 100%; } }
.chat.listening .wave { display: flex; }
.chat.listening .chat-ph { display: none; }
.chat.listening .mic { animation: ping 1.2s infinite; }
.ai-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.ai-strip > div { padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-brd); display: grid; gap: 4px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ai-strip i { font-size: 1.3rem; color: var(--aqua); }
.ai-strip span { color: var(--muted); font-size: .88rem; line-height: 1.75; }

/* ═════════ شب ═════════ */
.night { padding: clamp(110px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); }
.scan { position: relative; border-radius: 28px; padding: 22px; background: rgba(5, 14, 40, .74); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); overflow: hidden; }
.scan-beam { position: absolute; top: 0; bottom: 0; width: 160px; right: -160px; background: linear-gradient(90deg, transparent, rgba(51,215,253,.16), rgba(68,230,160,.22), transparent); filter: blur(4px); pointer-events: none; z-index: 2; }
.scan.run .scan-beam { animation: sweep 6s var(--ease-io) infinite; }
@keyframes sweep { to { transform: translateX(calc(-100% - 100vw)); } }
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rule-cat { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; font-weight: 700; margin-top: 8px; }
.rule-cat:first-child { margin-top: 0; }
.rule-cat::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.rule {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); font-size: .84rem; line-height: 1.6;
  transition: background .6s, border-color .6s;
}
.rule code { font-family: inherit; font-size: .66rem; color: var(--muted); direction: ltr; }
.rule .st { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: rgba(255,255,255,.06); color: transparent; transition: all .5s var(--ease); padding: 0; box-shadow: none; border: 0; }
.rule.ok { background: rgba(68,230,160,.07); border-color: rgba(68,230,160,.22); }
.rule.ok .st { background: var(--mint); color: #03173D; }
.rule.flag { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.4); }
.rule.flag .st { background: var(--amber); color: #03173D; }
.night-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.report, .history { padding: 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--card-brd); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.report-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.report-h i { font-size: 1.2rem; color: var(--aqua); }
.report-h small { margin-inline-start: auto; color: var(--muted); }
.report p { margin: 0; color: var(--ink-2); }
.r-ok { color: var(--mint); } .r-warn { color: #fbbf24; }
.history ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .88rem; }
.history li span { font-variant-numeric: tabular-nums; color: var(--aqua); margin-inline-end: 8px; }
.history em { font-style: normal; color: var(--muted); font-size: .78rem; margin-inline-start: 6px; }

/* ═════════ نبض ═════════ */
.pulse { padding: clamp(90px, 14vh, 160px) 0; }
.monitor { position: relative; border-radius: 28px; padding: 18px; background: rgba(3, 12, 34, .6); border: 1px solid var(--line); box-shadow: 0 50px 100px -40px rgba(0,0,0,.7); overflow: hidden; }
.monitor::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.ecg { width: 100%; height: 200px; position: relative; }
.vitals { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.vitals div { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.vitals small { display: block; color: var(--muted); font-size: .78rem; }
.vitals b { font-size: 1.25rem; font-variant-numeric: tabular-nums; color: #eaffff; transition: color .4s; }
.vitals b.bump { color: var(--mint); }

/* ═════════ پل ═════════ */
.bridge { padding: clamp(90px, 14vh, 160px) 0; }
.bridge-art svg { width: 100%; height: auto; overflow: visible; }
.bridge-art .dev rect { fill: #fff; stroke: rgba(3,23,61,.14); stroke-width: 1.5; filter: drop-shadow(0 18px 24px rgba(3,23,61,.16)); }
.bridge-art .dev rect.bar { fill: rgba(3,23,61,.05); stroke: none; filter: none; }
.bridge-art .dev.win rect.bar { fill: #e7eefc; }
.bridge-art .dev.web rect.bar { fill: #dff7f2; }
.bridge-art text { font-family: Vazirmatn, sans-serif; font-size: 15px; font-weight: 800; fill: #03173D; }
.bridge-art .db ellipse, .bridge-art .db path { fill: #eaf6ff; stroke: #0194F9; stroke-width: 2; }
.bridge-art .db ellipse:first-of-type { fill: #d6efff; }
.bridge-art .db text { fill: #0194F9; }
.bridge-art .flow { fill: none; stroke: url(#g-flow); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* ═════════ عددها ═════════ */
.numbers { padding: 30px 0 clamp(60px, 10vh, 120px); }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nums div { padding: 26px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--card-brd); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nums b { display: block; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 900; line-height: 1.3; font-variant-numeric: tabular-nums; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
.nums span { color: var(--muted); font-size: .94rem; }

/* ═════════ فهرست فرم‌ها ═════════ */
.catalog { padding: clamp(80px, 12vh, 140px) 0; }
.catalog .sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 30px; }
.catalog .sec-head .eyebrow, .catalog .sec-head .h2 { grid-column: 1; }
.cat-search { grid-column: 2; grid-row: 1 / span 2; align-self: end; position: relative; display: flex; align-items: center; gap: 10px; width: min(380px, 100%); height: 54px; padding: 0 18px; border-radius: 999px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 1.1rem; }
.cat-search i { color: var(--blue); }
.cat-search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; }
.cat-count { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: .88rem; color: var(--ink-2); transition: all .3s var(--ease); }
.cat-tab i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 16%, white); color: var(--c); font-size: .82rem; transition: all .3s; }
.cat-tab small { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.cat-tab.on { background: var(--c); color: #fff; border-color: transparent; box-shadow: 0 12px 24px -12px var(--c); }
.cat-tab.on i { background: rgba(255,255,255,.22); color: #fff; }
.cat-tab.on small { color: rgba(255,255,255,.8); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; min-height: 300px; align-content: start; }
.form-card {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; padding: 14px 16px; border-radius: 18px;
  background: var(--card-solid); border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms);
}
.form-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--c) 40%, transparent); }
.form-card > i { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; color: var(--c); background: color-mix(in oklab, var(--c) 13%, white); }
.form-card b { font-size: .94rem; line-height: 1.6; }
.form-card span { font-size: .8rem; color: var(--muted); line-height: 1.7; }
.form-card small { position: absolute; top: 10px; left: 12px; font-size: .64rem; color: var(--muted); opacity: .7; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
.form-card.flash { animation: cardIn .5s var(--ease) both, flash 1.6s .4s var(--ease) 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--c) 35%, transparent), var(--shadow); } }
.cat-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }
mark { background: rgba(27,191,253,.25); color: inherit; border-radius: 4px; padding: 0 2px; }

/* ═════════ تازه‌ها ═════════ */
.news { padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 10vh, 120px); }
.news-rail { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); padding: 10px 0 30px; }
.news-track { display: flex; gap: 16px; width: max-content; animation: tick 140s linear infinite; }
.news-rail:hover .news-track { animation-play-state: paused; }
.ncard { width: 330px; flex: none; padding: 20px; border-radius: 22px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.ncard-h { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); }
.ncard-h em { font-style: normal; padding: 2px 10px; border-radius: 999px; background: rgba(1,148,249,.09); color: var(--blue); font-weight: 700; }
.ncard h3 { margin: 0; font-size: 1.04rem; line-height: 1.6; }
.ncard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ncard li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: .84rem; line-height: 1.7; }
.ncard li i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--c); font-size: .85rem; }
.ncard li span small { display: block; color: var(--muted); font-size: .74rem; }

/* ═════════ اعتماد ═════════ */
.trust { padding: clamp(80px, 12vh, 140px) 0; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); gap: 14px; }
.b { padding: 24px; border-radius: 24px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.b > i { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: var(--brand-v); margin-bottom: 8px; }
.b h3 { margin: 0; font-size: 1.12rem; }
.b p { margin: 0; color: var(--muted); font-size: .92rem; }
.b-acl { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, #06204f, #03173D); color: #eef5ff; border: 0; }
.b-acl p { color: #a8b7d4; max-width: 44ch; }
.b-acl h3 { font-size: 1.5rem; }
.perm { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.perm span { padding: 10px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #a8b7d4; font-weight: 700; cursor: pointer; transition: all .3s var(--ease); user-select: none; }
.perm span::before { content: '\F62A'; font-family: bootstrap-icons; margin-inline-end: 6px; }
.perm span.on { background: linear-gradient(100deg, #44E6A0, #33D7FD); color: #03173D; border-color: transparent; }
.perm span.on::before { content: '\F26E'; }
.b-wide .btn { font-size: .84rem; }
.b-wide .btn { align-self: flex-start; margin-top: auto; }

/* ═════════ قیمت ═════════ */
.pricing { padding: clamp(80px, 12vh, 140px) 0; }
.toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.toggle button { position: relative; z-index: 1; border: 0; background: transparent; padding: 10px 22px; font-weight: 800; font-size: .92rem; color: var(--muted); transition: color .3s; }
.toggle button[aria-checked=true] { color: #fff; }
.toggle i { position: absolute; top: 5px; bottom: 5px; right: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--brand); transition: transform .5s var(--ease); }
.toggle.alt i { transform: translateX(-100%); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { padding: 28px; border-radius: 26px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.featured { background: linear-gradient(165deg, #06204f, #03173D); color: #eef5ff; border: 0; transform: translateY(-10px); box-shadow: 0 40px 80px -30px rgba(3,23,61,.6); }
.plan.featured::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan .note { font-size: .8rem; color: var(--muted); }
.plan.featured .note { color: var(--aqua); font-weight: 700; }
.plan .price { font-size: 1.7rem; font-weight: 900; line-height: 1.4; min-height: 2.4em; display: flex; align-items: center; }
.plan .users { font-size: .86rem; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.plan.featured .users { color: #a8b7d4; border-color: rgba(255,255,255,.12); }
.plan.featured .ticks li { color: #d7e3f7; }
.plan .btn { margin-top: auto; }
.plan .ticks { margin-bottom: 16px; }

/* ═════════ پرسش‌ها ═════════ */
.faq { padding: clamp(60px, 10vh, 120px) 0; }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: var(--card-solid); border: 1px solid var(--line); padding: 0 22px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '\F64D'; font-family: bootstrap-icons; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(1,148,249,.08); color: var(--blue); transition: transform .4s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ═════════ پایان ═════════ */
.cta { padding: clamp(100px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); }
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-lines li { display: flex; gap: 12px; align-items: center; }
.contact-lines i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card-solid); border: 1px solid var(--line); color: var(--blue); }
.contact-lines a[href] { font-weight: 700; direction: ltr; unicode-bidi: plaintext; }
.demo-form { padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: 0 50px 100px -40px rgba(3,23,61,.45); display: grid; gap: 14px; }
.demo-form label > span, .demo-form legend { display: block; font-size: .84rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.demo-form input:not([type=radio]) { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(255,255,255,.7); outline: 0; transition: border-color .3s, box-shadow .3s; }
.demo-form input[dir=ltr] { text-align: right; }
.demo-form input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(27,191,253,.18); }
.demo-form input.bad { border-color: var(--rose); }
.demo-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-form legend { width: 100%; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .3s var(--ease); margin: 0 !important; }
.chip input:checked + span { background: rgba(1,148,249,.1); border-color: var(--blue); color: var(--blue); }
.chip input:focus-visible + span { outline: 2.5px solid var(--sky); outline-offset: 2px; }
.demo-form .btn { margin-top: 6px; }
.form-note { margin: 0; min-height: 1.6em; font-size: .9rem; font-weight: 700; color: #047857; }
.form-note.err { color: var(--rose); }

.foot { padding: 30px 0 40px; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 10px; align-items: center; }
.foot-brand img { width: 36px; }
.foot-brand b { display: block; line-height: 1.3; }
.foot-brand small { color: var(--muted); }
.foot-meta { margin: 0 auto 0 0; color: var(--muted); font-size: .84rem; }
.foot-top { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }

/* ═════════ جستجوی فرم ═════════ */
.palette { position: fixed; inset: 0; z-index: 80; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; background: rgba(3, 12, 34, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .25s ease both; }
.palette[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.palette-box { width: min(640px, 100%); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 50px 120px -30px rgba(0,0,0,.55); overflow: hidden; animation: popIn .4s var(--ease) both; color: #03173D; }
@keyframes popIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 64px; border-bottom: 1px solid rgba(3,23,61,.08); }
.palette-in i { color: var(--blue); font-size: 1.1rem; }
.palette-in input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 1.08rem; min-width: 0; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: min(56vh, 460px); overflow-y: auto; }
.palette-list li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 14px; cursor: pointer; }
.palette-list li.on { background: rgba(1,148,249,.08); }
.palette-list li > i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in oklab, var(--c) 13%, white); }
.palette-list b { display: block; font-size: .94rem; line-height: 1.5; }
.palette-list small { color: #5b6b8a; font-size: .78rem; }
.palette-list .where { font-size: .74rem; padding: 3px 10px; border-radius: 999px; color: var(--c); background: color-mix(in oklab, var(--c) 10%, white); white-space: nowrap; }
.palette-list .path { display: block; font-size: .7rem; color: #8494b2; direction: ltr; text-align: right; }
.palette-foot { display: flex; gap: 16px; padding: 10px 20px; border-top: 1px solid rgba(3,23,61,.08); font-size: .76rem; color: #5b6b8a; flex-wrap: wrap; }
.palette-foot span:last-child { margin-inline-start: auto; }
.palette-foot kbd { margin-inline-end: 2px; }

/* ═════════ ظاهرشدن ═════════ */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ═════════ واکنش‌گرا ═════════ */
@media (max-width: 1020px) {
  .nav-links, .nav-search span, .nav-clock { display: none; }
  .nav-search { margin-inline-start: auto; padding: 0 12px; }
  .nav-burger { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .hero-stage { height: 460px; }
  .split, .ai-grid { grid-template-columns: 1fr; }
  .bridge .split > :first-child { order: 2; }
  .nums { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan.featured { transform: none; }
  .ai-strip { grid-template-columns: repeat(2, 1fr); }
  .night-foot { grid-template-columns: 1fr; }
  .catalog .sec-head { grid-template-columns: 1fr; }
  .cat-search { grid-column: 1; grid-row: auto; }

  /* روزِ کاری در گوشی و تبلت عمودی است */
  .day { height: auto; }
  .day-sticky { position: static; height: auto; overflow: visible; }
  .day-head { position: sticky; top: 72px; inset-inline: auto; margin: 0 var(--gutter); padding: 10px 16px; border-radius: 18px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); grid-template-columns: 1fr auto; gap: 6px 12px; }
  .day-head .eyebrow { display: none; }
  .day-clock { grid-column: 1 / -1; justify-self: start; }
  .day-clock b { font-size: 1.3rem; }
  .day-progress { grid-column: 1 / -1; grid-row: 2; }
  .day-track { flex-direction: column; width: auto; transform: none !important; }
  .scene { width: auto; height: auto; grid-template-columns: 1fr; padding: 60px var(--gutter); }
  .scene-art { height: auto; min-height: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .nav { top: 8px; }
  .nav-cta { display: none; }
  .hero > * { min-width: 0; }
  .hero-title { font-size: clamp(1.7rem, 8.6vw, 2.4rem); }
  .hero-title .line { white-space: normal; }
  .hero-stage { height: 360px; margin-inline: calc(var(--gutter) * -1); }
  .app { width: 118%; transform: translate(-50%, -50%) scale(.78) rotateY(0) rotateX(8deg); }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .toast { left: 16px !important; right: auto !important; }
  .scroll-cue { display: none; }
  .hero-facts { gap: 6px 16px; }
  .hero-actions .btn { width: 100%; }
  .btn-ghost kbd { display: none; }
  .toast { max-width: 240px; font-size: .78rem; }
  .ai-strip, .nums, .bento { grid-template-columns: 1fr; }
  .b-acl { grid-column: auto; grid-row: auto; }
  .count-card { right: 0; width: 250px; }
  .shelf { gap: 8px; }
  .stations { gap: 6px; }
  .stn { font-size: .66rem; padding: 10px 4px; }
  .stn i { width: 32px; height: 32px; }
  .pan b { font-size: .82rem; padding: 6px 8px; }
  .chat { min-height: 520px; }
  .msg { max-width: 100%; }
  .doc { min-width: 0; font-size: .74rem; }
  .palette-list .where { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker-row, .news-track { animation: none !important; }
}
