:root {
  --page: #eef3f8;
  --paper: #fffdf8;
  --ink: #152033;
  --muted: #64748b;
  --line: #d7dee8;
  --primary: #0f766e;
  --primary-dark: #134e4a;
  --good: #15803d;
  --bad: #b91c1c;
  --shadow: 0 22px 54px rgba(15, 23, 42, .09);
}

@font-face {
  font-family: "IRANSansFaNum";
  src: url("../assets/font/IRANSansWeb(FaNum).woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansFaNum";
  src: url("../assets/font/IRANSansWeb(FaNum)_Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansFaNum";
  src: url("../assets/font/IRANSansWeb(FaNum)_Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansFaNum";
  src: url("../assets/font/IRANSansWeb(FaNum)_Black.woff2") format("woff2");
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, .03) 1px, transparent 1px),
    var(--page);
  background-size: 36px 36px, 36px 36px, auto;
  color: var(--ink);
  font-family: "IRANSansFaNum", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.95;
}

a { color: inherit; text-decoration: none; }

.hero-content,
.section,
footer {
  width: min(1080px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.hero { padding: 8px 0 28px; }

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid rgba(203, 213, 225, .95);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(248, 250, 252, .94));
  box-shadow: var(--shadow);
}

.hero-art {
  min-height: 360px;
  margin: 0;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 12px 16px 0 rgba(15, 23, 42, .1);
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge,
.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: #0f172a;
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 span {
  display: block;
  margin-top: 8px;
  color: var(--primary-dark);
  font-size: clamp(1.1rem, 3vw, 2.1rem);
}

.intro {
  max-width: 760px;
  margin: 0 0 12px;
  color: #334155;
  font-size: 1rem;
}

.muted { color: var(--muted); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 900;
}

.primary {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.secondary {
  background: rgba(255, 255, 255, .72);
  color: var(--primary-dark);
}

.section { padding: 28px 0; }

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(203, 213, 225, .86);
}

.section-title h2,
.factor h2 {
  margin: 0;
  letter-spacing: 0;
}

.section-title h2 {
  color: #0f172a;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.35;
}

.grid {
  display: grid;
  gap: 14px;
}

.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.panel h3,
.panel h4 {
  margin: 0 0 8px;
  color: #0f172a;
  line-height: 1.45;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.factor-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.factor-nav a {
  min-height: 72px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  color: #1e293b;
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.factor-nav a:hover,
.factor-nav a:focus-visible {
  border-color: rgba(15, 118, 110, .34);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .07);
  outline: none;
  transform: translateY(-2px);
}

.factor-nav span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 10px;
  background: rgba(240, 253, 250, .84);
  color: var(--primary-dark);
  font-size: .78rem;
}

.factors-list { padding-top: 10px; }

.factor {
  scroll-margin-top: 24px;
  margin-bottom: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(203, 213, 225, .95);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.factor-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(203, 213, 225, .78);
}

.factor-num {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 12px;
  background: rgba(240, 253, 250, .88);
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 950;
}

.factor h2 {
  color: #0f172a;
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.factor h3 {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.factor-art {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid rgba(203, 213, 225, .95);
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .075);
  aspect-ratio: 16 / 7.2;
}

.factor-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: inherit;
  pointer-events: none;
}

.factor-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead {
  margin: 0 0 18px;
  color: #26364d;
  font-size: 1.04rem;
  line-height: 2;
}

.examples { margin-top: 14px; }

ul {
  margin: 0;
  padding: 0 20px 0 0;
  color: var(--muted);
}

.accent {
  border-color: rgba(15, 118, 110, .22);
  background: rgba(240, 253, 250, .72);
}

.bad { border-color: rgba(185, 28, 28, .2); }
.good { border-color: rgba(21, 128, 61, .2); }
.bad h4 { color: var(--bad); }
.good h4 { color: var(--good); }

footer {
  margin-top: 10px;
  padding: 26px 0 48px;
  border-top: 1px solid rgba(203, 213, 225, .9);
  color: var(--muted);
}

footer p { margin: 0 0 6px; }
.small { font-size: .9rem; }

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, .95);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.download-panel strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 1rem;
}

.download-panel p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-art {
    min-height: 180px;
    aspect-ratio: 16 / 9;
  }
  .two,
  .three,
  .factor-nav {
    grid-template-columns: 1fr;
  }
  .section-title { display: block; }
  .factor-head { align-items: flex-start; }
  .factor-art { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .download-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .download-panel .button {
    width: 100%;
  }

  .hero-content {
    padding: 22px;
    border-radius: 18px;
  }
}
