/* عیار — نسخه‌ی ۳
   تیره و حرفه‌ای؛ فونت اول B Yekan، بعد Vazirmatn.
   یک رنگ تأکید (طلایی، اشاره به عیار) + آبی سرد بسیار کم برای نور پس‌زمینه.
   حرکت: فقط transform و opacity، منحنی‌های ease-out قوی، زیر ۳۰۰ میلی‌ثانیه برای تعامل. */

@font-face {
  font-family: 'Yekan Site';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('B Yekan'), local('BYekan'), url(fonts/byekan.woff) format('woff'), url(fonts/byekan.ttf) format('truetype');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/vazirmatn-arabic-wght-normal.woff2) format('woff2-variations'), url(fonts/vazirmatn-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/vazirmatn-latin-wght-normal.woff2) format('woff2-variations'), url(fonts/vazirmatn-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}

:root {
  --bg: #090C11;
  --bg-2: #0D1118;
  --surface: #121821;
  --surface-2: #18202B;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #E9EDF2;
  --text-2: #A3ADBB;
  --text-3: #6E7988;
  --gold: #CDA968;
  --gold-2: #E2C48C;
  --gold-soft: rgba(205, 169, 104, .12);
  --cool: #3D6BFF;
  --ok: #3FCB92;
  --font: 'Yekan Site', 'B Yekan', BYekan, 'Vazirmatn', Tahoma, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 16px; top: 16px; background: var(--surface); color: var(--text); padding: 8px 14px; z-index: 100; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* —— سربرگ: لایه‌ی شیشه‌ای ثابت —— */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(9, 12, 17, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-block-end: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); backdrop-filter: none; } }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { width: 24px; height: 24px; }
.logo b { font-size: 22px; font-weight: 700; }
.logo span { font-size: 12px; color: var(--text-3); border-inline-start: 1px solid var(--line-2); padding-inline-start: 10px; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); font-size: 15px; color: var(--text-2); }
.menu a:not(.btn) { padding-block: 8px; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .menu a:not(.btn):hover { color: var(--text); } }
@media (max-width: 820px) { .menu a:not(.btn), .logo span { display: none; } }

/* —— دکمه‌ها —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color .2s ease, border-color .2s ease, color .2s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold); color: #17120A; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { background: var(--gold-2); }
  .btn--ghost:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); }
}
.btn .arr { font-size: 17px; line-height: 1; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arr { transform: translateX(-3px); } }

/* —— هیرو —— */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 112px) clamp(64px, 9vw, 120px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: -1;
  background:
    radial-gradient(50% 60% at 25% 35%, rgba(61, 107, 255, .16), transparent 70%),
    radial-gradient(40% 50% at 80% 10%, rgba(205, 169, 104, .10), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .5;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--text-2);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(63, 203, 146, .18); }
.hero h1 { margin-block: 22px 20px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.4; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 34px; }
.hero-shot { margin: 0; min-width: 0; position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: 10% 8% -6% 8%; z-index: -1; border-radius: 30px;
  background: radial-gradient(closest-side, rgba(61, 107, 255, .35), transparent); filter: blur(30px);
}
.caption { font-size: 17px; line-height: 1.7; font-weight: 700; color: var(--text); text-align: center; margin-block-start: 16px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* —— قاب تصویر —— */
.frame {
  display: block; position: relative; border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 70px -30px rgba(0, 0, 0, .8);
}
.frame .bar { display: flex; gap: 6px; align-items: center; height: 28px; padding-inline: 12px; background: #161C25; border-block-end: 1px solid var(--line); direction: ltr; }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: #2A3340; }
.frame img { width: 100%; height: auto; }
a.frame { transition: transform 300ms var(--ease-out), border-color .2s ease; }
@media (hover: hover) and (pointer: fine) { a.frame:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .22); } }

/* —— نوار واقعیت‌ها —— */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip div { padding: 22px 20px; border-inline-start: 1px solid var(--line); min-width: 0; }
.strip div:first-child { border-inline-start: 0; }
.strip b { display: block; font-size: 17px; color: var(--text); }
.strip span { font-size: 14px; color: var(--text-3); }
@media (max-width: 820px) { .strip .wrap { grid-template-columns: 1fr 1fr; } .strip div:nth-child(3) { border-inline-start: 0; } .strip div:nth-child(n+3) { border-block-start: 1px solid var(--line); } }

