@font-face {
  font-family: "IRANSansWeb";
  src: url("/assets/fonts/IRANSansWeb/woff2/IRANSansWeb_Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansWeb";
  src: url("/assets/fonts/IRANSansWeb/woff2/IRANSansWeb.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansWeb";
  src: url("/assets/fonts/IRANSansWeb/woff2/IRANSansWeb_Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansWeb";
  src: url("/assets/fonts/IRANSansWeb/woff2/IRANSansWeb_Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "IRANSansWeb", "DIN", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[lang="fa"] body {
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "kern" 1;
  font-family: "IRANSansWeb", "DIN", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[lang="fa"] .site-logo-wordmark {
  height: 1.65rem;
  width: auto;
}

html[lang="fa"] .footer-logo .site-logo-wordmark {
  height: 1.5rem;
}

html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] h4,
html[lang="fa"] h5,
html[lang="fa"] h6,
html[lang="fa"] p,
html[lang="fa"] a,
html[lang="fa"] li,
html[lang="fa"] button,
html[lang="fa"] input,
html[lang="fa"] textarea,
html[lang="fa"] select,
html[lang="fa"] label,
html[lang="fa"] .text-ui {
  font-family: "IRANSansWeb", "DIN", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#intro .home-section-text h2.fa-intro-heading-static {
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
}

html[lang="fa"] .toolbox-labels li {
  font-family: "IRANSansWeb", "DIN", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  direction: rtl;
  unicode-bidi: plaintext;
}

html[lang="fa"] #intro .home-section-text {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
  padding-bottom: clamp(5.25rem, 11vh, 7.5rem);
}

html[lang="fa"] #intro .home-section-text h2 {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
  line-height: 1.2;
  letter-spacing: 0;
}

html[lang="fa"] #intro .home-section-text p {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
  line-height: 1.65;
  letter-spacing: 0;
  max-width: min(34rem, 90vw);
}

html[lang="fa"] #intro .home-section-text .intro-hidden-anim {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

html[lang="fa"] #intro .heading-links .layout-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
}

html[lang="fa"] #intro .heading-links .ui-group {
  direction: rtl;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
  margin-inline-start: auto;
  padding: 0;
}

html[lang="fa"] #intro pre.npm-install,
html[lang="fa"] #intro pre.npm-install:not(:last-child) {
  margin: 0;
}

html[lang="fa"] #intro .heading-sponsors {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  width: min(8.5rem, 100%);
  max-width: 8.5rem;
  height: auto;
  min-height: 7.25rem;
  gap: 0.35rem;
  text-align: right;
  direction: rtl;
  unicode-bidi: plaintext;
}

html[lang="fa"] #intro .heading-sponsors .intro-proof-mark {
  display: block;
  width: clamp(2.25rem, 5vw, 3.25rem);
  max-width: 100%;
  height: auto;
  margin-left: auto;
}

html[lang="fa"] #intro .heading-sponsors .intro-proof-text {
  position: static;
  display: inline-block;
  max-width: 100%;
  line-height: 1.7;
  color: var(--hex-fg-3);
  font-weight: 500;
  letter-spacing: 0;
}

@media (min-width: 900px) {
  html[lang="fa"] #intro .home-section-text {
    max-width: 31rem;
    padding-bottom: clamp(8.25rem, 16vh, 11rem);
  }

  html[lang="fa"] #intro .home-section-text h2 {
    line-height: 1.06;
  }

  html[lang="fa"] #intro .home-section-text p {
    margin-bottom: clamp(1.75rem, 3.5vh, 2.5rem);
    max-width: min(30rem, 88vw);
  }

  html[lang="fa"] #intro .heading-links .layout-container {
    padding-bottom: clamp(1.1rem, 2vh, 1.75rem);
  }
}

