:root {
  --forest: #14332a;
  --forest-deep: #0d231d;
  --emerald: #0f766e;
  --emerald-hover: #0c605a;
  --emerald-soft: #e6f4f1;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #11221d;
  --muted: #4b5e58;
  --border: #dce4e0;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(17, 34, 29, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

body { margin: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 51, 42, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand img { width: 34px; height: 34px; border-radius: 10px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.nav-links a:hover { color: #a7f3d0; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 3px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
}

.lang-switch button.active {
  background: #fff;
  color: var(--forest);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--emerald);
  color: #fff;
}
.btn-primary:hover { background: var(--emerald-hover); }

.btn-amber {
  background: var(--amber);
  color: #fff;
}
.btn-amber:hover { background: #b45309; }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); }

.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald); }

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 18% 15%, rgba(15, 118, 110, 0.42), transparent 44%),
    radial-gradient(circle at 85% 80%, rgba(217, 119, 6, 0.22), transparent 42%),
    linear-gradient(155deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: #fff;
  padding: 64px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(167, 243, 208, 0.14);
  border: 1px solid rgba(167, 243, 208, 0.28);
  color: #a7f3d0;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
  line-height: 1.3;
  font-weight: 900;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.84);
  max-width: 58ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 14px;
}

.badge-pill {
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.76rem;
}

.mock-offer {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.mock-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.mock-timer {
  background: var(--amber-soft);
  color: #92400e;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 3px 9px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}

.mock-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.mock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.mock-nav-pill {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 6px;
  border-radius: 9px;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.corridor-svg {
  width: 100%;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
}

/* Metrics strip */
.metrics {
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

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

.metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.metric-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--emerald);
  line-height: 1.2;
}

.metric-lbl {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Sections */
section.band { padding: 64px 0; }
section.band-alt { background: #eef2ef; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 38px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 900;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 6px 20px rgba(17, 34, 29, 0.04);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Dual role features */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.role-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.role-tag.company { background: var(--emerald-soft); color: var(--emerald); }
.role-tag.driver { background: var(--amber-soft); color: #92400e; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 11px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink);
}

.check-icon {
  flex: 0 0 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.78rem;
  margin-top: 3px;
}

/* Download Hub */
.download-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: stretch;
}

.apk-card {
  background: linear-gradient(145deg, var(--forest) 0%, #103b33 100%);
  color: #fff;
  border-radius: 22px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.apk-card p { color: rgba(255, 255, 255, 0.82); margin: 8px 0 0; }

.apk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.apk-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 11px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
}

.sha-box {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  direction: ltr;
  text-align: left;
  word-break: break-all;
}

.sha-copy {
  flex: 0 0 auto;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 7px;
  padding: 5px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.sha-copy:hover { background: rgba(255, 255, 255, 0.28); }

.side-portals {
  display: grid;
  gap: 16px;
}

.portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.portal-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.portal-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* Corridors */
.corridors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.border-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.border-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--forest);
}

/* Footer */
footer.site-footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 36px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover { color: #a7f3d0; }

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--forest);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

[dir="rtl"] .toast { transform: translateX(50%) translateY(20px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
[dir="rtl"] .toast.show { transform: translateX(50%) translateY(0); }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero-grid, .roles-grid, .download-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid, .corridors-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero { padding: 44px 0 60px; }
  .hero-ctas .btn { width: 100%; }
  .metrics-grid { grid-template-columns: 1fr; }
  .topbar-inner { gap: 8px; }
  .btn-nav-hide { display: none; }
}
