/* ==========================================================================
   peytag (پی‌تگ) - Modern Stripe-Inspired Light Mode Stylesheet
   Ultra-lightweight, 60fps performance, Zero external bulky frameworks
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  --font-main: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --color-bg: #FFFFFF;
  --color-surface: #F6F9FC;
  --color-surface-hover: #EEF2F6;
  --color-text-main: #0A2540;
  --color-text-muted: #4F5B66;
  --color-text-subtle: #8898AA;
  --color-border: #E3E8EE;
  --color-border-hover: #CBD5E1;
  
  /* Stripe-Style Vibrant Accents */
  --primary: #635BFF;
  --primary-hover: #5851EA;
  --primary-light: #F4F3FF;
  --accent-teal: #00D4B2;
  --accent-teal-light: #E6FAF7;
  --accent-blue: #0070F3;
  --accent-bale: #00A859;
  --accent-bale-light: #EBF8F2;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(10, 37, 64, 0.07), 0 8px 10px -6px rgba(10, 37, 64, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(10, 37, 64, 0.09), 0 10px 15px -5px rgba(10, 37, 64, 0.05);
  --shadow-glow: 0 0 30px rgba(99, 91, 255, 0.25);
  
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Stripe-Style Dynamic Mesh Background */
.mesh-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 850px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.45;
  border-radius: 50%;
  animation: floatBlobs 18s ease-in-out infinite alternate;
}

.blob-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #635BFF 0%, rgba(99, 91, 255, 0) 70%);
  top: -150px;
  left: -100px;
  animation-duration: 22s;
}

.blob-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #00D4B2 0%, rgba(0, 212, 178, 0) 70%);
  top: 100px;
  right: -80px;
  animation-duration: 19s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #7B73FF 0%, rgba(123, 115, 255, 0) 70%);
  top: 300px;
  left: 30%;
  animation-duration: 25s;
}

@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* ==========================================================================
   Navigation Bar (Navbar)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(227, 232, 238, 0.8);
  transition: var(--transition-normal);
}

.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.28);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(99, 91, 255, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-text-main);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-border-hover);
}

.btn-bale {
  background: var(--accent-bale-light);
  color: var(--accent-bale);
  border: 1px solid rgba(0, 168, 89, 0.25);
  font-weight: 700;
}

.btn-bale:hover {
  background: #E0F5EB;
  border-color: var(--accent-bale);
  transform: translateY(-1px);
}

.btn-pulse {
  position: relative;
}

.btn-pulse::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: var(--accent-teal);
  border-radius: 50%;
  border: 2px solid white;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 212, 178, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(0, 212, 178, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 212, 178, 0); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 90px;
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(99, 91, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.badge-bale {
  background: var(--accent-bale-light);
  color: #00773F;
  border-color: rgba(0, 168, 89, 0.25);
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.text-gradient {
  background: linear-gradient(135deg, #635BFF 0%, #00D4B2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--color-text-subtle);
  font-size: 13px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Hero Visual & Interactive Simulator
   ========================================================================== */
.hero-visual-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
}

.hero-visual-card .illustration-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-visual-card .illustration-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Interactive Simulator Inside Hero */
.simulator-box {
  background: #FAFBFC;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.sim-dot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-bale);
  font-size: 12px;
}

.sim-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bale);
}

.sim-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.sim-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-chat-bubble {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13px;
  margin-bottom: 12px;
  border-right: 4px solid var(--accent-bale);
}

.sim-sms-bubble {
  background: #F4F6F8;
  border: 1px solid #DCE2E6;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13px;
  margin-bottom: 12px;
  border-right: 4px solid var(--primary);
}

.sim-success-bubble {
  background: #E8F8F2;
  border: 1px solid #B8E8D5;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13px;
  margin-bottom: 12px;
  border-right: 4px solid var(--accent-bale);
  color: #1A5438;
}

.sim-input-row {
  display: flex;
  gap: 8px;
}

.sim-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  background: white;
}

/* ==========================================================================
   Logo & Trust Bar Section
   ========================================================================== */
.trust-bar-section {
  padding: 30px 0 60px;
  border-bottom: 1px solid var(--color-border);
}

.trust-title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-subtle);
  margin-bottom: 24px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
  opacity: 0.85;
  transition: var(--transition-fast);
}

.trust-logo-item:hover {
  opacity: 1;
  color: var(--color-text-main);
}

/* ==========================================================================
   Section Title Common
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.35;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Features Cards (Core Pillars)
   ========================================================================== */
.features-section {
  padding: 90px 0;
  background: var(--color-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}

.icon-purple { background: var(--primary-light); color: var(--primary); }
.icon-teal { background: var(--accent-teal-light); color: var(--accent-teal); }
.icon-bale { background: var(--accent-bale-light); color: var(--accent-bale); }

.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Dedicated Bale Messenger Integration Section
   ========================================================================== */
.bale-section {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.bale-banner {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border: 1px solid rgba(0, 168, 89, 0.2);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.bale-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 168, 89, 0.2);
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-bale);
}

.bale-features-list {
  list-style: none;
  margin: 24px 0 32px;
}

.bale-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--color-text-main);
  font-weight: 600;
}

.bale-features-list li svg {
  color: var(--accent-bale);
  flex-shrink: 0;
}

.bale-bot-preview-box {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.bale-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.bale-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-bale);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* ==========================================================================
   Consultation In-Page Section & Modal
   ========================================================================== */
.consult-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.consult-box {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-main);
}

.form-control {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--color-text-subtle);
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #FFFFFF;
  padding: 60px 0 30px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  text-decoration: none;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-subtle);
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10B981;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: var(--transition-normal);
  z-index: 2000;
  opacity: 0;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .bale-banner, .consult-box {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 30px;
  }
}
