@font-face {
  font-family: "VazirmatnLocal";
  src: local("Vazirmatn"), local("Tahoma");
  font-display: swap;
}

:root {
  --yellow: #ffbd18;
  --yellow-dark: #e39d00;
  --black: #121212;
  --ink: #252525;
  --muted: #6c7078;
  --bg: #f5f6f7;
  --surface: #ffffff;
  --border: #e5e7eb;
  --success: #138a52;
  --danger: #b42318;
  --radius: 22px;
  --shadow: 0 12px 30px rgba(17, 24, 39, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  font-family: VazirmatnLocal, Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: var(--black);
  color: #fff;
  font-size: 13px;
}
.topbar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  display: block;
  width: 150px;
  height: 52px;
  object-fit: contain;
}
.brand-fallback {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
}
nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}
nav a:hover { color: var(--yellow-dark); }
.nav-cta, .btn {
  border: 0;
  border-radius: 14px;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}
.nav-cta, .btn-primary {
  background: var(--yellow);
  color: #111;
}
.btn-primary:hover { background: #ffca45; }
.btn-dark {
  background: var(--black);
  color: white;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
}
.mobile-menu { display: none; }

.hero {
  padding: 64px 0 42px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
}
.hero-copy {
  background: var(--surface);
  padding: 38px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-flex;
  background: #fff3c9;
  color: #745100;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
}
h1, h2, h3 { line-height: 1.45; margin-top: 0; }
h1 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
}
.hero-copy p { color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.hero-card {
  min-height: 390px;
  border-radius: 32px;
  padding: 38px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(145deg, #111 0%, #1f1f1f 60%, #050505 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.hero-card .bolt {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: var(--yellow);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 46px;
}
.hero-card strong { font-size: 28px; }
.hero-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.hero-point {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  font-size: 13px;
}

.section { padding: 52px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-head p { color: var(--muted); margin: 0; max-width: 620px; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff2c2;
  font-size: 22px;
}
.feature h3 { margin: 12px 0 4px; font-size: 17px; }
.feature p { color: var(--muted); font-size: 13px; margin: 0; }

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-media {
  height: 190px;
  background: linear-gradient(145deg, #f8f8f8, #eee);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-media .fallback-battery { font-size: 64px; }
.product-body { padding: 18px; }
.product-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.badge {
  font-size: 11px;
  border-radius: 99px;
  padding: 3px 9px;
  background: #f3f4f6;
}
.product-title { font-weight: 900; font-size: 18px; margin-bottom: 4px; }
.product-desc { color: var(--muted); font-size: 13px; min-height: 48px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  margin-top: 14px;
}
.price { font-size: 19px; font-weight: 900; }
.old-price { color: #999; text-decoration: line-through; font-size: 12px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.step {
  background: var(--black);
  color: white;
  border-radius: var(--radius);
  padding: 22px;
}
.step-num {
  color: var(--yellow);
  font-size: 32px;
  font-weight: 900;
}
.step p { color: #c7c7c7; margin-bottom: 0; font-size: 13px; }

.notice {
  background: #fff8de;
  border: 1px solid #f5d86a;
  border-radius: var(--radius);
  padding: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.info-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.info-card p, .info-card li { color: var(--muted); }
.info-card ul { padding-right: 20px; }

.page-hero {
  padding: 44px 0 20px;
}
.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 30px;
  margin: 20px 0 50px;
}
.page-card h2 { margin-top: 28px; font-size: 20px; }
.page-card h2:first-child { margin-top: 0; }

.contact-list {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
}
.contact-item {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.contact-label { color: var(--muted); font-size: 12px; }
.contact-value { font-weight: 800; direction: ltr; text-align: right; }

footer {
  background: #101010;
  color: white;
  margin-top: 42px;
  padding: 34px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
footer p, footer a { color: #bababa; font-size: 13px; }
footer a:hover { color: var(--yellow); }
.footer-links { display: grid; gap: 7px; }
.enamad-box {
  width: 110px;
  min-height: 110px;
  border-radius: 14px;
  border: 1px dashed #555;
  display: grid;
  place-items: center;
  color: #8a8a8a;
  text-align: center;
  font-size: 11px;
  padding: 7px;
}
.copyright {
  border-top: 1px solid #2a2a2a;
  padding-top: 18px;
  margin-top: 22px;
  color: #888;
  font-size: 12px;
}

.loading, .empty, .error {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.error { color: var(--danger); }

@media (max-width: 900px) {
  nav { display: none; }
  .mobile-menu { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .topbar .container { flex-direction: column; padding: 8px 0; gap: 2px; }
  .nav { min-height: 66px; }
  .brand img { width: 120px; height: 42px; }
  .hero { padding-top: 30px; }
  .hero-copy, .hero-card { padding: 24px; }
  .features, .steps, .products, .info-grid, .contact-list, .footer-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 34px 0; }
  .section-head { align-items: start; flex-direction: column; }
}
