/* ==========================================================================
   فونت فارسی (روی همین ریپازیتوری میزبانی می‌شود، بدون وابستگی به سرویس‌های
   خارجی مثل Google Fonts — برای پایداری بیشتر روی اینترنت داخل ایران)
   ========================================================================== */
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

/* ==========================================================================
   توکن‌های طراحی
   ========================================================================== */
:root {
  --ink: #14181c;
  --surface: #1c2227;
  --surface-raised: #262e35;
  --border: #333d45;

  --accent: #d9722c;
  --accent-soft: #f0a868;
  --steel: #7fa0b3;

  --paper: #ede9e1;
  --paper-dim: #a9a89f;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);

  --font-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --container: 1180px;
}

/* ==========================================================================
   پایه
   ========================================================================== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 0.5em;
}
p {
  margin: 0 0 1em;
  color: var(--paper-dim);
}
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-mono);
}
section {
  padding-block: 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-soft);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* ==========================================================================
   دکمه‌ها
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: #1a1104;
}
.btn-primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 8px 20px -6px rgba(217, 114, 44, 0.55);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--steel);
  color: var(--steel);
}
.btn-whatsapp {
  background: #25d366;
  color: #05320f;
  width: 100%;
  justify-content: center;
}
.btn-whatsapp:hover {
  background: #34e37a;
}

/* ==========================================================================
   هدر
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 24, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--accent), #9c4a13);
  display: grid;
  place-items: center;
  color: #1a1104;
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 15px;
  color: var(--paper-dim);
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--paper);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions .btn {
  padding: 10px 18px;
  font-size: 14px;
}
@media (max-width: 720px) {
  .main-nav {
    display: none;
  }
}

/* ==========================================================================
   هیرو + نمونه لایه‌های مغزه (المان بصری اصلی)
   ========================================================================== */
.hero {
  padding-block: 64px 88px;
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.01em;
}
.hero h1 span {
  color: var(--accent);
}
.hero .lead {
  font-size: 17px;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-size: 24px;
  color: var(--paper);
  font-weight: 900;
}
.hero-stats div span {
  font-size: 13px;
  color: var(--paper-dim);
}

.core-sample {
  position: relative;
  height: 420px;
  display: flex;
  justify-content: center;
}
.core-sample svg {
  height: 100%;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.5));
}
.core-sample .drill-icon {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-soft);
  animation: spin 7s linear infinite;
  transform-origin: center;
}
@keyframes spin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .core-sample .drill-icon { animation: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .core-sample {
    height: 220px;
    order: -1;
  }
}

/* strata divider used between sections */
.strata-rule {
  height: 6px;
  display: flex;
}
.strata-rule span {
  flex: 1;
}

/* ==========================================================================
   بخش دسته‌بندی‌ها / ویژگی‌ها
   ========================================================================== */
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.feature-card, .category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.category-card {
  text-align: center;
}
.feature-card:hover, .category-card:hover {
  transform: translateY(-4px);
  border-color: var(--steel);
}
.feature-icon, .category-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(217, 114, 44, 0.14);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.category-icon {
  margin-inline: auto;
  margin-bottom: 14px;
}
.feature-card h3, .category-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.feature-card p, .category-card p {
  font-size: 14px;
  margin: 0;
}

/* ==========================================================================
   بخش اعتماد / روند سفارش
   ========================================================================== */
.trust-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
@media (max-width: 760px) {
  .steps-row { grid-template-columns: 1fr; }
}
.step {
  position: relative;
  padding-inline-start: 20px;
  border-inline-start: 2px solid var(--border);
}
.step strong {
  display: block;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 8px;
}
.step h4 {
  margin-bottom: 6px;
  font-size: 16px;
}
.step p {
  font-size: 14px;
  margin: 0;
}

/* ==========================================================================
   نوار CTA پایانی صفحه اصلی
   ========================================================================== */
.cta-band {
  text-align: center;
  padding-block: 90px;
}
.cta-band h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  max-width: 640px;
  margin-inline: auto 0.5em;
}
.cta-band .btn {
  margin-top: 20px;
}

/* ==========================================================================
   فوتر
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  font-size: 14px;
  color: var(--paper-dim);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 20px;
}

/* ==========================================================================
   صفحه محصولات — نوار فیلتر
   ========================================================================== */
.page-header {
  padding-block: 48px 32px;
}
.page-header h1 {
  font-size: clamp(26px, 3.6vw, 38px);
}
.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 30;
  background: rgba(20, 24, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding-block: 16px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
}
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--paper-dim);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill:hover {
  border-color: var(--steel);
  color: var(--paper);
}
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1104;
  font-weight: 600;
}
.result-count {
  font-size: 13px;
  color: var(--paper-dim);
  white-space: nowrap;
}

/* ==========================================================================
   گرید محصولات و کارت
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  padding-block: 36px 80px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--steel);
}
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, var(--surface-raised), var(--ink));
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--steel);
}
.media-fallback span {
  font-size: 12px;
  color: var(--paper-dim);
}
.product-media.no-image img {
  display: none;
}
.product-media.no-image .media-fallback {
  display: flex;
}
.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: 12px;
  color: var(--steel);
  font-weight: 600;
  margin-bottom: 8px;
}
.product-name {
  font-size: 17px;
  margin-bottom: 8px;
}
.product-desc {
  font-size: 13.5px;
  flex: 1;
}
.model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.model-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--paper);
  padding: 3px 10px;
  border-radius: 6px;
}
.empty-state {
  text-align: center;
  padding-block: 60px;
  color: var(--paper-dim);
}

/* ==========================================================================
   ظاهر شدن تدریجی هنگام اسکرول
   ========================================================================== */
/* پیش‌فرض: کاملاً نمایان. حالت مخفی فقط توسط جاوااسکریپت و درست قبل از
   observe شدن اضافه می‌شود؛ یعنی اگر جاوااسکریپت اجرا نشود یا کند باشد،
   محتوا هیچ‌وقت مخفی نمی‌مونه. */
.reveal.pre-animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.pre-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal.pre-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
