@font-face {
  font-family: Vazirmatn;
  src: url('../font/vazirmatn-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --brand-500: #DD6E12;
  --brand-700: #A64E0D;
  --blue-600: #1D68B5;
  --brand-50: #FDF4EC;
  --brand-gradient-orange: #F98108;
  --brand-gradient-red: #DF0713;
  --ink-900: #141821;
  --ink-800: #252A35;
  --ink-600: #4E5260;
  --surface-0: #FFFFFF;
  --surface-1: #F8F9FC;
  --border: #E4E6EC;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--surface-0); color: var(--ink-900); font-family: Vazirmatn, sans-serif; }

.hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: var(--surface-0); }
.hero__background {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 136px 20px 64px;
  background: linear-gradient(160deg, var(--brand-gradient-orange), var(--brand-gradient-red));
  color: var(--ink-900);
}
.hero__layout { display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 4vw, 48px); width: 100%; max-width: 1200px; }
.hero__content { width: 100%; max-width: 900px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(32px, 5vw, 64px); font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.hero h3 { margin: 16px 0 0; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.5; letter-spacing: 0; }
.hero p { max-width: 68ch; margin: 16px auto 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.9; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; flex-direction: column;}
.hero__button { min-height: 52px; padding: 0 28px; border: 1.5px solid var(--ink-900); border-radius: 999px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color 220ms var(--ease), color 220ms var(--ease); }
.hero__button--primary { border-color: var(--ink-900); background: var(--ink-900); color: var(--surface-0); }
.hero__button--primary:hover { border-color: var(--ink-600); background: var(--ink-600); }
.hero__button--secondary { background: transparent; color: var(--ink-900); }
.hero__button--secondary:hover { background: var(--ink-900); color: var(--surface-0); }
.hero__button:focus-visible { outline: 3px solid var(--ink-900); outline-offset: 3px; }
.hero__video { position: relative; width: 100%; max-width: 1000px; aspect-ratio: 16 / 9; padding: 8px; overflow: hidden; border: 1px solid var(--brand-500); border-radius: 28px; background: var(--surface-1); box-shadow: 0 24px 60px rgba(20, 24, 33, .12); }
.hero__video video { display: block; width: 100%; height: 100%; border-radius: 20px; background: var(--ink-900); object-fit: contain; }
.hero__video-toggle { position: absolute; inset-inline-end: 20px; bottom: 20px; display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; border: 1px solid var(--surface-0); border-radius: 50%; background: var(--ink-900); color: var(--surface-0); cursor: pointer; transition: background-color 220ms var(--ease), transform 220ms var(--ease); }
.hero__video-toggle:hover { background: var(--brand-700); transform: scale(1.05); }
.hero__video-toggle:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; }
.hero__video-toggle svg { width: 24px; height: 24px; }
.hero__video-toggle svg[hidden] { display: none; }

.business { padding: 64px 20px; background: var(--surface-1); }
.business__inner { max-width: 1200px; margin-inline: auto; }
.business__intro { max-width: 900px; margin: 0 auto 32px; text-align: center; }
.business__intro h2 { margin: 0; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.3; letter-spacing: 0; }
.business__intro p { margin: 16px 0 0; color: var(--ink-600); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.9; }
.business__card { overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: var(--surface-0); }
.business__tabs { display: flex; gap: 8px; width: min(540px, calc(100% - 32px)); margin: 16px auto 0; padding: 8px; border: 1px solid var(--brand-500); border-radius: 999px; background: var(--brand-50); }
.business__tabs::-webkit-scrollbar { display: none; }
.business__tab { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 4px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-900); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.5; text-align: center; cursor: pointer; transition: background-color 220ms var(--ease), color 220ms var(--ease); }
.business__tab:hover { background: var(--surface-1); }
.business__tab[aria-selected="true"] { background: var(--ink-900); color: var(--surface-0); }
.business__tab:focus-visible, .business__panel:focus-visible { outline: 3px solid var(--brand-500); outline-offset: -3px; }
.business__panels { display: grid; }
.business__panel { grid-area: 1 / 1; display: grid; align-content: start; gap: 24px; padding: 28px 20px; opacity: 1; visibility: visible; transition: opacity 220ms var(--ease), visibility 0s; }
.business__panel[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 220ms var(--ease), visibility 0s 220ms; }
.business__feature { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-0); }
.business__art { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 20px; border-radius: 12px; background: var(--brand-50); }
.business__art img { display: block; width: min(50%, 120px); height: auto; }
.business__feature h3 { margin: 0 0 8px; color: var(--brand-700); font-size: 18px; line-height: 1.5; letter-spacing: 0; }
.business__feature p { margin: 0; color: var(--ink-600); font-size: 16px; line-height: 1.8; }

