:root {
  --brand: #17803f;
  --brand-deep: #0e5a2b;
  --brand-soft: #e4f3e8;
  --bg: #ffffff;
  --bg-soft: #f6f8f6;
  --text: #16211a;
  --muted: #5c6b61;
  --line: #dfe6e1;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(16, 40, 24, .06), 0 8px 24px rgba(16, 40, 24, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5bc97c;
    --brand-deep: #8be3a4;
    --brand-soft: #1b3325;
    --bg: #121212;
    --bg-soft: #181818;
    --text: #ececec;
    --muted: #a9a9a9;
    --line: #2c2c2c;
    --card: #1b1b1b;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark { height: 34px; }

.brand-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-deep);
}

.nav { display: flex; gap: 22px; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover { color: var(--brand); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 40px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.35;
  letter-spacing: -.2px;
}

.lede {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}

.btn:hover { transform: translateY(-1px); border-color: var(--brand); }

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .btn.primary { color: #06210f; }
}

.btn-title { font-weight: 700; font-size: 15px; }
.btn-sub { font-size: 12px; opacity: .85; }

.btn.small {
  flex-direction: row;
  padding: 8px 16px;
  font-size: 13px;
  box-shadow: none;
}

.fine {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: min(340px, 100%);
  filter: drop-shadow(0 18px 32px rgba(20, 100, 50, .18));
}

.section { padding: 44px 0; }

h2 {
  font-size: 24px;
  margin: 0 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
  margin-bottom: 8px;
}

.download-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.download-row + .download-row { border-top: 1px solid var(--line); }

.download-row p { margin: 2px 0 0; }

.download-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

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

code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  direction: ltr;
  unicode-bidi: embed;
}

.checksums {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.checksums summary { cursor: pointer; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  margin-top: 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-art { order: -1; }
  .hero-art img { width: 190px; }
  .nav { display: none; }
  .download-row { flex-direction: column; align-items: flex-start; }
}
