/* ===== Variables: green-blue theme ===== */
:root {
  --green-50: #f0fdfa;
  --green-100: #ccfbf1;
  --green-200: #99f6e4;
  --green-300: #5eead4;
  --green-400: #2dd4bf;
  --green-500: #14b8a6;
  --green-600: #0d9488;
  --green-700: #0f766e;
  --green-800: #115e59;
  --green-900: #134e4a;
  --blue-50: #f0f9ff;
  --blue-100: #e0f2fe;
  --blue-200: #bae6fd;
  --blue-300: #7dd3fc;
  --blue-400: #38bdf8;
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;
  --blue-700: #0369a1;
  --blue-800: #075985;
  --blue-900: #0c4a6e;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-ui: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 118, 110, 0.12);
  --shadow-lg: 0 24px 48px rgba(15, 118, 110, 0.15);
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body,
button,
input,
select,
textarea,
a,
.btn,
.lang-btn,
.customer-item,
.section-title,
.section-lead,
.hero-badge,
.hero-title,
.hero-lead,
.cta-title,
.cta-lead,
.cta-note,
.testimonial,
.testimonial-quote,
.testimonial-footer,
.testimonial-store-link,
.footer-copy,
.nav a,
.logo,
.feature-card h3,
.feature-card p,
.customer-name,
.customer-tag,
.testimonial-hint {
  font-family: var(--font-ui);
}
body {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate-800);
  background: var(--slate-50);
  overflow-x: hidden;
}

/* ===== RTL & Persian ===== */
html.rtl,
html[dir="rtl"] {
  text-align: right;
}
html.rtl,
html[dir="rtl"] {
  --font-ui: 'Vazirmatn', 'Outfit', system-ui, sans-serif;
}
html.rtl body,
html[dir="rtl"] body {
  text-align: right;
}
html.rtl .header-inner,
html[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}
html.rtl .nav,
html[dir="rtl"] .nav {
  flex-direction: row-reverse;
}
html.rtl .lang-switcher,
html[dir="rtl"] .lang-switcher {
  flex-direction: row-reverse;
}
html.rtl .hero-inner,
html[dir="rtl"] .hero-inner {
  text-align: center;
}
html.rtl .section-title,
html.rtl .section-lead,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-lead {
  text-align: center;
}
html.rtl .testimonial,
html[dir="rtl"] .testimonial {
  text-align: right;
  border-left: none;
  border-right: 4px solid var(--green-500);
}
html.rtl .cta-inner,
html[dir="rtl"] .cta-inner {
  text-align: center;
}
html.rtl .footer-inner,
html[dir="rtl"] .footer-inner {
  flex-direction: row-reverse;
}
html.rtl .customer-item,
html[dir="rtl"] .customer-item {
  text-align: center;
}

/* Subtle noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--green-700);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-icon {
  color: var(--blue-600);
  font-size: 1.1em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  color: var(--slate-800);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--green-600);
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.lang-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  font-family: inherit;
  font-size: inherit;
  color: var(--slate-800);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover {
  color: var(--green-600);
}
.lang-btn.active {
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
}
.lang-divider {
  color: var(--slate-200);
  user-select: none;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--slate-800);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--blue-600));
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--green-500);
}
.btn-outline:hover {
  background: var(--green-50);
}
.btn-ghost {
  background: var(--green-100);
  color: var(--green-800);
}
.btn-ghost:hover {
  background: var(--green-200);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  max-width: 720px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--green-800), var(--blue-800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--slate-800);
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0.9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone-mockup {
  width: 280px;
  height: 520px;
  background: linear-gradient(160deg, var(--slate-800), var(--slate-900));
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 32px 64px rgba(15, 118, 110, 0.2), 0 0 0 1px rgba(255,255,255,0.08);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--green-50), var(--blue-50));
  border-radius: 24px;
  overflow: hidden;
}
.mock-app {
  padding: 24px 16px;
  height: 100%;
}
.mock-header {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
}
.mock-dot:nth-child(2) { background: var(--blue-400); }
.mock-dot:nth-child(3) { background: var(--green-300); }
.mock-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-card {
  height: 72px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(2, 132, 199, 0.2));
  border-radius: var(--radius);
  border: 1px solid rgba(20, 184, 166, 0.3);
}
.mock-card.short { height: 48px; width: 70%; }
.hero-gradient {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(20, 184, 166, 0.12) 0%, rgba(2, 132, 199, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

/* ===== Sections common ===== */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  text-align: center;
  margin: 0 0 12px;
}
.section-lead {
  text-align: center;
  color: var(--slate-800);
  margin: 0 auto 48px;
  max-width: 520px;
  opacity: 0.9;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: var(--white);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.feature-card {
  padding: 32px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-100), var(--blue-100));
  color: var(--green-700);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--slate-900);
  margin: 0 0 12px;
}
.feature-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--slate-800);
  opacity: 0.9;
}

/* ===== Customers ===== */
.customers {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--green-50), var(--blue-50));
}
.customer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}
.customer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  box-shadow: 0 2px 12px rgba(15, 118, 110, 0.06);
  min-width: 160px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  font-family: var(--font-ui);
  font-size: inherit;
  cursor: pointer;
  text-align: center;
}
button.customer-item {
  appearance: none;
  -webkit-appearance: none;
}
.customer-item:hover {
  border-color: var(--green-400);
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.12);
  transform: translateY(-2px);
}
.customer-item.is-active {
  border-color: var(--green-500);
  box-shadow: 0 4px 24px rgba(15, 118, 110, 0.18);
  background: var(--green-50);
}
.testimonial-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--slate-800);
  opacity: 0.85;
  margin: 0 0 20px;
}
.customer-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-800);
}
.customer-tag {
  font-size: 0.85rem;
  color: var(--slate-800);
  opacity: 0.8;
  margin-top: 4px;
}
.testimonial {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--green-500);
  box-shadow: var(--shadow);
}
.testimonial p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--slate-800);
  margin: 0 0 20px;
  line-height: 1.65;
}
.testimonial footer {
  font-size: 0.95rem;
  color: var(--slate-800);
  opacity: 0.85;
}
.testimonial strong { color: var(--green-800); }
.testimonial cite { font-style: normal; color: var(--blue-700); }
.testimonial-store-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
  transition: color 0.2s;
}
.testimonial-store-link:hover {
  color: var(--blue-600);
  text-decoration: underline;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin: 0 0 16px;
}
.cta-lead {
  color: var(--slate-800);
  margin: 0 0 32px;
  opacity: 0.9;
  max-width: 100%;
  line-height: 1.7;
}
.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  font-family: var(--font-ui);
  font-size: 1rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate-900);
}
.cta-form input:focus {
  outline: none;
  border-color: var(--green-500);
}
.cta-note {
  font-size: 0.9rem;
  color: var(--slate-800);
  opacity: 0.8;
  margin: 0;
}
.cta-gradient {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(2, 132, 199, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  background: var(--slate-900);
  color: var(--slate-200);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer .logo {
  color: var(--green-300);
}
.footer .logo-icon {
  color: var(--blue-400);
}
.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero {
    padding: 48px 0 80px;
  }
  .hero-actions {
    flex-direction: column;
    margin-bottom: 48px;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  .phone-mockup {
    width: 240px;
    height: 440px;
  }
  .features,
  .customers,
  .cta {
    padding: 64px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .cta-form {
    flex-direction: column;
  }
  .cta-form input {
    min-width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .customer-logos {
    flex-direction: column;
    align-items: stretch;
  }
  .customer-item {
    min-width: auto;
  }
}
