/* ============================================================
   سازبان — Landing «نقشهٔ فنی» (Technical Blueprint Editorial)
   فونتِ برند خود-میزبان · شبکهٔ مهندسی · موتیفِ سقف · تکْ‌لهجهٔ طلایی
   ============================================================ */

@font-face {
  font-family: "IRANYekanX";
  src: url("/fonts/IRANYekanXFaNumVF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  /* تیل (دامنهٔ غالب) */
  --ink:        #06181B;
  --ink-2:      #08262B;
  --panel:      #0b2a31;
  --panel-2:    #0e333a;
  --teal-700:   #0A5E66;
  --teal-500:   #11929F;
  --teal-400:   #2BAFBD;
  --teal-300:   #5FC8D2;
  /* طلا (تک‌لهجه) */
  --gold:       #E5AC52;
  --gold-2:     #C9871F;
  /* جوهر/خنثی */
  --text:       #E7F2F2;
  --muted:      #94B1B3;
  --faint:      #5E7C7F;
  /* خطوط نقشه */
  --grid-line:       rgba(95,200,210,.045);
  --grid-line-major: rgba(95,200,210,.085);
  --line:            rgba(95,200,210,.18);
  --line-soft:       rgba(95,200,210,.10);

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --maxw: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "IRANYekanX", Tahoma, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* بافتِ نقشه: شبکهٔ ریز + شبکهٔ اصلی، با محوشدگی به سمتِ لبه‌ها */
.bp-grid {
  position: fixed; inset: 0; z-index: -2; background-color: var(--ink);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-major) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px, 150px 150px, 150px 150px;
  -webkit-mask-image: radial-gradient(135% 100% at 75% -10%, #000 50%, transparent 100%);
          mask-image: radial-gradient(135% 100% at 75% -10%, #000 50%, transparent 100%);
}
/* هالهٔ نوریِ گوشه (مثلِ نورِ روی میزِ نقشه‌کشی) */
.bp-grid::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 40% at 80% 0%, rgba(43,175,189,.16), transparent 70%),
    radial-gradient(45% 35% at 8% 8%, rgba(229,172,82,.06), transparent 70%);
}
.bp-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute; right: -999px; top: 8px; z-index: 100;
  background: var(--gold); color: #1a1206; padding: 8px 16px; border-radius: 10px; font-weight: 800;
}
.skip-link:focus { right: 12px; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ───────── دکمه‌ها ───────── */
.btn {
  --pad: 11px 20px;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: var(--pad); border-radius: 12px; font-family: inherit; font-weight: 800;
  font-size: .98rem; cursor: pointer; border: 1px solid transparent; transition: all .2s ease;
  white-space: nowrap;
}
.btn--lg { --pad: 15px 30px; font-size: 1.06rem; border-radius: 14px; }
.btn--gold { background: var(--gold); color: #1a1206; box-shadow: 0 8px 26px rgba(229,172,82,.28); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(229,172,82,.42); }
.btn--ghost { color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-300); color: var(--teal-300); }
.btn--line { color: var(--teal-300); border-color: var(--line); background: rgba(95,200,210,.04); }
.btn--line:hover { background: rgba(95,200,210,.1); border-color: var(--teal-300); }
.btn__arrow { width: 18px; height: 18px; transition: transform .2s; }
.btn--gold:hover .btn__arrow { transform: translateX(-3px); }

/* ───────── نوار بالا ───────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  backdrop-filter: blur(8px);
}
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(var(--ink), rgba(6,24,27,.6)); border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.brand__mark svg { width: 27px; height: 27px; }
.brand__mark--sm { width: 46px; height: 46px; }
.brand__word { font-weight: 900; font-size: 1.4rem; letter-spacing: -.01em; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { color: var(--muted); font-weight: 700; font-size: .98rem; position: relative; }
.nav a:hover { color: var(--text); }
.nav a::after { content: ""; position: absolute; bottom: -6px; right: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.topbar__cta { display: flex; align-items: center; gap: 10px; }

.navtoggle { display: none; flex-direction: column; gap: 5px; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px; cursor: pointer; }
.navtoggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobilenav {
  display: none; flex-direction: column; gap: 6px; padding: 8px 24px 18px;
  max-width: var(--maxw); margin: 0 auto;
}
.mobilenav.open { display: flex; }
.mobilenav a { padding: 12px 14px; border-radius: 12px; color: var(--text); font-weight: 700;
  border: 1px solid var(--line-soft); }
.mobilenav .btn--gold { justify-content: center; margin-top: 4px; }

/* ───────── چیدمانِ بخش‌ها ───────── */
section { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section-head { margin-bottom: 40px; }
.kicker { font-size: .82rem; font-weight: 800; letter-spacing: .14em; color: var(--gold); }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 900; line-height: 1.25; margin: 10px 0 0;
  letter-spacing: -.02em; }

/* ───────── قهرمان ───────── */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-weight: 800; color: var(--teal-300); font-size: .98rem;
  background: rgba(95,200,210,.07); border: 1px solid var(--line-soft);
  padding: 7px 14px; border-radius: 999px; }
