/* =====================================================================
   Tizro Design System
   Palette (deliberately not blue/purple/pink):
     Obsidian base, graphite glass surfaces, warm copper as the single
     "taxi light" accent, muted mint reserved only for online/success.
   ===================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: local('Vazirmatn');
  font-weight: 100 900;
}

:root {
  --bg: #0a0b0a;
  --bg-elevated: #101210;
  --surface: rgba(24, 27, 24, 0.55);
  --surface-solid: #14160f;
  --border: rgba(240, 237, 230, 0.09);
  --border-strong: rgba(240, 237, 230, 0.16);

  --text: #f0ede6;
  --text-dim: #9a9b92;
  --text-faint: #6b6c64;

  --copper: #ff9e4d;
  --copper-deep: #c9762e;
  --mint: #4ddba3;
  --danger: #ff5d5d;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --shadow-glow: 0 0 40px rgba(255, 158, 77, 0.12);
  --blur: blur(18px);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  direction: rtl;
}

body {
  margin: 0;
  background: radial-gradient(120% 100% at 50% -10%, #16180f 0%, var(--bg) 55%);
  color: var(--text);
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Vazirmatn', sans-serif; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Glassmorphism primitives ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius-m);
}

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius-l);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, var(--copper) 0%, var(--copper-deep) 100%);
  color: #150c04;
  box-shadow: 0 8px 24px rgba(255, 158, 77, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255, 158, 77, 0.35); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--copper); }

/* ---------- Status dot ---------- */
.status-online { color: var(--mint); }
.status-offline { color: var(--text-faint); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-online { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.dot-offline { background: var(--text-faint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(10, 11, 10, 0.7);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: 0.2px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--copper), var(--copper-deep)); display: grid; place-items: center; font-weight: 800; color: #150c04; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.25;
}
.hero .subtitle {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 46ch;
}
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scene {
  position: relative;
  height: 380px;
  border-radius: var(--radius-l);
  background: radial-gradient(60% 60% at 50% 40%, #171a13 0%, #0c0d0a 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}
.road-line {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--text-faint) 0 24px, transparent 24px 44px);
  opacity: 0.5;
  animation: road-scroll 3.5s linear infinite;
}
@keyframes road-scroll { from { background-position-x: 0; } to { background-position-x: -68px; } }

.pin { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 16px var(--copper); }
.pin::after { content: ''; position: absolute; inset: -8px; border: 1px solid var(--copper); border-radius: 50%; opacity: 0.5; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(2.2); opacity: 0; } }

.car-icon {
  position: absolute;
  bottom: 66px;
  font-size: 34px;
  animation: drive 4.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5));
}
@keyframes drive {
  0% { left: 8%; transform: rotate(0deg) scaleX(-1); }
  48% { left: 78%; transform: rotate(0deg) scaleX(-1); }
  50% { transform: rotate(0deg) scaleX(1); }
  98% { left: 8%; transform: rotate(0deg) scaleX(1); }
  100% { left: 8%; transform: rotate(0deg) scaleX(-1); }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-title { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.section-sub { color: var(--text-dim); max-width: 60ch; margin-bottom: 32px; }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } }
.feature-card { padding: 24px; }
.feature-card .material-symbols-rounded { font-size: 28px; color: var(--copper); }
.feature-card h3 { margin: 14px 0 8px; font-size: 17px; font-weight: 700; }
.feature-card p { color: var(--text-dim); font-size: 14.5px; }

.steps { display: flex; flex-direction: column; gap: 14px; }
.step-item { display: flex; gap: 16px; padding: 18px; align-items: flex-start; }
.step-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,158,77,0.12); color: var(--copper); font-weight: 700; }

.faq-item { padding: 18px 22px; margin-bottom: 10px; cursor: pointer; }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-a { color: var(--text-dim); margin-top: 10px; font-size: 14.5px; display: none; }
.faq-item.open .faq-a { display: block; }

.site-footer { padding: 40px 0; color: var(--text-faint); font-size: 13.5px; border-top: 1px solid var(--border); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Toast ---------- */
.toast-stack { position: fixed; bottom: 20px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 999px; font-size: 14px; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.toast-success { border: 1px solid rgba(77,219,163,0.4); }
.toast-error { border: 1px solid rgba(255,93,93,0.4); }
.toast-info { border: 1px solid var(--border-strong); }

/* ---------- Focus visibility (a11y) ---------- */
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