@media (max-width: 899px) {
  html[lang="fa"] .site-logo-wordmark {
    height: 1.35rem;
  }

  html[lang="fa"] #intro .home-section-text {
    padding-bottom: 4.85rem;
  }

  html[lang="fa"] #intro .home-section-text h2 {
    line-height: 1.24;
  }

  html[lang="fa"] #intro .home-section-text p {
    line-height: 1.7;
    max-width: min(22rem, 92vw);
  }

  html[lang="fa"] #intro .heading-sponsors {
    width: min(6.25rem, 100%);
    max-width: 6.25rem;
    min-height: 5.5rem;
    gap: 0.25rem;
  }

  html[lang="fa"] #intro .heading-sponsors .intro-proof-mark {
    width: clamp(2rem, 12vw, 2.75rem);
  }

  html[lang="fa"] #intro .heading-sponsors .intro-proof-text {
    max-width: 100%;
    line-height: 1.6;
    font-size: 0.72rem;
  }

  html[lang="fa"] #intro .heading-links .layout-container {
    gap: 0.5rem;
  }

  html[lang="fa"] #intro .heading-links .ui-group {
    gap: 0.5rem;
  }
}

html[lang="fa"] .home-section-text h2,
html[lang="fa"] .section-heading {
  line-height: 1.3;
  letter-spacing: 0;
}

html[lang="fa"] .home-section-text p,
html[lang="fa"] .section-sub-heading {
  margin-top: 1.05rem;
}

html[lang="fa"] .section-sub-heading,
html[lang="fa"] #toolbox .home-section-text,
html[lang="fa"] #toolbox .home-section-text h2,
html[lang="fa"] #toolbox .home-section-text p,
html[lang="fa"] .feature-section .home-section-text,
html[lang="fa"] .feature-section .home-section-text-heading,
html[lang="fa"] .feature-section .home-section-text h2,
html[lang="fa"] .feature-section .home-section-text p {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="fa"] #modules .home-section-text,
html[lang="fa"] #modules .section-heading,
html[lang="fa"] #modules .section-sub-heading,
html[lang="fa"] #sponsors .home-section-text,
html[lang="fa"] #sponsors .home-section-text h2,
html[lang="fa"] #sponsors .home-section-text p {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="fa"] #modules .home-section-text,
html[lang="fa"] #sponsors .home-section-text {
  align-items: flex-end;
}

@media (min-width: 900px) {
  html[lang="fa"] #sponsors .home-section-text p,
  html[lang="fa"] #sponsors .home-section-text ul.feature-links {
    width: min(100%, 20rem);
    max-width: 20rem;
  }

  html[lang="fa"] #sponsors .home-section-text ul.feature-links {
    position: relative;
    padding-top: var(--margin-s);
  }

  html[lang="fa"] #sponsors .home-section-text ul.feature-links:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 100%;
    max-width: 16rem;
    height: 1px;
    background-color: var(--hex-fg-3);
    transform-origin: 100% 0;
  }
}

@media (max-width: 899px) {
  html[lang="fa"] #modules .home-section-text {
    left: var(--margin-s);
    right: var(--margin-s);
    width: auto;
    max-width: none;
    margin-inline: auto;
    align-self: center;
    align-items: center;
    text-align: center;
  }

  html[lang="fa"] #modules .section-heading,
  html[lang="fa"] #modules .section-sub-heading {
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
    text-align: center;
  }
}

@media (max-width: 1199px) {
  html[lang="fa"] #site-menu ul {
    direction: rtl;
    align-items: flex-end;
  }

  html[lang="fa"] #site-menu li {
    width: 100%;
    text-align: right;
    padding-right: var(--margin-s);
    padding-left: var(--margin-xxs);
  }

  html[lang="fa"] #site-menu .main-nav-link {
    width: 100%;
    direction: rtl;
    text-align: right;
    justify-content: flex-end;
    flex-direction: row-reverse;
  }

  html[lang="fa"] #site-menu .main-nav-link .icon,
  html[lang="fa"] #site-menu sponsor-button .main-nav-link .icon {
    margin-right: 0;
    margin-left: var(--margin-xs);
  }
}

