:root {
  --primary-color: #4f46e5;
  --primary-dark: #3730a3;
  --accent-color: #f59e0b;
  --accent-hover: #d97706;
  --bg-color: #f9fafb;
  --bg-card: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --primary-color: #6366f1;
  --primary-dark: #818cf8;
  --bg-color: #111827;
  --bg-card: #1f2937;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-color: #374151;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button {
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  direction: rtl;
  line-height: 1.6;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.ql-editor {
  direction: rtl;
  text-align: start !important;
}

[data-theme="dark"] .ql-editor.ql-blank::before {
  color: #cbd5e1;
}

[data-theme="dark"] .ql-toolbar.ql-snow {
  background-color: #111827;
  border-color: var(--border-color);
}

[data-theme="dark"] .ql-container.ql-snow {
  border-color: var(--border-color);
}

[data-theme="dark"] .ql-snow .ql-stroke {
  stroke: #e5e7eb;
}

[data-theme="dark"] .ql-snow .ql-fill {
  fill: #e5e7eb;
}

[data-theme="dark"] .ql-snow .ql-picker {
  color: #e5e7eb;
}

[data-theme="dark"] .ql-snow .ql-picker-options {
  background-color: #1f2937;
  border-color: var(--border-color);
}

[data-theme="dark"] .ql-snow .ql-picker-item:hover,
[data-theme="dark"] .ql-snow .ql-picker-item.ql-selected,
[data-theme="dark"] .ql-snow .ql-picker-label:hover,
[data-theme="dark"] .ql-snow .ql-picker-label.ql-active,
[data-theme="dark"] .ql-snow .ql-active .ql-stroke,
[data-theme="dark"] .ql-snow .ql-active .ql-fill,
[data-theme="dark"] .ql-snow button:hover .ql-stroke,
[data-theme="dark"] .ql-snow button.ql-active .ql-stroke,
[data-theme="dark"] .ql-snow button:hover .ql-fill,
[data-theme="dark"] .ql-snow button.ql-active .ql-fill {
  color: #a5b4fc;
  stroke: #a5b4fc;
  fill: #a5b4fc;
}
a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background-color: var(--bg-card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s;
}

.theme-toggle:hover {
  background: var(--border-color);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
  text-align: center;
}

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

.btn-xl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 1.05rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  background: var(--bg-card);
  font-weight: bold;
  transition:
    border-color 0.3s,
    color 0.3s,
    transform 0.3s;
}

.btn-secondary:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.section-block {
  padding: 70px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.cta-inner h2,
.roi-card h2,
.contact-info h2 {
  color: var(--primary-color);
  line-height: 1.5;
}

.section-heading p,
.page-hero p,
.roi-card p,
.contact-info p {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 0.9rem;
}

.eyebrow.light {
  color: #fde68a;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  gap: 40px;
}

.hero--home {
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.14), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(79, 70, 229, 0.16), transparent 32%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-content h1 span {
  color: var(--accent-color);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-image {
  flex: 1;
  width: 100%;
}

.hero-actions,
.trust-row,
.metric-strip,
.cta-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-row {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.trust-row span {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.dashboard-card {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.dashboard-card img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.dash-header {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.dash-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
}

.metric-strip {
  justify-content: space-between;
  margin-top: 16px;
}

.metric-strip div {
  flex: 1;
  min-width: 90px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-color);
}

.metric-strip strong,
.metric-strip small {
  display: block;
}

.metric-strip strong {
  color: var(--primary-color);
}

.metric-strip small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.orb,
.floating-note {
  position: absolute;
}

.orb {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.5;
}

.orb-one {
  top: -20px;
  right: -40px;
  background: var(--accent-color);
}

.orb-two {
  left: -20px;
  bottom: 20px;
  background: var(--primary-color);
}

.floating-note {
  z-index: 3;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--primary-color);
  box-shadow: var(--shadow);
  font-weight: bold;
}

.note-top {
  top: 50px;
  left: 0;
}

.note-bottom {
  right: 10px;
  bottom: 45px;
}

.stats-section {
  margin-top: -25px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.page-hero {
  padding: 75px 0;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(245, 158, 11, 0.1)),
    var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.compact-hero .container {
  max-width: 860px;
}

.page-hero h1 {
  font-size: 2.3rem;
  margin-bottom: 16px;
}

.features {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s,
    background-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card p {
  color: var(--text-muted);
}

.services-grid .feature-card {
  text-align: right;
}

.service-card.highlighted {
  border: 2px solid var(--accent-color);
}

.check-list {
  margin-top: 18px;
  padding-right: 20px;
  color: var(--text-muted);
}

.check-list li {
  margin-bottom: 8px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.process-step {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  gap: 20px;
}

.process-timeline {
  max-width: 880px;
}

.step-content p {
  color: var(--text-muted);
}

.roi-card,
.cta-band {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.roi-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  margin-bottom: 60px;
}

.formula-box {
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: bold;
  white-space: nowrap;
}

.cta-band {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 70px;
}

.cta-inner {
  justify-content: space-between;
  padding: 34px 0;
}

.step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-color);
  min-width: 60px;
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.portfolio-item {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portfolio-item > a {
  display: inline-block;
  height: 100%;
  width: 100%;
}
.portfolio-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #6b7280, #374151);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.portfolio-info {
  padding: 20px;
}

.tag {
  background: var(--border-color);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-main);
  margin-right: 5px;
  display: inline-block;
  margin-top: 5px;
}

.contact-container {
  display: flex;
  gap: 40px;
}

.contact-form {
  flex: 2;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-section .contact-container {
  align-items: stretch;
}

.glass-card {
  border: 1px solid var(--border-color);
}

.form-alert {
  display: none;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-group label span {
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  background: var(--bg-color);
  color: var(--text-main);
}

.rich-editor {
  height: auto;
  min-height: 190px;
  font-size: 1rem;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  padding: 0;
  direction: rtl;
}

.contact-info {
  flex: 1;
  background: var(--primary-color);
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.84);
  margin: 12px 0 24px;
}

.contact-info h2 {
  color: #ffffff;
}

.contact-info a {
  color: #ffffff;
}

.contact-promise {
  margin-top: 24px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.info-item {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

footer {
  background-color: var(--bg-card);
  color: var(--text-main);
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    text-align: center;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
    padding-inline: 10px;
    top: 0;
    position: absolute;
    /* width: 100%;
    justify-content: center;
    margin-top: 10px; */
  }
  .hero {
    flex-direction: column;
    padding: 40px 0;
    text-align: center;
  }

  .hero-grid,
  .roi-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    text-align: center;
  }

  .hero-actions,
  .trust-row,
  .cta-inner {
    justify-content: center;
  }

  .hero-visual {
    min-height: auto;
    width: 100%;
  }

  .floating-note {
    display: none;
  }

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

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
  .process-step {
    flex-direction: column;
    text-align: center;
  }
  .contact-container {
    flex-direction: column;
  }

  .formula-box {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    display: grid;
  }

  .btn-xl,
  .btn-secondary {
    width: 100%;
  }
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px;
  text-align: center;
}

.error-page__inner {
  max-width: 640px;
  width: 100%;
}

.error-page__code {
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.error-page__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--heading-color);
}

.error-page__text {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 32px;
  color: var(--text-color);
}

.error-page__btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  background: var(--primary-color);
  color: #fff;
  transition: 0.3s ease;
}

.error-page__btn:hover {
  opacity: 0.9;
}
