:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --line: #e6e2d9;
  --brand: #0f766e;
  --brand-ink: #ffffff;
  --accent: #f59e0b;
  --soft: #ecf6f4;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171c;
    --surface: #1a2128;
    --ink: #e6ebf0;
    --muted: #9aa7b4;
    --line: #2a333c;
    --brand: #2dd4bf;
    --brand-ink: #062a27;
    --accent: #fbbf24;
    --soft: #16302d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", "Vazir", "IRANSans", Tahoma, "Segoe UI", sans-serif;
  line-height: 1.9;
  font-size: 16px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
nav a:hover, nav a.on { background: var(--soft); color: var(--brand); text-decoration: none; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.5; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.hero-art { background: var(--soft); border-radius: 24px; padding: 24px; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 700; border: 0; font: inherit; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); margin-inline-start: 8px; }

/* sections */
section { padding: 36px 0; }
.sec-title { font-size: 24px; margin: 0 0 6px; }
.sec-sub { color: var(--muted); margin: 0 0 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--soft); color: var(--brand); margin-bottom: 10px; }
.meta { display: flex; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats b { display: block; font-size: 28px; color: var(--brand); }
.stats span { color: var(--muted); font-size: 14px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 12px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.list li span { color: var(--muted); font-size: 14px; }

/* forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 600; margin: 12px 0 6px; font-size: 14px; }
input, textarea, select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
textarea { min-height: 130px; resize: vertical; }
.note { background: var(--soft); border-radius: 10px; padding: 12px 16px; color: var(--ink); font-size: 14px; display: none; margin-top: 14px; }

/* footer */
footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
footer h4 { color: var(--ink); margin: 0 0 8px; font-size: 15px; }
footer ul { list-style: none; padding: 0; margin: 0; }
.copy { text-align: center; margin-top: 18px; font-size: 13px; }

@media (max-width: 760px) {
  .hero .wrap, footer .wrap, form .row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 32px; }
}
