@font-face {
  font-family: 'Vazir';
  src: url('../fonts/vazir-font-v16.1.0/Vazir.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazir';
  src: url('../fonts/vazir-font-v16.1.0/Vazir-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazir';
  src: url('../fonts/vazir-font-v16.1.0/Vazir-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #fcfcff;
  --color-primary: #7c3aed;
  --color-primary-dark: #5b21b6;
  --color-primary-soft: rgba(124, 58, 237, 0.08);

  --color-text-main: #111827;
  --color-text-muted: #6b7280;
  --color-border-subtle: #e5e7eb;
  --color-surface: #ffffff;

  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-info: #0ea5e9;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --blur-soft: 20px;

  --radius-large: 24px;
  --radius-medium: 16px;
  --radius-small: 10px;

  --transition-soft: 240ms ease;
  --transition-slow: 520ms cubic-bezier(0.22, 1, 0.36, 1);

  --header-height: 70px;
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Vazir', sans-serif;
  background: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-loading {
  overflow: hidden;
}

main,
footer {
  position: relative;
  z-index: 1;
}

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

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

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

button {
  border: 0;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.65);
  outline-offset: 3px;
}

::selection {
  background: rgba(124, 58, 237, 0.2);
  color: var(--color-text-main);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
