@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-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #070708;
  --bg-2: #101014;
  --bg-3: #17171d;
  --red: #e10600;
  --red-2: #ff3b2f;
  --red-soft: rgba(225, 6, 0, 0.16);
  --text: #f6f2ee;
  --muted: #a8a29c;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #e8c9a8;
  --radius: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }

.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.09;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.glow {
  position: fixed;
  width: 55vw;
  height: 55vw;
  right: -18vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(225,6,0,.28), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.glow.left {
  right: auto;
  left: -22vw;
  top: 40vh;
  background: radial-gradient(circle, rgba(225,6,0,.14), transparent 70%);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(7, 7, 8, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.brand img { width: 42px; height: 42px; }
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
}
.menu {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13.5px;
}
.menu a.active, .menu a:hover { color: #fff; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  border-radius: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: .25s transform, .25s box-shadow, .25s background;
}
.btn:hover { transform: translateY(-2px); }
.btn-red {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff;
  box-shadow: 0 12px 30px rgba(225, 6, 0, 0.28);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
}
.btn-dark { background: #fff; color: #111; }

.hero {
  position: relative;
  z-index: 1;
  padding: 72px 0 40px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  letter-spacing: .12em;
  font-size: 12px;
  border: 1px solid rgba(232,201,168,.25);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(232,201,168,.06);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 74px);
  line-height: 1.15;
  margin: 18px 0 16px;
  font-weight: 800;
}
.hero h1 span { color: var(--red-2); }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.stat {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 16px;
}
.stat b { display: block; font-size: 26px; }
.stat span { color: var(--muted); font-size: 13px; }

.stage {
  position: relative;
  min-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(225,6,0,.35), transparent 28%),
    linear-gradient(180deg, #15151b, #0c0c10);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stage-copy {
  position: absolute;
  top: 28px;
  right: 28px;
  left: 28px;
  z-index: 2;
}
.stage-copy strong { display: block; font-size: 22px; }
.stage-copy span { color: var(--gold); font-size: 13px; }
.stage-foot {
  position: absolute;
  right: 24px;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.stage svg { width: 100%; height: 100%; display: block; }
.node {
  fill: #fff;
  filter: drop-shadow(0 0 8px #e10600);
}
.pulse { animation: pulse 2.8s infinite; }
@keyframes pulse {
  0%, 100% { opacity: .4; r: 5; }
  50% { opacity: 1; r: 8; }
}

section { position: relative; z-index: 1; padding: 84px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  margin: 8px 0 10px;
}
.section-head p { color: var(--muted); max-width: 620px; }

.cards, .grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 180px;
  transition: .25s border, .25s transform, .25s background;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(225,6,0,.45);
  background: linear-gradient(180deg, rgba(225,6,0,.12), rgba(255,255,255,.02));
}
.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red-2);
  margin-bottom: 14px;
  font-weight: 800;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.step {
  padding: 22px 16px;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.step em {
  color: var(--red-2);
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}

.cases {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.case {
  min-height: 320px;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,.78)),
    radial-gradient(circle at 20% 20%, rgba(225,6,0,.45), transparent 42%),
    #16161c;
}
.case span { color: var(--gold); font-size: 12px; }
.featured {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: stretch;
}
.featured-copy, .featured-visual {
  border-radius: 32px;
  border: 1px solid var(--line);
  padding: 36px;
}
.featured-copy {
  background:
    radial-gradient(circle at 100% 0, rgba(225,6,0,.25), transparent 40%),
    var(--bg-2);
}
.featured-copy h2 { font-size: clamp(28px, 4vw, 46px); margin-top: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,.03);
}

.agent-hero { padding-top: 48px; }
.layers { display: grid; gap: 12px; }
.layer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.layer b { color: #fff; }
.layer span { color: var(--muted); font-size: 13px; }
.site-mock {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0b0f;
  min-height: 100%;
}
.site-mock .bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3a3a40; }
.dot.r { background: var(--red); }
.site-mock .body { padding: 18px; display: grid; gap: 12px; }
.sk { height: 12px; border-radius: 99px; background: rgba(255,255,255,.08); }
.sk.lg { height: 84px; border-radius: 16px; background: linear-gradient(135deg, rgba(225,6,0,.4), rgba(255,255,255,.05)); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 8px 0 0; }

.form-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
label { display: block; margin: 0 0 6px; font-size: 14px; color: #ddd; }
.field { margin-bottom: 14px; }
input, select, textarea {
  width: 100%;
  background: #0c0c10;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(225,6,0,.7); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.alert-ok { background: rgba(46, 204, 113, .12); color: #8ee7b3; }
.alert-err { background: rgba(225,6,0,.15); color: #ffb4ae; }
.thread { display: grid; gap: 10px; margin: 18px 0; }
.bubble {
  max-width: 80%;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.bubble.admin { margin-right: auto; background: var(--red-soft); }
.bubble.customer { margin-left: auto; }
.bubble small { display: block; color: var(--muted); font-size: 11px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer a:hover { color: #fff; }
.copy { border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; }

.floaters {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 10px;
}
.floater {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.floater.wa { background: #25d366; color: #042; }
.floater.ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); color: #fff; }

.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  background: #0c0c10;
  border-left: 1px solid var(--line);
  padding: 22px 16px;
}
.side a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.side a.active, .side a:hover { background: var(--red-soft); color: #fff; }
.admin-main { padding: 28px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--red-soft);
}
.login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 0, rgba(225,6,0,.28), transparent 42%),
    #070708;
}
.article { max-width: 760px; }
.article p { color: var(--muted); font-size: 17.5px; }
.deep-list { list-style: none; padding: 0; margin: 0 0 28px; counter-reset: step; }
.deep-list li {
  counter-increment: step;
  padding: 22px 0 22px 8px;
  border-bottom: 1px solid var(--line);
}
.deep-list h3 { margin: 0 0 8px; }
.deep-list h3::before {
  content: counter(step, decimal-leading-zero) "  ";
  color: var(--red-2);
  font-weight: 800;
}
.rule {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.rule b { display: block; margin-bottom: 6px; }
.chat {
  background: #0b0b10;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  min-height: 100%;
  box-shadow: var(--shadow);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(225,6,0,.12);
}
.chat-head b { display: block; }
.chat-head span { color: #8ee7b3; font-size: 12px; }
.chat-body { padding: 16px; display: grid; gap: 10px; }
.msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
}
.msg.bot {
  background: rgba(255,255,255,.06);
  border-top-right-radius: 4px;
}
.msg.user {
  margin-right: auto;
  background: var(--red);
  border-top-left-radius: 4px;
}
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.chat-input span {
  flex: 1;
  background: #14141a;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-grid, .featured, .grid-3, .grid-2, .steps, .footer-grid, .admin-shell, .form-grid {
    grid-template-columns: 1fr;
  }
  .menu { display: none; }
  .menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    background: #111;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
  }
  .burger { display: grid; place-items: center; }
  .stats { grid-template-columns: 1fr; }
  .nav-inner { position: relative; }
  .brand small { display: none; }
  .nav-actions .btn { padding: 10px 14px; font-size: 13px; }
}

::selection { background: #e10600; color: #fff; }
:focus-visible { outline: 2px solid #ff3b2f; outline-offset: 3px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #3a3a40; border-radius: 99px; }
.brand img { transition: .35s transform; }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.nav.scrolled { box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(22px); transition: .7s ease; }
html.js .reveal.on { opacity: 1; transform: none; }
.quote-card {
  margin: 0;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.quote-card p { font-size: 17px; }
.quote-card span { color: var(--gold); font-size: 13px; }
.timeline { display: grid; gap: 0; }
.time-item {
  padding: 22px 24px;
  border-right: 2px solid rgba(225,6,0,.45);
  margin-right: 8px;
}
.time-item em { color: var(--red-2); font-style: normal; font-weight: 800; }
.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 36px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 0 0, rgba(225,6,0,.28), transparent 42%), var(--bg-2);
}
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; }
.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: slide 28s linear infinite;
  color: var(--muted);
  font-weight: 700;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(50%); } }
.footer-4 { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.mob-cta {
  display: none;
  position: fixed;
  right: 12px;
  left: 12px;
  bottom: 12px;
  z-index: 45;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(10,10,12,.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.mob-cta .btn { flex: 1; }
.form-card, .admin-main, .card, .hero { position: relative; z-index: 1; }
.login-wrap .form-card { z-index: 5; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
.cases::-webkit-scrollbar { height: 6px; }

.login-box { width: min(440px, 100%); }
.pack .chip { display: inline-flex; margin-bottom: 12px; }
.article h2 { font-size: clamp(22px, 3vw, 32px); margin: 32px 0 12px; }
.deep-list p { color: var(--muted); margin: 0; }
.chip-row a.chip:hover { color: #fff; border-color: rgba(225,6,0,.5); }
.case { color: inherit; }
a.case:hover { border-color: rgba(225,6,0,.45); }
.card .btn { margin-top: 4px; }
.timeline + p { position: relative; z-index: 1; }

@media (max-width: 980px) {
  .footer-4, .cta-band { grid-template-columns: 1fr; display: grid; }
  .mob-cta { display: flex; }
  body { padding-bottom: 88px; }
  .floaters { bottom: 86px; }
  .side { border-left: 0; border-bottom: 1px solid var(--line); }
}

