/* ===== توکن‌ها ===== */
:root {
  --ink: #1b1038;
  --ink-2: #2d1c5c;
  --violet: #6a33d4;
  --violet-deep: #4b1fa8;
  --lav: #eee7ff;
  --mist: #f7f4ff;
  --paper: #fcfbff;
  --line: #e2d9f8;
  --muted: #5d5480;
  --amber: #ffb84d;
  --radius: 14px;
  --font-body: "Vazirmatn", "Vazir", Tahoma, system-ui, sans-serif;
  --font-display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.35; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 42px); }
p { margin: 0; }

/* ===== دکمه‌ها ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 15px;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-deep); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-line { border-color: var(--violet); color: var(--violet); }
.btn-line:hover { background: var(--violet); color: #fff; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* ===== هدر ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(252,251,255,.88);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--violet-deep); line-height: 1; }
.brand small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: background .2s; }
.nav a:hover, .nav a.on { background: var(--lav); color: var(--violet-deep); }
.header-cta { display: inline-flex; }
.menu-btn { display: none; background: var(--lav); border: 0; border-radius: 10px; width: 44px; height: 44px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; position: relative; content: ""; transition: .2s; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* ===== هیرو ===== */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset-inline-start: -18%; top: -30%; width: 900px; height: 520px;
  border: 2px solid rgba(155,120,255,.25); border-radius: 50%; transform: rotate(-18deg); z-index: -1;
}
.hero::after {
  content: ""; position: absolute; inset-inline-start: -8%; top: -12%; width: 900px; height: 520px;
  border: 1px solid rgba(155,120,255,.18); border-radius: 50%; transform: rotate(-18deg); z-index: -1;
}
.hero .glow { position: absolute; inset-inline-start: 5%; top: 18%; width: 520px; height: 420px; background: radial-gradient(closest-side, rgba(106,51,212,.55), transparent); z-index: -1; filter: blur(20px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.18fr; gap: 56px; align-items: center; padding-block: 72px 80px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.3; }
.hero p.lead { margin-top: 20px; color: #cfc4ef; font-size: 17px; max-width: 520px; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .since { margin-top: 36px; font-size: 14px; color: #a99dd0; display: flex; align-items: center; gap: 12px; }
.hero .since::before { content: ""; width: 40px; height: 2px; background: var(--amber); }
.stage { position: relative; }
.stage .win { filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); transform: perspective(1400px) rotateY(6deg) rotateX(2deg); transition: transform .6s; }
.stage:hover .win { transform: perspective(1400px) rotateY(0) rotateX(0); }
.stage .shot { position: relative; }
.stage .shot > * { transition: opacity .5s; }
.stage .shot .layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.stage .shot .layer.on { opacity: 1; position: relative; pointer-events: auto; }
.stage .shot .layer:not(.on) { position: absolute; }
.stage .shot svg { width: 100%; height: auto; }
.switcher { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.switcher button {
  background: rgba(255,255,255,.07); color: #d9cff5; border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding: 6px 16px; font-size: 13.5px; transition: .25s;
}
.switcher button:hover { background: rgba(255,255,255,.14); }
.switcher button[aria-selected="true"] { background: var(--amber); color: var(--ink); border-color: var(--amber); font-weight: 700; }
.stage .caption { margin-top: 16px; color: #cfc4ef; font-size: 14.5px; min-height: 28px; }
.stage .caption a { color: var(--amber); font-weight: 700; margin-inline-start: 8px; }
.hero .intro > * { animation: rise .8s both; }
.hero .intro > *:nth-child(2) { animation-delay: .12s; }
.hero .intro > *:nth-child(3) { animation-delay: .24s; }
.hero .intro > *:nth-child(4) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ===== بخش‌ها ===== */
section.block { padding-block: 96px; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.head p { color: var(--muted); max-width: 480px; }
.tint { background: var(--mist); border-block: 1px solid var(--line); }

/* ===== محصولات ===== */
.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.pcard {
  grid-column: span 4; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(75,31,168,.35); border-color: var(--accent); }
.pcard.w8 { grid-column: span 8; }
.pcard.w6 { grid-column: span 6; }
.pcard .pic { background: color-mix(in srgb, var(--accent) 12%, #fff); padding: 22px 22px 0; position: relative; }
.pcard .pic > svg, .pcard .pic > img:not(.ov) { border-radius: 10px 10px 0 0; box-shadow: 0 -4px 24px -8px rgba(27,16,56,.25); width: 100%; height: auto; }
.pcard.w8 { flex-direction: row; }
.pcard.w8 .pic { flex: 1.2; display: flex; align-items: end; }
.pcard.w8 .body { flex: 1; justify-content: center; }
.pcard .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard h3 { font-size: 24px; }
.pcard .tag { color: var(--muted); font-size: 15px; }
.pcard .meta { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.price { font-weight: 800; color: var(--ink); }
.price small { font-weight: 400; color: var(--muted); }
.more { color: var(--accent); font-weight: 700; }
.badge { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--ink); color: var(--amber); font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; }

/* ===== خدمات ===== */
.services { display: grid; grid-template-columns: .8fr 1.4fr; gap: 64px; align-items: start; }
.services .sticky { position: sticky; top: 110px; }
.services .sticky p { margin-top: 16px; color: var(--muted); }
.srow { border-top: 1px solid var(--line); padding-block: 28px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.srow:last-child { border-bottom: 1px solid var(--line); }
.srow h3 { font-size: 30px; color: var(--violet-deep); transition: transform .3s; }
.srow:hover h3 { transform: translateX(-8px); }
.srow ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.srow li { background: var(--lav); color: var(--violet-deep); border-radius: 999px; padding: 2px 14px; font-size: 13.5px; }
.srow p { color: var(--muted); }

/* ===== نوار سابقه ===== */
.years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.years > div { padding: 34px 32px; border-inline-start: 1px solid var(--line); }
.years > div:first-child { border-inline-start: 0; }
.years b { font-family: var(--font-display); font-weight: 400; font-size: 46px; color: var(--violet); display: block; line-height: 1.2; }
.years span { color: var(--muted); }

/* ===== نمونه‌کار ===== */
.pf { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pf h3 { font-size: 28px; margin-bottom: 18px; }
.pf ul { list-style: none; margin: 0; padding: 0; }
.pf li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.pf li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--violet); transform: rotate(45deg); flex: none; }
.clients { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.clients span { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 18px; font-size: 14.5px; }
.clients-t { margin-top: 56px; font-family: var(--font-display); font-size: 24px; }

/* ===== CTA ===== */
.cta { background: var(--violet); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset-inline-end: -120px; bottom: -160px; width: 420px; height: 420px; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta p { margin-top: 12px; color: #e6dcff; }
.cta .col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; z-index: 1; }
.cta .big { font-family: var(--font-display); font-size: 36px; line-height: 1.2; }

/* ===== صفحه محصول ===== */
.crumb { padding-block: 22px; color: var(--muted); font-size: 14px; }
.crumb a:hover { color: var(--violet); }
.pdetail { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; padding-bottom: 72px; }
.pdetail h1 { font-size: clamp(32px, 4.4vw, 50px); }
.pdetail .tagline { margin-top: 12px; font-size: 19px; color: var(--accent); font-weight: 700; }
.pdetail .desc { margin-top: 18px; color: var(--muted); }
.facts { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: end; }
.pdetail .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.gal .big { background: color-mix(in srgb, var(--accent) 12%, #fff); border-radius: 22px; padding: 28px; }
.gal .big svg, .gal .big img:not(.phone) { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 44px -16px rgba(27,16,56,.4); }
.thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumbs button { flex: 1; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 6px; transition: .2s; }
.thumbs button[aria-selected="true"] { border-color: var(--accent); }
.thumbs svg, .thumbs img { width: 100%; height: auto; border-radius: 6px; }
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-top: 8px; }
.feat li { list-style: none; display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.feat li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat; }
.feat { padding: 0; }
.side-icon { width: 120px; margin-bottom: 18px; }
.note { margin-top: 18px; background: var(--lav); border-radius: 12px; padding: 12px 18px; font-size: 14px; color: var(--ink-2); }

/* ===== درباره / تماس ===== */
.page-head { padding-block: 56px 40px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); max-width: 780px; }
.prose { max-width: 720px; color: var(--muted); display: grid; gap: 14px; margin-top: 18px; font-size: 17px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; padding-bottom: 96px; }
.cinfo { display: grid; gap: 18px; align-content: start; }
.cinfo a.item { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; transition: .2s; }
.cinfo a.item:hover { border-color: var(--violet); transform: translateX(-4px); }
.cinfo small { color: var(--muted); display: block; }
.cinfo b { font-size: 20px; }
.ico { width: 46px; height: 46px; border-radius: 12px; background: var(--lav); display: grid; place-items: center; flex: none; color: var(--violet); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.form input, .form textarea, .form select {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--lav); }
.form textarea { min-height: 130px; resize: vertical; }
.form .hint { font-size: 13px; color: var(--muted); }

/* ===== فوتر ===== */
.site-footer { background: var(--ink); color: #cfc4ef; margin-top: 0; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
.site-footer h4 { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: #fff; margin: 0 0 12px; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.site-footer .logo-row img { height: 44px; }
.fbar { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fbar a { color: var(--amber); }

/* ===== ریسپانسیو ===== */
@media (max-width: 960px) {
  .hero-grid, .services, .pdetail, .contact-grid, .pf, .cta { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; padding-block: 48px 56px; }
  .stage .win { transform: none; }
  .pcard, .pcard.w8, .pcard.w6 { grid-column: span 12; }
  .pcard.w8 { flex-direction: column; }
  .services .sticky { position: static; }
  .srow { grid-template-columns: 1fr; gap: 8px; }
  .years { grid-template-columns: 1fr; }
  .years > div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .years > div:first-child { border-top: 0; }
  .cta { padding: 36px 26px; }
  .fgrid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  section.block { padding-block: 64px; }
  .nav { position: fixed; inset: 70px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 14px 20px 24px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px; font-size: 17px; }
  .menu-btn { display: block; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== تصویر موبایل ===== */
.ov { position: absolute; inset-inline-end: 4%; bottom: -7%; width: 22%; height: auto; filter: drop-shadow(0 14px 22px rgba(27,16,56,.4)); pointer-events: none; z-index: 2; }
.pcard .pic { overflow: hidden; }
.pcard .pic img.ov { position: absolute; inset-inline-end: 5%; bottom: -6%; width: 21%; border-radius: 0; box-shadow: none; }
.stage .shot .layer { }
.gal .big img.phone { width: auto; max-height: 540px; margin: 0 auto; border-radius: 0; box-shadow: none; filter: drop-shadow(0 22px 30px rgba(27,16,56,.3)); }
.thumbs img.phone { width: auto; height: 74px; margin: 0 auto; border-radius: 0; }
.thumbs button { display: grid; align-items: center; }
.side-icon { width: auto; }
.app-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 12px 28px -10px rgba(27,16,56,.45); }
@media (max-width: 560px) { .ov { width: 26%; } }

/* ===== اسکرین‌شات و تصویرسازی ===== */
.pcard .pic > img.scr, .stage .shot img.scr { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; background: #fff; }
.stage .shot img.scr { border-radius: 14px; box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.gal .big img.scr { background: #fff; }
.thumbs img.scr { aspect-ratio: 8 / 5; object-fit: cover; object-position: top; }
.services .sticky .art { margin-top: 28px; width: 100%; max-width: 420px; }
.about-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.about-head .art { width: 100%; max-width: 380px; margin-inline: auto; }
.cphoto { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; }
@media (max-width: 960px) { .about-head { grid-template-columns: 1fr; } .about-head .art { max-width: 280px; } }
.side-icon > svg { width: 110px; height: auto; }