.operations { padding: 64px 20px; background: var(--surface-0); }
.operations__inner { display: grid; align-items: center; gap: 48px; max-width: 1200px; margin-inline: auto; }
.operations__content { align-self: start; padding-top: 12px; }
.operations__content h2 { margin: 0; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.4; letter-spacing: 0; }
.operations__content p { margin: 40px 0 0; color: var(--ink-600); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.9; }
.operations__visual { width: 100%; max-width: 520px; margin-inline: auto; }
.operations__diagram { display: block; width: 100%; height: auto; overflow: visible; font-family: Vazirmatn, sans-serif; }
.flow-node rect { fill: var(--surface-1); stroke: var(--border); stroke-width: 1; }
.flow-node text { fill: var(--ink-900); font-size: 16px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.flow-node--report rect { fill: var(--surface-0); stroke: var(--brand-500); }
.flow-node--result rect { fill: var(--ink-900); stroke: var(--ink-900); }
.flow-node--result text { fill: var(--surface-0); }
.flow-lines { stroke: var(--brand-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow--pending .flow-node { opacity: 0; transform: translateY(12px); }
.flow--pending .flow-lines path, .flow--pending path.flow-lines { stroke-dasharray: 1; stroke-dashoffset: 1; }
.flow--pending.flow--visible .flow-node { animation: flow-node-in 720ms var(--ease) both; }
.flow--pending.flow--visible .flow-node--second { animation-delay: 140ms; }
.flow--pending.flow--visible .flow-node--third { animation-delay: 280ms; }
.flow--pending.flow--visible .flow-node--report { animation-delay: 1400ms; }
.flow--pending.flow--visible .flow-node--result { animation-delay: 2300ms; }
.flow--pending.flow--visible .flow-lines--branches path { animation: flow-line-in 800ms var(--ease) 700ms both; }
.flow--pending.flow--visible .flow-lines--final { animation: flow-line-in 550ms var(--ease) 1800ms both; }
@keyframes flow-node-in { to { opacity: 1; transform: translateY(0); } }
@keyframes flow-line-in { to { stroke-dashoffset: 0; } }

.tools { padding: 64px 20px; background: var(--surface-1); }
.tools__inner { max-width: 1200px; margin-inline: auto; }
.tools h2 { max-width: 900px; margin: 0 auto 32px; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.3; letter-spacing: 0; text-align: center; }
.tools__grid { display: grid; gap: 16px; }
.tools__card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-0); }
.tools__content h3 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 28px); line-height: 1.4; letter-spacing: 0; }
.tools__content p { margin: 0; color: var(--ink-600); font-size: 16px; line-height: 1.8; }
.tools__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: var(--brand-700); font-weight: 700; text-decoration: none; }
.tools__link:hover { color: var(--ink-900); }
.tools__link:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; }
.tools__image { width: 100%; aspect-ratio: 5 / 3; margin-top: auto; border-radius: 12px; background: var(--surface-1); }