/* —— بخش‌ها —— */
.section { padding-block: clamp(80px, 10vw, 128px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { display: grid; gap: 14px; max-width: 760px; margin-block-end: clamp(36px, 5vw, 56px); }
.eyebrow { font-size: 13px; color: var(--gold); letter-spacing: .04em; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.head h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.5; }
.head p { color: var(--text-2); font-size: 17px; max-width: 62ch; }

/* خدمات: شش کارت */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc {
  position: relative; display: grid; gap: 12px; align-content: start; min-width: 0;
  padding: 26px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s ease, transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .svc:hover { border-color: rgba(205, 169, 104, .35); transform: translateY(-2px); } }
.svc .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.svc .ic svg { width: 22px; height: 22px; }
.svc h3 { font-size: 19px; }
.svc p { color: var(--text-2); font-size: 15.5px; line-height: 1.85; }
.svc ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; border-block-start: 1px solid var(--line); padding-block-start: 14px; }
.svc li { font-size: 14px; color: var(--text-3); padding-inline-start: 16px; position: relative; }
.svc li::before { content: ""; position: absolute; inset-inline-start: 0; top: .85em; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); opacity: .7; }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* نمونه‌کار */
.work-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.work-side { display: grid; gap: 20px; }
.work figure { margin: 0; min-width: 0; }
.work-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 28px; }
.tag { font-size: 13px; color: var(--text-2); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); }
.note { margin-block-start: 18px; font-size: 13px; color: var(--text-3); }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }

/* روش کار */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar { padding: 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.pillar h3 { font-size: 18px; margin-block-end: 8px; }
.pillar p { color: var(--text-2); font-size: 15.5px; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.steps::before { content: ""; position: absolute; top: 19px; inset-inline: 20px; height: 1px; background: linear-gradient(to left, var(--gold), var(--line-2) 60%); }
.steps li { position: relative; padding-inline-end: 20px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.steps .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--gold); color: var(--gold); font-size: 15px; margin-block-end: 10px; position: relative; }
.steps h3 { font-size: 17px; }
.steps .d { font-size: 13px; color: var(--gold); }
.steps p { font-size: 15px; color: var(--text-2); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* تیم */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.member { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: 22px; }
.member h3 { font-size: 18px; }
.member p { color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
@media (max-width: 720px) { .team { grid-template-columns: 1fr; } }

/* تماس */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.channels { display: grid; gap: 14px; margin-block-start: 28px; }
.channels div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--line); }
.channels small { color: var(--text-3); font-size: 14px; }
.channels b { font-weight: 400; overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--text-2); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--text); width: 100%;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; min-height: 46px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { font-size: 14px; color: var(--text-2); }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #F08A6C; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

.footer { border-block-start: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; }

/* ورود آرام هنگام اسکرول — فقط یک‌بار */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 200ms ease; }
  .btn, a.frame, .svc { transition: none; }
}

/* صفحه‌ی خطا */
.bare { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px; }
.bare h1 { font-size: clamp(28px, 4vw, 44px); margin-block: 12px 28px; }

/* —— نمونه‌کار با نمای گوشی —— */
.group { font-size: 20px; margin-block: 56px 6px; }
.group:first-of-type { margin-block-start: 8px; }
.group-sub { color: var(--text-2); font-size: 15.5px; margin-block-end: 24px; max-width: 70ch; }
.phones { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(176px, 1fr); gap: 20px; overflow-x: auto; padding-block-end: 12px; scroll-snap-type: x proximity; }
.phones::-webkit-scrollbar { height: 6px; }
.phones::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.phone { margin: 0; scroll-snap-align: start; min-width: 0; }
.phone-body { border-radius: 26px; padding: 7px; background: linear-gradient(160deg, #2A3340, #151B24); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); overflow: hidden; aspect-ratio: 9 / 16.2; }
.phone-body img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; }
.solo { max-width: 940px; }
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.skill { padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.skill h3 { font-size: 17px; margin-block-end: 8px; color: var(--gold); }
.skill p { font-size: 15px; color: var(--text-2); }
@media (max-width: 980px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } .phones { grid-auto-columns: 62%; } }

.svc--cta { background: linear-gradient(160deg, rgba(205, 169, 104, .14), rgba(205, 169, 104, .04)); border-color: rgba(205, 169, 104, .35); align-content: center; justify-items: start; }
.svc--cta p { color: var(--text-2); }
.svc { padding: 22px; }
.svc h3 { font-size: 18px; }
