/* ============================================================
   ردپو لندینگ‌پیج — استایل‌شیت اصلی
   فونت: وزیرمتن (لوکال)  |  رنگ برند: #ab1c1c
   ============================================================ */

/* ---------- FONT-FACE ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
       url('fonts/Vazirmatn[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- TOKENS ---------- */
:root {
  --red:      #ab1c1c;
  --red-deep: #8a1414;
  --red-soft: #f7ebeb;
  --ink:      #1a1514;
  --ink-soft: #574e4c;
  --ink-faint:#8c8380;
  --paper:    #fbf9f8;
  --paper-2:  #f4f0ee;
  --line:     #e7e1de;
  --white:    #ffffff;
  --maxw:     1180px;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --mono:     ui-monospace, 'Cascadia Code', 'Fira Code', Menlo, Consolas, 'Liberation Mono', monospace;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- UTILITIES ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }

/* ---------- ANIMATIONS ---------- */
@keyframes pulse  { 0%  { box-shadow: 0 0 0 0 rgba(171,28,28,.45); }
                    70% { box-shadow: 0 0 0 8px rgba(171,28,28,0);  }
                    100%{ box-shadow: 0 0 0 0 rgba(171,28,28,0);   } }
@keyframes pulse2 { 50% { opacity: .45; } }

