@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --primary-50: #eaf1fd;
  --primary-100: #a0c3f8;
  --primary-200: #7cacf6;
  --primary-300: #5795f3;
  --primary-500: #1167eb;
  --primary-700: #0c47a2;
  --primary-900: #09377d;
  --primary-950: #041734;
  --primary-border: #c5dafb;

  --secondary-50: #cee5d0;
  --secondary-300: #84be8a;
  --secondary-500: #097d15;
  --secondary-900: #053f0b;

  --success-bg: #ecfff3;
  --success-text: #00a652;
  --error-bg: #ffecec;
  --error-text: #ae2e2e;

  --neutral-0: #ffffff;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #ededed;
  --neutral-300: #dfdfdf;
  --neutral-400: #cbcbcb;
  --neutral-500: #b1b1b1;
  --neutral-700: #757575;
  --neutral-800: #606060;
  --neutral-900: #404040;
  --neutral-950: #1c1c1c;

  --font-sans: "Vazirmatn", "Tahoma", sans-serif;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 3px 10px 2px rgba(17, 103, 235, 0.1);
  --shadow-soft: 0 1px 5px 0 rgba(133, 133, 133, 0.2);
  --max-width: 1224px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--neutral-950);
  background: var(--neutral-0);
  line-height: 1.8;
  direction: rtl;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 16px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn-primary {
  background: var(--primary-900);
  color: var(--neutral-0);
}
.btn-primary:hover {
  background: var(--primary-700);
}
.btn-outline {
  border-color: var(--primary-900);
  color: var(--primary-900);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-50);
}
.btn-sm {
  padding: 12px 24px;
  font-size: 14px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--neutral-100);
  box-shadow: 0 2px 2.5px rgba(245, 245, 245, 0.2);
  background: var(--neutral-0);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 24px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-900);
}
.site-header .brand img {
  height: 44px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 16px;
  color: var(--neutral-900);
  flex: 1;
  justify-content: center;
}
.site-nav a.active {
  color: var(--primary-900);
  font-weight: 600;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* Footer */
.site-footer {
  background: var(--neutral-100);
  padding: 56px 0 40px;
  margin-top: 64px;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}
.footer-social {
  display: flex;
  gap: 24px;
}
.footer-social img,
.footer-social svg {
  width: 24px;
  height: 24px;
}
.footer-copy {
  color: var(--neutral-700);
  font-size: 14px;
}
.back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  background: var(--primary-900);
  color: var(--neutral-0);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Hero */
.hero {
  padding: 64px 0 40px;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap-reverse;
}
.hero-text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  text-align: right;
}
.hero-text h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--neutral-950);
}
.hero-text h1 span.accent {
  color: var(--primary-200);
}
.hero-text p {
  font-size: 18px;
  color: var(--neutral-800);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hero-media {
  flex: 1 1 420px;
  position: relative;
  min-height: 320px;
  min-width: 0;
  overflow: hidden;
}
.hero-media .blob {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.7;
  z-index: 0;
}
.hero-media .blob.b1 {
  background: #dde2fb;
  top: -20px;
  right: 20px;
}
.hero-media .blob.b2 {
  background: #ecfbdd;
  top: 30px;
  right: 160px;
}
.hero-media .blob.b3 {
  background: #d0fffb;
  top: 60px;
  right: 300px;
}
.hero-media img {
  position: relative;
  z-index: 1;
}
.hero-laptop {
  max-width: 480px;
  margin-inline-start: auto;
}
.hero-phone {
  max-width: 300px;
  margin-top: -60px;
  margin-inline-start: 40px;
}

/* Feature cards */
.features-section {
  padding: 40px 0;
  text-align: center;
}
.features-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--neutral-950);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.feature-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon.ai {
  border: 2.7px solid var(--neutral-950);
  border-radius: 50%;
}
.feature-icon.ai svg {
  width: 34px;
  height: auto;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--neutral-950);
}
.feature-card p {
  font-size: 18px;
  color: #868686;
}

/* Trusted companies */
.trusted-section {
  padding: 56px 0;
  text-align: center;
}
.trusted-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 40px;
}
.trusted-section h2 .accent {
  color: var(--secondary-500);
}
.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}
.trusted-logos img {
  height: 36px;
  width: auto;
}

/* Split content sections (Financial management / Smart consultation) */
.split-section {
  padding: 56px 0;
}
.split-section h2 {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}
.split-content {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}
.split-content.reverse {
  flex-direction: row-reverse;
}
.split-text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
  text-align: justify;
}
.split-text p {
  font-size: 20px;
  color: var(--neutral-800);
}
.split-media {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.split-media img {
  max-width: 340px;
  position: relative;
  z-index: 1;
}
.split-media .glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  z-index: 0;
}
.split-media .glow.g1 {
  background: #fbddf2;
  top: 40%;
  right: 10%;
}
.split-media .glow.g2 {
  background: #fbe6dd;
  top: 25%;
  right: 30%;
}
.split-media .glow.g3 {
  background: #fbe0dd;
  top: 10%;
  right: 50%;
}

