@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --bg: #f7f7fc;
  --surface: #ffffff;
  --text: #1c1b29;
  --muted: #5d5b72;
  --line: #e6e5f0;
  --brand: #4f46e5;
  --brand-soft: #eef0ff;
  --on-brand: #ffffff;
  --hero: #1e1b4b;
  --on-hero: #eef0ff;
  --amber: #fbbf24;
  --pink: #f472b6;
  --green: #10b981;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12111b;
    --surface: #1c1b29;
    --text: #ecebf5;
    --muted: #a9a7bd;
    --line: #2d2b3d;
    --brand: #a5b4fc;
    --brand-soft: #25234a;
    --on-brand: #1e1b4b;
    --hero: #1a1840;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* header */
.top {
  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);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #f472b6);
  color: #fff; display: grid; place-items: center; font-size: 1.1rem;
}
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--text); }
@media (max-width: 640px) { .top nav a:not(.cta-small) { display: none; } }
.cta-small {
  background: var(--brand); color: var(--on-brand) !important;
  padding: 4px 14px; border-radius: 999px; font-weight: 700;
}

/* hero */
.hero { background: var(--hero); color: var(--on-hero); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; } }
.eyebrow { display: inline-block; font-size: 0.85rem; color: var(--amber); font-weight: 700; margin-bottom: 8px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); line-height: 1.5; margin: 0 0 12px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { color: #c7c9f5; font-size: 1.05rem; margin: 0 0 24px; max-width: 34em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; font-weight: 700; text-decoration: none;
  font-size: 1rem;
}
.btn-primary { background: var(--amber); color: #1e1b4b; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.stats b { display: block; font-size: 1.6rem; color: #fff; line-height: 1.3; }
.stats span { font-size: 0.85rem; color: #a5a8e6; }
.phones { display: flex; justify-content: center; gap: 14px; }
.phones img {
  width: 44%; max-width: 210px; border-radius: 24px;
  border: 6px solid #2b2870; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.phones img:nth-child(2) { transform: translateY(28px); }

/* sections */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); margin: 0 0 6px; line-height: 1.5; }
.section-head p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px;
}
.card .ico { font-size: 1.7rem; line-height: 1; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card ul { margin: 10px 0 0; padding-inline-start: 1.1em; color: var(--muted); font-size: 0.92rem; }

/* portfolio */
.project {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 26px; margin-bottom: 20px;
}
@media (max-width: 820px) { .project { grid-template-columns: 1fr; padding: 20px; } }
.project-title { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.project-title img { width: 54px; height: 54px; border-radius: 14px; }
.project-title h3 { margin: 0; font-size: 1.25rem; line-height: 1.4; }
.project-title small { color: var(--muted); display: block; font-size: 0.85rem; }
.project p { color: var(--muted); margin: 0 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  background: var(--brand-soft); color: var(--brand);
  padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
}
.shots { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.shots img {
  width: 31%; min-width: 130px; border-radius: 16px; border: 1px solid var(--line);
  scroll-snap-align: start; flex-shrink: 0;
}

.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.more div {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px;
  font-size: 0.92rem; font-weight: 700;
}
.more img { width: 38px; height: 38px; border-radius: 10px; }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { position: relative; padding: 22px 22px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.step::before {
  counter-increment: step; content: counter(step, persian);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: var(--brand); color: var(--on-brand); font-weight: 700; margin-bottom: 10px;
}
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* contact */
.contact { background: var(--hero); color: var(--on-hero); border-radius: 28px; padding: 40px 28px; text-align: center; }
.contact h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.contact p { color: #c7c9f5; margin: 0 auto 24px; max-width: 34em; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.links a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 12px 20px; border-radius: 14px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
}
.links a.wa { background: #10b981; border-color: #10b981; }
.links svg { width: 20px; height: 20px; fill: currentColor; }

.en { direction: ltr; text-align: left; font-family: "Segoe UI", Tahoma, sans-serif; }
.en .section-head { margin-left: 0; }

footer { padding: 28px 0 40px; color: var(--muted); font-size: 0.88rem; text-align: center; }
.more-title { margin: 32px 0 4px; }
.all-apps { margin-top: 16px; }