/* ---------- HEADER ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 42px; height: 42px; border-radius: 10px; display: block; }
.brand .name { display: flex; flex-direction: column; line-height: 1.15; }
.brand .name b { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.brand .tagline { display: block; font-size: 10px; color: var(--ink-faint); font-weight: 500; line-height: 1.3; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--red); }
.nav-links a.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red); color: var(--white);
  padding: 11px 22px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(171,28,28,.24);
}
.nav-links a.nav-cta:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(171,28,28,.30); }
@media (max-width: 860px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 86px 0 96px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to left,   rgba(26,21,20,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,21,20,.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 78%);
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red-soft); color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 22%, transparent);
  padding: 7px 14px; border-radius: 100px;
  font-size: 12.5px; font-weight: 600; margin-bottom: 26px; white-space: nowrap;
}
@media (max-width: 420px) { .badge { white-space: normal; } }
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(171,28,28,.5); animation: pulse 2.2s infinite;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 900; line-height: 1.18; letter-spacing: -0.02em;
  margin-bottom: 24px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead {
  font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft);
  max-width: 540px; margin-bottom: 36px; line-height: 1.95;
}

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: var(--white);
  padding: 15px 30px; border-radius: 12px;
  font-weight: 700; font-size: 16px;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 10px 28px rgba(171,28,28,.26);
}
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(171,28,28,.32); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); padding: 15px 26px; border-radius: 12px;
  font-weight: 600; font-size: 16px; border: 1px solid var(--line); background: var(--white);
  transition: border-color .2s, transform .2s;
}
.btn-ghost:hover { border-color: var(--ink-faint); transform: translateY(-2px); }

.hero-meta { display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.hero-meta .m b { display: block; font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.hero-meta .m span { font-size: 13px; color: var(--ink-faint); }

/* Fleet dashboard card */
.hero-card {
  position: relative; background: #171110; border-radius: 24px; padding: 22px 22px 18px;
  box-shadow: 0 30px 70px -24px rgba(26,21,20,.60); overflow: hidden;
  display: flex; flex-direction: column;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to left,   rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hc-header {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.hc-live { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 12.5px; font-weight: 600; }
.hc-live .d { width: 8px; height: 8px; border-radius: 50%; background: #41d17e; box-shadow: 0 0 10px #41d17e; animation: pulse2 1.8s infinite; }
.hc-badge {
  font-family: 'Vazirmatn', sans-serif; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.55); direction: rtl; background: rgba(255,255,255,.06);
  padding: 3px 10px; border-radius: 100px; border: 1px solid rgba(255,255,255,.1);
}

.vlist { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.vrow { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; transition: background .18s; cursor: default; }
.vrow:hover { background: rgba(255,255,255,.055); }
.vrow:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,.07); }
.vs { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.vs.g { background: #41d17e; box-shadow: 0 0 7px rgba(65,209,126,.8); }
.vs.y { background: #f0c142; box-shadow: 0 0 7px rgba(240,193,66,.7); }
.vs.r { background: #ff5a5a; box-shadow: 0 0 7px rgba(255,90,90,.8); animation: pulse2 1.4s infinite; }
.vplate {
  font-size: 12px; width: 110px; flex-shrink: 0; letter-spacing: .03em;
  font-family: 'Vazirmatn', sans-serif; color: rgba(255,255,255,.9);
}
.vplate.fa-plate {
  direction: rtl; unicode-bidi: isolate; text-align: right;
}
.vplate.en-plate {
  direction: ltr; unicode-bidi: isolate; font-family: var(--mono); text-align: left;
}
.vpath  { flex: 1; font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vspeed { text-align: end; flex-shrink: 0; }
.vspeed b    { display: block; color: #fff; font-size: 17px; font-weight: 800; line-height: 1; font-family: var(--mono); direction: ltr; }
.vspeed span { font-size: 10px; color: rgba(255,255,255,.4); }
.valert { font-size: 11px; font-weight: 700; color: #ff5a5a; background: rgba(255,90,90,.12); padding: 3px 9px; border-radius: 6px; flex-shrink: 0; }

.dash-footer {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.09); margin-top: 14px;
}
.dfi { text-align: center; padding: 10px 6px; background: rgba(255,255,255,.04); border-radius: 10px; border: 1px solid rgba(255,255,255,.07); }
.dfi b    { display: block; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.15; }
.dfi span { font-size: 10.5px; color: rgba(255,255,255,.45); }

@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 44px; } .hero-card { max-width: 420px; } }

/* ---------- SECTION SHELL ---------- */
section.block { padding: 92px 0; }
.sec-head { max-width: 660px; margin-bottom: 54px; }
.sec-head .kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--red); font-weight: 700;
  letter-spacing: .01em; margin-bottom: 16px;
}
.sec-head .kicker::before { content: ""; width: 22px; height: 1px; background: var(--red); }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 16px; }
.sec-head p  { font-size: 17px; color: var(--ink-soft); line-height: 1.9; }

/* ---------- CAPABILITIES ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.cap {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.cap:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(26,21,20,.28); border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
.cap-ic { width: 50px; height: 50px; border-radius: 13px; background: var(--red-soft); display: grid; place-items: center; margin-bottom: 22px; }
.cap-ic svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cap h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.cap p  { font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; }
@media (max-width: 920px) { .cap-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- TRANSIT ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature .sec-head { margin-bottom: 26px; max-width: none; }
.flist { display: flex; flex-direction: column; gap: 15px; margin-top: 28px; }
.flist .fl { display: flex; align-items: flex-start; gap: 13px; font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.flist .fl > svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 2px; }
.flist .fl b { color: var(--ink); font-weight: 700; }
@media (max-width: 920px) { .feature { grid-template-columns: 1fr; gap: 42px; } }

.transit-card { position: relative; background: var(--ink); border-radius: 24px; padding: 30px 30px 18px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(26,21,20,.5); }
.transit-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to left, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.transit-card .hc-top { position: relative; display: flex; align-items: center; justify-content: space-between; z-index: 2; margin-bottom: 26px; }
.transit-card .hc-live { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 600; }
.transit-card .hc-live .d { width: 8px; height: 8px; border-radius: 50%; background: #41d17e; box-shadow: 0 0 10px #41d17e; animation: pulse2 1.8s infinite; }
.transit-card .hc-tag { font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,.5); direction: ltr; }
.corridor { position: relative; z-index: 2; padding-inline-start: 8px; }
.cstop { position: relative; display: flex; align-items: center; gap: 16px; padding: 13px 0; }
.cstop .cdot { width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--red); flex-shrink: 0; z-index: 2; position: relative; }
.cstop:not(:last-child)::after {
  content: ""; position: absolute;
  inset-inline-start: 5px; /* aligns with center of 14px dot (7px center - 1px border) */
  top: calc(50% + 7px); /* start from bottom edge of dot */
  bottom: calc(-50% + 7px - 13px); /* extend to top of next dot */
  width: 0;
  border-inline-start: 2px dashed rgba(255,255,255,.25);
  z-index: 1;
}
.cstop .ctext { flex: 1; }
.cstop .ctext b    { display: block; color: #fff; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.cstop .ctext span { font-size: 12px; color: rgba(255,255,255,.55); }
.cstop .cbadge { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 4px 10px; border-radius: 100px; direction: ltr; }
.cstop.done .cdot { background: #41d17e; box-shadow: 0 0 0 2px #41d17e; }

/* ---------- HOW / PIPELINE ---------- */
.pipe { background: var(--ink); color: var(--white); border-radius: 28px; padding: 60px 56px; position: relative; overflow: hidden; }
.pipe::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to left, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000, transparent 75%);
}
.pipe .sec-head          { position: relative; z-index: 1; }
.pipe .sec-head h2       { color: #fff; }
.pipe .sec-head .kicker  { color: #ff7a7a; }
.pipe .sec-head .kicker::before { background: #ff7a7a; }
.pipe .sec-head p        { color: rgba(255,255,255,.66); }

.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); margin-top: 12px; }

.step { padding: 26px 20px; position: relative; }
.step .sn {
  width: 40px; height: 40px; border-radius: 11px; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
  margin-bottom: 20px; position: relative; z-index: 2;
  box-shadow: 0 6px 16px rgba(171,28,28,.4);
}
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.8; }
@media (max-width: 820px) {
  .pipe { padding: 44px 28px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 14px; }

}

/* ---------- API / DEVELOPERS ---------- */
.api-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 58px 56px; position: relative; overflow: hidden; }
.api-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to left, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 80% at 15% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 15% 20%, #000, transparent 75%);
}
.api-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: center; }
.api-grid .sec-head           { margin-bottom: 0; max-width: none; }
.api-grid .sec-head h2        { color: #fff; }
.api-grid .sec-head .kicker   { color: #ff7a7a; }
.api-grid .sec-head .kicker::before { background: #ff7a7a; }
.api-grid .sec-head p         { color: rgba(255,255,255,.66); }

.api-flist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin-top: 28px; }
.api-flist .af { display: flex; align-items: flex-start; gap: 11px; }
.api-flist .af svg  { width: 19px; height: 19px; stroke: #ff8a8a; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 3px; }
.api-flist .af b    { display: block; color: #fff; font-size: 14.5px; font-weight: 700; }
.api-flist .af span { font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.6; }

.code-card { background: #100c0c; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
.code-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-head .cdots   { display: flex; gap: 6px; }
.code-head .cdots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.code-head .cfile   { font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,.5); margin-right: auto; direction: ltr; }
.code-body { padding: 18px 20px; font-family: var(--mono); font-size: 12px; line-height: 1.95; direction: ltr; text-align: left; overflow-x: hidden; }
.code-body .cl  { display: block; white-space: pre-wrap; word-break: break-all; min-height: 1.95em; }
.code-body .cm  { color: #6b6361; }
.code-body .ck  { color: #ff8a8a; font-weight: 500; }
.code-body .cs  { color: #7fd49a; }
.code-body .cn  { color: #e8b56b; }
.code-body .cp  { color: rgba(255,255,255,.85); }
.code-body .cd  { color: rgba(255,255,255,.35); }
.code-div { height: 1px; background: rgba(255,255,255,.08); margin: 14px 0; }
@media (max-width: 920px) { .api-band { padding: 42px 26px; } .api-grid { grid-template-columns: 1fr; gap: 38px; } .api-flist { grid-template-columns: 1fr; } }

/* ---------- INFRA / IRAN SERVERS ---------- */
.infra { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 56px; position: relative; overflow: hidden; }
.infra::after { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--red); }
.infra-head { display: flex; align-items: flex-start; gap: 24px; max-width: 760px; margin-bottom: 40px; }
.infra-ic { width: 60px; height: 60px; border-radius: 15px; background: var(--red-soft); display: grid; place-items: center; flex-shrink: 0; }
.infra-ic svg { width: 30px; height: 30px; stroke: var(--red); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.infra-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 12px; }
.infra-head p  { font-size: 16px; color: var(--ink-soft); line-height: 1.9; }
.infra-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.infra-item { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.infra-item .tag { display: inline-block; font-family: 'Vazirmatn', sans-serif; font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 14px; direction: rtl; }
.infra-item b { display: block; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.infra-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
@media (max-width: 820px) { .infra { padding: 36px 26px; } .infra-grid { grid-template-columns: 1fr; } .infra-head { flex-direction: column; gap: 18px; } }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--red); color: #fff; border-radius: 28px; padding: 64px 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 50% 0%, rgba(255,255,255,.16), transparent 60%); }
.cta-band .inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; line-height: 1.3; }
.cta-band p  { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 34px; line-height: 1.9; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--red); padding: 15px 32px; border-radius: 12px;
  font-weight: 700; font-size: 16px; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.26); }
.cta-band .btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(255,255,255,.55); color: #fff; padding: 15px 30px; border-radius: 12px;
  font-weight: 600; font-size: 16px; transition: background .2s, border-color .2s;
}
.cta-band .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- FOOTER ---------- */
footer { padding: 70px 0 36px; border-top: 1px solid var(--line); margin-top: 8px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 48px; margin-bottom: 46px; align-items: start; }
.foot-brand .brand { margin-bottom: 18px; }
.foot-brand p { font-size: 14.5px; color: var(--ink-soft); max-width: 340px; line-height: 1.9; }
.foot-tagline { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; line-height: 1.7; font-style: italic; max-width: 340px; }
.foot-tagline em { font-style: normal; color: var(--ink-soft); }
.foot-brand .foot-tagline { font-size: 13px; color: var(--ink-faint); margin-top: 10px; line-height: 1.7; }
.foot-brand .foot-tagline em { font-style: normal; color: var(--ink-soft); }
.foot-col h5 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 16px; letter-spacing: .02em; }
.foot-col a,
.foot-col .fi { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--red); }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .fa-only-col { grid-column: 1 / -1; } }

/* FA-only footer column */
.fa-only-col { transition: opacity .2s; }
.enamad-seal { display: block; margin-top: 14px; }
.enamad-seal img { width: 90px; height: auto; border-radius: 8px; transition: opacity .2s, transform .2s; }
.enamad-seal:hover img { opacity: .85; transform: translateY(-2px); }

.foot-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 14px; }
.foot-bottom .cc { font-size: 13px; color: var(--ink-faint); }

