/* ============================ توکن‌های طراحی ============================ */
:root {
  --bg: oklch(0.11 0.005 250);
  --bg-deep: oklch(0.1 0.006 252);
  --bg-deeper: oklch(0.09 0.006 250);
  --bg-map: oklch(0.115 0.006 252);
  --card: oklch(0.13 0.006 252);
  --card-hover: oklch(0.155 0.008 254);
  --input-bg: oklch(0.1 0.006 252);
  --hairline: oklch(0.2 0.006 250);
  --hairline-soft: oklch(0.18 0.006 250);
  --input-border: oklch(0.24 0.006 250);
  --border-muted: oklch(0.44 0.006 250);
  --accent: oklch(0.84 0.075 74);
  --accent-line: oklch(0.82 0.075 72);
  --accent-bright: oklch(0.9 0.06 78);
  --accent-stat: oklch(0.9 0.05 78);
  --on-accent: oklch(0.16 0.02 70);
  --text: oklch(0.96 0.004 90);
  --text-strong: oklch(0.97 0.004 90);
  --text-2: oklch(0.84 0.006 250);
  --text-3: oklch(0.72 0.006 250);
  --text-nav: oklch(0.84 0.004 250);
  --muted: oklch(0.66 0.006 250);
  --muted-2: oklch(0.62 0.006 250);
  --muted-3: oklch(0.58 0.006 250);
  --muted-4: oklch(0.68 0.006 250);
  --idx: oklch(0.42 0.006 250);
  --link: oklch(0.82 0.075 74);
  --link-hover: oklch(0.9 0.06 78);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-marker: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Vazirmatn, system-ui, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
::selection { background: oklch(0.82 0.075 72); color: oklch(0.14 0.01 70); }
input, textarea, button, select { font: inherit; color: inherit; }
img, svg, video { display: block; }

/* اسکرول تمام‌صفحه */
@media (min-width: 900px) and (min-height: 640px) {
  html { scroll-snap-type: y mandatory; }
}
.contact-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================================ هدر ================================ */
.site-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 18px 44px;
  background: linear-gradient(to bottom, oklch(0.09 0.006 250 / 0.72), transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.logo-link { display: inline-flex; line-height: 0; }
.logo { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 5px 16px oklch(0.08 0.01 250 / .65)); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--text-nav); white-space: nowrap; }
.nav-link { color: inherit; transition: color 200ms var(--ease-out); }
.nav-link:hover { color: var(--text-strong); }
.nav-link.is-active { color: var(--text-strong); }
.cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px;
  border: 1px solid oklch(0.78 0.08 70 / 0.5); color: oklch(0.88 0.05 75);
  font-size: 13.5px; background: oklch(0.78 0.08 70 / 0.07);
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out); white-space: nowrap;
}
.cta:hover { color: oklch(0.92 0.05 76); background: oklch(0.78 0.08 70 / 0.14); border-color: oklch(0.8 0.08 70 / 0.7); }
@media (max-width: 900px) { .site-header { padding: 16px 22px; } .nav { display: none; } }
@media (max-width: 460px) { .cta { padding: 9px 15px; font-size: 12.5px; } }

/* شریط مشترک بخش‌ها */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 0.28em; color: var(--accent); }
.sec-line { width: 40px; height: 1px; background: var(--accent-line); }