/* Pricing */
.pricing-section {
  padding: 56px 0 80px;
  text-align: center;
}
.pricing-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 40px;
}
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.price-card {
  background: var(--neutral-0);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  width: 328px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.price-card.featured {
  background: var(--neutral-50);
  border-color: var(--primary-500);
  transform: translateY(-8px);
}
.price-tag {
  background: var(--neutral-0);
  border-radius: 71px;
  box-shadow: var(--shadow-soft);
  padding: 14px 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--neutral-900);
  width: 100%;
  text-align: center;
}
.price-card .plan-name {
  font-weight: 700;
  font-size: 16px;
}
.price-card .plan-period {
  font-size: 12px;
  color: var(--neutral-900);
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  border-top: 1px solid #c5dafb;
  border-bottom: 1px solid #c5dafb;
  padding: 16px 0;
}
.price-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 16px;
}
.price-features li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-900);
  flex-shrink: 0;
}

/* Generic page hero (About/Contact/Blog/FAQ) */
.page-hero {
  padding: 56px 0 24px;
  text-align: center;
}
.page-hero h1 {
  font-size: 32px;
  font-weight: 600;
}
.page-hero p {
  color: var(--neutral-800);
  font-size: 18px;
  margin-top: 12px;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0 64px;
}
.blog-card {
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--neutral-100);
}
.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.blog-card-body .tags {
  font-size: 12px;
  color: var(--primary-700);
  font-weight: 600;
}
.blog-card-body h3 {
  font-size: 18px;
  font-weight: 600;
}
.blog-card-body p {
  font-size: 14px;
  color: var(--neutral-800);
  flex: 1;
}
.blog-card-body .meta {
  font-size: 12px;
  color: var(--neutral-700);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 64px;
}
.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--neutral-200);
  font-size: 14px;
}
.pagination a.active {
  background: var(--primary-900);
  color: var(--neutral-0);
  border-color: var(--primary-900);
}

/* Blog post detail */
.post-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.post-detail .breadcrumb {
  font-size: 13px;
  color: var(--neutral-700);
  margin-bottom: 16px;
}
.post-detail h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}
.post-detail .cover {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  height: 320px;
  object-fit: cover;
  background: var(--neutral-100);
}
.post-detail .content {
  font-size: 17px;
  color: var(--neutral-900);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.post-detail .tags {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.post-detail .tags span {
  background: var(--primary-50);
  color: var(--primary-900);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
}
.related-posts {
  margin-top: 48px;
}
.related-posts h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}
.comment-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-item {
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 16px;
}
.comment-item .author {
  font-weight: 600;
  font-size: 14px;
}
.comment-item .body {
  font-size: 14px;
  color: var(--neutral-800);
  margin-top: 4px;
}
.comment-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Forms */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-900);
}
.form-field input,
.form-field textarea {
  border: 1px solid var(--neutral-300);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-500);
}
.form-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
}

/* Contact page */
.contact-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 24px 0 64px;
}
.contact-info {
  flex: 1 1 280px;
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info .item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info .item .label {
  font-size: 13px;
  color: var(--neutral-700);
}
.contact-info .item .value {
  font-size: 16px;
  font-weight: 600;
}
.contact-form {
  flex: 2 1 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* About page */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 17px;
  color: var(--neutral-900);
  text-align: justify;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--primary-900);
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item .faq-answer {
  padding: 0 20px 18px;
  color: var(--neutral-800);
  font-size: 15px;
}

/* Responsive */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }
  .site-header .container {
    gap: 12px;
  }
  .site-header .btn.btn-outline.btn-sm {
    flex-shrink: 0;
  }
  .site-header.nav-open .site-nav {
    display: flex;
    position: absolute;
    top: 96px;
    right: 0;
    left: 0;
    background: var(--neutral-0);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-soft);
  }
}

@media (max-width: 600px) {
  .site-header .container {
    height: auto;
    padding-block: 12px;
    padding-inline: 12px;
    gap: 6px;
    justify-content: flex-start;
  }
  .site-header .brand {
    flex-shrink: 0;
  }
  .site-header .brand-text {
    display: none;
  }
  .site-header .brand img {
    height: 28px;
    width: 24px;
  }
  .site-header .btn.btn-outline.btn-sm {
    padding: 8px 10px;
    font-size: 12px;
    gap: 4px;
    margin-inline-start: auto;
  }
  .site-header .btn.btn-outline.btn-sm img {
    display: none;
  }
  .nav-toggle {
    padding: 6px;
  }
  .nav-toggle svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 400px) {
  .site-header .brand {
    display: none;
  }
  .site-header .container {
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .hero-text h1 {
    font-size: 28px;
  }
  .hero-text,
  .hero-actions {
    align-items: center;
    text-align: center;
    justify-content: center;
  }
  .split-content,
  .split-content.reverse {
    flex-direction: column;
  }
  .split-text {
    align-items: center;
    text-align: center;
  }
  .contact-layout {
    flex-direction: column;
  }
}