.eyebrow .tick { color: var(--gold); }
h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 900; line-height: 1.12;
  letter-spacing: -.03em; margin: 0 0 22px;
}
h1 .hl { color: var(--gold); position: relative; white-space: nowrap; }
h1 .hl::after {
  content: ""; position: absolute; right: 0; bottom: .08em; width: 100%; height: .5em; z-index: -1;
  background: repeating-linear-gradient(45deg, rgba(229,172,82,.16) 0 5px, transparent 5px 10px);
}
.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0;
  margin: 30px 0 0; color: var(--faint); font-size: .92rem; font-weight: 700; }
.hero__chips li { position: relative; padding-inline-start: 18px; }
.hero__chips li::before { content: "▸"; position: absolute; right: 0; color: var(--teal-400); }

/* نقشهٔ مالی — انکرِ متمایزکننده */
.spec {
  position: relative; background:
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 20px; box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.spec::before { /* گوشهٔ تاشدهٔ نقشه */
  content: ""; position: absolute; top: -1px; left: -1px; width: 46px; height: 46px;
  background: linear-gradient(225deg, var(--ink) 50%, transparent 50%);
  border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 8px;
}
.spec__head { display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--faint); }
.spec__tag { color: var(--teal-300); }
.spec__title { font-weight: 900; font-size: 1.35rem; margin: 6px 0 18px; }
.spec__row { display: flex; align-items: baseline; gap: 4px; padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft); }
.spec__row:last-of-type { border-bottom: 0; }
.spec__label { color: var(--muted); font-size: .98rem; font-weight: 600; white-space: nowrap; }
.dimline { flex: 1; align-self: center; height: 0; border-top: 1px dashed var(--line);
  margin: 0 8px; position: relative; }
.dimline::before, .dimline::after { content: ""; position: absolute; top: -3px; width: 1px; height: 7px;
  background: var(--line); }
.dimline::before { right: 0; } .dimline::after { left: 0; }
.spec__val { font-weight: 900; font-size: 1.06rem; white-space: nowrap; }
.spec__val i { font-style: normal; color: var(--faint); font-size: .8em; font-weight: 700; }
.spec__val--pos { color: var(--teal-300); }
.spec__val--warn { color: var(--gold); }
.spec__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  color: var(--faint); font-size: .82rem; }
.spec__scale { color: var(--line); letter-spacing: 2px; }

/* ───────── نوارِ مسئله ───────── */
.band--problem { padding-top: 18px; padding-bottom: 18px; }
.band--problem p {
  font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 800; line-height: 1.6; max-width: 920px;
  border-inline-start: 4px solid var(--gold); padding-inline-start: 22px; margin: 0;
}
.band--problem strong { color: var(--gold); font-weight: 900; }