/* ================================ Hero ================================ */
.hero { position: relative; height: 100vh; background: var(--bg); scroll-snap-align: start; scroll-snap-stop: always; }
.hero-pin { position: relative; top: 0; height: 100vh; overflow: hidden; }
.hero-media { position: absolute; inset: -6% -4%; will-change: transform; transform: scale(1.06); }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.55) brightness(0.5) saturate(0); }
.ov-color, .ov-overlay, .ov-screen, .ov-vignette, .ov-scrim { position: absolute; inset: 0; pointer-events: none; }
.ov-color { background: linear-gradient(180deg, oklch(0.2 0.02 255) 0%, oklch(0.13 0.012 258) 100%); mix-blend-mode: color; }
.ov-overlay { background: linear-gradient(180deg, oklch(0.86 0.07 76 / 0.5) 0%, oklch(0.5 0.05 70 / 0.22) 42%, transparent 78%); mix-blend-mode: overlay; }
.ov-screen { background: radial-gradient(100% 70% at 52% 62%, oklch(0.9 0.06 78 / 0.22) 0%, transparent 60%); mix-blend-mode: screen; }
.ov-vignette { background: radial-gradient(130% 100% at 50% 42%, transparent 45%, oklch(0.08 0.006 250 / 0.78) 100%); }
.ov-scrim { background: linear-gradient(to top, oklch(0.09 0.006 250 / 0.94) 0%, oklch(0.09 0.006 250 / 0.25) 38%, transparent 62%); }
.hero-copy { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; padding: 0 44px 40px; }
.hero-center { align-self: center; padding-top: 96px; display: grid; justify-items: center; text-align: center; gap: 24px; max-width: 980px; margin: 0 auto; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12.5px; letter-spacing: 0.05em; color: oklch(0.78 0.04 75); animation: riseIn 900ms var(--ease-out) both; }
.hero-eyebrow-line { width: 34px; height: 1px; background: var(--accent-line); display: inline-block; transform-origin: center; animation: lineGrow 1100ms var(--ease-out) 200ms both; }
.hero-h1 { margin: 0; font-size: clamp(40px, 5.6vw, 88px); line-height: 1.08; font-weight: 700; letter-spacing: -0.012em; text-shadow: 0 2px 40px oklch(0.08 0.01 250 / 0.6); animation: riseIn 1000ms var(--ease-out) 120ms both; }
.hero-h1-accent { color: var(--accent); }
.hero-lead { margin: 0; max-width: 620px; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.85; color: var(--text-2); animation: riseIn 1000ms var(--ease-out) 240ms both; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; animation: riseIn 1000ms var(--ease-out) 360ms both; }
.btn-primary { display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; transition: background 300ms var(--ease-out); }
.btn-primary:hover { background: var(--accent-bright); color: var(--on-accent); }
.btn-secondary { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border: 1px solid var(--border-muted); color: oklch(0.94 0.004 250); font-size: 15px; transition: border-color 300ms var(--ease-out), background 300ms var(--ease-out); }
.btn-secondary:hover { border-color: oklch(0.6 0.02 72); background: oklch(1 0 0 / 0.03); color: oklch(0.97 0.004 250); }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-top: 1px solid oklch(1 0 0 / 0.12); padding-top: 20px; }
.hero-stats { display: flex; gap: 46px; }
.hero-stat { display: grid; gap: 6px; }
.hero-stat-num { font-size: 27px; font-weight: 600; }
.hero-stat-label { font-size: 12.5px; color: var(--muted-4); }
.scroll-hint { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); animation: nudge 2200ms ease-in-out infinite; white-space: nowrap; }
.scroll-tick { width: 1px; height: 26px; background: linear-gradient(to bottom, var(--accent-line), transparent); }
@media (max-width: 720px) {
  .hero-copy { padding: 0 22px 28px; }
  .hero-center { padding-top: 80px; gap: 20px; }
  .hero-stats { gap: 26px; }
  .hero-bottom { flex-direction: column; align-items: stretch; gap: 18px; }
  .scroll-hint { justify-content: flex-start; }
}
@media (max-width: 460px) { .hero-stats { gap: 18px; } .hero-stat-num { font-size: 22px; } }

/* =============================== Story =============================== */
.scene { position: relative; height: 100vh; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transform-origin: left top; filter: grayscale(1) contrast(1.4) brightness(0.46) saturate(0); }
.scene-ov-side { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, oklch(0.07 0.006 250 / 0.94) 0%, oklch(0.08 0.008 252 / 0.7) 42%, oklch(0.08 0.006 250 / 0.2) 72%, transparent 92%); }
.scene-ov-radial { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 110% at 20% 50%, transparent 38%, oklch(0.07 0.006 250 / 0.55) 100%); }
.scene-caption-wrap { position: absolute; inset: 0; display: flex; align-items: center; }
.scene-caption { max-width: 560px; padding: 0 clamp(44px, 8vw, 130px); display: grid; gap: 22px; }
.scene-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 0.28em; color: var(--accent); }
.scene-no { font-size: 15px; font-weight: 600; }
.scene-line { width: 40px; height: 1px; background: var(--accent-line); }
.scene-title { margin: 0; font-size: clamp(32px, 4vw, 58px); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; text-shadow: 0 2px 30px oklch(0.06 0.01 250 / 0.85); }
.scene-body { margin: 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.9; color: oklch(0.9 0.006 250); text-shadow: 0 1px 18px oklch(0.06 0.01 250 / 0.9); }
@media (max-width: 460px) { .scene-eyebrow { letter-spacing: 0.2em; } }

