@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn[wght].woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    direction: rtl;
    font-family: "Vazirmatn", sans-serif !important;;
}
html[dir="ltr"] {
    direction: ltr;
}

html[dir="ltr"] body {
    direction: ltr;
}
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] button {
    font-family: "Vazirmatn", sans-serif;
}
html[dir="rtl"] code,
html[dir="rtl"] pre {
    direction: ltr;
    text-align: left;
}

/* Persian typography adjustments */
html[dir="rtl"] .ai-hero-content h1 {
    font-size: clamp(3.2rem, 6vw, 5.4rem);
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 700;
}

html[dir="rtl"] .ai-hero-description {
    font-size: 0.95rem;
    line-height: 2;
    max-width: 600px;
}

html[dir="rtl"] .ai-hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0;
}

html[dir="rtl"] .ai-hero-primary,
html[dir="rtl"] .ai-hero-secondary {
    font-size: 0.82rem;
}

html[dir="rtl"] .ai-hero-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .workflow-node-text strong,
html[dir="rtl"] .workflow-node-text span {
    letter-spacing: 0;
}
html[dir="rtl"] .workflow-footer,
html[dir="rtl"] .ai-hero-bottom-text {
    letter-spacing: 0;
}
html[dir="rtl"] .ai-hero-bottom-text {
    display: flex;
    flex-direction: row-reverse;
    direction: ltr;
}
html[dir="rtl"] .hero-bottom-arrow {
    display: inline-block;
    transform: scaleX(-1);
}
html[dir="rtl"] .ltr{
    direction: ltr;
}
html[dir="rtl"] .editorial-title-row h2 {
    font-size: clamp(3.2rem, 6vw, 4rem);
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 700;
}

html[dir="rtl"] .services-editorial-heading h2 {
    font-size: clamp(3.2rem, 6vw, 3rem);
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 700;
}

html[dir="rtl"] .ai-about-intro h2 {
    font-size: clamp(3.2rem, 6vw, 3rem);
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 700;
}
html[dir="rtl"] .ai-about-signal h3 {
    font-size: clamp(3.2rem, 6vw, 3rem);
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 700;
}