/* ───────── ویژگی‌ها ───────── */
.features { padding-top: clamp(70px, 10vw, 120px); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; }
.card { position: relative; background: var(--ink); padding: 34px 26px 30px; transition: background .25s; }
.card:hover { background: var(--ink-2); }
.card__no { font-family: var(--mono); font-size: .78rem; color: var(--faint); letter-spacing: .1em; }
.card .ic { width: 34px; height: 34px; color: var(--teal-300); margin: 16px 0 14px; display: block; }
.card h3 { font-size: 1.25rem; font-weight: 900; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card--accent { background: linear-gradient(180deg, rgba(229,172,82,.07), var(--ink)); }
.card--accent .ic { color: var(--gold); }
.card::after { /* خطِ گوشهٔ طلایی هنگامِ hover */
  content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 3px;
  background: var(--gold); transition: width .3s; }
.card:hover::after { width: 100%; }

/* ───────── چطور کار می‌کند ───────── */
.how { padding-top: clamp(70px, 10vw, 120px); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; padding: 30px 24px; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), transparent); }
.step__no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(95,200,210,.1); color: var(--teal-300); font-weight: 900; font-size: 1.3rem;
  border: 1px solid var(--line); }
.step h3 { margin: 16px 0 6px; font-size: 1.2rem; font-weight: 900; }
.step p { color: var(--muted); margin: 0; }
.step:not(:last-child)::before { /* پیکانِ توالی (در RTL رو به چپ) */
  content: "‹"; position: absolute; top: 50%; left: -20px; transform: translateY(-50%);
  color: var(--faint); font-size: 1.6rem; }

/* ───────── چرا سازبان ───────── */
.why { padding-top: clamp(70px, 10vw, 120px); }
.why__inner { border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(30px, 5vw, 56px); background:
    radial-gradient(80% 120% at 90% 0%, rgba(43,175,189,.1), transparent 60%), var(--ink-2); }
.why__list { list-style: none; padding: 0; margin: 14px 0 0; display: grid;
  grid-template-columns: 1fr 1fr; gap: 16px 34px; }
.why__list li { display: flex; gap: 12px; font-size: 1.06rem; font-weight: 600; color: var(--text); }
.why__list span { color: var(--gold); flex-shrink: 0; }

/* ───────── فراخوان ───────── */
.cta { text-align: center; padding-top: clamp(80px, 11vw, 130px); padding-bottom: clamp(60px, 8vw, 100px); }
.cta__mark { display: inline-grid; place-items: center; width: 78px; height: 78px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.cta__mark svg { width: 46px; height: 46px; }
.cta h2 { max-width: 760px; margin-inline: auto; }
.cta p { color: var(--muted); font-size: 1.15rem; margin: 14px 0 30px; }

/* ───────── پاورقی ───────── */
.footer { max-width: var(--maxw); margin: 40px auto 0; padding: 34px 24px 48px;
  border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand strong { display: block; font-size: 1.15rem; font-weight: 900; }
.footer__brand span { color: var(--muted); font-size: .9rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; margin-inline-start: auto; }
.footer__nav a { color: var(--muted); font-weight: 700; }
.footer__nav a:hover { color: var(--gold); }
.footer__copy { width: 100%; color: var(--faint); font-size: .85rem; letter-spacing: .02em; margin: 6px 0 0; }

/* ───────── حرکت ───────── */
.roof { stroke-dasharray: 66; stroke-dashoffset: 66; animation: draw 1.1s ease forwards .25s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ───────── واکنش‌گرا ───────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .spec { max-width: 480px; }
  .nav { display: none; }
  .topbar__cta .btn--ghost { display: none; }
  .navtoggle { display: flex; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::before { content: "›"; top: auto; bottom: -20px; right: 50%; left: auto;
    transform: translateX(50%) rotate(90deg); }
  .why__list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
  .footer__nav { margin-inline-start: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
