/* ویزیتور من — سایت عمومی
   جهت طراحی: «دفتر». کاغذ گرم، مرکب ناوی، یک خط طلایی نازک، مُهر قرمز.
   تیترها با نازنین، متن با وزیرمتن، ارقام همیشه وزیرمتن (نازنین صفر را نقطه می‌کشد). */

/* ── فونت‌ها ─────────────────────────────────────────────────────────── */
@font-face { font-family: "Vazirmatn"; src: url("fonts/vazirmatn_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/vazirmatn_medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/vazirmatn_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/vazirmatn_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* Display: digits go to Vazirmatn (listed first, unicode-range), letters to Nazanin. */
@font-face { font-family: "Display"; src: url("fonts/vazirmatn_bold.ttf") format("truetype"); font-weight: 700; unicode-range: U+06F0-06F9, U+0030-0039, U+066B-066C, U+002C, U+002E, U+0025, U+066A; font-display: swap; }
@font-face { font-family: "Display"; src: local("B Nazanin"), url("fonts/BahijNazanin-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Display"; src: url("fonts/vazirmatn_regular.ttf") format("truetype"); font-weight: 400; unicode-range: U+06F0-06F9, U+0030-0039, U+066B-066C, U+002C, U+002E, U+0025, U+066A; font-display: swap; }
@font-face { font-family: "Display"; src: local("B Nazanin"), url("fonts/BahijNazanin-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ── توکن‌ها ─────────────────────────────────────────────────────────── */
:root {
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --ink: #14213d;
  --ink-2: #2b3a5c;
  --ink-soft: #5b6784;
  --rule: #d9d2c2;
  --rule-strong: #b9b09a;
  --gold: #b8963e;
  --stamp: #9b2226;
  --stamp-ink: #7a1b1f;
  --white: #fffdf9;
  --ok: #2f6b4f;
  --max: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Vazirmatn", "IRANSans", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  /* بافت کاغذ: نویز بسیار ملایم روی زمینه گرم */
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(184,150,62,.10), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.display { font-family: "Display", "Vazirmatn", serif; font-weight: 700; line-height: 1.25; letter-spacing: 0; }

/* ── سربرگ ───────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand b { font-family: "Display"; font-size: 24px; letter-spacing: 0; }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); padding-block: 4px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover { border-bottom-color: var(--gold); }
.top .call { font-size: 15px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.top .call .num { color: var(--stamp); }

/* ── قهرمان ───────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); }
/* سطرهای دفتر: خطوط افقی بسیار کم‌رنگ */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(20,33,61,.055) 39px 40px);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); letter-spacing: .02em; margin-bottom: 18px; }
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); margin: 0 0 22px; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--stamp); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 34em; margin: 0 0 34px; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* مُهر: دکمه‌ی تماس */
.stamp {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 26px 12px; text-decoration: none; color: var(--stamp);
  border: 2px solid var(--stamp); border-radius: 6px;
  transform: rotate(-1.2deg); transition: transform .25s, box-shadow .25s, background .25s;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(155,34,38,.35);
}
.stamp::after { content: ""; position: absolute; inset: 3px; border: 1px dashed rgba(155,34,38,.45); border-radius: 4px; pointer-events: none; }
.stamp small { font-size: 12.5px; letter-spacing: .06em; font-weight: 600; }
.stamp .num { font-family: "Vazirmatn"; font-size: 26px; font-weight: 700; letter-spacing: .04em; line-height: 1.1; }
.stamp:hover { transform: rotate(0) translateY(-2px); background: rgba(155,34,38,.06); }
.ghost { text-decoration: none; color: var(--ink-2); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; }
.ghost:hover { border-bottom-color: var(--ink); }

/* دستگاه‌ها: گوشی روی پنل */
.devices { position: relative; height: clamp(360px, 36vw, 500px); }
.devices .panel {
  position: absolute; inset-inline-end: -6%; top: 0; width: 100%;
  border: 1px solid var(--rule-strong); border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20,33,61,.45), 0 2px 0 var(--white) inset;
  transform: rotate(1.5deg);
}
.devices .phone {
  position: absolute; inset-inline-start: 0; bottom: 0; width: 37%; min-width: 160px;
  border-radius: 28px; padding: 9px; background: #1a1f2e;
  box-shadow: 0 40px 70px -30px rgba(20,33,61,.7), 0 0 0 1px rgba(255,255,255,.08) inset;
  transform: rotate(-4deg);
}
.devices .phone img { border-radius: 20px; }
.devices .phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 34%; height: 5px; background: #0e111a; border-radius: 3px; }

