@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700;800&display=swap");

:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --primary: #0b63ce;
  --primary-dark: #084b9e;
  --text: #1d2a3b;
  --muted: #5b6b80;
  --border: #e2e8f0;
  --shadow-sm: 0 6px 18px rgba(15, 37, 67, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 37, 67, 0.14);
  --glow: 0 0 0 1px rgba(15, 99, 206, 0.15), 0 16px 30px rgba(15, 99, 206, 0.18);
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  --page-bg: none;
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  direction: rtl;
  background: transparent;
  color: var(--text);
  line-height: 1.9;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--page-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.28;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.62), rgba(247, 249, 252, 0.72));
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

body.page-home { --page-bg: url("Images/صویر هدر صفحه اصلی.png"); }
body.page-products { --page-bg: url("Images/سیستم فروش یکپارچه.png"); }
body.page-about { --page-bg: url("Images/Customer relationship management.png"); }
body.page-banking { --page-bg: url("Images/Banking and electronic payment integration.png"); }
body.page-security { --page-bg: url("Images/Cybersecurity and financial compliance concept for payment platform.png"); }
body.page-demo { --page-bg: url("Images/inimal professional office background for contact and demo page, soft depth of field.png"); }
body.page-contact { --page-bg: url("Images/internal wallet.png"); }

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

header.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #d9e4f5;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.75rem 0;
}

.brand {
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #3c8ef7);
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(11, 99, 206, 0.25);
}

.menu-toggle {
  display: none;
  border: 1px solid #c8dcff;
  background: #fff;
  color: var(--primary-dark);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.menu-toggle:hover {
  background: #f2f7ff;
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  gap: 0.3rem;
  background: #f2f7ff;
  border: 1px solid #d9e6fb;
  border-radius: var(--radius-md);
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.62rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

nav a i {
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  background: #fff;
  border-color: #c8dcff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(11, 99, 206, 0.12);
  transform: translateY(-1px);
}

.hero {
  padding: 4.5rem 0 3.8rem;
  background: radial-gradient(circle at top right, #e6f1ff 0%, #ffffff 45%, #f7f9ff 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.5;
}

.hero p {
  color: var(--muted);
  max-width: 850px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(11, 99, 206, 0.25);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn.secondary {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(11, 99, 206, 0.12);
}

.btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(11, 99, 206, 0.18);
}

main section {
  padding: 2.6rem 0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.title-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.title-icon i {
  color: var(--primary);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf2ff;
  color: var(--primary-dark);
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 99, 206, 0.3);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-top: 0;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

ul.feature-list {
  margin: 0.4rem 0 0;
  padding-right: 1rem;
}

ul.feature-list li {
  margin: 0.2rem 0;
}

.cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.city {
  background: #fff;
  border: 1px dashed #9bbcf1;
  border-radius: 12px;
  padding: 0.65rem;
  text-align: center;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: 0 6px 14px rgba(11, 99, 206, 0.08);
}

.cta {
  background: #0f1f36;
  color: #f8fbff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 34px rgba(8, 21, 42, 0.35);
}

.cta p {
  margin: 0 0 1rem;
}

form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cdd7e4;
  border-radius: 8px;
  padding: 0.6rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(11, 99, 206, 0.55);
  box-shadow: var(--glow);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.3rem 0;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  background: #fff;
  box-shadow: 0 -10px 20px rgba(15, 37, 67, 0.05);
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

  nav.main-nav {
    width: 100%;
    display: none;
  }

  nav.main-nav.open {
    display: block;
    margin-top: 0.55rem;
  }

  nav ul {
    width: 100%;
    flex-wrap: nowrap;
    white-space: normal;
    overflow-x: hidden;
    overflow-y: visible;
    gap: 0.4rem;
    flex-direction: column;
  }

  nav a {
    font-size: 0.88rem;
    padding: 0.5rem 0.7rem;
    width: 100%;
  }

  nav a i {
    display: inline-block;
  }
}