/* Professional landing polish layer. Loaded last to refine the existing page safely. */

body,
body * {
  font-weight: normal !important;
}

.fa,
.fas,
.fa-solid {
  font-weight: 900 !important;
}

.far,
.fa-regular {
  font-weight: 400 !important;
}

:root {
  --landing-ink: #102033;
  --landing-muted: #5f6f83;
  --landing-line: #dbe4ef;
  --landing-surface: #ffffff;
  --landing-soft: #f6f8fb;
  --landing-teal: #0f766e;
  --landing-blue: #2563eb;
  --landing-amber: #d97706;
  --landing-radius: 8px;
}

html {
  scroll-padding-top: calc(var(--navbar-height) + 18px);
}

body {
  background: var(--landing-soft);
  color: var(--landing-ink);
  overflow-x: clip;
}

.container,
.landing-container {
  max-width: 1180px;
  padding-inline: clamp(16px, 3vw, 28px);
}

section {
  padding-block: clamp(64px, 8vw, 104px);
}

.navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(219, 228, 239, 0.9);
  box-shadow: 0 1px 18px rgba(15, 23, 42, 0.06);
}

[dir="rtl"] .navbar {
  flex-direction: row;
}

.navbar > .container {
  gap: 16px;
}

.navbar-brand {
  color: var(--landing-ink);
  letter-spacing: 0;
}

.navbar-brand img {
  width: 36px;
  height: 36px;
}

.navbar-nav {
  padding: 4px;
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius);
  background: rgba(246, 248, 251, 0.72);
}

.navbar-nav .nav-link {
  border-radius: 7px;
  color: var(--landing-muted);
  font-weight: normal;
}