/* ── نوار دفتر: یک روز واقعی ───────────────────────────────────────── */
.ledger { border-block: 1px solid var(--rule-strong); background: var(--paper-2); }
.ledger .wrap { display: grid; grid-template-columns: auto repeat(4, 1fr); align-items: stretch; }
.ledger .label { padding: 18px 0; padding-inline-end: 28px; border-inline-end: 1px solid var(--rule-strong); font-size: 14px; color: var(--ink-soft); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.ledger .label b { font-size: 15px; color: var(--ink); }
.ledger .cell { padding: 18px 26px; border-inline-end: 1px solid var(--rule); }
.ledger .cell:last-child { border-inline-end: 0; }
.ledger .v { font-family: "Vazirmatn"; font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); line-height: 1.2; }
.ledger .k { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }

/* ── مسئله ──────────────────────────────────────────────────────────── */
.problem { padding-block: clamp(56px, 8vw, 96px); }
.problem .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.problem h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 14px; }
.problem p { color: var(--ink-2); margin: 0 0 14px; }
.gaps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.gaps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.gaps li i { font-style: normal; font-family: "Vazirmatn"; font-weight: 700; color: var(--gold); font-size: 14px; }
.gaps li span { color: var(--ink-2); }

/* ── نمایشگاه قابلیت‌ها ─────────────────────────────────────────────── */
.exhibits { padding-block: clamp(20px, 4vw, 48px) clamp(56px, 8vw, 96px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 0; }
.section-head span { font-size: 14px; color: var(--ink-soft); }

.exhibit { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(36px, 5vw, 72px); border-bottom: 1px solid var(--rule); }
.exhibit:nth-child(even) { grid-template-columns: 1.25fr 1fr; }
.exhibit:nth-child(even) .copy { order: 2; }
.exhibit .no { font-family: "Vazirmatn"; font-weight: 700; color: var(--gold); font-size: 15px; letter-spacing: .08em; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.exhibit .no::after { content: ""; flex: 1; height: 1px; background: var(--rule-strong); max-width: 90px; }
.exhibit h3 { font-size: clamp(26px, 2.8vw, 36px); margin: 0 0 12px; }
.exhibit p { color: var(--ink-2); margin: 0 0 12px; }
.exhibit .points { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.exhibit .points li { padding-inline-start: 18px; position: relative; color: var(--ink-2); font-size: 15.5px; }
.exhibit .points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 8px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.frame { border: 1px solid var(--rule-strong); border-radius: 6px; overflow: hidden; background: var(--white); box-shadow: 0 24px 50px -30px rgba(20,33,61,.4); transition: transform .3s, box-shadow .3s; }
.frame:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -30px rgba(20,33,61,.5); }
.frame figcaption { font-size: 13px; color: var(--ink-soft); padding: 10px 14px; border-top: 1px solid var(--rule); background: var(--paper-2); display: flex; justify-content: space-between; gap: 12px; }
.frame figcaption b { color: var(--ink); font-weight: 600; }
.pair { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.pair .phone { width: 150px; border-radius: 22px; padding: 7px; background: #1a1f2e; box-shadow: 0 30px 50px -28px rgba(20,33,61,.7); }
.pair .phone img { border-radius: 16px; }

.ledger-sample { font-family: "Vazirmatn"; font-size: 14px; border: 1px solid var(--rule-strong); border-radius: 6px; overflow: hidden; margin-top: 18px; background: var(--white); }
.ledger-sample div { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 9px 14px; border-bottom: 1px solid var(--rule); }
.ledger-sample div:last-child { border-bottom: 0; background: var(--paper-2); font-weight: 600; }
.ledger-sample .num { min-width: 7.5em; text-align: left; }

/* ── چرا ────────────────────────────────────────────────────────────── */
.why { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255,255,255,.04) 39px 40px); pointer-events: none; }
.why .wrap { position: relative; }
.why h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 0 0 8px; }
.why .sub { color: rgba(246,243,236,.7); margin: 0 0 40px; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.reasons div { background: var(--ink); padding: 26px 24px; }
.reasons h3 { margin: 0 0 8px; font-size: 20px; color: var(--paper); }
.reasons h3 .num { color: var(--gold); }
.reasons p { margin: 0; color: rgba(246,243,236,.72); font-size: 15px; }
.reasons .big { font-family: "Vazirmatn"; font-size: 40px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 10px; }

/* ── تماس ───────────────────────────────────────────────────────────── */
.contact { padding-block: clamp(64px, 9vw, 110px); }
.contact .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.contact h2 { font-size: clamp(30px, 4vw, 50px); margin: 0 0 14px; }
.contact p { color: var(--ink-2); margin: 0 0 24px; max-width: 30em; }
.card { border: 1px solid var(--rule-strong); background: var(--white); border-radius: 6px; padding: 30px; box-shadow: 0 24px 50px -34px rgba(20,33,61,.4); }
.card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; }
.card dt { color: var(--ink-soft); font-size: 14px; }
.card dd { margin: 0; font-weight: 500; }
.card .stamp { margin-top: 22px; transform: rotate(-1.2deg); }
.card .who { font-size: 14px; color: var(--ink-soft); margin-top: 16px; }

/* ── پاورقی ─────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--rule-strong); padding-block: 26px; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.gold-rule { height: 1px; background: linear-gradient(to left, transparent, var(--gold), transparent); margin: 0 auto; max-width: var(--max); }

/* ── ورود صفحه ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: up .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .reveal:nth-child(1) { animation-delay: .05s } .reveal:nth-child(2) { animation-delay: .15s }
  .reveal:nth-child(3) { animation-delay: .25s } .reveal:nth-child(4) { animation-delay: .35s }
  .devices { opacity: 0; animation: up .9s .3s cubic-bezier(.2,.7,.2,1) forwards; }
  @keyframes up { to { opacity: 1; transform: none; } }
}

/* ── پاسخ‌گو ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .wrap, .problem .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .devices { height: auto; min-height: 380px; margin-top: 12px; }
  .devices .panel { position: relative; inset: auto; width: 100%; transform: none; }
  .devices .phone { width: 38%; inset-inline-start: 2%; bottom: 0; }
  .devices { padding-bottom: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .exhibit, .exhibit:nth-child(even) { grid-template-columns: 1fr; }
  .exhibit:nth-child(even) .copy { order: 0; }
  .reasons { grid-template-columns: 1fr; }
  .ledger .wrap { grid-template-columns: 1fr 1fr; }
  .ledger .label { grid-column: 1 / -1; border-inline-end: 0; border-bottom: 1px solid var(--rule-strong); padding-inline-end: 0; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .ledger .wrap { grid-template-columns: 1fr; }
  .ledger .cell { border-inline-end: 0; border-bottom: 1px solid var(--rule); }
  .top .call span.t { display: none; }
  .pair { grid-template-columns: 1fr; }
  .pair .phone { width: 130px; justify-self: end; margin-top: -60px; position: relative; z-index: 1; }
}
