@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn%5Bwght%5D.woff2") format("woff2-variations"),
       url("/fonts/Vazirmatn%5Bwght%5D.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07111c;
  --bg-elev: #0c1a29;
  --bg-card: #0f2032;
  --bg-card-hover: #13263a;
  --line: rgba(148, 211, 199, 0.16);
  --line-strong: rgba(148, 211, 199, 0.32);
  --text: #e8eef6;
  --text-muted: #a4b6c8;
  --text-soft: #7e93a8;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-dim: rgba(45, 212, 191, 0.12);
  --accent-ink: #062028;
  --warn: #e8c07a;
  --danger-soft: #f0b4a8;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --max: 1120px;
  --font: Vazirmatn, "Tahoma", "Segoe UI", sans-serif;
  --space: 1.25rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html:lang(fa) {
  hanging-punctuation: none;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(45, 212, 191, 0.1), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(20, 80, 120, 0.22), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

[dir="ltr"] body {
  line-height: 1.65;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #c6fff4;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.8rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 17, 28, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 17, 28, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand img,
.brand svg {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand-product {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-top: -0.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  margin-inline-start: 0.35rem;
}

.lang-switch a {
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
}

.lang-switch a[aria-current="page"] {
  background: var(--accent-dim);
  color: var(--accent-strong);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.nav-toggle svg {
  margin: auto;
  width: 22px;
  height: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--accent-dim);
  color: var(--accent-strong);
  border-color: var(--accent);
}

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}

.kicker::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  max-width: 18ch;
}

[dir="rtl"] h1 {
  max-width: none;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin: 1.25rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.08), transparent 40%),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.flow li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: rgba(7, 17, 28, 0.45);
  border: 1px solid transparent;
}

.flow .n {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.85rem;
}

.flow strong {
  display: block;
  font-weight: 650;
  color: var(--text);
  line-height: 1.4;
}

.flow span {
  display: block;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

section {
  padding: 4.25rem 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.alt {
  background: linear-gradient(180deg, rgba(15, 32, 50, 0.65), rgba(15, 32, 50, 0.2));
  border-block: 1px solid var(--line);
}

.problem-grid,
.feature-grid,
.platform-grid,
.trust-grid,
.about-grid {
  display: grid;
  gap: 1rem;
}

.problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent-strong);
  margin-bottom: 0.9rem;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1rem 1.2rem;
  min-height: 100%;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  font-variant-numeric: tabular-nums;
}

[dir="rtl"] .steps li::before {
  content: counter(step);
}

.steps h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform {
  text-align: center;
  padding: 1.4rem 1rem;
}

.platform .mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 1.05rem;
}

.platform.unsupported .mark {
  background: rgba(232, 192, 122, 0.12);
  color: var(--warn);
}

.platform .status {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.platform.unsupported .status {
  color: var(--warn);
}

.trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.about-grid {
  grid-template-columns: 1.3fr 0.8fr;
  gap: 1.25rem;
}

.about-copy p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 550;
}

.service-list li:first-child {
  padding-top: 0;
}

.service-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-list span {
  display: block;
  color: var(--text-soft);
  font-weight: 400;
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
}

.contact-card p {
  color: var(--text-muted);
  margin: 0 0 1.1rem;
}

.mail-link {
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-strong);
  word-break: break-all;
}

.mail-link:hover {
  color: #c6fff4;
}

.fine-print {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: flex-start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.page-404 {
  min-height: calc(100vh - var(--header-h) - 8rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.page-404 h1 {
  max-width: none;
  margin-inline: auto;
}

.page-404 p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.page-404 .hero-actions {
  justify-content: center;
}

@media (max-width: 980px) {
  .hero-grid,
  .problem-grid,
  .feature-grid,
  .steps,
  .platform-grid,
  .trust-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .steps,
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset-inline: 0;
    top: var(--header-h);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.9rem 1.25rem 1.4rem;
    background: #07111c;
    border-bottom: 1px solid var(--line);
    z-index: 80;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .btn {
    min-height: 44px;
    padding: 0.7rem 0.2rem;
  }

  .site-nav .btn {
    margin-top: 0.4rem;
    width: 100%;
  }

  .lang-switch {
    margin: 0.5rem 0 0;
    align-self: flex-start;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .wrap,
  .header-inner {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .hero {
    padding: 2.5rem 0 2.25rem;
  }

  section {
    padding: 3rem 0;
  }

  .steps,
  .problem-grid,
  .feature-grid,
  .platform-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.name {
  unicode-bidi: isolate;
  white-space: nowrap;
}
