/* راست‌چین کامل */
html, body { direction: rtl; }
:root {
  --bg: #07080a;
  --bg-2: #0d0f12;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9ecef;
  --muted: #9aa3ad;
  --red: #e10600;
  --red-glow: rgba(225, 6, 0, 0.45);
  --silver: linear-gradient(135deg, #f5f7fa 0%, #b9c0c8 45%, #6d747c 100%);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #ff2a1f, var(--red));
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--red-glow);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px var(--red-glow); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.3); }

.btn-small { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--red);
  font-weight: 800;
  padding: .3rem .9rem;
  border: 1px solid rgba(225, 6, 0, .35);
  border-radius: 999px;
  background: rgba(225, 6, 0, .08);
  margin-bottom: 1rem;
}

h1, h2, h3, h4 { line-height: 1.35; font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }

.metal {
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.accent { color: var(--red); display: block; text-shadow: 0 0 40px var(--red-glow); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: .9rem 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
/* وقتی نوار مدیریت وردپرس نمایش داده می‌شود، هدر زیر آن قرار بگیرد */
.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .navbar { top: 46px; } }
.navbar.scrolled {
  background: rgba(7, 8, 10, .75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: .55rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img { height: 52px; width: auto; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) {
  font-size: .95rem;
  color: var(--muted);
  position: relative;
  transition: color .2s;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  margin-inline: auto;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: .6;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  animation: float 14s ease-in-out infinite alternate;
}
.glow-red { width: 520px; height: 520px; background: var(--red); top: -120px; left: -80px; }
.glow-silver { width: 460px; height: 460px; background: #8a939e; bottom: -140px; right: -100px; animation-delay: -6s; }

@keyframes float {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, -30px); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 3rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin-bottom: 1.4rem;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}
.lead strong { color: var(--text); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: min(520px, 100%);
  justify-self: center;
  display: grid;
  place-items: center;
}
.hero-logo {
  position: relative;
  z-index: 2;
  width: 78%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.7));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Spinning brake disc behind the logo */
.disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1b1e22 0 38%, #0c0d0f 39% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 120px -20px var(--red-glow);
  animation: spin 40s linear infinite;
}
.disc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.12);
  inset: 0;
}
.disc-ring.r1 { inset: 6%; }
.disc-ring.r2 { inset: 18%; border-style: solid; border-color: rgba(225,6,0,.25); }
.disc-ring.r3 { inset: 30%; }
.disc-slots {
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg, transparent 0 9deg, rgba(255,255,255,.05) 9deg 10deg);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 0 40%, #000 41% 100%);
          mask: radial-gradient(circle, transparent 0 40%, #000 41% 100%);
}
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--muted);
  border-radius: 20px;
  opacity: .7;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--red);
  border-radius: 4px;
  animation: scroll 1.8s var(--ease) infinite;
}
@keyframes scroll {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-head p { color: var(--muted); margin-top: .6rem; }

/* ---------- Cards / About ---------- */
.about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 6, 0, .4);
  background: rgba(225, 6, 0, .04);
}
.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  border-radius: 14px;
  background: var(--silver);
  color: #111;
  margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.product {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(225,6,0,.22), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.product:hover {
  transform: translateY(-8px);
  border-color: rgba(225,6,0,.5);
  box-shadow: 0 25px 60px -25px var(--red-glow);
}
.product:hover::before { opacity: 1; }
.product > * { position: relative; }

.product-badge {
  position: absolute !important;
  top: 14px;
  inset-inline-start: 14px;
  font-size: .72rem;
  font-weight: 800;
  background: var(--red);
  color: #fff;
  padding: .2rem .65rem;
  border-radius: 999px;
}
.product-icon {
  font-size: 2.2rem;
  color: var(--red);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px var(--red-glow);
}
.product h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.product-for { font-size: .85rem; color: var(--muted); margin-bottom: 1.1rem; }
.product ul { margin-bottom: 1.4rem; flex: 1; }
.product li {
  font-size: .92rem;
  padding: .35rem 0 .35rem 1.2rem;
  padding-inline: 1.2rem 0;
  position: relative;
  color: #cfd4da;
}
.product li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.product-link { font-weight: 800; color: var(--text); transition: color .2s; }
.product-link:hover { color: var(--red); }

/* ---------- Why ---------- */
.why {
  background:
    radial-gradient(ellipse at 100% 50%, rgba(225,6,0,.12), transparent 50%),
    var(--bg);
}
.why-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.why-text p { color: var(--muted); margin-top: 1rem; max-width: 32rem; }
.features { display: grid; gap: 1rem; }
.feature {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .3s, transform .3s var(--ease);
}
.feature:hover { border-color: rgba(255,255,255,.25); transform: translateX(6px); }
.feature-num {
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 2.2rem;
}
.feature h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info p { color: var(--muted); margin: .8rem 0 2rem; }
.contact-list { display: grid; gap: 1rem; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.contact-list span { color: var(--muted); font-size: .9rem; }
.contact-list a:hover { color: var(--red); }
.contact-list p { margin: 0; color: var(--text); text-align: right; }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.2rem;
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: .45rem; }
.field label { font-size: .9rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(225,6,0,.15);
}
.field textarea { resize: vertical; }
.field select option { background: #111; }
.field.invalid input { border-color: var(--red); }
.form-status { font-size: .9rem; color: var(--muted); text-align: center; min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 1.6rem 0; background: #06070a; }
.footer-inner { text-align: center; font-size: .9rem; color: var(--muted); }
.footer-inner p { margin: 0; }
.footer-inner strong { color: var(--red); font-weight: 800; }
.footer-inner a { color: var(--text); font-weight: 700; }
.footer-inner a:hover { color: var(--red); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.product-grid .reveal:nth-child(2),
.about-grid .reveal:nth-child(2) { transition-delay: .1s; }
.product-grid .reveal:nth-child(3),
.about-grid .reveal:nth-child(3) { transition-delay: .2s; }
.product-grid .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    top: 70px;
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem;
    background: rgba(7,8,10,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: none; }
  .hero-inner,
  .why-inner,
  .contact-inner { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; width: min(340px, 80%); }
  .about-grid { grid-template-columns: 1fr; }
  .why-text { text-align: center; }
  .why-text p { margin-inline: auto; }
  .contact-list p { text-align: right; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .brand img { height: 44px; }
  .section { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