@media (max-width: 899px) {
  html[lang="fa"] #get-started .home-section-text,
  html[lang="fa"] #get-started .home-section-text h2,
  html[lang="fa"] #get-started .home-section-text p {
    direction: rtl;
    text-align: center;
    unicode-bidi: plaintext;
  }

  html[lang="fa"] #get-started .home-section-text {
    align-items: center;
  }

  html[lang="fa"] #get-started ul.links-list-grid {
    direction: rtl;
    text-align: right;
  }

  html[lang="fa"] #get-started ul.links-list-grid li,
  html[lang="fa"] #get-started ul.links-list-grid li a {
    direction: rtl;
    text-align: right;
  }

  html[lang="fa"] #get-started ul.links-list-grid li a {
    padding-right: 2.5rem;
    padding-left: var(--margin-xxs);
  }

  html[lang="fa"] #get-started ul.links-list-grid .label-dot {
    right: 1rem;
    left: auto;
  }
}

html[lang="fa"] .home-section-text ul.feature-links {
  direction: rtl;
  text-align: right;
  padding-right: 0;
  padding-left: 0;
}

html[lang="fa"] .feature-section ul.feature-links:before {
  right: 0;
  left: auto;
  transform-origin: 100% 0;
}

html[lang="fa"] ul.feature-links li a {
  display: block;
  direction: rtl;
  text-align: right;
  padding-right: 1.75rem;
  padding-left: 0;
}

html[lang="fa"] ul.feature-links li a .icon {
  right: -0.125rem;
  left: auto;
  transform: scaleX(-1);
}

html[lang="fa"] ul.feature-links li a:hover .icon {
  transform: translate(-0.125rem) scaleX(-1);
}

html[lang="fa"] #site-footer,
html[lang="fa"] #site-footer-content {
  direction: rtl;
  text-align: right;
}

html[lang="fa"] #site-footer .footer-row,
html[lang="fa"] #site-footer .footer-block,
html[lang="fa"] #site-footer .footer-block-links,
html[lang="fa"] #site-footer .links-list,
html[lang="fa"] #site-footer .links-list li {
  direction: rtl;
  text-align: right;
}

html[lang="fa"] #site-footer .footer-block-links {
  flex-direction: row-reverse;
}

html[lang="fa"] #site-footer .links-list-heading {
  justify-content: flex-start;
  text-align: right;
}

html[lang="fa"] #site-footer .links-list li a,
html[lang="fa"] #site-footer .links-list li sponsor-button a {
  direction: rtl;
  text-align: right;
  justify-content: space-between;
  padding-right: var(--margin-s);
  padding-left: var(--margin-xxs);
}

html[lang="fa"] #site-footer ul.links-list li a:hover .icon {
  transform: translate(-0.125rem);
}

html[lang="fa"] #site-footer ul.links-list li a[target*="_blank"] .icon {
  rotate: 45deg;
}

html[lang="fa"] #site-footer .footer-logo-block,
html[lang="fa"] #site-footer .footer-logo,
html[lang="fa"] #site-footer .footer-copyright {
  text-align: right;
}

html[lang="fa"] #site-footer .footer-logo-block {
  align-items: flex-end;
}

@media (max-width: 899px) {
  html[lang="fa"] #site-footer .footer-logo-block {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }

  html[lang="fa"] #site-footer .footer-logo.heading-logo {
    width: auto;
    margin: 0;
  }

  html[lang="fa"] #site-footer .footer-logo a {
    justify-content: center;
    height: auto;
  }

  html[lang="fa"] #site-footer .footer-copyright {
    width: auto;
    margin: 0;
    direction: rtl;
    text-align: center;
    unicode-bidi: plaintext;
  }
}

@media (max-width: 430px) {
  html[lang="fa"] .feature-section .home-section-text {
    left: var(--margin-s);
    right: var(--margin-s);
    width: auto;
    max-width: none;
    align-items: center;
    text-align: center;
  }

  html[lang="fa"] .feature-section .home-section-text-heading {
    width: 100%;
    max-width: 19rem;
    margin-inline: auto;
    text-align: center;
  }

  html[lang="fa"] .feature-section .home-section-text h2 {
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    line-height: 1.2;
    text-wrap: balance;
  }

  html[lang="fa"] .feature-section .home-section-text p {
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
}

@container (min-width: 900px) {
  html[lang="fa"] #site-footer .footer-row:has(.footer-block-links) {
    flex-direction: row-reverse;
  }
}

html[lang="fa"] .modules-sizes .modules-bundle-size {
  display: none !important;
}

