@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn[wght].woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f6fb;
  --text: #0f172a;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Vazirmatn", "IRANSansX", "IRANSans", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.container {
  width: min(1280px, 96vw);
  margin: 0 auto;
}

.home-scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(89, 215, 192, 0.55);
  border-radius: 50%;
  background: linear-gradient(145deg, #0c8b7f, #075f59);
  color: #fff;
  box-shadow: 0 12px 30px rgba(5, 52, 48, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, box-shadow 180ms ease;
}

.home-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.home-scroll-top:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(5, 52, 48, 0.35); }
.home-scroll-top:focus-visible { outline: 3px solid #ffc94d; outline-offset: 3px; }
.home-scroll-top span { font-size: 1.55rem; font-weight: 900; line-height: 1; }

@media (max-width: 620px) {
  .home-scroll-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-scroll-top { transition: none; }
}