.mobile-nav .btn,
.mobile-nav a.btn,
.mobile-nav a.btn:visited {
  color: #ffffff !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--landing-surface);
  color: var(--landing-teal);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.lang-btn {
  min-height: 40px;
  border-radius: var(--landing-radius);
  background: var(--landing-surface);
  color: var(--landing-ink);
}

.nav-dashboard-btn,
.navbar-actions .btn-primary {
  min-height: 40px;
  border-radius: var(--landing-radius);
  background: var(--landing-teal);
  border-color: var(--landing-teal);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.hamburger-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--landing-line);
  background: var(--landing-surface);
  border-radius: var(--landing-radius);
  color: var(--landing-ink);
  padding: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.hamburger-btn .bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 !important;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.mobile-nav {
  border-bottom: 1px solid var(--landing-line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.hero {
  min-height: calc(100vh - var(--navbar-height));
  padding-block: clamp(42px, 7vw, 80px);
  background:
    linear-gradient(90deg, rgba(246, 248, 251, 0.98) 0%, rgba(246, 248, 251, 0.9) 42%, rgba(246, 248, 251, 0.55) 100%),
    url("../img/landing-hero-product.png") center right / cover no-repeat;
  overflow: hidden;
}

[dir="rtl"] .hero {
  background:
    linear-gradient(270deg, rgba(246, 248, 251, 0.98) 0%, rgba(246, 248, 251, 0.9) 42%, rgba(246, 248, 251, 0.55) 100%),
    url("../img/landing-hero-product.png") center left / cover no-repeat;
}

.hero::before,
.hero::after,
.hero-shape {
  display: none !important;
}

.hero .container {
  min-height: min(720px, calc(100vh - var(--navbar-height) - 80px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.hero-content {
  max-width: 620px;
  padding-block: 24px;
}

.hero-content > .hero-badge:first-child {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--landing-line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  color: var(--landing-teal);
  border-radius: var(--landing-radius);
}

.hero-content h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--landing-ink);
}

.hero-content p {
  max-width: 560px;
  font-size: clamp(17px, 1.7vw, 22px);
  color: var(--landing-muted);
  line-height: 1.85;
}

.hero-actions {
  gap: 12px;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  min-height: 50px;
  border-radius: var(--landing-radius);
  padding: 0 22px;
  box-shadow: none;
  box-sizing: border-box;
}

.hero-actions .btn-primary {
  background: var(--landing-teal);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22);
}

.hero-actions .btn-secondary {
  border: 1px solid var(--landing-line);
  background: rgba(255, 255, 255, 0.9);
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-secondary:hover {
  transform: translateY(-1px);
}

.hero-stats {
  gap: 10px;
  margin-top: 30px;
}

.hero-stats .hero-badge {
  border-radius: var(--landing-radius);
  border: 1px solid var(--landing-line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.hero-stats .hero-badge i {
  color: var(--landing-teal);
}

.hero-illustration {
  align-self: stretch;
  max-width: none;
  min-height: 420px;
}

.hero-illustration img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.section-title {
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 34px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.22;
  letter-spacing: 0;
  color: var(--landing-ink);
}

.features-section,
.faq-section {
  background: var(--landing-surface);
}

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

.feature-card {
  min-height: 260px;
  padding: 26px;
  text-align: start;
  border-radius: var(--landing-radius);
  border-color: var(--landing-line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
}

.feature-card::before {
  display: none;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.feature-icon {
  margin: 0 0 18px;
  width: 58px;
  height: 58px;
  border-radius: var(--landing-radius);
  background: rgba(15, 118, 110, 0.1);
}

.feature-icon img {
  width: 34px;
  height: 34px;
}

.feature-title {
  color: var(--landing-ink);
}

.feature-desc {
  color: var(--landing-muted);
}

.how-section {
  background: #f8fafc;
}

.timeline {
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline-connector {
  display: none;
}

.timeline-step,
.timeline-step:nth-child(even) {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  background: var(--landing-surface);
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
  text-align: start;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: var(--landing-radius);
  background: var(--landing-teal);
  box-shadow: none;
}

.step-image {
  width: 100%;
  height: 130px;
  border-radius: var(--landing-radius);
  box-shadow: none;
  background: #eef5f4;
}

.step-image img {
  object-fit: contain;
  padding: 18px;
}

.step-content h3 {
  color: var(--landing-ink);
}

.step-content p {
  color: var(--landing-muted);
}

.stats-section {
  background: #0f172a;
}

.stats-section .section-title {
  color: #ffffff !important;
}

.stats-section::before,
.stats-section::after {
  display: none;
}

.stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stat-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--landing-radius);
  background: rgba(255, 255, 255, 0.06);
}

.stat-number {
  color: #ffffff;
}

.stat-label {
  color: rgba(255, 255, 255, 0.72);
}

.download-section {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.08)),
    var(--landing-surface);
}

.download-badges .badge-link {
  min-width: 170px;
  min-height: 58px;
  justify-content: center;
  background: #0f172a;
  border-radius: var(--landing-radius);
}

.download-badges img {
  height: 40px;
  width: auto;
}

.faq-list {
  max-width: 900px;
  gap: 12px;
}

.faq-item {
  border-radius: var(--landing-radius);
  border-color: var(--landing-line);
  background: #fbfdff;
}

.faq-question {
  min-height: 62px;
}

.footer {
  background: #0b1120;
}

.footer-grid {
  gap: 28px;
}

.modal-auth {
  border-radius: var(--landing-radius) !important;
}

@media (max-width: 1100px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero {
    background: #f6f8fb;
  }

  .hero-content {
    text-align: center;
    margin-inline: auto;
  }

  .hero-content p,
  .hero-actions,
  .hero-stats {
    justify-content: center;
    margin-inline: auto;
  }

  .hero-illustration {
    min-height: auto;
  }

  .hero-illustration img {
    aspect-ratio: 16 / 9;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .navbar > .container {
    padding-inline: 12px;
  }

  .nav-dashboard-btn {
    display: none;
  }

  .hamburger-btn {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav.show,
  .mobile-nav.open {
    display: block;
  }

  .features-grid,
  .timeline,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 360px);
  }

  .hero-stats .hero-badge {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  body {
    overflow-x: hidden;
  }

  .container,
  .landing-container {
    max-width: 100%;
    box-sizing: border-box;
  }

  .lang-name,
  .lang-btn .fa-chevron-down {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-illustration {
    display: flex !important;
    width: 100%;
    min-height: 0;
  }

  .hero-illustration img {
    aspect-ratio: 4 / 3;
  }

  .feature-card,
  .timeline-step {
    padding: 20px;
  }

  .anim-slide-in-left,
  .anim-slide-in-right,
  .anim-fade-in-up,
  .anim-scale-up {
    transform: none !important;
  }
}
