/* =========================================================
   هویار خودرو — Landing Page Styles
   Design tokens
   ========================================================= */
:root{
  --bg:            #07040d;
  --bg-2:          #0c0716;
  --surface:       #130c22;
  --surface-2:     #1a1130;
  --border:        rgba(168, 118, 255, 0.14);
  --border-strong: rgba(168, 118, 255, 0.32);

  --purple:        #8b3ffb;
  --purple-2:      #c04dff;
  --magenta:       #e93fd0;
  --violet-glow:   #a855f7;

  --text:          #f4f1fb;
  --text-muted:    #a89fc4;
  --text-dim:      #6f6690;

  --grad-brand: linear-gradient(120deg, var(--purple) 0%, var(--purple-2) 55%, var(--magenta) 100%);
  --grad-text:  linear-gradient(120deg, #d9c6ff 0%, #ffffff 45%, #d9c6ff 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-glow: 0 0 60px -12px rgba(139, 63, 251, 0.55);
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
/* overflow-x on body alone did not contain the RTL layout: a fixed, inset:0
   layer measured wider than the viewport and left ~47px of phantom sideways
   scroll on phones. Clamp it on the root too. */
html{ scroll-behavior: smooth; overflow-x: hidden; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
  font-feature-settings: "ss01";
  overflow-x: hidden;
  position: relative;
}

img{ max-width: 100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family: inherit; cursor:pointer; }
input{ font-family: inherit; }

.container{
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* subtle grain + ambient background */
body::before{
  content:"";
  position: fixed; inset:0;
  background:
    radial-gradient(650px 500px at 85% -5%, rgba(139,63,251,0.20), transparent 60%),
    radial-gradient(600px 500px at 5% 15%, rgba(233,63,208,0.10), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(139,63,251,0.14), transparent 60%);
  pointer-events:none;
  z-index:0;
}
.noise-layer{
  position: fixed; inset:0; z-index:1; pointer-events:none;
  opacity:.035; mix-blend-mode: overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow{
  position: fixed; width:420px; height:420px; border-radius:50%;
  pointer-events:none; z-index:0;
  background: radial-gradient(circle, rgba(139,63,251,0.12) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  left:50%; top:30%;
  transition: left .25s var(--ease), top .25s var(--ease);
  display:none;
}
@media (min-width: 900px){ .cursor-glow{ display:block; } }

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

/* =========================================================
   Buttons & shared bits
   ========================================================= */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600; letter-spacing:.02em;
  color: var(--violet-glow);
  margin: 0 0 14px;
}
.eyebrow .dot{
  width:7px; height:7px; border-radius:50%;
  background: var(--grad-brand);
  box-shadow: 0 0 12px 2px rgba(168,85,247,.8);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot{
  0%,100%{ transform: scale(1); opacity:1;}
  50%{ transform: scale(1.5); opacity:.55;}
}

.btn{
  display:inline-flex; align-items:center; gap:9px;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn svg{ transform: scaleX(-1); transition: transform .3s var(--ease); }
.btn:hover svg{ transform: scaleX(-1) translateX(-4px); }

.btn-primary{
  background: var(--grad-brand);
  color:#fff;
  box-shadow: 0 8px 24px -8px rgba(139,63,251,.7);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(139,63,251,.9);
}
.btn-ghost{
  background: rgba(255,255,255,.03);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.07);
  border-color: var(--violet-glow);
  transform: translateY(-2px);
}
.btn-lg{ padding:15px 28px; font-size:15.5px; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.site-header.scrolled{
  background: rgba(7,4,13,.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 24px;
  gap: 20px;
}
.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand-mark{ width:38px; height:38px; object-fit:contain; filter: drop-shadow(0 0 10px rgba(139,63,251,.5)); }
.brand-text{ display:flex; flex-direction:column; line-height:1.35; }
.brand-name{ font-weight:800; font-size:15.5px; background: var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.brand-tag{ font-size:10.5px; color: var(--text-dim); font-weight:500; }

.main-nav ul{ display:flex; align-items:center; gap: 30px; }
.main-nav a{
  font-size: 14px; font-weight:500; color: var(--text-muted);
  position: relative; padding: 6px 2px; display:flex; align-items:center; gap:5px;
  transition: color .25s;
}
.main-nav a:hover{ color: var(--text); }
.main-nav a.active{ color: var(--text); font-weight:700; }
.main-nav a.active::after{
  content:""; position:absolute; right:0; left:0; bottom:-6px; height:2px;
  background: var(--grad-brand); border-radius:2px;
  box-shadow: 0 0 8px rgba(168,85,247,.8);
}
.has-dropdown{ position: relative; }
.has-dropdown svg{ transition: transform .3s; }
.has-dropdown:hover svg{ transform: rotate(180deg); }
.dropdown{
  position:absolute; top: calc(100% + 16px); right:-10px;
  background: var(--surface-2); border:1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px; min-width: 190px;
  opacity:0; visibility:hidden; transform: translateY(8px);
  transition: all .3s var(--ease);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
}
.has-dropdown:hover .dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown a{ padding:9px 12px; border-radius:8px; display:block; font-size:13.5px; }
.dropdown a:hover{ background: rgba(139,63,251,.12); color:#fff; }

.header-actions{ display:flex; align-items:center; gap:14px; }
.icon-btn{
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.03); border:1px solid var(--border);
  color: var(--text-muted);
  transition: all .3s var(--ease);
}
.icon-btn:hover{ color:#fff; border-color: var(--violet-glow); background: rgba(139,63,251,.12); }

.menu-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; padding:8px; }
.menu-toggle span{ width:22px; height:2px; background:#fff; border-radius:2px; transition: all .3s var(--ease); }

.search-panel{
  max-height:0; overflow:hidden; transition: max-height .4s var(--ease), padding .4s;
  border-bottom: 1px solid transparent;
}
.search-panel.open{ max-height:90px; padding: 14px 0; border-color: var(--border); }
.search-panel input{
  width:100%; padding:13px 18px; border-radius:12px;
  background: var(--surface); border:1px solid var(--border);
  color:#fff; font-size:14px; outline:none;
}
.search-panel input:focus{ border-color: var(--violet-glow); }

/* =========================================================
   Hero
   ========================================================= */
.hero{ position:relative; padding: 64px 0 70px; overflow:hidden; }
.hero-bg-glow{
  position:absolute; inset: -10% -10% auto -10%; height:120%;
  background: radial-gradient(ellipse at 70% 20%, rgba(139,63,251,.22), transparent 55%);
  pointer-events:none; z-index:-1;
}
.hero-inner{
  display:grid; grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items:center;
}
.hero-media{ position:relative; }
.hero-frame{
  position:relative; border-radius: var(--radius-lg); overflow:hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow), 0 30px 70px -20px rgba(0,0,0,.7);
}
.hero-frame picture{ display:block; }
.hero-img{ width:100%; height:100%; object-fit:cover; display:block; transform: scale(1.01); }
.hero-frame-corner{
  position:absolute; width:34px; height:34px; pointer-events:none;
  border-color: var(--violet-glow);
}
.hero-frame-corner.tl{ top:14px; right:14px; border-top:2px solid; border-right:2px solid; border-radius: 6px 10px 0 0; opacity:.8;}
.hero-frame-corner.br{ bottom:14px; left:14px; border-bottom:2px solid; border-left:2px solid; border-radius: 0 0 10px 6px; opacity:.8;}
.scan-line{
  position:absolute; right:0; left:0; height:2px;
  background: linear-gradient(90deg, transparent, var(--violet-glow), transparent);
  box-shadow: 0 0 20px 4px rgba(168,85,247,.75);
  top:0; opacity:.85;
  animation: scan 5s ease-in-out infinite;
}
@keyframes scan{
  0%{ top:6%; opacity:0; }
  10%{ opacity:.9; }
  50%{ top:92%; opacity:.9; }
  60%{ opacity:0;}
  100%{ top:92%; opacity:0;}
}

.hero-copy h1{
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 900;
  line-height:1.12;
  margin: 0 0 18px;
  background: var(--grad-text);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-desc{
  font-size: 17.5px; line-height:1.9; color: var(--text-muted);
  max-width: 480px; margin: 0 0 22px; font-weight:400;
}
.hero-motto{
  display:flex; align-items:center; gap:12px;
  font-size:18px; font-weight:700; color:#fff; margin: 0 0 34px;
}
.hero-motto i{ width:5px; height:5px; border-radius:50%; background: var(--violet-glow); box-shadow:0 0 8px var(--violet-glow); }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

/* =========================================================
   Stats bar
   ========================================================= */
.stats-bar{
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(19,12,34,.5), rgba(19,12,34,.15));
  padding: 34px 0;
}
.stats-grid{
  display:grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.stat-item{
  display:flex; align-items:center; gap:14px;
  padding: 6px 18px;
  border-right: 1px solid var(--border);
}
.stat-item:first-child{ border-right:none; }
.stat-icon{
  width:46px; height:46px; flex-shrink:0; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(139,63,251,.12); color: var(--violet-glow);
  border: 1px solid var(--border);
}
.stat-value{ font-size:24px; font-weight:800; color:#fff; line-height:1; }
.stat-label{ font-size:12.5px; color: var(--text-muted); margin-top:5px; }

/* =========================================================
   Categories
   ========================================================= */
.categories{ padding: 90px 0 70px; }
.section-head{ text-align:center; margin-bottom:44px; }
.section-head h2{ font-size: clamp(26px,3vw,36px); font-weight:800; margin:0; }

.cat-grid{
  display:grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.cat-card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow:hidden;
  display:block;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .4s;
  will-change: transform;
}
.cat-card:hover{
  border-color: var(--border-strong);
  box-shadow: 0 22px 45px -18px rgba(139,63,251,.55);
}
.cat-photo{ position:relative; height:110px; overflow:hidden; }
.cat-photo picture{ display:block; width:100%; height:100%; }
.cat-photo::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(7,4,13,0) 40%, var(--surface) 100%);
}
.cat-photo img{ width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease), filter .5s; filter: saturate(1) brightness(.92); }
.cat-card:hover .cat-photo img{ transform: scale(1.12); filter: saturate(1.15) brightness(1); }

.cat-icon{
  position:absolute; top:82px; right:16px;
  width:40px; height:40px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: var(--grad-brand); color:#fff;
  box-shadow: 0 8px 20px -6px rgba(139,63,251,.8), 0 0 0 4px var(--surface);
  transition: transform .4s var(--ease);
}
.cat-card:hover .cat-icon{ transform: translateY(-3px) rotate(-6deg); }

.cat-body{ padding: 26px 16px 18px; }
.cat-body h3{ font-size:14.5px; font-weight:700; margin:0 0 8px; color:#fff; }
.cat-link{
  font-size:12.5px; font-weight:600; color: var(--text-dim);
  display:inline-flex; align-items:center; gap:5px;
  transition: color .3s;
}
.cat-link i{ font-style:normal; display:inline-block; transition: transform .35s var(--ease); }
.cat-card:hover .cat-link{ color: var(--violet-glow); }
.cat-card:hover .cat-link i{ transform: translateX(-4px); }

/* =========================================================
   Mid grid: partners / newsletter / contact
   ========================================================= */
.mid-grid{ padding: 20px 0 90px; }
.mid-grid-inner{
  display:grid; grid-template-columns: 1.25fr 1fr 1fr;
  gap: 20px; align-items:stretch;
}
.panel{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow:hidden;
}
.panel::before{
  content:""; position:absolute; inset:-40% -40% auto auto; width:60%; height:60%;
  background: radial-gradient(circle, rgba(139,63,251,.14), transparent 70%);
  pointer-events:none;
}
.panel-title{ font-size:18px; font-weight:800; margin:0 0 24px; }

/* Partners marquee */
.marquee-wrap{ overflow:hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track{ display:flex; gap:16px; width: max-content; animation: marquee 22s linear infinite; }
.marquee-wrap:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
/* RTL: the flex track is laid out right-to-left and overflows to the left,
   so it must travel rightwards for the following logos to enter the mask.
   Translating it negative (the LTR direction) walked the whole strip out of
   view and left the panel blank. */
html[dir="rtl"] .marquee-track{ animation-name: marquee-rtl; }
@keyframes marquee-rtl{ from{ transform: translateX(0); } to{ transform: translateX(50%); } }
.logo-chip{
  flex: 0 0 auto; width:130px; height:64px; border-radius: 12px;
  background: rgba(255,255,255,.035); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; padding: 10px 16px;
  transition: border-color .3s, background .3s;
}
.logo-chip:hover{ border-color: var(--border-strong); background: rgba(255,255,255,.06); }
.logo-chip img{ max-width:100%; max-height:100%; object-fit:contain; filter: grayscale(.15) brightness(1.05); }

.dots{ display:flex; justify-content:center; gap:8px; margin-top:26px; }
.dot-btn{
  width:8px; height:8px; border-radius:50%; border:none;
  background: rgba(255,255,255,.15);
  transition: all .3s var(--ease);
}
.dot-btn.active{ background: var(--grad-brand); width:22px; border-radius:5px; }
.carousel-arrows{ display:flex; justify-content:center; gap:10px; margin-top:18px; }
.arrow-btn{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--border);
  background: rgba(255,255,255,.03); color: var(--text-muted);
  display:flex; align-items:center; justify-content:center; font-size:16px;
  transition: all .3s var(--ease);
}
.arrow-btn:hover{ color:#fff; border-color: var(--violet-glow); background: rgba(139,63,251,.12); }

/* Newsletter */
.newsletter-panel{
  background: linear-gradient(160deg, rgba(139,63,251,.18), var(--surface) 55%);
  display:flex; flex-direction:column; justify-content:center;
}
.newsletter-text{ font-size:16px; line-height:1.9; font-weight:600; color:#fff; margin:0 0 22px; }
.newsletter-form{ display:flex; gap:10px; }
.newsletter-form input{
  flex:1; min-width:0; padding: 13px 16px; border-radius: 100px;
  background: rgba(7,4,13,.5); border:1px solid var(--border);
  color:#fff; font-size:13.5px; outline:none; transition: border-color .3s;
}
.newsletter-form input:focus{ border-color: var(--violet-glow); }
.newsletter-form .btn{ flex-shrink:0; }
.newsletter-msg{ font-size:13px; color: var(--violet-glow); min-height:18px; margin: 12px 2px 0; font-weight:600; }

/* Contact panel */
.contact-brand{ display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.contact-desc{ font-size:13.5px; color: var(--text-muted); line-height:1.9; margin: 0 0 20px; }
.contact-list{ display:flex; flex-direction:column; gap:13px; margin-bottom:22px; }
.contact-list li{ display:flex; align-items:center; gap:10px; font-size:13.5px; color: var(--text-muted); }
.ci-icon{
  width:30px; height:30px; border-radius:9px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(139,63,251,.12); color: var(--violet-glow);
}
.social-row{ display:flex; gap:10px; }
.social-btn{
  width:36px; height:36px; border-radius:10px; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; color: var(--text-muted);
  transition: all .3s var(--ease);
}
.social-btn:hover{ color:#fff; border-color: var(--violet-glow); background: rgba(139,63,251,.14); transform: translateY(-3px); }

/* =========================================================
   Features strip
   ========================================================= */
.features-strip{ padding: 0 0 80px; }
.features-grid{
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.feature-item{
  display:flex; align-items:center; gap:14px;
  padding: 6px 14px; border-right: 1px solid var(--border);
}
.feature-item:first-child{ border-right:none; }
.feature-icon{
  width:48px; height:48px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(139,63,251,.12); color: var(--violet-glow);
}
.feature-item h4{ font-size:14.5px; font-weight:700; margin:0 0 3px; color:#fff; }
.feature-item p{ font-size:12px; color: var(--text-dim); margin:0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ border-top:1px solid var(--border); padding: 22px 0; }
.footer-inner{ text-align:center; font-size:12.5px; color: var(--text-dim); }

/* =========================================================
   Scroll reveal
   ========================================================= */
[data-reveal]{
  opacity:0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible{ opacity:1; transform:none; }
.cat-grid [data-reveal]{ transition-delay: calc(var(--i, 0) * 60ms); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px){
  .cat-grid{ grid-template-columns: repeat(3,1fr); }
  .mid-grid-inner{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: repeat(3,1fr); }
  .stat-item:nth-child(4){ border-right:none; }
  .features-grid{ grid-template-columns: repeat(2,1fr); }
  .feature-item:nth-child(3){ border-right:none; }
}

@media (max-width: 900px){
  .main-nav{
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82%);
    background: var(--bg-2); border-left:1px solid var(--border);
    padding: 90px 26px 26px; transform: translateX(100%);
    transition: transform .4s var(--ease); z-index: 40;
  }
  html[dir="rtl"] .main-nav{ inset:0 auto 0 0; transform: translateX(-100%); }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{ flex-direction:column; align-items:flex-start; gap:6px; }
  .main-nav a{ padding:12px 4px; width:100%; }
  .dropdown{ position: static; opacity:1; visibility:visible; transform:none; display:none; margin-top:4px; border:none; background:none; padding:0 0 0 14px; }
  .has-dropdown.open .dropdown{ display:block; }
  .menu-toggle{ display:flex; }
  .header-actions .btn-primary{ display:none; }

  .hero-inner{ grid-template-columns:1fr; }
  .hero-copy{ order:2; text-align:center; }
  .hero-desc{ margin-inline:auto; }
  .hero-motto{ justify-content:center; }
  .hero-actions{ justify-content:center; }

  .cat-grid{ grid-template-columns: repeat(2,1fr); }
  .stats-grid{ grid-template-columns: repeat(2,1fr); }
  .stat-item{ border-right:none !important; }
  .features-grid{ grid-template-columns: 1fr; }
  .feature-item{ border-right:none !important; }
}

@media (max-width: 520px){
  .header-inner{ padding: 14px 18px; }
  .brand-tag{ display:none; }
  .hero{ padding: 40px 0 50px; }
  .categories{ padding: 60px 0; }
  .cat-grid{ grid-template-columns: 1fr 1fr; gap:12px; }
  .newsletter-form{ flex-direction:column; }
}

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

/* contact list: phone / email are links */
.contact-list a{
  color: inherit;
  transition: color .25s;
  border-bottom: 1px solid transparent;
}
.contact-list a:hover{ color: var(--text); border-bottom-color: var(--border-strong); }