.testimonials { padding: 64px 20px; background: var(--surface-0); }
.testimonials__inner { max-width: 1200px; margin-inline: auto; }
.testimonials h2 { max-width: 900px; margin: 0 auto 32px; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.3; letter-spacing: 0; text-align: center; }
.testimonials__grid { display: grid; gap: 16px; }
.testimonials__card { display: flex; flex-direction: column; gap: 32px; margin: 0; padding: 24px 20px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-1); }
.testimonials__card blockquote { margin: 0; }
.testimonials__card blockquote::before { content: '“'; display: block; height: 48px; color: var(--brand-500); font-family: Georgia, serif; font-size: 64px; line-height: 1; }
.testimonials__card p { margin: 0; color: var(--ink-900); font-size: 16px; line-height: 1.9; }
.testimonials__card figcaption { display: flex; align-items: center; gap: 16px; margin-top: auto; }
.testimonials__card figcaption img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonials__card figcaption div { display: grid; gap: 4px; }
.testimonials__card strong { font-size: 16px; line-height: 1.8; }
.testimonials__card figcaption span { color: var(--ink-600); font-size: 14px; line-height: 1.8; }




@media (max-width: 767px) {
  .business__card { overflow: visible; }
  .business__tabs { position: sticky; top: 80px; z-index: 2; isolation: isolate; }
  .business__tabs::before { content: ''; position: absolute; inset: -80px -16px -20px; z-index: -2; background: linear-gradient(to bottom, var(--surface-0) calc(100% - 10px), transparent); pointer-events: none; }
  .business__tabs::after { content: ''; position: absolute; inset: -1px; z-index: -1; border: 1px solid var(--brand-500); border-radius: inherit; background: var(--brand-50); pointer-events: none; }
  .tools h2 { position: sticky; top: calc(72px - var(--tools-heading-shift, 0px)); z-index: 2; margin-bottom: 40px; padding: 8px 0; background: var(--surface-1); }
  .tools__card { position: sticky; top: calc(88px + var(--tools-heading-height, 84px) + var(--stack-offset, 0px)); align-self: start; min-height: calc(100vh - 128px - var(--tools-heading-height, 84px)); min-height: calc(100svh - 128px - var(--tools-heading-height, 84px)); }
  .tools__card:nth-child(2) { --stack-offset: 8px; }
  .tools__card:nth-child(3) { --stack-offset: 16px; }
  .tools__card:nth-child(4) { --stack-offset: 24px; }
  .tools__card:nth-child(5) { --stack-offset: 32px; }
}

@media (min-width: 768px) {
  .hero__background { padding-inline: 32px; }
  .business { padding: 80px 32px; }
  .business__panel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 40px 32px; }
  .operations { padding: 80px 32px; }
  .tools { padding: 80px 32px; }
  .tools__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .tools__card { grid-column: span 6; padding: 28px; }
  .tools__card--featured { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .tools__card--featured .tools__content, .tools__card--featured .tools__image { flex: 1 1 0; min-width: 0; }
  .tools__card--featured .tools__image { margin-top: 0; }
  .testimonials { padding: 80px 32px; }
  .testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .testimonials__card { padding: 32px; }
}

@media (min-width: 1024px) {
  .hero__background { padding-inline: 48px; }
  .hero h1 { font-size: clamp(36px, 3.6vw, 52px); }
  .business { padding: 112px 48px; }
  .business__intro { margin-bottom: 48px; }
  .business__panel { padding: 48px; }
  .operations { padding: 112px 48px; }
  .operations__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .tools { padding: 112px 48px; }
  .tools h2 { margin-bottom: 48px; }
  .tools__card:nth-child(2), .tools__card:nth-child(5) { grid-column: span 5; }
  .tools__card:nth-child(3), .tools__card:nth-child(4) { grid-column: span 7; }
  .testimonials { padding: 112px 48px; }
  .testimonials h2 { margin-bottom: 48px; }
  .hero__actions { flex-direction: row;}
}