html[lang="fa"] .modules-sizes {
  direction: rtl;
  text-align: right;
}

html[lang="fa"] .modules-sizes .box-heading {
  justify-content: flex-end;
  text-align: right;
}

html[lang="fa"] .modules-sizes .box-heading h3 {
  width: 100%;
  text-align: right;
}

html[lang="fa"] .modules-sizes .chart,
html[lang="fa"] .modules-sizes .modules-sizes-chart {
  direction: rtl;
}

html[lang="fa"] .modules-sizes ul.modules-list {
  direction: rtl;
  text-align: right;
}

html[lang="fa"] .modules-sizes .modules-list li {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.4rem;
}

html[lang="fa"] .modules-sizes .modules-list .label-dot {
  margin: 0.35rem 0 0;
  flex: 0 0 auto;
}

html[lang="fa"] .module-label-text div {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="fa"] .module-label-text .label-dot {
  margin-right: 0;
  margin-left: 0.35rem;
}

html[lang="fa"] .module-label-text .metric-label {
  opacity: 0.9;
  margin-left: 0.2rem;
}

html[lang="fa"] .module-label-text .metric-unit {
  opacity: 0.7;
  margin-right: 0.15rem;
  font-size: 0.85em;
}

html[lang="fa"] .funding-level-box funding-level .sponsors-list,
html[lang="fa"] .funding-level-box funding-level > p,
html[lang="fa"] .funding-level-box funding-level .funding-level-status,
html[lang="fa"] .funding-level-box funding-level .chart .chart-bar {
  display: none !important;
}

html[lang="fa"] .funding-level-box funding-level .box-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

html[lang="fa"] .funding-level-box funding-level .box-heading h3 {
  font-family: "IRANSansWeb", "DIN", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--hex-fg-1);
  width: 100%;
  text-align: center;
}

html[lang="fa"] .funding-level-box funding-level {
  direction: rtl;
  text-align: right;
}

html[lang="fa"] .funding-level-box funding-level .chart {
  margin-top: 0.65rem;
  height: auto;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  direction: rtl;
  text-align: center;
}

html[lang="fa"] .funding-level-box .experience-pulse {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(120deg, rgba(255, 75, 75, 0.12), rgba(255, 204, 42, 0.09), rgba(0, 255, 170, 0.08)),
    rgba(20, 20, 20, 0.7);
  animation: afra-card-jitter 2.8s ease-in-out infinite;
  direction: rtl;
  text-align: center;
  margin-inline: auto;
}

html[lang="fa"] .funding-level-box .experience-pulse .pulse-label {
  font-family: "IRANSansWeb", "DIN", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hex-fg-1);
  white-space: nowrap;
  text-align: center;
}

html[lang="fa"] .funding-level-box .experience-pulse .pulse-wave {
  position: relative;
  width: clamp(6rem, 24vw, 9.5rem);
  height: 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

html[lang="fa"] .funding-level-box .experience-pulse .pulse-wave::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.35) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.45;
}

html[lang="fa"] .funding-level-box .experience-pulse .pulse-wave::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32%;
  background: linear-gradient(
    90deg,
    rgba(255, 75, 75, 0),
    rgba(255, 75, 75, 0.95),
    rgba(255, 75, 75, 0)
  );
  animation: afra-wave-scan 1.65s linear infinite;
}

html[lang="fa"] .funding-level-box .experience-pulse .pulse-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--hex-red-1);
  box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.65);
  animation: afra-dot-beat 1.1s ease-in-out infinite;
}

@keyframes afra-wave-scan {
  0% {
    transform: translateX(-115%);
  }
  100% {
    transform: translateX(260%);
  }
}

@keyframes afra-dot-beat {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.65);
  }
  50% {
    transform: scale(1.22);
    box-shadow: 0 0 0 0.45rem rgba(255, 75, 75, 0);
  }
}

@keyframes afra-card-jitter {
  0%,
  100% {
    transform: translateX(0);
  }
  32% {
    transform: translateX(-1px);
  }
  48% {
    transform: translateX(1.25px);
  }
  64% {
    transform: translateX(-0.65px);
  }
}
