@font-face {
  font-family: "Bernoru";
  src:
    url("/assets/fonts/bernoru-blacksemicondensed-webfont.woff2") format("woff2"),
    url("/assets/fonts/bernoru-blacksemicondensed-webfont.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h-compact) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  font-family: var(--font-display);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(187, 58, 37, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(10, 10, 10, 0.03), transparent 50%),
    var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="fa"] body,
html[lang="fa"] button,
html[lang="fa"] input,
html[lang="fa"] textarea,
html[lang="fa"] select,
html[lang="fa"] .btn,
html[lang="fa"] .label,
html[lang="fa"] .nav-brand,
html[lang="fa"] .pill,
html[lang="fa"] .action-tile,
html[lang="fa"] .stat-value,
html[lang="fa"] .calc-revenue,
html[lang="fa"] .ticker,
html[lang="fa"] .stage-item,
html[lang="fa"] .stage-frame,
html[lang="fa"] .faq-item,
html[lang="fa"] .footer,
html[lang="fa"] .lang-link,
html[lang="fa"] .why-panel {
  font-family: var(--font-fa);
  letter-spacing: 0;
  text-transform: none;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.label {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

html[lang="fa"] .display {
  letter-spacing: 0;
  line-height: 1.28;
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
