@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #ffffff;
  --alt: #f3f7fd;
  --text: #16213a;
  --muted: #5b6b85;
  --border: #dbe5f2;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #e8f0fe;
  --ok: #16a34a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 50, 110, .08);
  --font: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.center { text-align: center; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.links { display: flex; gap: 4px; margin-inline-start: 16px; flex: 1; }
.links a { color: var(--muted); padding: 6px 12px; border-radius: 8px; font-size: 15px; }
.links a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 6px 12px; cursor: pointer; font: inherit; font-weight: 700; color: var(--primary); }
.menu-btn { display: none; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff; border: 1px solid var(--primary); border-radius: 12px; padding: 10px 20px; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, background .15s; }
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--primary); border-color: #bcd0f6; }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.big { padding: 14px 28px; font-size: 17px; }
.btn.small { padding: 7px 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #dbe8ff 0, transparent 60%), linear-gradient(180deg, #f6f9ff, #fff); padding: 64px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.pill { display: inline-block; background: var(--primary-soft); color: var(--primary-dark); padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hero h1 { font-size: 42px; line-height: 1.35; margin: 16px 0 12px; font-weight: 900; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; scroll-margin-top: 90px; }
.dl-meta { color: var(--muted); font-size: 13px; margin-top: 10px; min-height: 22px; }
.dl-meta .hash { font-family: Consolas, monospace; font-size: 11px; word-break: break-all; opacity: .8; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 900; margin-inline-end: 8px; }
.frame { border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(25, 60, 140, .22); border: 1px solid #cfdcf3; background: #fff; }
.frame-bar { height: 30px; background: #eef3fb; display: flex; gap: 6px; align-items: center; padding: 0 12px; direction: ltr; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d6ec; }

.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 22px 20px; gap: 10px; }
.strip b { display: block; font-size: 26px; color: var(--primary); font-weight: 900; }
.strip span { color: var(--muted); font-size: 14px; }

/* sections */
.section { padding: 80px 0; scroll-margin-top: 50px; }
.section.alt { background: var(--alt); }
.section h2 { text-align: center; font-size: 32px; margin: 0 0 8px; font-weight: 900; }
.sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 640px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 6px rgba(20, 50, 110, .04); transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature ul { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 14.5px; }
.feature li { margin: 3px 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.step { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--border); }
.step span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; }
.step h3 { margin: 12px 0 6px; }
.step p { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: zoom-in; box-shadow: 0 2px 6px rgba(20, 50, 110, .05); transition: box-shadow .2s; }
.shot:hover { box-shadow: var(--shadow); }
.shot img { aspect-ratio: 1280 / 900; object-fit: cover; object-position: top; width: 100%; }
.shot p { margin: 0; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.shot.wide { grid-column: 1 / -1; }
.shot.wide img { aspect-ratio: auto; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #1d4ed8, #3b82f6); box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .soon { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; }
.video .soon b { font-size: 64px; display: block; line-height: 1; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.plan { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 22px; }
.price { font-size: 28px; font-weight: 900; color: var(--primary); margin: 6px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 900; margin-inline-end: 8px; }
.ribbon { position: absolute; top: -13px; inset-inline-end: 24px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }

.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; }
.faq summary::after { content: "+"; float: inline-end; color: var(--primary); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 16px; color: var(--muted); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact h2 { text-align: start; }
.contact-info p { color: var(--muted); }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; color: var(--text); font-weight: 700; }
.contact-row:hover { border-color: var(--primary); background: var(--primary-soft); }
.card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.form h3 { margin: 0 0 14px; }
.form label { display: grid; gap: 4px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.form input, .form textarea { font: inherit; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; outline: none; width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form input.ltr { text-align: left; display: block; }
.form { position: relative; }
.form input.hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-msg { margin-top: 12px; font-size: 14px; min-height: 22px; }
.form-msg.ok { color: var(--ok); }
.form-msg.bad { color: #dc2626; }

.footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.lightbox { position: fixed; inset: 0; background: rgba(10, 20, 40, .82); z-index: 50; display: grid; place-items: center; padding: 30px; }
.lightbox img { max-height: 84vh; max-width: 94vw; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lightbox p { color: #fff; margin: 12px 0 0; text-align: center; }
.lightbox button { position: absolute; top: 16px; inset-inline-end: 20px; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 20px; cursor: pointer; }

@media (max-width: 980px) {
  .hero-in, .contact { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .features, .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot.wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .links { display: none; position: absolute; top: 66px; inset-inline: 0; background: #fff; flex-direction: column; padding: 10px 20px; border-bottom: 1px solid var(--border); margin: 0; }
  .links.open { display: flex; }
  .menu-btn { display: block; }
  .nav-actions .btn.small { display: none; }
  .features, .gallery, .steps, .plans { grid-template-columns: 1fr; }
  .shot.wide { grid-column: auto; }
  .strip-in { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .section h2 { font-size: 26px; }
}

/* Grid items default to min-width:auto; with wide images that would widen the page on phones. */
.hero-in > *, .contact > *, .features > *, .gallery > *, .steps > *, .plans > *, .strip-in > * { min-width: 0; }
.shot.wide img { max-height: 560px; object-fit: cover; object-position: top; }
