/**
 * Landing Page Styles
 * Professional design with RTL support for Hebrew
 */

/* ===========================
   Variables & Reset
   =========================== */
:root {
  --primary-color: #0088cc;
  --primary-dark: #006699;
  --secondary-color: #54a9eb;
  --accent-color: #f39c12;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e1e8ed;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* ===========================
   Landing Page Layout
   =========================== */
.landing-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ===========================
   Header & Navigation
   =========================== */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-icon {
  font-size: 2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

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

.lang-switcher {
  display: flex;
  gap: 10px;
}

.lang-btn {
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  background: transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--bg-light);
}

.lang-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.hero-trust {
  font-size: 0.95rem;
  color: var(--text-light);
}

.hero-image {
  animation: fadeIn 1s ease-out;
}

.dashboard-preview {
  position: relative;
}

.preview-window {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-header {
  background: #e8e8e8;
  padding: 12px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
}

.window-content {
  padding: 40px;
  min-height: 300px;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.preview-stats .stat-card {
  text-align: center;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

.preview-stats .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.preview-stats .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===========================
   Features Section
   =========================== */
.features {
  padding: 100px 0;
  background: var(--bg-white);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 0 -20px;
}

.feature-card {
  flex: 1 1 300px;
  max-width: calc(33.333% - 40px);
  min-width: 280px;
  text-align: center;
  padding: 30px;
  margin: 0 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: var(--bg-white);
}

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

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===========================
   Security Section
   =========================== */
.security {
  padding: 100px 0;
  background: var(--bg-light);
}

.security-commitment {
  text-align: center;
  margin-bottom: 60px;
  padding: 30px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.security-commitment p {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 600;
}

.security-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0 -15px;
}

.security-card {
  flex: 1 1 300px;
  max-width: calc(33.333% - 30px);
  min-width: 280px;
  background: white;
  padding: 30px;
  margin: 0 15px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.security-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.security-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.security-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.security-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===========================
   Benefits Section
   =========================== */
.benefits {
  padding: 100px 0;
  background: var(--bg-white);
}

.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 0 -20px;
  justify-content: center;
}

.benefit-card {
  flex: 1 1 250px;
  max-width: calc(25% - 40px);
  min-width: 220px;
  text-align: center;
  padding: 40px 20px;
  margin: 0 20px;
}

.benefit-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.benefit-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.benefit-card p {
  color: var(--text-light);
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-content .btn {
  background: white;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 15px 40px;
}

.cta-content .btn:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cta-note {
  margin-top: 20px;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 30px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-lang {
  display: flex;
  gap: 10px;
}

.footer-lang .lang-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-lang .lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-lang .lang-btn.active {
  background: white;
  color: var(--text-dark);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
  background: var(--text-dark);
  color: white;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ===========================
   RTL Support for Hebrew
   =========================== */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .nav-container,
body.rtl .hero-cta,
body.rtl .footer-bottom {
  flex-direction: row-reverse;
}

body.rtl .nav-brand .logo {
  flex-direction: row-reverse;
}

body.rtl .footer-logo {
  flex-direction: row-reverse;
}

body.rtl .hero .container {
  direction: rtl;
}

/* Reverse grid order for RTL */
body.rtl .hero .container {
  grid-template-columns: 1fr 1fr;
}

body.rtl .hero-content {
  text-align: right;
}

/* RTL Support - Flexbox handles RTL naturally */
body.rtl .features-grid,
body.rtl .security-grid,
body.rtl .benefits-grid {
  /* Flexbox automatically reverses in RTL - no override needed */
}

/* RTL text alignment for cards */
body.rtl .feature-card,
body.rtl .benefit-card {
  text-align: center;
}

body.rtl .security-card {
  text-align: right;
}

/* RTL Support for Footer */
body.rtl .footer-col {
  text-align: right;
}

body.rtl .footer-col ul {
  padding-right: 0;
  padding-left: 0;
}

/* RTL Support for Section Headers */
body.rtl .section-header h2,
body.rtl .section-header p {
  text-align: center;
}

/* RTL Support for Security Commitment */
body.rtl .security-commitment {
  text-align: center;
}

/* RTL Support for CTA Section */
body.rtl .cta-content {
  text-align: center;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-image {
    order: -1;
  }

  .nav-menu {
    display: none;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .features-grid,
  .security-grid,
  .benefits-grid {
    gap: 30px;
  }

  .feature-card,
  .security-card {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .benefit-card {
    max-width: calc(50% - 30px);
    flex: 1 1 calc(50% - 30px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .cta-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .preview-stats {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .security-card,
  .benefit-card {
    max-width: 100%;
    flex: 1 1 100%;
    margin: 0 10px;
  }

  .features-grid,
  .security-grid,
  .benefits-grid {
    gap: 20px;
    margin: 0 -10px;
  }
}
