:root {
  /* Original Brand Palette */
  --primary: #1F2D54; /* Navy */
  --primary-light: #2a3f6f;
  --accent: #D2BAA7; /* Original Gold/Beige */
  --accent-secondary: #E5E7EB; /* Subtle Gray for secondary elements */
  --accent-tertiary: #D2BAA7; 
  --success: #10B981;
  
  --background: #FFFFFF;
  --background-alt: #F8FAFC;
  
  --text-main: #1F2D54; /* Navy */
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  
  --border: #E2E8F0;
  --white: #FFFFFF;
  
  /* Modern Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 40px -10px rgba(31, 45, 84, 0.15); /* Navy Shadow */
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-modal: 0 25px 50px -12px rgba(31, 45, 84, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  /* System Font Stack - Clean & Apple-like */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

/* Simple Gradient Background */
.simple-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%); /* Very subtle off-white/gray */
}

/* Container */
.container {
  max-width: 1100px; /* Slightly tighter for cleaner read */
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar - Clean & Modern */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 48px; /* Standard modern logo size */
  width: auto;
  display: block;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

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

.desktop-cta { 
  display: block; 
}

/* Buttons - Modern & Colorful */
.btn {
  padding: 12px 28px;
  border-radius: 99px; /* Pill */
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.btn-icon { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(31, 45, 84, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(31, 45, 84, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #F8FAFC;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
}

.btn-full { width: 100%; border-radius: 12px; }

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #EFF6FF; /* Pale Blue */
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid #DBEAFE;
}

.badge-icon { width: 14px; height: 14px; }

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-main) 0%, #475569 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto 40px;
}

.hero-stats {
  display: inline-flex;
  gap: 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 24px 40px;
  border-radius: 24px;
  border: 1px solid white;
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent); /* Color pop */
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.stat-divider { width: 1px; height: 32px; background: var(--border); }

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Benefits Section - Colorful Cards */
.benefits {
  padding: 100px 0;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

.benefit-card {
  background: white;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle Colorful Top Border */
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%); /* Navy to Gold */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px -10px rgba(31, 45, 84, 0.15); /* Navy shadow */
  border-color: transparent;
}

.benefit-card:hover::before { opacity: 1; }

.benefit-icon {
  width: 48px;
  height: 48px;
  background: #F1F5F9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background: var(--accent);
  color: white;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.benefit-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How It Works */
.how-it-works { padding: 100px 0; }
.steps-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  background: white;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.3s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.step-icon-wrapper {
  width: 56px;
  height: 56px;
  background: #EFF6FF;
  color: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card:hover .step-icon-wrapper {
  background: var(--accent);
  color: white;
}

.step-content { flex: 1; text-align: right; }
.step-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.step-text { font-size: 0.95rem; color: var(--text-secondary); }
.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: #F1F5F9;
  line-height: 1;
}

/* Screens */
.screens { padding: 80px 0; }
.screens-showcase { max-width: 1000px; margin: 0 auto; }
.main-screen {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.main-screen .screen-image { display: block; width: 100%; height: auto; }
.secondary-screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.screen-small {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}
.screen-small:hover { transform: translateY(-5px); }
.screen-small .screen-image { display: block; width: 100%; height: auto; }

/* Bottom CTA */
.bottom-cta {
  padding: 100px 0;
  background: transparent;
  margin-top: 0;
  box-shadow: none;
}

.cta-card {
  background: linear-gradient(135deg, #1F2D54 0%, #2a3f6f 100%); /* Original Navy */
  border-radius: 24px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(31, 45, 84, 0.3);
  color: white;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.cta-card .btn-primary {
  background: var(--white);
  color: var(--primary);
  border: none;
  padding: 14px 36px; /* Reset to standard btn sizes */
  font-size: 1rem;
}

.cta-card .btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  color: var(--primary);
}

/* Adjust decorations to fit the card again */
.cta-decoration {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  opacity: 0.1;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: white;
}

.decoration-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.decoration-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Layout Adjustments */
  .container { padding: 0 20px; }
  
  .hero { padding: 60px 0 40px; }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }
  
  /* Hide decorations on mobile for cleaner fit */
  .floating-icons, .cta-decoration {
    display: none;
  }

  /* Navigation */
  .desktop-menu, .desktop-cta { display: none; }
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    width: 40px; height: 40px;
    padding: 0;
  }
  .mobile-menu-btn span {
    width: 24px; height: 2px;
    background: var(--text-main);
    margin: 0 auto;
    display: block;
    border-radius: 4px;
    transition: all 0.3s;
  }
  
  /* Grids and Flex Stacking */
  .hero-stats {
    flex-direction: column;
    width: 100%;
    gap: 24px;
    padding: 24px;
  }
  
  .stat-divider { display: none; }
  
  .benefits-grid, 
  .secondary-screens, 
  .hero-buttons {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  
  .btn { width: 100%; }
  
  /* Cards */
  .benefit-card, .step-card, .cta-card {
    padding: 32px 24px;
  }
  
  .step-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .step-content { text-align: center; }
  .step-number { order: -1; margin: 0 0 16px 0; position: static; }
  
  .cta-title { font-size: 1.75rem; }
  
  /* Modal */
  .contact-modal {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-content { padding: 32px 24px; }
}

/* Contact Modal (Centered) */
.contact-modal {
  inset: 0;
  margin: auto;
  position: fixed;
  border: none;
  border-radius: 20px;
  padding: 0;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-modal);
  background: white;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
  display: block;
  visibility: hidden;
}

.contact-modal[open] {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.contact-modal::backdrop {
  background: rgba(15, 23, 42, 0.5); /* Dim dark background */
  backdrop-filter: blur(4px);
}

.modal-content { padding: 40px; position: relative; }
.modal-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; text-align: center; }
.modal-subtitle { text-align: center; margin-bottom: 24px; color: var(--text-secondary); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #F8FAFC;
  transition: all 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.close-btn {
  position: absolute;
  top: 20px; left: 20px;
  background: #F1F5F9;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
  transition: all 0.2s;
}
.close-btn:hover { background: #E2E8F0; }

/* Toast */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--success);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
  opacity: 0; pointer-events: none;
  transition: all 0.3s;
  z-index: 2000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
/* Mobile Menu Dialog */
.mobile-menu-dialog {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border: none;
  background: rgba(255, 255, 255, 0.9); /* Translucent white */
  backdrop-filter: blur(15px); /* Strong blur */
  -webkit-backdrop-filter: blur(15px);
  padding: 0;
  margin: 0;
  position: fixed;
  top: 0; left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu-dialog[open] {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-dialog::backdrop {
  background: transparent; /* Rely on container background for blur */
}

.mobile-menu-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 2rem;
  font-weight: 700;
  transition: color 0.2s;
}

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

.mobile-cta-btn {
  width: 80%;
  padding: 20px;
  font-size: 1.25rem;
}

.mobile-menu-dialog .close-btn {
  position: absolute;
  top: 32px; right: 32px;
  left: auto;
  font-size: 2rem;
  background: transparent;
  color: var(--text-main);
}

/* Dark Footer */
.footer-dark {
  background: #1A1A1A; /* Dark Grey/Black */
  color: #E2E8F0;
  padding: 60px 0;
  margin-top: 0;
  direction: rtl;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row-reverse; /* Align logo to right (start) in RTL context if needed, or keep standard flex row */
}

/* Adjust for RTL visual: Logo on Right, Links on Left */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  text-align: right;
}

.footer-logo {
  height: 48px;
  width: auto;
  /* Make logo bluish/white matched to theme */
  filter: brightness(0) invert(1); 
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s;
  width: 24px;
  height: 24px;
}

.social-link:hover { opacity: 1; }

.copyright {
  font-size: 0.9rem;
  color: #94A3B8;
  margin-top: 8px;
  direction: ltr; /* English copyright text ltr */
  text-align: left;
}

.footer-links {
  display: flex;
  flex-direction: column; /* Stack links vertically */
  gap: 16px; 
  text-align: center;
}

.footer-links a {
  color: #E2E8F0;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
  }
  
  .footer-brand { align-items: center; text-align: center; }
  .footer-links { align-items: center; }
}
