/* dehyarhub.com — one stylesheet, nothing from another site. Plain and quiet on purpose:
   the screenshots carry the page. Dark mode follows the visitor's system. */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --ink: #1c1c1e;
  --muted: #5c5c63;
  --line: #e4e4e0;
  --accent: #5b21b6;
  --accent-ink: #ffffff;
  --danger: #b42318;
  --ok: #067647;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151517;
    --bg-alt: #1c1c1f;
    --ink: #ececee;
    --muted: #a3a3ab;
    --line: #2e2e33;
    --accent: #b9a3f5;
    --accent-ink: #18122b;
    --danger: #f97066;
    --ok: #47cd89;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.45; font-weight: 700; }
p { margin: 0 0 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 16px; }
.nav { display: flex; align-items: center; gap: 24px; margin-inline-start: auto; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--accent); font-weight: 600; }
.menu-btn { display: none; margin-inline-start: auto; font: inherit; font-size: 15px; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 4px 12px; }

/* buttons and links */
.btn {
  display: inline-block; font: inherit; font-size: 16px; font-weight: 600;
  padding: 10px 22px; border-radius: 6px; border: 0;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* hero */
.hero { padding: 56px 0 24px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -.3px; max-width: 18em; }
.lead { font-size: 19px; color: var(--muted); max-width: 40em; margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 24px 0 36px; }

/* screenshots */
.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06); background: var(--bg-alt); }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 12px; }
.section-lead { color: var(--muted); max-width: 44em; margin-bottom: 40px; }
.section p { color: var(--muted); }

.row { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); }
.row-flip .row-text { order: 2; }
.row h3 { font-size: 22px; margin-bottom: 10px; }

.also { list-style: none; padding: 32px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; color: var(--muted); }
.also strong { color: var(--ink); margin-inline-end: 6px; }

.facts { margin: 8px 0 0; }
.facts dt { font-weight: 700; margin-top: 18px; }
.facts dd { margin: 2px 0 0; color: var(--muted); }

.steps { margin: 8px 0 0; padding-inline-start: 1.4em; color: var(--muted); }
.steps li { margin: 8px 0; }

/* form */
.demo-grid { display: grid; grid-template-columns: 4fr 6fr; gap: 56px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; flex: 1; min-width: 0; }
.form label small { font-weight: 400; color: var(--muted); }
.pair { display: flex; gap: 16px; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 0; border-color: var(--accent); }
.form input[dir="ltr"] { text-align: left; }
.form [aria-invalid="true"] { border-color: var(--danger); }
.form .btn { align-self: flex-start; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--danger); font-size: 15px; margin: 0; }
.form-done { color: var(--ok); font-weight: 600; margin: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* narrow screens */
@media (max-width: 900px) {
  .row, .demo-grid { grid-template-columns: 1fr; gap: 20px; }
  .row-flip .row-text { order: 0; }
  .also { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 60px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px 16px 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .hero { padding-top: 32px; }
  .section { padding: 48px 0; }
  .pair { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