/* ============================== بخش عمومی ============================== */
.section { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: clamp(96px, 12vh, 150px) clamp(44px, 6vw, 110px) clamp(56px, 8vh, 90px); scroll-snap-align: start; scroll-snap-stop: always; }
.section--alt { background: var(--bg-deep); border-top: 1px solid var(--hairline-soft); }
.section-inner { width: 100%; margin: 0 auto; }
.section-head { max-width: 720px; display: grid; gap: 18px; margin-bottom: clamp(36px, 5vh, 56px); }
.section-title { margin: 0; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.14; font-weight: 700; letter-spacing: -0.01em; }
.section-lead { margin: 0; font-size: 17px; line-height: 1.85; color: var(--text-3); }

/* ============================== Services ============================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.service-card { position: relative; background: var(--card); padding: 34px 30px 38px; display: grid; gap: 16px; align-content: start; transition: background 500ms var(--ease-out); }
.service-card:hover { background: var(--card-hover); }
.service-card-top { display: flex; align-items: center; justify-content: space-between; }
.service-icon-box { width: 46px; height: 46px; border: 1px solid oklch(0.82 0.075 72 / 0.4); display: grid; place-items: center; color: var(--accent); overflow: hidden; }
.service-glyph { width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: 5px 5px 0 -1px oklch(0.84 0.075 74 / 0.35); }
.service-icon-img { width: 26px; height: 26px; object-fit: contain; }
.service-index { font-size: 13px; color: var(--idx); }
.service-title { margin: 6px 0 0; font-size: 20px; font-weight: 600; }
.service-body { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--muted); }

/* ================================ Blog ================================ */
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vh, 56px); flex-wrap: wrap; }
.blog-head-text { max-width: 720px; display: grid; gap: 18px; }
.blog-all { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 1px solid var(--border-muted); color: oklch(0.94 0.004 250); font-size: 14px; white-space: nowrap; transition: border-color 300ms var(--ease-out), background 300ms var(--ease-out), color 300ms var(--ease-out); }
.blog-all:hover { border-color: var(--accent); color: var(--accent-bright); background: oklch(0.78 0.08 70 / 0.07); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.blog-card { display: flex; flex-direction: column; background: var(--card); color: inherit; transition: background 500ms var(--ease-out); }
.blog-card:hover { background: var(--card-hover); }
.blog-card:hover .blog-card-title { color: var(--accent-bright); }
.blog-cover { position: relative; aspect-ratio: 16 / 9; background-color: var(--bg-map); background-size: cover; background-position: center; border-bottom: 1px solid var(--hairline); display: grid; place-items: center; overflow: hidden; }
.blog-cover-mark { width: 40px; height: 40px; border: 1.5px solid oklch(0.82 0.075 72 / 0.5); border-radius: 3px; box-shadow: 8px 8px 0 -1px oklch(0.84 0.075 74 / 0.22); }
.blog-card-body { padding: 26px 26px 30px; display: grid; gap: 12px; align-content: start; }
.blog-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.blog-cat { color: var(--accent); letter-spacing: 0.02em; }
.blog-date { color: var(--muted-3); }
.blog-card-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4; transition: color 300ms var(--ease-out); }
.blog-excerpt { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-readmore { margin-top: 4px; font-size: 13.5px; color: var(--accent); }
.blog-empty { color: var(--muted); font-size: 16px; }

/* ================================ About ================================ */
.about-wrap { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(48px, 6vw, 96px); align-items: center; }
.about-intro { display: grid; gap: 22px; }
.about-lead { margin: 0; font-size: 16.5px; line-height: 1.9; color: oklch(0.74 0.006 250); }
.about-cta { display: inline-flex; align-items: center; gap: 12px; padding: 14px 28px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; width: fit-content; transition: background 300ms var(--ease-out); }
.about-cta:hover { background: var(--accent-bright); color: var(--on-accent); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.stat-cell { background: var(--card); padding: 38px 30px; display: grid; gap: 10px; }
.stat-num { font-size: clamp(38px, 4vw, 56px); font-weight: 700; color: var(--accent-stat); letter-spacing: -0.02em; line-height: 1; }
.stat-label { font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 380px) { .stat-cell { padding: 30px 22px; } }

/* =============================== Contact =============================== */
.contact { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: clamp(96px, 11vh, 140px) clamp(44px, 6vw, 110px) clamp(48px, 6vh, 80px); background: var(--bg-deep); border-top: 1px solid var(--hairline-soft); }
.contact-wrap { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(40px, 5vw, 88px); align-items: center; }
.contact-info { display: grid; gap: 24px; align-content: start; }
.contact-title { margin: 0; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.14; font-weight: 700; letter-spacing: -0.01em; }
.contact-lead { margin: 0; font-size: 16.5px; line-height: 1.9; color: oklch(0.74 0.006 250); }
.contact-rows { display: grid; gap: 16px; margin-top: 8px; }
.contact-row { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--text-2); }
a.contact-row { transition: color 200ms var(--ease-out); }
a.contact-row:hover { color: var(--accent); }
.contact-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.contact-form { display: grid; gap: 18px; align-content: start; background: var(--card); border: 1px solid var(--hairline); padding: clamp(30px, 4vw, 46px); }
.field { display: grid; gap: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.label { font-size: 13px; color: var(--muted-2); }
.input, .textarea { background: var(--input-bg); border: 1px solid var(--input-border); padding: 14px 16px; outline: none; color: var(--text); transition: border-color 200ms var(--ease-out); width: 100%; }
.textarea { resize: vertical; }
.input:focus, .textarea:focus { border-color: oklch(0.82 0.075 72); }
.input::placeholder, .textarea::placeholder { color: oklch(0.5 0.006 250); }
.submit { margin-top: 4px; padding: 15px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: background 300ms var(--ease-out); }
.submit:hover { background: var(--accent-bright); }
.form-ok { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: var(--accent-bright); }
.form-error { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: oklch(0.72 0.14 25); }
@media (max-width: 460px) { .two-col { grid-template-columns: 1fr; } }

/* =============================== Footer =============================== */
.site-footer { padding: 48px clamp(44px, 6vw, 110px); background: var(--bg-deeper); border-top: 1px solid var(--hairline-soft); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 52px; height: 52px; object-fit: contain; }
.footer-copy { font-size: 14px; color: var(--muted-2); }
.footer-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.footer-links a { color: inherit; transition: color 200ms var(--ease-out); }
.footer-links a:hover { color: var(--accent); }

/* ========================= صفحات وبلاگ (جدا) ========================= */
.page { max-width: 1200px; margin: 0 auto; padding: clamp(120px, 16vh, 180px) clamp(28px, 6vw, 90px) clamp(80px, 12vh, 140px); min-height: 100vh; }
.page-head { max-width: 760px; display: grid; gap: 20px; margin-bottom: clamp(44px, 6vh, 72px); }
.page-title { margin: 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.12; font-weight: 700; letter-spacing: -0.012em; }

.article { max-width: 820px; margin: 0 auto; display: grid; gap: 20px; }
.article-back { font-size: 14px; color: var(--muted); transition: color 200ms var(--ease-out); width: fit-content; }
.article-back:hover { color: var(--accent); }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; margin-top: 8px; }
.article-title { margin: 0; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.2; font-weight: 700; letter-spacing: -0.012em; }
.article-excerpt { margin: 0; font-size: 18px; line-height: 1.9; color: var(--text-2); }
.article-cover { width: 100%; height: auto; border: 1px solid var(--hairline); margin: 12px 0; }
.article-body { display: grid; gap: 22px; margin-top: 8px; border-top: 1px solid var(--hairline); padding-top: 32px; }
.article-body h2 { margin: 12px 0 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.3; color: var(--text-strong); }
.article-body h3 { margin: 8px 0 0; font-size: clamp(18px, 2vw, 22px); font-weight: 600; color: var(--text-strong); }
.article-body p { margin: 0; font-size: 16.5px; line-height: 2; color: var(--text-2); }