/* Social icons */
.social-row { display: flex; gap: 11px; flex-wrap: wrap; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink-soft); transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.social-row a:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); transform: translateY(-2px); }
.social-row a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Language toggle button */
.lang-btn {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
  color: var(--ink-soft); font-family: 'Vazirmatn', sans-serif;
  transition: border-color .2s, color .2s; letter-spacing: .08em; flex-shrink: 0;
}
.lang-btn:hover { border-color: var(--red); color: var(--red); }

/* ---------- MISC UTILITIES ---------- */
.ltr-num { direction: ltr; unicode-bidi: isolate; }
.c-green { color: #41d17e; }
.c-yellow { color: #f0c142; }
.c-red   { color: #ff5a5a; }

/* ============================================================
   RESPONSIVE — MOBILE & TABLET
   ============================================================ */

/* small screens: tighten wrap padding */
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
}

/* mobile nav: ensure lang-btn and CTA visible */
@media (max-width: 860px) {
  .nav-links { gap: 10px; }
  .lang-btn { padding: 6px 10px; font-size: 11px; }
}

/* hero: stack vertically, center content */
@media (max-width: 640px) {
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: clamp(30px, 7vw, 42px); }
  .hero p.lead { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; padding: 14px 20px; }
  .hero-meta { gap: 18px; flex-wrap: wrap; }
  .hero-card { max-width: 100%; }
  .vplate { width: 90px; font-size: 10.5px; }
  .vpath  { font-size: 11px; }
  .vspeed b { font-size: 14px; }
  .dash-footer { gap: 5px; }
  .dfi b { font-size: 16px; }
}

/* sections: reduce vertical padding on mobile */
@media (max-width: 640px) {
  section.block { padding: 56px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-head h2 { font-size: clamp(22px, 5vw, 32px); }
}

/* capabilities: ensure 1-col on small phones */
@media (max-width: 400px) {
  .cap-grid { grid-template-columns: 1fr; }
}

/* transit card: tighten on mobile */
@media (max-width: 600px) {
  .transit-card { padding: 22px 18px 14px; }
  .cstop .cbadge { display: none; } /* hide km on tiny screens */
  .cstop .ctext b { font-size: 13.5px; }
}

/* pipe / how steps: single column on small phones */
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .pipe { padding: 36px 22px; }
}

/* API band */
@media (max-width: 600px) {
  .api-band { padding: 36px 20px; }
  .code-body { font-size: 11px; padding: 14px 14px; }
}

/* CTA band: stack buttons */
@media (max-width: 600px) {
  .cta-band { padding: 44px 24px; }
  .cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .cta-band .btn-white,
  .cta-band .btn-outline { width: 100%; justify-content: center; }
}

/* infra: tighten */
@media (max-width: 480px) {
  .infra { padding: 28px 20px; border-radius: 18px; }
}

/* footer */
@media (max-width: 480px) {
  footer { padding: 48px 0 28px; }
  .foot-top { gap: 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .social-row { margin-inline-start: 0; }
}

/* nav CTA: smaller on mobile */
@media (max-width: 480px) {
  .nav-links a.nav-cta { padding: 9px 14px; font-size: 13px; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
