/* ───────────────────────── SefareshYar — brand tokens ───────────────────────── */
:root {
  --bg: #0d0a07;
  --bg-2: #14100b;
  --surface: #1a140e;
  --surface-2: #211a12;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f6f1ea;
  --muted: #a99e90;
  --muted-2: #7d7365;
  --brand: #f97316;
  --brand-hot: #e03e12;
  --brand-soft: #ffb35c;
  --amber: #f5a623;
  --grad: linear-gradient(135deg, #ffb35c 0%, #f97316 45%, #e03e12 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-brand: 0 12px 40px -8px rgba(249, 115, 22, 0.45);
  --font: "Vazirmatn", "Vazirmatn FD", Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img { display: block; }

h1, h2, h3, h4 { line-height: 1.5; font-weight: 800; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -8px rgba(249, 115, 22, 0.6); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 10, 7, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-name { font-size: 20px; font-weight: 800; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-drawer { display: none; }

/* ───────────────────────── Hero ───────────────────────── */
.hero { position: relative; padding: 40px 0 96px; }
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 420px at 78% 18%, rgba(249, 115, 22, 0.16), transparent 70%),
    radial-gradient(700px 520px at 15% 85%, rgba(224, 62, 18, 0.09), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.1);
  color: var(--brand-soft);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 18px; }
.hero-sub {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 34em;
  margin-bottom: 30px;
}
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex;
  gap: 36px;
  list-style: none;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; font-weight: 800; color: var(--brand-soft); }
.hero-stats span { font-size: 13.5px; color: var(--muted); }

/* ───────────────────────── Phone demo ───────────────────────── */
.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.demo-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.demo-tab.is-active { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }

.phone {
  position: relative;
  width: 300px;
  height: 610px;
  border-radius: 44px;
  background: #060504;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 9px #12100e,
    0 0 0 10px rgba(255, 255, 255, 0.08),
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 120px -30px rgba(249, 115, 22, 0.35);
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1c1a18;
  z-index: 5;
  box-shadow: inset 0 0 4px #000;
}
.phone-screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, #14100b 0%, #0d0a07 100%);
}
.phone-screen.is-active { display: flex; }

/* chat */
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 38px 18px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.chat-header img { border-radius: 50%; }
.chat-header strong { display: block; font-size: 14.5px; }
.chat-header span { display: block; font-size: 11.5px; color: var(--brand-soft); }

.chat-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px 22px;
  overflow: hidden;
  justify-content: flex-end;
}
.msg {
  max-width: 82%;
  padding: 9px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  animation: msg-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}
.msg-customer {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-right-radius: 6px;
}
.msg-agent {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(224, 62, 18, 0.92));
  color: #fff;
  border-bottom-left-radius: 6px;
}
.msg-typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 13px 16px;
}
.msg-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: typing 1s infinite ease-in-out;
}
.msg-typing i:nth-child(2) { animation-delay: 0.15s; }
.msg-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes msg-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* call */
.call-screen { align-items: center; text-align: center; padding: 52px 22px 30px; }
.call-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 26px;
}
.call-status { font-size: 12px; color: var(--brand-soft); letter-spacing: 0.06em; }
.call-timer { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.call-avatar { position: relative; margin-bottom: 16px; }
.call-avatar img { border-radius: 50%; position: relative; z-index: 1; }
.call-rings, .call-rings::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1.5px solid rgba(249, 115, 22, 0.45);
  border-radius: 50%;
  animation: ring 2.4s infinite ease-out;
}
.call-rings::before { inset: -2px; animation-delay: 1.2s; }
@keyframes ring {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}
.call-name { font-size: 17px; }
.call-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 26px; }

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  margin-bottom: 18px;
}
.waveform span {
  width: 4px;
  height: 10px;
  border-radius: 4px;
  background: var(--grad);
  animation: wave 1.1s infinite ease-in-out;
}
.waveform span:nth-child(2n) { animation-delay: 0.12s; }
.waveform span:nth-child(3n) { animation-delay: 0.24s; }
.waveform span:nth-child(4n) { animation-delay: 0.36s; }
.waveform span:nth-child(5n) { animation-delay: 0.48s; }
@keyframes wave {
  0%, 100% { height: 8px; opacity: 0.65; }
  50% { height: 38px; opacity: 1; }
}

.call-caption {
  min-height: 66px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  transition: opacity 0.35s ease;
}
.call-caption strong { color: var(--brand-soft); font-weight: 700; }

.call-actions {
  display: flex;
  gap: 18px;
  margin-top: auto;
}
.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.call-btn.hangup { background: #e23c3c; }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding: 96px 0; position: relative; }
.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker {
  display: inline-block;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 20px 50px -20px rgba(249, 115, 22, 0.25);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: var(--brand-soft);
  margin-bottom: 18px;
}
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

.chip {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.chip-live {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
}
.chip-soon {
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--amber);
}
.channel.is-soon .card-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  color: var(--muted);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: var(--shadow-brand);
}
.step h3 { font-size: 17.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

.roadmap-more {
  text-align: center;
  color: var(--muted-2);
  font-size: 14.5px;
  margin-top: 36px;
}

/* ───────────────────────── CTA ───────────────────────── */
.cta { padding: 110px 0; position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 50% 100%, rgba(249, 115, 22, 0.18), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.cta-mark { filter: drop-shadow(0 12px 36px rgba(249, 115, 22, 0.5)); }
.cta h2 { font-size: clamp(26px, 3.6vw, 42px); }
.cta p { color: var(--muted); font-size: 17px; max-width: 34em; }
.cta .hero-actions { justify-content: center; margin-top: 10px; }
.cta-contact {
  color: var(--muted-2);
  font-size: 14.5px;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
}
.cta-contact a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.cta-contact a:hover { color: var(--brand-soft); }

/* ───────────────────────── Footer ───────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 26em; }
.footer-col h4 { font-size: 15px; margin-bottom: 14px; }
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--brand-soft); }
.footer-bar {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--muted-2);
  font-size: 13px;
}

/* ───────────────────────── Demo modal ───────────────────────── */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.demo-modal[hidden] { display: none; }
.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modal-fade 0.25s ease;
}
.demo-modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.85),
    0 0 120px -40px rgba(249, 115, 22, 0.45);
  animation: modal-pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.demo-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.demo-modal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
}
.demo-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.demo-modal-close:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.05); }
.demo-modal video {
  display: block;
  width: 100%;
  min-height: 0;
  background: #000;
}
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
}

/* ───────────────────────── Reveal on scroll ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-burger { display: flex; }
  .nav.is-open .nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 5% 20px;
    border-top: 1px solid var(--border);
  }
  .nav-drawer a {
    padding: 12px 4px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
  }
  .nav-drawer .btn { margin-top: 10px; }
  .nav.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 24px 0 72px; }
  .section { padding: 72px 0; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .phone { width: 280px; height: 580px; }
}
