/* PERF-FONT-01 (#327) — self-hosted Vazirmatn (variable, weights 100–900), same file the SPA serves
   (copied from apps/frontend/public/fonts by the landing build). OFL-1.1; license at
   /fonts/vazirmatn/OFL.txt. Replaces the render-blocking Google-hosted font stylesheet. */
@font-face {
  font-family: 'Vazirmatn';
  /* Upstream's dual-src form — `tech(variations)` is a parse error on pre-2022 browsers and would
     drop the whole src descriptor (verified on Chrome 98); an unknown format string is just skipped. */
  src:
    url('/fonts/vazirmatn/Vazirmatn-Variable.woff2') format('woff2 supports variations'),
    url('/fonts/vazirmatn/Vazirmatn-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.landing-page {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f5f5f5;
  --text: #111827;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --accent: #0ea5e9;
  --radius-lg: 16px;
  --radius-md: 10px;
  display: block;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  direction: rtl;
}

.landing-page * {
  box-sizing: border-box;
}

.home-page {
  background: var(--bg);
  color: var(--text);
}

.home-page a {
  text-decoration: none;
}

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

.top-entry {
  background: #0f172a;
  color: #f8fafc;
}

.top-entry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 20px;
}

.top-entry-text {
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.32);
}

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

.btn-ghost:hover {
  background: #f9fafb;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #e0f2fe;
  color: #0369a1;
}

.navbar {
  position: fixed;
  width: 100%;
  right: 0;
  left: 0;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(245, 245, 245, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 20px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1rem;
}

.nav-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: radial-gradient(circle at 10% 10%, #22c55e, #2563eb);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.35rem;
  cursor: pointer;
}

.hero {
  padding: 2.4rem 0 2.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  margin-bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 0.75rem;
}

.hero-kicker .badge {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #bbf7d0;
  font-weight: 600;
  font-size: 0.7rem;
}

.hero-title {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1.3rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-reviews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.review-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.75rem;
}

.review-stars {
  font-size: 0.8rem;
  color: #f97316;
}

.hero-visual {
  position: relative;
}

.hero-card-main {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
}

.hero-schedule {
  margin-top: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  font-size: 0.8rem;
}

.hero-schedule-header {
  padding: 0.55rem 0.7rem;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 0.8rem;
}

.hero-schedule-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-schedule-body {
  background: #fff;
}

.slot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-top: 1px solid #f3f4f6;
}

.slot-row:nth-child(odd) {
  background: #fcfcfc;
}

.slot-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
}

.slot-status {
  font-size: 0.75rem;
  color: #f97316;
}

.hero-floating-card {
  position: absolute;
  inset-inline-start: -16px;
  bottom: -20px;
  width: 220px;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 18px;
  padding: 0.75rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.6);
  font-size: 0.78rem;
}

.hero-floating-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

section {
  padding: 2.6rem 0;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 1.8rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.why-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.why-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.why-card ul {
  padding: 0;
  list-style: none;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.why-card li {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.why-card li::before {
  content: '•';
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 0.05rem;
}

.secondary-card {
  margin-top: 1rem;
}

.quote-card {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  font-size: 0.85rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

.quote-card p {
  margin-top: 0;
}

.quote-author {
  margin-top: 0.7rem;
  font-weight: 500;
  font-size: 0.8rem;
  color: #9ca3af;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1rem;
  font-size: 0.85rem;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  background: #eff6ff;
  color: #1d4ed8;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.integrations {
  background: #0f172a;
  color: #e5e7eb;
}

.integrations .section-title {
  color: #f9fafb;
}

.integration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.3rem;
}

.integration-pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.8rem;
  white-space: nowrap;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1rem;
  font-size: 0.8rem;
}

.testimonial-card p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.78rem;
}

.testimonial-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.faq-grid {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.bottom-cta {
  background: #111827;
  color: #e5e7eb;
  text-align: center;
  padding: 2.2rem 0 2.6rem;
}

.bottom-cta .section-title {
  color: #f9fafb;
  margin-bottom: 0.4rem;
}

.bottom-cta .section-subtitle {
  color: #9ca3af;
  margin-bottom: 1.4rem;
}

.bottom-cta .btn-primary {
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.6);
}

.bottom-cta-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.bottom-cta-header {
  margin-bottom: 0;
}

.bottom-cta-actions {
  margin-top: 1.4rem;
}

.footer {
  border-top: 1px solid #1f2933;
  padding: 1rem 0;
  background: #020617;
  color: #9ca3af;
  font-size: 0.75rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.footer-link {
  color: inherit;
}

.footer-link:hover {
  color: #f8fafc;
}

@media (max-width: 960px) {
  .hero-grid,
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 1.8rem;
  }
}

@media (max-width: 840px) {
  .features-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar-inner {
    padding-inline: 0;
  }

  .nav-links {
    display: none;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .features-grid,
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-floating-card {
    position: static;
    width: 100%;
    margin-top: 0.8rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .navbar-inner {
    padding: 0.5rem 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
